@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,1126 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory(require("@fortawesome/pro-light-svg-icons/faSearch"), require("@fortawesome/react-fontawesome"), require("classnames"), require("react"), require("react-select"), require("react-select/async"));
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define("atoka-design-system", ["@fortawesome/pro-light-svg-icons/faSearch", "@fortawesome/react-fontawesome", "classnames", "react", "react-select", "react-select/async"], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["atoka-design-system"] = factory(require("@fortawesome/pro-light-svg-icons/faSearch"), require("@fortawesome/react-fontawesome"), require("classnames"), require("react"), require("react-select"), require("react-select/async"));
|
|
8
|
+
else
|
|
9
|
+
root["atoka-design-system"] = factory(root["@fortawesome/pro-light-svg-icons/faSearch"], root["@fortawesome/react-fontawesome"], root["classnames"], root["react"], root["react-select"], root["react-select/async"]);
|
|
10
|
+
})(self, function(__WEBPACK_EXTERNAL_MODULE__8427__, __WEBPACK_EXTERNAL_MODULE__5692__, __WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__, __WEBPACK_EXTERNAL_MODULE__1738__, __WEBPACK_EXTERNAL_MODULE__1553__) {
|
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
|
12
|
+
/******/ var __webpack_modules__ = ({
|
|
13
|
+
|
|
14
|
+
/***/ 8811:
|
|
15
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
16
|
+
|
|
17
|
+
"use strict";
|
|
18
|
+
|
|
19
|
+
// EXPORTS
|
|
20
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
21
|
+
"HighlightableText": () => (/* reexport */ HighlightableText)
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
// EXTERNAL MODULE: ./node_modules/autobind-decorator/lib/esm/index.js
|
|
25
|
+
var esm = __webpack_require__(6627);
|
|
26
|
+
// EXTERNAL MODULE: external "classnames"
|
|
27
|
+
var external_classnames_ = __webpack_require__(8310);
|
|
28
|
+
var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
|
|
29
|
+
// EXTERNAL MODULE: external "react"
|
|
30
|
+
var external_react_ = __webpack_require__(8156);
|
|
31
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
32
|
+
// EXTERNAL MODULE: ./src/components/Utils/Text.ts
|
|
33
|
+
var Text = __webpack_require__(6347);
|
|
34
|
+
;// CONCATENATED MODULE: ./src/components/HighlightableText/HighlightableText.tsx
|
|
35
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
36
|
+
var extendStatics = function (d, b) {
|
|
37
|
+
extendStatics = Object.setPrototypeOf ||
|
|
38
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
39
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
40
|
+
return extendStatics(d, b);
|
|
41
|
+
};
|
|
42
|
+
return function (d, b) {
|
|
43
|
+
extendStatics(d, b);
|
|
44
|
+
function __() { this.constructor = d; }
|
|
45
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
49
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
50
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
51
|
+
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;
|
|
52
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
53
|
+
};
|
|
54
|
+
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
55
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
var HighlightableText = /** @class */ (function (_super) {
|
|
63
|
+
__extends(HighlightableText, _super);
|
|
64
|
+
function HighlightableText() {
|
|
65
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
66
|
+
}
|
|
67
|
+
HighlightableText.prototype.needToHighlight = function () {
|
|
68
|
+
return !(0,Text/* isStringEmpty */.Wq)(this.props.highlighted);
|
|
69
|
+
};
|
|
70
|
+
HighlightableText.prototype.getParts = function () {
|
|
71
|
+
if (typeof this.props.children != 'string') {
|
|
72
|
+
throw Error('In this component, children have to be a string');
|
|
73
|
+
}
|
|
74
|
+
return (0,Text/* splitTextInParts */.ho)(this.props.highlighted, this.props.children);
|
|
75
|
+
};
|
|
76
|
+
HighlightableText.prototype.renderPart = function (text, index) {
|
|
77
|
+
var _a;
|
|
78
|
+
var isSelected = (0,Text/* isMatching */.OH)(text, this.props.highlighted), classname = external_classnames_default()('atoka-highlightable-text', this.props.size, (_a = {
|
|
79
|
+
'text-muted': this.props.isDisabled === true,
|
|
80
|
+
'bold': this.props.isBold,
|
|
81
|
+
'selected-text': isSelected
|
|
82
|
+
},
|
|
83
|
+
_a[this.props.highlightColor] = isSelected,
|
|
84
|
+
_a)), output = text;
|
|
85
|
+
if (isSelected) {
|
|
86
|
+
output = external_react_default().createElement("strong", null, text);
|
|
87
|
+
}
|
|
88
|
+
return (external_react_default().createElement("span", { key: text + "-" + index, className: classname }, output));
|
|
89
|
+
};
|
|
90
|
+
HighlightableText.prototype.highlightedText = function () {
|
|
91
|
+
var parts = this.getParts();
|
|
92
|
+
if (parts == null) {
|
|
93
|
+
return null;
|
|
94
|
+
}
|
|
95
|
+
return external_react_default().createElement("span", { className: this.props.className }, parts.map(this.renderPart));
|
|
96
|
+
};
|
|
97
|
+
HighlightableText.prototype.render = function () {
|
|
98
|
+
var children = this.props.children, classname = external_classnames_default()('atoka-highlightable-text', this.props.highlightColor, this.props.size, this.props.className, {
|
|
99
|
+
'text-muted': this.props.isDisabled === true,
|
|
100
|
+
'bold': this.props.isBold,
|
|
101
|
+
});
|
|
102
|
+
// We just need the style, which will apply on the <strong> or <b> elements
|
|
103
|
+
if (typeof children !== 'string') {
|
|
104
|
+
return external_react_default().createElement("span", { className: classname }, children);
|
|
105
|
+
}
|
|
106
|
+
if (!this.needToHighlight()) {
|
|
107
|
+
return external_react_default().createElement("span", { className: classname }, children);
|
|
108
|
+
}
|
|
109
|
+
return this.highlightedText();
|
|
110
|
+
};
|
|
111
|
+
var _a;
|
|
112
|
+
HighlightableText.displayName = 'HighlightableText';
|
|
113
|
+
HighlightableText.defaultProps = {
|
|
114
|
+
size: 'md',
|
|
115
|
+
highlightColor: 'orange',
|
|
116
|
+
};
|
|
117
|
+
__decorate([
|
|
118
|
+
esm/* boundMethod */.MR,
|
|
119
|
+
__metadata("design:type", Function),
|
|
120
|
+
__metadata("design:paramtypes", [String, Number]),
|
|
121
|
+
__metadata("design:returntype", typeof (_a = typeof (external_react_default()) !== "undefined" && (external_react_default()).ReactNode) === "function" ? _a : Object)
|
|
122
|
+
], HighlightableText.prototype, "renderPart", null);
|
|
123
|
+
return HighlightableText;
|
|
124
|
+
}((external_react_default()).PureComponent));
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
;// CONCATENATED MODULE: ./src/components/HighlightableText/index.ts
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
/***/ }),
|
|
132
|
+
|
|
133
|
+
/***/ 5447:
|
|
134
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
135
|
+
|
|
136
|
+
"use strict";
|
|
137
|
+
// ESM COMPAT FLAG
|
|
138
|
+
__webpack_require__.r(__webpack_exports__);
|
|
139
|
+
|
|
140
|
+
// EXPORTS
|
|
141
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
142
|
+
"CustomOptionProps": () => (/* reexport */ CustomOption_namespaceObject.CustomOptionProps),
|
|
143
|
+
"RenderMultiValueContainer": () => (/* reexport */ Suggester_namespaceObject.RenderMultiValueContainer),
|
|
144
|
+
"Suggester": () => (/* reexport */ Suggester),
|
|
145
|
+
"SuggesterProps": () => (/* reexport */ Suggester_namespaceObject.SuggesterProps),
|
|
146
|
+
"getRenderCustomMultiValueWithIcon": () => (/* reexport */ getRenderCustomMultiValueWithIcon)
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
// NAMESPACE OBJECT: ./src/components/Suggester/CustomOption.tsx
|
|
150
|
+
var CustomOption_namespaceObject = {};
|
|
151
|
+
__webpack_require__.r(CustomOption_namespaceObject);
|
|
152
|
+
__webpack_require__.d(CustomOption_namespaceObject, {
|
|
153
|
+
"W": () => (CustomOption)
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
// NAMESPACE OBJECT: ./src/components/Suggester/Suggester.tsx
|
|
157
|
+
var Suggester_namespaceObject = {};
|
|
158
|
+
__webpack_require__.r(Suggester_namespaceObject);
|
|
159
|
+
__webpack_require__.d(Suggester_namespaceObject, {
|
|
160
|
+
"_": () => (Suggester)
|
|
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 "react-select"
|
|
167
|
+
var external_react_select_ = __webpack_require__(1738);
|
|
168
|
+
var external_react_select_default = /*#__PURE__*/__webpack_require__.n(external_react_select_);
|
|
169
|
+
// EXTERNAL MODULE: external "classnames"
|
|
170
|
+
var external_classnames_ = __webpack_require__(8310);
|
|
171
|
+
var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
|
|
172
|
+
// EXTERNAL MODULE: ./node_modules/autobind-decorator/lib/esm/index.js
|
|
173
|
+
var esm = __webpack_require__(6627);
|
|
174
|
+
// EXTERNAL MODULE: external "react-select/async"
|
|
175
|
+
var async_ = __webpack_require__(1553);
|
|
176
|
+
var async_default = /*#__PURE__*/__webpack_require__.n(async_);
|
|
177
|
+
// EXTERNAL MODULE: external "@fortawesome/pro-light-svg-icons/faSearch"
|
|
178
|
+
var faSearch_ = __webpack_require__(8427);
|
|
179
|
+
// EXTERNAL MODULE: ./src/components/Utils/CommonTypes.ts
|
|
180
|
+
var CommonTypes = __webpack_require__(6055);
|
|
181
|
+
// EXTERNAL MODULE: ./src/components/HighlightableText/index.ts + 1 modules
|
|
182
|
+
var HighlightableText = __webpack_require__(8811);
|
|
183
|
+
// EXTERNAL MODULE: ./src/components/Utils/Text.ts
|
|
184
|
+
var Text = __webpack_require__(6347);
|
|
185
|
+
;// CONCATENATED MODULE: ./src/components/Suggester/CustomOption.tsx
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* ### Overview
|
|
193
|
+
*
|
|
194
|
+
* The `CustomOption` also supports to have children.
|
|
195
|
+
* You can use the `.custom-value` class also in its children if you want it to be styled in uppercase.
|
|
196
|
+
* */
|
|
197
|
+
var CustomOption = function (_a) {
|
|
198
|
+
var item = _a.item, optionDataValueKey = _a.optionDataValueKey, optionDataLabelKey = _a.optionDataLabelKey, optionDataCustomValueKey = _a.optionDataCustomValueKey, children = _a.children, selectedText = _a.selectedText, className = _a.className;
|
|
199
|
+
function getLabel(key) {
|
|
200
|
+
if (!(0,Text/* isStringEmpty */.Wq)(selectedText)) {
|
|
201
|
+
return external_react_default().createElement(HighlightableText.HighlightableText, { highlighted: selectedText }, item[key]);
|
|
202
|
+
}
|
|
203
|
+
return item[key];
|
|
204
|
+
}
|
|
205
|
+
// eslint-disable-next-line react/display-name
|
|
206
|
+
function updateOptionContent(value, optionLabelKey) {
|
|
207
|
+
if (value === '') {
|
|
208
|
+
return external_react_default().createElement("span", { className: 'label' }, getLabel(optionLabelKey));
|
|
209
|
+
}
|
|
210
|
+
return (external_react_default().createElement((external_react_default()).Fragment, null,
|
|
211
|
+
external_react_default().createElement("span", { className: 'label mr-1' },
|
|
212
|
+
value,
|
|
213
|
+
":"),
|
|
214
|
+
getLabel(optionLabelKey)));
|
|
215
|
+
}
|
|
216
|
+
var optionContent = '', customValue = null;
|
|
217
|
+
if (optionDataValueKey && item[optionDataValueKey] != null) {
|
|
218
|
+
optionContent = getLabel(optionDataValueKey);
|
|
219
|
+
}
|
|
220
|
+
if (optionDataLabelKey && item[optionDataLabelKey] != null) {
|
|
221
|
+
optionContent = updateOptionContent(optionContent, optionDataLabelKey);
|
|
222
|
+
}
|
|
223
|
+
if (optionDataCustomValueKey && item[optionDataCustomValueKey] != null) {
|
|
224
|
+
customValue = external_react_default().createElement("span", { className: 'custom-value ml-2' }, item[optionDataCustomValueKey]);
|
|
225
|
+
}
|
|
226
|
+
var classNames = external_classnames_default()('option-data-item overflow-hidden', className);
|
|
227
|
+
return (external_react_default().createElement("span", { className: classNames },
|
|
228
|
+
optionContent,
|
|
229
|
+
customValue,
|
|
230
|
+
children));
|
|
231
|
+
};
|
|
232
|
+
CustomOption.displayName = 'CustomOption';
|
|
233
|
+
|
|
234
|
+
// EXTERNAL MODULE: external "@fortawesome/react-fontawesome"
|
|
235
|
+
var react_fontawesome_ = __webpack_require__(5692);
|
|
236
|
+
;// CONCATENATED MODULE: ./src/components/Suggester/InputValueContainer.tsx
|
|
237
|
+
var __assign = (undefined && undefined.__assign) || function () {
|
|
238
|
+
__assign = Object.assign || function(t) {
|
|
239
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
240
|
+
s = arguments[i];
|
|
241
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
242
|
+
t[p] = s[p];
|
|
243
|
+
}
|
|
244
|
+
return t;
|
|
245
|
+
};
|
|
246
|
+
return __assign.apply(this, arguments);
|
|
247
|
+
};
|
|
248
|
+
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
249
|
+
var t = {};
|
|
250
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
251
|
+
t[p] = s[p];
|
|
252
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
253
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
254
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
255
|
+
t[p[i]] = s[p[i]];
|
|
256
|
+
}
|
|
257
|
+
return t;
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
var InputValueContainer = function (_a) {
|
|
263
|
+
var children = _a.children, icon = _a.icon, props = __rest(_a, ["children", "icon"]);
|
|
264
|
+
// eslint-disable-next-line react/display-name
|
|
265
|
+
function renderIcon() {
|
|
266
|
+
if (children == null || icon == null) {
|
|
267
|
+
return null;
|
|
268
|
+
}
|
|
269
|
+
return external_react_default().createElement(react_fontawesome_.FontAwesomeIcon, { icon: icon });
|
|
270
|
+
}
|
|
271
|
+
if (external_react_select_.components.ValueContainer == null) {
|
|
272
|
+
return null;
|
|
273
|
+
}
|
|
274
|
+
return (external_react_default().createElement(external_react_select_.components.ValueContainer, __assign({}, props, { className: 'input-value-container' }),
|
|
275
|
+
renderIcon(),
|
|
276
|
+
children));
|
|
277
|
+
};
|
|
278
|
+
InputValueContainer.displayName = 'InputValueContainer';
|
|
279
|
+
|
|
280
|
+
;// CONCATENATED MODULE: ./src/components/Suggester/getRenderCustomMultiValueWithIcon.tsx
|
|
281
|
+
var getRenderCustomMultiValueWithIcon_assign = (undefined && undefined.__assign) || function () {
|
|
282
|
+
getRenderCustomMultiValueWithIcon_assign = Object.assign || function(t) {
|
|
283
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
284
|
+
s = arguments[i];
|
|
285
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
286
|
+
t[p] = s[p];
|
|
287
|
+
}
|
|
288
|
+
return t;
|
|
289
|
+
};
|
|
290
|
+
return getRenderCustomMultiValueWithIcon_assign.apply(this, arguments);
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
var getRenderCustomMultiValueWithIcon = function (icon, color) {
|
|
298
|
+
if (color === void 0) { color = 'blue300'; }
|
|
299
|
+
return function (props) {
|
|
300
|
+
// eslint-disable-next-line react/display-name
|
|
301
|
+
function getIcon() {
|
|
302
|
+
if (icon == null) {
|
|
303
|
+
return null;
|
|
304
|
+
}
|
|
305
|
+
return (external_react_default().createElement("div", { className: 'icon-container' },
|
|
306
|
+
external_react_default().createElement(react_fontawesome_.FontAwesomeIcon, { icon: icon })));
|
|
307
|
+
}
|
|
308
|
+
var className = external_classnames_default()('custom-multi-value-with-icon', props.className, color), labelClassName = external_classnames_default()({ 'ml-1': icon != null, 'ml-2': icon == null });
|
|
309
|
+
return (external_react_default().createElement(external_react_select_.components.MultiValue, getRenderCustomMultiValueWithIcon_assign({}, props, { className: className }),
|
|
310
|
+
getIcon(),
|
|
311
|
+
external_react_default().createElement("span", { className: labelClassName }, props.data.label)));
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
;// CONCATENATED MODULE: ./src/components/Suggester/Suggester.tsx
|
|
316
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
317
|
+
var extendStatics = function (d, b) {
|
|
318
|
+
extendStatics = Object.setPrototypeOf ||
|
|
319
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
320
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
321
|
+
return extendStatics(d, b);
|
|
322
|
+
};
|
|
323
|
+
return function (d, b) {
|
|
324
|
+
extendStatics(d, b);
|
|
325
|
+
function __() { this.constructor = d; }
|
|
326
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
327
|
+
};
|
|
328
|
+
})();
|
|
329
|
+
var Suggester_assign = (undefined && undefined.__assign) || function () {
|
|
330
|
+
Suggester_assign = Object.assign || function(t) {
|
|
331
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
332
|
+
s = arguments[i];
|
|
333
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
334
|
+
t[p] = s[p];
|
|
335
|
+
}
|
|
336
|
+
return t;
|
|
337
|
+
};
|
|
338
|
+
return Suggester_assign.apply(this, arguments);
|
|
339
|
+
};
|
|
340
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
341
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
342
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
343
|
+
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;
|
|
344
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
345
|
+
};
|
|
346
|
+
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
347
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
348
|
+
};
|
|
349
|
+
var __read = (undefined && undefined.__read) || function (o, n) {
|
|
350
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
351
|
+
if (!m) return o;
|
|
352
|
+
var i = m.call(o), r, ar = [], e;
|
|
353
|
+
try {
|
|
354
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
355
|
+
}
|
|
356
|
+
catch (error) { e = { error: error }; }
|
|
357
|
+
finally {
|
|
358
|
+
try {
|
|
359
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
360
|
+
}
|
|
361
|
+
finally { if (e) throw e.error; }
|
|
362
|
+
}
|
|
363
|
+
return ar;
|
|
364
|
+
};
|
|
365
|
+
var __spread = (undefined && undefined.__spread) || function () {
|
|
366
|
+
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
|
|
367
|
+
return ar;
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
// eslint-disable-next-line react/display-name
|
|
381
|
+
var DefaultSuggestedOption = function (item, insertedText) { return (external_react_default().createElement(Suggester.CustomOption, { item: item, optionDataValueKey: 'label', selectedText: insertedText })); };
|
|
382
|
+
var DefaultMultiValue = getRenderCustomMultiValueWithIcon();
|
|
383
|
+
/**
|
|
384
|
+
* ### Overview
|
|
385
|
+
*
|
|
386
|
+
* The `Suggester` allows users to either filter or sort items in a list according to specific parameters.
|
|
387
|
+
* It can be used in sync as well as in async.
|
|
388
|
+
* */
|
|
389
|
+
var Suggester = /** @class */ (function (_super) {
|
|
390
|
+
__extends(Suggester, _super);
|
|
391
|
+
function Suggester() {
|
|
392
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
393
|
+
_this.state = {
|
|
394
|
+
insertedText: '',
|
|
395
|
+
};
|
|
396
|
+
return _this;
|
|
397
|
+
}
|
|
398
|
+
Suggester.prototype.loadOptions = function (input, callback) {
|
|
399
|
+
var _a, _b;
|
|
400
|
+
(_b = (_a = this.props) === null || _a === void 0 ? void 0 : _a.loadOptions) === null || _b === void 0 ? void 0 : _b.call(_a, input, callback);
|
|
401
|
+
};
|
|
402
|
+
Suggester.prototype.getOptionsAsync = function (input, callback) {
|
|
403
|
+
var _this = this;
|
|
404
|
+
var _a, _b;
|
|
405
|
+
if (this.props.debouncer == null) {
|
|
406
|
+
this.loadOptions(input, callback);
|
|
407
|
+
}
|
|
408
|
+
(_b = (_a = this.props) === null || _a === void 0 ? void 0 : _a.debouncer) === null || _b === void 0 ? void 0 : _b.call(_a, function () { return _this.loadOptions(input, callback); });
|
|
409
|
+
};
|
|
410
|
+
Suggester.prototype.getNoResultsText = function () {
|
|
411
|
+
if (this.props.hasError) {
|
|
412
|
+
return this.props.errorMessage;
|
|
413
|
+
}
|
|
414
|
+
if (this.state.insertedText === '') {
|
|
415
|
+
return this.props.emptyMessage;
|
|
416
|
+
}
|
|
417
|
+
return this.props.noResultsMessage;
|
|
418
|
+
};
|
|
419
|
+
Suggester.prototype.renderNoOptionsMessage = function (props) {
|
|
420
|
+
var _a;
|
|
421
|
+
var className = external_classnames_default()({
|
|
422
|
+
invalid: (_a = this.props) === null || _a === void 0 ? void 0 : _a.hasError,
|
|
423
|
+
});
|
|
424
|
+
return (external_react_default().createElement(external_react_select_.components.NoOptionsMessage, Suggester_assign({}, props, { className: className }), this.getNoResultsText()));
|
|
425
|
+
};
|
|
426
|
+
Suggester.prototype.handleOnInputChange = function (newValue) {
|
|
427
|
+
if (this.props.hasError) {
|
|
428
|
+
return '';
|
|
429
|
+
}
|
|
430
|
+
this.setState({ insertedText: newValue });
|
|
431
|
+
return newValue;
|
|
432
|
+
};
|
|
433
|
+
Suggester.prototype.renderLoadingMessage = function (props) {
|
|
434
|
+
return external_react_default().createElement(external_react_select_.components.LoadingMessage, Suggester_assign({}, props), this.props.children);
|
|
435
|
+
};
|
|
436
|
+
Suggester.prototype.renderOptionContainer = function (props) {
|
|
437
|
+
var _a, _b;
|
|
438
|
+
var optionProps = [props.data];
|
|
439
|
+
if (this.props.withHighlight) {
|
|
440
|
+
optionProps.push(this.state.insertedText);
|
|
441
|
+
}
|
|
442
|
+
return external_react_default().createElement(external_react_select_.components.Option, Suggester_assign({}, props), (_b = (_a = this.props).renderSuggestedOption) === null || _b === void 0 ? void 0 : _b.call.apply(_b, __spread([_a], optionProps)));
|
|
443
|
+
};
|
|
444
|
+
Suggester.prototype.renderValueContainer = function (props) {
|
|
445
|
+
return (external_react_default().createElement(InputValueContainer, Suggester_assign({ icon: this.props.icon }, props), props.children));
|
|
446
|
+
};
|
|
447
|
+
Suggester.prototype.getComponentsConfig = function () {
|
|
448
|
+
return {
|
|
449
|
+
Option: this.renderOptionContainer,
|
|
450
|
+
ValueContainer: this.renderValueContainer,
|
|
451
|
+
IndicatorsContainer: function () { return null; },
|
|
452
|
+
NoOptionsMessage: this.renderNoOptionsMessage,
|
|
453
|
+
LoadingMessage: this.renderLoadingMessage,
|
|
454
|
+
MultiValue: this.props.renderMultiValueContainer,
|
|
455
|
+
};
|
|
456
|
+
};
|
|
457
|
+
Suggester.prototype.isOptionDisabled = function (option) {
|
|
458
|
+
var _a, _b;
|
|
459
|
+
if (((_a = this.props) === null || _a === void 0 ? void 0 : _a.selectedOption) == null) {
|
|
460
|
+
return false;
|
|
461
|
+
}
|
|
462
|
+
return (option === null || option === void 0 ? void 0 : option.value) === ((_b = this.props.selectedOption) === null || _b === void 0 ? void 0 : _b.value);
|
|
463
|
+
};
|
|
464
|
+
Suggester.prototype.handleChange = function (item) {
|
|
465
|
+
var _a, _b, _c, _d, _e, _f;
|
|
466
|
+
this.setState({ insertedText: '' });
|
|
467
|
+
if (item == null) {
|
|
468
|
+
(_b = (_a = this.props) === null || _a === void 0 ? void 0 : _a.onChange) === null || _b === void 0 ? void 0 : _b.call(_a, []);
|
|
469
|
+
return;
|
|
470
|
+
}
|
|
471
|
+
if (!Array.isArray(item)) {
|
|
472
|
+
(_d = (_c = this.props) === null || _c === void 0 ? void 0 : _c.onChange) === null || _d === void 0 ? void 0 : _d.call(_c, [item]);
|
|
473
|
+
return;
|
|
474
|
+
}
|
|
475
|
+
(_f = (_e = this.props) === null || _e === void 0 ? void 0 : _e.onChange) === null || _f === void 0 ? void 0 : _f.call(_e, item);
|
|
476
|
+
};
|
|
477
|
+
Suggester.prototype.render = function () {
|
|
478
|
+
var _a, _b, _c;
|
|
479
|
+
var className = external_classnames_default()('atoka-suggester', this.props.className, {
|
|
480
|
+
'atoka-shadow': this.props.withShadow === true,
|
|
481
|
+
'with-icon': this.props.icon != null,
|
|
482
|
+
}), commonProps = {
|
|
483
|
+
value: (_a = this.props) === null || _a === void 0 ? void 0 : _a.value,
|
|
484
|
+
isClearable: false,
|
|
485
|
+
components: this.getComponentsConfig(),
|
|
486
|
+
classNamePrefix: 'suggester',
|
|
487
|
+
placeholder: this.props.placeholder,
|
|
488
|
+
isOptionDisabled: this.isOptionDisabled,
|
|
489
|
+
filterOption: this.props.filterOption,
|
|
490
|
+
onInputChange: this.handleOnInputChange,
|
|
491
|
+
inputValue: this.state.insertedText,
|
|
492
|
+
isMulti: this.props.isMulti,
|
|
493
|
+
isDisabled: this.props.isDisabled,
|
|
494
|
+
onChange: this.handleChange,
|
|
495
|
+
};
|
|
496
|
+
if (this.props.isAsync) {
|
|
497
|
+
return (external_react_default().createElement("div", { className: className },
|
|
498
|
+
external_react_default().createElement((async_default()), Suggester_assign({}, commonProps, { value: this.props.value, loadOptions: this.getOptionsAsync, defaultOptions: this.props.options }))));
|
|
499
|
+
}
|
|
500
|
+
return (external_react_default().createElement("div", { className: className },
|
|
501
|
+
external_react_default().createElement((external_react_select_default()), Suggester_assign({}, commonProps, { defaultValue: (_b = this.props) === null || _b === void 0 ? void 0 : _b.selectedOption, options: (_c = this.props.options) !== null && _c !== void 0 ? _c : [] }))));
|
|
502
|
+
};
|
|
503
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
504
|
+
Suggester.displayName = 'Suggester';
|
|
505
|
+
Suggester.CustomOption = CustomOption;
|
|
506
|
+
Suggester.defaultProps = {
|
|
507
|
+
withShadow: false,
|
|
508
|
+
withHighlight: false,
|
|
509
|
+
isAsync: false,
|
|
510
|
+
isMulti: false,
|
|
511
|
+
hasError: false,
|
|
512
|
+
renderSuggestedOption: DefaultSuggestedOption,
|
|
513
|
+
errorMessage: '',
|
|
514
|
+
emptyMessage: '',
|
|
515
|
+
noResultsMessage: '',
|
|
516
|
+
icon: faSearch_.faSearch,
|
|
517
|
+
renderMultiValueContainer: DefaultMultiValue,
|
|
518
|
+
};
|
|
519
|
+
__decorate([
|
|
520
|
+
esm/* default */.ZP,
|
|
521
|
+
__metadata("design:type", Function),
|
|
522
|
+
__metadata("design:paramtypes", [String, Function]),
|
|
523
|
+
__metadata("design:returntype", void 0)
|
|
524
|
+
], Suggester.prototype, "loadOptions", null);
|
|
525
|
+
__decorate([
|
|
526
|
+
esm/* default */.ZP,
|
|
527
|
+
__metadata("design:type", Function),
|
|
528
|
+
__metadata("design:paramtypes", [String, Function]),
|
|
529
|
+
__metadata("design:returntype", void 0)
|
|
530
|
+
], Suggester.prototype, "getOptionsAsync", null);
|
|
531
|
+
__decorate([
|
|
532
|
+
esm/* default */.ZP,
|
|
533
|
+
__metadata("design:type", Function),
|
|
534
|
+
__metadata("design:paramtypes", []),
|
|
535
|
+
__metadata("design:returntype", String)
|
|
536
|
+
], Suggester.prototype, "getNoResultsText", null);
|
|
537
|
+
__decorate([
|
|
538
|
+
esm/* default */.ZP,
|
|
539
|
+
__metadata("design:type", Function),
|
|
540
|
+
__metadata("design:paramtypes", [typeof (_a = typeof external_react_select_.OptionProps !== "undefined" && external_react_select_.OptionProps) === "function" ? _a : Object]),
|
|
541
|
+
__metadata("design:returntype", typeof (_b = typeof JSX !== "undefined" && JSX.Element) === "function" ? _b : Object)
|
|
542
|
+
], Suggester.prototype, "renderNoOptionsMessage", null);
|
|
543
|
+
__decorate([
|
|
544
|
+
esm/* default */.ZP,
|
|
545
|
+
__metadata("design:type", Function),
|
|
546
|
+
__metadata("design:paramtypes", [String]),
|
|
547
|
+
__metadata("design:returntype", String)
|
|
548
|
+
], Suggester.prototype, "handleOnInputChange", null);
|
|
549
|
+
__decorate([
|
|
550
|
+
esm/* default */.ZP,
|
|
551
|
+
__metadata("design:type", Function),
|
|
552
|
+
__metadata("design:paramtypes", [typeof (_c = typeof external_react_select_.OptionProps !== "undefined" && external_react_select_.OptionProps) === "function" ? _c : Object]),
|
|
553
|
+
__metadata("design:returntype", typeof (_d = typeof JSX !== "undefined" && JSX.Element) === "function" ? _d : Object)
|
|
554
|
+
], Suggester.prototype, "renderLoadingMessage", null);
|
|
555
|
+
__decorate([
|
|
556
|
+
esm/* default */.ZP,
|
|
557
|
+
__metadata("design:type", Function),
|
|
558
|
+
__metadata("design:paramtypes", [typeof (_e = typeof external_react_select_.OptionProps !== "undefined" && external_react_select_.OptionProps) === "function" ? _e : Object]),
|
|
559
|
+
__metadata("design:returntype", typeof (_f = typeof JSX !== "undefined" && JSX.Element) === "function" ? _f : Object)
|
|
560
|
+
], Suggester.prototype, "renderOptionContainer", null);
|
|
561
|
+
__decorate([
|
|
562
|
+
esm/* default */.ZP,
|
|
563
|
+
__metadata("design:type", Function),
|
|
564
|
+
__metadata("design:paramtypes", [typeof (_g = typeof external_react_select_.ValueContainerProps !== "undefined" && external_react_select_.ValueContainerProps) === "function" ? _g : Object]),
|
|
565
|
+
__metadata("design:returntype", typeof (_h = typeof JSX !== "undefined" && JSX.Element) === "function" ? _h : Object)
|
|
566
|
+
], Suggester.prototype, "renderValueContainer", null);
|
|
567
|
+
__decorate([
|
|
568
|
+
esm/* default */.ZP,
|
|
569
|
+
__metadata("design:type", Function),
|
|
570
|
+
__metadata("design:paramtypes", [typeof (_j = typeof CommonTypes.OptionData !== "undefined" && CommonTypes.OptionData) === "function" ? _j : Object]),
|
|
571
|
+
__metadata("design:returntype", Boolean)
|
|
572
|
+
], Suggester.prototype, "isOptionDisabled", null);
|
|
573
|
+
__decorate([
|
|
574
|
+
esm/* default */.ZP,
|
|
575
|
+
__metadata("design:type", Function),
|
|
576
|
+
__metadata("design:paramtypes", [Object]),
|
|
577
|
+
__metadata("design:returntype", void 0)
|
|
578
|
+
], Suggester.prototype, "handleChange", null);
|
|
579
|
+
return Suggester;
|
|
580
|
+
}((external_react_default()).Component));
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
;// CONCATENATED MODULE: ./src/components/Suggester/index.ts
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
/***/ }),
|
|
590
|
+
|
|
591
|
+
/***/ 6055:
|
|
592
|
+
/***/ (() => {
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
/***/ }),
|
|
597
|
+
|
|
598
|
+
/***/ 6347:
|
|
599
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
600
|
+
|
|
601
|
+
"use strict";
|
|
602
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
603
|
+
/* harmony export */ "Wq": () => (/* binding */ isStringEmpty),
|
|
604
|
+
/* harmony export */ "OH": () => (/* binding */ isMatching),
|
|
605
|
+
/* harmony export */ "ho": () => (/* binding */ splitTextInParts)
|
|
606
|
+
/* harmony export */ });
|
|
607
|
+
/* unused harmony exports slugify, estimateWordSize, ellipse, matchAndFormatRangeLabel, formatRange, ellipseAndFormat, escapeRegExp */
|
|
608
|
+
var __values = (undefined && undefined.__values) || function(o) {
|
|
609
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
610
|
+
if (m) return m.call(o);
|
|
611
|
+
if (o && typeof o.length === "number") return {
|
|
612
|
+
next: function () {
|
|
613
|
+
if (o && i >= o.length) o = void 0;
|
|
614
|
+
return { value: o && o[i++], done: !o };
|
|
615
|
+
}
|
|
616
|
+
};
|
|
617
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
618
|
+
};
|
|
619
|
+
var __read = (undefined && undefined.__read) || function (o, n) {
|
|
620
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
621
|
+
if (!m) return o;
|
|
622
|
+
var i = m.call(o), r, ar = [], e;
|
|
623
|
+
try {
|
|
624
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
625
|
+
}
|
|
626
|
+
catch (error) { e = { error: error }; }
|
|
627
|
+
finally {
|
|
628
|
+
try {
|
|
629
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
630
|
+
}
|
|
631
|
+
finally { if (e) throw e.error; }
|
|
632
|
+
}
|
|
633
|
+
return ar;
|
|
634
|
+
};
|
|
635
|
+
var __spread = (undefined && undefined.__spread) || function () {
|
|
636
|
+
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
|
|
637
|
+
return ar;
|
|
638
|
+
};
|
|
639
|
+
function isStringEmpty(s) {
|
|
640
|
+
if (s == null) {
|
|
641
|
+
return true;
|
|
642
|
+
}
|
|
643
|
+
return s.match(/^\s*$/) !== null;
|
|
644
|
+
}
|
|
645
|
+
function slugify(text) {
|
|
646
|
+
var a = 'àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;', b = 'aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------', p = new RegExp(a.split('').join('|'), 'g');
|
|
647
|
+
return text
|
|
648
|
+
.toString()
|
|
649
|
+
.toLowerCase()
|
|
650
|
+
.replace(/\s+/g, '-') // Replace spaces with -
|
|
651
|
+
.replace(p, function (c) { return b.charAt(a.indexOf(c)); }) // Replace special characters
|
|
652
|
+
.replace(/&/g, '-and-') // Replace & with 'and'
|
|
653
|
+
.replace(/[^\w-]+/g, '') // Remove all non-word characters
|
|
654
|
+
.replace(/--+/g, '-') // Replace multiple - with single -
|
|
655
|
+
.replace(/^-+/, '') // Trim - from start of text
|
|
656
|
+
.replace(/-+$/, ''); // Trim - from end of text
|
|
657
|
+
}
|
|
658
|
+
function estimateWordSize(wordLength, letterPixels, constant) {
|
|
659
|
+
return wordLength * letterPixels + constant;
|
|
660
|
+
}
|
|
661
|
+
function ellipse(input, length) {
|
|
662
|
+
if (input == null) {
|
|
663
|
+
return '';
|
|
664
|
+
}
|
|
665
|
+
return input.length > length ? input.substr(0, length - 1) + "\u2026" : input;
|
|
666
|
+
}
|
|
667
|
+
function matchAndFormatRangeLabel(formatter) {
|
|
668
|
+
return function (label) {
|
|
669
|
+
var match = /^([\d*]+)-([\d*]+)$/.exec(label);
|
|
670
|
+
if (match == null) {
|
|
671
|
+
return label;
|
|
672
|
+
}
|
|
673
|
+
return formatRange({
|
|
674
|
+
from: match[1],
|
|
675
|
+
to: match[2],
|
|
676
|
+
}, formatter !== null && formatter !== void 0 ? formatter : (function (v) { return v; }));
|
|
677
|
+
};
|
|
678
|
+
}
|
|
679
|
+
function formatRange(item, formatter) {
|
|
680
|
+
var _a, _b;
|
|
681
|
+
var to = item.to === '*' ? '*' : formatter(parseInt((_a = item.to) !== null && _a !== void 0 ? _a : '0', 10)), from = formatter(parseInt((_b = item.from) !== null && _b !== void 0 ? _b : '0', 10));
|
|
682
|
+
if (from === to) {
|
|
683
|
+
return "" + from;
|
|
684
|
+
}
|
|
685
|
+
return from + " - " + to;
|
|
686
|
+
}
|
|
687
|
+
function ellipseAndFormat(formatter, maxLabelLength) {
|
|
688
|
+
return function (value) {
|
|
689
|
+
var strValue = value.toString();
|
|
690
|
+
if (formatter == null) {
|
|
691
|
+
return ellipse(strValue, maxLabelLength);
|
|
692
|
+
}
|
|
693
|
+
return ellipse("" + formatter(strValue), maxLabelLength);
|
|
694
|
+
};
|
|
695
|
+
}
|
|
696
|
+
function escapeRegExp(input) {
|
|
697
|
+
// eslint-disable-next-line
|
|
698
|
+
return input.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
|
|
699
|
+
}
|
|
700
|
+
function isMatching(text0, text1) {
|
|
701
|
+
var e_1, _a;
|
|
702
|
+
if (text0 == null || text1 == null) {
|
|
703
|
+
return false;
|
|
704
|
+
}
|
|
705
|
+
text0 = text0.toLowerCase();
|
|
706
|
+
text1 = text1.toLowerCase();
|
|
707
|
+
if (text1.match(' ') === null) {
|
|
708
|
+
return text0.match(escapeRegExp(text1)) !== null;
|
|
709
|
+
}
|
|
710
|
+
var splitNeedles = text1
|
|
711
|
+
.split(' ')
|
|
712
|
+
.filter(function (s) { return !isStringEmpty(s); })
|
|
713
|
+
.sort(function (a, b) { return b.length - a.length; });
|
|
714
|
+
try {
|
|
715
|
+
for (var splitNeedles_1 = __values(splitNeedles), splitNeedles_1_1 = splitNeedles_1.next(); !splitNeedles_1_1.done; splitNeedles_1_1 = splitNeedles_1.next()) {
|
|
716
|
+
var needle = splitNeedles_1_1.value;
|
|
717
|
+
if (text0 === needle) {
|
|
718
|
+
return true;
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
723
|
+
finally {
|
|
724
|
+
try {
|
|
725
|
+
if (splitNeedles_1_1 && !splitNeedles_1_1.done && (_a = splitNeedles_1.return)) _a.call(splitNeedles_1);
|
|
726
|
+
}
|
|
727
|
+
finally { if (e_1) throw e_1.error; }
|
|
728
|
+
}
|
|
729
|
+
return false;
|
|
730
|
+
}
|
|
731
|
+
function splitTextInParts(needles, text) {
|
|
732
|
+
var e_2, _a;
|
|
733
|
+
if (text == null) {
|
|
734
|
+
return [];
|
|
735
|
+
}
|
|
736
|
+
if (needles.match(' ') === null) {
|
|
737
|
+
var re = new RegExp('(' + escapeRegExp(needles) + ')', 'gi');
|
|
738
|
+
return text.split(re);
|
|
739
|
+
}
|
|
740
|
+
var splitNeedles = needles
|
|
741
|
+
.split(' ')
|
|
742
|
+
.filter(function (s) { return !isStringEmpty(s); })
|
|
743
|
+
.sort(function (a, b) { return b.length - a.length; }), ret = [text];
|
|
744
|
+
try {
|
|
745
|
+
for (var splitNeedles_2 = __values(splitNeedles), splitNeedles_2_1 = splitNeedles_2.next(); !splitNeedles_2_1.done; splitNeedles_2_1 = splitNeedles_2.next()) {
|
|
746
|
+
var needle = splitNeedles_2_1.value;
|
|
747
|
+
var re = new RegExp('(' + needle + ')', 'gi');
|
|
748
|
+
for (var index = 0; index < ret.length; index++) {
|
|
749
|
+
var currentText = ret[index];
|
|
750
|
+
if (isMatching(currentText, escapeRegExp(needles))) {
|
|
751
|
+
continue;
|
|
752
|
+
}
|
|
753
|
+
var newParts = currentText.split(re).filter(function (s) { return s !== ''; });
|
|
754
|
+
ret.splice.apply(ret, __spread([index, 1], newParts));
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
759
|
+
finally {
|
|
760
|
+
try {
|
|
761
|
+
if (splitNeedles_2_1 && !splitNeedles_2_1.done && (_a = splitNeedles_2.return)) _a.call(splitNeedles_2);
|
|
762
|
+
}
|
|
763
|
+
finally { if (e_2) throw e_2.error; }
|
|
764
|
+
}
|
|
765
|
+
return ret;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
/***/ }),
|
|
770
|
+
|
|
771
|
+
/***/ 6627:
|
|
772
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
773
|
+
|
|
774
|
+
"use strict";
|
|
775
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
776
|
+
/* harmony export */ "MR": () => (/* binding */ boundMethod),
|
|
777
|
+
/* harmony export */ "ZP": () => (/* binding */ autobind)
|
|
778
|
+
/* harmony export */ });
|
|
779
|
+
/* unused harmony export boundClass */
|
|
780
|
+
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4329);
|
|
781
|
+
|
|
782
|
+
|
|
783
|
+
function _typeof(obj) {
|
|
784
|
+
if (typeof Symbol === "function" && (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(Symbol.iterator) === "symbol") {
|
|
785
|
+
_typeof = function _typeof(obj) {
|
|
786
|
+
return (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
|
|
787
|
+
};
|
|
788
|
+
} else {
|
|
789
|
+
_typeof = function _typeof(obj) {
|
|
790
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
|
|
791
|
+
};
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
return _typeof(obj);
|
|
795
|
+
}
|
|
796
|
+
/**
|
|
797
|
+
* Return a descriptor removing the value and returning a getter
|
|
798
|
+
* The getter will return a .bind version of the function
|
|
799
|
+
* and memoize the result against a symbol on the instance
|
|
800
|
+
*/
|
|
801
|
+
|
|
802
|
+
|
|
803
|
+
function boundMethod(target, key, descriptor) {
|
|
804
|
+
var fn = descriptor.value;
|
|
805
|
+
|
|
806
|
+
if (typeof fn !== 'function') {
|
|
807
|
+
throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(_typeof(fn)));
|
|
808
|
+
} // In IE11 calling Object.defineProperty has a side-effect of evaluating the
|
|
809
|
+
// getter for the property which is being replaced. This causes infinite
|
|
810
|
+
// recursion and an "Out of stack space" error.
|
|
811
|
+
|
|
812
|
+
|
|
813
|
+
var definingProperty = false;
|
|
814
|
+
return {
|
|
815
|
+
configurable: true,
|
|
816
|
+
get: function get() {
|
|
817
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
818
|
+
if (definingProperty || this === target.prototype || this.hasOwnProperty(key) || typeof fn !== 'function') {
|
|
819
|
+
return fn;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
var boundFn = fn.bind(this);
|
|
823
|
+
definingProperty = true;
|
|
824
|
+
Object.defineProperty(this, key, {
|
|
825
|
+
configurable: true,
|
|
826
|
+
get: function get() {
|
|
827
|
+
return boundFn;
|
|
828
|
+
},
|
|
829
|
+
set: function set(value) {
|
|
830
|
+
fn = value;
|
|
831
|
+
delete this[key];
|
|
832
|
+
}
|
|
833
|
+
});
|
|
834
|
+
definingProperty = false;
|
|
835
|
+
return boundFn;
|
|
836
|
+
},
|
|
837
|
+
set: function set(value) {
|
|
838
|
+
fn = value;
|
|
839
|
+
}
|
|
840
|
+
};
|
|
841
|
+
}
|
|
842
|
+
/**
|
|
843
|
+
* Use boundMethod to bind all methods on the target.prototype
|
|
844
|
+
*/
|
|
845
|
+
|
|
846
|
+
function boundClass(target) {
|
|
847
|
+
// (Using reflect to get all keys including symbols)
|
|
848
|
+
var keys; // Use Reflect if exists
|
|
849
|
+
|
|
850
|
+
if (typeof Reflect !== 'undefined' && typeof Reflect.ownKeys === 'function') {
|
|
851
|
+
keys = Reflect.ownKeys(target.prototype);
|
|
852
|
+
} else {
|
|
853
|
+
keys = Object.getOwnPropertyNames(target.prototype); // Use symbols if support is provided
|
|
854
|
+
|
|
855
|
+
if (typeof Object.getOwnPropertySymbols === 'function') {
|
|
856
|
+
keys = keys.concat(Object.getOwnPropertySymbols(target.prototype));
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
keys.forEach(function (key) {
|
|
861
|
+
// Ignore special case target method
|
|
862
|
+
if (key === 'constructor') {
|
|
863
|
+
return;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
var descriptor = Object.getOwnPropertyDescriptor(target.prototype, key); // Only methods need binding
|
|
867
|
+
|
|
868
|
+
if (typeof descriptor.value === 'function') {
|
|
869
|
+
Object.defineProperty(target.prototype, key, boundMethod(target, key, descriptor));
|
|
870
|
+
}
|
|
871
|
+
});
|
|
872
|
+
return target;
|
|
873
|
+
}
|
|
874
|
+
function autobind() {
|
|
875
|
+
if (arguments.length === 1) {
|
|
876
|
+
return boundClass.apply(void 0, arguments);
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
return boundMethod.apply(void 0, arguments);
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
/***/ }),
|
|
883
|
+
|
|
884
|
+
/***/ 8427:
|
|
885
|
+
/***/ ((module) => {
|
|
886
|
+
|
|
887
|
+
"use strict";
|
|
888
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__8427__;
|
|
889
|
+
|
|
890
|
+
/***/ }),
|
|
891
|
+
|
|
892
|
+
/***/ 5692:
|
|
893
|
+
/***/ ((module) => {
|
|
894
|
+
|
|
895
|
+
"use strict";
|
|
896
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;
|
|
897
|
+
|
|
898
|
+
/***/ }),
|
|
899
|
+
|
|
900
|
+
/***/ 8310:
|
|
901
|
+
/***/ ((module) => {
|
|
902
|
+
|
|
903
|
+
"use strict";
|
|
904
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;
|
|
905
|
+
|
|
906
|
+
/***/ }),
|
|
907
|
+
|
|
908
|
+
/***/ 8156:
|
|
909
|
+
/***/ ((module) => {
|
|
910
|
+
|
|
911
|
+
"use strict";
|
|
912
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;
|
|
913
|
+
|
|
914
|
+
/***/ }),
|
|
915
|
+
|
|
916
|
+
/***/ 1738:
|
|
917
|
+
/***/ ((module) => {
|
|
918
|
+
|
|
919
|
+
"use strict";
|
|
920
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__1738__;
|
|
921
|
+
|
|
922
|
+
/***/ }),
|
|
923
|
+
|
|
924
|
+
/***/ 1553:
|
|
925
|
+
/***/ ((module) => {
|
|
926
|
+
|
|
927
|
+
"use strict";
|
|
928
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__1553__;
|
|
929
|
+
|
|
930
|
+
/***/ }),
|
|
931
|
+
|
|
932
|
+
/***/ 4329:
|
|
933
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
934
|
+
|
|
935
|
+
"use strict";
|
|
936
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
937
|
+
/* harmony export */ "Z": () => (/* binding */ _typeof)
|
|
938
|
+
/* harmony export */ });
|
|
939
|
+
function _typeof(obj) {
|
|
940
|
+
"@babel/helpers - typeof";
|
|
941
|
+
|
|
942
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
943
|
+
_typeof = function _typeof(obj) {
|
|
944
|
+
return typeof obj;
|
|
945
|
+
};
|
|
946
|
+
} else {
|
|
947
|
+
_typeof = function _typeof(obj) {
|
|
948
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
949
|
+
};
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
return _typeof(obj);
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
/***/ })
|
|
956
|
+
|
|
957
|
+
/******/ });
|
|
958
|
+
/************************************************************************/
|
|
959
|
+
/******/ // The module cache
|
|
960
|
+
/******/ var __webpack_module_cache__ = {};
|
|
961
|
+
/******/
|
|
962
|
+
/******/ // The require function
|
|
963
|
+
/******/ function __webpack_require__(moduleId) {
|
|
964
|
+
/******/ // Check if module is in cache
|
|
965
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
966
|
+
/******/ if (cachedModule !== undefined) {
|
|
967
|
+
/******/ return cachedModule.exports;
|
|
968
|
+
/******/ }
|
|
969
|
+
/******/ // Create a new module (and put it into the cache)
|
|
970
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
971
|
+
/******/ // no module.id needed
|
|
972
|
+
/******/ // no module.loaded needed
|
|
973
|
+
/******/ exports: {}
|
|
974
|
+
/******/ };
|
|
975
|
+
/******/
|
|
976
|
+
/******/ // Execute the module function
|
|
977
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
978
|
+
/******/
|
|
979
|
+
/******/ // Return the exports of the module
|
|
980
|
+
/******/ return module.exports;
|
|
981
|
+
/******/ }
|
|
982
|
+
/******/
|
|
983
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
984
|
+
/******/ __webpack_require__.m = __webpack_modules__;
|
|
985
|
+
/******/
|
|
986
|
+
/************************************************************************/
|
|
987
|
+
/******/ /* webpack/runtime/chunk loaded */
|
|
988
|
+
/******/ (() => {
|
|
989
|
+
/******/ var deferred = [];
|
|
990
|
+
/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
|
|
991
|
+
/******/ if(chunkIds) {
|
|
992
|
+
/******/ priority = priority || 0;
|
|
993
|
+
/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
|
|
994
|
+
/******/ deferred[i] = [chunkIds, fn, priority];
|
|
995
|
+
/******/ return;
|
|
996
|
+
/******/ }
|
|
997
|
+
/******/ var notFulfilled = Infinity;
|
|
998
|
+
/******/ for (var i = 0; i < deferred.length; i++) {
|
|
999
|
+
/******/ var [chunkIds, fn, priority] = deferred[i];
|
|
1000
|
+
/******/ var fulfilled = true;
|
|
1001
|
+
/******/ for (var j = 0; j < chunkIds.length; j++) {
|
|
1002
|
+
/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
|
|
1003
|
+
/******/ chunkIds.splice(j--, 1);
|
|
1004
|
+
/******/ } else {
|
|
1005
|
+
/******/ fulfilled = false;
|
|
1006
|
+
/******/ if(priority < notFulfilled) notFulfilled = priority;
|
|
1007
|
+
/******/ }
|
|
1008
|
+
/******/ }
|
|
1009
|
+
/******/ if(fulfilled) {
|
|
1010
|
+
/******/ deferred.splice(i--, 1)
|
|
1011
|
+
/******/ var r = fn();
|
|
1012
|
+
/******/ if (r !== undefined) result = r;
|
|
1013
|
+
/******/ }
|
|
1014
|
+
/******/ }
|
|
1015
|
+
/******/ return result;
|
|
1016
|
+
/******/ };
|
|
1017
|
+
/******/ })();
|
|
1018
|
+
/******/
|
|
1019
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
1020
|
+
/******/ (() => {
|
|
1021
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
1022
|
+
/******/ __webpack_require__.n = (module) => {
|
|
1023
|
+
/******/ var getter = module && module.__esModule ?
|
|
1024
|
+
/******/ () => (module['default']) :
|
|
1025
|
+
/******/ () => (module);
|
|
1026
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
1027
|
+
/******/ return getter;
|
|
1028
|
+
/******/ };
|
|
1029
|
+
/******/ })();
|
|
1030
|
+
/******/
|
|
1031
|
+
/******/ /* webpack/runtime/define property getters */
|
|
1032
|
+
/******/ (() => {
|
|
1033
|
+
/******/ // define getter functions for harmony exports
|
|
1034
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
1035
|
+
/******/ for(var key in definition) {
|
|
1036
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
1037
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
1038
|
+
/******/ }
|
|
1039
|
+
/******/ }
|
|
1040
|
+
/******/ };
|
|
1041
|
+
/******/ })();
|
|
1042
|
+
/******/
|
|
1043
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
1044
|
+
/******/ (() => {
|
|
1045
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
1046
|
+
/******/ })();
|
|
1047
|
+
/******/
|
|
1048
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
1049
|
+
/******/ (() => {
|
|
1050
|
+
/******/ // define __esModule on exports
|
|
1051
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
1052
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
1053
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
1054
|
+
/******/ }
|
|
1055
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
1056
|
+
/******/ };
|
|
1057
|
+
/******/ })();
|
|
1058
|
+
/******/
|
|
1059
|
+
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
1060
|
+
/******/ (() => {
|
|
1061
|
+
/******/ // no baseURI
|
|
1062
|
+
/******/
|
|
1063
|
+
/******/ // object to store loaded and loading chunks
|
|
1064
|
+
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
1065
|
+
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
|
1066
|
+
/******/ var installedChunks = {
|
|
1067
|
+
/******/ 4659: 0,
|
|
1068
|
+
/******/ 4953: 0,
|
|
1069
|
+
/******/ 1981: 0
|
|
1070
|
+
/******/ };
|
|
1071
|
+
/******/
|
|
1072
|
+
/******/ // no chunk on demand loading
|
|
1073
|
+
/******/
|
|
1074
|
+
/******/ // no prefetching
|
|
1075
|
+
/******/
|
|
1076
|
+
/******/ // no preloaded
|
|
1077
|
+
/******/
|
|
1078
|
+
/******/ // no HMR
|
|
1079
|
+
/******/
|
|
1080
|
+
/******/ // no HMR manifest
|
|
1081
|
+
/******/
|
|
1082
|
+
/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
|
|
1083
|
+
/******/
|
|
1084
|
+
/******/ // install a JSONP callback for chunk loading
|
|
1085
|
+
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
|
|
1086
|
+
/******/ var [chunkIds, moreModules, runtime] = data;
|
|
1087
|
+
/******/ // add "moreModules" to the modules object,
|
|
1088
|
+
/******/ // then flag all "chunkIds" as loaded and fire callback
|
|
1089
|
+
/******/ var moduleId, chunkId, i = 0;
|
|
1090
|
+
/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
|
|
1091
|
+
/******/ for(moduleId in moreModules) {
|
|
1092
|
+
/******/ if(__webpack_require__.o(moreModules, moduleId)) {
|
|
1093
|
+
/******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
|
|
1094
|
+
/******/ }
|
|
1095
|
+
/******/ }
|
|
1096
|
+
/******/ if(runtime) var result = runtime(__webpack_require__);
|
|
1097
|
+
/******/ }
|
|
1098
|
+
/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
|
|
1099
|
+
/******/ for(;i < chunkIds.length; i++) {
|
|
1100
|
+
/******/ chunkId = chunkIds[i];
|
|
1101
|
+
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
|
|
1102
|
+
/******/ installedChunks[chunkId][0]();
|
|
1103
|
+
/******/ }
|
|
1104
|
+
/******/ installedChunks[chunkIds[i]] = 0;
|
|
1105
|
+
/******/ }
|
|
1106
|
+
/******/ return __webpack_require__.O(result);
|
|
1107
|
+
/******/ }
|
|
1108
|
+
/******/
|
|
1109
|
+
/******/ var chunkLoadingGlobal = self["webpackChunkatoka_design_system"] = self["webpackChunkatoka_design_system"] || [];
|
|
1110
|
+
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
|
|
1111
|
+
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
|
|
1112
|
+
/******/ })();
|
|
1113
|
+
/******/
|
|
1114
|
+
/************************************************************************/
|
|
1115
|
+
/******/
|
|
1116
|
+
/******/ // startup
|
|
1117
|
+
/******/ // Load entry module and return exports
|
|
1118
|
+
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
1119
|
+
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, [1981], () => (__webpack_require__(5447)))
|
|
1120
|
+
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
|
1121
|
+
/******/
|
|
1122
|
+
/******/ return __webpack_exports__;
|
|
1123
|
+
/******/ })()
|
|
1124
|
+
;
|
|
1125
|
+
});
|
|
1126
|
+
//# sourceMappingURL=index.js.map
|