@true-engineering/true-react-common-ui-kit 1.12.1 → 2.0.0
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 +389 -425
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +389 -425
- 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 +91 -91
- 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.stories.tsx +86 -86
- 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 +630 -630
- 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");
|
|
@@ -9016,20 +9009,13 @@ var styles$s = {
|
|
|
9016
9009
|
}
|
|
9017
9010
|
};
|
|
9018
9011
|
var DatePickerHeader = function(param) {
|
|
9019
|
-
var date = param.date,
|
|
9012
|
+
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
9013
|
var _useTheme = useTheme("DatePickerHeader", styles$s), classes = _useTheme.classes, componentStyles = _useTheme.componentStyles;
|
|
9021
9014
|
var years = useMemo(function() {
|
|
9022
9015
|
return Array.from(Array(41)).map(function(_, i) {
|
|
9023
9016
|
return getYear(new Date()) - 30 + i;
|
|
9024
9017
|
});
|
|
9025
9018
|
}, []);
|
|
9026
|
-
var getMonthNumber = useCallback(function(month) {
|
|
9027
|
-
return months.findIndex(function(m) {
|
|
9028
|
-
return m === month;
|
|
9029
|
-
});
|
|
9030
|
-
}, [
|
|
9031
|
-
months
|
|
9032
|
-
]);
|
|
9033
9019
|
return /* @__PURE__ */ jsxs("div", {
|
|
9034
9020
|
className: classes.header,
|
|
9035
9021
|
children: [
|
|
@@ -9045,11 +9031,11 @@ var DatePickerHeader = function(param) {
|
|
|
9045
9031
|
children: /* @__PURE__ */ jsx(Select, {
|
|
9046
9032
|
value: months[getMonth(date)],
|
|
9047
9033
|
options: months,
|
|
9048
|
-
|
|
9049
|
-
return changeMonth(getMonthNumber(value));
|
|
9050
|
-
},
|
|
9034
|
+
dropdownIcon: "chevron-down-small",
|
|
9051
9035
|
tweakStyles: componentStyles.tweakSelect,
|
|
9052
|
-
|
|
9036
|
+
onChange: function(value) {
|
|
9037
|
+
return changeMonth(months.indexOf(value));
|
|
9038
|
+
}
|
|
9053
9039
|
})
|
|
9054
9040
|
})
|
|
9055
9041
|
]
|
|
@@ -9066,11 +9052,11 @@ var DatePickerHeader = function(param) {
|
|
|
9066
9052
|
children: /* @__PURE__ */ jsx(Select, {
|
|
9067
9053
|
value: getYear(date),
|
|
9068
9054
|
options: years,
|
|
9069
|
-
|
|
9070
|
-
changeYear(value);
|
|
9071
|
-
},
|
|
9055
|
+
dropdownIcon: "chevron-down-small",
|
|
9072
9056
|
tweakStyles: componentStyles.tweakSelect,
|
|
9073
|
-
|
|
9057
|
+
onChange: function(value) {
|
|
9058
|
+
return changeYear(value);
|
|
9059
|
+
}
|
|
9074
9060
|
})
|
|
9075
9061
|
})
|
|
9076
9062
|
]
|
|
@@ -9079,19 +9065,19 @@ var DatePickerHeader = function(param) {
|
|
|
9079
9065
|
className: classes.buttons,
|
|
9080
9066
|
children: [
|
|
9081
9067
|
/* @__PURE__ */ jsx("button", {
|
|
9082
|
-
onClick: decreaseMonth,
|
|
9083
|
-
disabled: isPrevMonthButtonDisabled,
|
|
9084
|
-
className: classes.btn,
|
|
9085
9068
|
type: "button",
|
|
9069
|
+
className: classes.btn,
|
|
9070
|
+
disabled: prevMonthButtonDisabled,
|
|
9071
|
+
onClick: decreaseMonth,
|
|
9086
9072
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
9087
9073
|
type: "chevron-left"
|
|
9088
9074
|
})
|
|
9089
9075
|
}),
|
|
9090
9076
|
/* @__PURE__ */ jsx("button", {
|
|
9091
|
-
onClick: increaseMonth,
|
|
9092
|
-
disabled: isNextMonthButtonDisabled,
|
|
9093
|
-
className: classes.btn,
|
|
9094
9077
|
type: "button",
|
|
9078
|
+
className: classes.btn,
|
|
9079
|
+
disabled: nextMonthButtonDisabled,
|
|
9080
|
+
onClick: increaseMonth,
|
|
9095
9081
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
9096
9082
|
type: "chevron-right"
|
|
9097
9083
|
})
|
|
@@ -9101,43 +9087,38 @@ var DatePickerHeader = function(param) {
|
|
|
9101
9087
|
]
|
|
9102
9088
|
});
|
|
9103
9089
|
};
|
|
9090
|
+
var getDateFormatter = function(dateFormat) {
|
|
9091
|
+
return function(date) {
|
|
9092
|
+
return isNotEmpty(date) ? format$1(date, dateFormat) : "";
|
|
9093
|
+
};
|
|
9094
|
+
};
|
|
9095
|
+
var getDateValueParser = function(dateFormat) {
|
|
9096
|
+
return function(value) {
|
|
9097
|
+
var inputValue = value === EMPTY_DATE_INPUT_VALUE ? "" : value;
|
|
9098
|
+
return isStringNotEmpty(inputValue) ? parse(value, dateFormat, new Date()) : null;
|
|
9099
|
+
};
|
|
9100
|
+
};
|
|
9101
|
+
var areDatesEquals = function(date1, date2) {
|
|
9102
|
+
return isEmpty(date1) && isEmpty(date2) || isNotEmpty(date1) && isNotEmpty(date2) && isSameDay(date1, date2);
|
|
9103
|
+
};
|
|
9104
|
+
var DEFAULT_DATE_FORMAT$2 = "dd.MM.yyyy";
|
|
9104
9105
|
var styles$r = {
|
|
9105
9106
|
root: {
|
|
9106
9107
|
width: "100%",
|
|
9107
9108
|
height: "100%"
|
|
9108
9109
|
},
|
|
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
|
-
},
|
|
9110
|
+
day: {},
|
|
9111
|
+
datepicker: {},
|
|
9131
9112
|
popper: {
|
|
9132
9113
|
zIndex: 10,
|
|
9133
|
-
marginLeft: function(param) {
|
|
9134
|
-
var leftPosition = param.leftPosition;
|
|
9135
|
-
return leftPosition;
|
|
9136
|
-
},
|
|
9137
9114
|
marginTop: function(param) {
|
|
9138
9115
|
var topPosition = param.topPosition;
|
|
9139
9116
|
return topPosition;
|
|
9140
9117
|
},
|
|
9118
|
+
marginLeft: function(param) {
|
|
9119
|
+
var leftPosition = param.leftPosition;
|
|
9120
|
+
return leftPosition;
|
|
9121
|
+
},
|
|
9141
9122
|
'&[data-placement^="bottom"]': {
|
|
9142
9123
|
paddingTop: 6
|
|
9143
9124
|
},
|
|
@@ -9150,7 +9131,8 @@ var styles$r = {
|
|
|
9150
9131
|
'&[data-placement^="right"]': {
|
|
9151
9132
|
paddingLeft: 6
|
|
9152
9133
|
}
|
|
9153
|
-
}
|
|
9134
|
+
},
|
|
9135
|
+
tweakDateInput: {}
|
|
9154
9136
|
};
|
|
9155
9137
|
function _array_like_to_array$i(arr, len) {
|
|
9156
9138
|
if (len == null || len > arr.length)
|
|
@@ -9294,8 +9276,8 @@ function _unsupported_iterable_to_array$i(o, minLen) {
|
|
|
9294
9276
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
9295
9277
|
return _array_like_to_array$i(o, minLen);
|
|
9296
9278
|
}
|
|
9297
|
-
var
|
|
9298
|
-
var
|
|
9279
|
+
var _ReactDatePicker_default;
|
|
9280
|
+
var DatePickerComponent = (_ReactDatePicker_default = ReactDatePicker.default) !== null && _ReactDatePicker_default !== void 0 ? _ReactDatePicker_default : ReactDatePicker;
|
|
9299
9281
|
var PopperContainer = function(param) {
|
|
9300
9282
|
var children = param.children;
|
|
9301
9283
|
return /* @__PURE__ */ jsx(Portal, {
|
|
@@ -9303,257 +9285,240 @@ var PopperContainer = function(param) {
|
|
|
9303
9285
|
children
|
|
9304
9286
|
});
|
|
9305
9287
|
};
|
|
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, [
|
|
9288
|
+
var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
9289
|
+
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
9290
|
"data",
|
|
9310
|
-
"tweakStyles",
|
|
9311
9291
|
"selectedDate",
|
|
9312
9292
|
"minDate",
|
|
9313
9293
|
"maxDate",
|
|
9314
9294
|
"endDate",
|
|
9315
9295
|
"startDate",
|
|
9316
|
-
"size",
|
|
9317
|
-
"isRange",
|
|
9318
9296
|
"locale",
|
|
9319
9297
|
"months",
|
|
9320
|
-
"calendarStartDay",
|
|
9321
|
-
"leftPosition",
|
|
9322
9298
|
"topPosition",
|
|
9323
|
-
"
|
|
9324
|
-
"
|
|
9299
|
+
"leftPosition",
|
|
9300
|
+
"calendarStartDay",
|
|
9325
9301
|
"dateFormat",
|
|
9326
9302
|
"monthsShown",
|
|
9327
9303
|
"placeholder",
|
|
9328
|
-
"
|
|
9304
|
+
"isRange",
|
|
9305
|
+
"isInline",
|
|
9306
|
+
"isDisabled",
|
|
9307
|
+
"isClearable",
|
|
9308
|
+
"focusSelectedMonth",
|
|
9329
9309
|
"disabledKeyboardNavigation",
|
|
9330
9310
|
"shouldRenderPopperInBody",
|
|
9331
|
-
"
|
|
9311
|
+
"allowSameDay",
|
|
9312
|
+
"shouldCloseOnSelect",
|
|
9332
9313
|
"showPreviousMonths",
|
|
9314
|
+
"preventOpenOnFocus",
|
|
9315
|
+
"popperModifiers",
|
|
9333
9316
|
"popperPlacement",
|
|
9317
|
+
"todayButton",
|
|
9318
|
+
"calendarContainer",
|
|
9319
|
+
"dayClassName",
|
|
9320
|
+
"customInput",
|
|
9321
|
+
"customInputRef",
|
|
9322
|
+
"renderCustomHeader",
|
|
9323
|
+
"filterDate",
|
|
9324
|
+
"onYearChange",
|
|
9325
|
+
"onMonthChange",
|
|
9326
|
+
"onCalendarOpen",
|
|
9327
|
+
"onCalendarClose",
|
|
9334
9328
|
"onChangeDate",
|
|
9335
9329
|
"onChangeRange",
|
|
9336
|
-
"
|
|
9337
|
-
"
|
|
9330
|
+
"onBlur",
|
|
9331
|
+
"onFocus",
|
|
9332
|
+
"onKeyDown",
|
|
9333
|
+
"tweakStyles"
|
|
9338
9334
|
]);
|
|
9339
|
-
var
|
|
9335
|
+
var _useTheme = useTheme("DatePicker", styles$r, tweakStyles, {
|
|
9340
9336
|
leftPosition,
|
|
9341
9337
|
topPosition
|
|
9342
|
-
}).classes;
|
|
9338
|
+
}), classes = _useTheme.classes, componentStyles = _useTheme.componentStyles;
|
|
9339
|
+
var tweakDateInputStyles = useTweakStyles(componentStyles, tweakStyles, "tweakDateInput");
|
|
9340
|
+
var _useMemo = useMemo(function() {
|
|
9341
|
+
return {
|
|
9342
|
+
formatDate: getDateFormatter(dateFormat),
|
|
9343
|
+
parseDateValue: getDateValueParser(dateFormat)
|
|
9344
|
+
};
|
|
9345
|
+
}, [
|
|
9346
|
+
dateFormat
|
|
9347
|
+
]), formatDate = _useMemo.formatDate, parseDateValue = _useMemo.parseDateValue;
|
|
9343
9348
|
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),
|
|
9349
|
+
var _useState1 = _sliced_to_array$i(useState(formatDate(selectedDate)), 2), dateValue = _useState1[0], setDateValue = _useState1[1];
|
|
9350
|
+
var _useState2 = _sliced_to_array$i(useState(startDate), 2), start2 = _useState2[0], setStart = _useState2[1];
|
|
9351
|
+
var _useState3 = _sliced_to_array$i(useState(formatDate(startDate)), 2), startDateValue = _useState3[0], setStartDateValue = _useState3[1];
|
|
9347
9352
|
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
|
-
|
|
9353
|
+
var _useState5 = _sliced_to_array$i(useState(formatDate(endDate)), 2), endDateValue = _useState5[0], setEndDateValue = _useState5[1];
|
|
9354
|
+
var hasDateInputValue = isRange ? isStringNotEmpty(startDateValue) || isStringNotEmpty(endDateValue) : isStringNotEmpty(dateValue);
|
|
9355
|
+
var dateInputProps = _object_spread$t(_object_spread_props$n(_object_spread$t({}, inputProps), {
|
|
9356
|
+
isRange,
|
|
9357
|
+
isDisabled,
|
|
9358
|
+
isClearable,
|
|
9359
|
+
isActive: isOpen,
|
|
9360
|
+
iconType: isClearable && hasDateInputValue ? void 0 : "calendar",
|
|
9361
|
+
tweakStyles: tweakDateInputStyles
|
|
9362
|
+
}), isRange ? {
|
|
9363
|
+
startDate: startDateValue,
|
|
9364
|
+
endDate: endDateValue
|
|
9365
|
+
} : {
|
|
9366
|
+
date: dateValue
|
|
9367
|
+
});
|
|
9368
|
+
var handleChangeDate = function(value, event) {
|
|
9369
|
+
onChangeDate === null || onChangeDate === void 0 ? void 0 : onChangeDate(value, event);
|
|
9352
9370
|
};
|
|
9353
|
-
var
|
|
9354
|
-
return
|
|
9371
|
+
var isDateInRange = function(date) {
|
|
9372
|
+
return (isEmpty(minDate) || isAfter(date, minDate)) && (isEmpty(maxDate) || isBefore(date, maxDate));
|
|
9355
9373
|
};
|
|
9356
|
-
var
|
|
9357
|
-
if (
|
|
9358
|
-
|
|
9359
|
-
|
|
9360
|
-
|
|
9361
|
-
|
|
9362
|
-
|
|
9363
|
-
}
|
|
9374
|
+
var handleChangeRange = function(value, event) {
|
|
9375
|
+
if (allowSameDay || !areDatesEquals(value === null || value === void 0 ? void 0 : value[0], startDate) || !areDatesEquals(value === null || value === void 0 ? void 0 : value[1], endDate)) {
|
|
9376
|
+
var _value_;
|
|
9377
|
+
setStart((_value_ = value === null || value === void 0 ? void 0 : value[0]) !== null && _value_ !== void 0 ? _value_ : null);
|
|
9378
|
+
var _value_1;
|
|
9379
|
+
setEnd((_value_1 = value === null || value === void 0 ? void 0 : value[1]) !== null && _value_1 !== void 0 ? _value_1 : null);
|
|
9380
|
+
onChangeRange === null || onChangeRange === void 0 ? void 0 : onChangeRange(value, event);
|
|
9364
9381
|
}
|
|
9365
|
-
|
|
9366
|
-
|
|
9367
|
-
|
|
9368
|
-
|
|
9369
|
-
|
|
9370
|
-
|
|
9371
|
-
|
|
9372
|
-
|
|
9373
|
-
|
|
9374
|
-
|
|
9375
|
-
|
|
9376
|
-
|
|
9377
|
-
|
|
9378
|
-
|
|
9379
|
-
|
|
9380
|
-
|
|
9381
|
-
}
|
|
9382
|
-
|
|
9383
|
-
|
|
9384
|
-
|
|
9385
|
-
|
|
9386
|
-
|
|
9387
|
-
|
|
9388
|
-
|
|
9382
|
+
};
|
|
9383
|
+
var handleChangeDateRangeInput = function(value) {
|
|
9384
|
+
var newStartDateValue = value.slice(0, 10);
|
|
9385
|
+
var newStart = parseDateValue(newStartDateValue);
|
|
9386
|
+
var newEndDateValue = value.slice(13);
|
|
9387
|
+
var newEnd = parseDateValue(newEndDateValue);
|
|
9388
|
+
if (isNotEmpty(newStart) && !isValid(newStart) || isNotEmpty(newStart) && !isDateInRange(newStart)) {
|
|
9389
|
+
newStart = start2;
|
|
9390
|
+
}
|
|
9391
|
+
if (isNotEmpty(newEnd) && !isValid(newEnd) || isNotEmpty(newEnd) && !isDateInRange(newEnd)) {
|
|
9392
|
+
newEnd = end2;
|
|
9393
|
+
}
|
|
9394
|
+
if (isEmpty(newStart) && isValid(newEnd) || // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
9395
|
+
isValid(newStart) && isValid(newEnd) && isAfter(newStart, newEnd)) {
|
|
9396
|
+
newStart = newEnd;
|
|
9397
|
+
newEnd = null;
|
|
9398
|
+
}
|
|
9399
|
+
setStartDateValue(newStartDateValue);
|
|
9400
|
+
setStart(newStart);
|
|
9401
|
+
setEndDateValue(newEndDateValue);
|
|
9402
|
+
setEnd(newEnd);
|
|
9403
|
+
};
|
|
9404
|
+
var handleDateInputBlur = function(event) {
|
|
9405
|
+
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
9406
|
+
setDateValue(formatDate(selectedDate));
|
|
9407
|
+
};
|
|
9408
|
+
var setDateRangeValues = function() {
|
|
9409
|
+
var startValue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null, endValue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
9410
|
+
var convertedStartDate = formatDate(startValue);
|
|
9411
|
+
var convertedEndDate = formatDate(endValue);
|
|
9412
|
+
if (convertedStartDate === "" && convertedEndDate !== "") {
|
|
9413
|
+
convertedStartDate = EMPTY_DATE_INPUT_VALUE;
|
|
9414
|
+
}
|
|
9415
|
+
setStart(startValue);
|
|
9416
|
+
setStartDateValue(convertedStartDate);
|
|
9417
|
+
setEnd(endValue);
|
|
9418
|
+
setEndDateValue(convertedEndDate);
|
|
9419
|
+
};
|
|
9420
|
+
var handleDateRangeInputBlur = function(event) {
|
|
9421
|
+
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
9422
|
+
handleChangeRange([
|
|
9423
|
+
start2,
|
|
9424
|
+
end2
|
|
9425
|
+
], event);
|
|
9426
|
+
setDateRangeValues(start2, end2);
|
|
9427
|
+
};
|
|
9428
|
+
var handleOpenCalendar = function() {
|
|
9429
|
+
setIsOpen(true);
|
|
9430
|
+
onCalendarOpen === null || onCalendarOpen === void 0 ? void 0 : onCalendarOpen();
|
|
9431
|
+
};
|
|
9432
|
+
var handleCloseCalendar = function() {
|
|
9433
|
+
setIsOpen(false);
|
|
9434
|
+
if (isRange) {
|
|
9435
|
+
handleChangeRange([
|
|
9436
|
+
start2,
|
|
9437
|
+
end2
|
|
9389
9438
|
]);
|
|
9439
|
+
setDateRangeValues(start2, end2);
|
|
9440
|
+
} else {
|
|
9441
|
+
setDateValue(formatDate(selectedDate));
|
|
9390
9442
|
}
|
|
9391
|
-
|
|
9392
|
-
|
|
9393
|
-
]);
|
|
9394
|
-
useEffect(function() {
|
|
9395
|
-
setDateValue("");
|
|
9396
|
-
}, [
|
|
9397
|
-
isNeedClearSelectedDate
|
|
9398
|
-
]);
|
|
9443
|
+
onCalendarClose === null || onCalendarClose === void 0 ? void 0 : onCalendarClose();
|
|
9444
|
+
};
|
|
9399
9445
|
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) : "");
|
|
9446
|
+
setDateValue(formatDate(selectedDate));
|
|
9447
|
+
setDateRangeValues(startDate, endDate);
|
|
9406
9448
|
}, [
|
|
9407
9449
|
selectedDate,
|
|
9408
9450
|
startDate,
|
|
9409
9451
|
endDate
|
|
9410
9452
|
]);
|
|
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
9453
|
return /* @__PURE__ */ jsx("div", _object_spread_props$n(_object_spread$t({
|
|
9534
9454
|
className: classes.root
|
|
9535
9455
|
}, addDataAttributes(data)), {
|
|
9536
|
-
children: /* @__PURE__ */ jsx(
|
|
9537
|
-
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
|
|
9542
|
-
|
|
9543
|
-
|
|
9544
|
-
|
|
9545
|
-
|
|
9546
|
-
|
|
9547
|
-
|
|
9548
|
-
|
|
9549
|
-
|
|
9550
|
-
|
|
9456
|
+
children: /* @__PURE__ */ jsx(DatePickerComponent, _object_spread$t({
|
|
9457
|
+
ref,
|
|
9458
|
+
minDate,
|
|
9459
|
+
maxDate,
|
|
9460
|
+
locale: locale2,
|
|
9461
|
+
dateFormat,
|
|
9462
|
+
placeholderText: placeholder,
|
|
9463
|
+
calendarStartDay,
|
|
9464
|
+
inline: isInline,
|
|
9465
|
+
disabled: isDisabled,
|
|
9466
|
+
showPreviousMonths,
|
|
9467
|
+
focusSelectedMonth,
|
|
9468
|
+
monthsShown,
|
|
9469
|
+
allowSameDay,
|
|
9470
|
+
showPopperArrow: false,
|
|
9471
|
+
popperClassName: classes.popper,
|
|
9472
|
+
calendarClassName: classes.datepicker,
|
|
9473
|
+
dayClassName: function(v) {
|
|
9474
|
+
return clsx(classes.day, dayClassName === null || dayClassName === void 0 ? void 0 : dayClassName(v));
|
|
9475
|
+
},
|
|
9476
|
+
disabledKeyboardNavigation,
|
|
9477
|
+
popperContainer: shouldRenderPopperInBody ? PopperContainer : void 0,
|
|
9478
|
+
popperModifiers,
|
|
9479
|
+
popperPlacement,
|
|
9480
|
+
selectsRange: isRange,
|
|
9481
|
+
preventOpenOnFocus,
|
|
9482
|
+
shouldCloseOnSelect,
|
|
9483
|
+
customInputRef,
|
|
9484
|
+
customInput: /* @__PURE__ */ jsx(CustomInput, _object_spread$t({}, dateInputProps)),
|
|
9485
|
+
renderCustomHeader: renderCustomHeader !== null && renderCustomHeader !== void 0 ? renderCustomHeader : function(baseProps) {
|
|
9486
|
+
return /* @__PURE__ */ jsx(DatePickerHeader, _object_spread_props$n(_object_spread$t({}, baseProps), {
|
|
9551
9487
|
months
|
|
9552
|
-
});
|
|
9488
|
+
}));
|
|
9489
|
+
},
|
|
9490
|
+
todayButton,
|
|
9491
|
+
calendarContainer,
|
|
9492
|
+
filterDate,
|
|
9493
|
+
onYearChange,
|
|
9494
|
+
onMonthChange,
|
|
9495
|
+
onFocus,
|
|
9496
|
+
onKeyDown,
|
|
9497
|
+
onCalendarOpen: handleOpenCalendar,
|
|
9498
|
+
onCalendarClose: handleCloseCalendar,
|
|
9499
|
+
onChangeRaw: function(_, value) {
|
|
9500
|
+
if (value === void 0) {
|
|
9501
|
+
return;
|
|
9502
|
+
}
|
|
9503
|
+
if (isRange) {
|
|
9504
|
+
handleChangeDateRangeInput(value);
|
|
9505
|
+
} else {
|
|
9506
|
+
setDateValue(value);
|
|
9507
|
+
}
|
|
9553
9508
|
}
|
|
9509
|
+
}, isRange ? {
|
|
9510
|
+
startDate: start2,
|
|
9511
|
+
endDate: end2,
|
|
9512
|
+
selected: start2,
|
|
9513
|
+
onBlur: handleDateRangeInputBlur,
|
|
9514
|
+
onChange: handleChangeRange
|
|
9515
|
+
} : {
|
|
9516
|
+
selected: selectedDate,
|
|
9517
|
+
onBlur: handleDateInputBlur,
|
|
9518
|
+
onChange: handleChangeDate
|
|
9554
9519
|
}))
|
|
9555
9520
|
}));
|
|
9556
|
-
};
|
|
9521
|
+
});
|
|
9557
9522
|
var styles$q = {
|
|
9558
9523
|
root: {},
|
|
9559
9524
|
button: {
|
|
@@ -13982,26 +13947,24 @@ var FilterWithDates = function(param) {
|
|
|
13982
13947
|
localeKey,
|
|
13983
13948
|
locale2
|
|
13984
13949
|
]);
|
|
13985
|
-
var _useState2 = _sliced_to_array$c(useState(false), 2), isNeedClearSelectedDate = _useState2[0], setNeedClearSelectedDate = _useState2[1];
|
|
13986
13950
|
var topPosition = !isClearable && onStartBtnSubmit === void 0 ? 28 : 60;
|
|
13987
13951
|
var handleClear = function() {
|
|
13988
13952
|
onEndBtnSubmit();
|
|
13989
|
-
setNeedClearSelectedDate(!isNeedClearSelectedDate);
|
|
13990
13953
|
};
|
|
13991
13954
|
var ref = useRef(null);
|
|
13992
13955
|
var isOpenCalendar = isOpenFrom || isOpenTo;
|
|
13993
13956
|
var handleFromSelected = function(val) {
|
|
13994
|
-
var
|
|
13957
|
+
var _value_to;
|
|
13995
13958
|
onChange({
|
|
13996
13959
|
from: val,
|
|
13997
|
-
to: (
|
|
13960
|
+
to: (_value_to = value === null || value === void 0 ? void 0 : value.to) !== null && _value_to !== void 0 ? _value_to : null
|
|
13998
13961
|
});
|
|
13999
13962
|
setOpenFrom(false);
|
|
14000
13963
|
};
|
|
14001
13964
|
var handleToSelected = function(val) {
|
|
14002
|
-
var
|
|
13965
|
+
var _value_from;
|
|
14003
13966
|
onChange({
|
|
14004
|
-
from: (
|
|
13967
|
+
from: (_value_from = value === null || value === void 0 ? void 0 : value.from) !== null && _value_from !== void 0 ? _value_from : null,
|
|
14005
13968
|
to: val
|
|
14006
13969
|
});
|
|
14007
13970
|
setOpenTo(false);
|
|
@@ -14013,10 +13976,10 @@ var FilterWithDates = function(param) {
|
|
|
14013
13976
|
to: val
|
|
14014
13977
|
});
|
|
14015
13978
|
} else {
|
|
14016
|
-
var
|
|
13979
|
+
var _value_to;
|
|
14017
13980
|
onChange({
|
|
14018
13981
|
from: val,
|
|
14019
|
-
to: (
|
|
13982
|
+
to: (_value_to = value === null || value === void 0 ? void 0 : value.to) !== null && _value_to !== void 0 ? _value_to : null
|
|
14020
13983
|
});
|
|
14021
13984
|
}
|
|
14022
13985
|
};
|
|
@@ -14027,16 +13990,16 @@ var FilterWithDates = function(param) {
|
|
|
14027
13990
|
to: value.from
|
|
14028
13991
|
});
|
|
14029
13992
|
} else {
|
|
14030
|
-
var
|
|
13993
|
+
var _value_from;
|
|
14031
13994
|
onChange({
|
|
14032
|
-
from: (
|
|
13995
|
+
from: (_value_from = value === null || value === void 0 ? void 0 : value.from) !== null && _value_from !== void 0 ? _value_from : null,
|
|
14033
13996
|
to: val
|
|
14034
13997
|
});
|
|
14035
13998
|
}
|
|
14036
13999
|
};
|
|
14037
14000
|
var tweakClearButtonStyles = useTweakStyles(componentStyles, tweakStyles, "tweakClearButton");
|
|
14038
14001
|
var tweakBackButtonStyles = useTweakStyles(componentStyles, tweakStyles, "tweakBackButton");
|
|
14039
|
-
var
|
|
14002
|
+
var _ref;
|
|
14040
14003
|
return /* @__PURE__ */ jsxs("div", _object_spread_props$h(_object_spread$j({
|
|
14041
14004
|
className: classes.root
|
|
14042
14005
|
}, addDataAttributes(data)), {
|
|
@@ -14047,7 +14010,7 @@ var FilterWithDates = function(param) {
|
|
|
14047
14010
|
/* @__PURE__ */ jsx("div", {
|
|
14048
14011
|
className: classes.containerItem,
|
|
14049
14012
|
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$j({
|
|
14050
|
-
selectedDate:
|
|
14013
|
+
selectedDate: value === null || value === void 0 ? void 0 : value.from,
|
|
14051
14014
|
maxDate: value === null || value === void 0 ? void 0 : value.to,
|
|
14052
14015
|
label: translates.from,
|
|
14053
14016
|
months: translates.months,
|
|
@@ -14055,16 +14018,15 @@ var FilterWithDates = function(param) {
|
|
|
14055
14018
|
onChangeDate: handleChangeFrom,
|
|
14056
14019
|
leftPosition: -20,
|
|
14057
14020
|
topPosition,
|
|
14058
|
-
isNeedClearSelectedDate,
|
|
14059
14021
|
border: "bottom",
|
|
14060
|
-
testId:
|
|
14022
|
+
testId: getTestId(testId, "from"),
|
|
14061
14023
|
isClearable
|
|
14062
14024
|
}, startPickerProps))
|
|
14063
14025
|
}),
|
|
14064
14026
|
/* @__PURE__ */ jsx("div", {
|
|
14065
14027
|
className: classes.containerItem,
|
|
14066
14028
|
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$j({
|
|
14067
|
-
selectedDate:
|
|
14029
|
+
selectedDate: value === null || value === void 0 ? void 0 : value.to,
|
|
14068
14030
|
label: translates.to,
|
|
14069
14031
|
months: translates.months,
|
|
14070
14032
|
minDate: value === null || value === void 0 ? void 0 : value.from,
|
|
@@ -14072,9 +14034,8 @@ var FilterWithDates = function(param) {
|
|
|
14072
14034
|
onChangeDate: handleChangeTo,
|
|
14073
14035
|
topPosition,
|
|
14074
14036
|
leftPosition: -170,
|
|
14075
|
-
isNeedClearSelectedDate,
|
|
14076
14037
|
border: "bottom",
|
|
14077
|
-
testId:
|
|
14038
|
+
testId: getTestId(testId, "to"),
|
|
14078
14039
|
isClearable
|
|
14079
14040
|
}, endPickerProps))
|
|
14080
14041
|
})
|
|
@@ -14088,7 +14049,7 @@ var FilterWithDates = function(param) {
|
|
|
14088
14049
|
onClick: handleClear,
|
|
14089
14050
|
size: "s",
|
|
14090
14051
|
view: "text",
|
|
14091
|
-
testId:
|
|
14052
|
+
testId: getTestId(testId, "clear-button"),
|
|
14092
14053
|
isFullWidth: true,
|
|
14093
14054
|
tweakStyles: tweakClearButtonStyles,
|
|
14094
14055
|
children: translates.clear
|
|
@@ -28058,6 +28019,8 @@ export {
|
|
|
28058
28019
|
DateInput,
|
|
28059
28020
|
DatePicker,
|
|
28060
28021
|
Description,
|
|
28022
|
+
EMPTY_DATE_INPUT_VALUE,
|
|
28023
|
+
EMPTY_DATE_RANGE_INPUT_VALUE,
|
|
28061
28024
|
FilterInterval,
|
|
28062
28025
|
FilterLocales,
|
|
28063
28026
|
FilterMultiSelect,
|
|
@@ -28122,6 +28085,7 @@ export {
|
|
|
28122
28085
|
hasExactParent,
|
|
28123
28086
|
isElementOffScreen,
|
|
28124
28087
|
isElementOneOfParents,
|
|
28088
|
+
isEmpty,
|
|
28125
28089
|
isInt,
|
|
28126
28090
|
isNotEmpty,
|
|
28127
28091
|
isSpaceChar,
|