@true-engineering/true-react-common-ui-kit 1.12.1 → 2.0.1
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/LICENSE +201 -201
- package/dist/components/DateInput/DateInput.d.ts +8 -8
- package/dist/components/DateInput/DateInput.styles.d.ts +2 -2
- package/dist/components/DateInput/constants.d.ts +2 -0
- package/dist/components/DateInput/index.d.ts +1 -0
- package/dist/components/DatePicker/DatePicker.d.ts +16 -24
- package/dist/components/DatePicker/DatePicker.styles.d.ts +12 -24
- package/dist/components/DatePicker/DatePickerHeader/DatePickerHeader.d.ts +3 -9
- package/dist/components/DatePicker/DatePickerHeader/index.d.ts +1 -0
- package/dist/components/DatePicker/constants.d.ts +1 -0
- package/dist/components/DatePicker/helpers.d.ts +3 -0
- package/dist/components/DatePicker/index.d.ts +1 -2
- package/dist/components/DatePicker/types.d.ts +4 -0
- package/dist/components/FiltersPane/FilterWithDates/FilterWithDates.d.ts +1 -1
- package/dist/components/Flag/augment.d.ts +1 -1
- package/dist/components/Icon/complexIcons/augment.d.ts +1 -1
- package/dist/helpers/utils.d.ts +2 -1
- package/dist/style.css +125 -50
- package/dist/true-react-common-ui-kit.js +397 -427
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +397 -427
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/vite-env.d.ts +1 -1
- package/package.json +3 -3
- package/src/components/AccountInfo/AccountInfo.stories.tsx +35 -35
- package/src/components/AccountInfo/AccountInfo.styles.ts +55 -55
- package/src/components/AccountInfo/AccountInfo.tsx +106 -106
- package/src/components/AccountInfo/index.ts +2 -2
- package/src/components/AddButton/AddButton.stories.tsx +21 -21
- package/src/components/AddButton/AddButton.styles.ts +34 -34
- package/src/components/AddButton/AddButton.tsx +49 -49
- package/src/components/AddButton/index.ts +2 -2
- package/src/components/Button/Button.stories.tsx +61 -61
- package/src/components/Button/Button.styles.ts +196 -196
- package/src/components/Button/Button.tsx +207 -207
- package/src/components/Button/index.ts +2 -2
- package/src/components/Checkbox/Checkbox.stories.tsx +35 -35
- package/src/components/Checkbox/Checkbox.styles.ts +62 -62
- package/src/components/Checkbox/Checkbox.tsx +106 -106
- package/src/components/Checkbox/index.ts +2 -2
- package/src/components/CloseButton/CloseButton.styles.ts +34 -34
- package/src/components/CloseButton/CloseButton.tsx +37 -37
- package/src/components/CloseButton/index.ts +2 -2
- package/src/components/Colors/Colors.stories.tsx +7 -7
- package/src/components/Colors/Colors.styles.ts +38 -38
- package/src/components/Colors/Colors.tsx +34 -34
- package/src/components/Colors/index.ts +2 -2
- package/src/components/CssBaseline/CssBaseline.styles.ts +15 -15
- package/src/components/CssBaseline/CssBaseline.tsx +17 -17
- package/src/components/CssBaseline/index.ts +2 -2
- package/src/components/DateInput/DateInput.stories.tsx +67 -63
- package/src/components/DateInput/DateInput.styles.ts +14 -14
- package/src/components/DateInput/DateInput.tsx +101 -60
- package/src/components/DateInput/constants.ts +2 -0
- package/src/components/DateInput/index.ts +3 -2
- package/src/components/DatePicker/DatePicker.stories.tsx +90 -96
- package/src/components/DatePicker/DatePicker.styles.ts +44 -54
- package/src/components/DatePicker/DatePicker.tsx +354 -358
- package/src/components/DatePicker/DatePickerHeader/DatePickerHeader.styles.ts +84 -84
- package/src/components/DatePicker/DatePickerHeader/DatePickerHeader.tsx +80 -94
- package/src/components/DatePicker/DatePickerHeader/index.ts +2 -1
- package/src/components/DatePicker/constants.ts +1 -0
- package/src/components/DatePicker/helpers.ts +24 -0
- package/src/components/DatePicker/index.ts +3 -4
- package/src/components/DatePicker/types.ts +40 -0
- package/src/components/Description/Description.stories.tsx +29 -29
- package/src/components/Description/Description.styles.ts +31 -31
- package/src/components/Description/Description.tsx +69 -69
- package/src/components/Description/index.ts +2 -2
- package/src/components/FiltersPane/FilterInterval/FilterInterval.styles.ts +64 -64
- package/src/components/FiltersPane/FilterInterval/FilterInterval.tsx +162 -162
- package/src/components/FiltersPane/FilterInterval/index.ts +1 -1
- package/src/components/FiltersPane/FilterMultiSelect/FilterMultiSelect.tsx +14 -14
- package/src/components/FiltersPane/FilterMultiSelect/index.ts +1 -1
- package/src/components/FiltersPane/FilterSelect/FilterSelect.styles.ts +144 -144
- package/src/components/FiltersPane/FilterSelect/FilterSelect.tsx +397 -397
- package/src/components/FiltersPane/FilterSelect/index.ts +1 -1
- package/src/components/FiltersPane/FilterSelect/locales.ts +37 -37
- package/src/components/FiltersPane/FilterValueView/FilterValueView.styles.tsx +15 -15
- package/src/components/FiltersPane/FilterValueView/FilterValueView.tsx +186 -186
- package/src/components/FiltersPane/FilterValueView/index.tsx +1 -1
- package/src/components/FiltersPane/FilterWithDates/FilterWithDates.styles.ts +60 -60
- package/src/components/FiltersPane/FilterWithDates/FilterWithDates.tsx +210 -222
- package/src/components/FiltersPane/FilterWithDates/index.ts +1 -1
- package/src/components/FiltersPane/FilterWithPeriod/FilterWithPeriod.styles.ts +17 -17
- package/src/components/FiltersPane/FilterWithPeriod/FilterWithPeriod.tsx +231 -231
- package/src/components/FiltersPane/FilterWithPeriod/index.ts +1 -1
- package/src/components/FiltersPane/FilterWrapper/FilterWrapper.styles.ts +110 -110
- package/src/components/FiltersPane/FilterWrapper/FilterWrapper.tsx +360 -360
- package/src/components/FiltersPane/FilterWrapper/index.ts +1 -1
- package/src/components/FiltersPane/FiltersPane.stories.tsx +308 -308
- package/src/components/FiltersPane/FiltersPane.styles.ts +71 -71
- package/src/components/FiltersPane/FiltersPane.tsx +193 -193
- package/src/components/FiltersPane/FiltersPaneSearch/FiltersPaneSearch.styles.ts +109 -109
- package/src/components/FiltersPane/FiltersPaneSearch/FiltersPaneSearch.tsx +175 -175
- package/src/components/FiltersPane/FiltersPaneSearch/index.ts +1 -1
- package/src/components/FiltersPane/index.ts +20 -20
- package/src/components/FiltersPane/locales.ts +107 -107
- package/src/components/FiltersPane/types.ts +126 -126
- package/src/components/Flag/Flag.stories.tsx +29 -29
- package/src/components/Flag/Flag.styles.ts +18 -18
- package/src/components/Flag/Flag.tsx +28 -28
- package/src/components/Flag/augment.d.ts +1 -1
- package/src/components/Flag/index.ts +2 -2
- package/src/components/FlexibleTable/FlexibleTable.styles.ts +131 -131
- package/src/components/FlexibleTable/FlexibleTable.tsx +243 -243
- package/src/components/FlexibleTable/TableRow.tsx +171 -171
- package/src/components/FlexibleTable/TableValue.tsx +81 -81
- package/src/components/FlexibleTable/fixture-test.ts +254 -254
- package/src/components/FlexibleTable/index.ts +3 -3
- package/src/components/FlexibleTable/types.ts +58 -58
- package/src/components/Icon/ComplexIconBoilerplate.tsx +17 -17
- package/src/components/Icon/Icon.stories.tsx +88 -88
- package/src/components/Icon/Icon.styles.ts +10 -10
- package/src/components/Icon/Icon.tsx +34 -34
- package/src/components/Icon/IconBoilerplate.tsx +42 -42
- package/src/components/Icon/complexIcons/augment.d.ts +1 -1
- package/src/components/Icon/complexIcons/avatarGreen.svg +57 -57
- package/src/components/Icon/complexIcons/icons.ts +7 -7
- package/src/components/Icon/complexIcons/index.ts +1 -1
- package/src/components/Icon/icons/icons.ts +838 -838
- package/src/components/Icon/icons/index.ts +1 -1
- package/src/components/Icon/index.ts +4 -4
- package/src/components/IncrementInput/ChangeButton.tsx +34 -34
- package/src/components/IncrementInput/IncrementInput.stories.tsx +34 -34
- package/src/components/IncrementInput/IncrementInput.styles.ts +77 -77
- package/src/components/IncrementInput/IncrementInput.tsx +95 -95
- package/src/components/IncrementInput/index.ts +2 -2
- package/src/components/Input/Input.stories.tsx +92 -92
- package/src/components/Input/Input.styles.ts +307 -307
- package/src/components/Input/Input.tsx +321 -321
- package/src/components/Input/index.ts +2 -2
- package/src/components/List/List.stories.tsx +62 -62
- package/src/components/List/List.styles.ts +52 -52
- package/src/components/List/List.tsx +82 -82
- package/src/components/List/index.ts +2 -2
- package/src/components/Modal/Modal.stories.tsx +113 -113
- package/src/components/Modal/Modal.styles.ts +308 -308
- package/src/components/Modal/Modal.tsx +210 -210
- package/src/components/Modal/index.ts +2 -2
- package/src/components/MoreMenu/MoreMenu.stories.tsx +46 -46
- package/src/components/MoreMenu/MoreMenu.styles.ts +70 -70
- package/src/components/MoreMenu/MoreMenu.tsx +102 -102
- package/src/components/MoreMenu/index.ts +2 -2
- package/src/components/MultiSelect/MultiSelect.stories.tsx +46 -46
- package/src/components/MultiSelect/MultiSelect.styles.ts +55 -55
- package/src/components/MultiSelect/MultiSelect.tsx +98 -98
- package/src/components/MultiSelect/MultiSelectInput/MultiSelectInput.styles.ts +73 -73
- package/src/components/MultiSelect/MultiSelectInput/MultiSelectInput.tsx +62 -62
- package/src/components/MultiSelect/MultiSelectInput/index.ts +1 -1
- package/src/components/MultiSelect/index.ts +3 -3
- package/src/components/MultiSelectList/MultiSelectList.styles.ts +125 -125
- package/src/components/MultiSelectList/MultiSelectList.tsx +519 -519
- package/src/components/MultiSelectList/index.ts +2 -2
- package/src/components/MultiSelectList/locales.ts +37 -37
- package/src/components/Notification/Notification.stories.tsx +51 -51
- package/src/components/Notification/Notification.styles.ts +50 -50
- package/src/components/Notification/Notification.tsx +84 -84
- package/src/components/Notification/index.ts +2 -2
- package/src/components/NumberInput/NumberInput.stories.tsx +36 -36
- package/src/components/NumberInput/NumberInput.tsx +154 -154
- package/src/components/NumberInput/helpers.ts +87 -87
- package/src/components/NumberInput/index.ts +1 -1
- package/src/components/PhoneInput/PhoneInput.stories.tsx +71 -71
- package/src/components/PhoneInput/PhoneInput.styles.ts +84 -84
- package/src/components/PhoneInput/PhoneInput.tsx +223 -223
- package/src/components/PhoneInput/PhoneInputCountryList/PhoneInputCountryList.stories.tsx +21 -21
- package/src/components/PhoneInput/PhoneInputCountryList/PhoneInputCountryList.styles.ts +100 -100
- package/src/components/PhoneInput/PhoneInputCountryList/PhoneInputCountryList.tsx +171 -171
- package/src/components/PhoneInput/PhoneInputCountryList/index.ts +2 -2
- package/src/components/PhoneInput/index.ts +6 -6
- package/src/components/PhoneInput/phone-info.ts +2167 -2167
- package/src/components/PhoneInput/types.ts +16 -16
- package/src/components/RadioButton/RadioButton.stories.tsx +46 -46
- package/src/components/RadioButton/RadioButton.styles.ts +37 -37
- package/src/components/RadioButton/RadioButton.tsx +56 -56
- package/src/components/RadioButton/index.ts +2 -2
- package/src/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.ts +66 -66
- package/src/components/ScrollIntoViewIfNeeded/index.ts +1 -1
- package/src/components/SearchInput/SearchInput.stories.tsx +24 -24
- package/src/components/SearchInput/SearchInput.styles.ts +50 -50
- package/src/components/SearchInput/SearchInput.tsx +63 -63
- package/src/components/SearchInput/index.ts +2 -2
- package/src/components/Select/MultiSelect.stories.tsx +263 -263
- package/src/components/Select/Select.stories.tsx +258 -258
- package/src/components/Select/Select.styles.ts +96 -96
- package/src/components/Select/Select.tsx +6 -2
- package/src/components/Select/SelectList/SelectList.styles.ts +72 -72
- package/src/components/Select/SelectList/SelectList.tsx +165 -165
- package/src/components/Select/SelectList/index.ts +1 -1
- package/src/components/Select/SelectListItem/SelectListItem.styles.ts +14 -14
- package/src/components/Select/SelectListItem/SelectListItem.tsx +73 -73
- package/src/components/Select/constants.ts +2 -2
- package/src/components/Select/helpers.ts +29 -29
- package/src/components/Select/index.ts +4 -4
- package/src/components/Select/types.ts +1 -1
- package/src/components/SmartInput/SmartInput.stories.tsx +63 -63
- package/src/components/SmartInput/SmartInput.tsx +180 -180
- package/src/components/SmartInput/helpers.ts +85 -85
- package/src/components/SmartInput/index.ts +1 -1
- package/src/components/Switch/Switch.stories.tsx +40 -40
- package/src/components/Switch/Switch.styles.ts +75 -75
- package/src/components/Switch/Switch.tsx +89 -89
- package/src/components/Switch/index.ts +2 -2
- package/src/components/TextArea/TextArea.stories.tsx +35 -35
- package/src/components/TextArea/TextArea.styles.ts +153 -153
- package/src/components/TextArea/TextArea.tsx +178 -178
- package/src/components/TextArea/index.ts +2 -2
- package/src/components/TextWithInfo/TextWithInfo.stories.tsx +53 -53
- package/src/components/TextWithInfo/TextWithInfo.styles.ts +60 -60
- package/src/components/TextWithInfo/TextWithInfo.tsx +67 -67
- package/src/components/TextWithInfo/index.ts +2 -2
- package/src/components/TextWithTooltip/TextWithTooltip.stories.tsx +58 -58
- package/src/components/TextWithTooltip/TextWithTooltip.styles.ts +19 -19
- package/src/components/TextWithTooltip/TextWithTooltip.tsx +163 -163
- package/src/components/TextWithTooltip/index.ts +2 -2
- package/src/components/ThemedPreloader/ThemedPreloader.stories.tsx +41 -41
- package/src/components/ThemedPreloader/ThemedPreloader.styles.ts +21 -21
- package/src/components/ThemedPreloader/ThemedPreloader.tsx +56 -56
- package/src/components/ThemedPreloader/components/DefaultPreloader/DefaultPreloader.tsx +34 -34
- package/src/components/ThemedPreloader/components/DefaultPreloader/index.ts +1 -1
- package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.ts +54 -54
- package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.tsx +18 -18
- package/src/components/ThemedPreloader/components/DotsPreloader/index.ts +2 -2
- package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.ts +11 -11
- package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.tsx +32 -32
- package/src/components/ThemedPreloader/components/SvgPreloader/index.ts +2 -2
- package/src/components/ThemedPreloader/components/index.ts +2 -2
- package/src/components/ThemedPreloader/index.ts +2 -2
- package/src/components/Toaster/Toaster.stories.tsx +34 -34
- package/src/components/Toaster/Toaster.styles.ts +59 -59
- package/src/components/Toaster/Toaster.tsx +113 -113
- package/src/components/Toaster/index.ts +2 -2
- package/src/components/Tooltip/Tooltip.stories.tsx +21 -21
- package/src/components/Tooltip/Tooltip.styles.ts +45 -45
- package/src/components/Tooltip/Tooltip.tsx +40 -40
- package/src/components/Tooltip/index.ts +3 -3
- package/src/components/Tooltip/types.ts +1 -1
- package/src/components/index.ts +36 -36
- package/src/helpers/colors.ts +2 -2
- package/src/helpers/dateHelpers/date-helpers.ts +9 -9
- package/src/helpers/index.ts +4 -4
- package/src/helpers/phone.ts +106 -106
- package/src/helpers/popper-helpers.ts +17 -17
- package/src/helpers/snippets.tsx +5 -5
- package/src/helpers/utils.ts +261 -250
- package/src/hooks/index.ts +6 -6
- package/src/hooks/use-did-mount-effect.ts +21 -21
- package/src/hooks/use-dropdown.ts +85 -85
- package/src/hooks/use-is-mounted.ts +15 -15
- package/src/hooks/use-on-click-outside.ts +92 -92
- package/src/hooks/use-theme.ts +36 -36
- package/src/hooks/use-tweak-styles.ts +14 -14
- package/src/index.ts +6 -6
- package/src/theme.ts +155 -155
- package/src/types.ts +105 -106
- package/src/vite-env.d.ts +1 -1
- package/dist/components/DatePicker/DatePickerInput/DatePickerInput.d.ts +0 -11
- package/dist/components/DatePicker/DatePickerInput/DatePickerInput.styles.d.ts +0 -20
- package/dist/components/DatePicker/DatePickerInput/index.d.ts +0 -1
- package/src/components/DatePicker/DatePickerInput/DatePickerInput.styles.ts +0 -25
- package/src/components/DatePicker/DatePickerInput/DatePickerInput.tsx +0 -31
- package/src/components/DatePicker/DatePickerInput/index.ts +0 -1
|
@@ -4,8 +4,8 @@ import clsx from "clsx";
|
|
|
4
4
|
import hexToRgba from "hex-to-rgba";
|
|
5
5
|
import { createUseStyles } from "react-jss";
|
|
6
6
|
import InputMask from "react-input-mask";
|
|
7
|
-
import
|
|
8
|
-
import { getYear, getMonth, format as format$1,
|
|
7
|
+
import ReactDatePicker from "react-datepicker";
|
|
8
|
+
import { getYear, getMonth, format as format$1, parse, isSameDay, isValid, isAfter, isBefore, startOfMonth, endOfMonth, sub, startOfYear, endOfYear } from "date-fns";
|
|
9
9
|
import { Portal } from "react-overlays";
|
|
10
10
|
import scrollIntoViewIfNeeded from "scroll-into-view-if-needed";
|
|
11
11
|
import { debounce as debounce$1 } from "ts-debounce";
|
|
@@ -1301,6 +1301,9 @@ var getNumberLength = function(n) {
|
|
|
1301
1301
|
var isNotEmpty = function(val) {
|
|
1302
1302
|
return typeof val === "string" ? val.trim() !== "" : val !== null && val !== void 0;
|
|
1303
1303
|
};
|
|
1304
|
+
var isEmpty = function(val) {
|
|
1305
|
+
return val === null || val === void 0;
|
|
1306
|
+
};
|
|
1304
1307
|
var isStringNotEmpty = function(value) {
|
|
1305
1308
|
return (value !== null && value !== void 0 ? value : "").trim() !== "";
|
|
1306
1309
|
};
|
|
@@ -1349,17 +1352,19 @@ var addClickHandler = function(cb) {
|
|
|
1349
1352
|
tabIndex: -1
|
|
1350
1353
|
};
|
|
1351
1354
|
};
|
|
1352
|
-
var createFilter = function(getter) {
|
|
1355
|
+
var createFilter = function(getter, compareFn) {
|
|
1353
1356
|
return function(items, query) {
|
|
1354
1357
|
return items.filter(function(item) {
|
|
1355
1358
|
var possibleValues = getter(item).reduce(function(acc, cur) {
|
|
1356
1359
|
return _to_consumable_array$7(acc).concat(_to_consumable_array$7(isStringNotEmpty(cur) ? [
|
|
1357
|
-
cur
|
|
1360
|
+
cur.toLowerCase()
|
|
1358
1361
|
] : []));
|
|
1359
1362
|
}, []);
|
|
1360
1363
|
var queryString = query.toLowerCase().trim();
|
|
1361
1364
|
return possibleValues.some(function(v) {
|
|
1362
|
-
return
|
|
1365
|
+
return (compareFn !== null && compareFn !== void 0 ? compareFn : function() {
|
|
1366
|
+
return v === null || v === void 0 ? void 0 : v.includes(queryString);
|
|
1367
|
+
})(v, queryString);
|
|
1363
1368
|
});
|
|
1364
1369
|
});
|
|
1365
1370
|
};
|
|
@@ -4967,63 +4972,63 @@ var IconBoilerplate = function(param) {
|
|
|
4967
4972
|
]
|
|
4968
4973
|
});
|
|
4969
4974
|
};
|
|
4970
|
-
const avatarGreen = ` <svg
|
|
4971
|
-
width="100%"
|
|
4972
|
-
height="100%"
|
|
4973
|
-
viewBox="0 0 32 32"
|
|
4974
|
-
fill="none"
|
|
4975
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
4976
|
-
|
|
4977
|
-
<circle opacity="0.5" cx="16" cy="16" r="16" fill="#DDE3ED"
|
|
4978
|
-
<mask
|
|
4979
|
-
id="mask0_0_12744"
|
|
4980
|
-
style="mask-type: 'alpha';"
|
|
4981
|
-
maskUnits="userSpaceOnUse"
|
|
4982
|
-
x="0"
|
|
4983
|
-
y="0"
|
|
4984
|
-
width="32"
|
|
4985
|
-
height="32"
|
|
4986
|
-
|
|
4987
|
-
<circle cx="16" cy="16" r="16" fill="white"
|
|
4988
|
-
</mask
|
|
4989
|
-
<g mask="url(#mask0_0_12744)"
|
|
4990
|
-
<circle cx="16" cy="29" r="13" fill="url(#paint0_linear_0_12744)"
|
|
4991
|
-
<mask
|
|
4992
|
-
id="mask1_0_12744"
|
|
4993
|
-
style="mask-type: 'alpha';"
|
|
4994
|
-
maskUnits="userSpaceOnUse"
|
|
4995
|
-
x="3"
|
|
4996
|
-
y="16"
|
|
4997
|
-
width="26"
|
|
4998
|
-
height="26"
|
|
4999
|
-
|
|
5000
|
-
<circle cx="16" cy="29" r="13" fill="white"
|
|
5001
|
-
</mask
|
|
5002
|
-
<g mask="url(#mask1_0_12744)"
|
|
5003
|
-
<ellipse
|
|
5004
|
-
cx="16"
|
|
5005
|
-
cy="17.5"
|
|
5006
|
-
rx="6"
|
|
5007
|
-
ry="7.5"
|
|
5008
|
-
fill="#505F79"
|
|
5009
|
-
fill-opacity="0.204983"
|
|
5010
|
-
|
|
5011
|
-
</g
|
|
5012
|
-
</g
|
|
5013
|
-
<ellipse cx="16" cy="13" rx="6" ry="7" fill="white"
|
|
5014
|
-
<defs
|
|
5015
|
-
<linearGradient
|
|
5016
|
-
id="paint0_linear_0_12744"
|
|
5017
|
-
x1="13.347"
|
|
5018
|
-
y1="46.279"
|
|
5019
|
-
x2="33.5318"
|
|
5020
|
-
y2="30.8088"
|
|
5021
|
-
gradientUnits="userSpaceOnUse"
|
|
5022
|
-
|
|
5023
|
-
<stop stop-color="#ABD229"
|
|
5024
|
-
<stop offset="1" stop-color="#9CD03F"
|
|
5025
|
-
</linearGradient
|
|
5026
|
-
</defs
|
|
4975
|
+
const avatarGreen = ` <svg
|
|
4976
|
+
width="100%"
|
|
4977
|
+
height="100%"
|
|
4978
|
+
viewBox="0 0 32 32"
|
|
4979
|
+
fill="none"
|
|
4980
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
4981
|
+
>
|
|
4982
|
+
<circle opacity="0.5" cx="16" cy="16" r="16" fill="#DDE3ED" />
|
|
4983
|
+
<mask
|
|
4984
|
+
id="mask0_0_12744"
|
|
4985
|
+
style="mask-type: 'alpha';"
|
|
4986
|
+
maskUnits="userSpaceOnUse"
|
|
4987
|
+
x="0"
|
|
4988
|
+
y="0"
|
|
4989
|
+
width="32"
|
|
4990
|
+
height="32"
|
|
4991
|
+
>
|
|
4992
|
+
<circle cx="16" cy="16" r="16" fill="white" />
|
|
4993
|
+
</mask>
|
|
4994
|
+
<g mask="url(#mask0_0_12744)">
|
|
4995
|
+
<circle cx="16" cy="29" r="13" fill="url(#paint0_linear_0_12744)" />
|
|
4996
|
+
<mask
|
|
4997
|
+
id="mask1_0_12744"
|
|
4998
|
+
style="mask-type: 'alpha';"
|
|
4999
|
+
maskUnits="userSpaceOnUse"
|
|
5000
|
+
x="3"
|
|
5001
|
+
y="16"
|
|
5002
|
+
width="26"
|
|
5003
|
+
height="26"
|
|
5004
|
+
>
|
|
5005
|
+
<circle cx="16" cy="29" r="13" fill="white" />
|
|
5006
|
+
</mask>
|
|
5007
|
+
<g mask="url(#mask1_0_12744)">
|
|
5008
|
+
<ellipse
|
|
5009
|
+
cx="16"
|
|
5010
|
+
cy="17.5"
|
|
5011
|
+
rx="6"
|
|
5012
|
+
ry="7.5"
|
|
5013
|
+
fill="#505F79"
|
|
5014
|
+
fill-opacity="0.204983"
|
|
5015
|
+
/>
|
|
5016
|
+
</g>
|
|
5017
|
+
</g>
|
|
5018
|
+
<ellipse cx="16" cy="13" rx="6" ry="7" fill="white" />
|
|
5019
|
+
<defs>
|
|
5020
|
+
<linearGradient
|
|
5021
|
+
id="paint0_linear_0_12744"
|
|
5022
|
+
x1="13.347"
|
|
5023
|
+
y1="46.279"
|
|
5024
|
+
x2="33.5318"
|
|
5025
|
+
y2="30.8088"
|
|
5026
|
+
gradientUnits="userSpaceOnUse"
|
|
5027
|
+
>
|
|
5028
|
+
<stop stop-color="#ABD229" />
|
|
5029
|
+
<stop offset="1" stop-color="#9CD03F" />
|
|
5030
|
+
</linearGradient>
|
|
5031
|
+
</defs>
|
|
5027
5032
|
</svg>`;
|
|
5028
5033
|
var complexIcons = {
|
|
5029
5034
|
avatar: avatarGreen
|
|
@@ -5069,7 +5074,7 @@ var ComplexIconBoilerplate = function(param) {
|
|
|
5069
5074
|
}
|
|
5070
5075
|
});
|
|
5071
5076
|
};
|
|
5072
|
-
var styles$
|
|
5077
|
+
var styles$J = {
|
|
5073
5078
|
root: {
|
|
5074
5079
|
display: "flex",
|
|
5075
5080
|
alignItems: "center"
|
|
@@ -5132,7 +5137,7 @@ var isComplexIcon = function(type) {
|
|
|
5132
5137
|
};
|
|
5133
5138
|
var Icon = function(param) {
|
|
5134
5139
|
var type = param.type, data = param.data, tweakStyles = param.tweakStyles;
|
|
5135
|
-
var classes = useTheme("Icon", styles$
|
|
5140
|
+
var classes = useTheme("Icon", styles$J, tweakStyles).classes;
|
|
5136
5141
|
return /* @__PURE__ */ jsx("div", _object_spread_props$B(_object_spread$K({
|
|
5137
5142
|
className: classes.root
|
|
5138
5143
|
}, addDataAttributes(data)), {
|
|
@@ -5146,7 +5151,7 @@ var Icon = function(param) {
|
|
|
5146
5151
|
var ITEM_HORIZONTAL_PADDING = 16;
|
|
5147
5152
|
var ICON_SIZE = 20;
|
|
5148
5153
|
var ICON_GAP = 12;
|
|
5149
|
-
var styles$
|
|
5154
|
+
var styles$I = {
|
|
5150
5155
|
root: {
|
|
5151
5156
|
minWidth: 180,
|
|
5152
5157
|
backgroundColor: colors.CLASSIC_WHITE,
|
|
@@ -5243,7 +5248,7 @@ function _object_spread_props$A(target, source) {
|
|
|
5243
5248
|
}
|
|
5244
5249
|
var List = function(param) {
|
|
5245
5250
|
var items = param.items, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles, onClick = param.onClick;
|
|
5246
|
-
var classes = useTheme("List", styles$
|
|
5251
|
+
var classes = useTheme("List", styles$I, tweakStyles).classes;
|
|
5247
5252
|
var handleItemClick = function(item) {
|
|
5248
5253
|
item.onClick();
|
|
5249
5254
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
@@ -5340,7 +5345,7 @@ function _object_spread_props$z(target, source) {
|
|
|
5340
5345
|
}
|
|
5341
5346
|
return target;
|
|
5342
5347
|
}
|
|
5343
|
-
var styles$
|
|
5348
|
+
var styles$H = _object_spread_props$z(_object_spread$I({
|
|
5344
5349
|
root: {
|
|
5345
5350
|
display: "flex"
|
|
5346
5351
|
},
|
|
@@ -5497,7 +5502,7 @@ function _unsupported_iterable_to_array$n(o, minLen) {
|
|
|
5497
5502
|
var ANIMATION_TIMEOUT = 150;
|
|
5498
5503
|
var AccountInfo = function(param) {
|
|
5499
5504
|
var data = param.data, avatar = param.avatar, tweakStyles = param.tweakStyles, accountName = param.accountName, options = param.options;
|
|
5500
|
-
var _useTheme = useTheme("AccountInfo", styles$
|
|
5505
|
+
var _useTheme = useTheme("AccountInfo", styles$H, tweakStyles, {
|
|
5501
5506
|
timeout: ANIMATION_TIMEOUT
|
|
5502
5507
|
}), classes = _useTheme.classes, componentStyles = _useTheme.componentStyles;
|
|
5503
5508
|
var nameRef = useRef(null);
|
|
@@ -5564,7 +5569,7 @@ var AccountInfo = function(param) {
|
|
|
5564
5569
|
]
|
|
5565
5570
|
}));
|
|
5566
5571
|
};
|
|
5567
|
-
var styles$
|
|
5572
|
+
var styles$G = {
|
|
5568
5573
|
root: {
|
|
5569
5574
|
display: "flex",
|
|
5570
5575
|
alignItems: "center",
|
|
@@ -5644,7 +5649,7 @@ function _object_spread_props$x(target, source) {
|
|
|
5644
5649
|
}
|
|
5645
5650
|
var AddButton = function(param) {
|
|
5646
5651
|
var text = param.text, _param_type = param.type, type = _param_type === void 0 ? "button" : _param_type, isDisabled = param.isDisabled, onClick = param.onClick, isFullWidth = param.isFullWidth, data = param.data, tweakStyles = param.tweakStyles;
|
|
5647
|
-
var classes = useTheme("AddButton", styles$
|
|
5652
|
+
var classes = useTheme("AddButton", styles$G, tweakStyles).classes;
|
|
5648
5653
|
return /* @__PURE__ */ jsxs("button", _object_spread_props$x(_object_spread$G({
|
|
5649
5654
|
type,
|
|
5650
5655
|
className: clsx(classes.root, isDisabled && classes.disabled, isFullWidth && classes.fullWidth),
|
|
@@ -5664,7 +5669,7 @@ var AddButton = function(param) {
|
|
|
5664
5669
|
]
|
|
5665
5670
|
}));
|
|
5666
5671
|
};
|
|
5667
|
-
var styles$
|
|
5672
|
+
var styles$F = {
|
|
5668
5673
|
root: {
|
|
5669
5674
|
display: "flex",
|
|
5670
5675
|
gap: 4,
|
|
@@ -5709,7 +5714,7 @@ var styles$G = {
|
|
|
5709
5714
|
};
|
|
5710
5715
|
var DotsPreloader = function(param) {
|
|
5711
5716
|
var tweakStyles = param.tweakStyles;
|
|
5712
|
-
var classes = useTheme("DotsPreloader", styles$
|
|
5717
|
+
var classes = useTheme("DotsPreloader", styles$F, tweakStyles).classes;
|
|
5713
5718
|
return /* @__PURE__ */ jsx("div", {
|
|
5714
5719
|
className: classes.root,
|
|
5715
5720
|
children: /* @__PURE__ */ jsx("span", {
|
|
@@ -5773,7 +5778,7 @@ var DefaultPreloader = function() {
|
|
|
5773
5778
|
]
|
|
5774
5779
|
});
|
|
5775
5780
|
};
|
|
5776
|
-
var styles$
|
|
5781
|
+
var styles$E = {
|
|
5777
5782
|
root: {
|
|
5778
5783
|
display: "flex",
|
|
5779
5784
|
width: "100%",
|
|
@@ -5783,7 +5788,7 @@ var styles$F = {
|
|
|
5783
5788
|
var SvgPreloader = function(param) {
|
|
5784
5789
|
var _param_type = param.type, type = _param_type === void 0 ? "default" : _param_type, tweakStyles = param.tweakStyles;
|
|
5785
5790
|
var _theme_preloaders;
|
|
5786
|
-
var classes = useTheme("SvgPreloader", styles$
|
|
5791
|
+
var classes = useTheme("SvgPreloader", styles$E, tweakStyles).classes;
|
|
5787
5792
|
var theme = useContext(ThemeContext).theme;
|
|
5788
5793
|
var _theme_preloaders_type;
|
|
5789
5794
|
var PreloaderIcon = (_theme_preloaders_type = (_theme_preloaders = theme.preloaders) === null || _theme_preloaders === void 0 ? void 0 : _theme_preloaders[type]) !== null && _theme_preloaders_type !== void 0 ? _theme_preloaders_type : DefaultPreloader;
|
|
@@ -5795,7 +5800,7 @@ var SvgPreloader = function(param) {
|
|
|
5795
5800
|
}
|
|
5796
5801
|
}) : /* @__PURE__ */ jsx(PreloaderIcon, {});
|
|
5797
5802
|
};
|
|
5798
|
-
var styles$
|
|
5803
|
+
var styles$D = {
|
|
5799
5804
|
root: {
|
|
5800
5805
|
display: "flex"
|
|
5801
5806
|
},
|
|
@@ -5861,7 +5866,7 @@ function _object_spread_props$w(target, source) {
|
|
|
5861
5866
|
}
|
|
5862
5867
|
var ThemedPreloader = function(param) {
|
|
5863
5868
|
var _param_type = param.type, type = _param_type === void 0 ? "default" : _param_type, _param_useCurrentColor = param.useCurrentColor, useCurrentColor = _param_useCurrentColor === void 0 ? false : _param_useCurrentColor, data = param.data, tweakStyles = param.tweakStyles;
|
|
5864
|
-
var _useTheme = useTheme("ThemedPreloader", styles$
|
|
5869
|
+
var _useTheme = useTheme("ThemedPreloader", styles$D, tweakStyles), classes = _useTheme.classes, componentStyles = _useTheme.componentStyles;
|
|
5865
5870
|
var preloaderComponentStyles = useTweakStyles(componentStyles, tweakStyles, "tweakPreloaderComponent");
|
|
5866
5871
|
return /* @__PURE__ */ jsx("div", _object_spread_props$w(_object_spread$F({
|
|
5867
5872
|
className: clsx(classes.root, classes[type], _define_property$H({}, classes.currentColor, useCurrentColor))
|
|
@@ -5874,7 +5879,7 @@ var ThemedPreloader = function(param) {
|
|
|
5874
5879
|
})
|
|
5875
5880
|
}));
|
|
5876
5881
|
};
|
|
5877
|
-
var styles$
|
|
5882
|
+
var styles$C = {
|
|
5878
5883
|
root: {
|
|
5879
5884
|
display: "flex",
|
|
5880
5885
|
justifyContent: "center",
|
|
@@ -6107,7 +6112,7 @@ var BUTTON_VIEWS = [
|
|
|
6107
6112
|
];
|
|
6108
6113
|
var Button = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
6109
6114
|
var _param_type = param.type, type = _param_type === void 0 ? "button" : _param_type, children = param.children, _param_size = param.size, size = _param_size === void 0 ? "l" : _param_size, _param_view = param.view, view = _param_view === void 0 ? "primary" : _param_view, _param_isFullWidth = param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? false : _param_isFullWidth, _param_isInline = param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_shouldSkipTabNavigation = param.shouldSkipTabNavigation, shouldSkipTabNavigation = _param_shouldSkipTabNavigation === void 0 ? false : _param_shouldSkipTabNavigation, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles, icon = param.icon, _param_iconPosition = param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_preloaderType = param.preloaderType, preloaderType = _param_preloaderType === void 0 ? "dots" : _param_preloaderType, onClick = param.onClick, onMouseDown = param.onMouseDown;
|
|
6110
|
-
var _useTheme = useTheme("Button", styles$
|
|
6115
|
+
var _useTheme = useTheme("Button", styles$C, tweakStyles), classes = _useTheme.classes, componentStyles = _useTheme.componentStyles;
|
|
6111
6116
|
var tweakPreloaderStyles = useMemo(function() {
|
|
6112
6117
|
return merge$1({}, size === "s" || size === "m" ? dotsPreloaderStyles : void 0, componentStyles.tweakPreloader, tweakStyles === null || tweakStyles === void 0 ? void 0 : tweakStyles.tweakPreloader);
|
|
6113
6118
|
}, [
|
|
@@ -6154,7 +6159,7 @@ var Button = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
|
6154
6159
|
]
|
|
6155
6160
|
}));
|
|
6156
6161
|
});
|
|
6157
|
-
var styles$
|
|
6162
|
+
var styles$B = {
|
|
6158
6163
|
root: {
|
|
6159
6164
|
cursor: "pointer",
|
|
6160
6165
|
display: "flex",
|
|
@@ -6322,7 +6327,7 @@ function _unsupported_iterable_to_array$m(o, minLen) {
|
|
|
6322
6327
|
}
|
|
6323
6328
|
function Checkbox(param) {
|
|
6324
6329
|
var children = param.children, isDisabled = param.isDisabled, isReadonly = param.isReadonly, _param_isChecked = param.isChecked, isChecked = _param_isChecked === void 0 ? false : _param_isChecked, value = param.value, _param_size = param.size, size = _param_size === void 0 ? 18 : _param_size, _param_alignItems = param.alignItems, alignItems = _param_alignItems === void 0 ? "center" : _param_alignItems, textMargin = param.textMargin, data = param.data, testId = param.testId, isSemiChecked = param.isSemiChecked, _param_labelPosition = param.labelPosition, labelPosition = _param_labelPosition === void 0 ? "right" : _param_labelPosition, tweakStyles = param.tweakStyles, onSelect = param.onSelect;
|
|
6325
|
-
var classes = useTheme("Checkbox", styles$
|
|
6330
|
+
var classes = useTheme("Checkbox", styles$B, tweakStyles, {
|
|
6326
6331
|
size,
|
|
6327
6332
|
alignItems,
|
|
6328
6333
|
textMargin
|
|
@@ -6370,7 +6375,7 @@ function Checkbox(param) {
|
|
|
6370
6375
|
]
|
|
6371
6376
|
}));
|
|
6372
6377
|
}
|
|
6373
|
-
var styles$
|
|
6378
|
+
var styles$A = {
|
|
6374
6379
|
root: {
|
|
6375
6380
|
width: 40,
|
|
6376
6381
|
height: 40,
|
|
@@ -6449,7 +6454,7 @@ function _object_spread_props$t(target, source) {
|
|
|
6449
6454
|
}
|
|
6450
6455
|
var CloseButton = function(param) {
|
|
6451
6456
|
var tweakStyles = param.tweakStyles, testId = param.testId, data = param.data, _param_iconType = param.iconType, iconType = _param_iconType === void 0 ? "close" : _param_iconType, onClose = param.onClose;
|
|
6452
|
-
var classes = useTheme("CloseButton", styles$
|
|
6457
|
+
var classes = useTheme("CloseButton", styles$A, tweakStyles).classes;
|
|
6453
6458
|
return /* @__PURE__ */ jsx("button", _object_spread_props$t(_object_spread$C({
|
|
6454
6459
|
type: "button",
|
|
6455
6460
|
className: classes.root,
|
|
@@ -6461,7 +6466,7 @@ var CloseButton = function(param) {
|
|
|
6461
6466
|
})
|
|
6462
6467
|
}));
|
|
6463
6468
|
};
|
|
6464
|
-
var styles$
|
|
6469
|
+
var styles$z = {
|
|
6465
6470
|
root: {
|
|
6466
6471
|
display: "flex",
|
|
6467
6472
|
flexWrap: "wrap"
|
|
@@ -6554,7 +6559,7 @@ function _unsupported_iterable_to_array$l(o, minLen) {
|
|
|
6554
6559
|
return _array_like_to_array$l(o, minLen);
|
|
6555
6560
|
}
|
|
6556
6561
|
var Colors = function() {
|
|
6557
|
-
var classes = useTheme("Colors", styles$
|
|
6562
|
+
var classes = useTheme("Colors", styles$z).classes;
|
|
6558
6563
|
var theme = useContext(ThemeContext).theme;
|
|
6559
6564
|
var _theme_colors = theme.colors, colors2 = _theme_colors === void 0 ? {} : _theme_colors;
|
|
6560
6565
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -6584,7 +6589,7 @@ var Colors = function() {
|
|
|
6584
6589
|
})
|
|
6585
6590
|
});
|
|
6586
6591
|
};
|
|
6587
|
-
var styles$
|
|
6592
|
+
var styles$y = {
|
|
6588
6593
|
"@global html, body": {
|
|
6589
6594
|
fontFamily: "Arial, sans-serif",
|
|
6590
6595
|
color: colors.FONT_MAIN,
|
|
@@ -6623,14 +6628,14 @@ function _object_spread$B(target) {
|
|
|
6623
6628
|
}
|
|
6624
6629
|
var CssBaseline = function(param) {
|
|
6625
6630
|
var data = param.data, tweakStyles = param.tweakStyles;
|
|
6626
|
-
var classes = useTheme("CssBaseline", styles$
|
|
6631
|
+
var classes = useTheme("CssBaseline", styles$y, tweakStyles).classes;
|
|
6627
6632
|
return /* @__PURE__ */ jsx("div", _object_spread$B({
|
|
6628
6633
|
className: classes.root
|
|
6629
6634
|
}, addDataAttributes(data)));
|
|
6630
6635
|
};
|
|
6631
6636
|
var PADDING_X$1 = 12;
|
|
6632
6637
|
var AUTOSIZE_MAX_WIDTH = 480;
|
|
6633
|
-
var styles$
|
|
6638
|
+
var styles$x = {
|
|
6634
6639
|
root: {
|
|
6635
6640
|
width: "100%",
|
|
6636
6641
|
boxSizing: "border-box",
|
|
@@ -7153,7 +7158,7 @@ var __generator$5 = globalThis && globalThis.__generator || function(thisArg, bo
|
|
|
7153
7158
|
var DEFAULT_SIZE = 6;
|
|
7154
7159
|
var Input = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
7155
7160
|
var _param_value = param.value, value = _param_value === void 0 ? "" : _param_value, label = param.label, placeholder = param.placeholder, _param_type = param.type, type = _param_type === void 0 ? "text" : _param_type, isDisabled = param.isDisabled, isReadonly = param.isReadonly, _param_hasFloatingLabel = param.hasFloatingLabel, hasFloatingLabel = _param_hasFloatingLabel === void 0 ? true : _param_hasFloatingLabel, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isActive = param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isClearable = param.isClearable, isClearable = _param_isClearable === void 0 ? false : _param_isClearable, infoMessage = param.infoMessage, errorMessage = param.errorMessage, _param_errorPosition = param.errorPosition, errorPosition = _param_errorPosition === void 0 ? "bottom" : _param_errorPosition, inlineStyle = param.inlineStyle, border = param.border, isRequired = param.isRequired, isLoading = param.isLoading, isAutoSizeable = param.isAutoSizeable, _param_defaultSize = param.defaultSize, defaultSize = _param_defaultSize === void 0 ? DEFAULT_SIZE : _param_defaultSize, iconType = param.iconType, name = param.name, hasRequiredLabel = param.hasRequiredLabel, data = param.data, tweakStyles = param.tweakStyles, maxLength = param.maxLength, shouldFocusOnMount = param.shouldFocusOnMount, units = param.units, testId = param.testId, tabIndex = param.tabIndex, onChange = param.onChange, onPaste = param.onPaste, onFocus = param.onFocus, onBlur = param.onBlur, onIconClick = param.onIconClick, onKeyDown = param.onKeyDown, mask = param.mask, maskPlaceholder = param.maskPlaceholder, alwaysShowMask = param.alwaysShowMask, beforeMaskedStateChange = param.beforeMaskedStateChange;
|
|
7156
|
-
var _useTheme = useTheme("Input", styles$
|
|
7161
|
+
var _useTheme = useTheme("Input", styles$x, tweakStyles), classes = _useTheme.classes, componentStyles = _useTheme.componentStyles;
|
|
7157
7162
|
var _useState = _sliced_to_array$k(useState(false), 2), isFocused = _useState[0], setFocused = _useState[1];
|
|
7158
7163
|
var inputRef = useRef(null);
|
|
7159
7164
|
var handleChange = function(event) {
|
|
@@ -7294,12 +7299,14 @@ var Input = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
|
7294
7299
|
]
|
|
7295
7300
|
});
|
|
7296
7301
|
});
|
|
7297
|
-
var
|
|
7302
|
+
var EMPTY_DATE_INPUT_VALUE = "__.__.____";
|
|
7303
|
+
var EMPTY_DATE_RANGE_INPUT_VALUE = "".concat(EMPTY_DATE_INPUT_VALUE, " - ").concat(EMPTY_DATE_INPUT_VALUE);
|
|
7304
|
+
var styles$w = {
|
|
7298
7305
|
root: {
|
|
7299
|
-
cursor: "pointer",
|
|
7300
|
-
position: "relative",
|
|
7301
7306
|
width: "100%",
|
|
7302
|
-
height: "100%"
|
|
7307
|
+
height: "100%",
|
|
7308
|
+
cursor: "pointer",
|
|
7309
|
+
position: "relative"
|
|
7303
7310
|
},
|
|
7304
7311
|
tweakInput: {}
|
|
7305
7312
|
};
|
|
@@ -7387,71 +7394,57 @@ function _object_without_properties_loose$8(source, excluded) {
|
|
|
7387
7394
|
}
|
|
7388
7395
|
return target;
|
|
7389
7396
|
}
|
|
7390
|
-
var DateInput = function(_param) {
|
|
7391
|
-
var
|
|
7392
|
-
"isRange",
|
|
7397
|
+
var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
7398
|
+
var date = _param.date, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? "" : _param_startDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? "" : _param_endDate, mask = _param.mask, className = _param.className, placeholder = _param.placeholder, data = _param.data, isRange = _param.isRange, tweakStyles = _param.tweakStyles, onClick = _param.onClick, onChange = _param.onChange, inputProps = _object_without_properties$8(_param, [
|
|
7393
7399
|
"date",
|
|
7394
7400
|
"startDate",
|
|
7395
7401
|
"endDate",
|
|
7402
|
+
"mask",
|
|
7403
|
+
"className",
|
|
7404
|
+
"placeholder",
|
|
7396
7405
|
"data",
|
|
7397
|
-
"
|
|
7398
|
-
"tweakStyles"
|
|
7406
|
+
"isRange",
|
|
7407
|
+
"tweakStyles",
|
|
7408
|
+
"onClick",
|
|
7409
|
+
"onChange"
|
|
7399
7410
|
]);
|
|
7400
|
-
var _useTheme = useTheme("DateInput", styles$
|
|
7401
|
-
var mainProps = isRange ? {
|
|
7402
|
-
value: "".concat(startDate).concat(endDate),
|
|
7403
|
-
onChange: function(v) {
|
|
7404
|
-
return onChange(v !== "__.__.____ - __.__.____" ? v : "");
|
|
7405
|
-
},
|
|
7406
|
-
mask: "99.99.9999 - 99.99.9999"
|
|
7407
|
-
} : {
|
|
7408
|
-
value: date,
|
|
7409
|
-
onChange: function(v) {
|
|
7410
|
-
return onChange(v !== "__.__.____" ? v : "");
|
|
7411
|
-
},
|
|
7412
|
-
mask: "99.99.9999"
|
|
7413
|
-
};
|
|
7411
|
+
var _useTheme = useTheme("DateInput", styles$w, tweakStyles), classes = _useTheme.classes, componentStyles = _useTheme.componentStyles;
|
|
7414
7412
|
var tweakInputStyles = useTweakStyles(componentStyles, tweakStyles, "tweakInput");
|
|
7413
|
+
var beforeMaskedStateChange = function(param) {
|
|
7414
|
+
var nextState = param.nextState;
|
|
7415
|
+
if (nextState.value === EMPTY_DATE_INPUT_VALUE || nextState.value === EMPTY_DATE_RANGE_INPUT_VALUE) {
|
|
7416
|
+
return {
|
|
7417
|
+
value: "",
|
|
7418
|
+
selection: {
|
|
7419
|
+
start: 0,
|
|
7420
|
+
end: 0
|
|
7421
|
+
}
|
|
7422
|
+
};
|
|
7423
|
+
}
|
|
7424
|
+
return nextState;
|
|
7425
|
+
};
|
|
7426
|
+
var handleChange = function(value, event) {
|
|
7427
|
+
if (event.type === "click") {
|
|
7428
|
+
event.target.value = "";
|
|
7429
|
+
}
|
|
7430
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(event, value);
|
|
7431
|
+
};
|
|
7415
7432
|
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$z({
|
|
7416
|
-
className: classes.root
|
|
7433
|
+
className: clsx(classes.root, className),
|
|
7434
|
+
onClick
|
|
7417
7435
|
}, addDataAttributes(data)), {
|
|
7418
|
-
children: /* @__PURE__ */ jsx(Input, _object_spread_props$r(_object_spread$z({},
|
|
7419
|
-
|
|
7436
|
+
children: /* @__PURE__ */ jsx(Input, _object_spread_props$r(_object_spread$z({}, inputProps), {
|
|
7437
|
+
ref,
|
|
7438
|
+
value: isRange ? "".concat(startDate).concat(endDate) : date,
|
|
7439
|
+
mask: mask !== null && mask !== void 0 ? mask : isRange ? "99.99.9999 - 99.99.9999" : "99.99.9999",
|
|
7440
|
+
placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : isRange ? EMPTY_DATE_RANGE_INPUT_VALUE : EMPTY_DATE_INPUT_VALUE,
|
|
7441
|
+
tweakStyles: tweakInputStyles,
|
|
7442
|
+
onChange: handleChange,
|
|
7443
|
+
beforeMaskedStateChange
|
|
7420
7444
|
}))
|
|
7421
7445
|
}));
|
|
7422
|
-
};
|
|
7423
|
-
const reactDatepicker = "";
|
|
7424
|
-
var styles$w = {
|
|
7425
|
-
customInput: {
|
|
7426
|
-
width: "100%",
|
|
7427
|
-
height: "100%"
|
|
7428
|
-
},
|
|
7429
|
-
s: {
|
|
7430
|
-
width: 184,
|
|
7431
|
-
height: "100%"
|
|
7432
|
-
},
|
|
7433
|
-
m: {
|
|
7434
|
-
width: 300,
|
|
7435
|
-
height: "100%"
|
|
7436
|
-
},
|
|
7437
|
-
full: {
|
|
7438
|
-
width: "100%",
|
|
7439
|
-
height: "100%"
|
|
7440
|
-
}
|
|
7441
|
-
};
|
|
7442
|
-
var DatePickerInput = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
7443
|
-
var onClick = param.onClick, children = param.children, _param_size = param.size, size = _param_size === void 0 ? "full" : _param_size, className = param.className;
|
|
7444
|
-
var classes = useTheme("DatePickerInput", styles$w).classes;
|
|
7445
|
-
return /* @__PURE__ */ jsx("div", {
|
|
7446
|
-
className: clsx(classes.customInput, className),
|
|
7447
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
7448
|
-
className: classes[size],
|
|
7449
|
-
onClick,
|
|
7450
|
-
ref,
|
|
7451
|
-
children
|
|
7452
|
-
})
|
|
7453
|
-
});
|
|
7454
7446
|
});
|
|
7447
|
+
const reactDatepicker = "";
|
|
7455
7448
|
function _assert_this_initialized(self2) {
|
|
7456
7449
|
if (self2 === void 0) {
|
|
7457
7450
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -8839,11 +8832,17 @@ function Select(props) {
|
|
|
8839
8832
|
]
|
|
8840
8833
|
});
|
|
8841
8834
|
useEffect(function() {
|
|
8842
|
-
var val = isMultiSelect ? value === null || value === void 0 ? void 0 : value[0] : value;
|
|
8843
8835
|
var _optionsIndexesForNavigation_find;
|
|
8844
8836
|
setFocusedListCellIndex((_optionsIndexesForNavigation_find = optionsIndexesForNavigation.find(function(index) {
|
|
8845
|
-
return filteredOptions[index] ===
|
|
8837
|
+
return isNotEmpty(strValue) && isNotEmpty(filteredOptions[index]) && convertToId(filteredOptions[index]) === convertToId(strValue);
|
|
8846
8838
|
})) !== null && _optionsIndexesForNavigation_find !== void 0 ? _optionsIndexesForNavigation_find : optionsIndexesForNavigation[0]);
|
|
8839
|
+
}, [
|
|
8840
|
+
strValue,
|
|
8841
|
+
filteredOptions,
|
|
8842
|
+
optionsIndexesForNavigation,
|
|
8843
|
+
convertToId
|
|
8844
|
+
]);
|
|
8845
|
+
useEffect(function() {
|
|
8847
8846
|
if (isOpen) {
|
|
8848
8847
|
onOpen === null || onOpen === void 0 ? void 0 : onOpen();
|
|
8849
8848
|
}
|
|
@@ -9016,20 +9015,13 @@ var styles$s = {
|
|
|
9016
9015
|
}
|
|
9017
9016
|
};
|
|
9018
9017
|
var DatePickerHeader = function(param) {
|
|
9019
|
-
var date = param.date,
|
|
9018
|
+
var date = param.date, _param_months = param.months, months = _param_months === void 0 ? [] : _param_months, prevMonthButtonDisabled = param.prevMonthButtonDisabled, nextMonthButtonDisabled = param.nextMonthButtonDisabled, changeYear = param.changeYear, changeMonth = param.changeMonth, decreaseMonth = param.decreaseMonth, increaseMonth = param.increaseMonth;
|
|
9020
9019
|
var _useTheme = useTheme("DatePickerHeader", styles$s), classes = _useTheme.classes, componentStyles = _useTheme.componentStyles;
|
|
9021
9020
|
var years = useMemo(function() {
|
|
9022
9021
|
return Array.from(Array(41)).map(function(_, i) {
|
|
9023
9022
|
return getYear(new Date()) - 30 + i;
|
|
9024
9023
|
});
|
|
9025
9024
|
}, []);
|
|
9026
|
-
var getMonthNumber = useCallback(function(month) {
|
|
9027
|
-
return months.findIndex(function(m) {
|
|
9028
|
-
return m === month;
|
|
9029
|
-
});
|
|
9030
|
-
}, [
|
|
9031
|
-
months
|
|
9032
|
-
]);
|
|
9033
9025
|
return /* @__PURE__ */ jsxs("div", {
|
|
9034
9026
|
className: classes.header,
|
|
9035
9027
|
children: [
|
|
@@ -9045,11 +9037,11 @@ var DatePickerHeader = function(param) {
|
|
|
9045
9037
|
children: /* @__PURE__ */ jsx(Select, {
|
|
9046
9038
|
value: months[getMonth(date)],
|
|
9047
9039
|
options: months,
|
|
9048
|
-
|
|
9049
|
-
return changeMonth(getMonthNumber(value));
|
|
9050
|
-
},
|
|
9040
|
+
dropdownIcon: "chevron-down-small",
|
|
9051
9041
|
tweakStyles: componentStyles.tweakSelect,
|
|
9052
|
-
|
|
9042
|
+
onChange: function(value) {
|
|
9043
|
+
return changeMonth(months.indexOf(value));
|
|
9044
|
+
}
|
|
9053
9045
|
})
|
|
9054
9046
|
})
|
|
9055
9047
|
]
|
|
@@ -9066,11 +9058,11 @@ var DatePickerHeader = function(param) {
|
|
|
9066
9058
|
children: /* @__PURE__ */ jsx(Select, {
|
|
9067
9059
|
value: getYear(date),
|
|
9068
9060
|
options: years,
|
|
9069
|
-
|
|
9070
|
-
changeYear(value);
|
|
9071
|
-
},
|
|
9061
|
+
dropdownIcon: "chevron-down-small",
|
|
9072
9062
|
tweakStyles: componentStyles.tweakSelect,
|
|
9073
|
-
|
|
9063
|
+
onChange: function(value) {
|
|
9064
|
+
return changeYear(value);
|
|
9065
|
+
}
|
|
9074
9066
|
})
|
|
9075
9067
|
})
|
|
9076
9068
|
]
|
|
@@ -9079,19 +9071,19 @@ var DatePickerHeader = function(param) {
|
|
|
9079
9071
|
className: classes.buttons,
|
|
9080
9072
|
children: [
|
|
9081
9073
|
/* @__PURE__ */ jsx("button", {
|
|
9082
|
-
onClick: decreaseMonth,
|
|
9083
|
-
disabled: isPrevMonthButtonDisabled,
|
|
9084
|
-
className: classes.btn,
|
|
9085
9074
|
type: "button",
|
|
9075
|
+
className: classes.btn,
|
|
9076
|
+
disabled: prevMonthButtonDisabled,
|
|
9077
|
+
onClick: decreaseMonth,
|
|
9086
9078
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
9087
9079
|
type: "chevron-left"
|
|
9088
9080
|
})
|
|
9089
9081
|
}),
|
|
9090
9082
|
/* @__PURE__ */ jsx("button", {
|
|
9091
|
-
onClick: increaseMonth,
|
|
9092
|
-
disabled: isNextMonthButtonDisabled,
|
|
9093
|
-
className: classes.btn,
|
|
9094
9083
|
type: "button",
|
|
9084
|
+
className: classes.btn,
|
|
9085
|
+
disabled: nextMonthButtonDisabled,
|
|
9086
|
+
onClick: increaseMonth,
|
|
9095
9087
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
9096
9088
|
type: "chevron-right"
|
|
9097
9089
|
})
|
|
@@ -9101,43 +9093,38 @@ var DatePickerHeader = function(param) {
|
|
|
9101
9093
|
]
|
|
9102
9094
|
});
|
|
9103
9095
|
};
|
|
9096
|
+
var getDateFormatter = function(dateFormat) {
|
|
9097
|
+
return function(date) {
|
|
9098
|
+
return isNotEmpty(date) ? format$1(date, dateFormat) : "";
|
|
9099
|
+
};
|
|
9100
|
+
};
|
|
9101
|
+
var getDateValueParser = function(dateFormat) {
|
|
9102
|
+
return function(value) {
|
|
9103
|
+
var inputValue = value === EMPTY_DATE_INPUT_VALUE ? "" : value;
|
|
9104
|
+
return isStringNotEmpty(inputValue) ? parse(value, dateFormat, new Date()) : null;
|
|
9105
|
+
};
|
|
9106
|
+
};
|
|
9107
|
+
var areDatesEquals = function(date1, date2) {
|
|
9108
|
+
return isEmpty(date1) && isEmpty(date2) || isNotEmpty(date1) && isNotEmpty(date2) && isSameDay(date1, date2);
|
|
9109
|
+
};
|
|
9110
|
+
var DEFAULT_DATE_FORMAT$2 = "dd.MM.yyyy";
|
|
9104
9111
|
var styles$r = {
|
|
9105
9112
|
root: {
|
|
9106
9113
|
width: "100%",
|
|
9107
9114
|
height: "100%"
|
|
9108
9115
|
},
|
|
9109
|
-
day: {
|
|
9110
|
-
|
|
9111
|
-
height: 36,
|
|
9112
|
-
lineHeight: "normal",
|
|
9113
|
-
boxSizing: "border-box",
|
|
9114
|
-
paddingTop: 10,
|
|
9115
|
-
fontSize: 16
|
|
9116
|
-
},
|
|
9117
|
-
datepicker: {
|
|
9118
|
-
display: "flex",
|
|
9119
|
-
padding: [
|
|
9120
|
-
4,
|
|
9121
|
-
8,
|
|
9122
|
-
20,
|
|
9123
|
-
8
|
|
9124
|
-
],
|
|
9125
|
-
width: 320,
|
|
9126
|
-
boxSizing: "border-box"
|
|
9127
|
-
},
|
|
9128
|
-
btnText: {
|
|
9129
|
-
marginLeft: "auto"
|
|
9130
|
-
},
|
|
9116
|
+
day: {},
|
|
9117
|
+
datepicker: {},
|
|
9131
9118
|
popper: {
|
|
9132
9119
|
zIndex: 10,
|
|
9133
|
-
marginLeft: function(param) {
|
|
9134
|
-
var leftPosition = param.leftPosition;
|
|
9135
|
-
return leftPosition;
|
|
9136
|
-
},
|
|
9137
9120
|
marginTop: function(param) {
|
|
9138
9121
|
var topPosition = param.topPosition;
|
|
9139
9122
|
return topPosition;
|
|
9140
9123
|
},
|
|
9124
|
+
marginLeft: function(param) {
|
|
9125
|
+
var leftPosition = param.leftPosition;
|
|
9126
|
+
return leftPosition;
|
|
9127
|
+
},
|
|
9141
9128
|
'&[data-placement^="bottom"]': {
|
|
9142
9129
|
paddingTop: 6
|
|
9143
9130
|
},
|
|
@@ -9150,7 +9137,8 @@ var styles$r = {
|
|
|
9150
9137
|
'&[data-placement^="right"]': {
|
|
9151
9138
|
paddingLeft: 6
|
|
9152
9139
|
}
|
|
9153
|
-
}
|
|
9140
|
+
},
|
|
9141
|
+
tweakDateInput: {}
|
|
9154
9142
|
};
|
|
9155
9143
|
function _array_like_to_array$i(arr, len) {
|
|
9156
9144
|
if (len == null || len > arr.length)
|
|
@@ -9294,8 +9282,8 @@ function _unsupported_iterable_to_array$i(o, minLen) {
|
|
|
9294
9282
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
9295
9283
|
return _array_like_to_array$i(o, minLen);
|
|
9296
9284
|
}
|
|
9297
|
-
var
|
|
9298
|
-
var
|
|
9285
|
+
var _ReactDatePicker_default;
|
|
9286
|
+
var DatePickerComponent = (_ReactDatePicker_default = ReactDatePicker.default) !== null && _ReactDatePicker_default !== void 0 ? _ReactDatePicker_default : ReactDatePicker;
|
|
9299
9287
|
var PopperContainer = function(param) {
|
|
9300
9288
|
var children = param.children;
|
|
9301
9289
|
return /* @__PURE__ */ jsx(Portal, {
|
|
@@ -9303,257 +9291,240 @@ var PopperContainer = function(param) {
|
|
|
9303
9291
|
children
|
|
9304
9292
|
});
|
|
9305
9293
|
};
|
|
9306
|
-
var
|
|
9307
|
-
var
|
|
9308
|
-
var data = _param.data, tweakStyles = _param.tweakStyles, selectedDate = _param.selectedDate, minDate = _param.minDate, maxDate = _param.maxDate, endDate = _param.endDate, startDate = _param.startDate, size = _param.size, isRange = _param.isRange, locale2 = _param.locale, months = _param.months, _param_calendarStartDay = _param.calendarStartDay, calendarStartDay = _param_calendarStartDay === void 0 ? 1 : _param_calendarStartDay, _param_leftPosition = _param.leftPosition, leftPosition = _param_leftPosition === void 0 ? 0 : _param_leftPosition, _param_topPosition = _param.topPosition, topPosition = _param_topPosition === void 0 ? 0 : _param_topPosition, isInline = _param.isInline, isNeedClearSelectedDate = _param.isNeedClearSelectedDate, _param_dateFormat = _param.dateFormat, dateFormat = _param_dateFormat === void 0 ? DEFAULT_DATE_FORMAT$2 : _param_dateFormat, monthsShown = _param.monthsShown, _param_placeholder = _param.placeholder, placeholder = _param_placeholder === void 0 ? "__.__.____" : _param_placeholder, shouldGiveValueOnType = _param.shouldGiveValueOnType, disabledKeyboardNavigation = _param.disabledKeyboardNavigation, shouldRenderPopperInBody = _param.shouldRenderPopperInBody, popperModifiers = _param.popperModifiers, showPreviousMonths = _param.showPreviousMonths, popperPlacement = _param.popperPlacement, onChangeDate = _param.onChangeDate, onChangeRange = _param.onChangeRange, customHeader = _param.customHeader, filterDate = _param.filterDate, inputProps = _object_without_properties$4(_param, [
|
|
9294
|
+
var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
9295
|
+
var data = _param.data, _param_selectedDate = _param.selectedDate, selectedDate = _param_selectedDate === void 0 ? null : _param_selectedDate, minDate = _param.minDate, maxDate = _param.maxDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? null : _param_endDate, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? null : _param_startDate, locale2 = _param.locale, months = _param.months, _param_topPosition = _param.topPosition, topPosition = _param_topPosition === void 0 ? 0 : _param_topPosition, _param_leftPosition = _param.leftPosition, leftPosition = _param_leftPosition === void 0 ? 0 : _param_leftPosition, _param_calendarStartDay = _param.calendarStartDay, calendarStartDay = _param_calendarStartDay === void 0 ? 1 : _param_calendarStartDay, _param_dateFormat = _param.dateFormat, dateFormat = _param_dateFormat === void 0 ? DEFAULT_DATE_FORMAT$2 : _param_dateFormat, monthsShown = _param.monthsShown, placeholder = _param.placeholder, isRange = _param.isRange, isInline = _param.isInline, isDisabled = _param.isDisabled, isClearable = _param.isClearable, focusSelectedMonth = _param.focusSelectedMonth, disabledKeyboardNavigation = _param.disabledKeyboardNavigation, shouldRenderPopperInBody = _param.shouldRenderPopperInBody, _param_allowSameDay = _param.allowSameDay, allowSameDay = _param_allowSameDay === void 0 ? false : _param_allowSameDay, shouldCloseOnSelect = _param.shouldCloseOnSelect, showPreviousMonths = _param.showPreviousMonths, preventOpenOnFocus = _param.preventOpenOnFocus, popperModifiers = _param.popperModifiers, popperPlacement = _param.popperPlacement, todayButton = _param.todayButton, calendarContainer = _param.calendarContainer, dayClassName = _param.dayClassName, tmp = _param.customInput, CustomInput = tmp === void 0 ? DateInput : tmp, customInputRef = _param.customInputRef, renderCustomHeader = _param.renderCustomHeader, filterDate = _param.filterDate, onYearChange = _param.onYearChange, onMonthChange = _param.onMonthChange, onCalendarOpen = _param.onCalendarOpen, onCalendarClose = _param.onCalendarClose, onChangeDate = _param.onChangeDate, onChangeRange = _param.onChangeRange, onBlur = _param.onBlur, onFocus = _param.onFocus, onKeyDown = _param.onKeyDown, tweakStyles = _param.tweakStyles, inputProps = _object_without_properties$4(_param, [
|
|
9309
9296
|
"data",
|
|
9310
|
-
"tweakStyles",
|
|
9311
9297
|
"selectedDate",
|
|
9312
9298
|
"minDate",
|
|
9313
9299
|
"maxDate",
|
|
9314
9300
|
"endDate",
|
|
9315
9301
|
"startDate",
|
|
9316
|
-
"size",
|
|
9317
|
-
"isRange",
|
|
9318
9302
|
"locale",
|
|
9319
9303
|
"months",
|
|
9320
|
-
"calendarStartDay",
|
|
9321
|
-
"leftPosition",
|
|
9322
9304
|
"topPosition",
|
|
9323
|
-
"
|
|
9324
|
-
"
|
|
9305
|
+
"leftPosition",
|
|
9306
|
+
"calendarStartDay",
|
|
9325
9307
|
"dateFormat",
|
|
9326
9308
|
"monthsShown",
|
|
9327
9309
|
"placeholder",
|
|
9328
|
-
"
|
|
9310
|
+
"isRange",
|
|
9311
|
+
"isInline",
|
|
9312
|
+
"isDisabled",
|
|
9313
|
+
"isClearable",
|
|
9314
|
+
"focusSelectedMonth",
|
|
9329
9315
|
"disabledKeyboardNavigation",
|
|
9330
9316
|
"shouldRenderPopperInBody",
|
|
9331
|
-
"
|
|
9317
|
+
"allowSameDay",
|
|
9318
|
+
"shouldCloseOnSelect",
|
|
9332
9319
|
"showPreviousMonths",
|
|
9320
|
+
"preventOpenOnFocus",
|
|
9321
|
+
"popperModifiers",
|
|
9333
9322
|
"popperPlacement",
|
|
9323
|
+
"todayButton",
|
|
9324
|
+
"calendarContainer",
|
|
9325
|
+
"dayClassName",
|
|
9326
|
+
"customInput",
|
|
9327
|
+
"customInputRef",
|
|
9328
|
+
"renderCustomHeader",
|
|
9329
|
+
"filterDate",
|
|
9330
|
+
"onYearChange",
|
|
9331
|
+
"onMonthChange",
|
|
9332
|
+
"onCalendarOpen",
|
|
9333
|
+
"onCalendarClose",
|
|
9334
9334
|
"onChangeDate",
|
|
9335
9335
|
"onChangeRange",
|
|
9336
|
-
"
|
|
9337
|
-
"
|
|
9336
|
+
"onBlur",
|
|
9337
|
+
"onFocus",
|
|
9338
|
+
"onKeyDown",
|
|
9339
|
+
"tweakStyles"
|
|
9338
9340
|
]);
|
|
9339
|
-
var
|
|
9341
|
+
var _useTheme = useTheme("DatePicker", styles$r, tweakStyles, {
|
|
9340
9342
|
leftPosition,
|
|
9341
9343
|
topPosition
|
|
9342
|
-
}).classes;
|
|
9344
|
+
}), classes = _useTheme.classes, componentStyles = _useTheme.componentStyles;
|
|
9345
|
+
var tweakDateInputStyles = useTweakStyles(componentStyles, tweakStyles, "tweakDateInput");
|
|
9346
|
+
var _useMemo = useMemo(function() {
|
|
9347
|
+
return {
|
|
9348
|
+
formatDate: getDateFormatter(dateFormat),
|
|
9349
|
+
parseDateValue: getDateValueParser(dateFormat)
|
|
9350
|
+
};
|
|
9351
|
+
}, [
|
|
9352
|
+
dateFormat
|
|
9353
|
+
]), formatDate = _useMemo.formatDate, parseDateValue = _useMemo.parseDateValue;
|
|
9343
9354
|
var _useState = _sliced_to_array$i(useState(false), 2), isOpen = _useState[0], setIsOpen = _useState[1];
|
|
9344
|
-
var _useState1 = _sliced_to_array$i(useState(selectedDate), 2),
|
|
9345
|
-
var _useState2 = _sliced_to_array$i(useState(
|
|
9346
|
-
var _useState3 = _sliced_to_array$i(useState(startDate), 2),
|
|
9355
|
+
var _useState1 = _sliced_to_array$i(useState(formatDate(selectedDate)), 2), dateValue = _useState1[0], setDateValue = _useState1[1];
|
|
9356
|
+
var _useState2 = _sliced_to_array$i(useState(startDate), 2), start2 = _useState2[0], setStart = _useState2[1];
|
|
9357
|
+
var _useState3 = _sliced_to_array$i(useState(formatDate(startDate)), 2), startDateValue = _useState3[0], setStartDateValue = _useState3[1];
|
|
9347
9358
|
var _useState4 = _sliced_to_array$i(useState(endDate), 2), end2 = _useState4[0], setEnd = _useState4[1];
|
|
9348
|
-
var _useState5 = _sliced_to_array$i(useState(
|
|
9349
|
-
var
|
|
9350
|
-
var
|
|
9351
|
-
|
|
9359
|
+
var _useState5 = _sliced_to_array$i(useState(formatDate(endDate)), 2), endDateValue = _useState5[0], setEndDateValue = _useState5[1];
|
|
9360
|
+
var hasDateInputValue = isRange ? isStringNotEmpty(startDateValue) || isStringNotEmpty(endDateValue) : isStringNotEmpty(dateValue);
|
|
9361
|
+
var dateInputProps = _object_spread$t(_object_spread_props$n(_object_spread$t({}, inputProps), {
|
|
9362
|
+
isRange,
|
|
9363
|
+
isDisabled,
|
|
9364
|
+
isClearable,
|
|
9365
|
+
isActive: isOpen,
|
|
9366
|
+
iconType: isClearable && hasDateInputValue ? void 0 : "calendar",
|
|
9367
|
+
tweakStyles: tweakDateInputStyles
|
|
9368
|
+
}), isRange ? {
|
|
9369
|
+
startDate: startDateValue,
|
|
9370
|
+
endDate: endDateValue
|
|
9371
|
+
} : {
|
|
9372
|
+
date: dateValue
|
|
9373
|
+
});
|
|
9374
|
+
var handleChangeDate = function(value, event) {
|
|
9375
|
+
onChangeDate === null || onChangeDate === void 0 ? void 0 : onChangeDate(value, event);
|
|
9352
9376
|
};
|
|
9353
|
-
var
|
|
9354
|
-
return
|
|
9377
|
+
var isDateInRange = function(date) {
|
|
9378
|
+
return (isEmpty(minDate) || isAfter(date, minDate)) && (isEmpty(maxDate) || isBefore(date, maxDate));
|
|
9355
9379
|
};
|
|
9356
|
-
var
|
|
9357
|
-
if (
|
|
9358
|
-
|
|
9359
|
-
|
|
9360
|
-
|
|
9361
|
-
|
|
9362
|
-
|
|
9363
|
-
}
|
|
9380
|
+
var handleChangeRange = function(value, event) {
|
|
9381
|
+
if (allowSameDay || !areDatesEquals(value === null || value === void 0 ? void 0 : value[0], startDate) || !areDatesEquals(value === null || value === void 0 ? void 0 : value[1], endDate)) {
|
|
9382
|
+
var _value_;
|
|
9383
|
+
setStart((_value_ = value === null || value === void 0 ? void 0 : value[0]) !== null && _value_ !== void 0 ? _value_ : null);
|
|
9384
|
+
var _value_1;
|
|
9385
|
+
setEnd((_value_1 = value === null || value === void 0 ? void 0 : value[1]) !== null && _value_1 !== void 0 ? _value_1 : null);
|
|
9386
|
+
onChangeRange === null || onChangeRange === void 0 ? void 0 : onChangeRange(value, event);
|
|
9364
9387
|
}
|
|
9365
|
-
|
|
9366
|
-
|
|
9367
|
-
|
|
9368
|
-
|
|
9369
|
-
|
|
9370
|
-
|
|
9371
|
-
|
|
9372
|
-
|
|
9373
|
-
|
|
9374
|
-
|
|
9375
|
-
|
|
9376
|
-
|
|
9377
|
-
|
|
9378
|
-
|
|
9379
|
-
|
|
9380
|
-
|
|
9381
|
-
}
|
|
9382
|
-
|
|
9383
|
-
|
|
9384
|
-
|
|
9385
|
-
|
|
9386
|
-
|
|
9387
|
-
|
|
9388
|
-
|
|
9388
|
+
};
|
|
9389
|
+
var handleChangeDateRangeInput = function(value) {
|
|
9390
|
+
var newStartDateValue = value.slice(0, 10);
|
|
9391
|
+
var newStart = parseDateValue(newStartDateValue);
|
|
9392
|
+
var newEndDateValue = value.slice(13);
|
|
9393
|
+
var newEnd = parseDateValue(newEndDateValue);
|
|
9394
|
+
if (isNotEmpty(newStart) && !isValid(newStart) || isNotEmpty(newStart) && !isDateInRange(newStart)) {
|
|
9395
|
+
newStart = start2;
|
|
9396
|
+
}
|
|
9397
|
+
if (isNotEmpty(newEnd) && !isValid(newEnd) || isNotEmpty(newEnd) && !isDateInRange(newEnd)) {
|
|
9398
|
+
newEnd = end2;
|
|
9399
|
+
}
|
|
9400
|
+
if (isEmpty(newStart) && isValid(newEnd) || // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
9401
|
+
isValid(newStart) && isValid(newEnd) && isAfter(newStart, newEnd)) {
|
|
9402
|
+
newStart = newEnd;
|
|
9403
|
+
newEnd = null;
|
|
9404
|
+
}
|
|
9405
|
+
setStartDateValue(newStartDateValue);
|
|
9406
|
+
setStart(newStart);
|
|
9407
|
+
setEndDateValue(newEndDateValue);
|
|
9408
|
+
setEnd(newEnd);
|
|
9409
|
+
};
|
|
9410
|
+
var handleDateInputBlur = function(event) {
|
|
9411
|
+
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
9412
|
+
setDateValue(formatDate(selectedDate));
|
|
9413
|
+
};
|
|
9414
|
+
var setDateRangeValues = function() {
|
|
9415
|
+
var startValue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null, endValue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
9416
|
+
var convertedStartDate = formatDate(startValue);
|
|
9417
|
+
var convertedEndDate = formatDate(endValue);
|
|
9418
|
+
if (convertedStartDate === "" && convertedEndDate !== "") {
|
|
9419
|
+
convertedStartDate = EMPTY_DATE_INPUT_VALUE;
|
|
9420
|
+
}
|
|
9421
|
+
setStart(startValue);
|
|
9422
|
+
setStartDateValue(convertedStartDate);
|
|
9423
|
+
setEnd(endValue);
|
|
9424
|
+
setEndDateValue(convertedEndDate);
|
|
9425
|
+
};
|
|
9426
|
+
var handleDateRangeInputBlur = function(event) {
|
|
9427
|
+
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
9428
|
+
handleChangeRange([
|
|
9429
|
+
start2,
|
|
9430
|
+
end2
|
|
9431
|
+
], event);
|
|
9432
|
+
setDateRangeValues(start2, end2);
|
|
9433
|
+
};
|
|
9434
|
+
var handleOpenCalendar = function() {
|
|
9435
|
+
setIsOpen(true);
|
|
9436
|
+
onCalendarOpen === null || onCalendarOpen === void 0 ? void 0 : onCalendarOpen();
|
|
9437
|
+
};
|
|
9438
|
+
var handleCloseCalendar = function() {
|
|
9439
|
+
setIsOpen(false);
|
|
9440
|
+
if (isRange) {
|
|
9441
|
+
handleChangeRange([
|
|
9442
|
+
start2,
|
|
9443
|
+
end2
|
|
9389
9444
|
]);
|
|
9445
|
+
setDateRangeValues(start2, end2);
|
|
9446
|
+
} else {
|
|
9447
|
+
setDateValue(formatDate(selectedDate));
|
|
9390
9448
|
}
|
|
9391
|
-
|
|
9392
|
-
|
|
9393
|
-
]);
|
|
9394
|
-
useEffect(function() {
|
|
9395
|
-
setDateValue("");
|
|
9396
|
-
}, [
|
|
9397
|
-
isNeedClearSelectedDate
|
|
9398
|
-
]);
|
|
9449
|
+
onCalendarClose === null || onCalendarClose === void 0 ? void 0 : onCalendarClose();
|
|
9450
|
+
};
|
|
9399
9451
|
useEffect(function() {
|
|
9400
|
-
|
|
9401
|
-
|
|
9402
|
-
setEnd(endDate);
|
|
9403
|
-
setStartDateValue(startDate ? format$1(startDate, dateFormat) : "");
|
|
9404
|
-
setEndDateValue(endDate ? format$1(endDate, dateFormat) : "");
|
|
9405
|
-
setDateValue(selectedDate ? format$1(selectedDate, dateFormat) : "");
|
|
9452
|
+
setDateValue(formatDate(selectedDate));
|
|
9453
|
+
setDateRangeValues(startDate, endDate);
|
|
9406
9454
|
}, [
|
|
9407
9455
|
selectedDate,
|
|
9408
9456
|
startDate,
|
|
9409
9457
|
endDate
|
|
9410
9458
|
]);
|
|
9411
|
-
var onTabConfirm = function(event) {
|
|
9412
|
-
if (event.key === "9") {
|
|
9413
|
-
setIsOpen(false);
|
|
9414
|
-
}
|
|
9415
|
-
};
|
|
9416
|
-
useEffect(function() {
|
|
9417
|
-
document.addEventListener("keydown", onTabConfirm);
|
|
9418
|
-
return function() {
|
|
9419
|
-
return document.removeEventListener("keydown", onTabConfirm);
|
|
9420
|
-
};
|
|
9421
|
-
}, []);
|
|
9422
|
-
var handleBlur = function(e) {
|
|
9423
|
-
if (inputProps.onBlur) {
|
|
9424
|
-
inputProps.onBlur(e);
|
|
9425
|
-
}
|
|
9426
|
-
if (shouldGiveValueOnType && onChangeDate && !isDateValid(dateValue)) {
|
|
9427
|
-
onChangeDate(null, dateValue);
|
|
9428
|
-
return;
|
|
9429
|
-
}
|
|
9430
|
-
if (onChangeDate && date) {
|
|
9431
|
-
if (!isDateValid(dateValue)) {
|
|
9432
|
-
onChangeDate(null);
|
|
9433
|
-
setDateValue("");
|
|
9434
|
-
} else if (maxDate && isAfter(date, maxDate)) {
|
|
9435
|
-
onChangeDate(maxDate);
|
|
9436
|
-
} else if (minDate && isAfter(minDate, date)) {
|
|
9437
|
-
onChangeDate(minDate);
|
|
9438
|
-
}
|
|
9439
|
-
}
|
|
9440
|
-
};
|
|
9441
|
-
var handleRangeBlur = function(e) {
|
|
9442
|
-
if (inputProps.onBlur) {
|
|
9443
|
-
inputProps.onBlur(e);
|
|
9444
|
-
}
|
|
9445
|
-
if (onChangeRange && start2 && end2) {
|
|
9446
|
-
if (!isDateValid(startDateValue) && endDateValue) {
|
|
9447
|
-
setStartDateValue(placeholder);
|
|
9448
|
-
}
|
|
9449
|
-
if (!isDateValid(endDateValue)) {
|
|
9450
|
-
setEndDateValue("");
|
|
9451
|
-
} else if (maxDate && isAfter(start2, maxDate)) {
|
|
9452
|
-
onChangeRange([
|
|
9453
|
-
maxDate,
|
|
9454
|
-
end2
|
|
9455
|
-
]);
|
|
9456
|
-
} else if (minDate && isAfter(minDate, end2)) {
|
|
9457
|
-
onChangeRange([
|
|
9458
|
-
start2,
|
|
9459
|
-
start2
|
|
9460
|
-
]);
|
|
9461
|
-
}
|
|
9462
|
-
}
|
|
9463
|
-
};
|
|
9464
|
-
var datePickerProps = {
|
|
9465
|
-
dateFormat,
|
|
9466
|
-
calendarStartDay,
|
|
9467
|
-
locale: locale2,
|
|
9468
|
-
popperModifiers,
|
|
9469
|
-
popperPlacement,
|
|
9470
|
-
monthsShown,
|
|
9471
|
-
showPreviousMonths,
|
|
9472
|
-
disabledKeyboardNavigation,
|
|
9473
|
-
inline: isInline,
|
|
9474
|
-
disabled: inputProps.isDisabled,
|
|
9475
|
-
showPopperArrow: false,
|
|
9476
|
-
popperClassName: classes.popper,
|
|
9477
|
-
calendarClassName: classes.datepicker,
|
|
9478
|
-
popperContainer: shouldRenderPopperInBody ? PopperContainer : void 0,
|
|
9479
|
-
selectsRange: isRange,
|
|
9480
|
-
onChange: function() {
|
|
9481
|
-
return null;
|
|
9482
|
-
},
|
|
9483
|
-
dayClassName: function() {
|
|
9484
|
-
return classes.day;
|
|
9485
|
-
},
|
|
9486
|
-
filterDate
|
|
9487
|
-
};
|
|
9488
|
-
var dateInputProps = _object_spread_props$n(_object_spread$t({}, inputProps), {
|
|
9489
|
-
tweakStyles,
|
|
9490
|
-
iconType: inputProps.isClearable && dateValue !== "" ? void 0 : "calendar",
|
|
9491
|
-
isRange,
|
|
9492
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
9493
|
-
onChange: function() {
|
|
9494
|
-
}
|
|
9495
|
-
});
|
|
9496
|
-
if (onChangeRange) {
|
|
9497
|
-
datePickerProps = _object_spread_props$n(_object_spread$t({}, datePickerProps), {
|
|
9498
|
-
startDate: start2,
|
|
9499
|
-
endDate: end2,
|
|
9500
|
-
selectsRange: true,
|
|
9501
|
-
selected: startDate,
|
|
9502
|
-
onChange: onChangeRange
|
|
9503
|
-
});
|
|
9504
|
-
dateInputProps = _object_spread_props$n(_object_spread$t({}, dateInputProps), {
|
|
9505
|
-
startDate: startDateValue,
|
|
9506
|
-
endDate: endDateValue,
|
|
9507
|
-
onBlur: handleRangeBlur,
|
|
9508
|
-
onChange: handleRangeChange
|
|
9509
|
-
});
|
|
9510
|
-
}
|
|
9511
|
-
if (onChangeDate) {
|
|
9512
|
-
datePickerProps = _object_spread_props$n(_object_spread$t({}, datePickerProps), {
|
|
9513
|
-
selected: date,
|
|
9514
|
-
onChange: function(newDate) {
|
|
9515
|
-
return onChangeDate(newDate);
|
|
9516
|
-
},
|
|
9517
|
-
onCalendarOpen: function() {
|
|
9518
|
-
return setIsOpen(true);
|
|
9519
|
-
},
|
|
9520
|
-
onCalendarClose: function() {
|
|
9521
|
-
return setIsOpen(false);
|
|
9522
|
-
},
|
|
9523
|
-
minDate,
|
|
9524
|
-
maxDate
|
|
9525
|
-
});
|
|
9526
|
-
dateInputProps = _object_spread_props$n(_object_spread$t({}, dateInputProps), {
|
|
9527
|
-
date: dateValue,
|
|
9528
|
-
isActive: isOpen,
|
|
9529
|
-
onBlur: handleBlur,
|
|
9530
|
-
onChange: handleDateChange
|
|
9531
|
-
});
|
|
9532
|
-
}
|
|
9533
9459
|
return /* @__PURE__ */ jsx("div", _object_spread_props$n(_object_spread$t({
|
|
9534
9460
|
className: classes.root
|
|
9535
9461
|
}, addDataAttributes(data)), {
|
|
9536
|
-
children: /* @__PURE__ */ jsx(
|
|
9537
|
-
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
|
|
9542
|
-
|
|
9543
|
-
|
|
9544
|
-
|
|
9545
|
-
|
|
9546
|
-
|
|
9547
|
-
|
|
9548
|
-
|
|
9549
|
-
|
|
9550
|
-
|
|
9462
|
+
children: /* @__PURE__ */ jsx(DatePickerComponent, _object_spread$t({
|
|
9463
|
+
ref,
|
|
9464
|
+
minDate,
|
|
9465
|
+
maxDate,
|
|
9466
|
+
locale: locale2,
|
|
9467
|
+
dateFormat,
|
|
9468
|
+
placeholderText: placeholder,
|
|
9469
|
+
calendarStartDay,
|
|
9470
|
+
inline: isInline,
|
|
9471
|
+
disabled: isDisabled,
|
|
9472
|
+
showPreviousMonths,
|
|
9473
|
+
focusSelectedMonth,
|
|
9474
|
+
monthsShown,
|
|
9475
|
+
allowSameDay,
|
|
9476
|
+
showPopperArrow: false,
|
|
9477
|
+
popperClassName: classes.popper,
|
|
9478
|
+
calendarClassName: classes.datepicker,
|
|
9479
|
+
dayClassName: function(v) {
|
|
9480
|
+
return clsx(classes.day, dayClassName === null || dayClassName === void 0 ? void 0 : dayClassName(v));
|
|
9481
|
+
},
|
|
9482
|
+
disabledKeyboardNavigation,
|
|
9483
|
+
popperContainer: shouldRenderPopperInBody ? PopperContainer : void 0,
|
|
9484
|
+
popperModifiers,
|
|
9485
|
+
popperPlacement,
|
|
9486
|
+
selectsRange: isRange,
|
|
9487
|
+
preventOpenOnFocus,
|
|
9488
|
+
shouldCloseOnSelect,
|
|
9489
|
+
customInputRef,
|
|
9490
|
+
customInput: /* @__PURE__ */ jsx(CustomInput, _object_spread$t({}, dateInputProps)),
|
|
9491
|
+
renderCustomHeader: renderCustomHeader !== null && renderCustomHeader !== void 0 ? renderCustomHeader : function(baseProps) {
|
|
9492
|
+
return /* @__PURE__ */ jsx(DatePickerHeader, _object_spread_props$n(_object_spread$t({}, baseProps), {
|
|
9551
9493
|
months
|
|
9552
|
-
});
|
|
9494
|
+
}));
|
|
9495
|
+
},
|
|
9496
|
+
todayButton,
|
|
9497
|
+
calendarContainer,
|
|
9498
|
+
filterDate,
|
|
9499
|
+
onYearChange,
|
|
9500
|
+
onMonthChange,
|
|
9501
|
+
onFocus,
|
|
9502
|
+
onKeyDown,
|
|
9503
|
+
onCalendarOpen: handleOpenCalendar,
|
|
9504
|
+
onCalendarClose: handleCloseCalendar,
|
|
9505
|
+
onChangeRaw: function(_, value) {
|
|
9506
|
+
if (value === void 0) {
|
|
9507
|
+
return;
|
|
9508
|
+
}
|
|
9509
|
+
if (isRange) {
|
|
9510
|
+
handleChangeDateRangeInput(value);
|
|
9511
|
+
} else {
|
|
9512
|
+
setDateValue(value);
|
|
9513
|
+
}
|
|
9553
9514
|
}
|
|
9515
|
+
}, isRange ? {
|
|
9516
|
+
startDate: start2,
|
|
9517
|
+
endDate: end2,
|
|
9518
|
+
selected: start2,
|
|
9519
|
+
onBlur: handleDateRangeInputBlur,
|
|
9520
|
+
onChange: handleChangeRange
|
|
9521
|
+
} : {
|
|
9522
|
+
selected: selectedDate,
|
|
9523
|
+
onBlur: handleDateInputBlur,
|
|
9524
|
+
onChange: handleChangeDate
|
|
9554
9525
|
}))
|
|
9555
9526
|
}));
|
|
9556
|
-
};
|
|
9527
|
+
});
|
|
9557
9528
|
var styles$q = {
|
|
9558
9529
|
root: {},
|
|
9559
9530
|
button: {
|
|
@@ -13982,26 +13953,24 @@ var FilterWithDates = function(param) {
|
|
|
13982
13953
|
localeKey,
|
|
13983
13954
|
locale2
|
|
13984
13955
|
]);
|
|
13985
|
-
var _useState2 = _sliced_to_array$c(useState(false), 2), isNeedClearSelectedDate = _useState2[0], setNeedClearSelectedDate = _useState2[1];
|
|
13986
13956
|
var topPosition = !isClearable && onStartBtnSubmit === void 0 ? 28 : 60;
|
|
13987
13957
|
var handleClear = function() {
|
|
13988
13958
|
onEndBtnSubmit();
|
|
13989
|
-
setNeedClearSelectedDate(!isNeedClearSelectedDate);
|
|
13990
13959
|
};
|
|
13991
13960
|
var ref = useRef(null);
|
|
13992
13961
|
var isOpenCalendar = isOpenFrom || isOpenTo;
|
|
13993
13962
|
var handleFromSelected = function(val) {
|
|
13994
|
-
var
|
|
13963
|
+
var _value_to;
|
|
13995
13964
|
onChange({
|
|
13996
13965
|
from: val,
|
|
13997
|
-
to: (
|
|
13966
|
+
to: (_value_to = value === null || value === void 0 ? void 0 : value.to) !== null && _value_to !== void 0 ? _value_to : null
|
|
13998
13967
|
});
|
|
13999
13968
|
setOpenFrom(false);
|
|
14000
13969
|
};
|
|
14001
13970
|
var handleToSelected = function(val) {
|
|
14002
|
-
var
|
|
13971
|
+
var _value_from;
|
|
14003
13972
|
onChange({
|
|
14004
|
-
from: (
|
|
13973
|
+
from: (_value_from = value === null || value === void 0 ? void 0 : value.from) !== null && _value_from !== void 0 ? _value_from : null,
|
|
14005
13974
|
to: val
|
|
14006
13975
|
});
|
|
14007
13976
|
setOpenTo(false);
|
|
@@ -14013,10 +13982,10 @@ var FilterWithDates = function(param) {
|
|
|
14013
13982
|
to: val
|
|
14014
13983
|
});
|
|
14015
13984
|
} else {
|
|
14016
|
-
var
|
|
13985
|
+
var _value_to;
|
|
14017
13986
|
onChange({
|
|
14018
13987
|
from: val,
|
|
14019
|
-
to: (
|
|
13988
|
+
to: (_value_to = value === null || value === void 0 ? void 0 : value.to) !== null && _value_to !== void 0 ? _value_to : null
|
|
14020
13989
|
});
|
|
14021
13990
|
}
|
|
14022
13991
|
};
|
|
@@ -14027,16 +13996,16 @@ var FilterWithDates = function(param) {
|
|
|
14027
13996
|
to: value.from
|
|
14028
13997
|
});
|
|
14029
13998
|
} else {
|
|
14030
|
-
var
|
|
13999
|
+
var _value_from;
|
|
14031
14000
|
onChange({
|
|
14032
|
-
from: (
|
|
14001
|
+
from: (_value_from = value === null || value === void 0 ? void 0 : value.from) !== null && _value_from !== void 0 ? _value_from : null,
|
|
14033
14002
|
to: val
|
|
14034
14003
|
});
|
|
14035
14004
|
}
|
|
14036
14005
|
};
|
|
14037
14006
|
var tweakClearButtonStyles = useTweakStyles(componentStyles, tweakStyles, "tweakClearButton");
|
|
14038
14007
|
var tweakBackButtonStyles = useTweakStyles(componentStyles, tweakStyles, "tweakBackButton");
|
|
14039
|
-
var
|
|
14008
|
+
var _ref;
|
|
14040
14009
|
return /* @__PURE__ */ jsxs("div", _object_spread_props$h(_object_spread$j({
|
|
14041
14010
|
className: classes.root
|
|
14042
14011
|
}, addDataAttributes(data)), {
|
|
@@ -14047,7 +14016,7 @@ var FilterWithDates = function(param) {
|
|
|
14047
14016
|
/* @__PURE__ */ jsx("div", {
|
|
14048
14017
|
className: classes.containerItem,
|
|
14049
14018
|
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$j({
|
|
14050
|
-
selectedDate:
|
|
14019
|
+
selectedDate: value === null || value === void 0 ? void 0 : value.from,
|
|
14051
14020
|
maxDate: value === null || value === void 0 ? void 0 : value.to,
|
|
14052
14021
|
label: translates.from,
|
|
14053
14022
|
months: translates.months,
|
|
@@ -14055,16 +14024,15 @@ var FilterWithDates = function(param) {
|
|
|
14055
14024
|
onChangeDate: handleChangeFrom,
|
|
14056
14025
|
leftPosition: -20,
|
|
14057
14026
|
topPosition,
|
|
14058
|
-
isNeedClearSelectedDate,
|
|
14059
14027
|
border: "bottom",
|
|
14060
|
-
testId:
|
|
14028
|
+
testId: getTestId(testId, "from"),
|
|
14061
14029
|
isClearable
|
|
14062
14030
|
}, startPickerProps))
|
|
14063
14031
|
}),
|
|
14064
14032
|
/* @__PURE__ */ jsx("div", {
|
|
14065
14033
|
className: classes.containerItem,
|
|
14066
14034
|
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$j({
|
|
14067
|
-
selectedDate:
|
|
14035
|
+
selectedDate: value === null || value === void 0 ? void 0 : value.to,
|
|
14068
14036
|
label: translates.to,
|
|
14069
14037
|
months: translates.months,
|
|
14070
14038
|
minDate: value === null || value === void 0 ? void 0 : value.from,
|
|
@@ -14072,9 +14040,8 @@ var FilterWithDates = function(param) {
|
|
|
14072
14040
|
onChangeDate: handleChangeTo,
|
|
14073
14041
|
topPosition,
|
|
14074
14042
|
leftPosition: -170,
|
|
14075
|
-
isNeedClearSelectedDate,
|
|
14076
14043
|
border: "bottom",
|
|
14077
|
-
testId:
|
|
14044
|
+
testId: getTestId(testId, "to"),
|
|
14078
14045
|
isClearable
|
|
14079
14046
|
}, endPickerProps))
|
|
14080
14047
|
})
|
|
@@ -14088,7 +14055,7 @@ var FilterWithDates = function(param) {
|
|
|
14088
14055
|
onClick: handleClear,
|
|
14089
14056
|
size: "s",
|
|
14090
14057
|
view: "text",
|
|
14091
|
-
testId:
|
|
14058
|
+
testId: getTestId(testId, "clear-button"),
|
|
14092
14059
|
isFullWidth: true,
|
|
14093
14060
|
tweakStyles: tweakClearButtonStyles,
|
|
14094
14061
|
children: translates.clear
|
|
@@ -28058,6 +28025,8 @@ export {
|
|
|
28058
28025
|
DateInput,
|
|
28059
28026
|
DatePicker,
|
|
28060
28027
|
Description,
|
|
28028
|
+
EMPTY_DATE_INPUT_VALUE,
|
|
28029
|
+
EMPTY_DATE_RANGE_INPUT_VALUE,
|
|
28061
28030
|
FilterInterval,
|
|
28062
28031
|
FilterLocales,
|
|
28063
28032
|
FilterMultiSelect,
|
|
@@ -28122,6 +28091,7 @@ export {
|
|
|
28122
28091
|
hasExactParent,
|
|
28123
28092
|
isElementOffScreen,
|
|
28124
28093
|
isElementOneOfParents,
|
|
28094
|
+
isEmpty,
|
|
28125
28095
|
isInt,
|
|
28126
28096
|
isNotEmpty,
|
|
28127
28097
|
isSpaceChar,
|