@spaziodati/atoka-design-system 2.1.2 → 2.1.5
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/index.js +145 -141
- package/AddableItems/index.js.map +1 -1
- package/Alert/index.js +6 -4
- package/Alert/index.js.map +1 -1
- package/Badge/index.js +4 -4
- package/Badge/index.js.map +1 -1
- package/Bs4V3Wrapper/index.js +6 -4
- package/Bs4V3Wrapper/index.js.map +1 -1
- package/BubbleChart/index.js +1729 -2098
- package/BubbleChart/index.js.map +1 -1
- package/Button/Button.storiesConfig.d.ts +0 -10
- package/Button/index.js +9 -7
- package/Button/index.js.map +1 -1
- package/ButtonDropdown/index.js +131 -133
- package/ButtonDropdown/index.js.map +1 -1
- package/CardsPage/index.js +227 -233
- package/CardsPage/index.js.map +1 -1
- package/CursorPagination/index.js +132 -136
- package/CursorPagination/index.js.map +1 -1
- package/DatePicker/index.js +123 -126
- package/DatePicker/index.js.map +1 -1
- package/DetailPage/index.js +1353 -1429
- package/DetailPage/index.js.map +1 -1
- package/Dropdown/index.js +133 -133
- package/Dropdown/index.js.map +1 -1
- package/EditableString/index.js +2400 -2483
- package/EditableString/index.js.map +1 -1
- package/EllipsableContent/index.js +14 -12
- package/EllipsableContent/index.js.map +1 -1
- package/EmptyState/index.js +6 -4
- package/EmptyState/index.js.map +1 -1
- package/Facet/index.js +149 -144
- package/Facet/index.js.map +1 -1
- package/FacetSection/index.js +15 -11
- package/FacetSection/index.js.map +1 -1
- package/FadeAnimation/index.js +660 -731
- package/FadeAnimation/index.js.map +1 -1
- package/FeedbackButton/index.js +10 -8
- package/FeedbackButton/index.js.map +1 -1
- package/Form/index.js +7 -7
- package/Form/index.js.map +1 -1
- package/Funnel/index.js +2854 -3227
- package/Funnel/index.js.map +1 -1
- package/GridCard/index.js +162 -154
- package/GridCard/index.js.map +1 -1
- package/HighlightableText/index.js +138 -137
- package/HighlightableText/index.js.map +1 -1
- package/Histogram/index.js +1168 -1180
- package/Histogram/index.js.map +1 -1
- package/InlineStringEditor/index.js +183 -203
- package/InlineStringEditor/index.js.map +1 -1
- package/InputGroup/index.js +3 -3
- package/InputGroup/index.js.map +1 -1
- package/Jumbotron/index.js +7 -5
- package/Jumbotron/index.js.map +1 -1
- package/Map/Map.d.ts +3 -3
- package/Map/Types.d.ts +2 -2
- package/Map/index.js +4200 -3823
- package/Map/index.js.map +1 -1
- package/Modal/index.js +12 -10
- package/Modal/index.js.map +1 -1
- package/Navbar/index.js +2426 -2517
- package/Navbar/index.js.map +1 -1
- package/Pagination/index.js +132 -136
- package/Pagination/index.js.map +1 -1
- package/PieChart/index.js +204 -219
- package/PieChart/index.js.map +1 -1
- package/PublicFooter/index.js +14 -10
- package/PublicFooter/index.js.map +1 -1
- package/PublicNavbar/index.js +6 -4
- package/PublicNavbar/index.js.map +1 -1
- package/README.md +5 -2
- package/RecordBit/index.js +15 -11
- package/RecordBit/index.js.map +1 -1
- package/ResultItemCard/index.js +25 -19
- package/ResultItemCard/index.js.map +1 -1
- package/SelectDropdown/index.js +171 -185
- package/SelectDropdown/index.js.map +1 -1
- package/Spinner/index.js +6 -4
- package/Spinner/index.js.map +1 -1
- package/StatisticsItemCard/index.js +170 -160
- package/StatisticsItemCard/index.js.map +1 -1
- package/StatisticsItemNumeric/index.js +6 -4
- package/StatisticsItemNumeric/index.js.map +1 -1
- package/StatisticsLegend/index.js +173 -189
- package/StatisticsLegend/index.js.map +1 -1
- package/StatisticsTooltip/index.js +15 -15
- package/StatisticsTooltip/index.js.map +1 -1
- package/Suggester/getRenderCustomMultiValueWithIcon.d.ts +1 -1
- package/Suggester/index.js +160 -160
- package/Suggester/index.js.map +1 -1
- package/SunBurst/index.js +140 -144
- package/SunBurst/index.js.map +1 -1
- package/TabSwitcher/index.js +144 -144
- package/TabSwitcher/index.js.map +1 -1
- package/Title/index.js +8 -6
- package/Title/index.js.map +1 -1
- package/Toasts/Toast.d.ts +41 -0
- package/Toasts/ToastContainer.d.ts +4 -0
- package/Toasts/ToastHeader.d.ts +7 -0
- package/Toasts/index.d.ts +2 -0
- package/Toasts/index.js +2285 -0
- package/Toasts/index.js.map +1 -0
- package/ToggleButtonGroup/index.js +128 -130
- package/ToggleButtonGroup/index.js.map +1 -1
- package/Tooltip/index.js +3 -3
- package/Tooltip/index.js.map +1 -1
- package/Utils/index.js +1049 -1426
- package/Utils/index.js.map +1 -1
- package/{atoka-design-system-2.1.2.min.css → atoka-design-system-2.1.5.min.css} +1 -1
- package/index.d.ts +1 -0
- package/index.js +13126 -11649
- package/index.js.map +1 -1
- package/package.json +48 -40
- package/styles/atoka-bs.less +1 -1
- package/styles/variant-mixins.less +7 -7
package/FacetSection/index.js
CHANGED
|
@@ -12,7 +12,7 @@ return /******/ (() => { // webpackBootstrap
|
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
14
14
|
|
|
15
|
-
/***/
|
|
15
|
+
/***/ 2950:
|
|
16
16
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17
17
|
|
|
18
18
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
@@ -34,7 +34,7 @@ FacetItemCount.displayName = 'FacetItemCount';
|
|
|
34
34
|
|
|
35
35
|
/***/ }),
|
|
36
36
|
|
|
37
|
-
/***/
|
|
37
|
+
/***/ 4944:
|
|
38
38
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
39
39
|
|
|
40
40
|
// ESM COMPAT FLAG
|
|
@@ -58,18 +58,20 @@ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_cl
|
|
|
58
58
|
var external_react_ = __webpack_require__(8156);
|
|
59
59
|
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
60
60
|
// EXTERNAL MODULE: ./src/components/Facet/FacetItemCount.tsx
|
|
61
|
-
var FacetItemCount = __webpack_require__(
|
|
61
|
+
var FacetItemCount = __webpack_require__(2950);
|
|
62
62
|
// EXTERNAL MODULE: ./src/components/Title/index.ts
|
|
63
|
-
var Title = __webpack_require__(
|
|
63
|
+
var Title = __webpack_require__(3932);
|
|
64
64
|
;// CONCATENATED MODULE: ./src/components/FacetSection/FacetSection.tsx
|
|
65
65
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
66
66
|
var extendStatics = function (d, b) {
|
|
67
67
|
extendStatics = Object.setPrototypeOf ||
|
|
68
68
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
69
|
-
function (d, b) { for (var p in b) if (
|
|
69
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
70
70
|
return extendStatics(d, b);
|
|
71
71
|
};
|
|
72
72
|
return function (d, b) {
|
|
73
|
+
if (typeof b !== "function" && b !== null)
|
|
74
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
73
75
|
extendStatics(d, b);
|
|
74
76
|
function __() { this.constructor = d; }
|
|
75
77
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -139,7 +141,7 @@ var FacetSection = /** @class */ (function (_super) {
|
|
|
139
141
|
|
|
140
142
|
/***/ }),
|
|
141
143
|
|
|
142
|
-
/***/
|
|
144
|
+
/***/ 38:
|
|
143
145
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
144
146
|
|
|
145
147
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
@@ -155,10 +157,12 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
|
155
157
|
var extendStatics = function (d, b) {
|
|
156
158
|
extendStatics = Object.setPrototypeOf ||
|
|
157
159
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
158
|
-
function (d, b) { for (var p in b) if (
|
|
160
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
159
161
|
return extendStatics(d, b);
|
|
160
162
|
};
|
|
161
163
|
return function (d, b) {
|
|
164
|
+
if (typeof b !== "function" && b !== null)
|
|
165
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
162
166
|
extendStatics(d, b);
|
|
163
167
|
function __() { this.constructor = d; }
|
|
164
168
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -224,13 +228,13 @@ var Title = /** @class */ (function (_super) {
|
|
|
224
228
|
|
|
225
229
|
/***/ }),
|
|
226
230
|
|
|
227
|
-
/***/
|
|
231
|
+
/***/ 3932:
|
|
228
232
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
229
233
|
|
|
230
234
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
231
235
|
/* harmony export */ "Title": () => (/* reexport safe */ _Title__WEBPACK_IMPORTED_MODULE_0__.D)
|
|
232
236
|
/* harmony export */ });
|
|
233
|
-
/* harmony import */ var _Title__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
237
|
+
/* harmony import */ var _Title__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(38);
|
|
234
238
|
|
|
235
239
|
|
|
236
240
|
|
|
@@ -383,7 +387,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;
|
|
|
383
387
|
/******/ var installedChunks = {
|
|
384
388
|
/******/ 9727: 0,
|
|
385
389
|
/******/ 7564: 0,
|
|
386
|
-
/******/
|
|
390
|
+
/******/ 6999: 0
|
|
387
391
|
/******/ };
|
|
388
392
|
/******/
|
|
389
393
|
/******/ // no chunk on demand loading
|
|
@@ -433,7 +437,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;
|
|
|
433
437
|
/******/ // startup
|
|
434
438
|
/******/ // Load entry module and return exports
|
|
435
439
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
436
|
-
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, [
|
|
440
|
+
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, [6999], () => (__webpack_require__(4944)))
|
|
437
441
|
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
|
438
442
|
/******/
|
|
439
443
|
/******/ return __webpack_exports__;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FacetSection/index.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;;;;;;;;;;;;;ACVoC;AACV;AAEK;AAOxB,IAAM,cAAc,GAAiC,iDAAU,CAAC,UAAC,KAAK;IACzE,IAAM,SAAS,GAAW,iDAAU,CAAC,kBAAkB,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAC1E,OAAO,oEAAK,SAAS,EAAE,SAAS,IAAG,KAAK,CAAC,KAAK,CAAO,CAAC;AAC1D,CAAC,CAAC,CAAC;AAEH,cAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACdmB;AACF;AACA;AAC3B;AACV;AAE6B;AACxB;AAGF;AAY7B;IAAkC,gCAAsC;IAAxE;;IAoEA,CAAC;IAjEa,sCAAe,GAAzB;QACI,IACI,IAAI,CAAC,KAAK,CAAC,WAAW,KAAK,KAAK;YAChC,IAAI,CAAC,KAAK,CAAC,eAAe,IAAI,IAAI;YAClC,IAAI,CAAC,KAAK,CAAC,eAAe,KAAK,CAAC,EAClC;YACE,OAAO,IAAI,CAAC;SACf;QAED,OAAO,uCAAC,oCAAc,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,eAAe,GAAI,CAAC;IACjE,CAAC;IAES,yCAAkB,GAA5B;QACI,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,IAAI,EAAE;YACzB,OAAO,CACH,uCAAC,WAAK,IAAC,IAAI,EAAC,IAAI,EAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAA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ACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;;;;;UElDA;UACA;UACA;UACA;UACA","sources":["webpack://atoka-design-system/webpack/universalModuleDefinition","webpack://atoka-design-system/./src/components/Facet/FacetItemCount.tsx","webpack://atoka-design-system/./src/components/FacetSection/FacetSection.tsx","webpack://atoka-design-system/./src/components/FacetSection/index.ts","webpack://atoka-design-system/./src/components/Title/Title.tsx","webpack://atoka-design-system/./src/components/Title/index.ts","webpack://atoka-design-system/external umd \"@fortawesome/pro-light-svg-icons/faMinus\"","webpack://atoka-design-system/external umd \"@fortawesome/pro-light-svg-icons/faPlus\"","webpack://atoka-design-system/external umd \"@fortawesome/react-fontawesome\"","webpack://atoka-design-system/external umd \"classnames\"","webpack://atoka-design-system/external umd \"react\"","webpack://atoka-design-system/webpack/bootstrap","webpack://atoka-design-system/webpack/runtime/chunk loaded","webpack://atoka-design-system/webpack/runtime/compat get default export","webpack://atoka-design-system/webpack/runtime/define property getters","webpack://atoka-design-system/webpack/runtime/hasOwnProperty shorthand","webpack://atoka-design-system/webpack/runtime/make namespace object","webpack://atoka-design-system/webpack/runtime/jsonp chunk loading","webpack://atoka-design-system/webpack/before-startup","webpack://atoka-design-system/webpack/startup","webpack://atoka-design-system/webpack/after-startup"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"@fortawesome/pro-light-svg-icons/faMinus\"), require(\"@fortawesome/pro-light-svg-icons/faPlus\"), require(\"@fortawesome/react-fontawesome\"), require(\"classnames\"), require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"atoka-design-system\", [\"@fortawesome/pro-light-svg-icons/faMinus\", \"@fortawesome/pro-light-svg-icons/faPlus\", \"@fortawesome/react-fontawesome\", \"classnames\", \"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"atoka-design-system\"] = factory(require(\"@fortawesome/pro-light-svg-icons/faMinus\"), require(\"@fortawesome/pro-light-svg-icons/faPlus\"), require(\"@fortawesome/react-fontawesome\"), require(\"classnames\"), require(\"react\"));\n\telse\n\t\troot[\"atoka-design-system\"] = factory(root[\"@fortawesome/pro-light-svg-icons/faMinus\"], root[\"@fortawesome/pro-light-svg-icons/faPlus\"], root[\"@fortawesome/react-fontawesome\"], root[\"classnames\"], root[\"react\"]);\n})(self, function(__WEBPACK_EXTERNAL_MODULE__1235__, __WEBPACK_EXTERNAL_MODULE__5037__, __WEBPACK_EXTERNAL_MODULE__5692__, __WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__) {\nreturn ","import classnames from 'classnames';\nimport React from 'react';\n\nimport './FacetItemCount.less';\n\nexport interface FacetItemCountrops {\n value: number;\n className?: string;\n}\n\nexport const FacetItemCount: React.FC<FacetItemCountrops> = React.memo((props): React.ReactElement => {\n const className: string = classnames('facet-item-count', props.className);\n return <div className={className}>{props.value}</div>;\n});\n\nFacetItemCount.displayName = 'FacetItemCount';\n","import {IconDefinition} from '@fortawesome/fontawesome-svg-core';\nimport {faMinus} from '@fortawesome/pro-light-svg-icons/faMinus';\nimport {faPlus} from '@fortawesome/pro-light-svg-icons/faPlus';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport classnames from 'classnames';\nimport React from 'react';\n\nimport {FacetItemCount} from '../Facet/FacetItemCount';\nimport {Title} from '../Title';\nimport {PropsWithClassName} from '../Utils';\n\nimport './FacetSection.less';\n\nexport interface FacetSectionProps extends PropsWithClassName {\n id: string;\n title: string;\n icon?: IconDefinition;\n titlePrefix?: React.ReactNode;\n isCollapsed: boolean;\n onToggleCollapsed: () => void;\n badgeItemsCount?: number;\n}\n\nexport class FacetSection extends React.PureComponent<FacetSectionProps> {\n static displayName: string = 'FacetSection';\n\n protected renderItemCount(): React.ReactNode {\n if (\n this.props.isCollapsed === false ||\n this.props.badgeItemsCount == null ||\n this.props.badgeItemsCount === 0\n ) {\n return null;\n }\n\n return <FacetItemCount value={this.props.badgeItemsCount} />;\n }\n\n protected renderTitleAndIcon(): React.ReactNode {\n if (this.props.icon != null) {\n return (\n <Title size='sm' icon={this.props.icon}>\n {this.props.title}\n </Title>\n );\n }\n\n if (this.props.titlePrefix != null) {\n return (\n <Title size='sm'>\n <span className='facet-section-title-prefix mr-2'>{this.props.titlePrefix}</span>\n {this.props.title}\n </Title>\n );\n }\n\n return <Title size='sm'>{this.props.title}</Title>;\n }\n\n private renderFacetSectionTitle(): React.ReactNode {\n return (\n <div className='facet-section-title d-flex justify-content-between' onClick={this.props.onToggleCollapsed}>\n <div>{this.renderTitleAndIcon()}</div>\n <div className='d-flex align-items-center'>\n {this.renderItemCount()}\n <FontAwesomeIcon icon={this.props.isCollapsed === true ? faPlus : faMinus} className='ml-2' />\n </div>\n </div>\n );\n }\n\n private renderFacets(): React.ReactNode {\n if (this.props.isCollapsed === true) {\n return null;\n }\n\n return <div className='facet-section-facet-list'>{this.props.children}</div>;\n }\n\n public render(): React.ReactNode {\n const className: string = classnames('facet-section', this.props.className, {\n 'facet-section-collapsed': this.props.isCollapsed,\n });\n\n return (\n <div className={className}>\n {this.renderFacetSectionTitle()}\n {this.renderFacets()}\n </div>\n );\n }\n}\n","export * from './FacetSection';\n","import React from 'react';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {IconDefinition} from '@fortawesome/pro-light-svg-icons';\nimport classnames from 'classnames';\nimport {PropsWithClassName} from '../Utils';\n\nimport './Title.less';\n\nexport interface TitleProps extends PropsWithClassName {\n icon?: IconDefinition;\n size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';\n style?: React.CSSProperties;\n}\n\nexport class Title extends React.PureComponent<TitleProps> {\n static displayName: string = 'Title';\n\n static defaultProps: TitleProps = {\n size: 'xxl',\n };\n\n private renderIcon(): React.ReactNode {\n if (this.props.icon == null) {\n return null;\n }\n\n let classNames = classnames({'mr-2': this.props.children !== '' && this.props.children != null});\n\n return <FontAwesomeIcon icon={this.props.icon} className={classNames} fixedWidth />;\n }\n\n private renderContent(): React.ReactNode {\n return (\n <>\n {this.renderIcon()}\n {this.props.children}\n </>\n );\n }\n\n public render(): React.ReactNode {\n let props = {className: this.props.className, style: this.props.style};\n\n switch (this.props.size) {\n case 'xs':\n return <h6 {...props}>{this.renderContent()}</h6>;\n case 'sm':\n return <h5 {...props}>{this.renderContent()}</h5>;\n case 'md':\n return <h4 {...props}>{this.renderContent()}</h4>;\n case 'lg':\n return <h3 {...props}>{this.renderContent()}</h3>;\n case 'xl':\n return <h2 {...props}>{this.renderContent()}</h2>;\n default:\n return <h1 {...props}>{this.renderContent()}</h1>;\n }\n }\n}\n","export {Title} from './Title';\n","module.exports = __WEBPACK_EXTERNAL_MODULE__1235__;","module.exports = __WEBPACK_EXTERNAL_MODULE__5037__;","module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t9727: 0,\n\t7564: 0,\n\t2210: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkIds[i]] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkatoka_design_system\"] = self[\"webpackChunkatoka_design_system\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [2210], () => (__webpack_require__(5232)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":[],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"FacetSection/index.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;;;;;;;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,KAAK,GAAG,IAAI,CAAC,aAAa,EAAE,CAAM,CAAC;SACzD;IACL,CAAC;IA1CM,iBAAW,GAAW,OAAO,CAAC;IAE9B,kBAAY,GAAe;QAC9B,IAAI,EAAE,KAAK;KACd,CAAC;IAuCN,YAAC;CAAA,CA5C0B,4DAAmB,GA4C7C;AA5CiB;;;;;;;;;;;;ACdY;;;;;;;;ACA9B;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;;;;;UElDA;UACA;UACA;UACA;UACA","sources":["webpack://atoka-design-system/webpack/universalModuleDefinition","webpack://atoka-design-system/./src/components/Facet/FacetItemCount.tsx","webpack://atoka-design-system/./src/components/FacetSection/FacetSection.tsx","webpack://atoka-design-system/./src/components/FacetSection/index.ts","webpack://atoka-design-system/./src/components/Title/Title.tsx","webpack://atoka-design-system/./src/components/Title/index.ts","webpack://atoka-design-system/external umd \"@fortawesome/pro-light-svg-icons/faMinus\"","webpack://atoka-design-system/external umd \"@fortawesome/pro-light-svg-icons/faPlus\"","webpack://atoka-design-system/external umd \"@fortawesome/react-fontawesome\"","webpack://atoka-design-system/external umd \"classnames\"","webpack://atoka-design-system/external umd \"react\"","webpack://atoka-design-system/webpack/bootstrap","webpack://atoka-design-system/webpack/runtime/chunk loaded","webpack://atoka-design-system/webpack/runtime/compat get default export","webpack://atoka-design-system/webpack/runtime/define property getters","webpack://atoka-design-system/webpack/runtime/hasOwnProperty shorthand","webpack://atoka-design-system/webpack/runtime/make namespace object","webpack://atoka-design-system/webpack/runtime/jsonp chunk loading","webpack://atoka-design-system/webpack/before-startup","webpack://atoka-design-system/webpack/startup","webpack://atoka-design-system/webpack/after-startup"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"@fortawesome/pro-light-svg-icons/faMinus\"), require(\"@fortawesome/pro-light-svg-icons/faPlus\"), require(\"@fortawesome/react-fontawesome\"), require(\"classnames\"), require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"atoka-design-system\", [\"@fortawesome/pro-light-svg-icons/faMinus\", \"@fortawesome/pro-light-svg-icons/faPlus\", \"@fortawesome/react-fontawesome\", \"classnames\", \"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"atoka-design-system\"] = factory(require(\"@fortawesome/pro-light-svg-icons/faMinus\"), require(\"@fortawesome/pro-light-svg-icons/faPlus\"), require(\"@fortawesome/react-fontawesome\"), require(\"classnames\"), require(\"react\"));\n\telse\n\t\troot[\"atoka-design-system\"] = factory(root[\"@fortawesome/pro-light-svg-icons/faMinus\"], root[\"@fortawesome/pro-light-svg-icons/faPlus\"], root[\"@fortawesome/react-fontawesome\"], root[\"classnames\"], root[\"react\"]);\n})(self, function(__WEBPACK_EXTERNAL_MODULE__1235__, __WEBPACK_EXTERNAL_MODULE__5037__, __WEBPACK_EXTERNAL_MODULE__5692__, __WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__) {\nreturn ","import classnames from 'classnames';\nimport React from 'react';\n\nimport './FacetItemCount.less';\n\nexport interface FacetItemCountrops {\n value: number;\n className?: string;\n}\n\nexport const FacetItemCount: React.FC<FacetItemCountrops> = React.memo((props): React.ReactElement => {\n const className: string = classnames('facet-item-count', props.className);\n return <div className={className}>{props.value}</div>;\n});\n\nFacetItemCount.displayName = 'FacetItemCount';\n","import {IconDefinition} from '@fortawesome/fontawesome-svg-core';\nimport {faMinus} from '@fortawesome/pro-light-svg-icons/faMinus';\nimport {faPlus} from '@fortawesome/pro-light-svg-icons/faPlus';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport classnames from 'classnames';\nimport React from 'react';\n\nimport {FacetItemCount} from '../Facet/FacetItemCount';\nimport {Title} from '../Title';\nimport {PropsWithClassName} from '../Utils';\n\nimport './FacetSection.less';\n\nexport interface FacetSectionProps extends PropsWithClassName {\n id: string;\n title: string;\n icon?: IconDefinition;\n titlePrefix?: React.ReactNode;\n isCollapsed: boolean;\n onToggleCollapsed: () => void;\n badgeItemsCount?: number;\n}\n\nexport class FacetSection extends React.PureComponent<FacetSectionProps> {\n static displayName: string = 'FacetSection';\n\n protected renderItemCount(): React.ReactNode {\n if (\n this.props.isCollapsed === false ||\n this.props.badgeItemsCount == null ||\n this.props.badgeItemsCount === 0\n ) {\n return null;\n }\n\n return <FacetItemCount value={this.props.badgeItemsCount} />;\n }\n\n protected renderTitleAndIcon(): React.ReactNode {\n if (this.props.icon != null) {\n return (\n <Title size='sm' icon={this.props.icon}>\n {this.props.title}\n </Title>\n );\n }\n\n if (this.props.titlePrefix != null) {\n return (\n <Title size='sm'>\n <span className='facet-section-title-prefix mr-2'>{this.props.titlePrefix}</span>\n {this.props.title}\n </Title>\n );\n }\n\n return <Title size='sm'>{this.props.title}</Title>;\n }\n\n private renderFacetSectionTitle(): React.ReactNode {\n return (\n <div className='facet-section-title d-flex justify-content-between' onClick={this.props.onToggleCollapsed}>\n <div>{this.renderTitleAndIcon()}</div>\n <div className='d-flex align-items-center'>\n {this.renderItemCount()}\n <FontAwesomeIcon icon={this.props.isCollapsed === true ? faPlus : faMinus} className='ml-2' />\n </div>\n </div>\n );\n }\n\n private renderFacets(): React.ReactNode {\n if (this.props.isCollapsed === true) {\n return null;\n }\n\n return <div className='facet-section-facet-list'>{this.props.children}</div>;\n }\n\n public render(): React.ReactNode {\n const className: string = classnames('facet-section', this.props.className, {\n 'facet-section-collapsed': this.props.isCollapsed,\n });\n\n return (\n <div className={className}>\n {this.renderFacetSectionTitle()}\n {this.renderFacets()}\n </div>\n );\n }\n}\n","export * from './FacetSection';\n","import React from 'react';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {IconDefinition} from '@fortawesome/pro-light-svg-icons';\nimport classnames from 'classnames';\nimport {PropsWithClassName} from '../Utils';\n\nimport './Title.less';\n\nexport interface TitleProps extends PropsWithClassName {\n icon?: IconDefinition;\n size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';\n style?: React.CSSProperties;\n}\n\nexport class Title extends React.PureComponent<TitleProps> {\n static displayName: string = 'Title';\n\n static defaultProps: TitleProps = {\n size: 'xxl',\n };\n\n private renderIcon(): React.ReactNode {\n if (this.props.icon == null) {\n return null;\n }\n\n let classNames = classnames({'mr-2': this.props.children !== '' && this.props.children != null});\n\n return <FontAwesomeIcon icon={this.props.icon} className={classNames} fixedWidth />;\n }\n\n private renderContent(): React.ReactNode {\n return (\n <>\n {this.renderIcon()}\n {this.props.children}\n </>\n );\n }\n\n public render(): React.ReactNode {\n let props = {className: this.props.className, style: this.props.style};\n\n switch (this.props.size) {\n case 'xs':\n return <h6 {...props}>{this.renderContent()}</h6>;\n case 'sm':\n return <h5 {...props}>{this.renderContent()}</h5>;\n case 'md':\n return <h4 {...props}>{this.renderContent()}</h4>;\n case 'lg':\n return <h3 {...props}>{this.renderContent()}</h3>;\n case 'xl':\n return <h2 {...props}>{this.renderContent()}</h2>;\n default:\n return <h1 {...props}>{this.renderContent()}</h1>;\n }\n }\n}\n","export {Title} from './Title';\n","module.exports = __WEBPACK_EXTERNAL_MODULE__1235__;","module.exports = __WEBPACK_EXTERNAL_MODULE__5037__;","module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t9727: 0,\n\t7564: 0,\n\t6999: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkIds[i]] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkatoka_design_system\"] = self[\"webpackChunkatoka_design_system\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [6999], () => (__webpack_require__(4944)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":[],"sourceRoot":""}
|