intelicoreact 1.6.2 → 1.6.4
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/ArrayElement.d.ts +13 -0
- package/dist/AsyncReturnType.d.ts +17 -0
- package/dist/Atomic/FormElements/ActionAlert/ActionAlert.interface.js +4 -1
- package/dist/Atomic/FormElements/ActionAlert/ActionAlert.js +69 -14
- package/dist/Atomic/FormElements/ActionAlert/ActionAlert.stories.js +30 -7
- package/dist/Atomic/FormElements/ActionAlert/ActionAlert.test.js +43 -34
- package/dist/Atomic/FormElements/ActionAlert/index.js +17 -2
- package/dist/Atomic/FormElements/AdvancedStatus/AdvancedStatus.interface.js +4 -1
- package/dist/Atomic/FormElements/AdvancedStatus/AdvancedStatus.js +26 -11
- package/dist/Atomic/FormElements/AdvancedStatus/AdvancedStatus.stories.js +35 -12
- package/dist/Atomic/FormElements/AdvancedStatus/AdvancedStatus.test.js +29 -20
- package/dist/Atomic/FormElements/AdvancedStatus/index.js +17 -2
- package/dist/Atomic/FormElements/Calendar/Calendar.js +109 -53
- package/dist/Atomic/FormElements/Calendar/Calendar.props.js +4 -1
- package/dist/Atomic/FormElements/Calendar/Calendar.stories.js +74 -10
- package/dist/Atomic/FormElements/CheckboxInput/CheckboxInput.interface.js +4 -1
- package/dist/Atomic/FormElements/CheckboxInput/CheckboxInput.js +27 -12
- package/dist/Atomic/FormElements/CheckboxInput/CheckboxInput.stories.js +39 -16
- package/dist/Atomic/FormElements/CheckboxInput/CheckboxInput.test.js +46 -37
- package/dist/Atomic/FormElements/CheckboxInput/index.js +17 -2
- package/dist/Atomic/FormElements/CheckboxesLine/CheckboxesLine.interface.js +4 -1
- package/dist/Atomic/FormElements/CheckboxesLine/CheckboxesLine.js +24 -9
- package/dist/Atomic/FormElements/CheckboxesLine/CheckboxesLine.stories.js +33 -10
- package/dist/Atomic/FormElements/CheckboxesLine/CheckboxesLine.test.js +34 -25
- package/dist/Atomic/FormElements/CheckboxesLine/index.js +17 -2
- package/dist/Atomic/FormElements/Datepicker/Datepicker.js +160 -104
- package/dist/Atomic/FormElements/Datepicker/Datepicker.stories.js +31 -8
- package/dist/Atomic/FormElements/Datepicker/components/Calendar.js +89 -33
- package/dist/Atomic/FormElements/Dropdown/Dropdown.js +154 -98
- package/dist/Atomic/FormElements/Dropdown/Dropdown.stories.js +82 -18
- package/dist/Atomic/FormElements/Dropdown/components/DropdownLoader.js +25 -10
- package/dist/Atomic/FormElements/DropdownLiveSearch/DropdownLiveSearch.js +138 -82
- package/dist/Atomic/FormElements/DropdownLiveSearch/DropdownLiveSearch.stories.js +79 -15
- package/dist/Atomic/FormElements/FileLoader/FileLoader.js +69 -13
- package/dist/Atomic/FormElements/FileLoader/FileLoader.stories.js +86 -22
- package/dist/Atomic/FormElements/FileLoader/partial/LoadZone.js +69 -13
- package/dist/Atomic/FormElements/FileLoader/partial/LoadedContent.js +71 -15
- package/dist/Atomic/FormElements/FileLoaderDescription/FileLoaderDescription.js +91 -35
- package/dist/Atomic/FormElements/FileLoaderDescription/FileLoaderDescription.stories.js +82 -18
- package/dist/Atomic/FormElements/FileLoaderLocal/FileLoaderLocal.js +40 -25
- package/dist/Atomic/FormElements/FileLoaderLocal/FileLoaderLocal.stories.js +79 -15
- package/dist/Atomic/FormElements/FileLoaderLocalGroup/FileLoaderLocalGroup.js +78 -22
- package/dist/Atomic/FormElements/FileLoaderLocalGroup/FileLoaderLocalGroup.stories.js +33 -10
- package/dist/Atomic/FormElements/FormattedRawSSN/FormattedRawSSN.js +73 -17
- package/dist/Atomic/FormElements/FormattedRawSSN/FormattedRawSSN.stories.js +73 -9
- package/dist/Atomic/FormElements/FormattedRawSSN/FormattedRawSSN_old.js +75 -19
- package/dist/Atomic/FormElements/Input/Input.js +100 -45
- package/dist/Atomic/FormElements/Input/Input.stories.js +73 -9
- package/dist/Atomic/FormElements/InputCalendar/InputCalendar.js +85 -29
- package/dist/Atomic/FormElements/InputCalendar/InputCalendar.stories.js +78 -14
- package/dist/Atomic/FormElements/InputColor/InputColor.js +30 -15
- package/dist/Atomic/FormElements/InputColor/InputColor.stories.js +73 -9
- package/dist/Atomic/FormElements/InputCurrency/InputCurrency.interface.js +4 -1
- package/dist/Atomic/FormElements/InputCurrency/InputCurrency.js +73 -17
- package/dist/Atomic/FormElements/InputCurrency/InputCurrency.stories.js +52 -14
- package/dist/Atomic/FormElements/InputCurrency/InputCurrency.test.js +45 -36
- package/dist/Atomic/FormElements/InputCurrency/index.js +16 -1
- package/dist/Atomic/FormElements/InputDateRange/InputDateRange.js +128 -72
- package/dist/Atomic/FormElements/InputDateRange/InputDateRange.stories.js +75 -11
- package/dist/Atomic/FormElements/InputDateRange/components/DateInput.js +30 -15
- package/dist/Atomic/FormElements/InputDateRange/components/Datepicker.js +182 -126
- package/dist/Atomic/FormElements/InputDateRange/components/OpenedPart.js +98 -42
- package/dist/Atomic/FormElements/InputDateRange/components/SelectItem.js +24 -9
- package/dist/Atomic/FormElements/InputDateRange/dependencies.js +144 -53
- package/dist/Atomic/FormElements/InputLink/InputLink.js +76 -20
- package/dist/Atomic/FormElements/InputLink/InputLink.stories.js +73 -9
- package/dist/Atomic/FormElements/InputMask/InputCarretPosition.js +20 -2
- package/dist/Atomic/FormElements/InputMask/InputMask.js +158 -103
- package/dist/Atomic/FormElements/InputMask/InputMask.stories.js +81 -17
- package/dist/Atomic/FormElements/InputMask/config.js +1 -0
- package/dist/Atomic/FormElements/InputMask/functions.js +59 -14
- package/dist/Atomic/FormElements/InputMask2/InputMask2.js +129 -73
- package/dist/Atomic/FormElements/InputMask2/InputMask2.stories.js +77 -13
- package/dist/Atomic/FormElements/InputMask2/config.js +1 -0
- package/dist/Atomic/FormElements/InputMask2/functions.js +59 -14
- package/dist/Atomic/FormElements/InputMask3/InputMask3.js +133 -77
- package/dist/Atomic/FormElements/InputMask3/InputMask3.stories.js +79 -15
- package/dist/Atomic/FormElements/InputMask3/config.js +1 -0
- package/dist/Atomic/FormElements/InputMask3/functions.js +59 -14
- package/dist/Atomic/FormElements/InputWithAction/InputWithAction.js +79 -23
- package/dist/Atomic/FormElements/InputWithAction/InputWithAction.stories.js +72 -8
- package/dist/Atomic/FormElements/InputsRow/InputsRow.js +81 -25
- package/dist/Atomic/FormElements/InputsRow/InputsRow.stories.js +31 -8
- package/dist/Atomic/FormElements/Label/Label.interface.js +4 -1
- package/dist/Atomic/FormElements/Label/Label.js +31 -16
- package/dist/Atomic/FormElements/Label/Label.stories.js +30 -7
- package/dist/Atomic/FormElements/Label/Label.test.js +46 -37
- package/dist/Atomic/FormElements/Label/index.js +17 -2
- package/dist/Atomic/FormElements/MobileCalendar/MobileCalendar.js +124 -68
- package/dist/Atomic/FormElements/MobileCalendar/MobileCalendar.stories.js +74 -10
- package/dist/Atomic/FormElements/MultiSelect/MultiSelect.js +67 -11
- package/dist/Atomic/FormElements/MultiSelect/MultiSelect.stories.js +73 -9
- package/dist/Atomic/FormElements/NumericInput/NumericInput.js +105 -49
- package/dist/Atomic/FormElements/NumericInput/NumericInput.stories.js +75 -11
- package/dist/Atomic/FormElements/RadioGroup/RadioGroup.js +67 -11
- package/dist/Atomic/FormElements/RadioGroup/RadioGroup.stories.js +31 -8
- package/dist/Atomic/FormElements/RadioGroupWithInput/RadioGroupWithInput.js +33 -18
- package/dist/Atomic/FormElements/RadioGroupWithInput/RadioGroupWithInput.stories.js +73 -9
- package/dist/Atomic/FormElements/RadioInput/RadioInput.js +27 -12
- package/dist/Atomic/FormElements/RadioInput/RadioInput.stories.js +31 -8
- package/dist/Atomic/FormElements/RadioRowSwitcher/RadioRowSwitcher.js +25 -10
- package/dist/Atomic/FormElements/RadioRowSwitcher/RadioRowSwitcher.stories.js +73 -9
- package/dist/Atomic/FormElements/RangeCalendar/RangeCalendar.js +92 -36
- package/dist/Atomic/FormElements/RangeCalendar/RangeCalendar.stories.js +85 -21
- package/dist/Atomic/FormElements/RangeInputs/RangeInputs.js +81 -25
- package/dist/Atomic/FormElements/RangeInputs/RangeInputs.stories.js +74 -10
- package/dist/Atomic/FormElements/RangeList/RangeList.js +89 -34
- package/dist/Atomic/FormElements/RangeList/RangeList.stories.js +81 -14
- package/dist/Atomic/FormElements/RangeList/partial/RangeListRow.js +37 -14
- package/dist/Atomic/FormElements/RangeSlider/RangeSlider.js +120 -64
- package/dist/Atomic/FormElements/RangeSlider/RangeSlider.stories.js +102 -38
- package/dist/Atomic/FormElements/RangeSlider2/RangeSlider2.js +137 -81
- package/dist/Atomic/FormElements/RangeSlider2/RangeSlider2.stories.js +82 -18
- package/dist/Atomic/FormElements/SwitchableRow/SwitchableRow.js +26 -11
- package/dist/Atomic/FormElements/SwitchableRow/SwitchableRow.stories.js +85 -21
- package/dist/Atomic/FormElements/Switcher/Switcher.js +31 -16
- package/dist/Atomic/FormElements/Switcher/Switcher.stories.js +74 -10
- package/dist/Atomic/FormElements/SwitcherCheckbox/SwitcherCheckbox.js +26 -11
- package/dist/Atomic/FormElements/SwitcherCheckbox/SwitcherCheckbox.stories.js +75 -11
- package/dist/Atomic/FormElements/SwitcherHide/SwitcherHide.js +24 -9
- package/dist/Atomic/FormElements/SwitcherHide/SwitcherHide.stories.js +75 -11
- package/dist/Atomic/FormElements/SwitcherRadio/SwitcherRadio.js +68 -13
- package/dist/Atomic/FormElements/SwitcherRadio/SwitcherRadio.stories.js +74 -10
- package/dist/Atomic/FormElements/SwitcherRange/SwitcherRange.js +64 -8
- package/dist/Atomic/FormElements/SwitcherRange/SwitcherRange.stories.js +75 -11
- package/dist/Atomic/FormElements/SwitcherRangeList/SwitcherRangeList.js +26 -11
- package/dist/Atomic/FormElements/SwitcherRangeList/SwitcherRangeList.stories.js +76 -12
- package/dist/Atomic/FormElements/SwitcherTagsDropdown/SwitcherTagsDropdown.js +81 -25
- package/dist/Atomic/FormElements/SwitcherTagsDropdown/SwitcherTagsDropdown.stories.js +78 -14
- package/dist/Atomic/FormElements/SwitcherTagsDropdown/partial/States.js +11 -1
- package/dist/Atomic/FormElements/SwitcherTextarea/SwitcherTextarea.js +30 -15
- package/dist/Atomic/FormElements/SwitcherTextarea/SwitcherTextarea.stories.js +76 -12
- package/dist/Atomic/FormElements/TagListToDropdown/TagListToDropdown.js +70 -14
- package/dist/Atomic/FormElements/TagListToDropdown/TagListToDropdown.stories.js +73 -9
- package/dist/Atomic/FormElements/TagsDropdown/TagsDropdown.js +208 -152
- package/dist/Atomic/FormElements/TagsDropdown/TagsDropdown.stories.js +80 -16
- package/dist/Atomic/FormElements/Text/Text.js +25 -10
- package/dist/Atomic/FormElements/Text/Text.stories.js +30 -7
- package/dist/Atomic/FormElements/TextSwitcher/TextSwitcher.js +27 -12
- package/dist/Atomic/FormElements/TextSwitcher/TextSwitcher.stories.js +74 -10
- package/dist/Atomic/FormElements/TextSwitcher/TextSwitcher.test.js +26 -17
- package/dist/Atomic/FormElements/Textarea/Textarea.js +69 -13
- package/dist/Atomic/FormElements/Textarea/Textarea.stories.js +75 -11
- package/dist/Atomic/FormElements/TieredCheckboxes/TieredCheckboxes.js +77 -22
- package/dist/Atomic/FormElements/TieredCheckboxes/TieredCheckboxes.stories.js +76 -12
- package/dist/Atomic/FormElements/TieredCheckboxes/partial/AccordionWithCheckbox.js +27 -12
- package/dist/Atomic/FormElements/TimeRange/TimeRange.interface.js +4 -1
- package/dist/Atomic/FormElements/TimeRange/TimeRange.js +79 -23
- package/dist/Atomic/FormElements/TimeRange/TimeRange.stories.js +30 -7
- package/dist/Atomic/FormElements/TimeRange/TimeRange.test.js +59 -50
- package/dist/Atomic/FormElements/TimeRange/index.js +17 -2
- package/dist/Atomic/FormElements/UserContacts/UserContact.test.js +77 -68
- package/dist/Atomic/FormElements/UserContacts/UserContacts.interface.js +4 -1
- package/dist/Atomic/FormElements/UserContacts/UserContacts.js +79 -23
- package/dist/Atomic/FormElements/UserContacts/UserContacts.stories.js +31 -8
- package/dist/Atomic/FormElements/UserContacts/index.js +17 -2
- package/dist/Atomic/FormElements/VariantsListRadio/VariantsListRadio.js +71 -15
- package/dist/Atomic/FormElements/VariantsListRadio/VariantsListRadio.stories.js +78 -14
- package/dist/Atomic/FormElements/VariantsListRadio/partials/VariantsListRadioItem.js +39 -24
- package/dist/Atomic/FormElements/WidgetPseudoTable/WidgetPseudoTable.js +45 -30
- package/dist/Atomic/FormElements/WidgetPseudoTable/WidgetPseudoTable.stories.js +81 -17
- package/dist/Atomic/FormElements/WidgetPseudoTable/partial/constructor.js +11 -1
- package/dist/Atomic/FormElements/WidgetWithSwitchableRows/WidgetWithSwitchableRows.js +45 -30
- package/dist/Atomic/FormElements/WidgetWithSwitchableRows/WidgetWithSwitchableRows.stories.js +82 -18
- package/dist/Atomic/FormElements/WidgetWithSwitchableRows/partial/constructor.js +11 -1
- package/dist/Atomic/Layout/Header/Header.js +83 -27
- package/dist/Atomic/Layout/Header/Header.stories.js +31 -8
- package/dist/Atomic/Layout/MainMenu/MainMenu.js +107 -51
- package/dist/Atomic/Layout/MainMenu/MainMenu.stories.js +31 -8
- package/dist/Atomic/Layout/Spinner/Spinner.interface.js +4 -1
- package/dist/Atomic/Layout/Spinner/Spinner.js +28 -13
- package/dist/Atomic/Layout/Spinner/Spinner.stories.js +30 -7
- package/dist/Atomic/Layout/Spinner/Spinner.test.js +22 -13
- package/dist/Atomic/Layout/Spinner/index.js +17 -2
- package/dist/Atomic/UI/Accordion/Accordion.interface.js +4 -1
- package/dist/Atomic/UI/Accordion/Accordion.js +77 -21
- package/dist/Atomic/UI/Accordion/Accordion.stories.js +36 -10
- package/dist/Atomic/UI/Accordion/Accordion.test.js +18 -9
- package/dist/Atomic/UI/Accordion/AccordionItem.js +84 -28
- package/dist/Atomic/UI/Accordion/AccordionItem.test.js +18 -9
- package/dist/Atomic/UI/Accordion/index.js +17 -2
- package/dist/Atomic/UI/AccordionTable/AccordionTable.js +99 -43
- package/dist/Atomic/UI/AccordionTable/AccordionTable.stories.js +80 -16
- package/dist/Atomic/UI/AccordionText/AccordionText.js +73 -18
- package/dist/Atomic/UI/AccordionText/AccordionText.stories.js +59 -36
- package/dist/Atomic/UI/AdvancedTag/AdvTag.js +94 -38
- package/dist/Atomic/UI/AdvancedTag/AdvancedTags.js +70 -14
- package/dist/Atomic/UI/AdvancedTag/AdvancedTags.stories.js +31 -8
- package/dist/Atomic/UI/Alert/Alert.js +78 -22
- package/dist/Atomic/UI/Alert/Alert.stories.js +38 -12
- package/dist/Atomic/UI/Arrow/Arrow.js +78 -22
- package/dist/Atomic/UI/Arrow/Arrow.stories.js +31 -8
- package/dist/Atomic/UI/Box/Box.js +22 -8
- package/dist/Atomic/UI/Box/Box.stories.js +41 -18
- package/dist/Atomic/UI/Button/Button.js +24 -9
- package/dist/Atomic/UI/Button/Button.stories.js +32 -9
- package/dist/Atomic/UI/Button/Button.test.js +51 -42
- package/dist/Atomic/UI/ButtonsBar/ButtonsBar.js +30 -15
- package/dist/Atomic/UI/ButtonsBar/ButtonsBar.stories.js +35 -13
- package/dist/Atomic/UI/Chart/Chart.js +105 -49
- package/dist/Atomic/UI/Chart/Chart.stories.js +31 -8
- package/dist/Atomic/UI/Chart/partial/Chart.constants.js +44 -8
- package/dist/Atomic/UI/Chart/partial/ChartTypeSwitcherIcon/ChartTypeSwitcherIcon.js +30 -15
- package/dist/Atomic/UI/Chart/partial/datasetSetters.js +34 -9
- package/dist/Atomic/UI/Chart/partial/optionsConstructor.js +41 -16
- package/dist/Atomic/UI/Chart/partial/optionsSetters.js +24 -3
- package/dist/Atomic/UI/Chart/partial/utils.js +45 -13
- package/dist/Atomic/UI/CircleProgressBar/CircleProgressBar.js +76 -20
- package/dist/Atomic/UI/CircleProgressBar/CircleProgressBar.stories.js +32 -9
- package/dist/Atomic/UI/DateTime/DateTime.js +70 -14
- package/dist/Atomic/UI/DateTime/DateTime.stories.js +32 -9
- package/dist/Atomic/UI/DebugContainer/DebugContainer.js +65 -14
- package/dist/Atomic/UI/DebugContainer/useDebugContainer.js +62 -6
- package/dist/Atomic/UI/DoubleString/DoubleString.js +85 -29
- package/dist/Atomic/UI/DoubleString/DoubleString.stories.js +39 -13
- package/dist/Atomic/UI/DynamicIcon/DynamicIcon.interface.js +4 -1
- package/dist/Atomic/UI/DynamicIcon/DynamicIcon.js +58 -7
- package/dist/Atomic/UI/DynamicIcon/DynamicIcon.stories.js +72 -8
- package/dist/Atomic/UI/DynamicIcon/DynamicIcon.test.js +24 -15
- package/dist/Atomic/UI/DynamicIcon/index.js +17 -2
- package/dist/Atomic/UI/ExampleChartIntegration/ExampleChartIntegration.js +101 -46
- package/dist/Atomic/UI/ExampleChartIntegration/ExampleChartIntegration.stories.js +72 -8
- package/dist/Atomic/UI/ExampleChartIntegration/partial/utils.js +41 -12
- package/dist/Atomic/UI/Hint/Hint.interface.js +4 -1
- package/dist/Atomic/UI/Hint/Hint.js +93 -37
- package/dist/Atomic/UI/Hint/Hint.stories.js +38 -15
- package/dist/Atomic/UI/Hint/Hint.test.js +13 -4
- package/dist/Atomic/UI/Hint/index.js +17 -2
- package/dist/Atomic/UI/Hint/partials/_utils.js +36 -11
- package/dist/Atomic/UI/Modal/Modal.interface.js +4 -1
- package/dist/Atomic/UI/Modal/Modal.js +61 -35
- package/dist/Atomic/UI/Modal/Modal.stories.js +85 -38
- package/dist/Atomic/UI/Modal/ModalHOC.js +68 -12
- package/dist/Atomic/UI/Modal/ModalHOC.stories.js +59 -27
- package/dist/Atomic/UI/Modal/ModalHOC.test.js +47 -38
- package/dist/Atomic/UI/Modal/index.js +26 -4
- package/dist/Atomic/UI/Modal/partials/ModalFooter.js +63 -7
- package/dist/Atomic/UI/Modal/partials/ModalFooter.test.js +40 -31
- package/dist/Atomic/UI/Modal/partials/ModalTitle.js +71 -15
- package/dist/Atomic/UI/Modal/partials/ModalTitle.test.js +39 -30
- package/dist/Atomic/UI/Modal/partials/useMobileModal.js +34 -19
- package/dist/Atomic/UI/Modal/partials/useMobileModal.test.js +28 -19
- package/dist/Atomic/UI/MonoAccordion/MonoAccordion._test.js +34 -25
- package/dist/Atomic/UI/MonoAccordion/MonoAccordion.interface.js +4 -1
- package/dist/Atomic/UI/MonoAccordion/MonoAccordion.js +73 -17
- package/dist/Atomic/UI/MonoAccordion/MonoAccordion.stories.js +184 -101
- package/dist/Atomic/UI/MonoAccordion/index.js +17 -2
- package/dist/Atomic/UI/NavLine/NavLine.interface.js +4 -1
- package/dist/Atomic/UI/NavLine/NavLine.js +102 -46
- package/dist/Atomic/UI/NavLine/NavLine.stories.js +116 -32
- package/dist/Atomic/UI/NavLine/NavLine.test.js +53 -44
- package/dist/Atomic/UI/NavLine/index.js +17 -2
- package/dist/Atomic/UI/PageTitle/PageTitle.interface.js +4 -1
- package/dist/Atomic/UI/PageTitle/PageTitle.js +34 -19
- package/dist/Atomic/UI/PageTitle/PageTitle.stories.js +33 -10
- package/dist/Atomic/UI/PageTitle/PageTitle.test.js +51 -42
- package/dist/Atomic/UI/PageTitle/index.js +17 -2
- package/dist/Atomic/UI/PieChart/PieChart.js +35 -66
- package/dist/Atomic/UI/PieChart/PieChart.scss +11 -87
- package/dist/Atomic/UI/PieChart/PieChart.stories.js +81 -56
- package/dist/Atomic/UI/Price/Price.interface.js +4 -1
- package/dist/Atomic/UI/Price/Price.js +24 -9
- package/dist/Atomic/UI/Price/Price.stories.js +30 -7
- package/dist/Atomic/UI/Price/Price.test.js +21 -12
- package/dist/Atomic/UI/Price/index.js +17 -2
- package/dist/Atomic/UI/PriceRange/PriceRange.interface.js +4 -1
- package/dist/Atomic/UI/PriceRange/PriceRange.js +26 -11
- package/dist/Atomic/UI/PriceRange/PriceRange.stories.js +30 -7
- package/dist/Atomic/UI/PriceRange/PriceRange.test.js +18 -9
- package/dist/Atomic/UI/PriceRange/index.js +17 -2
- package/dist/Atomic/UI/ProgressLine/ProgressLine.interface.js +4 -1
- package/dist/Atomic/UI/ProgressLine/ProgressLine.js +32 -17
- package/dist/Atomic/UI/ProgressLine/ProgressLine.stories.js +30 -7
- package/dist/Atomic/UI/ProgressLine/ProgressLine.test.js +18 -9
- package/dist/Atomic/UI/ProgressLine/index.js +17 -2
- package/dist/Atomic/UI/Status/Status.interface.js +4 -1
- package/dist/Atomic/UI/Status/Status.js +31 -16
- package/dist/Atomic/UI/Status/Status.stories.js +34 -8
- package/dist/Atomic/UI/Status/Status.test.js +32 -23
- package/dist/Atomic/UI/Status/index.js +17 -2
- package/dist/Atomic/UI/Table/Partials/TdCell.js +79 -23
- package/dist/Atomic/UI/Table/Partials/TdHeader.js +32 -17
- package/dist/Atomic/UI/Table/Partials/TdRow.js +81 -25
- package/dist/Atomic/UI/Table/Partials/TdTitle.js +75 -19
- package/dist/Atomic/UI/Table/Table.js +32 -17
- package/dist/Atomic/UI/Table/Table.stories.js +73 -9
- package/dist/Atomic/UI/Table/TdTypes/TdActions.js +74 -18
- package/dist/Atomic/UI/Table/TdTypes/TdPriority.js +28 -13
- package/dist/Atomic/UI/Table/TdTypes/TdRange.js +16 -6
- package/dist/Atomic/UI/Table/TdTypes/TdWeight.js +32 -17
- package/dist/Atomic/UI/Tag/Tag.interface.js +4 -1
- package/dist/Atomic/UI/Tag/Tag.js +80 -24
- package/dist/Atomic/UI/Tag/Tag.stories.js +38 -15
- package/dist/Atomic/UI/Tag/Tag.test.js +30 -21
- package/dist/Atomic/UI/Tag/index.js +17 -2
- package/dist/Atomic/UI/TagList/TagList.js +84 -28
- package/dist/Atomic/UI/TagList/TagList.stories.js +80 -16
- package/dist/Atomic/UI/UserBox/UserBox.interface.js +4 -1
- package/dist/Atomic/UI/UserBox/UserBox.js +37 -22
- package/dist/Atomic/UI/UserBox/UserBox.stories.js +30 -7
- package/dist/Atomic/UI/UserBox/UserBox.test.js +74 -24
- package/dist/Atomic/UI/UserBox/index.js +17 -2
- package/dist/Atomic/UI/WizardStepper/WizardStepper.stories.js +34 -11
- package/dist/Atomic/UI/WizardStepper/constructor.js +34 -11
- package/dist/Atomic/UI/WizardStepper/index.js +17 -2
- package/dist/Atomic/UI/WizardStepper/ui/StateIcon/StateIcon.js +31 -16
- package/dist/Atomic/UI/WizardStepper/ui/StateIcon/index.js +12 -2
- package/dist/Atomic/UI/WizardStepper/ui/StepRow/StepRow.js +39 -25
- package/dist/Atomic/UI/WizardStepper/ui/StepRow/index.js +17 -2
- package/dist/Atomic/UI/WizardStepper/ui/StepWrapper/StepWrapper.js +34 -19
- package/dist/Atomic/UI/WizardStepper/ui/StepWrapper/index.js +17 -2
- package/dist/Atomic/UI/WizardStepper/ui/icons.js +39 -24
- package/dist/Atomic/UI/WizardStepper/ui/index.js +17 -2
- package/dist/Classes/AbortableFetch.js +12 -2
- package/dist/Classes/AnimatedHandler.js +11 -1
- package/dist/Classes/RESTAPI/index.js +24 -9
- package/dist/Classes/RESTAPI/partials/AbortableFetch.js +12 -2
- package/dist/Classes/RESTAPI/partials/ApiBase.js +18 -3
- package/dist/Classes/RESTAPI/partials/ApiRequestCreators.js +25 -10
- package/dist/Classes/RESTAPI/partials/ApiUtils.js +22 -7
- package/dist/Classes/RESTAPI/partials/CredentialsProcessing.js +20 -5
- package/dist/Classes/RESTAPI/partials/Utils.js +14 -4
- package/dist/Classes/RESTAPI/partials/_outerDependencies.js +18 -3
- package/dist/Classes/RESTAPI/partials/_utils.js +43 -10
- package/dist/Constants/index.constants.js +40 -7
- package/dist/DeepPartial.d.ts +40 -0
- package/dist/DeepReadonly.d.ts +38 -0
- package/dist/DeepRequired.d.ts +50 -0
- package/dist/Flatten.d.ts +34 -0
- package/dist/FunctionType.d.ts +37 -0
- package/dist/Functions/Portal.js +62 -6
- package/dist/Functions/customEventListener.js +1 -0
- package/dist/Functions/dateTime.js +31 -21
- package/dist/Functions/fieldValueFormatters.js +79 -61
- package/dist/Functions/guards/assertions.js +19 -4
- package/dist/Functions/guards/safeValue.js +21 -6
- package/dist/Functions/guards/typeGuards.js +12 -2
- package/dist/Functions/hooks/useFormFieldsChangesManager.js +55 -4
- package/dist/Functions/locale/createTranslator.js +13 -3
- package/dist/Functions/operations.js +11 -1
- package/dist/Functions/presets/inputMaskPresets.js +12 -2
- package/dist/Functions/presets/inputPresets.js +14 -4
- package/dist/Functions/presets/mobileKeyboardTypesPresets.js +24 -32
- package/dist/Functions/schemas.js +77 -15
- package/dist/Functions/useBodyScrollLock.js +13 -3
- package/dist/Functions/useClickOutside.js +13 -3
- package/dist/Functions/useDebounce.js +55 -4
- package/dist/Functions/useFieldFocus.js +17 -7
- package/dist/Functions/useFormTools/form-drivers/ArrayWithObjects.js +18 -3
- package/dist/Functions/useFormTools/form-drivers/ObjectWithIterableObjects.js +11 -1
- package/dist/Functions/useFormTools/form-drivers/ObjectWithNamedKeyObjects.js +18 -3
- package/dist/Functions/useFormTools/functions/General.js +11 -1
- package/dist/Functions/useFormTools/functions/RenderFields.js +16 -6
- package/dist/Functions/useFormTools/functions/usePrevious.js +14 -4
- package/dist/Functions/useFormTools/index.js +50 -35
- package/dist/Functions/useInputHighlightError.js +68 -9
- package/dist/Functions/useIsMobile/index.js +17 -2
- package/dist/Functions/useIsMobile/useIsMobile.js +14 -4
- package/dist/Functions/useIsMobile/useIsMobile.test.js +18 -9
- package/dist/Functions/useKeyPress/useHandleKeyPress.js +21 -6
- package/dist/Functions/useKeyPress/useHandleKeyPress.test.js +20 -11
- package/dist/Functions/useKeyPress/useKeyPress.js +16 -6
- package/dist/Functions/useKeyPress/useKeyPress.test.js +25 -16
- package/dist/Functions/useLocalStorage.js +13 -3
- package/dist/Functions/useLocationParams.js +14 -4
- package/dist/Functions/useMediaQuery.js +13 -3
- package/dist/Functions/useMetaInfo.js +27 -9
- package/dist/Functions/useMouseUpOutside.js +13 -3
- package/dist/Functions/useOnlineStatus.js +14 -4
- package/dist/Functions/usePasswordChecker.js +69 -13
- package/dist/Functions/usePrevious.js +14 -4
- package/dist/Functions/useResize.js +15 -5
- package/dist/Functions/useScrollTo.js +15 -5
- package/dist/Functions/useToggle.js +16 -6
- package/dist/Functions/utils.js +173 -67
- package/dist/If.d.ts +34 -0
- package/dist/KeysType.d.ts +10 -0
- package/dist/Molecular/CustomIcons/components/AffiliateNetworks.js +57 -6
- package/dist/Molecular/CustomIcons/components/AlertCircle.js +57 -6
- package/dist/Molecular/CustomIcons/components/AppStore.js +59 -8
- package/dist/Molecular/CustomIcons/components/Arrow.js +62 -11
- package/dist/Molecular/CustomIcons/components/ArrowDown.js +55 -4
- package/dist/Molecular/CustomIcons/components/ArrowLeft.js +56 -5
- package/dist/Molecular/CustomIcons/components/ArrowRight.js +56 -5
- package/dist/Molecular/CustomIcons/components/ArrowUp.js +55 -4
- package/dist/Molecular/CustomIcons/components/Bell.js +55 -4
- package/dist/Molecular/CustomIcons/components/Button.js +55 -4
- package/dist/Molecular/CustomIcons/components/Campaigns.js +55 -4
- package/dist/Molecular/CustomIcons/components/Check.js +55 -4
- package/dist/Molecular/CustomIcons/components/Check2.js +55 -4
- package/dist/Molecular/CustomIcons/components/ChevronDown.js +55 -4
- package/dist/Molecular/CustomIcons/components/ChevronDownDisabled.js +55 -4
- package/dist/Molecular/CustomIcons/components/ChevronLeft.js +55 -4
- package/dist/Molecular/CustomIcons/components/ChevronRight.js +55 -4
- package/dist/Molecular/CustomIcons/components/ChevronUp.js +55 -4
- package/dist/Molecular/CustomIcons/components/ChevronUpDown.js +58 -7
- package/dist/Molecular/CustomIcons/components/Close.js +56 -5
- package/dist/Molecular/CustomIcons/components/ColumnsOrder.js +60 -9
- package/dist/Molecular/CustomIcons/components/Delete.js +55 -4
- package/dist/Molecular/CustomIcons/components/Edit.js +55 -4
- package/dist/Molecular/CustomIcons/components/Email.js +59 -8
- package/dist/Molecular/CustomIcons/components/FinturfLogo.js +60 -9
- package/dist/Molecular/CustomIcons/components/FinturfLogo2.js +59 -8
- package/dist/Molecular/CustomIcons/components/Flows.js +55 -4
- package/dist/Molecular/CustomIcons/components/Gift.js +56 -5
- package/dist/Molecular/CustomIcons/components/GoogleAuth.js +59 -8
- package/dist/Molecular/CustomIcons/components/GooglePlay.js +59 -8
- package/dist/Molecular/CustomIcons/components/HelpCircle.js +56 -5
- package/dist/Molecular/CustomIcons/components/HelpCircle2.js +56 -5
- package/dist/Molecular/CustomIcons/components/HelpCircleFilled.js +56 -5
- package/dist/Molecular/CustomIcons/components/Home.js +56 -5
- package/dist/Molecular/CustomIcons/components/Home2.js +56 -5
- package/dist/Molecular/CustomIcons/components/Key.js +55 -4
- package/dist/Molecular/CustomIcons/components/Landers.js +56 -5
- package/dist/Molecular/CustomIcons/components/Lock.js +55 -4
- package/dist/Molecular/CustomIcons/components/Mail.js +57 -6
- package/dist/Molecular/CustomIcons/components/Mastercard.js +67 -16
- package/dist/Molecular/CustomIcons/components/Minus.js +58 -7
- package/dist/Molecular/CustomIcons/components/Offers.js +55 -4
- package/dist/Molecular/CustomIcons/components/Pause.js +58 -7
- package/dist/Molecular/CustomIcons/components/PayPal.js +61 -10
- package/dist/Molecular/CustomIcons/components/PayPalLightLarge.js +59 -8
- package/dist/Molecular/CustomIcons/components/Phone.js +58 -7
- package/dist/Molecular/CustomIcons/components/Play.js +58 -7
- package/dist/Molecular/CustomIcons/components/Plus.js +58 -7
- package/dist/Molecular/CustomIcons/components/Profile.js +56 -5
- package/dist/Molecular/CustomIcons/components/QRCode.js +59 -8
- package/dist/Molecular/CustomIcons/components/Rectangle.js +55 -4
- package/dist/Molecular/CustomIcons/components/Revert.js +56 -5
- package/dist/Molecular/CustomIcons/components/Star.js +55 -4
- package/dist/Molecular/CustomIcons/components/Star2.js +55 -4
- package/dist/Molecular/CustomIcons/components/TrafficSources.js +57 -6
- package/dist/Molecular/CustomIcons/components/Trash.js +55 -4
- package/dist/Molecular/CustomIcons/components/TrashRed.js +55 -4
- package/dist/Molecular/CustomIcons/components/Triggers.js +55 -4
- package/dist/Molecular/CustomIcons/components/User.js +56 -5
- package/dist/Molecular/CustomIcons/components/Visa.js +61 -10
- package/dist/Molecular/CustomIcons/components/X.js +55 -4
- package/dist/Molecular/CustomIcons/index.js +78 -61
- package/dist/Molecular/FormElement/FormElement.js +28 -13
- package/dist/Molecular/FormElement/FormElement.stories.js +33 -10
- package/dist/Molecular/FormWithDependOn/FormWithDependOn.js +74 -19
- package/dist/Molecular/FormWithDependOn/FormWithDependOn.stories.js +81 -17
- package/dist/Molecular/FormWithDependOn/partials/_utils.js +13 -3
- package/dist/Molecular/InputAddress/InputAddress.js +139 -83
- package/dist/Molecular/InputAddress/InputAddress.stories.js +78 -14
- package/dist/Molecular/InputPassword/InputPassword.js +73 -17
- package/dist/Molecular/InputPassword/InputPassword.stories.js +72 -8
- package/dist/NonNullableType.d.ts +13 -0
- package/dist/ObjectType.d.ts +9 -0
- package/dist/OnlyObjectKeys.d.ts +65 -0
- package/dist/PrettyPrint.d.ts +29 -0
- package/dist/RequiredFields.d.ts +21 -0
- package/dist/TupleType.d.ts +10 -0
- package/dist/ValuesType.d.ts +10 -0
- package/dist/lib/src/Atomic/UI/PieChart/PieChart.d.ts +7 -3
- package/dist/lib/src/Atomic/UI/PieChart/PieChart.stories.d.ts +15 -6
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/base.interface.js +4 -1
- package/dist/types/base.types.js +4 -1
- package/package.json +4 -3
- package/dist/Atomic/UI/PieChart/PieChar.interface.js +0 -1
- package/dist/Atomic/UI/PieChart/PieChart.test.js +0 -133
- package/dist/Atomic/UI/PieChart/index.js +0 -5
- package/dist/lib/src/Atomic/UI/PieChart/PieChar.interface.d.ts +0 -36
- package/dist/lib/src/Atomic/UI/PieChart/PieChart.test.d.ts +0 -1
- package/dist/lib/src/Atomic/UI/PieChart/index.d.ts +0 -13
|
@@ -1,40 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
12
|
+
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
13
|
+
const _StepRow = /*#__PURE__*/ _interop_require_default(require("../StepRow/StepRow"));
|
|
14
|
+
require("./StepWrapper.scss");
|
|
15
|
+
const _classnames = /*#__PURE__*/ _interop_require_default(require("classnames"));
|
|
16
|
+
const _Box = /*#__PURE__*/ _interop_require_default(require("../../../Box/Box"));
|
|
17
|
+
const _icons = require("../icons");
|
|
18
|
+
function _interop_require_default(obj) {
|
|
19
|
+
return obj && obj.__esModule ? obj : {
|
|
20
|
+
default: obj
|
|
21
|
+
};
|
|
22
|
+
}
|
|
8
23
|
const StepWrapper = ({ steps, customIcons, variant = 'default', className })=>{
|
|
9
24
|
if (!(steps === null || steps === void 0 ? void 0 : steps.length)) throw new Error('No steps provided');
|
|
10
25
|
switch(variant){
|
|
11
26
|
case 'ghost':
|
|
12
|
-
return /*#__PURE__*/
|
|
13
|
-
className:
|
|
27
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
|
|
28
|
+
className: (0, _classnames.default)('step-wrapper', 'step-wrapper-ghost', className),
|
|
14
29
|
children: [
|
|
15
|
-
steps === null || steps === void 0 ? void 0 : steps.map((step)=>/*#__PURE__*/
|
|
30
|
+
steps === null || steps === void 0 ? void 0 : steps.map((step)=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_StepRow.default, {
|
|
16
31
|
...step,
|
|
17
|
-
customIcons: alternativeIconSet
|
|
32
|
+
customIcons: _icons.alternativeIconSet
|
|
18
33
|
}, step.key)),
|
|
19
34
|
' '
|
|
20
35
|
]
|
|
21
36
|
});
|
|
22
37
|
case 'cardActive':
|
|
23
|
-
return /*#__PURE__*/
|
|
24
|
-
className:
|
|
25
|
-
children: steps === null || steps === void 0 ? void 0 : steps.map((step)=>/*#__PURE__*/
|
|
38
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
|
|
39
|
+
className: (0, _classnames.default)('step-wrapper', 'step-wrapper-card-active', className),
|
|
40
|
+
children: steps === null || steps === void 0 ? void 0 : steps.map((step)=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_StepRow.default, {
|
|
26
41
|
...step,
|
|
27
|
-
customIcons: alternativeIconSet
|
|
42
|
+
customIcons: _icons.alternativeIconSet
|
|
28
43
|
}, step.key))
|
|
29
44
|
});
|
|
30
45
|
default:
|
|
31
|
-
return /*#__PURE__*/
|
|
32
|
-
className:
|
|
33
|
-
children: steps === null || steps === void 0 ? void 0 : steps.map((step)=>/*#__PURE__*/
|
|
46
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
|
|
47
|
+
className: (0, _classnames.default)('step-wrapper', className),
|
|
48
|
+
children: steps === null || steps === void 0 ? void 0 : steps.map((step)=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_StepRow.default, {
|
|
34
49
|
...step,
|
|
35
50
|
customIcons: customIcons
|
|
36
51
|
}, step.key))
|
|
37
52
|
});
|
|
38
53
|
}
|
|
39
54
|
};
|
|
40
|
-
|
|
55
|
+
const _default = StepWrapper;
|
|
@@ -1,2 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _StepWrapper = /*#__PURE__*/ _interop_require_default(require("./StepWrapper"));
|
|
12
|
+
function _interop_require_default(obj) {
|
|
13
|
+
return obj && obj.__esModule ? obj : {
|
|
14
|
+
default: obj
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
const _default = _StepWrapper.default;
|
|
@@ -1,19 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "alternativeIconSet", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return alternativeIconSet;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
12
|
+
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
13
|
+
function _interop_require_default(obj) {
|
|
14
|
+
return obj && obj.__esModule ? obj : {
|
|
15
|
+
default: obj
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
const DoneIcon = (props)=>/*#__PURE__*/ (0, _jsxruntime.jsxs)("svg", {
|
|
4
19
|
width: "20",
|
|
5
20
|
height: "20",
|
|
6
21
|
viewBox: "0 0 20 20",
|
|
7
22
|
fill: "none",
|
|
8
23
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9
24
|
children: [
|
|
10
|
-
/*#__PURE__*/
|
|
25
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)("rect", {
|
|
11
26
|
width: "20",
|
|
12
27
|
height: "20",
|
|
13
28
|
rx: "10",
|
|
14
29
|
fill: "#69A457"
|
|
15
30
|
}),
|
|
16
|
-
/*#__PURE__*/
|
|
31
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)("mask", {
|
|
17
32
|
id: "mask0_54394_4001",
|
|
18
33
|
style: {
|
|
19
34
|
maskType: 'alpha'
|
|
@@ -23,7 +38,7 @@ const DoneIcon = (props)=>/*#__PURE__*/ _jsxs("svg", {
|
|
|
23
38
|
y: "2",
|
|
24
39
|
width: "16",
|
|
25
40
|
height: "16",
|
|
26
|
-
children: /*#__PURE__*/
|
|
41
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)("path", {
|
|
27
42
|
d: "M14.5 7L9 12.5L6 9.5",
|
|
28
43
|
stroke: "black",
|
|
29
44
|
strokeWidth: "2",
|
|
@@ -31,9 +46,9 @@ const DoneIcon = (props)=>/*#__PURE__*/ _jsxs("svg", {
|
|
|
31
46
|
strokeLinejoin: "round"
|
|
32
47
|
})
|
|
33
48
|
}),
|
|
34
|
-
/*#__PURE__*/
|
|
49
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)("g", {
|
|
35
50
|
mask: "url(#mask0_54394_4001)",
|
|
36
|
-
children: /*#__PURE__*/
|
|
51
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)("rect", {
|
|
37
52
|
x: "2",
|
|
38
53
|
y: "2",
|
|
39
54
|
width: "16",
|
|
@@ -44,16 +59,16 @@ const DoneIcon = (props)=>/*#__PURE__*/ _jsxs("svg", {
|
|
|
44
59
|
]
|
|
45
60
|
});
|
|
46
61
|
const TodoIcon = ()=>{
|
|
47
|
-
return /*#__PURE__*/
|
|
62
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)("svg", {
|
|
48
63
|
width: "20",
|
|
49
64
|
height: "20",
|
|
50
65
|
viewBox: "0 0 20 20",
|
|
51
66
|
fill: "none",
|
|
52
67
|
xmlns: "http://www.w3.org/2000/svg",
|
|
53
68
|
children: [
|
|
54
|
-
/*#__PURE__*/
|
|
69
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)("g", {
|
|
55
70
|
clipPath: "url(#clip0_54394_4448)",
|
|
56
|
-
children: /*#__PURE__*/
|
|
71
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)("circle", {
|
|
57
72
|
cx: "10",
|
|
58
73
|
cy: "10",
|
|
59
74
|
r: "7",
|
|
@@ -62,10 +77,10 @@ const TodoIcon = ()=>{
|
|
|
62
77
|
strokeWidth: "2"
|
|
63
78
|
})
|
|
64
79
|
}),
|
|
65
|
-
/*#__PURE__*/
|
|
66
|
-
children: /*#__PURE__*/
|
|
80
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)("defs", {
|
|
81
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)("clipPath", {
|
|
67
82
|
id: "clip0_54394_4448",
|
|
68
|
-
children: /*#__PURE__*/
|
|
83
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)("rect", {
|
|
69
84
|
width: "16",
|
|
70
85
|
height: "16",
|
|
71
86
|
fill: "white",
|
|
@@ -77,21 +92,21 @@ const TodoIcon = ()=>{
|
|
|
77
92
|
});
|
|
78
93
|
};
|
|
79
94
|
const ActiveIcon = ()=>{
|
|
80
|
-
return /*#__PURE__*/
|
|
95
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)("svg", {
|
|
81
96
|
width: "20",
|
|
82
97
|
height: "20",
|
|
83
98
|
viewBox: "0 0 20 20",
|
|
84
99
|
fill: "none",
|
|
85
100
|
xmlns: "http://www.w3.org/2000/svg",
|
|
86
101
|
children: [
|
|
87
|
-
/*#__PURE__*/
|
|
102
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)("rect", {
|
|
88
103
|
width: "20",
|
|
89
104
|
height: "20",
|
|
90
105
|
rx: "10",
|
|
91
106
|
fill: "#E8F9E5"
|
|
92
107
|
}),
|
|
93
108
|
"ii",
|
|
94
|
-
/*#__PURE__*/
|
|
109
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)("mask", {
|
|
95
110
|
id: "mask0_54394_1459",
|
|
96
111
|
style: {
|
|
97
112
|
maskType: 'alpha'
|
|
@@ -101,16 +116,16 @@ const ActiveIcon = ()=>{
|
|
|
101
116
|
y: "2",
|
|
102
117
|
width: "16",
|
|
103
118
|
height: "16",
|
|
104
|
-
children: /*#__PURE__*/
|
|
119
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)("circle", {
|
|
105
120
|
cx: "10",
|
|
106
121
|
cy: "10",
|
|
107
122
|
r: "4",
|
|
108
123
|
fill: "#171D33"
|
|
109
124
|
})
|
|
110
125
|
}),
|
|
111
|
-
/*#__PURE__*/
|
|
126
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)("g", {
|
|
112
127
|
mask: "url(#mask0_54394_1459)",
|
|
113
|
-
children: /*#__PURE__*/
|
|
128
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)("rect", {
|
|
114
129
|
x: "2",
|
|
115
130
|
y: "2",
|
|
116
131
|
width: "16",
|
|
@@ -121,8 +136,8 @@ const ActiveIcon = ()=>{
|
|
|
121
136
|
]
|
|
122
137
|
});
|
|
123
138
|
};
|
|
124
|
-
|
|
125
|
-
defaultIcon: /*#__PURE__*/
|
|
126
|
-
doneIcon: /*#__PURE__*/
|
|
127
|
-
activeIcon: /*#__PURE__*/
|
|
139
|
+
const alternativeIconSet = {
|
|
140
|
+
defaultIcon: /*#__PURE__*/ (0, _jsxruntime.jsx)(TodoIcon, {}),
|
|
141
|
+
doneIcon: /*#__PURE__*/ (0, _jsxruntime.jsx)(DoneIcon, {}),
|
|
142
|
+
activeIcon: /*#__PURE__*/ (0, _jsxruntime.jsx)(ActiveIcon, {})
|
|
128
143
|
};
|
|
@@ -1,2 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _StepWrapper = /*#__PURE__*/ _interop_require_default(require("./StepWrapper"));
|
|
12
|
+
function _interop_require_default(obj) {
|
|
13
|
+
return obj && obj.__esModule ? obj : {
|
|
14
|
+
default: obj
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
const _default = _StepWrapper.default;
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
/* eslint-disable no-unused-vars */
|
|
1
|
+
/* eslint-disable no-unused-vars */ "use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
function _check_private_redeclaration(obj, privateCollection) {
|
|
2
12
|
if (privateCollection.has(obj)) {
|
|
3
13
|
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
4
14
|
}
|
|
@@ -387,4 +397,4 @@ class AbortableFetch {
|
|
|
387
397
|
this.setProps(input || {});
|
|
388
398
|
}
|
|
389
399
|
}
|
|
390
|
-
|
|
400
|
+
const _default = AbortableFetch;
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
1
11
|
const DEFAULT_ANIMATION_DURATION = 200;
|
|
2
12
|
class AnimatedHandler {
|
|
3
13
|
constructor(params){
|
|
@@ -24,4 +34,4 @@ class AnimatedHandler {
|
|
|
24
34
|
};
|
|
25
35
|
}
|
|
26
36
|
}
|
|
27
|
-
|
|
37
|
+
const _default = AnimatedHandler;
|
|
@@ -1,10 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _ApiBase = /*#__PURE__*/ _interop_require_default(require("./partials/ApiBase"));
|
|
12
|
+
const _CredentialsProcessing = /*#__PURE__*/ _interop_require_default(require("./partials/CredentialsProcessing"));
|
|
13
|
+
const _utils = require("./partials/_utils");
|
|
14
|
+
function _interop_require_default(obj) {
|
|
15
|
+
return obj && obj.__esModule ? obj : {
|
|
16
|
+
default: obj
|
|
17
|
+
};
|
|
18
|
+
}
|
|
4
19
|
function returnTheContext() {
|
|
5
20
|
return this;
|
|
6
21
|
}
|
|
7
|
-
class RESTAPI extends
|
|
22
|
+
class RESTAPI extends _ApiBase.default {
|
|
8
23
|
//! Основной (базовый) метод API, мультизапросы
|
|
9
24
|
async doRequest(inputRequests, settings) {
|
|
10
25
|
if (typeof inputRequests !== "string" && typeof inputRequests !== "object") {
|
|
@@ -17,7 +32,7 @@ class RESTAPI extends ApiBase {
|
|
|
17
32
|
const { commonSuccessMessage: CSMfromSettings, commonErrorMessage: CEMfromSettings, successMessageType: SMTfromSettings, isToastResult: isToastFromSettings, toastOptions: TOFomSettings, isNoToastSuccess: isNTSFromSettings, isNoToastError: isNTEFromSettings, isNoToast: isNoToastFromSettings, successMessages, errorMessages } = partialRestSettings || {};
|
|
18
33
|
//? При вызове getRequestInstance передадим контекст API
|
|
19
34
|
//? В результате вызова получим экземпляр класса AbortableFetch...
|
|
20
|
-
const instance = await getInstanceOfFetchSystem.call(this);
|
|
35
|
+
const instance = await _utils.getInstanceOfFetchSystem.call(this);
|
|
21
36
|
if (!instance) {
|
|
22
37
|
throw new Error('It is impossible to make a request!');
|
|
23
38
|
}
|
|
@@ -95,7 +110,7 @@ class RESTAPI extends ApiBase {
|
|
|
95
110
|
}
|
|
96
111
|
//! Метод API для одиночных запросов
|
|
97
112
|
async doMonoRequest(requestSettings) {
|
|
98
|
-
if (!getIsOnlyAnObject(requestSettings)) throw new Error(`${this.BAD_REQUEST_DATA_TEXT} [RESTAPI.doMonoRequest]`);
|
|
113
|
+
if (!(0, _utils.getIsOnlyAnObject)(requestSettings)) throw new Error(`${this.BAD_REQUEST_DATA_TEXT} [RESTAPI.doMonoRequest]`);
|
|
99
114
|
const { type, ...requestSettingsRest } = requestSettings;
|
|
100
115
|
//? Реквест-крейтеры разделяют параметры, при надобности эти параметры конфигурируют, добавляют ф-ть
|
|
101
116
|
//? и возвращают массив подготовленных аргументов для метода doRequest
|
|
@@ -113,8 +128,8 @@ class RESTAPI extends ApiBase {
|
|
|
113
128
|
//! Наличие credentialsProcessing подключает ДОБАВЛЕНИЕ ТОКЕНОВ В ЗАПРОСЫ,
|
|
114
129
|
//! НО по умолчанию НЕ добавляет флоу рефреша токенов
|
|
115
130
|
//! (флоу рефреша подключается пропой isUseRefreshTokensPropcessing из credentialsProcessing)
|
|
116
|
-
if (getIsOnlyAnObject(credentialsProcessing)) {
|
|
117
|
-
this.credentialsProcessing = new
|
|
131
|
+
if ((0, _utils.getIsOnlyAnObject)(credentialsProcessing)) {
|
|
132
|
+
this.credentialsProcessing = new _CredentialsProcessing.default(settings);
|
|
118
133
|
//? credentialsProcessing расположен обособлено для того, чтобы обладать своим независимым this
|
|
119
134
|
//? Однако при описании методов credentialsProcessing
|
|
120
135
|
//? может понадобится воспользоваться непосредственными методами класса RESTAPI
|
|
@@ -123,4 +138,4 @@ class RESTAPI extends ApiBase {
|
|
|
123
138
|
}
|
|
124
139
|
}
|
|
125
140
|
}
|
|
126
|
-
|
|
141
|
+
const _default = RESTAPI;
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
/* eslint-disable no-unused-vars */
|
|
1
|
+
/* eslint-disable no-unused-vars */ "use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
function _check_private_redeclaration(obj, privateCollection) {
|
|
2
12
|
if (privateCollection.has(obj)) {
|
|
3
13
|
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
4
14
|
}
|
|
@@ -393,4 +403,4 @@ class AbortableFetch {
|
|
|
393
403
|
this.setProps(input || {});
|
|
394
404
|
}
|
|
395
405
|
}
|
|
396
|
-
|
|
406
|
+
const _default = AbortableFetch;
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _ApiRequestCreators = /*#__PURE__*/ _interop_require_default(require("./ApiRequestCreators"));
|
|
12
|
+
function _interop_require_default(obj) {
|
|
13
|
+
return obj && obj.__esModule ? obj : {
|
|
14
|
+
default: obj
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
class ApiBase extends _ApiRequestCreators.default {
|
|
3
18
|
constructor(settings){
|
|
4
19
|
super(settings);
|
|
5
20
|
const { API_PATH, BAD_REQUEST_DATA_TEXT = "Bad request data", DEFAULT_SUCCESS_MESSAGE = "Success", DEFAULT_ERROR_MESSAGE = "Something wrong, try again", NO_INET = "Please check your network connection and reload page", REJECT_CODES = [], ...customConstants } = settings.constants || {};
|
|
@@ -18,4 +33,4 @@ class ApiBase extends ApiRequestCreators {
|
|
|
18
33
|
});
|
|
19
34
|
}
|
|
20
35
|
}
|
|
21
|
-
|
|
36
|
+
const _default = ApiBase;
|
|
@@ -1,12 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _ApiUtils = /*#__PURE__*/ _interop_require_default(require("./ApiUtils"));
|
|
12
|
+
const _utils = require("./_utils");
|
|
13
|
+
function _interop_require_default(obj) {
|
|
14
|
+
return obj && obj.__esModule ? obj : {
|
|
15
|
+
default: obj
|
|
16
|
+
};
|
|
17
|
+
}
|
|
3
18
|
//? Префикс createRequest_ добавляется к крейтерам с целью разгрузить пространство имен
|
|
4
19
|
const PREFIX_OF_CLASS_UTILS = "createRequest_";
|
|
5
|
-
class ApiRequestCreators extends
|
|
20
|
+
class ApiRequestCreators extends _ApiUtils.default {
|
|
6
21
|
//? При типе toJson пользовательский callback на вход получит тело ответа реализованное методом Response.json()
|
|
7
22
|
//? независимо от насторойки isGetBody
|
|
8
23
|
async createRequest_toJson(props, variant) {
|
|
9
|
-
const safelyProps = omitKeys(props, [
|
|
24
|
+
const safelyProps = (0, _utils.omitKeys)(props, [
|
|
10
25
|
'getBodyAs'
|
|
11
26
|
]);
|
|
12
27
|
return this.splitProperties({
|
|
@@ -24,7 +39,7 @@ class ApiRequestCreators extends ApiUtils {
|
|
|
24
39
|
//? где response - объект Response, result - тело ответа реализованное методом Response.json()
|
|
25
40
|
//? независимо от насторойки isGetBody
|
|
26
41
|
async createRequest_toJsonAdvanced(props, variant) {
|
|
27
|
-
const safelyProps = omitKeys(props, [
|
|
42
|
+
const safelyProps = (0, _utils.omitKeys)(props, [
|
|
28
43
|
'getBodyAs'
|
|
29
44
|
]);
|
|
30
45
|
return this.splitProperties({
|
|
@@ -34,7 +49,7 @@ class ApiRequestCreators extends ApiUtils {
|
|
|
34
49
|
var _safelyProps_callback;
|
|
35
50
|
const output = {
|
|
36
51
|
response: res,
|
|
37
|
-
result: await this.getResponseBody(await getResponseClone(res), 'json')
|
|
52
|
+
result: await this.getResponseBody(await (0, _utils.getResponseClone)(res), 'json')
|
|
38
53
|
};
|
|
39
54
|
var _safelyProps_callback1;
|
|
40
55
|
return await ((_safelyProps_callback1 = (_safelyProps_callback = safelyProps.callback) === null || _safelyProps_callback === void 0 ? void 0 : _safelyProps_callback.call(safelyProps, output)) !== null && _safelyProps_callback1 !== void 0 ? _safelyProps_callback1 : output);
|
|
@@ -44,7 +59,7 @@ class ApiRequestCreators extends ApiUtils {
|
|
|
44
59
|
//? При типе blob пользовательский callback на вход получит тело ответа реализованное методом Response.blob(),
|
|
45
60
|
//? независимо от насторойки isGetBody
|
|
46
61
|
async createRequest_blob(props, variant) {
|
|
47
|
-
const safelyProps = omitKeys(props, [
|
|
62
|
+
const safelyProps = (0, _utils.omitKeys)(props, [
|
|
48
63
|
'getBodyAs'
|
|
49
64
|
]);
|
|
50
65
|
return this.splitProperties({
|
|
@@ -52,7 +67,7 @@ class ApiRequestCreators extends ApiUtils {
|
|
|
52
67
|
isGetBody: false,
|
|
53
68
|
callback: async (res)=>{
|
|
54
69
|
var _safelyProps_callback;
|
|
55
|
-
const output = await this.getResponseBody(await getResponseClone(res), 'blob');
|
|
70
|
+
const output = await this.getResponseBody(await (0, _utils.getResponseClone)(res), 'blob');
|
|
56
71
|
var _safelyProps_callback1;
|
|
57
72
|
return await ((_safelyProps_callback1 = (_safelyProps_callback = safelyProps.callback) === null || _safelyProps_callback === void 0 ? void 0 : _safelyProps_callback.call(safelyProps, output)) !== null && _safelyProps_callback1 !== void 0 ? _safelyProps_callback1 : output);
|
|
58
73
|
}
|
|
@@ -93,7 +108,7 @@ class ApiRequestCreators extends ApiUtils {
|
|
|
93
108
|
constructor(settings){
|
|
94
109
|
super(settings);
|
|
95
110
|
const { requestsCreators } = settings || {};
|
|
96
|
-
if (getIsOnlyAnObject(requestsCreators)) addCustomMethods.call(this, requestsCreators, PREFIX_OF_CLASS_UTILS);
|
|
111
|
+
if ((0, _utils.getIsOnlyAnObject)(requestsCreators)) _utils.addCustomMethods.call(this, requestsCreators, PREFIX_OF_CLASS_UTILS);
|
|
97
112
|
}
|
|
98
113
|
}
|
|
99
|
-
|
|
114
|
+
const _default = ApiRequestCreators;
|
|
@@ -1,6 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _Utils = /*#__PURE__*/ _interop_require_default(require("./Utils"));
|
|
12
|
+
const _utils = require("./_utils");
|
|
13
|
+
function _interop_require_default(obj) {
|
|
14
|
+
return obj && obj.__esModule ? obj : {
|
|
15
|
+
default: obj
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
class ApiUtils extends _Utils.default {
|
|
4
19
|
//? Планируется, что метод будет использоваться неизменно, однако технически его можно перегрузить на экземпляре
|
|
5
20
|
//? Метод не планировался как асинхронный,
|
|
6
21
|
//? однако ввиду того что он может быть перегружен на экземпляре асинхронность предусматривается
|
|
@@ -102,8 +117,8 @@ class ApiUtils extends Utils {
|
|
|
102
117
|
//! то это воспринимается как отключение шага информирования об ошибке запроса как такового
|
|
103
118
|
if (typeof this.sendMessage !== "function") return res;
|
|
104
119
|
const { successMess, errorMess } = settings || {};
|
|
105
|
-
const message = res.ok ? successMess || this.DEFAULT_SUCCESS_MESSAGE : errorMess || this.getErrorMessage(await this.getResponseBody(await getResponseClone(res)));
|
|
106
|
-
this.sendMessage(message, settings, await getResponseClone(res));
|
|
120
|
+
const message = res.ok ? successMess || this.DEFAULT_SUCCESS_MESSAGE : errorMess || this.getErrorMessage(await this.getResponseBody(await (0, _utils.getResponseClone)(res)));
|
|
121
|
+
this.sendMessage(message, settings, await (0, _utils.getResponseClone)(res));
|
|
107
122
|
return res;
|
|
108
123
|
}
|
|
109
124
|
//? Суть метода:
|
|
@@ -130,7 +145,7 @@ class ApiUtils extends Utils {
|
|
|
130
145
|
constructor(settings){
|
|
131
146
|
super();
|
|
132
147
|
const { utils } = settings || {};
|
|
133
|
-
if (getIsOnlyAnObject(utils)) addCustomMethods.call(this, utils);
|
|
148
|
+
if ((0, _utils.getIsOnlyAnObject)(utils)) _utils.addCustomMethods.call(this, utils);
|
|
134
149
|
}
|
|
135
150
|
}
|
|
136
|
-
|
|
151
|
+
const _default = ApiUtils;
|
|
@@ -1,6 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _outerDependencies = /*#__PURE__*/ _interop_require_default(require("./_outerDependencies"));
|
|
12
|
+
const _utils = require("./_utils");
|
|
13
|
+
function _interop_require_default(obj) {
|
|
14
|
+
return obj && obj.__esModule ? obj : {
|
|
15
|
+
default: obj
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
const { jwt } = _outerDependencies.default;
|
|
4
19
|
class CredentialsProcessing {
|
|
5
20
|
getIsTokenStartRefresh() {
|
|
6
21
|
return localStorage.getItem(this.REFRESH_TOKEN_FLAG);
|
|
@@ -14,7 +29,7 @@ class CredentialsProcessing {
|
|
|
14
29
|
async getCredentials(isCatchCallbackProcess, callback) {
|
|
15
30
|
let credentials = await this.getCredentialsByOuter();
|
|
16
31
|
if (typeof this.importCredentials === "function") credentials = await this.importCredentials(credentials);
|
|
17
|
-
if (!getIsOnlyAnObject(credentials)) credentials = {};
|
|
32
|
+
if (!(0, _utils.getIsOnlyAnObject)(credentials)) credentials = {};
|
|
18
33
|
const token = credentials.token || null;
|
|
19
34
|
if (token && !isCatchCallbackProcess) {
|
|
20
35
|
let decoded;
|
|
@@ -175,4 +190,4 @@ class CredentialsProcessing {
|
|
|
175
190
|
}
|
|
176
191
|
}
|
|
177
192
|
}
|
|
178
|
-
|
|
193
|
+
const _default = CredentialsProcessing;
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _utils = require("./_utils");
|
|
2
12
|
//? В этом кклассе собраны полезные добавочные утилиты, которые могут быть использованы другими классами,
|
|
3
13
|
//? но не имеют прямого отношения к реализации прямой ф-ти RESTAPI
|
|
4
14
|
//? Так же утилиты могут быть использованы как библиотечные
|
|
@@ -9,7 +19,7 @@ class Utils {
|
|
|
9
19
|
//? Для корректной работы на вход нужно подавать НЕ кодированные значения
|
|
10
20
|
//? По умолчанию выходные значения квери-параметров НЕ кодируются
|
|
11
21
|
normalizeQueryParams(queryParams, settings) {
|
|
12
|
-
if (settings && !getIsOnlyAnObject(settings)) {
|
|
22
|
+
if (settings && !(0, _utils.getIsOnlyAnObject)(settings)) {
|
|
13
23
|
throw new Error("Bad settings [class Utils, normalizeQueryParams]");
|
|
14
24
|
}
|
|
15
25
|
const getInitialArr = (input)=>{
|
|
@@ -31,7 +41,7 @@ class Utils {
|
|
|
31
41
|
item.slice(index + 1)
|
|
32
42
|
];
|
|
33
43
|
}).filter(([key])=>Boolean(key)).map(([key, value])=>prepareParam(key, value));
|
|
34
|
-
} else if (getIsOnlyAnObject(input)) return Object.keys(input).map((key)=>prepareParam(key, input[key]));
|
|
44
|
+
} else if ((0, _utils.getIsOnlyAnObject)(input)) return Object.keys(input).map((key)=>prepareParam(key, input[key]));
|
|
35
45
|
else if (typeof input === "string") return (input[0] === "?" ? input.slice(1) : input).split("&");
|
|
36
46
|
else return [];
|
|
37
47
|
};
|
|
@@ -77,4 +87,4 @@ class Utils {
|
|
|
77
87
|
}
|
|
78
88
|
}
|
|
79
89
|
}
|
|
80
|
-
|
|
90
|
+
const _default = Utils;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _jsonwebtoken = /*#__PURE__*/ _interop_require_default(require("jsonwebtoken"));
|
|
12
|
+
function _interop_require_default(obj) {
|
|
13
|
+
return obj && obj.__esModule ? obj : {
|
|
14
|
+
default: obj
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
const _default = {
|
|
18
|
+
jwt: _jsonwebtoken.default
|
|
4
19
|
};
|