intelicoreact 1.6.19 → 1.6.20
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 +102 -1
- package/dist/Atomic/FormElements/AdvancedStatus/AdvancedStatus.js +89 -1
- package/dist/Atomic/FormElements/Calendar/Calendar.js +232 -1
- package/dist/Atomic/FormElements/Calendar/Calendar.props.js +3 -1
- package/dist/Atomic/FormElements/CheckboxInput/CheckboxInput.js +101 -1
- package/dist/Atomic/FormElements/CheckboxesLine/CheckboxesLine.js +70 -1
- package/dist/Atomic/FormElements/Datepicker/Datepicker.js +350 -1
- package/dist/Atomic/FormElements/Datepicker/Datepicker.props.js +3 -1
- package/dist/Atomic/FormElements/Datepicker/components/DatepickerCalendar.js +177 -1
- package/dist/Atomic/FormElements/Datepicker/components/DatepickerCalendar.props.js +3 -1
- package/dist/Atomic/FormElements/Dropdown/Dropdown.js +561 -1
- package/dist/Atomic/FormElements/Dropdown/components/DropdownLoader.js +20 -1
- package/dist/Atomic/FormElements/DropdownLiveSearch/DropdownLiveSearch.js +405 -1
- package/dist/Atomic/FormElements/FileLoader/FileLoader.js +94 -1
- package/dist/Atomic/FormElements/FileLoader/partial/LoadZone.js +105 -1
- package/dist/Atomic/FormElements/FileLoader/partial/LoadedContent.js +67 -1
- package/dist/Atomic/FormElements/FileLoaderDescription/FileLoaderDescription.js +247 -1
- package/dist/Atomic/FormElements/FileLoaderLocal/FileLoaderLocal.js +160 -1
- package/dist/Atomic/FormElements/FileLoaderLocalGroup/FileLoaderLocalGroup.js +193 -1
- package/dist/Atomic/FormElements/FormattedRawSSN/FormattedRawSSN.js +135 -1
- package/dist/Atomic/FormElements/FormattedRawSSN/FormattedRawSSN_old.js +116 -1
- package/dist/Atomic/FormElements/Input/Input.js +467 -1
- package/dist/Atomic/FormElements/InputCalendar/InputCalendar.js +161 -1
- package/dist/Atomic/FormElements/InputColor/InputColor.js +64 -1
- package/dist/Atomic/FormElements/InputCurrency/InputCurrency.js +166 -1
- package/dist/Atomic/FormElements/InputDateRange/InputDateRange.js +354 -1
- package/dist/Atomic/FormElements/InputDateRange/components/DateInput.js +71 -1
- package/dist/Atomic/FormElements/InputDateRange/components/Datepicker.js +693 -1
- package/dist/Atomic/FormElements/InputDateRange/components/OpenedPart.js +254 -1
- package/dist/Atomic/FormElements/InputDateRange/components/SelectItem.js +32 -1
- package/dist/Atomic/FormElements/InputDateRange/dependencies.js +200 -1
- package/dist/Atomic/FormElements/InputLink/InputLink.js +99 -1
- package/dist/Atomic/FormElements/InputMask/InputCarretPosition.js +37 -1
- package/dist/Atomic/FormElements/InputMask/InputMask.js +1214 -1
- package/dist/Atomic/FormElements/InputMask/config.js +15 -1
- package/dist/Atomic/FormElements/InputMask/functions.js +58 -1
- package/dist/Atomic/FormElements/InputMask2/InputMask2.js +674 -1
- package/dist/Atomic/FormElements/InputMask2/config.js +15 -1
- package/dist/Atomic/FormElements/InputMask2/functions.js +58 -1
- package/dist/Atomic/FormElements/InputMask3/InputMask3.js +766 -1
- package/dist/Atomic/FormElements/InputMask3/config.js +15 -1
- package/dist/Atomic/FormElements/InputMask3/functions.js +58 -1
- package/dist/Atomic/FormElements/InputWithAction/InputWithAction.js +114 -1
- package/dist/Atomic/FormElements/InputsRow/InputsRow.js +140 -1
- package/dist/Atomic/FormElements/Label/Label.js +82 -1
- package/dist/Atomic/FormElements/MobileCalendar/MobileCalendar.js +506 -1
- package/dist/Atomic/FormElements/MultiSelect/MultiSelect.js +45 -1
- package/dist/Atomic/FormElements/NumericInput/NumericInput.js +331 -1
- package/dist/Atomic/FormElements/RadioGroup/RadioGroup.js +66 -1
- package/dist/Atomic/FormElements/RadioGroupWithInput/RadioGroupWithInput.js +80 -1
- package/dist/Atomic/FormElements/RadioInput/RadioInput.js +64 -1
- package/dist/Atomic/FormElements/RadioRowSwitcher/RadioRowSwitcher.js +54 -1
- package/dist/Atomic/FormElements/RangeCalendar/RangeCalendar.js +183 -1
- package/dist/Atomic/FormElements/RangeInputs/RangeInputs.js +209 -1
- package/dist/Atomic/FormElements/RangeList/RangeList.js +175 -1
- package/dist/Atomic/FormElements/RangeList/partial/RangeListRow.js +43 -1
- package/dist/Atomic/FormElements/RangeSlider/RangeSlider.js +443 -1
- package/dist/Atomic/FormElements/RangeSlider2/RangeSlider2.js +858 -1
- package/dist/Atomic/FormElements/SwitchableRow/SwitchableRow.js +39 -1
- package/dist/Atomic/FormElements/Switcher/Switcher.js +59 -1
- package/dist/Atomic/FormElements/SwitcherCheckbox/SwitcherCheckbox.js +50 -1
- package/dist/Atomic/FormElements/SwitcherHide/SwitcherHide.js +47 -1
- package/dist/Atomic/FormElements/SwitcherRadio/SwitcherRadio.js +96 -1
- package/dist/Atomic/FormElements/SwitcherRange/SwitcherRange.js +40 -1
- package/dist/Atomic/FormElements/SwitcherRangeList/SwitcherRangeList.js +64 -1
- package/dist/Atomic/FormElements/SwitcherTagsDropdown/SwitcherTagsDropdown.js +170 -1
- package/dist/Atomic/FormElements/SwitcherTagsDropdown/partial/States.js +202 -1
- package/dist/Atomic/FormElements/SwitcherTextarea/SwitcherTextarea.js +67 -1
- package/dist/Atomic/FormElements/TagListToDropdown/TagListToDropdown.js +115 -1
- package/dist/Atomic/FormElements/TagsDropdown/TagsDropdown.js +826 -1
- package/dist/Atomic/FormElements/Text/Text.js +125 -1
- package/dist/Atomic/FormElements/TextSwitcher/TextSwitcher.js +45 -1
- package/dist/Atomic/FormElements/Textarea/Textarea.js +80 -1
- package/dist/Atomic/FormElements/TieredCheckboxes/TieredCheckboxes.js +176 -1
- package/dist/Atomic/FormElements/TieredCheckboxes/partial/AccordionWithCheckbox.js +62 -1
- package/dist/Atomic/FormElements/TimeRange/TimeRange.js +127 -1
- package/dist/Atomic/FormElements/UserContacts/UserContacts.js +220 -1
- package/dist/Atomic/FormElements/VariantsListRadio/VariantsListRadio.js +83 -1
- package/dist/Atomic/FormElements/VariantsListRadio/partials/VariantsListRadioItem.js +82 -1
- package/dist/Atomic/FormElements/WidgetPseudoTable/WidgetPseudoTable.js +101 -1
- package/dist/Atomic/FormElements/WidgetPseudoTable/partial/constructor.js +29 -1
- package/dist/Atomic/FormElements/WidgetWithSwitchableRows/WidgetWithSwitchableRows.js +113 -1
- package/dist/Atomic/FormElements/WidgetWithSwitchableRows/partial/constructor.js +30 -1
- package/dist/Atomic/Layout/Header/Header.js +85 -1
- package/dist/Atomic/Layout/Spinner/Spinner.js +39 -1
- package/dist/Atomic/UI/Accordion/Accordion.js +118 -1
- package/dist/Atomic/UI/Accordion/AccordionItem.js +181 -1
- package/dist/Atomic/UI/AccordionTable/AccordionTable.js +238 -1
- package/dist/Atomic/UI/AccordionText/AccordionText.js +69 -1
- package/dist/Atomic/UI/AdvancedTag/AdvTag.js +207 -1
- package/dist/Atomic/UI/AdvancedTag/AdvancedTags.js +56 -1
- package/dist/Atomic/UI/Alert/Alert.js +72 -1
- package/dist/Atomic/UI/Arrow/Arrow.js +132 -1
- package/dist/Atomic/UI/Box/Box.js +52 -1
- package/dist/Atomic/UI/Button/Button.js +89 -1
- package/dist/Atomic/UI/ButtonsBar/ButtonsBar.js +72 -1
- package/dist/Atomic/UI/Chart/Chart.js +172 -1
- package/dist/Atomic/UI/Chart/partial/Chart.constants.js +95 -1
- package/dist/Atomic/UI/Chart/partial/ChartTypeSwitcherIcon/ChartTypeSwitcherIcon.js +80 -1
- package/dist/Atomic/UI/Chart/partial/datasetSetters.js +188 -1
- package/dist/Atomic/UI/Chart/partial/optionsConstructor.js +335 -1
- package/dist/Atomic/UI/Chart/partial/optionsSetters.js +43 -1
- package/dist/Atomic/UI/Chart/partial/utils.js +60 -1
- package/dist/Atomic/UI/CircleProgressBar/CircleProgressBar.js +109 -1
- package/dist/Atomic/UI/DateTime/DateTime.js +57 -1
- package/dist/Atomic/UI/DebugContainer/DebugContainer.js +44 -1
- package/dist/Atomic/UI/DebugContainer/useDebugContainer.js +15 -1
- package/dist/Atomic/UI/DoubleString/DoubleString.js +102 -1
- package/dist/Atomic/UI/DynamicIcon/DynamicIcon.js +226 -1
- package/dist/Atomic/UI/ExampleChartIntegration/ExampleChartIntegration.js +221 -1
- package/dist/Atomic/UI/ExampleChartIntegration/partial/utils.js +106 -1
- package/dist/Atomic/UI/Hint/Hint.js +193 -1
- package/dist/Atomic/UI/Hint/partials/_utils.js +51 -1
- package/dist/Atomic/UI/Modal/Modal.js +188 -1
- package/dist/Atomic/UI/Modal/ModalHOC.js +72 -1
- package/dist/Atomic/UI/Modal/partials/ModalFooter.js +46 -1
- package/dist/Atomic/UI/Modal/partials/ModalTitle.js +83 -1
- package/dist/Atomic/UI/Modal/partials/useMobileModal.js +200 -1
- package/dist/Atomic/UI/MonoAccordion/MonoAccordion._test.js +75 -1
- package/dist/Atomic/UI/MonoAccordion/MonoAccordion.js +80 -1
- package/dist/Atomic/UI/NavLine/NavLine.js +293 -1
- package/dist/Atomic/UI/PageTitle/PageTitle.js +75 -1
- package/dist/Atomic/UI/PieChart/PieChart.js +42 -1
- package/dist/Atomic/UI/Price/Price.js +22 -1
- package/dist/Atomic/UI/PriceRange/PriceRange.js +36 -1
- package/dist/Atomic/UI/ProgressLine/ProgressLine.js +71 -1
- package/dist/Atomic/UI/Status/Status.js +59 -1
- package/dist/Atomic/UI/Table/Partials/TdCell.js +87 -1
- package/dist/Atomic/UI/Table/Partials/TdHeader.js +38 -1
- package/dist/Atomic/UI/Table/Partials/TdRow.js +99 -1
- package/dist/Atomic/UI/Table/Partials/TdTitle.js +52 -1
- package/dist/Atomic/UI/Table/Table.js +63 -1
- package/dist/Atomic/UI/Table/TdTypes/TdActions.js +80 -1
- package/dist/Atomic/UI/Table/TdTypes/TdPriority.js +28 -1
- package/dist/Atomic/UI/Table/TdTypes/TdRange.js +13 -1
- package/dist/Atomic/UI/Table/TdTypes/TdWeight.js +53 -1
- package/dist/Atomic/UI/Tag/Tag.js +160 -1
- package/dist/Atomic/UI/TagList/TagList.js +251 -1
- package/dist/Atomic/UI/UserBox/UserBox.js +73 -1
- package/dist/Atomic/UI/WizardStepper/constructor.js +84 -1
- package/dist/Atomic/UI/WizardStepper/index.js +3 -1
- package/dist/Atomic/UI/WizardStepper/ui/StateIcon/StateIcon.js +37 -1
- package/dist/Atomic/UI/WizardStepper/ui/StateIcon/index.js +3 -1
- package/dist/Atomic/UI/WizardStepper/ui/StepRow/StepRow.js +61 -1
- package/dist/Atomic/UI/WizardStepper/ui/StepRow/index.js +3 -1
- package/dist/Atomic/UI/WizardStepper/ui/StepWrapper/StepWrapper.js +39 -1
- package/dist/Atomic/UI/WizardStepper/ui/StepWrapper/index.js +3 -1
- package/dist/Atomic/UI/WizardStepper/ui/icons.js +49 -1
- package/dist/Atomic/UI/WizardStepper/ui/index.js +3 -1
- package/dist/Classes/AbortableFetch.js +454 -1
- package/dist/Classes/AnimatedHandler.js +47 -1
- package/dist/Classes/RESTAPI/index.js +228 -1
- package/dist/Classes/RESTAPI/partials/AbortableFetch.js +457 -1
- package/dist/Classes/RESTAPI/partials/ApiBase.js +48 -1
- package/dist/Classes/RESTAPI/partials/ApiRequestCreators.js +112 -1
- package/dist/Classes/RESTAPI/partials/ApiUtils.js +189 -1
- package/dist/Classes/RESTAPI/partials/CredentialsProcessing.js +252 -1
- package/dist/Classes/RESTAPI/partials/Utils.js +92 -1
- package/dist/Classes/RESTAPI/partials/_outerDependencies.js +3 -1
- package/dist/Classes/RESTAPI/partials/_utils.js +197 -1
- package/dist/Constants/index.constants.js +78 -1
- package/dist/Functions/Portal.js +22 -1
- package/dist/Functions/customEventListener.js +96 -1
- package/dist/Functions/dateTime.js +149 -1
- package/dist/Functions/fieldValueFormatters.js +405 -1
- package/dist/Functions/guards/assertions.js +66 -1
- package/dist/Functions/guards/safeValue.js +30 -1
- package/dist/Functions/guards/typeGuards.js +116 -1
- package/dist/Functions/hooks/useFormFieldsChangesManager.js +95 -1
- package/dist/Functions/locale/createTranslator.js +32 -1
- package/dist/Functions/operations.js +130 -1
- package/dist/Functions/presets/inputMaskPresets.js +170 -1
- package/dist/Functions/presets/inputPresets.js +60 -1
- package/dist/Functions/presets/mobileKeyboardTypesPresets.js +45 -1
- package/dist/Functions/schemas.js +31 -1
- package/dist/Functions/useBodyScrollLock.js +17 -1
- package/dist/Functions/useClickOutside.js +15 -1
- package/dist/Functions/useDebounce.js +17 -1
- package/dist/Functions/useFieldFocus.js +84 -1
- package/dist/Functions/useFormTools/form-drivers/ArrayWithObjects.js +39 -1
- package/dist/Functions/useFormTools/form-drivers/ObjectWithIterableObjects.js +159 -1
- package/dist/Functions/useFormTools/form-drivers/ObjectWithNamedKeyObjects.js +78 -1
- package/dist/Functions/useFormTools/functions/General.js +134 -1
- package/dist/Functions/useFormTools/functions/RenderFields.js +111 -1
- package/dist/Functions/useFormTools/functions/usePrevious.js +12 -1
- package/dist/Functions/useFormTools/index.js +778 -1
- package/dist/Functions/useInputHighlightError.js +67 -1
- package/dist/Functions/useIsMobile/useIsMobile.js +53 -1
- package/dist/Functions/useKeyPress/useHandleKeyPress.js +21 -1
- package/dist/Functions/useKeyPress/useKeyPress.js +75 -1
- package/dist/Functions/useLocalStorage.js +34 -1
- package/dist/Functions/useLocationParams.js +27 -1
- package/dist/Functions/useMediaQuery.js +17 -1
- package/dist/Functions/useMetaInfo.js +43 -1
- package/dist/Functions/useMouseUpOutside.js +16 -1
- package/dist/Functions/useOnlineStatus.js +29 -1
- package/dist/Functions/usePasswordChecker.js +110 -1
- package/dist/Functions/usePrevious.js +12 -1
- package/dist/Functions/useResize.js +31 -1
- package/dist/Functions/useScrollTo.js +17 -1
- package/dist/Functions/useToggle.js +17 -1
- package/dist/Functions/utils.js +522 -1
- package/dist/Langs.js +168 -1
- package/dist/Molecular/CustomIcons/components/AffiliateNetworks.js +21 -1
- package/dist/Molecular/CustomIcons/components/AlertCircle.js +23 -1
- package/dist/Molecular/CustomIcons/components/AppStore.js +29 -1
- package/dist/Molecular/CustomIcons/components/Arrow.js +32 -1
- package/dist/Molecular/CustomIcons/components/ArrowDown.js +17 -1
- package/dist/Molecular/CustomIcons/components/ArrowLeft.js +22 -1
- package/dist/Molecular/CustomIcons/components/ArrowRight.js +22 -1
- package/dist/Molecular/CustomIcons/components/ArrowUp.js +17 -1
- package/dist/Molecular/CustomIcons/components/Bell.js +15 -1
- package/dist/Molecular/CustomIcons/components/Button.js +12 -1
- package/dist/Molecular/CustomIcons/components/Campaigns.js +16 -1
- package/dist/Molecular/CustomIcons/components/Check.js +14 -1
- package/dist/Molecular/CustomIcons/components/Check2.js +12 -1
- package/dist/Molecular/CustomIcons/components/ChevronDown.js +12 -1
- package/dist/Molecular/CustomIcons/components/ChevronDownDisabled.js +11 -1
- package/dist/Molecular/CustomIcons/components/ChevronLeft.js +11 -1
- package/dist/Molecular/CustomIcons/components/ChevronRight.js +11 -1
- package/dist/Molecular/CustomIcons/components/ChevronUp.js +11 -1
- package/dist/Molecular/CustomIcons/components/ChevronUpDown.js +27 -1
- package/dist/Molecular/CustomIcons/components/Close.js +14 -1
- package/dist/Molecular/CustomIcons/components/ColumnsOrder.js +17 -1
- package/dist/Molecular/CustomIcons/components/Delete.js +16 -1
- package/dist/Molecular/CustomIcons/components/Edit.js +15 -1
- package/dist/Molecular/CustomIcons/components/Email.js +31 -1
- package/dist/Molecular/CustomIcons/components/FinturfLogo.js +18 -1
- package/dist/Molecular/CustomIcons/components/FinturfLogo2.js +35 -1
- package/dist/Molecular/CustomIcons/components/Flows.js +15 -1
- package/dist/Molecular/CustomIcons/components/Gift.js +25 -1
- package/dist/Molecular/CustomIcons/components/GoogleAuth.js +29 -1
- package/dist/Molecular/CustomIcons/components/GooglePlay.js +29 -1
- package/dist/Molecular/CustomIcons/components/HelpCircle.js +19 -1
- package/dist/Molecular/CustomIcons/components/HelpCircle2.js +20 -1
- package/dist/Molecular/CustomIcons/components/HelpCircleFilled.js +19 -1
- package/dist/Molecular/CustomIcons/components/Home.js +16 -1
- package/dist/Molecular/CustomIcons/components/Home2.js +22 -1
- package/dist/Molecular/CustomIcons/components/Key.js +23 -1
- package/dist/Molecular/CustomIcons/components/Landers.js +20 -1
- package/dist/Molecular/CustomIcons/components/Lock.js +15 -1
- package/dist/Molecular/CustomIcons/components/Mail.js +26 -1
- package/dist/Molecular/CustomIcons/components/Mastercard.js +73 -1
- package/dist/Molecular/CustomIcons/components/Minus.js +25 -1
- package/dist/Molecular/CustomIcons/components/Offers.js +16 -1
- package/dist/Molecular/CustomIcons/components/Pause.js +28 -1
- package/dist/Molecular/CustomIcons/components/PayPal.js +41 -1
- package/dist/Molecular/CustomIcons/components/PayPalLightLarge.js +28 -1
- package/dist/Molecular/CustomIcons/components/Phone.js +30 -1
- package/dist/Molecular/CustomIcons/components/Play.js +25 -1
- package/dist/Molecular/CustomIcons/components/Plus.js +25 -1
- package/dist/Molecular/CustomIcons/components/Profile.js +16 -1
- package/dist/Molecular/CustomIcons/components/QRCode.js +29 -1
- package/dist/Molecular/CustomIcons/components/Rectangle.js +12 -1
- package/dist/Molecular/CustomIcons/components/Revert.js +13 -1
- package/dist/Molecular/CustomIcons/components/Star.js +14 -1
- package/dist/Molecular/CustomIcons/components/Star2.js +16 -1
- package/dist/Molecular/CustomIcons/components/TrafficSources.js +14 -1
- package/dist/Molecular/CustomIcons/components/Trash.js +15 -1
- package/dist/Molecular/CustomIcons/components/TrashRed.js +15 -1
- package/dist/Molecular/CustomIcons/components/Triggers.js +15 -1
- package/dist/Molecular/CustomIcons/components/User.js +25 -1
- package/dist/Molecular/CustomIcons/components/Visa.js +31 -1
- package/dist/Molecular/CustomIcons/components/X.js +12 -1
- package/dist/Molecular/CustomIcons/index.js +61 -1
- package/dist/Molecular/FormElement/FormElement.js +54 -1
- package/dist/Molecular/FormWithDependOn/FormWithDependOn.js +184 -1
- package/dist/Molecular/FormWithDependOn/partials/_utils.js +53 -1
- package/dist/Molecular/InputAddress/InputAddress.js +620 -1
- package/dist/Molecular/InputPassword/InputPassword.js +48 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1,132 @@
|
|
|
1
|
-
|
|
1
|
+
import React, { useEffect, useRef, useState } from "react";
|
|
2
|
+
|
|
3
|
+
import cn from "classnames";
|
|
4
|
+
|
|
5
|
+
import { getStyles } from "../../../Functions/utils";
|
|
6
|
+
|
|
7
|
+
import "./Arrow.scss";
|
|
8
|
+
|
|
9
|
+
const Arrow = ({ type, className, onClick, disabled, testId, isAlt }) => {
|
|
10
|
+
if (!type || (type !== "left" && type !== "right")) return null;
|
|
11
|
+
const ref = useRef();
|
|
12
|
+
const [color, setColor] = useState("currentColor");
|
|
13
|
+
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
if (ref.current) {
|
|
16
|
+
setColor(getStyles(ref.current, "color"));
|
|
17
|
+
}
|
|
18
|
+
}, [ref.current]);
|
|
19
|
+
|
|
20
|
+
function renderSVG() {
|
|
21
|
+
if (type === "left") {
|
|
22
|
+
if (isAlt)
|
|
23
|
+
return (
|
|
24
|
+
<svg
|
|
25
|
+
data-testid={testId}
|
|
26
|
+
version="1.1"
|
|
27
|
+
id="Layer_1"
|
|
28
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
29
|
+
width="16"
|
|
30
|
+
height="16"
|
|
31
|
+
viewBox="0 0 16 16"
|
|
32
|
+
>
|
|
33
|
+
<path
|
|
34
|
+
d="M12.7,8H3.3"
|
|
35
|
+
stroke={color}
|
|
36
|
+
fill="none"
|
|
37
|
+
strokeWidth={1.3333}
|
|
38
|
+
strokeLinecap="round"
|
|
39
|
+
strokeLinejoin="round"
|
|
40
|
+
/>
|
|
41
|
+
<path
|
|
42
|
+
d="M8,3.3L3.3,8L8,12.7"
|
|
43
|
+
stroke={color}
|
|
44
|
+
fill="none"
|
|
45
|
+
strokeWidth={1.3333}
|
|
46
|
+
strokeLinecap="round"
|
|
47
|
+
strokeLinejoin="round"
|
|
48
|
+
/>
|
|
49
|
+
</svg>
|
|
50
|
+
);
|
|
51
|
+
return (
|
|
52
|
+
<svg
|
|
53
|
+
data-testid={testId}
|
|
54
|
+
width="24"
|
|
55
|
+
height="24"
|
|
56
|
+
viewBox="0 0 24 24"
|
|
57
|
+
fill="none"
|
|
58
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
59
|
+
>
|
|
60
|
+
<path
|
|
61
|
+
d="M15 18L9 12L15 6"
|
|
62
|
+
stroke={color}
|
|
63
|
+
strokeWidth="2"
|
|
64
|
+
strokeLinecap="round"
|
|
65
|
+
strokeLinejoin="round"
|
|
66
|
+
/>
|
|
67
|
+
</svg>
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
if (isAlt)
|
|
71
|
+
return (
|
|
72
|
+
<svg
|
|
73
|
+
data-testid={testId}
|
|
74
|
+
id="Layer_1"
|
|
75
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
76
|
+
width="16"
|
|
77
|
+
height="16"
|
|
78
|
+
viewBox="0 0 16 16"
|
|
79
|
+
>
|
|
80
|
+
<path
|
|
81
|
+
d="M3.3,8h9.3"
|
|
82
|
+
stroke={color}
|
|
83
|
+
fill="none"
|
|
84
|
+
strokeWidth={1.3333}
|
|
85
|
+
strokeLinecap="round"
|
|
86
|
+
strokeLinejoin="round"
|
|
87
|
+
/>
|
|
88
|
+
<path
|
|
89
|
+
d="M8,3.3L12.7,8L8,12.7"
|
|
90
|
+
stroke={color}
|
|
91
|
+
fill="none"
|
|
92
|
+
strokeWidth={1.3333}
|
|
93
|
+
strokeLinecap="round"
|
|
94
|
+
strokeLinejoin="round"
|
|
95
|
+
/>
|
|
96
|
+
</svg>
|
|
97
|
+
);
|
|
98
|
+
return (
|
|
99
|
+
<svg
|
|
100
|
+
data-testid={testId}
|
|
101
|
+
width="24"
|
|
102
|
+
height="24"
|
|
103
|
+
viewBox="0 0 24 24"
|
|
104
|
+
fill="none"
|
|
105
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
106
|
+
>
|
|
107
|
+
<path
|
|
108
|
+
d="M9 18L15 12L9 6"
|
|
109
|
+
stroke="currentColor"
|
|
110
|
+
strokeWidth="2"
|
|
111
|
+
strokeLinecap="round"
|
|
112
|
+
strokeLinejoin="round"
|
|
113
|
+
/>
|
|
114
|
+
</svg>
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
return (
|
|
119
|
+
<div
|
|
120
|
+
data-testid={`arrow--key-${testId}--type-${type}`}
|
|
121
|
+
ref={ref}
|
|
122
|
+
className={cn("arrow", `arrow_${type}`, className, {
|
|
123
|
+
arrow_disabled: disabled,
|
|
124
|
+
})}
|
|
125
|
+
onClick={onClick}
|
|
126
|
+
>
|
|
127
|
+
{renderSVG()}
|
|
128
|
+
</div>
|
|
129
|
+
);
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
export default Arrow;
|
|
@@ -1 +1,52 @@
|
|
|
1
|
-
|
|
1
|
+
// global
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
import cn from "classnames";
|
|
5
|
+
|
|
6
|
+
// styles
|
|
7
|
+
import "./Box.scss";
|
|
8
|
+
|
|
9
|
+
const directionVariants = {
|
|
10
|
+
column: "column",
|
|
11
|
+
row: "row",
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const sizes = {
|
|
15
|
+
none: "none",
|
|
16
|
+
xs: "xs",
|
|
17
|
+
s: "s",
|
|
18
|
+
m: "m",
|
|
19
|
+
l: "l",
|
|
20
|
+
xl: "xl",
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const Box = function ({
|
|
24
|
+
children,
|
|
25
|
+
paddingVariant = sizes.m,
|
|
26
|
+
radiiVariant = sizes.s,
|
|
27
|
+
direction = directionVariants.column,
|
|
28
|
+
className,
|
|
29
|
+
}) {
|
|
30
|
+
const styles = {
|
|
31
|
+
flexDirection: direction,
|
|
32
|
+
};
|
|
33
|
+
return (
|
|
34
|
+
<div
|
|
35
|
+
style={styles}
|
|
36
|
+
className={cn(
|
|
37
|
+
"box",
|
|
38
|
+
`box--padding-${paddingVariant}`,
|
|
39
|
+
`box--radii-${radiiVariant}`,
|
|
40
|
+
className,
|
|
41
|
+
{
|
|
42
|
+
df: direction === directionVariants.row,
|
|
43
|
+
"dfc-jc": direction === directionVariants.column,
|
|
44
|
+
},
|
|
45
|
+
)}
|
|
46
|
+
>
|
|
47
|
+
{children}
|
|
48
|
+
</div>
|
|
49
|
+
);
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export default Box;
|
|
@@ -1 +1,89 @@
|
|
|
1
|
-
function e(e,
|
|
1
|
+
function e(e, t, r) {
|
|
2
|
+
return t in e ? Object.defineProperty(e, t, {
|
|
3
|
+
value: r,
|
|
4
|
+
enumerable: !0,
|
|
5
|
+
configurable: !0,
|
|
6
|
+
writable: !0
|
|
7
|
+
}) : e[t] = r, e;
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(exports, "__esModule", {
|
|
10
|
+
value: !0
|
|
11
|
+
}), Object.defineProperty(exports, "default", {
|
|
12
|
+
enumerable: !0,
|
|
13
|
+
get: function() {
|
|
14
|
+
return i;
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
var t, r = require("react/jsx-runtime"), n = (t = require("classnames")) && t.__esModule ? t : {
|
|
18
|
+
default: t
|
|
19
|
+
};
|
|
20
|
+
require("./Button.scss");
|
|
21
|
+
var o = 'button', i = function(t) {
|
|
22
|
+
var i, l, c, s = t.label, a = t.onClick, u = t.disabled, b = t.icon, p = t.className, d = t.children, f = t.style, y = t.noIcon, O = t.isIconRight, j = t.testId, v = t.tabIndex, g = t.variant, m = void 0 === g ? 'primary' : g, P = t.isTextEllipsis, x = function(e, t) {
|
|
23
|
+
if (null == e) return {};
|
|
24
|
+
var r, n, o = function(e, t) {
|
|
25
|
+
if (null == e) return {};
|
|
26
|
+
var r, n, o = {}, i = Object.keys(e);
|
|
27
|
+
for(n = 0; n < i.length; n++)r = i[n], t.indexOf(r) >= 0 || (o[r] = e[r]);
|
|
28
|
+
return o;
|
|
29
|
+
}(e, t);
|
|
30
|
+
if (Object.getOwnPropertySymbols) {
|
|
31
|
+
var i = Object.getOwnPropertySymbols(e);
|
|
32
|
+
for(n = 0; n < i.length; n++)r = i[n], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
|
|
33
|
+
}
|
|
34
|
+
return o;
|
|
35
|
+
}(t, [
|
|
36
|
+
"label",
|
|
37
|
+
"onClick",
|
|
38
|
+
"disabled",
|
|
39
|
+
"icon",
|
|
40
|
+
"className",
|
|
41
|
+
"children",
|
|
42
|
+
"style",
|
|
43
|
+
"noIcon",
|
|
44
|
+
"isIconRight",
|
|
45
|
+
"testId",
|
|
46
|
+
"tabIndex",
|
|
47
|
+
"variant",
|
|
48
|
+
"isTextEllipsis"
|
|
49
|
+
]), h = y || 'ellipse-apply' === m || 'ellipse-cancel' === m;
|
|
50
|
+
return (0, r.jsxs)("button", (i = function(t) {
|
|
51
|
+
for(var r = 1; r < arguments.length; r++){
|
|
52
|
+
var n = null != arguments[r] ? arguments[r] : {}, o = Object.keys(n);
|
|
53
|
+
"function" == typeof Object.getOwnPropertySymbols && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(e) {
|
|
54
|
+
return Object.getOwnPropertyDescriptor(n, e).enumerable;
|
|
55
|
+
}))), o.forEach(function(r) {
|
|
56
|
+
e(t, r, n[r]);
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
return t;
|
|
60
|
+
}({
|
|
61
|
+
"data-testid": void 0 === j ? 'button' : j,
|
|
62
|
+
tabIndex: void 0 === v ? 0 : v,
|
|
63
|
+
style: f,
|
|
64
|
+
className: (0, n.default)(o, (e(c = {}, "".concat(o, "_").concat(m), m), e(c, 'button_icon-left', b && !O), e(c, 'button_icon-right', b && O), c), p),
|
|
65
|
+
onClick: a,
|
|
66
|
+
disabled: u,
|
|
67
|
+
type: "button"
|
|
68
|
+
}, x), l = l = {
|
|
69
|
+
children: [
|
|
70
|
+
!h && b,
|
|
71
|
+
s && (0, r.jsx)("div", {
|
|
72
|
+
className: (0, n.default)('button__text', {
|
|
73
|
+
'text-ellipsis': void 0 !== P && P
|
|
74
|
+
}),
|
|
75
|
+
children: s
|
|
76
|
+
}),
|
|
77
|
+
!s && d ? d : null
|
|
78
|
+
]
|
|
79
|
+
}, Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(l)) : (function(e, t) {
|
|
80
|
+
var r = Object.keys(e);
|
|
81
|
+
if (Object.getOwnPropertySymbols) {
|
|
82
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
83
|
+
r.push.apply(r, n);
|
|
84
|
+
}
|
|
85
|
+
return r;
|
|
86
|
+
})(Object(l)).forEach(function(e) {
|
|
87
|
+
Object.defineProperty(i, e, Object.getOwnPropertyDescriptor(l, e));
|
|
88
|
+
}), i));
|
|
89
|
+
};
|
|
@@ -1 +1,72 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
import cn from "classnames";
|
|
4
|
+
import { Link } from "react-router-dom";
|
|
5
|
+
|
|
6
|
+
import Button from "../Button/Button";
|
|
7
|
+
|
|
8
|
+
import "./ButtonsBar.scss";
|
|
9
|
+
|
|
10
|
+
const ButtonsBar = ({
|
|
11
|
+
className,
|
|
12
|
+
rejectBtnLabel,
|
|
13
|
+
rejectBtnIcon,
|
|
14
|
+
isRejectBtnIconRight,
|
|
15
|
+
rejectBtnVariant,
|
|
16
|
+
rejectBtnClass,
|
|
17
|
+
isRejectBtnDisabled,
|
|
18
|
+
rejectLink,
|
|
19
|
+
onReject,
|
|
20
|
+
confirmBtnLabel,
|
|
21
|
+
confirmBtnIcon,
|
|
22
|
+
isConfirmBtnIconRight,
|
|
23
|
+
confirmBtnVariant,
|
|
24
|
+
confirmBtnClass,
|
|
25
|
+
isConfirmBtnDisabled,
|
|
26
|
+
onConfirm,
|
|
27
|
+
testIdFirstBtn = "button-bar-first-item",
|
|
28
|
+
testIdSecondBtn = "button-bar-second-item",
|
|
29
|
+
}) => {
|
|
30
|
+
return (
|
|
31
|
+
<div className={cn("button-bar", className)}>
|
|
32
|
+
{rejectLink ? (
|
|
33
|
+
<Link className="text-decoration-none" to={rejectLink}>
|
|
34
|
+
<Button
|
|
35
|
+
testId={testIdFirstBtn}
|
|
36
|
+
label={rejectBtnLabel}
|
|
37
|
+
variant={rejectBtnVariant}
|
|
38
|
+
onClick={onReject}
|
|
39
|
+
disabled={isRejectBtnDisabled}
|
|
40
|
+
icon={rejectBtnIcon}
|
|
41
|
+
isIconRight={isRejectBtnIconRight}
|
|
42
|
+
className={cn(rejectBtnClass, { mr5: confirmBtnLabel })}
|
|
43
|
+
/>
|
|
44
|
+
</Link>
|
|
45
|
+
) : (
|
|
46
|
+
<Button
|
|
47
|
+
data-testid={testIdFirstBtn}
|
|
48
|
+
label={rejectBtnLabel}
|
|
49
|
+
variant={rejectBtnVariant}
|
|
50
|
+
onClick={onReject}
|
|
51
|
+
disabled={isRejectBtnDisabled}
|
|
52
|
+
icon={rejectBtnIcon}
|
|
53
|
+
isIconRight={isRejectBtnIconRight}
|
|
54
|
+
className={cn(rejectBtnClass, { mr5: confirmBtnLabel })}
|
|
55
|
+
/>
|
|
56
|
+
)}
|
|
57
|
+
|
|
58
|
+
<Button
|
|
59
|
+
testId={testIdSecondBtn}
|
|
60
|
+
label={confirmBtnLabel}
|
|
61
|
+
variant={confirmBtnVariant}
|
|
62
|
+
onClick={onConfirm}
|
|
63
|
+
disabled={isConfirmBtnDisabled}
|
|
64
|
+
icon={confirmBtnIcon}
|
|
65
|
+
isIconRight={isConfirmBtnIconRight}
|
|
66
|
+
className={confirmBtnClass}
|
|
67
|
+
/>
|
|
68
|
+
</div>
|
|
69
|
+
);
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export default ButtonsBar;
|
|
@@ -1 +1,172 @@
|
|
|
1
|
-
|
|
1
|
+
import React, {
|
|
2
|
+
useCallback,
|
|
3
|
+
useEffect,
|
|
4
|
+
useLayoutEffect,
|
|
5
|
+
useMemo,
|
|
6
|
+
useRef,
|
|
7
|
+
useState,
|
|
8
|
+
} from "react";
|
|
9
|
+
|
|
10
|
+
import {
|
|
11
|
+
BarElement,
|
|
12
|
+
CategoryScale,
|
|
13
|
+
Chart as ChartJS,
|
|
14
|
+
Filler,
|
|
15
|
+
LineElement,
|
|
16
|
+
LinearScale,
|
|
17
|
+
PointElement,
|
|
18
|
+
Tooltip,
|
|
19
|
+
} from "chart.js";
|
|
20
|
+
import { getRelativePosition } from "chart.js/helpers";
|
|
21
|
+
import cn from "classnames";
|
|
22
|
+
import * as ChartComponents from "react-chartjs-2";
|
|
23
|
+
|
|
24
|
+
import { clone } from "../../../Functions/utils";
|
|
25
|
+
|
|
26
|
+
import {
|
|
27
|
+
CHART_TYPES,
|
|
28
|
+
COMPONENT_OPTIONS,
|
|
29
|
+
DEFAULT_CHART_MODEL,
|
|
30
|
+
ICON_MODELS,
|
|
31
|
+
} from "./partial/Chart.constants";
|
|
32
|
+
import ChartTypeSwitcherIcon from "./partial/ChartTypeSwitcherIcon/ChartTypeSwitcherIcon";
|
|
33
|
+
import {
|
|
34
|
+
correctModelKey,
|
|
35
|
+
getChartTypeKey,
|
|
36
|
+
getNotLibraryOptionsOptions,
|
|
37
|
+
getOptions,
|
|
38
|
+
prepareData,
|
|
39
|
+
} from "./partial/utils";
|
|
40
|
+
|
|
41
|
+
import "./Chart.scss";
|
|
42
|
+
|
|
43
|
+
const RC = "chart";
|
|
44
|
+
|
|
45
|
+
ChartJS.register(
|
|
46
|
+
CategoryScale,
|
|
47
|
+
LinearScale,
|
|
48
|
+
BarElement,
|
|
49
|
+
PointElement,
|
|
50
|
+
LineElement,
|
|
51
|
+
Filler,
|
|
52
|
+
Tooltip,
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
const Chart = ({
|
|
56
|
+
className,
|
|
57
|
+
initialModel,
|
|
58
|
+
modelsForSwitch,
|
|
59
|
+
setModelExternalValue,
|
|
60
|
+
description,
|
|
61
|
+
customOptions,
|
|
62
|
+
data,
|
|
63
|
+
addToDatasets,
|
|
64
|
+
modifyOptions,
|
|
65
|
+
}) => {
|
|
66
|
+
if (!data) return null;
|
|
67
|
+
|
|
68
|
+
const { label, value } = description || {};
|
|
69
|
+
|
|
70
|
+
const [model, setModel] = useState(DEFAULT_CHART_MODEL);
|
|
71
|
+
const [localData, setLocalData] = useState(data);
|
|
72
|
+
const chartRef = useRef(null);
|
|
73
|
+
const charContainertRef = useRef(null);
|
|
74
|
+
|
|
75
|
+
const options = useMemo(
|
|
76
|
+
() =>
|
|
77
|
+
customOptions ||
|
|
78
|
+
(modifyOptions ? modifyOptions(getOptions(model)) : getOptions(model)),
|
|
79
|
+
[customOptions, model, modifyOptions?.toString?.(), data],
|
|
80
|
+
);
|
|
81
|
+
|
|
82
|
+
const notLibraryOptionsOptions = useMemo(
|
|
83
|
+
() =>
|
|
84
|
+
customOptions
|
|
85
|
+
? customOptions?.notLibraryOptions
|
|
86
|
+
: getNotLibraryOptionsOptions(model),
|
|
87
|
+
[customOptions, model, data],
|
|
88
|
+
);
|
|
89
|
+
|
|
90
|
+
const ChartComponent = useCallback(
|
|
91
|
+
(props) => {
|
|
92
|
+
const Component = ChartComponents[getChartTypeKey(model)];
|
|
93
|
+
return <Component ref={chartRef} {...props} />;
|
|
94
|
+
},
|
|
95
|
+
[model],
|
|
96
|
+
);
|
|
97
|
+
|
|
98
|
+
const isExcludeDescription =
|
|
99
|
+
COMPONENT_OPTIONS.disableDescriptionsFor.includes(model);
|
|
100
|
+
const isExcludeChartTypeSwitcher =
|
|
101
|
+
COMPONENT_OPTIONS.disableChartTypeSwitcherFor.includes(model);
|
|
102
|
+
|
|
103
|
+
useLayoutEffect(() => {
|
|
104
|
+
if (setModelExternalValue && model !== "emptyLayout")
|
|
105
|
+
setModelExternalValue(model);
|
|
106
|
+
}, [model]);
|
|
107
|
+
|
|
108
|
+
useLayoutEffect(() => {
|
|
109
|
+
const { setCanvasDimensions } = notLibraryOptionsOptions || {};
|
|
110
|
+
if (charContainertRef.current) {
|
|
111
|
+
charContainertRef.current.style.width = setCanvasDimensions?.width ?? "";
|
|
112
|
+
charContainertRef.current.style.height =
|
|
113
|
+
setCanvasDimensions?.height ?? "";
|
|
114
|
+
}
|
|
115
|
+
}, [notLibraryOptionsOptions]);
|
|
116
|
+
|
|
117
|
+
useEffect(() => {
|
|
118
|
+
setModel(correctModelKey(initialModel));
|
|
119
|
+
}, [initialModel]);
|
|
120
|
+
|
|
121
|
+
useEffect(() => {
|
|
122
|
+
setLocalData(
|
|
123
|
+
prepareData(model, clone(data), chartRef.current, addToDatasets),
|
|
124
|
+
);
|
|
125
|
+
}, [model, data]);
|
|
126
|
+
|
|
127
|
+
return (
|
|
128
|
+
<div
|
|
129
|
+
className={cn(
|
|
130
|
+
RC,
|
|
131
|
+
{ [`${RC}_icon-mode`]: ICON_MODELS.includes(model) },
|
|
132
|
+
className,
|
|
133
|
+
)}
|
|
134
|
+
>
|
|
135
|
+
<div
|
|
136
|
+
className={cn(`${RC}__header`, {
|
|
137
|
+
[`${RC}__header_only-switcher`]: !description,
|
|
138
|
+
})}
|
|
139
|
+
>
|
|
140
|
+
{description && !isExcludeDescription ? (
|
|
141
|
+
<div className={cn(`${RC}__description`)}>
|
|
142
|
+
{label ? (
|
|
143
|
+
<span className={cn(`${RC}__description-title`)}>{label}</span>
|
|
144
|
+
) : null}
|
|
145
|
+
{value ? (
|
|
146
|
+
<div className={cn(`${RC}__description-value`)}>{value}</div>
|
|
147
|
+
) : null}
|
|
148
|
+
</div>
|
|
149
|
+
) : null}
|
|
150
|
+
{!isExcludeChartTypeSwitcher ? (
|
|
151
|
+
<div className={cn(`${RC}__type-switcher`)}>
|
|
152
|
+
<ChartTypeSwitcherIcon
|
|
153
|
+
iconType="Bar"
|
|
154
|
+
isActive={getChartTypeKey(model) === "Bar"}
|
|
155
|
+
onClick={() => setModel(modelsForSwitch?.[0] || "barLayout")}
|
|
156
|
+
/>
|
|
157
|
+
<ChartTypeSwitcherIcon
|
|
158
|
+
iconType="Line"
|
|
159
|
+
isActive={getChartTypeKey(model) === "Line"}
|
|
160
|
+
onClick={() => setModel(modelsForSwitch?.[1] || "lineLayout")}
|
|
161
|
+
/>
|
|
162
|
+
</div>
|
|
163
|
+
) : null}
|
|
164
|
+
</div>
|
|
165
|
+
<div ref={charContainertRef} className={cn(`${RC}__chart-wrapper`)}>
|
|
166
|
+
<ChartComponent {...options} data={localData} />
|
|
167
|
+
</div>
|
|
168
|
+
</div>
|
|
169
|
+
);
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
export default Chart;
|
|
@@ -1 +1,95 @@
|
|
|
1
|
-
|
|
1
|
+
export const CHART_TYPES = ["Bar", "Line"];
|
|
2
|
+
export const DEFAULT_CHART_MODEL = "emptyLayout";
|
|
3
|
+
|
|
4
|
+
export const FINTURF_ADD_GRADIENT_COLORS_POSITIVE = ["#53D1AD", "#389AA3"];
|
|
5
|
+
export const FINTURF_ADD_GRADIENT_COLORS_NEGATIVE = ["#FDB4DB", "#FA2E69"];
|
|
6
|
+
|
|
7
|
+
export const GRADIENTS_OBJECTS = {
|
|
8
|
+
finturf: {
|
|
9
|
+
bar: [
|
|
10
|
+
{
|
|
11
|
+
gradientTargetPropertyName: "backgroundColor",
|
|
12
|
+
colors: FINTURF_ADD_GRADIENT_COLORS_POSITIVE,
|
|
13
|
+
direction: "toBottom",
|
|
14
|
+
typeDistributionOfGradientPoints: "personalBase",
|
|
15
|
+
collorStopPoints: [0.2, 1],
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
line: [
|
|
19
|
+
{
|
|
20
|
+
gradientTargetPropertyName: "borderColor",
|
|
21
|
+
colors: FINTURF_ADD_GRADIENT_COLORS_POSITIVE,
|
|
22
|
+
direction: "toRight",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
gradientTargetPropertyName: "backgroundColor",
|
|
26
|
+
colors: [
|
|
27
|
+
"rgba(84, 210, 173, 0.2)",
|
|
28
|
+
"rgba(84, 210, 173, 0.1)",
|
|
29
|
+
"rgba(84, 210, 173, 0)",
|
|
30
|
+
],
|
|
31
|
+
direction: "toBottom",
|
|
32
|
+
collorStopPoints: [0.31, 0.72, 1],
|
|
33
|
+
isAddFill: true,
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
positiveLineIcon: [
|
|
37
|
+
{
|
|
38
|
+
gradientTargetPropertyName: "borderColor",
|
|
39
|
+
colors: FINTURF_ADD_GRADIENT_COLORS_POSITIVE,
|
|
40
|
+
direction: "toRight",
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
negativeLineIcon: [
|
|
44
|
+
{
|
|
45
|
+
gradientTargetPropertyName: "borderColor",
|
|
46
|
+
colors: FINTURF_ADD_GRADIENT_COLORS_NEGATIVE,
|
|
47
|
+
direction: "toRight",
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export const FINTURF_TOOLTIP_OPTIONS = {
|
|
54
|
+
enabled: true,
|
|
55
|
+
mode: "index",
|
|
56
|
+
intersect: false,
|
|
57
|
+
padding: 8,
|
|
58
|
+
backgroundColor: "#FFFFFF",
|
|
59
|
+
titleColor: "#757F8C",
|
|
60
|
+
borderColor: "#D6D9E4",
|
|
61
|
+
titleFont: {
|
|
62
|
+
family: "Sarabun",
|
|
63
|
+
style: "normal",
|
|
64
|
+
weight: 500,
|
|
65
|
+
size: 12,
|
|
66
|
+
// line-height: 18px;
|
|
67
|
+
},
|
|
68
|
+
titleAlign: "center",
|
|
69
|
+
bodyColor: "#1E1E2D",
|
|
70
|
+
bodyFont: {
|
|
71
|
+
family: "Sarabun",
|
|
72
|
+
style: "normal",
|
|
73
|
+
weight: 400,
|
|
74
|
+
size: 14,
|
|
75
|
+
},
|
|
76
|
+
bodyAlign: "center",
|
|
77
|
+
caretSize: 0,
|
|
78
|
+
displayColors: false,
|
|
79
|
+
borderWidth: 1,
|
|
80
|
+
borderRadius: 6,
|
|
81
|
+
callbacks: {
|
|
82
|
+
label: (context) => context.raw || "0",
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export const ICON_MODELS = [
|
|
87
|
+
"lineIconLayout",
|
|
88
|
+
"finturfPositiveLineIcon",
|
|
89
|
+
"finturfNegativeLineIcon",
|
|
90
|
+
];
|
|
91
|
+
|
|
92
|
+
export const COMPONENT_OPTIONS = {
|
|
93
|
+
disableDescriptionsFor: [...ICON_MODELS],
|
|
94
|
+
disableChartTypeSwitcherFor: [...ICON_MODELS, "barLayout", "lineLayout"],
|
|
95
|
+
};
|