intelicoreact 1.4.76 → 1.4.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Atomic/FormElements/ActionAlert/ActionAlert.js +9 -1
- package/dist/Atomic/FormElements/AdvancedStatus/AdvancedStatus.js +10 -1
- package/dist/Atomic/FormElements/Calendar/Calendar.js +24 -4
- package/dist/Atomic/FormElements/CheckboxInput/CheckboxInput.js +10 -1
- package/dist/Atomic/FormElements/CheckboxesLine/CheckboxesLine.js +14 -2
- package/dist/Atomic/FormElements/Datepicker/Datepicker.js +54 -5
- package/dist/Atomic/FormElements/Datepicker/components/Calendar.js +21 -3
- package/dist/Atomic/FormElements/Dropdown/Dropdown.js +145 -52
- package/dist/Atomic/FormElements/Dropdown/components/DropdownLoader.js +7 -1
- package/dist/Atomic/FormElements/DropdownLiveSearch/DropdownLiveSearch.js +91 -25
- package/dist/Atomic/FormElements/FileLoader/FileLoader.js +15 -3
- package/dist/Atomic/FormElements/FileLoader/partial/LoadZone.js +29 -15
- package/dist/Atomic/FormElements/FileLoader/partial/LoadedContent.js +15 -5
- package/dist/Atomic/FormElements/FileLoaderDescription/FileLoaderDescription.js +23 -4
- package/dist/Atomic/FormElements/FileLoaderLocal/FileLoaderLocal.js +26 -6
- package/dist/Atomic/FormElements/FileLoaderLocalGroup/FileLoaderLocalGroup.js +38 -19
- package/dist/Atomic/FormElements/FormattedRawSSN/FormattedRawSSN.js +38 -9
- package/dist/Atomic/FormElements/Input/Input.js +60 -25
- package/dist/Atomic/FormElements/InputCalendar/InputCalendar.js +31 -4
- package/dist/Atomic/FormElements/InputColor/InputColor.js +14 -4
- package/dist/Atomic/FormElements/InputCurrency/InputCurrency.js +29 -6
- package/dist/Atomic/FormElements/InputDateRange/InputDateRange.js +43 -8
- package/dist/Atomic/FormElements/InputDateRange/components/DateInput.js +21 -3
- package/dist/Atomic/FormElements/InputDateRange/components/Datepicker.js +81 -58
- package/dist/Atomic/FormElements/InputDateRange/components/OpenedPart.js +41 -6
- package/dist/Atomic/FormElements/InputDateRange/components/SelectItem.js +8 -1
- package/dist/Atomic/FormElements/InputDateRange/dependencies.js +46 -16
- package/dist/Atomic/FormElements/InputLink/InputLink.js +23 -6
- package/dist/Atomic/FormElements/InputMask/InputCarretPosition.js +4 -0
- package/dist/Atomic/FormElements/InputMask/InputMask.js +208 -77
- package/dist/Atomic/FormElements/InputMask/functions.js +28 -2
- package/dist/Atomic/FormElements/InputMask2/InputMask2.js +119 -43
- package/dist/Atomic/FormElements/InputMask2/functions.js +28 -2
- package/dist/Atomic/FormElements/InputMask3/InputMask3.js +137 -44
- package/dist/Atomic/FormElements/InputMask3/functions.js +28 -2
- package/dist/Atomic/FormElements/InputWithAction/InputWithAction.js +17 -3
- package/dist/Atomic/FormElements/InputsRow/InputsRow.js +24 -5
- package/dist/Atomic/FormElements/Label/Label.js +9 -1
- package/dist/Atomic/FormElements/MobileCalendar/MobileCalendar.js +73 -35
- package/dist/Atomic/FormElements/MultiSelect/MultiSelect.js +15 -3
- package/dist/Atomic/FormElements/NumericInput/NumericInput.js +44 -23
- package/dist/Atomic/FormElements/RadioGroup/RadioGroup.js +17 -7
- package/dist/Atomic/FormElements/RadioGroupWithInput/RadioGroupWithInput.js +14 -3
- package/dist/Atomic/FormElements/RadioInput/RadioInput.js +10 -1
- package/dist/Atomic/FormElements/RadioRowSwitcher/RadioRowSwitcher.js +14 -3
- package/dist/Atomic/FormElements/RangeCalendar/RangeCalendar.js +23 -3
- package/dist/Atomic/FormElements/RangeInputs/RangeInputs.js +34 -17
- package/dist/Atomic/FormElements/RangeList/RangeList.js +25 -6
- package/dist/Atomic/FormElements/RangeList/partial/RangeListRow.js +11 -1
- package/dist/Atomic/FormElements/RangeSlider/RangeSlider.js +85 -14
- package/dist/Atomic/FormElements/RangeSlider2/RangeSlider2.js +132 -43
- package/dist/Atomic/FormElements/SwitchableRow/SwitchableRow.js +10 -1
- package/dist/Atomic/FormElements/Switcher/Switcher.js +10 -1
- package/dist/Atomic/FormElements/SwitcherCheckbox/SwitcherCheckbox.js +13 -1
- package/dist/Atomic/FormElements/SwitcherHide/SwitcherHide.js +10 -1
- package/dist/Atomic/FormElements/SwitcherRadio/SwitcherRadio.js +17 -2
- package/dist/Atomic/FormElements/SwitcherRange/SwitcherRange.js +17 -3
- package/dist/Atomic/FormElements/SwitcherRangeList/SwitcherRangeList.js +11 -1
- package/dist/Atomic/FormElements/SwitcherTagsDropdown/SwitcherTagsDropdown.js +29 -6
- package/dist/Atomic/FormElements/SwitcherTagsDropdown/partial/States.js +3 -2
- package/dist/Atomic/FormElements/SwitcherTextarea/SwitcherTextarea.js +12 -1
- package/dist/Atomic/FormElements/TagListToDropdown/TagListToDropdown.js +23 -6
- package/dist/Atomic/FormElements/TagsDropdown/TagsDropdown.js +223 -105
- package/dist/Atomic/FormElements/Text/Text.js +16 -10
- package/dist/Atomic/FormElements/TextSwitcher/TextSwitcher.js +9 -1
- package/dist/Atomic/FormElements/Textarea/Textarea.js +16 -5
- package/dist/Atomic/FormElements/TieredCheckboxes/TieredCheckboxes.js +35 -6
- package/dist/Atomic/FormElements/TieredCheckboxes/partial/AccordionWithCheckbox.js +13 -4
- package/dist/Atomic/FormElements/TimeRange/TimeRange.js +21 -7
- package/dist/Atomic/FormElements/UserContacts/UserContacts.js +35 -8
- package/dist/Atomic/FormElements/UserContacts/partial/defaultIcons.js +91 -0
- package/dist/Atomic/FormElements/VariantsListRadio/VariantsListRadio.js +18 -5
- package/dist/Atomic/FormElements/VariantsListRadio/partials/VariantsListRadioItem.js +10 -3
- package/dist/Atomic/FormElements/WidgetPseudoTable/WidgetPseudoTable.js +11 -3
- package/dist/Atomic/FormElements/WidgetPseudoTable/partial/constructor.js +2 -1
- package/dist/Atomic/FormElements/WidgetWithSwitchableRows/WidgetWithSwitchableRows.js +12 -5
- package/dist/Atomic/FormElements/WidgetWithSwitchableRows/partial/constructor.js +3 -3
- package/dist/Atomic/Layout/Header/Header.js +15 -3
- package/dist/Atomic/Layout/MainMenu/MainMenu.js +20 -3
- package/dist/Atomic/Layout/Spinner/Spinner.js +8 -1
- package/dist/Atomic/UI/Accordion/Accordion.js +19 -3
- package/dist/Atomic/UI/Accordion/AccordionItem.js +23 -9
- package/dist/Atomic/UI/AccordionTable/AccordionTable.js +32 -7
- package/dist/Atomic/UI/AccordionText/AccordionText.js +17 -3
- package/dist/Atomic/UI/AdvancedTag/AdvTag.js +21 -4
- package/dist/Atomic/UI/AdvancedTag/AdvancedTags.js +15 -3
- package/dist/Atomic/UI/Alert/Alert.js +19 -3
- package/dist/Atomic/UI/Arrow/Arrow.js +16 -3
- package/dist/Atomic/UI/Box/Box.js +9 -3
- package/dist/Atomic/UI/Button/Button.js +11 -2
- package/dist/Atomic/UI/ButtonsBar/ButtonsBar.js +10 -1
- package/dist/Atomic/UI/Chart/Chart.js +29 -4
- package/dist/Atomic/UI/Chart/partial/Chart.constants.js +19 -11
- package/dist/Atomic/UI/Chart/partial/ChartTypeSwitcherIcon/ChartTypeSwitcherIcon.js +12 -1
- package/dist/Atomic/UI/Chart/partial/datasetSetters.js +34 -11
- package/dist/Atomic/UI/Chart/partial/optionsConstructor.js +56 -82
- package/dist/Atomic/UI/Chart/partial/optionsSetters.js +19 -15
- package/dist/Atomic/UI/Chart/partial/utils.js +20 -6
- package/dist/Atomic/UI/CircleProgressBar/CircleProgressBar.js +13 -3
- package/dist/Atomic/UI/DateTime/DateTime.js +14 -3
- package/dist/Atomic/UI/DebugContainer/DebugContainer.js +16 -4
- package/dist/Atomic/UI/DebugContainer/useDebugContainer.js +11 -3
- package/dist/Atomic/UI/DoubleString/DoubleString.js +17 -5
- package/dist/Atomic/UI/DynamicIcon/DynamicIcon.js +10 -3
- package/dist/Atomic/UI/ExampleChartIntegration/ExampleChartIntegration.js +52 -17
- package/dist/Atomic/UI/ExampleChartIntegration/partial/utils.js +29 -1
- package/dist/Atomic/UI/Hint/Hint.js +39 -13
- package/dist/Atomic/UI/Hint/partials/_utils.js +19 -4
- package/dist/Atomic/UI/Modal/Modal.js +28 -6
- package/dist/Atomic/UI/Modal/ModalHOC.js +9 -1
- package/dist/Atomic/UI/Modal/partials/ModalFooter.js +7 -1
- package/dist/Atomic/UI/Modal/partials/ModalTitle.js +8 -1
- package/dist/Atomic/UI/Modal/partials/useMobileModal.js +49 -32
- package/dist/Atomic/UI/ModalBackup/Modal.js +174 -0
- package/dist/Atomic/UI/ModalBackup/Modal.scss +333 -0
- package/dist/Atomic/UI/ModalBackup/ModalHOC.js +51 -0
- package/dist/Atomic/UI/ModalBackup/partials/ModalFooter.js +24 -0
- package/dist/Atomic/UI/ModalBackup/partials/ModalTitle.js +41 -0
- package/dist/Atomic/UI/MonoAccordion/MonoAccordion.js +21 -6
- package/dist/Atomic/UI/NavLine/NavLine.js +55 -26
- package/dist/Atomic/UI/NavLine/Tabs.js +3 -2
- package/dist/Atomic/UI/PageTitle/PageTitle.js +10 -2
- package/dist/Atomic/UI/PieChart/PieChart.js +10 -1
- package/dist/Atomic/UI/Price/Price.js +8 -3
- package/dist/Atomic/UI/PriceRange/PriceRange.js +7 -1
- package/dist/Atomic/UI/ProgressLine/ProgressLine.js +16 -1
- package/dist/Atomic/UI/Status/Status.js +8 -1
- package/dist/Atomic/UI/Table/Partials/TdCell.js +29 -5
- package/dist/Atomic/UI/Table/Partials/TdHeader.js +11 -1
- package/dist/Atomic/UI/Table/Partials/TdRow.js +17 -5
- package/dist/Atomic/UI/Table/Partials/TdTitle.js +14 -3
- package/dist/Atomic/UI/Table/Table.js +12 -1
- package/dist/Atomic/UI/Table/TdTypes/TdActions.js +18 -2
- package/dist/Atomic/UI/Table/TdTypes/TdPriority.js +9 -1
- package/dist/Atomic/UI/Table/TdTypes/TdRange.js +4 -1
- package/dist/Atomic/UI/Table/TdTypes/TdWeight.js +13 -1
- package/dist/Atomic/UI/Tag/Tag.js +26 -11
- package/dist/Atomic/UI/TagList/TagList.js +52 -21
- package/dist/Atomic/UI/TagList/TagList.scss +3 -2
- package/dist/Atomic/UI/UserBox/UserBox.js +13 -1
- package/dist/Atomic/UI/WizardStepper/constructor.js +11 -3
- package/dist/Atomic/UI/WizardStepper/index.js +5 -1
- package/dist/Atomic/UI/WizardStepper/ui/StateIcon/StateIcon.js +10 -0
- package/dist/Atomic/UI/WizardStepper/ui/StateIcon/index.js +4 -1
- package/dist/Atomic/UI/WizardStepper/ui/StepRow/StepRow.js +17 -2
- package/dist/Atomic/UI/WizardStepper/ui/StepRow/index.js +5 -1
- package/dist/Atomic/UI/WizardStepper/ui/StepWrapper/StepWrapper.js +15 -1
- package/dist/Atomic/UI/WizardStepper/ui/StepWrapper/index.js +5 -1
- package/dist/Atomic/UI/WizardStepper/ui/icons.js +9 -2
- package/dist/Atomic/UI/WizardStepper/ui/index.js +5 -1
- package/dist/Classes/AbortableFetch.js +93 -36
- package/dist/Classes/AnimatedHandler.js +7 -3
- package/dist/Classes/RESTAPI/index.js +43 -39
- package/dist/Classes/RESTAPI/partials/AbortableFetch.js +93 -35
- package/dist/Classes/RESTAPI/partials/ApiBase.js +9 -1
- package/dist/Classes/RESTAPI/partials/ApiRequestCreators.js +32 -24
- package/dist/Classes/RESTAPI/partials/ApiUtils.js +41 -34
- package/dist/Classes/RESTAPI/partials/CredentialsProcessing.js +46 -21
- package/dist/Classes/RESTAPI/partials/Utils.js +19 -6
- package/dist/Classes/RESTAPI/partials/_outerDependencies.js +6 -2
- package/dist/Classes/RESTAPI/partials/_utils.js +39 -16
- package/dist/Constants/index.constants.js +15 -8
- package/dist/Functions/Portal.js +16 -5
- package/dist/Functions/customEventListener.js +17 -4
- package/dist/Functions/fieldValueFormatters.js +83 -43
- package/dist/Functions/hooks/useFormFieldsChangesManager.js +26 -23
- package/dist/Functions/locale/createTranslator.js +9 -4
- package/dist/Functions/operations.js +22 -12
- package/dist/Functions/presets/inputMaskPresets.js +11 -9
- package/dist/Functions/presets/inputPresets.js +11 -8
- package/dist/Functions/presets/mobileKeyboardTypesPresets.js +9 -7
- package/dist/Functions/schemas.js +13 -6
- package/dist/Functions/useBodyScrollLock.js +6 -1
- package/dist/Functions/useClickOutside.js +4 -0
- package/dist/Functions/useDebounce.js +7 -2
- package/dist/Functions/useFieldFocus.js +18 -6
- package/dist/Functions/useFormTools/form-drivers/ArrayWithObjects.js +9 -0
- package/dist/Functions/useFormTools/form-drivers/ObjectWithIterableObjects.js +23 -12
- package/dist/Functions/useFormTools/form-drivers/ObjectWithNamedKeyObjects.js +15 -6
- package/dist/Functions/useFormTools/functions/General.js +28 -18
- package/dist/Functions/useFormTools/functions/RenderFields.js +11 -2
- package/dist/Functions/useFormTools/functions/usePrevious.js +5 -1
- package/dist/Functions/useFormTools/index.js +144 -85
- package/dist/Functions/useInputHighlightError.js +12 -3
- package/dist/Functions/useIsMobile.js +13 -7
- package/dist/Functions/useKeyPress/useHandleKeyPress.js +7 -1
- package/dist/Functions/useKeyPress/useKeyPress.js +9 -1
- package/dist/Functions/useLocalStorage.js +9 -1
- package/dist/Functions/useLocationParams.js +5 -4
- package/dist/Functions/useMediaQuery.js +9 -3
- package/dist/Functions/useMetaInfo.js +10 -3
- package/dist/Functions/useMouseUpOutside.js +3 -0
- package/dist/Functions/useOnlineStatus.js +9 -1
- package/dist/Functions/usePasswordChecker.js +20 -4
- package/dist/Functions/usePrevious.js +5 -1
- package/dist/Functions/useResize.js +10 -2
- package/dist/Functions/useScrollTo.js +7 -2
- package/dist/Functions/useToggle.js +5 -1
- package/dist/Functions/utils.js +131 -56
- package/dist/Molecular/CustomIcons/components/AffiliateNetworks.js +9 -2
- package/dist/Molecular/CustomIcons/components/AlertCircle.js +9 -2
- package/dist/Molecular/CustomIcons/components/AppStore.js +9 -2
- package/dist/Molecular/CustomIcons/components/Arrow.js +9 -2
- package/dist/Molecular/CustomIcons/components/ArrowDown.js +9 -2
- package/dist/Molecular/CustomIcons/components/ArrowLeft.js +9 -2
- package/dist/Molecular/CustomIcons/components/ArrowRight.js +9 -2
- package/dist/Molecular/CustomIcons/components/ArrowUp.js +9 -2
- package/dist/Molecular/CustomIcons/components/Bell.js +9 -2
- package/dist/Molecular/CustomIcons/components/Button.js +9 -2
- package/dist/Molecular/CustomIcons/components/Campaigns.js +9 -2
- package/dist/Molecular/CustomIcons/components/Check.js +9 -2
- package/dist/Molecular/CustomIcons/components/Check2.js +9 -2
- package/dist/Molecular/CustomIcons/components/ChevronDown.js +9 -2
- package/dist/Molecular/CustomIcons/components/ChevronDownDisabled.js +9 -2
- package/dist/Molecular/CustomIcons/components/ChevronLeft.js +9 -2
- package/dist/Molecular/CustomIcons/components/ChevronRight.js +9 -2
- package/dist/Molecular/CustomIcons/components/ChevronUp.js +9 -2
- package/dist/Molecular/CustomIcons/components/ChevronUpDown.js +9 -2
- package/dist/Molecular/CustomIcons/components/Close.js +9 -2
- package/dist/Molecular/CustomIcons/components/ColumnsOrder.js +9 -2
- package/dist/Molecular/CustomIcons/components/Delete.js +9 -2
- package/dist/Molecular/CustomIcons/components/Edit.js +9 -2
- package/dist/Molecular/CustomIcons/components/Email.js +9 -2
- package/dist/Molecular/CustomIcons/components/FinturfLogo.js +9 -2
- package/dist/Molecular/CustomIcons/components/FinturfLogo2.js +9 -2
- package/dist/Molecular/CustomIcons/components/Flows.js +9 -2
- package/dist/Molecular/CustomIcons/components/Gift.js +9 -2
- package/dist/Molecular/CustomIcons/components/GoogleAuth.js +9 -2
- package/dist/Molecular/CustomIcons/components/GooglePlay.js +9 -2
- package/dist/Molecular/CustomIcons/components/HelpCircle.js +9 -2
- package/dist/Molecular/CustomIcons/components/HelpCircle2.js +9 -2
- package/dist/Molecular/CustomIcons/components/HelpCircleFilled.js +9 -2
- package/dist/Molecular/CustomIcons/components/Home.js +9 -2
- package/dist/Molecular/CustomIcons/components/Home2.js +9 -2
- package/dist/Molecular/CustomIcons/components/Key.js +9 -2
- package/dist/Molecular/CustomIcons/components/Landers.js +9 -2
- package/dist/Molecular/CustomIcons/components/Lock.js +9 -2
- package/dist/Molecular/CustomIcons/components/Mail.js +9 -2
- package/dist/Molecular/CustomIcons/components/Mastercard.js +9 -2
- package/dist/Molecular/CustomIcons/components/Minus.js +9 -2
- package/dist/Molecular/CustomIcons/components/Offers.js +9 -2
- package/dist/Molecular/CustomIcons/components/Pause.js +9 -2
- package/dist/Molecular/CustomIcons/components/PayPal.js +9 -2
- package/dist/Molecular/CustomIcons/components/PayPalLightLarge.js +9 -2
- package/dist/Molecular/CustomIcons/components/Phone.js +9 -2
- package/dist/Molecular/CustomIcons/components/Play.js +9 -2
- package/dist/Molecular/CustomIcons/components/Plus.js +9 -2
- package/dist/Molecular/CustomIcons/components/Profile.js +9 -2
- package/dist/Molecular/CustomIcons/components/QRCode.js +9 -2
- package/dist/Molecular/CustomIcons/components/Rectangle.js +9 -2
- package/dist/Molecular/CustomIcons/components/Revert.js +9 -2
- package/dist/Molecular/CustomIcons/components/Star.js +9 -2
- package/dist/Molecular/CustomIcons/components/Star2.js +9 -2
- package/dist/Molecular/CustomIcons/components/TrafficSources.js +9 -2
- package/dist/Molecular/CustomIcons/components/Trash.js +9 -2
- package/dist/Molecular/CustomIcons/components/TrashRed.js +9 -2
- package/dist/Molecular/CustomIcons/components/Triggers.js +9 -2
- package/dist/Molecular/CustomIcons/components/User.js +9 -2
- package/dist/Molecular/CustomIcons/components/Visa.js +9 -2
- package/dist/Molecular/CustomIcons/components/X.js +9 -2
- package/dist/Molecular/CustomIcons/index.js +122 -0
- package/dist/Molecular/FormElement/FormElement.js +12 -1
- package/dist/Molecular/FormWithDependOn/FormWithDependOn.js +31 -30
- package/dist/Molecular/FormWithDependOn/partials/_utils.js +12 -9
- package/dist/Molecular/InputAddress/InputAddress.js +114 -65
- package/dist/Molecular/InputPassword/InputPassword.js +19 -5
- package/dist/index.js +2 -0
- package/package.json +1 -1
- package/dist/Atomic/UI/Hint/partial/_utils.js +0 -52
|
@@ -1,19 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.default = void 0;
|
|
9
|
+
|
|
8
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
9
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
10
14
|
var Icons = _interopRequireWildcard(require("react-feather"));
|
|
15
|
+
|
|
11
16
|
var _reactRouterDom = require("react-router-dom");
|
|
17
|
+
|
|
12
18
|
var _index = require("../../../Constants/index.constants");
|
|
19
|
+
|
|
13
20
|
require("./NavLine.scss");
|
|
14
|
-
|
|
15
|
-
function
|
|
21
|
+
|
|
22
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
+
|
|
24
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
+
|
|
16
26
|
const checkedRef = ref => ref ? typeof ref === "function" ? node => ref(node) : ref : null;
|
|
27
|
+
|
|
17
28
|
const NavLine = _ref => {
|
|
18
29
|
let {
|
|
19
30
|
root,
|
|
@@ -38,29 +49,36 @@ const NavLine = _ref => {
|
|
|
38
49
|
const [navLineItemsTotalWidth, setNavLineItemsTotalWidth] = (0, _react.useState)(0);
|
|
39
50
|
const [navLineFirstItemOffset, setNavLineFirstItemOffset] = (0, _react.useState)(0);
|
|
40
51
|
const [scrollQueue, setScrollQueue] = (0, _react.useState)([]);
|
|
52
|
+
|
|
41
53
|
const popScrollTask = () => {
|
|
42
54
|
if (!scrollQueue.length) return null;
|
|
43
55
|
const [task, ...rest] = scrollQueue;
|
|
44
56
|
setScrollQueue(rest);
|
|
45
57
|
return task;
|
|
46
58
|
};
|
|
59
|
+
|
|
47
60
|
const pushScrollTask = task => setScrollQueue(queue => [...queue, task]);
|
|
61
|
+
|
|
48
62
|
(0, _react.useEffect)(() => {
|
|
49
63
|
const task = popScrollTask();
|
|
64
|
+
|
|
50
65
|
if (scrollQueue.length && task) {
|
|
51
66
|
switch (task) {
|
|
52
67
|
case "next":
|
|
53
68
|
scrollToNextItem();
|
|
54
69
|
break;
|
|
70
|
+
|
|
55
71
|
case "prev":
|
|
56
72
|
scrollToPrevItem();
|
|
57
73
|
break;
|
|
74
|
+
|
|
58
75
|
default:
|
|
59
76
|
break;
|
|
60
77
|
}
|
|
61
78
|
}
|
|
62
79
|
}, [scrollQueue]);
|
|
63
80
|
const [isScrollBlocked, setScrollBlocked] = (0, _react.useState)(false);
|
|
81
|
+
|
|
64
82
|
const getVisibleNavLineItems = () => {
|
|
65
83
|
const wrapperInner = wrapperInnerRef === null || wrapperInnerRef === void 0 ? void 0 : wrapperInnerRef.current;
|
|
66
84
|
const wrapperInnerProps = wrapperInner.getBoundingClientRect();
|
|
@@ -77,6 +95,7 @@ const NavLine = _ref => {
|
|
|
77
95
|
return x - wrapperInnerProps.x >= 0 && x - wrapperInnerProps.x <= wrapperRefWidth;
|
|
78
96
|
});
|
|
79
97
|
};
|
|
98
|
+
|
|
80
99
|
const getUnvisibleLeftSideNavLineItems = () => {
|
|
81
100
|
const wrapperInner = wrapperInnerRef === null || wrapperInnerRef === void 0 ? void 0 : wrapperInnerRef.current;
|
|
82
101
|
const wrapperInnerProps = wrapperInner.getBoundingClientRect();
|
|
@@ -93,6 +112,7 @@ const NavLine = _ref => {
|
|
|
93
112
|
return x - wrapperInnerProps.x <= 0;
|
|
94
113
|
});
|
|
95
114
|
};
|
|
115
|
+
|
|
96
116
|
const scroll = function () {
|
|
97
117
|
let offset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
98
118
|
if (isScrollBlocked) return false;
|
|
@@ -100,32 +120,31 @@ const NavLine = _ref => {
|
|
|
100
120
|
const wrapperInner = wrapperInnerRef === null || wrapperInnerRef === void 0 ? void 0 : wrapperInnerRef.current;
|
|
101
121
|
const wrapperInnerProps = wrapperInner.getBoundingClientRect();
|
|
102
122
|
const leftOffset = wrapperInner.scrollLeft;
|
|
103
|
-
wrapperInner === null || wrapperInner === void 0
|
|
123
|
+
wrapperInner === null || wrapperInner === void 0 ? void 0 : wrapperInner.addEventListener("scroll", () => {
|
|
104
124
|
setTotalScrolledItems(state => offset > 0 ? ++state : --state);
|
|
105
125
|
setScrollLeft(leftOffset + offset < 0 ? 0 : leftOffset + offset);
|
|
106
126
|
setTimeout(() => setScrollBlocked(false), 50);
|
|
107
127
|
}, {
|
|
108
128
|
once: true
|
|
109
129
|
});
|
|
110
|
-
wrapperInner === null || wrapperInner === void 0
|
|
130
|
+
wrapperInner === null || wrapperInner === void 0 ? void 0 : wrapperInner.scrollBy({
|
|
111
131
|
left: offset,
|
|
112
132
|
behavior: "smooth"
|
|
113
133
|
});
|
|
114
134
|
};
|
|
115
|
-
const scrollToPrevItem = () => {
|
|
116
|
-
if (isScrollBlocked) return false;
|
|
117
135
|
|
|
118
|
-
|
|
136
|
+
const scrollToPrevItem = () => {
|
|
137
|
+
if (isScrollBlocked) return false; // const wrapperInner = wrapperInnerRef?.current;
|
|
119
138
|
// const navLineUnvisibleItems = getUnvisibleLeftSideNavLineItems();
|
|
120
139
|
// const [prevItem, secondPrevItem] = navLineUnvisibleItems.reverse();
|
|
121
140
|
// const wrapperInnerProps = wrapperInner.getBoundingClientRect();
|
|
122
141
|
// const prevItemProps = prevItem?.ref?.current?.getBoundingClientRect();
|
|
123
|
-
|
|
124
142
|
// let scrollOffset = prevItemProps?.x - wrapperInnerProps?.x;
|
|
125
143
|
|
|
126
144
|
const scrollOffset = -100;
|
|
127
145
|
scroll(scrollOffset);
|
|
128
146
|
};
|
|
147
|
+
|
|
129
148
|
const scrollToNextItem = () => {
|
|
130
149
|
// const wrapperInner = wrapperInnerRef?.current;
|
|
131
150
|
// const navLineVisibleItems = getVisibleNavLineItems();
|
|
@@ -133,12 +152,11 @@ const NavLine = _ref => {
|
|
|
133
152
|
// const wrapperInnerProps = wrapperInner.getBoundingClientRect();
|
|
134
153
|
// const firstVisibleItemProps = firstVisibleItem?.ref?.current?.getBoundingClientRect();
|
|
135
154
|
// const secondVisibleItemProps = secondVisibleItem?.ref?.current?.getBoundingClientRect();
|
|
136
|
-
|
|
137
155
|
// const scrollOffset = secondVisibleItemProps.x-wrapperInnerProps.x;
|
|
138
|
-
|
|
139
156
|
const scrollOffset = 100;
|
|
140
157
|
scroll(scrollOffset);
|
|
141
158
|
};
|
|
159
|
+
|
|
142
160
|
const onWheel = e => {
|
|
143
161
|
e.preventDefault();
|
|
144
162
|
e.stopPropagation();
|
|
@@ -146,24 +164,30 @@ const NavLine = _ref => {
|
|
|
146
164
|
deltaY,
|
|
147
165
|
shiftKey
|
|
148
166
|
} = e;
|
|
167
|
+
|
|
149
168
|
if (shiftKey) {
|
|
150
169
|
if (deltaY > 0) pushScrollTask("next");else pushScrollTask("prev");
|
|
151
170
|
}
|
|
152
171
|
};
|
|
172
|
+
|
|
153
173
|
const onTabChange = item => {
|
|
154
174
|
onChange(item.tabId);
|
|
155
175
|
};
|
|
176
|
+
|
|
156
177
|
const navigateByKeys = event => {
|
|
157
178
|
var _items, _items2;
|
|
179
|
+
|
|
158
180
|
const activeTabIndex = items === null || items === void 0 ? void 0 : items.indexOf(items === null || items === void 0 ? void 0 : items.find(tab => tab.tabId === activeTab));
|
|
159
181
|
const nextTabID = (_items = items[activeTabIndex + 1]) === null || _items === void 0 ? void 0 : _items.tabId;
|
|
160
182
|
const prevTabID = (_items2 = items[activeTabIndex - 1]) === null || _items2 === void 0 ? void 0 : _items2.tabId;
|
|
183
|
+
|
|
161
184
|
if (event.keyCode === _index.KEYBOARD_KEY_CODES.ARROW_RIGHT && !event.repeat && nextTabID) {
|
|
162
185
|
onChange(nextTabID);
|
|
163
186
|
} else if (event.keyCode === _index.KEYBOARD_KEY_CODES.ARROW_LEFT && !event.repeat && prevTabID) {
|
|
164
187
|
onChange(prevTabID);
|
|
165
188
|
}
|
|
166
189
|
};
|
|
190
|
+
|
|
167
191
|
(0, _react.useEffect)(() => {
|
|
168
192
|
if (isNavigateByKeys && !isTabLoading) {
|
|
169
193
|
document.addEventListener("keydown", navigateByKeys);
|
|
@@ -172,39 +196,42 @@ const NavLine = _ref => {
|
|
|
172
196
|
}, [activeTab, isTabLoading]);
|
|
173
197
|
(0, _react.useEffect)(() => {
|
|
174
198
|
var _wrapperRef$current;
|
|
175
|
-
|
|
199
|
+
|
|
200
|
+
if (wrapperRef !== null && wrapperRef !== void 0 && wrapperRef.current) wrapperRef === null || wrapperRef === void 0 ? void 0 : (_wrapperRef$current = wrapperRef.current) === null || _wrapperRef$current === void 0 ? void 0 : _wrapperRef$current.addEventListener("mousewheel", onWheel, {
|
|
176
201
|
passive: false
|
|
177
202
|
});
|
|
178
|
-
}, [wrapperRef]);
|
|
203
|
+
}, [wrapperRef]); // Count Total NavLine Items Width
|
|
179
204
|
|
|
180
|
-
// Count Total NavLine Items Width
|
|
181
205
|
(0, _react.useEffect)(() => {
|
|
182
|
-
var _navLineItems$0$ref$c, _navLineItems
|
|
206
|
+
var _navLineItems$0$ref$c, _navLineItems$, _navLineItems$$ref, _navLineItems$$ref$cu;
|
|
207
|
+
|
|
183
208
|
setNavLineItemsTotalWidth(() => {
|
|
184
209
|
return navLineItems.reduce((totalWidth, item) => {
|
|
185
210
|
var _item$ref;
|
|
186
|
-
|
|
211
|
+
|
|
212
|
+
const element = item === null || item === void 0 ? void 0 : (_item$ref = item.ref) === null || _item$ref === void 0 ? void 0 : _item$ref.current;
|
|
213
|
+
|
|
187
214
|
if (element) {
|
|
188
215
|
var _element$getBoundingC;
|
|
189
|
-
|
|
216
|
+
|
|
217
|
+
totalWidth += element === null || element === void 0 ? void 0 : (_element$getBoundingC = element.getBoundingClientRect()) === null || _element$getBoundingC === void 0 ? void 0 : _element$getBoundingC.width;
|
|
190
218
|
}
|
|
219
|
+
|
|
191
220
|
return totalWidth;
|
|
192
221
|
}, 0);
|
|
193
222
|
});
|
|
194
|
-
setNavLineFirstItemOffset((_navLineItems$0$ref$c = (_navLineItems$ = navLineItems[0]) === null || _navLineItems$ === void 0
|
|
195
|
-
}, [navLineItems === null || navLineItems === void 0 ? void 0 : navLineItems.length]);
|
|
223
|
+
setNavLineFirstItemOffset((_navLineItems$0$ref$c = (_navLineItems$ = navLineItems[0]) === null || _navLineItems$ === void 0 ? void 0 : (_navLineItems$$ref = _navLineItems$.ref) === null || _navLineItems$$ref === void 0 ? void 0 : (_navLineItems$$ref$cu = _navLineItems$$ref.current) === null || _navLineItems$$ref$cu === void 0 ? void 0 : _navLineItems$$ref$cu.getBoundingClientRect().x) !== null && _navLineItems$0$ref$c !== void 0 ? _navLineItems$0$ref$c : 0);
|
|
224
|
+
}, [navLineItems === null || navLineItems === void 0 ? void 0 : navLineItems.length]); // Count Wrapper Width
|
|
196
225
|
|
|
197
|
-
// Count Wrapper Width
|
|
198
226
|
(0, _react.useEffect)(() => {
|
|
199
|
-
var _wrapperRef$current$g, _wrapperRef$current2
|
|
200
|
-
|
|
201
|
-
|
|
227
|
+
var _wrapperRef$current$g, _wrapperRef$current2, _wrapperRef$current2$;
|
|
228
|
+
|
|
229
|
+
setWrapperRefWidth((_wrapperRef$current$g = wrapperRef === null || wrapperRef === void 0 ? void 0 : (_wrapperRef$current2 = wrapperRef.current) === null || _wrapperRef$current2 === void 0 ? void 0 : (_wrapperRef$current2$ = _wrapperRef$current2.getBoundingClientRect()) === null || _wrapperRef$current2$ === void 0 ? void 0 : _wrapperRef$current2$.width) !== null && _wrapperRef$current$g !== void 0 ? _wrapperRef$current$g : 0);
|
|
230
|
+
}, [wrapperRef]); //Init NavLine Items
|
|
202
231
|
|
|
203
|
-
//Init NavLine Items
|
|
204
232
|
(0, _react.useEffect)(() => {
|
|
205
233
|
setNavLineItems(items.map(item => {
|
|
206
|
-
return {
|
|
207
|
-
...item,
|
|
234
|
+
return { ...item,
|
|
208
235
|
ref: /*#__PURE__*/(0, _react.createRef)()
|
|
209
236
|
};
|
|
210
237
|
}));
|
|
@@ -287,4 +314,6 @@ const NavLine = _ref => {
|
|
|
287
314
|
className: "nav-line__body"
|
|
288
315
|
}, children));
|
|
289
316
|
};
|
|
290
|
-
|
|
317
|
+
|
|
318
|
+
var _default = NavLine;
|
|
319
|
+
exports.default = _default;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var _default =
|
|
7
|
+
var _default = {
|
|
8
8
|
activeTab: "",
|
|
9
9
|
initialTab: "",
|
|
10
10
|
variant: "simple",
|
|
@@ -112,4 +112,5 @@ var _default = exports.default = {
|
|
|
112
112
|
tabId: 33,
|
|
113
113
|
label: "Tax resolution"
|
|
114
114
|
}]
|
|
115
|
-
};
|
|
115
|
+
};
|
|
116
|
+
exports.default = _default;
|
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.default = void 0;
|
|
9
|
+
|
|
8
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
9
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
10
14
|
var _reactFeather = require("react-feather");
|
|
15
|
+
|
|
11
16
|
require("./PageTitle.scss");
|
|
17
|
+
|
|
12
18
|
// TODO: change when there will be routes
|
|
13
19
|
// import { Link } from 'react-router-dom';
|
|
14
|
-
|
|
15
20
|
const RC = "page-title";
|
|
21
|
+
|
|
16
22
|
const PageTitle = _ref => {
|
|
17
23
|
let {
|
|
18
24
|
title,
|
|
@@ -55,4 +61,6 @@ const PageTitle = _ref => {
|
|
|
55
61
|
}, name));
|
|
56
62
|
}))), children);
|
|
57
63
|
};
|
|
58
|
-
|
|
64
|
+
|
|
65
|
+
var _default = PageTitle;
|
|
66
|
+
exports.default = _default;
|
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.default = void 0;
|
|
9
|
+
|
|
8
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
9
12
|
var _chart = require("chart.js");
|
|
13
|
+
|
|
10
14
|
var _reactChartjs = require("react-chartjs-2");
|
|
15
|
+
|
|
11
16
|
require("./PieChart.scss");
|
|
17
|
+
|
|
12
18
|
_chart.Chart.register(_chart.ArcElement, _chart.Tooltip);
|
|
19
|
+
|
|
13
20
|
const PieChart = _ref => {
|
|
14
21
|
let {
|
|
15
22
|
data,
|
|
@@ -44,4 +51,6 @@ const PieChart = _ref => {
|
|
|
44
51
|
className: "pie-chart__result-label"
|
|
45
52
|
}, resultLabel)));
|
|
46
53
|
};
|
|
47
|
-
|
|
54
|
+
|
|
55
|
+
var _default = PieChart;
|
|
56
|
+
exports.default = _default;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.default = void 0;
|
|
9
|
+
|
|
8
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
9
12
|
var _fieldValueFormatters = require("../../../Functions/fieldValueFormatters");
|
|
13
|
+
|
|
10
14
|
const Price = _ref => {
|
|
11
15
|
let {
|
|
12
16
|
value,
|
|
@@ -14,12 +18,13 @@ const Price = _ref => {
|
|
|
14
18
|
isSymbolAfter,
|
|
15
19
|
className
|
|
16
20
|
} = _ref;
|
|
17
|
-
if (value === undefined || value === null) return null;
|
|
18
|
-
// const formatted = Number(value?.toString().replace(/[+*?$^(,)]/g, '')).toLocaleString('en-US');
|
|
21
|
+
if (value === undefined || value === null) return null; // const formatted = Number(value?.toString().replace(/[+*?$^(,)]/g, '')).toLocaleString('en-US');
|
|
19
22
|
|
|
20
23
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
21
24
|
"data-testid": "test-price",
|
|
22
25
|
className: "price ".concat(className)
|
|
23
26
|
}, (0, _fieldValueFormatters.formatToPriceWithCurrency)(value, currencyCode, isSymbolAfter ? "after" : "before"));
|
|
24
27
|
};
|
|
25
|
-
|
|
28
|
+
|
|
29
|
+
var _default = Price;
|
|
30
|
+
exports.default = _default;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.default = void 0;
|
|
9
|
+
|
|
8
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
9
12
|
var _fieldValueFormatters = require("../../../Functions/fieldValueFormatters");
|
|
13
|
+
|
|
10
14
|
const PriceRange = _ref => {
|
|
11
15
|
let {
|
|
12
16
|
from,
|
|
@@ -18,4 +22,6 @@ const PriceRange = _ref => {
|
|
|
18
22
|
className: "j4"
|
|
19
23
|
}, mode === "simple" ? /*#__PURE__*/_react.default.createElement("span", null, from, " - ", to) : /*#__PURE__*/_react.default.createElement("span", null, (0, _fieldValueFormatters.formatToPriceWithUSD)(from === null || from === void 0 ? void 0 : from.toString()), " -", " ", (0, _fieldValueFormatters.formatToPriceWithUSD)(to === null || to === void 0 ? void 0 : to.toString())));
|
|
20
24
|
};
|
|
21
|
-
|
|
25
|
+
|
|
26
|
+
var _default = PriceRange;
|
|
27
|
+
exports.default = _default;
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.default = void 0;
|
|
9
|
+
|
|
8
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
9
12
|
var _utils = require("../../../Functions/utils");
|
|
13
|
+
|
|
10
14
|
require("./ProgressLine.scss");
|
|
15
|
+
|
|
11
16
|
const ProgressLine = _ref => {
|
|
12
17
|
let {
|
|
13
18
|
label = "",
|
|
@@ -28,22 +33,26 @@ const ProgressLine = _ref => {
|
|
|
28
33
|
isShowLine = true,
|
|
29
34
|
className = ""
|
|
30
35
|
} = _ref;
|
|
36
|
+
|
|
31
37
|
const getFilledLineWidth = () => {
|
|
32
38
|
if (value > maxValue) value = maxValue;
|
|
33
39
|
return "".concat(((value - minValue) * 100 / (maxValue - minValue)).toFixed(symbolsAfterComma), "%");
|
|
34
40
|
};
|
|
41
|
+
|
|
35
42
|
const renderLabel = () => {
|
|
36
43
|
if (!label) return null;
|
|
37
44
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
38
45
|
className: "progress-line__wrapper__label align-".concat(labelAlign)
|
|
39
46
|
}, label);
|
|
40
47
|
};
|
|
48
|
+
|
|
41
49
|
const renderProgressValue = () => {
|
|
42
50
|
if (!renderValue) return null;
|
|
43
51
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
44
52
|
className: "progress-line__wrapper__value"
|
|
45
53
|
}, renderValueInPercents ? getFilledLineWidth() : "".concat((0, _utils.addBitDepthPoints)(String(value)), " ").concat(valueMeasurement));
|
|
46
54
|
};
|
|
55
|
+
|
|
47
56
|
const renderExtremums = () => {
|
|
48
57
|
if (!showExtremums) return null;
|
|
49
58
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -54,6 +63,7 @@ const ProgressLine = _ref => {
|
|
|
54
63
|
className: "progress-line__wrapper__extremums--max"
|
|
55
64
|
}, renderValueInPercents ? "100 %" : "".concat(maxValue, " ").concat(valueMeasurement)));
|
|
56
65
|
};
|
|
66
|
+
|
|
57
67
|
const renderFilledLine = () => {
|
|
58
68
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
59
69
|
className: "progress-line__wrapper__line--filled",
|
|
@@ -62,11 +72,13 @@ const ProgressLine = _ref => {
|
|
|
62
72
|
}
|
|
63
73
|
});
|
|
64
74
|
};
|
|
75
|
+
|
|
65
76
|
const renderLine = () => {
|
|
66
77
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
67
78
|
className: "progress-line__wrapper__line"
|
|
68
79
|
}, renderExtremums(), renderFilledLine());
|
|
69
80
|
};
|
|
81
|
+
|
|
70
82
|
const render = () => {
|
|
71
83
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
72
84
|
className: "progress-line"
|
|
@@ -74,6 +86,9 @@ const ProgressLine = _ref => {
|
|
|
74
86
|
className: "progress-line__wrapper variant-".concat(useVariantLabelColor && variant, " value-").concat(valueVerticalPosition, "-").concat(valueHorizontalPosition, " ").concat(className)
|
|
75
87
|
}, renderProgressValue(), isShowLine && renderLine()));
|
|
76
88
|
};
|
|
89
|
+
|
|
77
90
|
return render();
|
|
78
91
|
};
|
|
79
|
-
|
|
92
|
+
|
|
93
|
+
var _default = ProgressLine;
|
|
94
|
+
exports.default = _default;
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.default = void 0;
|
|
9
|
+
|
|
8
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
9
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
10
14
|
require("./Status.scss");
|
|
15
|
+
|
|
11
16
|
function Status(_ref) {
|
|
12
17
|
let {
|
|
13
18
|
icon,
|
|
@@ -52,4 +57,6 @@ function Status(_ref) {
|
|
|
52
57
|
})
|
|
53
58
|
}, icon, formatedLabel));
|
|
54
59
|
}
|
|
55
|
-
|
|
60
|
+
|
|
61
|
+
var _default = Status;
|
|
62
|
+
exports.default = _default;
|
|
@@ -1,22 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.default = void 0;
|
|
9
|
+
|
|
8
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
9
12
|
var _AccordionItem = _interopRequireDefault(require("../../Accordion/AccordionItem"));
|
|
13
|
+
|
|
10
14
|
var _AdvancedTags = _interopRequireDefault(require("../../AdvancedTag/AdvancedTags"));
|
|
15
|
+
|
|
11
16
|
var _Status = _interopRequireDefault(require("../../Status/Status"));
|
|
17
|
+
|
|
12
18
|
var _Tag = _interopRequireDefault(require("../../Tag/Tag"));
|
|
19
|
+
|
|
13
20
|
var _Table = _interopRequireDefault(require("../Table"));
|
|
21
|
+
|
|
14
22
|
var _TdActions = require("../TdTypes/TdActions");
|
|
23
|
+
|
|
15
24
|
var _TdPriority = _interopRequireDefault(require("../TdTypes/TdPriority"));
|
|
25
|
+
|
|
16
26
|
var _TdWeight = _interopRequireDefault(require("../TdTypes/TdWeight"));
|
|
27
|
+
|
|
17
28
|
require("../Table.scss");
|
|
18
|
-
|
|
19
|
-
function
|
|
29
|
+
|
|
30
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
31
|
+
|
|
32
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
33
|
+
|
|
20
34
|
const TdCell = _ref => {
|
|
21
35
|
let {
|
|
22
36
|
type,
|
|
@@ -32,6 +46,7 @@ const TdCell = _ref => {
|
|
|
32
46
|
} = _ref;
|
|
33
47
|
const [isAccordionOpen, setIsAccordionOpen] = (0, _react.useState)(item.isOpen);
|
|
34
48
|
const percent = item.type === "weight" && getAdviceWeight(isDeleted ? 0 : item.value);
|
|
49
|
+
|
|
35
50
|
switch (type) {
|
|
36
51
|
case "accordion":
|
|
37
52
|
return /*#__PURE__*/_react.default.createElement(_AccordionItem.default, {
|
|
@@ -43,6 +58,7 @@ const TdCell = _ref => {
|
|
|
43
58
|
rows: item.rows,
|
|
44
59
|
className: "accordion--table"
|
|
45
60
|
}));
|
|
61
|
+
|
|
46
62
|
case "actions":
|
|
47
63
|
return /*#__PURE__*/_react.default.createElement(_TdActions.TdActions, {
|
|
48
64
|
rowItem: rowItem,
|
|
@@ -50,44 +66,52 @@ const TdCell = _ref => {
|
|
|
50
66
|
onChange: onChange,
|
|
51
67
|
onActionClick: onActionClick
|
|
52
68
|
});
|
|
69
|
+
|
|
53
70
|
case "advancedTags":
|
|
54
71
|
return /*#__PURE__*/_react.default.createElement(_AdvancedTags.default, {
|
|
55
72
|
items: item
|
|
56
73
|
});
|
|
74
|
+
|
|
57
75
|
case "link":
|
|
58
76
|
return /*#__PURE__*/_react.default.createElement("a", {
|
|
59
77
|
href: item.link
|
|
60
78
|
}, item.label);
|
|
79
|
+
|
|
61
80
|
case "priority":
|
|
62
81
|
return /*#__PURE__*/_react.default.createElement(_TdPriority.default, {
|
|
63
82
|
rowIndex: rowIndex,
|
|
64
83
|
cardLength: cardLength,
|
|
65
84
|
onClick: changePriority
|
|
66
85
|
});
|
|
86
|
+
|
|
67
87
|
case "status":
|
|
68
88
|
return /*#__PURE__*/_react.default.createElement(_Status.default, {
|
|
69
89
|
className: item.className,
|
|
70
90
|
label: item.label,
|
|
71
91
|
status: item.status
|
|
72
92
|
});
|
|
93
|
+
|
|
73
94
|
case "tags":
|
|
74
95
|
return item.map((tag, index) => /*#__PURE__*/_react.default.createElement(_Tag.default, {
|
|
75
96
|
key: index,
|
|
76
97
|
label: tag.label
|
|
77
98
|
}));
|
|
99
|
+
|
|
78
100
|
case "weight":
|
|
79
101
|
return /*#__PURE__*/_react.default.createElement(_TdWeight.default, {
|
|
80
102
|
value: item.value,
|
|
81
103
|
percent: percent,
|
|
82
|
-
onChange: value => onChange({
|
|
83
|
-
...item,
|
|
104
|
+
onChange: value => onChange({ ...item,
|
|
84
105
|
value
|
|
85
106
|
})
|
|
86
107
|
});
|
|
108
|
+
|
|
87
109
|
default:
|
|
88
110
|
return /*#__PURE__*/_react.default.createElement("span", {
|
|
89
111
|
className: item.className
|
|
90
112
|
}, item.value);
|
|
91
113
|
}
|
|
92
114
|
};
|
|
93
|
-
|
|
115
|
+
|
|
116
|
+
var _default = TdCell;
|
|
117
|
+
exports.default = _default;
|
|
@@ -1,20 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.default = void 0;
|
|
9
|
+
|
|
8
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
9
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
10
14
|
var _Langs = _interopRequireDefault(require("../../../../../../Langs"));
|
|
15
|
+
|
|
11
16
|
require("../Table.scss");
|
|
17
|
+
|
|
12
18
|
const TdHeader = _ref => {
|
|
13
19
|
let {
|
|
14
20
|
item,
|
|
15
21
|
testId = "test-table-header"
|
|
16
22
|
} = _ref;
|
|
17
23
|
const txt = _Langs.default[global.lng];
|
|
24
|
+
|
|
18
25
|
switch (item.type) {
|
|
19
26
|
case "double":
|
|
20
27
|
return /*#__PURE__*/_react.default.createElement("th", {
|
|
@@ -26,6 +33,7 @@ const TdHeader = _ref => {
|
|
|
26
33
|
}, txt.labels[item.left] || item.left), /*#__PURE__*/_react.default.createElement("div", {
|
|
27
34
|
className: ""
|
|
28
35
|
}, txt.labels[item.right] || item.right)));
|
|
36
|
+
|
|
29
37
|
default:
|
|
30
38
|
return /*#__PURE__*/_react.default.createElement("th", {
|
|
31
39
|
"data-testid": testId,
|
|
@@ -41,4 +49,6 @@ const TdHeader = _ref => {
|
|
|
41
49
|
}, txt.buttons[item.button] || item.button)));
|
|
42
50
|
}
|
|
43
51
|
};
|
|
44
|
-
|
|
52
|
+
|
|
53
|
+
var _default = TdHeader;
|
|
54
|
+
exports.default = _default;
|