intelicoreact 1.3.37 → 1.3.39
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 +1 -9
- package/dist/Atomic/FormElements/AdvancedStatus/AdvancedStatus.js +1 -10
- package/dist/Atomic/FormElements/Calendar/Calendar.js +4 -24
- package/dist/Atomic/FormElements/CheckboxInput/CheckboxInput.js +1 -10
- package/dist/Atomic/FormElements/CheckboxesLine/CheckboxesLine.js +2 -14
- package/dist/Atomic/FormElements/Datepicker/Datepicker.js +5 -54
- package/dist/Atomic/FormElements/Datepicker/components/Calendar.js +3 -21
- package/dist/Atomic/FormElements/Dropdown/Dropdown.js +54 -145
- package/dist/Atomic/FormElements/Dropdown/components/DropdownLoader.js +1 -7
- package/dist/Atomic/FormElements/DropdownLiveSearch/DropdownLiveSearch.js +9 -47
- package/dist/Atomic/FormElements/FileLoader/FileLoader.js +3 -15
- package/dist/Atomic/FormElements/FileLoader/partial/LoadZone.js +15 -29
- package/dist/Atomic/FormElements/FileLoader/partial/LoadedContent.js +5 -15
- package/dist/Atomic/FormElements/FileLoaderLocal/FileLoaderLocal.js +6 -26
- package/dist/Atomic/FormElements/FileLoaderLocalGroup/FileLoaderLocalGroup.js +19 -35
- package/dist/Atomic/FormElements/FormattedRawSSN/FormattedRawSSN.js +9 -38
- package/dist/Atomic/FormElements/Input/Input.js +24 -57
- package/dist/Atomic/FormElements/InputCalendar/InputCalendar.js +4 -31
- package/dist/Atomic/FormElements/InputColor/InputColor.js +4 -14
- package/dist/Atomic/FormElements/InputCurrency/InputCurrency.js +6 -27
- package/dist/Atomic/FormElements/InputDateRange/InputDateRange.js +7 -42
- package/dist/Atomic/FormElements/InputDateRange/components/DateInput.js +3 -21
- package/dist/Atomic/FormElements/InputDateRange/components/Datepicker.js +58 -81
- package/dist/Atomic/FormElements/InputDateRange/components/OpenedPart.js +6 -41
- package/dist/Atomic/FormElements/InputDateRange/components/SelectItem.js +1 -8
- package/dist/Atomic/FormElements/InputDateRange/dependencies.js +14 -44
- package/dist/Atomic/FormElements/InputLink/InputLink.js +6 -23
- package/dist/Atomic/FormElements/InputMask/InputCarretPosition.js +0 -4
- package/dist/Atomic/FormElements/InputMask/InputMask.js +77 -208
- package/dist/Atomic/FormElements/InputMask/functions.js +2 -28
- package/dist/Atomic/FormElements/InputMask2/InputMask2.js +43 -119
- package/dist/Atomic/FormElements/InputMask2/functions.js +2 -28
- package/dist/Atomic/FormElements/InputMask3/InputMask3.js +44 -137
- package/dist/Atomic/FormElements/InputMask3/functions.js +2 -28
- package/dist/Atomic/FormElements/InputWithAction/InputWithAction.js +3 -17
- package/dist/Atomic/FormElements/InputsRow/InputsRow.js +5 -24
- package/dist/Atomic/FormElements/Label/Label.js +1 -9
- package/dist/Atomic/FormElements/MobileCalendar/MobileCalendar.js +35 -73
- package/dist/Atomic/FormElements/MultiSelect/MultiSelect.js +3 -15
- package/dist/Atomic/FormElements/NumericInput/NumericInput.js +23 -44
- package/dist/Atomic/FormElements/RadioGroup/RadioGroup.js +7 -17
- package/dist/Atomic/FormElements/RadioGroupWithInput/RadioGroupWithInput.js +3 -14
- package/dist/Atomic/FormElements/RadioInput/RadioInput.js +1 -10
- package/dist/Atomic/FormElements/RadioRowSwitcher/RadioRowSwitcher.js +3 -14
- package/dist/Atomic/FormElements/RangeCalendar/RangeCalendar.js +3 -23
- package/dist/Atomic/FormElements/RangeInputs/RangeInputs.js +17 -34
- package/dist/Atomic/FormElements/RangeList/RangeList.js +6 -25
- package/dist/Atomic/FormElements/RangeList/partial/RangeListRow.js +1 -11
- package/dist/Atomic/FormElements/RangeSlider/RangeSlider.js +14 -72
- package/dist/Atomic/FormElements/RangeSlider2/RangeSlider2.js +40 -124
- package/dist/Atomic/FormElements/SwitchableRow/SwitchableRow.js +1 -10
- package/dist/Atomic/FormElements/Switcher/Switcher.js +1 -10
- package/dist/Atomic/FormElements/SwitcherCheckbox/SwitcherCheckbox.js +1 -13
- package/dist/Atomic/FormElements/SwitcherHide/SwitcherHide.js +1 -10
- package/dist/Atomic/FormElements/SwitcherRadio/SwitcherRadio.js +2 -17
- package/dist/Atomic/FormElements/SwitcherRange/SwitcherRange.js +3 -17
- package/dist/Atomic/FormElements/SwitcherRangeList/SwitcherRangeList.js +1 -11
- package/dist/Atomic/FormElements/SwitcherTagsDropdown/SwitcherTagsDropdown.js +6 -29
- package/dist/Atomic/FormElements/SwitcherTagsDropdown/partial/States.js +2 -3
- package/dist/Atomic/FormElements/SwitcherTextarea/SwitcherTextarea.js +1 -12
- package/dist/Atomic/FormElements/TagsDropdown/TagsDropdown.js +53 -145
- package/dist/Atomic/FormElements/Text/Text.js +10 -16
- package/dist/Atomic/FormElements/TextSwitcher/TextSwitcher.js +1 -9
- package/dist/Atomic/FormElements/Textarea/Textarea.js +8 -12
- package/dist/Atomic/FormElements/TieredCheckboxes/TieredCheckboxes.js +6 -35
- package/dist/Atomic/FormElements/TieredCheckboxes/partial/AccordionWithCheckbox.js +4 -13
- package/dist/Atomic/FormElements/TimeRange/TimeRange.js +7 -21
- package/dist/Atomic/FormElements/UserContacts/UserContacts.js +8 -35
- package/dist/Atomic/FormElements/VariantsListRadio/VariantsListRadio.js +5 -18
- package/dist/Atomic/FormElements/VariantsListRadio/partials/VariantsListRadioItem.js +3 -10
- package/dist/Atomic/FormElements/WidgetPseudoTable/WidgetPseudoTable.js +3 -11
- package/dist/Atomic/FormElements/WidgetPseudoTable/partial/constructor.js +1 -2
- package/dist/Atomic/FormElements/WidgetWithSwitchableRows/WidgetWithSwitchableRows.js +5 -12
- package/dist/Atomic/FormElements/WidgetWithSwitchableRows/partial/constructor.js +3 -3
- package/dist/Atomic/Layout/Header/Header.js +3 -15
- package/dist/Atomic/Layout/MainMenu/MainMenu.js +3 -20
- package/dist/Atomic/Layout/Spinner/Spinner.js +1 -8
- package/dist/Atomic/UI/Accordion/Accordion.js +3 -19
- package/dist/Atomic/UI/Accordion/AccordionItem.js +9 -23
- package/dist/Atomic/UI/AccordionTable/AccordionTable.js +7 -32
- package/dist/Atomic/UI/AccordionText/AccordionText.js +3 -15
- package/dist/Atomic/UI/AdvancedTag/AdvTag.js +4 -21
- package/dist/Atomic/UI/AdvancedTag/AdvancedTags.js +3 -15
- package/dist/Atomic/UI/Alert/Alert.js +3 -16
- package/dist/Atomic/UI/Arrow/Arrow.js +3 -16
- package/dist/Atomic/UI/Box/Box.js +3 -9
- package/dist/Atomic/UI/Button/Button.js +2 -11
- package/dist/Atomic/UI/ButtonsBar/ButtonsBar.js +1 -10
- package/dist/Atomic/UI/Chart/Chart.js +4 -29
- package/dist/Atomic/UI/Chart/partial/Chart.constants.js +11 -19
- package/dist/Atomic/UI/Chart/partial/ChartTypeSwitcherIcon/ChartTypeSwitcherIcon.js +1 -12
- package/dist/Atomic/UI/Chart/partial/datasetSetters.js +11 -34
- package/dist/Atomic/UI/Chart/partial/optionsConstructor.js +82 -56
- package/dist/Atomic/UI/Chart/partial/optionsSetters.js +15 -19
- package/dist/Atomic/UI/Chart/partial/utils.js +6 -20
- package/dist/Atomic/UI/CircleProgressBar/CircleProgressBar.js +3 -13
- package/dist/Atomic/UI/DateTime/DateTime.js +3 -14
- package/dist/Atomic/UI/DebugContainer/DebugContainer.js +4 -16
- package/dist/Atomic/UI/DebugContainer/useDebugContainer.js +3 -11
- package/dist/Atomic/UI/DoubleString/DoubleString.js +5 -17
- package/dist/Atomic/UI/DynamicIcon/DynamicIcon.js +3 -10
- package/dist/Atomic/UI/ExampleChartIntegration/ExampleChartIntegration.js +17 -52
- package/dist/Atomic/UI/ExampleChartIntegration/partial/utils.js +1 -29
- package/dist/Atomic/UI/Hint/Hint.js +5 -30
- package/dist/Atomic/UI/Modal/Modal.js +6 -29
- package/dist/Atomic/UI/Modal/ModalHOC.js +4 -9
- package/dist/Atomic/UI/Modal/partials/ModalFooter.js +1 -7
- package/dist/Atomic/UI/Modal/partials/ModalTitle.js +1 -8
- package/dist/Atomic/UI/Modal/partials/useMobileModal.js +32 -49
- package/dist/Atomic/UI/ModalBackup/Modal.js +65 -90
- package/dist/Atomic/UI/ModalBackup/ModalHOC.js +12 -21
- package/dist/Atomic/UI/ModalBackup/partials/ModalFooter.js +6 -11
- package/dist/Atomic/UI/ModalBackup/partials/ModalTitle.js +15 -19
- package/dist/Atomic/UI/MonoAccordion/MonoAccordion.js +6 -21
- package/dist/Atomic/UI/NavLine/NavLine.js +26 -55
- package/dist/Atomic/UI/NavLine/Tabs.js +2 -3
- package/dist/Atomic/UI/PageTitle/PageTitle.js +2 -10
- package/dist/Atomic/UI/PieChart/PieChart.js +1 -10
- package/dist/Atomic/UI/Price/Price.js +3 -8
- package/dist/Atomic/UI/PriceRange/PriceRange.js +1 -7
- package/dist/Atomic/UI/ProgressLine/ProgressLine.js +1 -16
- package/dist/Atomic/UI/Status/Status.js +1 -8
- package/dist/Atomic/UI/Table/Partials/TdCell.js +5 -29
- package/dist/Atomic/UI/Table/Partials/TdHeader.js +1 -11
- package/dist/Atomic/UI/Table/Partials/TdRow.js +5 -17
- package/dist/Atomic/UI/Table/Partials/TdTitle.js +3 -14
- package/dist/Atomic/UI/Table/Table.js +1 -12
- package/dist/Atomic/UI/Table/TdTypes/TdActions.js +2 -18
- package/dist/Atomic/UI/Table/TdTypes/TdPriority.js +1 -9
- package/dist/Atomic/UI/Table/TdTypes/TdRange.js +1 -4
- package/dist/Atomic/UI/Table/TdTypes/TdWeight.js +1 -13
- package/dist/Atomic/UI/Tag/Tag.js +3 -14
- package/dist/Atomic/UI/TagList/TagList.js +19 -35
- package/dist/Atomic/UI/UserBox/UserBox.js +1 -13
- package/dist/Classes/AbortableFetch.js +36 -93
- package/dist/Classes/AnimatedHandler.js +3 -7
- package/dist/Classes/RESTAPI/index.js +39 -43
- package/dist/Classes/RESTAPI/partials/AbortableFetch.js +35 -93
- package/dist/Classes/RESTAPI/partials/ApiBase.js +1 -9
- package/dist/Classes/RESTAPI/partials/ApiRequestCreators.js +7 -19
- package/dist/Classes/RESTAPI/partials/ApiUtils.js +28 -35
- package/dist/Classes/RESTAPI/partials/CredentialsProcessing.js +21 -44
- package/dist/Classes/RESTAPI/partials/Utils.js +6 -19
- package/dist/Classes/RESTAPI/partials/_outerDependencies.js +2 -6
- package/dist/Classes/RESTAPI/partials/_utils.js +13 -36
- package/dist/Constants/index.constants.js +8 -15
- package/dist/Functions/Portal.js +5 -16
- package/dist/Functions/customEventListener.js +4 -17
- package/dist/Functions/fieldValueFormatters.js +43 -83
- package/dist/Functions/hooks/useFormFieldsChangesManager.js +23 -26
- package/dist/Functions/locale/createTranslator.js +4 -9
- package/dist/Functions/operations.js +12 -22
- package/dist/Functions/presets/inputMaskPresets.js +9 -11
- package/dist/Functions/presets/inputPresets.js +8 -11
- package/dist/Functions/presets/mobileKeyboardTypesPresets.js +7 -9
- package/dist/Functions/schemas.js +6 -13
- package/dist/Functions/useBodyScrollLock.js +1 -6
- package/dist/Functions/useClickOutside.js +0 -4
- package/dist/Functions/useDebounce.js +2 -7
- package/dist/Functions/useFieldFocus.js +6 -18
- package/dist/Functions/useFormTools/form-drivers/ArrayWithObjects.js +0 -9
- package/dist/Functions/useFormTools/form-drivers/ObjectWithIterableObjects.js +12 -23
- package/dist/Functions/useFormTools/form-drivers/ObjectWithNamedKeyObjects.js +6 -15
- package/dist/Functions/useFormTools/functions/General.js +18 -28
- package/dist/Functions/useFormTools/functions/RenderFields.js +2 -11
- package/dist/Functions/useFormTools/functions/usePrevious.js +1 -5
- package/dist/Functions/useFormTools/index.js +85 -144
- package/dist/Functions/useInputHighlightError.js +3 -12
- package/dist/Functions/useIsMobile.js +7 -12
- package/dist/Functions/useKeyPress/useHandleKeyPress.js +1 -7
- package/dist/Functions/useKeyPress/useKeyPress.js +1 -9
- package/dist/Functions/useLocalStorage.js +1 -9
- package/dist/Functions/useLocationParams.js +4 -5
- package/dist/Functions/useMetaInfo.js +3 -10
- package/dist/Functions/useMouseUpOutside.js +0 -3
- package/dist/Functions/useOnlineStatus.js +1 -9
- package/dist/Functions/usePasswordChecker.js +4 -20
- package/dist/Functions/usePrevious.js +1 -5
- package/dist/Functions/useResize.js +2 -10
- package/dist/Functions/useScrollTo.js +2 -7
- package/dist/Functions/useToggle.js +1 -5
- package/dist/Functions/utils.js +49 -127
- package/dist/Molecular/CustomIcons/components/AffiliateNetworks.js +2 -9
- package/dist/Molecular/CustomIcons/components/AlertCircle.js +2 -9
- package/dist/Molecular/CustomIcons/components/AppStore.js +2 -9
- package/dist/Molecular/CustomIcons/components/Arrow.js +2 -9
- package/dist/Molecular/CustomIcons/components/ArrowDown.js +2 -9
- package/dist/Molecular/CustomIcons/components/ArrowLeft.js +2 -9
- package/dist/Molecular/CustomIcons/components/ArrowRight.js +2 -9
- package/dist/Molecular/CustomIcons/components/ArrowUp.js +2 -9
- package/dist/Molecular/CustomIcons/components/Bell.js +2 -9
- package/dist/Molecular/CustomIcons/components/Button.js +2 -9
- package/dist/Molecular/CustomIcons/components/Campaigns.js +2 -9
- package/dist/Molecular/CustomIcons/components/Check.js +2 -9
- package/dist/Molecular/CustomIcons/components/Check2.js +2 -9
- package/dist/Molecular/CustomIcons/components/ChevronDown.js +2 -9
- package/dist/Molecular/CustomIcons/components/ChevronDownDisabled.js +2 -9
- package/dist/Molecular/CustomIcons/components/ChevronLeft.js +2 -9
- package/dist/Molecular/CustomIcons/components/ChevronRight.js +2 -9
- package/dist/Molecular/CustomIcons/components/ChevronUp.js +2 -9
- package/dist/Molecular/CustomIcons/components/ChevronUpDown.js +2 -9
- package/dist/Molecular/CustomIcons/components/Close.js +2 -9
- package/dist/Molecular/CustomIcons/components/ColumnsOrder.js +2 -9
- package/dist/Molecular/CustomIcons/components/Delete.js +2 -9
- package/dist/Molecular/CustomIcons/components/Edit.js +2 -9
- package/dist/Molecular/CustomIcons/components/Email.js +2 -9
- package/dist/Molecular/CustomIcons/components/FinturfLogo.js +2 -9
- package/dist/Molecular/CustomIcons/components/FinturfLogo2.js +2 -9
- package/dist/Molecular/CustomIcons/components/Flows.js +2 -9
- package/dist/Molecular/CustomIcons/components/Gift.js +2 -9
- package/dist/Molecular/CustomIcons/components/GoogleAuth.js +2 -9
- package/dist/Molecular/CustomIcons/components/GooglePlay.js +2 -9
- package/dist/Molecular/CustomIcons/components/HelpCircle.js +2 -9
- package/dist/Molecular/CustomIcons/components/HelpCircle2.js +2 -9
- package/dist/Molecular/CustomIcons/components/HelpCircleFilled.js +2 -9
- package/dist/Molecular/CustomIcons/components/Home.js +2 -9
- package/dist/Molecular/CustomIcons/components/Home2.js +2 -9
- package/dist/Molecular/CustomIcons/components/Key.js +2 -9
- package/dist/Molecular/CustomIcons/components/Landers.js +2 -9
- package/dist/Molecular/CustomIcons/components/Lock.js +2 -9
- package/dist/Molecular/CustomIcons/components/Mail.js +2 -9
- package/dist/Molecular/CustomIcons/components/Mastercard.js +2 -9
- package/dist/Molecular/CustomIcons/components/Minus.js +2 -9
- package/dist/Molecular/CustomIcons/components/Offers.js +2 -9
- package/dist/Molecular/CustomIcons/components/Pause.js +2 -9
- package/dist/Molecular/CustomIcons/components/PayPal.js +2 -9
- package/dist/Molecular/CustomIcons/components/PayPalLightLarge.js +2 -9
- package/dist/Molecular/CustomIcons/components/Phone.js +2 -9
- package/dist/Molecular/CustomIcons/components/Play.js +2 -9
- package/dist/Molecular/CustomIcons/components/Plus.js +2 -9
- package/dist/Molecular/CustomIcons/components/Profile.js +2 -9
- package/dist/Molecular/CustomIcons/components/QRCode.js +2 -9
- package/dist/Molecular/CustomIcons/components/Rectangle.js +2 -9
- package/dist/Molecular/CustomIcons/components/Revert.js +2 -9
- package/dist/Molecular/CustomIcons/components/Star.js +2 -9
- package/dist/Molecular/CustomIcons/components/Star2.js +2 -9
- package/dist/Molecular/CustomIcons/components/TrafficSources.js +2 -9
- package/dist/Molecular/CustomIcons/components/Trash.js +2 -9
- package/dist/Molecular/CustomIcons/components/TrashRed.js +2 -9
- package/dist/Molecular/CustomIcons/components/Triggers.js +2 -9
- package/dist/Molecular/CustomIcons/components/User.js +2 -9
- package/dist/Molecular/CustomIcons/components/Visa.js +2 -9
- package/dist/Molecular/CustomIcons/components/X.js +2 -9
- package/dist/Molecular/CustomIcons/index.js +0 -122
- package/dist/Molecular/FormElement/FormElement.js +1 -12
- package/dist/Molecular/FormWithDependOn/FormWithDependOn.js +30 -31
- package/dist/Molecular/FormWithDependOn/partials/_utils.js +9 -12
- package/dist/Molecular/InputAddress/InputAddress.js +65 -114
- package/dist/Molecular/InputPassword/InputPassword.js +5 -19
- package/dist/index.js +0 -2
- package/package.json +1 -1
- package/dist/Atomic/FormElements/UserContacts/partial/defaultIcons.js +0 -91
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.reactChartJsOptionsLayouts = exports.finturfReactChartJsOptions = exports.default = void 0;
|
|
9
|
-
|
|
10
8
|
var _Chart = require("./Chart.constants");
|
|
11
|
-
|
|
12
9
|
var _optionsSetters = _interopRequireDefault(require("./optionsSetters"));
|
|
13
|
-
|
|
14
|
-
var _finturfChartLayouts$, _finturfChartLayouts$2, _finturfChartLayouts$3, _finturfChartLayouts$4, _finturfChartLayouts$5, _finturfChartLayouts$6, _finturfChartLayouts$7, _finturfChartLayouts$8, _finturfChartLayouts$9, _finturfChartLayouts$10, _finturfChartLayouts$11, _finturfChartLayouts$12, _finturfChartLayouts$13, _finturfChartBar$opti, _finturfChartBar$opti2, _finturfChartBar$opti3, _finturfChartBar$notL, _finturfChartLine$opt, _finturfChartLine$opt2, _finturfChartLine$opt3, _finturfChartLine$opt4, _finturfChartLine$opt5, _finturfChartLine$opt6, _finturfChartLine$not;
|
|
15
|
-
|
|
10
|
+
var _finturfChartLayouts$, _finturfChartLayouts$2, _finturfChartLayouts$3, _finturfChartLayouts$4, _finturfChartLayouts$5, _finturfChartLayouts$6, _finturfChartLayouts$7, _finturfChartLayouts$8, _finturfChartBar$opti, _finturfChartBar$opti2, _finturfChartBar$notL, _finturfChartLine$opt, _finturfChartLine$opt2, _finturfChartLine$opt3, _finturfChartLine$opt4, _finturfChartLine$not;
|
|
16
11
|
// options constructors for ChartJS
|
|
17
|
-
|
|
12
|
+
|
|
13
|
+
const reactChartJsOptionsLayouts = exports.reactChartJsOptionsLayouts = {
|
|
18
14
|
lineIconLayout: {
|
|
19
15
|
options: {
|
|
20
16
|
responsive: true,
|
|
@@ -123,22 +119,26 @@ const reactChartJsOptionsLayouts = {
|
|
|
123
119
|
}
|
|
124
120
|
}
|
|
125
121
|
};
|
|
126
|
-
exports.reactChartJsOptionsLayouts = reactChartJsOptionsLayouts;
|
|
127
|
-
|
|
128
122
|
const finturfChartLayouts = (() => {
|
|
129
123
|
return ["barLayout", "lineLayout"].reduce((acc, key) => {
|
|
130
|
-
var _reactChartJsOptionsL, _reactChartJsOptionsL2, _reactChartJsOptionsL3, _reactChartJsOptionsL4, _reactChartJsOptionsL5, _reactChartJsOptionsL6, _reactChartJsOptionsL7
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
[key]: {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
124
|
+
var _reactChartJsOptionsL, _reactChartJsOptionsL2, _reactChartJsOptionsL3, _reactChartJsOptionsL4, _reactChartJsOptionsL5, _reactChartJsOptionsL6, _reactChartJsOptionsL7;
|
|
125
|
+
return {
|
|
126
|
+
...acc,
|
|
127
|
+
[key]: {
|
|
128
|
+
...reactChartJsOptionsLayouts[key],
|
|
129
|
+
options: {
|
|
130
|
+
...reactChartJsOptionsLayouts[key].options,
|
|
131
|
+
scales: {
|
|
132
|
+
...((_reactChartJsOptionsL = reactChartJsOptionsLayouts[key].options) === null || _reactChartJsOptionsL === void 0 ? void 0 : _reactChartJsOptionsL.scales),
|
|
133
|
+
x: {
|
|
134
|
+
...((_reactChartJsOptionsL2 = reactChartJsOptionsLayouts[key].options) === null || _reactChartJsOptionsL2 === void 0 || (_reactChartJsOptionsL2 = _reactChartJsOptionsL2.scales) === null || _reactChartJsOptionsL2 === void 0 ? void 0 : _reactChartJsOptionsL2.x),
|
|
135
|
+
grid: {
|
|
136
|
+
...((_reactChartJsOptionsL3 = reactChartJsOptionsLayouts[key].options) === null || _reactChartJsOptionsL3 === void 0 || (_reactChartJsOptionsL3 = _reactChartJsOptionsL3.scales) === null || _reactChartJsOptionsL3 === void 0 || (_reactChartJsOptionsL3 = _reactChartJsOptionsL3.x) === null || _reactChartJsOptionsL3 === void 0 ? void 0 : _reactChartJsOptionsL3.grid),
|
|
138
137
|
display: false,
|
|
139
138
|
offset: true
|
|
140
139
|
},
|
|
141
|
-
ticks: {
|
|
140
|
+
ticks: {
|
|
141
|
+
...((_reactChartJsOptionsL4 = reactChartJsOptionsLayouts[key].options) === null || _reactChartJsOptionsL4 === void 0 || (_reactChartJsOptionsL4 = _reactChartJsOptionsL4.scales) === null || _reactChartJsOptionsL4 === void 0 || (_reactChartJsOptionsL4 = _reactChartJsOptionsL4.y) === null || _reactChartJsOptionsL4 === void 0 ? void 0 : _reactChartJsOptionsL4.ticks),
|
|
142
142
|
autoSkipPadding: 10,
|
|
143
143
|
align: "center",
|
|
144
144
|
color: "#757F8C",
|
|
@@ -148,21 +148,23 @@ const finturfChartLayouts = (() => {
|
|
|
148
148
|
style: "normal",
|
|
149
149
|
weight: 400,
|
|
150
150
|
size: 8
|
|
151
|
-
}
|
|
151
|
+
}
|
|
152
|
+
// callback: (value, index, ticks) => {
|
|
152
153
|
// console.log(value);
|
|
153
154
|
// console.log(index);
|
|
154
155
|
// console.log(ticks);
|
|
155
156
|
// console.log('***********');
|
|
156
157
|
// return value;
|
|
157
158
|
// },
|
|
158
|
-
|
|
159
159
|
}
|
|
160
160
|
},
|
|
161
|
-
y: {
|
|
161
|
+
y: {
|
|
162
|
+
...((_reactChartJsOptionsL5 = reactChartJsOptionsLayouts[key].options) === null || _reactChartJsOptionsL5 === void 0 || (_reactChartJsOptionsL5 = _reactChartJsOptionsL5.scales) === null || _reactChartJsOptionsL5 === void 0 ? void 0 : _reactChartJsOptionsL5.y),
|
|
162
163
|
min: 0,
|
|
163
164
|
// grace: '5%',
|
|
164
165
|
bounds: "data",
|
|
165
|
-
grid: {
|
|
166
|
+
grid: {
|
|
167
|
+
...((_reactChartJsOptionsL6 = reactChartJsOptionsLayouts[key].options) === null || _reactChartJsOptionsL6 === void 0 || (_reactChartJsOptionsL6 = _reactChartJsOptionsL6.scales) === null || _reactChartJsOptionsL6 === void 0 || (_reactChartJsOptionsL6 = _reactChartJsOptionsL6.y) === null || _reactChartJsOptionsL6 === void 0 ? void 0 : _reactChartJsOptionsL6.grid),
|
|
166
168
|
borderColor: "#E1E8F1",
|
|
167
169
|
color: "#E1E8F1",
|
|
168
170
|
borderDash: [5],
|
|
@@ -170,7 +172,8 @@ const finturfChartLayouts = (() => {
|
|
|
170
172
|
drawTicks: false,
|
|
171
173
|
z: -1
|
|
172
174
|
},
|
|
173
|
-
ticks: {
|
|
175
|
+
ticks: {
|
|
176
|
+
...((_reactChartJsOptionsL7 = reactChartJsOptionsLayouts[key].options) === null || _reactChartJsOptionsL7 === void 0 || (_reactChartJsOptionsL7 = _reactChartJsOptionsL7.scales) === null || _reactChartJsOptionsL7 === void 0 || (_reactChartJsOptionsL7 = _reactChartJsOptionsL7.y) === null || _reactChartJsOptionsL7 === void 0 ? void 0 : _reactChartJsOptionsL7.ticks),
|
|
174
177
|
autoSkipPadding: 10,
|
|
175
178
|
align: "center",
|
|
176
179
|
color: "#A0A4B0",
|
|
@@ -186,7 +189,8 @@ const finturfChartLayouts = (() => {
|
|
|
186
189
|
}
|
|
187
190
|
}
|
|
188
191
|
},
|
|
189
|
-
notLibraryOptions: {
|
|
192
|
+
notLibraryOptions: {
|
|
193
|
+
...reactChartJsOptionsLayouts[key].notLibraryOptions,
|
|
190
194
|
setCanvasDimensions: {
|
|
191
195
|
height: "194px"
|
|
192
196
|
}
|
|
@@ -195,27 +199,36 @@ const finturfChartLayouts = (() => {
|
|
|
195
199
|
};
|
|
196
200
|
}, {});
|
|
197
201
|
})();
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
options: {
|
|
202
|
+
const finturfChartBar = {
|
|
203
|
+
...finturfChartLayouts.barLayout,
|
|
204
|
+
options: {
|
|
205
|
+
...((_finturfChartLayouts$ = finturfChartLayouts.barLayout) === null || _finturfChartLayouts$ === void 0 ? void 0 : _finturfChartLayouts$.options),
|
|
201
206
|
maintainAspectRatio: false,
|
|
202
|
-
elements: {
|
|
203
|
-
|
|
207
|
+
elements: {
|
|
208
|
+
...((_finturfChartLayouts$2 = finturfChartLayouts.barLayout) === null || _finturfChartLayouts$2 === void 0 || (_finturfChartLayouts$2 = _finturfChartLayouts$2.options) === null || _finturfChartLayouts$2 === void 0 ? void 0 : _finturfChartLayouts$2.elements),
|
|
209
|
+
bar: {
|
|
210
|
+
...((_finturfChartLayouts$3 = finturfChartLayouts.barLayout) === null || _finturfChartLayouts$3 === void 0 || (_finturfChartLayouts$3 = _finturfChartLayouts$3.options) === null || _finturfChartLayouts$3 === void 0 || (_finturfChartLayouts$3 = _finturfChartLayouts$3.elements) === null || _finturfChartLayouts$3 === void 0 ? void 0 : _finturfChartLayouts$3.bar),
|
|
204
211
|
borderRadius: 4
|
|
205
212
|
}
|
|
206
213
|
}
|
|
207
214
|
},
|
|
208
|
-
notLibraryOptions: {
|
|
209
|
-
|
|
215
|
+
notLibraryOptions: {
|
|
216
|
+
...((_finturfChartLayouts$4 = finturfChartLayouts.barLayout) === null || _finturfChartLayouts$4 === void 0 ? void 0 : _finturfChartLayouts$4.notLibraryOptions),
|
|
217
|
+
changeData: {
|
|
218
|
+
...((_finturfChartLayouts$5 = finturfChartLayouts.barLayout) === null || _finturfChartLayouts$5 === void 0 || (_finturfChartLayouts$5 = _finturfChartLayouts$5.notLibraryOptions) === null || _finturfChartLayouts$5 === void 0 ? void 0 : _finturfChartLayouts$5.changeData),
|
|
210
219
|
setMaxBarThickness: 16
|
|
211
220
|
}
|
|
212
221
|
}
|
|
213
222
|
};
|
|
214
|
-
const finturfChartLine = {
|
|
215
|
-
|
|
223
|
+
const finturfChartLine = {
|
|
224
|
+
...finturfChartLayouts.lineLayout,
|
|
225
|
+
options: {
|
|
226
|
+
...((_finturfChartLayouts$6 = finturfChartLayouts.lineLayout) === null || _finturfChartLayouts$6 === void 0 ? void 0 : _finturfChartLayouts$6.options),
|
|
216
227
|
maintainAspectRatio: false,
|
|
217
|
-
elements: {
|
|
218
|
-
|
|
228
|
+
elements: {
|
|
229
|
+
...((_finturfChartLayouts$7 = finturfChartLayouts.lineLayout.options) === null || _finturfChartLayouts$7 === void 0 ? void 0 : _finturfChartLayouts$7.elements),
|
|
230
|
+
point: {
|
|
231
|
+
...((_finturfChartLayouts$8 = finturfChartLayouts.lineLayout.options) === null || _finturfChartLayouts$8 === void 0 || (_finturfChartLayouts$8 = _finturfChartLayouts$8.elements) === null || _finturfChartLayouts$8 === void 0 ? void 0 : _finturfChartLayouts$8.point),
|
|
219
232
|
radius: 2,
|
|
220
233
|
borderColor: "#32A784",
|
|
221
234
|
borderWidth: 4
|
|
@@ -223,21 +236,27 @@ const finturfChartLine = { ...finturfChartLayouts.lineLayout,
|
|
|
223
236
|
}
|
|
224
237
|
}
|
|
225
238
|
};
|
|
226
|
-
const finturfReactChartJsOptions = {
|
|
239
|
+
const finturfReactChartJsOptions = exports.finturfReactChartJsOptions = {
|
|
227
240
|
finturfChartBar: (0, _optionsSetters.default)(finturfChartBar, {
|
|
228
241
|
addGradientsSettings: _Chart.GRADIENTS_OBJECTS.finturf.bar,
|
|
229
242
|
addTooltipOptions: _Chart.FINTURF_TOOLTIP_OPTIONS
|
|
230
243
|
}),
|
|
231
|
-
finturfLoadingModeBar: {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
244
|
+
finturfLoadingModeBar: {
|
|
245
|
+
...finturfChartBar,
|
|
246
|
+
options: {
|
|
247
|
+
...finturfChartBar.options,
|
|
248
|
+
animations: {
|
|
249
|
+
...((_finturfChartBar$opti = finturfChartBar.options) === null || _finturfChartBar$opti === void 0 ? void 0 : _finturfChartBar$opti.animations),
|
|
250
|
+
y: {
|
|
251
|
+
...((_finturfChartBar$opti2 = finturfChartBar.options) === null || _finturfChartBar$opti2 === void 0 || (_finturfChartBar$opti2 = _finturfChartBar$opti2.animations) === null || _finturfChartBar$opti2 === void 0 ? void 0 : _finturfChartBar$opti2.y),
|
|
235
252
|
duration: 0
|
|
236
253
|
}
|
|
237
254
|
}
|
|
238
255
|
},
|
|
239
|
-
notLibraryOptions: {
|
|
240
|
-
|
|
256
|
+
notLibraryOptions: {
|
|
257
|
+
...finturfChartBar.notLibraryOptions,
|
|
258
|
+
changeData: {
|
|
259
|
+
...((_finturfChartBar$notL = finturfChartBar.notLibraryOptions) === null || _finturfChartBar$notL === void 0 ? void 0 : _finturfChartBar$notL.changeData),
|
|
241
260
|
addNotLibraryAnimations: [{
|
|
242
261
|
type: "runningColumns",
|
|
243
262
|
// duration - ms
|
|
@@ -254,26 +273,34 @@ const finturfReactChartJsOptions = {
|
|
|
254
273
|
},
|
|
255
274
|
finturfChartLine: (0, _optionsSetters.default)(finturfChartLine, {
|
|
256
275
|
addGradientsSettings: _Chart.GRADIENTS_OBJECTS.finturf.line,
|
|
257
|
-
addTooltipOptions: _Chart.FINTURF_TOOLTIP_OPTIONS
|
|
258
|
-
|
|
276
|
+
addTooltipOptions: _Chart.FINTURF_TOOLTIP_OPTIONS
|
|
277
|
+
// consoleCurrentData: true,
|
|
259
278
|
}),
|
|
260
|
-
finturfLoadingModeLine: {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
279
|
+
finturfLoadingModeLine: {
|
|
280
|
+
...finturfChartLine,
|
|
281
|
+
options: {
|
|
282
|
+
...finturfChartLine.options,
|
|
283
|
+
elements: {
|
|
284
|
+
...((_finturfChartLine$opt = finturfChartLine.options) === null || _finturfChartLine$opt === void 0 ? void 0 : _finturfChartLine$opt.elements),
|
|
285
|
+
point: {
|
|
286
|
+
...((_finturfChartLine$opt2 = finturfChartLine.options) === null || _finturfChartLine$opt2 === void 0 || (_finturfChartLine$opt2 = _finturfChartLine$opt2.elements) === null || _finturfChartLine$opt2 === void 0 ? void 0 : _finturfChartLine$opt2.point),
|
|
264
287
|
radius: 4,
|
|
265
288
|
borderWidth: 1,
|
|
266
289
|
borderColor: "#E1E8F1"
|
|
267
290
|
}
|
|
268
291
|
},
|
|
269
|
-
animations: {
|
|
270
|
-
|
|
292
|
+
animations: {
|
|
293
|
+
...((_finturfChartLine$opt3 = finturfChartLine.options) === null || _finturfChartLine$opt3 === void 0 ? void 0 : _finturfChartLine$opt3.animations),
|
|
294
|
+
y: {
|
|
295
|
+
...((_finturfChartLine$opt4 = finturfChartLine.options) === null || _finturfChartLine$opt4 === void 0 || (_finturfChartLine$opt4 = _finturfChartLine$opt4.animations) === null || _finturfChartLine$opt4 === void 0 ? void 0 : _finturfChartLine$opt4.y),
|
|
271
296
|
duration: 0
|
|
272
297
|
}
|
|
273
298
|
}
|
|
274
299
|
},
|
|
275
|
-
notLibraryOptions: {
|
|
276
|
-
|
|
300
|
+
notLibraryOptions: {
|
|
301
|
+
...finturfChartLine.notLibraryOptions,
|
|
302
|
+
changeData: {
|
|
303
|
+
...((_finturfChartLine$not = finturfChartLine.notLibraryOptions) === null || _finturfChartLine$not === void 0 ? void 0 : _finturfChartLine$not.changeData),
|
|
277
304
|
addNotLibraryAnimations: [{
|
|
278
305
|
type: "runningColumns",
|
|
279
306
|
// duration - ms
|
|
@@ -293,8 +320,7 @@ const finturfReactChartJsOptions = {
|
|
|
293
320
|
addGradientsSettings: _Chart.GRADIENTS_OBJECTS.finturf.negativeLineIcon
|
|
294
321
|
})
|
|
295
322
|
};
|
|
296
|
-
exports.
|
|
297
|
-
|
|
323
|
+
var _default = exports.default = {
|
|
324
|
+
...finturfReactChartJsOptions,
|
|
298
325
|
emptyLayout: reactChartJsOptionsLayouts.emptyLayout
|
|
299
|
-
};
|
|
300
|
-
exports.default = _default;
|
|
326
|
+
};
|
|
@@ -4,50 +4,46 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.addTooltipOptions = exports.addGradientsSettings = void 0;
|
|
7
|
-
|
|
8
7
|
// gradientsSettings is Array of objects
|
|
9
8
|
const addGradientsSettings = (currentOptions, gradientsSettings) => {
|
|
10
9
|
var _currentOptions$notLi;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
notLibraryOptions: {
|
|
14
|
-
|
|
10
|
+
return {
|
|
11
|
+
...currentOptions,
|
|
12
|
+
notLibraryOptions: {
|
|
13
|
+
...currentOptions.notLibraryOptions,
|
|
14
|
+
changeData: {
|
|
15
|
+
...((_currentOptions$notLi = currentOptions.notLibraryOptions) === null || _currentOptions$notLi === void 0 ? void 0 : _currentOptions$notLi.changeData),
|
|
15
16
|
addGradientsObjects: gradientsSettings
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
19
|
};
|
|
19
20
|
};
|
|
20
|
-
|
|
21
21
|
exports.addGradientsSettings = addGradientsSettings;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
options: {
|
|
25
|
-
|
|
22
|
+
const addTooltipOptions = (currentOptions, tooltipOptions) => ({
|
|
23
|
+
...currentOptions,
|
|
24
|
+
options: {
|
|
25
|
+
...currentOptions.options,
|
|
26
|
+
plugins: {
|
|
27
|
+
...currentOptions.options.plugins,
|
|
26
28
|
tooltip: tooltipOptions
|
|
27
29
|
}
|
|
28
30
|
}
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
+
});
|
|
31
32
|
|
|
33
|
+
// must be last function in file
|
|
32
34
|
exports.addTooltipOptions = addTooltipOptions;
|
|
33
|
-
|
|
34
35
|
const addAdditionalOptions = (currentOptions, optionsToAdd) => {
|
|
35
36
|
const addOption = (currentOptions, optionKey, optionData) => {
|
|
36
37
|
switch (optionKey) {
|
|
37
38
|
case "addGradientsSettings":
|
|
38
39
|
return addGradientsSettings(currentOptions, optionData);
|
|
39
|
-
|
|
40
40
|
case "addTooltipOptions":
|
|
41
41
|
return addTooltipOptions(currentOptions, optionData);
|
|
42
|
-
|
|
43
42
|
default:
|
|
44
43
|
return currentOptions;
|
|
45
44
|
}
|
|
46
45
|
};
|
|
47
|
-
|
|
48
46
|
const iterator = Object.keys(optionsToAdd);
|
|
49
47
|
return iterator.reduce((acc, key) => addOption(acc, key, optionsToAdd[key]), currentOptions);
|
|
50
48
|
};
|
|
51
|
-
|
|
52
|
-
var _default = addAdditionalOptions;
|
|
53
|
-
exports.default = _default;
|
|
49
|
+
var _default = exports.default = addAdditionalOptions;
|
|
@@ -1,55 +1,41 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.prepareData = exports.getOptions = exports.getNotLibraryOptionsOptions = exports.getChartTypeKey = exports.correctModelKey = void 0;
|
|
9
|
-
|
|
10
8
|
var _utils = require("../../../../Functions/utils");
|
|
11
|
-
|
|
12
9
|
var _Chart = require("./Chart.constants");
|
|
13
|
-
|
|
14
10
|
var _datasetSetters = _interopRequireDefault(require("./datasetSetters"));
|
|
15
|
-
|
|
16
11
|
var _optionsConstructor = _interopRequireDefault(require("./optionsConstructor"));
|
|
17
|
-
|
|
18
12
|
const getChartTypeKey = model => {
|
|
19
|
-
var _optionsConstructor$m
|
|
20
|
-
|
|
21
|
-
return (_optionsConstructor$m = _optionsConstructor.default[model]) === null || _optionsConstructor$m === void 0 ? void 0 : (_optionsConstructor$m2 = _optionsConstructor$m.notLibraryOptions) === null || _optionsConstructor$m2 === void 0 ? void 0 : _optionsConstructor$m2.chartTypeKey;
|
|
13
|
+
var _optionsConstructor$m;
|
|
14
|
+
return (_optionsConstructor$m = _optionsConstructor.default[model]) === null || _optionsConstructor$m === void 0 || (_optionsConstructor$m = _optionsConstructor$m.notLibraryOptions) === null || _optionsConstructor$m === void 0 ? void 0 : _optionsConstructor$m.chartTypeKey;
|
|
22
15
|
};
|
|
23
|
-
|
|
24
16
|
exports.getChartTypeKey = getChartTypeKey;
|
|
25
|
-
|
|
26
17
|
const correctModelKey = model => model && _optionsConstructor.default[model] && _Chart.CHART_TYPES.includes(getChartTypeKey(model)) ? model : _Chart.DEFAULT_CHART_MODEL;
|
|
27
|
-
|
|
28
18
|
exports.correctModelKey = correctModelKey;
|
|
29
|
-
|
|
30
19
|
const getOptions = model => (0, _utils.omitKeys)(_optionsConstructor.default[model] || _optionsConstructor.default[_Chart.DEFAULT_CHART_MODEL], ["notLibraryOptions"]);
|
|
31
|
-
|
|
32
20
|
exports.getOptions = getOptions;
|
|
33
|
-
|
|
34
21
|
const getNotLibraryOptionsOptions = model => {
|
|
35
22
|
const {
|
|
36
23
|
notLibraryOptions
|
|
37
24
|
} = _optionsConstructor.default[model] || _optionsConstructor.default[_Chart.DEFAULT_CHART_MODEL] || {};
|
|
38
25
|
return notLibraryOptions ? (0, _utils.clone)(notLibraryOptions) : undefined;
|
|
39
26
|
};
|
|
40
|
-
|
|
41
27
|
exports.getNotLibraryOptionsOptions = getNotLibraryOptionsOptions;
|
|
42
|
-
|
|
43
28
|
const prepareData = (model, data, chartInstance, addToDatasets) => {
|
|
44
29
|
if (!chartInstance) return data;
|
|
45
30
|
const notLibraryOptions = getNotLibraryOptionsOptions(model);
|
|
46
31
|
const iterator = notLibraryOptions !== null && notLibraryOptions !== void 0 && notLibraryOptions.changeData ? Object.keys(notLibraryOptions.changeData) : [];
|
|
47
32
|
const changedData = iterator.reduce((acc, dataChangeKey) => (0, _datasetSetters.default)(acc, dataChangeKey, notLibraryOptions.changeData[dataChangeKey], chartInstance, addToDatasets), (0, _utils.clone)(data));
|
|
48
|
-
return addToDatasets && typeof addToDatasets === "object" && !Array.isArray(addToDatasets) ? {
|
|
49
|
-
|
|
33
|
+
return addToDatasets && typeof addToDatasets === "object" && !Array.isArray(addToDatasets) ? {
|
|
34
|
+
...changedData,
|
|
35
|
+
datasets: changedData.datasets.map(dataset => ({
|
|
36
|
+
...dataset,
|
|
50
37
|
...addToDatasets
|
|
51
38
|
}))
|
|
52
39
|
} : changedData;
|
|
53
40
|
};
|
|
54
|
-
|
|
55
41
|
exports.prepareData = prepareData;
|
|
@@ -1,22 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = void 0;
|
|
9
|
-
|
|
10
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
-
|
|
14
10
|
require("./CircleProgressBar.scss");
|
|
15
|
-
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
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; }
|
|
19
|
-
|
|
11
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
12
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
13
|
const CircleProgressBar = _ref => {
|
|
21
14
|
let {
|
|
22
15
|
amount,
|
|
@@ -32,7 +25,6 @@ const CircleProgressBar = _ref => {
|
|
|
32
25
|
} = _ref;
|
|
33
26
|
const circumference = Math.round(2 * Math.PI * radius);
|
|
34
27
|
const amountProgress = amount < totalAmount ? Math.round(amount / totalAmount * 100) : 100; //%
|
|
35
|
-
|
|
36
28
|
const defaultColors = {
|
|
37
29
|
start: "#6b81dd",
|
|
38
30
|
finish: "#f06d8d",
|
|
@@ -99,6 +91,4 @@ const CircleProgressBar = _ref => {
|
|
|
99
91
|
className: "limit-progress-bar__content"
|
|
100
92
|
}, children));
|
|
101
93
|
};
|
|
102
|
-
|
|
103
|
-
var _default = CircleProgressBar;
|
|
104
|
-
exports.default = _default;
|
|
94
|
+
var _default = exports.default = CircleProgressBar;
|
|
@@ -1,28 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = void 0;
|
|
9
|
-
|
|
10
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
-
|
|
14
10
|
var _momentTimezone = _interopRequireDefault(require("moment-timezone"));
|
|
15
|
-
|
|
16
11
|
require("./DateTime.scss");
|
|
17
|
-
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
-
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; }
|
|
21
|
-
|
|
12
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
14
|
const RC = "date-time";
|
|
23
15
|
const DEFAULT_DATE_FORMAT = "DD.MM.YYYY";
|
|
24
16
|
const DEFAULT_TIME_FORMAT = "HH:mm:ss";
|
|
25
|
-
|
|
26
17
|
const DateTime = _ref => {
|
|
27
18
|
let {
|
|
28
19
|
className,
|
|
@@ -49,6 +40,4 @@ const DateTime = _ref => {
|
|
|
49
40
|
})
|
|
50
41
|
}, time));
|
|
51
42
|
};
|
|
52
|
-
|
|
53
|
-
var _default = DateTime;
|
|
54
|
-
exports.default = _default;
|
|
43
|
+
var _default = exports.default = DateTime;
|
|
@@ -4,39 +4,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
8
|
var _reactFeather = require("react-feather");
|
|
11
|
-
|
|
12
9
|
require("./DebugContainer.scss");
|
|
13
|
-
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
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; }
|
|
17
|
-
|
|
10
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
11
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
12
|
const DebugContainer = _ref => {
|
|
19
13
|
var _Object$keys2;
|
|
20
|
-
|
|
21
14
|
let {
|
|
22
15
|
data,
|
|
23
16
|
children
|
|
24
17
|
} = _ref;
|
|
25
18
|
const [isVisible, setIsVisible] = (0, _react.useState)(true);
|
|
26
|
-
|
|
27
19
|
const renderData = () => {
|
|
28
20
|
var _Object$keys;
|
|
29
|
-
|
|
30
21
|
return /*#__PURE__*/_react.default.createElement("pre", null, "{\n", (_Object$keys = Object.keys(data)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.map(key => {
|
|
31
22
|
return " ".concat(key, ": ").concat(data === null || data === void 0 ? void 0 : data[key], ",\n");
|
|
32
23
|
}), "}");
|
|
33
24
|
};
|
|
34
|
-
|
|
35
25
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
36
26
|
className: "debug-container"
|
|
37
27
|
}, isVisible && /*#__PURE__*/_react.default.createElement("div", {
|
|
38
28
|
className: "debug-container__body"
|
|
39
|
-
}, /*#__PURE__*/_react.default.createElement("h5", null, "Debug:"), data && Boolean(Object === null || Object === void 0
|
|
29
|
+
}, /*#__PURE__*/_react.default.createElement("h5", null, "Debug:"), data && Boolean(Object === null || Object === void 0 || (_Object$keys2 = Object.keys(data)) === null || _Object$keys2 === void 0 ? void 0 : _Object$keys2.length) && /*#__PURE__*/_react.default.createElement("div", {
|
|
40
30
|
className: "debug-container__body-row"
|
|
41
31
|
}, renderData()), children && /*#__PURE__*/_react.default.createElement("div", {
|
|
42
32
|
className: "debug-container__body-row"
|
|
@@ -45,6 +35,4 @@ const DebugContainer = _ref => {
|
|
|
45
35
|
onClick: () => setIsVisible(v => !v)
|
|
46
36
|
}, isVisible ? /*#__PURE__*/_react.default.createElement(_reactFeather.ChevronUp, null) : /*#__PURE__*/_react.default.createElement(_reactFeather.ChevronDown, null)));
|
|
47
37
|
};
|
|
48
|
-
|
|
49
|
-
var _default = DebugContainer;
|
|
50
|
-
exports.default = _default;
|
|
38
|
+
var _default = exports.default = DebugContainer;
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = void 0;
|
|
9
|
-
|
|
10
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
9
|
var _DebugContainer = _interopRequireDefault(require("./DebugContainer"));
|
|
13
|
-
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
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; }
|
|
17
|
-
|
|
10
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
11
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
12
|
const useDebugContainer = () => {
|
|
19
13
|
const [data, setData] = (0, _react.useState)({});
|
|
20
14
|
return {
|
|
@@ -25,6 +19,4 @@ const useDebugContainer = () => {
|
|
|
25
19
|
})
|
|
26
20
|
};
|
|
27
21
|
};
|
|
28
|
-
|
|
29
|
-
var _default = useDebugContainer;
|
|
30
|
-
exports.default = _default;
|
|
22
|
+
var _default = exports.default = useDebugContainer;
|
|
@@ -1,26 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = void 0;
|
|
9
|
-
|
|
10
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
-
|
|
14
10
|
var _moment = _interopRequireDefault(require("moment"));
|
|
15
|
-
|
|
16
11
|
require("./DoubleString.scss");
|
|
17
|
-
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
-
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; }
|
|
21
|
-
|
|
12
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
14
|
const RC = "double-string";
|
|
23
|
-
|
|
24
15
|
const DoubleString = _ref => {
|
|
25
16
|
let {
|
|
26
17
|
value,
|
|
@@ -43,9 +34,8 @@ const DoubleString = _ref => {
|
|
|
43
34
|
});
|
|
44
35
|
(0, _react.useEffect)(() => {
|
|
45
36
|
var _valueRef$current, _descriptionRef$curre;
|
|
46
|
-
|
|
47
|
-
const
|
|
48
|
-
const descriptionWidth = descriptionRef === null || descriptionRef === void 0 ? void 0 : (_descriptionRef$curre = descriptionRef.current) === null || _descriptionRef$curre === void 0 ? void 0 : _descriptionRef$curre.clientWidth;
|
|
37
|
+
const valueWidth = valueRef === null || valueRef === void 0 || (_valueRef$current = valueRef.current) === null || _valueRef$current === void 0 ? void 0 : _valueRef$current.clientWidth;
|
|
38
|
+
const descriptionWidth = descriptionRef === null || descriptionRef === void 0 || (_descriptionRef$curre = descriptionRef.current) === null || _descriptionRef$curre === void 0 ? void 0 : _descriptionRef$curre.clientWidth;
|
|
49
39
|
setElemsWidth({
|
|
50
40
|
valueWidth,
|
|
51
41
|
descriptionWidth
|
|
@@ -65,6 +55,4 @@ const DoubleString = _ref => {
|
|
|
65
55
|
title: elemsWidth.descriptionWidth > 99 ? computedValue : ""
|
|
66
56
|
}, !revert ? description : computedValue));
|
|
67
57
|
};
|
|
68
|
-
|
|
69
|
-
var _default = DoubleString;
|
|
70
|
-
exports.default = _default;
|
|
58
|
+
var _default = exports.default = DoubleString;
|