@true-engineering/true-react-common-ui-kit 2.3.0 → 2.3.2
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/README.md +12 -0
- package/dist/components/DatePicker/DatePicker.d.ts +1 -1
- package/dist/components/FiltersPane/FilterSelect/FilterSelect.d.ts +1 -1
- package/dist/components/FiltersPane/FiltersPane.d.ts +1 -1
- package/dist/components/FlexibleTable/FlexibleTable.d.ts +1 -1
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/MultiSelectList/MultiSelectList.d.ts +1 -1
- package/dist/components/PhoneInput/PhoneInput.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/true-react-common-ui-kit.js +521 -521
- package/dist/true-react-common-ui-kit.umd.cjs +521 -521
- package/package.json +2 -2
- package/src/components/DateInput/DateInput.tsx +1 -1
- package/src/components/DatePicker/DatePicker.tsx +1 -1
- package/src/components/FiltersPane/FilterSelect/FilterSelect.tsx +1 -1
- package/src/components/FiltersPane/FiltersPane.tsx +1 -1
- package/src/components/FlexibleTable/FlexibleTable.tsx +1 -1
- package/src/components/Icon/Icon.tsx +1 -1
- package/src/components/Modal/Modal.tsx +1 -1
- package/src/components/MultiSelect/MultiSelect.tsx +1 -1
- package/src/components/MultiSelectList/MultiSelectList.tsx +1 -1
- package/src/components/PhoneInput/PhoneInput.tsx +1 -1
- package/src/components/Select/Select.tsx +1 -1
- package/src/components/ThemedPreloader/ThemedPreloader.tsx +1 -1
- package/src/helpers/deprecated.ts +2 -1
|
@@ -1435,7 +1435,7 @@ var getTestId = getTestId$1;
|
|
|
1435
1435
|
var isStringNotEmpty = isStringNotEmpty$1;
|
|
1436
1436
|
var isEmpty = isEmpty$1;
|
|
1437
1437
|
var isNotEmpty = function(val) {
|
|
1438
|
-
return isString(val) && isStringNotEmpty(val) || isNotEmpty(val);
|
|
1438
|
+
return isString(val) && isStringNotEmpty$1(val) || isNotEmpty$1(val);
|
|
1439
1439
|
};
|
|
1440
1440
|
var useIsMounted = function() {
|
|
1441
1441
|
var isMounted = useRef(false);
|
|
@@ -4096,12 +4096,6 @@ var ComplexIconBoilerplate = function(param) {
|
|
|
4096
4096
|
}
|
|
4097
4097
|
});
|
|
4098
4098
|
};
|
|
4099
|
-
var styles$J = {
|
|
4100
|
-
root: {
|
|
4101
|
-
display: "flex",
|
|
4102
|
-
alignItems: "center"
|
|
4103
|
-
}
|
|
4104
|
-
};
|
|
4105
4099
|
var checkIcons = function(ico) {
|
|
4106
4100
|
return ico;
|
|
4107
4101
|
};
|
|
@@ -5017,6 +5011,12 @@ var IconBoilerplate = function(param) {
|
|
|
5017
5011
|
]
|
|
5018
5012
|
});
|
|
5019
5013
|
};
|
|
5014
|
+
var styles$J = {
|
|
5015
|
+
root: {
|
|
5016
|
+
display: "flex",
|
|
5017
|
+
alignItems: "center"
|
|
5018
|
+
}
|
|
5019
|
+
};
|
|
5020
5020
|
function _define_property$M(obj, key, value) {
|
|
5021
5021
|
if (key in obj) {
|
|
5022
5022
|
Object.defineProperty(obj, key, {
|
|
@@ -5610,18 +5610,6 @@ var AddButton = function(param) {
|
|
|
5610
5610
|
}));
|
|
5611
5611
|
};
|
|
5612
5612
|
var styles$F = {
|
|
5613
|
-
root: {
|
|
5614
|
-
display: "flex"
|
|
5615
|
-
},
|
|
5616
|
-
dots: {},
|
|
5617
|
-
default: {},
|
|
5618
|
-
logo: {},
|
|
5619
|
-
currentColor: {
|
|
5620
|
-
color: "currentColor"
|
|
5621
|
-
},
|
|
5622
|
-
tweakPreloaderComponent: {}
|
|
5623
|
-
};
|
|
5624
|
-
var styles$E = {
|
|
5625
5613
|
root: {
|
|
5626
5614
|
display: "flex",
|
|
5627
5615
|
gap: 4,
|
|
@@ -5666,7 +5654,7 @@ var styles$E = {
|
|
|
5666
5654
|
};
|
|
5667
5655
|
var DotsPreloader = function(param) {
|
|
5668
5656
|
var tweakStyles = param.tweakStyles;
|
|
5669
|
-
var classes = useTheme("DotsPreloader", styles$
|
|
5657
|
+
var classes = useTheme("DotsPreloader", styles$F, tweakStyles).classes;
|
|
5670
5658
|
return /* @__PURE__ */ jsx("div", {
|
|
5671
5659
|
className: classes.root,
|
|
5672
5660
|
children: /* @__PURE__ */ jsx("span", {
|
|
@@ -5730,7 +5718,7 @@ var DefaultPreloader = function() {
|
|
|
5730
5718
|
]
|
|
5731
5719
|
});
|
|
5732
5720
|
};
|
|
5733
|
-
var styles$
|
|
5721
|
+
var styles$E = {
|
|
5734
5722
|
root: {
|
|
5735
5723
|
display: "flex",
|
|
5736
5724
|
width: "100%",
|
|
@@ -5740,7 +5728,7 @@ var styles$D = {
|
|
|
5740
5728
|
var SvgPreloader = function(param) {
|
|
5741
5729
|
var _param_type = param.type, type = _param_type === void 0 ? "default" : _param_type, tweakStyles = param.tweakStyles;
|
|
5742
5730
|
var _theme_preloaders;
|
|
5743
|
-
var classes = useTheme("SvgPreloader", styles$
|
|
5731
|
+
var classes = useTheme("SvgPreloader", styles$E, tweakStyles).classes;
|
|
5744
5732
|
var theme = useContext(ThemeContext).theme;
|
|
5745
5733
|
var _theme_preloaders_type;
|
|
5746
5734
|
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;
|
|
@@ -5752,6 +5740,18 @@ var SvgPreloader = function(param) {
|
|
|
5752
5740
|
}
|
|
5753
5741
|
}) : /* @__PURE__ */ jsx(PreloaderIcon, {});
|
|
5754
5742
|
};
|
|
5743
|
+
var styles$D = {
|
|
5744
|
+
root: {
|
|
5745
|
+
display: "flex"
|
|
5746
|
+
},
|
|
5747
|
+
dots: {},
|
|
5748
|
+
default: {},
|
|
5749
|
+
logo: {},
|
|
5750
|
+
currentColor: {
|
|
5751
|
+
color: "currentColor"
|
|
5752
|
+
},
|
|
5753
|
+
tweakPreloaderComponent: {}
|
|
5754
|
+
};
|
|
5755
5755
|
function _define_property$H(obj, key, value) {
|
|
5756
5756
|
if (key in obj) {
|
|
5757
5757
|
Object.defineProperty(obj, key, {
|
|
@@ -5806,7 +5806,7 @@ function _object_spread_props$w(target, source) {
|
|
|
5806
5806
|
}
|
|
5807
5807
|
var ThemedPreloader = function(param) {
|
|
5808
5808
|
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;
|
|
5809
|
-
var _useTheme = useTheme("ThemedPreloader", styles$
|
|
5809
|
+
var _useTheme = useTheme("ThemedPreloader", styles$D, tweakStyles), classes = _useTheme.classes, componentStyles = _useTheme.componentStyles;
|
|
5810
5810
|
var preloaderComponentStyles = useTweakStyles(componentStyles, tweakStyles, "tweakPreloaderComponent");
|
|
5811
5811
|
return /* @__PURE__ */ jsx("div", _object_spread_props$w(_object_spread$F({
|
|
5812
5812
|
className: clsx(classes.root, classes[type], _define_property$H({}, classes.currentColor, useCurrentColor))
|
|
@@ -7232,6 +7232,8 @@ var Input = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
|
7232
7232
|
]
|
|
7233
7233
|
});
|
|
7234
7234
|
});
|
|
7235
|
+
var EMPTY_DATE_INPUT_VALUE = "__.__.____";
|
|
7236
|
+
var EMPTY_DATE_RANGE_INPUT_VALUE = "".concat(EMPTY_DATE_INPUT_VALUE, " - ").concat(EMPTY_DATE_INPUT_VALUE);
|
|
7235
7237
|
var styles$w = {
|
|
7236
7238
|
root: {
|
|
7237
7239
|
width: "100%",
|
|
@@ -7241,8 +7243,6 @@ var styles$w = {
|
|
|
7241
7243
|
},
|
|
7242
7244
|
tweakInput: {}
|
|
7243
7245
|
};
|
|
7244
|
-
var EMPTY_DATE_INPUT_VALUE = "__.__.____";
|
|
7245
|
-
var EMPTY_DATE_RANGE_INPUT_VALUE = "".concat(EMPTY_DATE_INPUT_VALUE, " - ").concat(EMPTY_DATE_INPUT_VALUE);
|
|
7246
7246
|
function _define_property$B(obj, key, value) {
|
|
7247
7247
|
if (key in obj) {
|
|
7248
7248
|
Object.defineProperty(obj, key, {
|
|
@@ -7378,40 +7378,8 @@ var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
7378
7378
|
}));
|
|
7379
7379
|
});
|
|
7380
7380
|
const reactDatepicker = "";
|
|
7381
|
-
var styles$v = {
|
|
7382
|
-
root: {
|
|
7383
|
-
width: "100%",
|
|
7384
|
-
height: "100%"
|
|
7385
|
-
},
|
|
7386
|
-
day: {},
|
|
7387
|
-
datepicker: {},
|
|
7388
|
-
popper: {
|
|
7389
|
-
zIndex: 10,
|
|
7390
|
-
marginTop: function(param) {
|
|
7391
|
-
var topPosition = param.topPosition;
|
|
7392
|
-
return topPosition;
|
|
7393
|
-
},
|
|
7394
|
-
marginLeft: function(param) {
|
|
7395
|
-
var leftPosition = param.leftPosition;
|
|
7396
|
-
return leftPosition;
|
|
7397
|
-
},
|
|
7398
|
-
'&[data-placement^="bottom"]': {
|
|
7399
|
-
paddingTop: 6
|
|
7400
|
-
},
|
|
7401
|
-
'&[data-placement^="top"]': {
|
|
7402
|
-
paddingBottom: 6
|
|
7403
|
-
},
|
|
7404
|
-
'&[data-placement^="left"]': {
|
|
7405
|
-
paddingRight: 6
|
|
7406
|
-
},
|
|
7407
|
-
'&[data-placement^="right"]': {
|
|
7408
|
-
paddingLeft: 6
|
|
7409
|
-
}
|
|
7410
|
-
},
|
|
7411
|
-
tweakDateInput: {}
|
|
7412
|
-
};
|
|
7413
7381
|
var LEFT_PADDING = 44;
|
|
7414
|
-
var styles$
|
|
7382
|
+
var styles$v = {
|
|
7415
7383
|
root: {
|
|
7416
7384
|
position: "relative"
|
|
7417
7385
|
},
|
|
@@ -7539,7 +7507,7 @@ var SearchInput = function(_param) {
|
|
|
7539
7507
|
"testId",
|
|
7540
7508
|
"data"
|
|
7541
7509
|
]);
|
|
7542
|
-
var _useTheme = useTheme("SearchInput", styles$
|
|
7510
|
+
var _useTheme = useTheme("SearchInput", styles$v, tweakStyles), classes = _useTheme.classes, componentStyles = _useTheme.componentStyles;
|
|
7543
7511
|
var tweakInputStyles = useTweakStyles(componentStyles, tweakStyles, "tweakInput");
|
|
7544
7512
|
return /* @__PURE__ */ jsxs("div", _object_spread_props$q(_object_spread$y({
|
|
7545
7513
|
className: classes.root
|
|
@@ -7562,84 +7530,6 @@ var SearchInput = function(_param) {
|
|
|
7562
7530
|
]
|
|
7563
7531
|
}));
|
|
7564
7532
|
};
|
|
7565
|
-
var styles$t = {
|
|
7566
|
-
root: {
|
|
7567
|
-
width: "100%",
|
|
7568
|
-
position: "relative",
|
|
7569
|
-
boxSizing: "border-box"
|
|
7570
|
-
},
|
|
7571
|
-
inputWrapper: {
|
|
7572
|
-
width: "100%",
|
|
7573
|
-
cursor: "text",
|
|
7574
|
-
position: "relative"
|
|
7575
|
-
},
|
|
7576
|
-
listWrapper: {
|
|
7577
|
-
left: -1,
|
|
7578
|
-
zIndex: 3,
|
|
7579
|
-
width: "fit-content",
|
|
7580
|
-
minWidth: "calc(100% + 1px)"
|
|
7581
|
-
},
|
|
7582
|
-
withoutPopper: {
|
|
7583
|
-
position: "absolute",
|
|
7584
|
-
top: "calc(100% + 6px)"
|
|
7585
|
-
},
|
|
7586
|
-
listWrapperInBody: {
|
|
7587
|
-
minWidth: "auto",
|
|
7588
|
-
width: "auto",
|
|
7589
|
-
maxWidth: "min-content"
|
|
7590
|
-
},
|
|
7591
|
-
arrow: {
|
|
7592
|
-
position: "absolute",
|
|
7593
|
-
right: 12,
|
|
7594
|
-
top: 14,
|
|
7595
|
-
width: 20,
|
|
7596
|
-
height: 20,
|
|
7597
|
-
cursor: "pointer",
|
|
7598
|
-
zIndex: 1,
|
|
7599
|
-
transition: "transform 0.1s ease"
|
|
7600
|
-
},
|
|
7601
|
-
activeArrow: {
|
|
7602
|
-
transform: "rotate(180deg)"
|
|
7603
|
-
},
|
|
7604
|
-
disabled: {
|
|
7605
|
-
"& $arrow": {
|
|
7606
|
-
cursor: "default"
|
|
7607
|
-
}
|
|
7608
|
-
},
|
|
7609
|
-
counter: {
|
|
7610
|
-
"&:not(:last-child)": {
|
|
7611
|
-
paddingRight: 8
|
|
7612
|
-
}
|
|
7613
|
-
},
|
|
7614
|
-
icon: {
|
|
7615
|
-
width: 16,
|
|
7616
|
-
height: 16
|
|
7617
|
-
},
|
|
7618
|
-
tweakInput: {
|
|
7619
|
-
input: {
|
|
7620
|
-
paddingRight: 32
|
|
7621
|
-
},
|
|
7622
|
-
disabled: {
|
|
7623
|
-
"& $input": {
|
|
7624
|
-
cursor: "default"
|
|
7625
|
-
}
|
|
7626
|
-
},
|
|
7627
|
-
controls: {
|
|
7628
|
-
paddingRight: 32
|
|
7629
|
-
}
|
|
7630
|
-
},
|
|
7631
|
-
tweakSelectList: {},
|
|
7632
|
-
tweakSearchInput: {
|
|
7633
|
-
tweakInput: {
|
|
7634
|
-
inputWrapper: {
|
|
7635
|
-
height: 48,
|
|
7636
|
-
borderRadius: 0,
|
|
7637
|
-
border: "none",
|
|
7638
|
-
backgroundColor: "transparent"
|
|
7639
|
-
}
|
|
7640
|
-
}
|
|
7641
|
-
}
|
|
7642
|
-
};
|
|
7643
7533
|
function _assert_this_initialized(self2) {
|
|
7644
7534
|
if (self2 === void 0) {
|
|
7645
7535
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -7895,7 +7785,7 @@ var CELL_PADDING = [
|
|
|
7895
7785
|
10,
|
|
7896
7786
|
20
|
|
7897
7787
|
];
|
|
7898
|
-
var styles$
|
|
7788
|
+
var styles$u = {
|
|
7899
7789
|
root: {
|
|
7900
7790
|
borderRadius: dimensions.BORDER_RADIUS_SMALL,
|
|
7901
7791
|
boxShadow: "0 13px 74px -27px rgba(0, 0, 0, 0.11)",
|
|
@@ -8062,7 +7952,7 @@ function _define_property$w(obj, key, value) {
|
|
|
8062
7952
|
}
|
|
8063
7953
|
function SelectList(param) {
|
|
8064
7954
|
var options = param.options, focusedIndex = param.focusedIndex, activeValue = param.activeValue, defaultOptionLabel = param.defaultOptionLabel, _param_noMatchesLabel = param.noMatchesLabel, noMatchesLabel = _param_noMatchesLabel === void 0 ? "Совпадений не найдено" : _param_noMatchesLabel, isLoading = param.isLoading, _param_loadingLabel = param.loadingLabel, loadingLabel = _param_loadingLabel === void 0 ? "Загрузка..." : _param_loadingLabel, tweakStyles = param.tweakStyles, testId = param.testId, _param_shouldScrollToList = param.shouldScrollToList, shouldScrollToList = _param_shouldScrollToList === void 0 ? true : _param_shouldScrollToList, areAllOptionsSelected = param.areAllOptionsSelected, customListHeader = param.customListHeader, isOptionDisabled = param.isOptionDisabled, allOptionsLabel = param.allOptionsLabel, onOptionSelect = param.onOptionSelect, onToggleCheckbox = param.onToggleCheckbox, convertValueToString = param.convertValueToString, _param_convertValueToReactNode = param.convertValueToReactNode, convertValueToReactNode = _param_convertValueToReactNode === void 0 ? convertValueToString : _param_convertValueToReactNode, convertValueToId = param.convertValueToId;
|
|
8065
|
-
var classes = useTheme("SelectList", styles$
|
|
7955
|
+
var classes = useTheme("SelectList", styles$u, tweakStyles).classes;
|
|
8066
7956
|
var isMultiSelect = isNotEmpty$1(onToggleCheckbox);
|
|
8067
7957
|
var multiSelectValue = activeValue;
|
|
8068
7958
|
var _multiSelectValue_length;
|
|
@@ -8176,6 +8066,84 @@ var getDefaultConvertToIdFunction = function(convertValueToString) {
|
|
|
8176
8066
|
var isMultiSelectValue = function(props, _value) {
|
|
8177
8067
|
return props.isMultiSelect === true;
|
|
8178
8068
|
};
|
|
8069
|
+
var styles$t = {
|
|
8070
|
+
root: {
|
|
8071
|
+
width: "100%",
|
|
8072
|
+
position: "relative",
|
|
8073
|
+
boxSizing: "border-box"
|
|
8074
|
+
},
|
|
8075
|
+
inputWrapper: {
|
|
8076
|
+
width: "100%",
|
|
8077
|
+
cursor: "text",
|
|
8078
|
+
position: "relative"
|
|
8079
|
+
},
|
|
8080
|
+
listWrapper: {
|
|
8081
|
+
left: -1,
|
|
8082
|
+
zIndex: 3,
|
|
8083
|
+
width: "fit-content",
|
|
8084
|
+
minWidth: "calc(100% + 1px)"
|
|
8085
|
+
},
|
|
8086
|
+
withoutPopper: {
|
|
8087
|
+
position: "absolute",
|
|
8088
|
+
top: "calc(100% + 6px)"
|
|
8089
|
+
},
|
|
8090
|
+
listWrapperInBody: {
|
|
8091
|
+
minWidth: "auto",
|
|
8092
|
+
width: "auto",
|
|
8093
|
+
maxWidth: "min-content"
|
|
8094
|
+
},
|
|
8095
|
+
arrow: {
|
|
8096
|
+
position: "absolute",
|
|
8097
|
+
right: 12,
|
|
8098
|
+
top: 14,
|
|
8099
|
+
width: 20,
|
|
8100
|
+
height: 20,
|
|
8101
|
+
cursor: "pointer",
|
|
8102
|
+
zIndex: 1,
|
|
8103
|
+
transition: "transform 0.1s ease"
|
|
8104
|
+
},
|
|
8105
|
+
activeArrow: {
|
|
8106
|
+
transform: "rotate(180deg)"
|
|
8107
|
+
},
|
|
8108
|
+
disabled: {
|
|
8109
|
+
"& $arrow": {
|
|
8110
|
+
cursor: "default"
|
|
8111
|
+
}
|
|
8112
|
+
},
|
|
8113
|
+
counter: {
|
|
8114
|
+
"&:not(:last-child)": {
|
|
8115
|
+
paddingRight: 8
|
|
8116
|
+
}
|
|
8117
|
+
},
|
|
8118
|
+
icon: {
|
|
8119
|
+
width: 16,
|
|
8120
|
+
height: 16
|
|
8121
|
+
},
|
|
8122
|
+
tweakInput: {
|
|
8123
|
+
input: {
|
|
8124
|
+
paddingRight: 32
|
|
8125
|
+
},
|
|
8126
|
+
disabled: {
|
|
8127
|
+
"& $input": {
|
|
8128
|
+
cursor: "default"
|
|
8129
|
+
}
|
|
8130
|
+
},
|
|
8131
|
+
controls: {
|
|
8132
|
+
paddingRight: 32
|
|
8133
|
+
}
|
|
8134
|
+
},
|
|
8135
|
+
tweakSelectList: {},
|
|
8136
|
+
tweakSearchInput: {
|
|
8137
|
+
tweakInput: {
|
|
8138
|
+
inputWrapper: {
|
|
8139
|
+
height: 48,
|
|
8140
|
+
borderRadius: 0,
|
|
8141
|
+
border: "none",
|
|
8142
|
+
backgroundColor: "transparent"
|
|
8143
|
+
}
|
|
8144
|
+
}
|
|
8145
|
+
}
|
|
8146
|
+
};
|
|
8179
8147
|
function _array_like_to_array$j(arr, len) {
|
|
8180
8148
|
if (len == null || len > arr.length)
|
|
8181
8149
|
len = arr.length;
|
|
@@ -8910,7 +8878,7 @@ function Select(props) {
|
|
|
8910
8878
|
}
|
|
8911
8879
|
var SELECT_PADDING_LEFT = 12;
|
|
8912
8880
|
var SELECT_PADDING_RIGHT = 24;
|
|
8913
|
-
var styles$
|
|
8881
|
+
var styles$s = {
|
|
8914
8882
|
btn: {
|
|
8915
8883
|
width: 36,
|
|
8916
8884
|
height: 36,
|
|
@@ -8979,7 +8947,7 @@ var styles$r = {
|
|
|
8979
8947
|
};
|
|
8980
8948
|
var DatePickerHeader = function(param) {
|
|
8981
8949
|
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;
|
|
8982
|
-
var _useTheme = useTheme("DatePickerHeader", styles$
|
|
8950
|
+
var _useTheme = useTheme("DatePickerHeader", styles$s), classes = _useTheme.classes, componentStyles = _useTheme.componentStyles;
|
|
8983
8951
|
var years = useMemo(function() {
|
|
8984
8952
|
return Array.from(Array(41)).map(function(_, i) {
|
|
8985
8953
|
return getYear(new Date()) - 30 + i;
|
|
@@ -9071,26 +9039,58 @@ var getDateValueParser = function(dateFormat) {
|
|
|
9071
9039
|
var areDatesEquals = function(date1, date2) {
|
|
9072
9040
|
return isEmpty$1(date1) && isEmpty$1(date2) || isNotEmpty$1(date1) && isNotEmpty$1(date2) && isSameDay(date1, date2);
|
|
9073
9041
|
};
|
|
9074
|
-
|
|
9075
|
-
|
|
9076
|
-
|
|
9077
|
-
|
|
9078
|
-
|
|
9079
|
-
|
|
9080
|
-
}
|
|
9081
|
-
|
|
9082
|
-
|
|
9083
|
-
|
|
9084
|
-
|
|
9085
|
-
|
|
9086
|
-
|
|
9087
|
-
|
|
9088
|
-
|
|
9089
|
-
|
|
9090
|
-
|
|
9091
|
-
|
|
9092
|
-
|
|
9093
|
-
|
|
9042
|
+
var styles$r = {
|
|
9043
|
+
root: {
|
|
9044
|
+
width: "100%",
|
|
9045
|
+
height: "100%"
|
|
9046
|
+
},
|
|
9047
|
+
day: {},
|
|
9048
|
+
datepicker: {},
|
|
9049
|
+
popper: {
|
|
9050
|
+
zIndex: 10,
|
|
9051
|
+
marginTop: function(param) {
|
|
9052
|
+
var topPosition = param.topPosition;
|
|
9053
|
+
return topPosition;
|
|
9054
|
+
},
|
|
9055
|
+
marginLeft: function(param) {
|
|
9056
|
+
var leftPosition = param.leftPosition;
|
|
9057
|
+
return leftPosition;
|
|
9058
|
+
},
|
|
9059
|
+
'&[data-placement^="bottom"]': {
|
|
9060
|
+
paddingTop: 6
|
|
9061
|
+
},
|
|
9062
|
+
'&[data-placement^="top"]': {
|
|
9063
|
+
paddingBottom: 6
|
|
9064
|
+
},
|
|
9065
|
+
'&[data-placement^="left"]': {
|
|
9066
|
+
paddingRight: 6
|
|
9067
|
+
},
|
|
9068
|
+
'&[data-placement^="right"]': {
|
|
9069
|
+
paddingLeft: 6
|
|
9070
|
+
}
|
|
9071
|
+
},
|
|
9072
|
+
tweakDateInput: {}
|
|
9073
|
+
};
|
|
9074
|
+
function _array_like_to_array$i(arr, len) {
|
|
9075
|
+
if (len == null || len > arr.length)
|
|
9076
|
+
len = arr.length;
|
|
9077
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
9078
|
+
arr2[i] = arr[i];
|
|
9079
|
+
return arr2;
|
|
9080
|
+
}
|
|
9081
|
+
function _array_with_holes$i(arr) {
|
|
9082
|
+
if (Array.isArray(arr))
|
|
9083
|
+
return arr;
|
|
9084
|
+
}
|
|
9085
|
+
function _define_property$u(obj, key, value) {
|
|
9086
|
+
if (key in obj) {
|
|
9087
|
+
Object.defineProperty(obj, key, {
|
|
9088
|
+
value,
|
|
9089
|
+
enumerable: true,
|
|
9090
|
+
configurable: true,
|
|
9091
|
+
writable: true
|
|
9092
|
+
});
|
|
9093
|
+
} else {
|
|
9094
9094
|
obj[key] = value;
|
|
9095
9095
|
}
|
|
9096
9096
|
return obj;
|
|
@@ -9270,7 +9270,7 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9270
9270
|
"onKeyDown",
|
|
9271
9271
|
"tweakStyles"
|
|
9272
9272
|
]);
|
|
9273
|
-
var _useTheme = useTheme("DatePicker", styles$
|
|
9273
|
+
var _useTheme = useTheme("DatePicker", styles$r, tweakStyles, {
|
|
9274
9274
|
leftPosition,
|
|
9275
9275
|
topPosition
|
|
9276
9276
|
}), classes = _useTheme.classes, componentStyles = _useTheme.componentStyles;
|
|
@@ -10321,6 +10321,27 @@ var FilterInterval = function(param) {
|
|
|
10321
10321
|
]
|
|
10322
10322
|
}));
|
|
10323
10323
|
};
|
|
10324
|
+
var MultiSelectLocales = {
|
|
10325
|
+
ru: {
|
|
10326
|
+
clear: "Очистить",
|
|
10327
|
+
all: "Все",
|
|
10328
|
+
chosen: "Выбранные",
|
|
10329
|
+
nothingFound: "Не найдено",
|
|
10330
|
+
searchPlaceholder: "Поиск"
|
|
10331
|
+
},
|
|
10332
|
+
en: {
|
|
10333
|
+
clear: "Clear",
|
|
10334
|
+
all: "All",
|
|
10335
|
+
chosen: "Chosen",
|
|
10336
|
+
nothingFound: "Nothing found",
|
|
10337
|
+
searchPlaceholder: "Search"
|
|
10338
|
+
}
|
|
10339
|
+
};
|
|
10340
|
+
var DEFAULT_LOCALE$1 = "en";
|
|
10341
|
+
var getLocale$1 = function() {
|
|
10342
|
+
var key = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : DEFAULT_LOCALE$1, custom = arguments.length > 1 ? arguments[1] : void 0, custom2 = arguments.length > 2 ? arguments[2] : void 0;
|
|
10343
|
+
return merge$1({}, MultiSelectLocales[key], custom, custom2);
|
|
10344
|
+
};
|
|
10324
10345
|
function _define_property$q(obj, key, value) {
|
|
10325
10346
|
if (key in obj) {
|
|
10326
10347
|
Object.defineProperty(obj, key, {
|
|
@@ -10469,27 +10490,6 @@ var styles$o = {
|
|
|
10469
10490
|
}
|
|
10470
10491
|
}
|
|
10471
10492
|
};
|
|
10472
|
-
var MultiSelectLocales = {
|
|
10473
|
-
ru: {
|
|
10474
|
-
clear: "Очистить",
|
|
10475
|
-
all: "Все",
|
|
10476
|
-
chosen: "Выбранные",
|
|
10477
|
-
nothingFound: "Не найдено",
|
|
10478
|
-
searchPlaceholder: "Поиск"
|
|
10479
|
-
},
|
|
10480
|
-
en: {
|
|
10481
|
-
clear: "Clear",
|
|
10482
|
-
all: "All",
|
|
10483
|
-
chosen: "Chosen",
|
|
10484
|
-
nothingFound: "Nothing found",
|
|
10485
|
-
searchPlaceholder: "Search"
|
|
10486
|
-
}
|
|
10487
|
-
};
|
|
10488
|
-
var DEFAULT_LOCALE$1 = "en";
|
|
10489
|
-
var getLocale$1 = function() {
|
|
10490
|
-
var key = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : DEFAULT_LOCALE$1, custom = arguments.length > 1 ? arguments[1] : void 0, custom2 = arguments.length > 2 ? arguments[2] : void 0;
|
|
10491
|
-
return merge$1({}, MultiSelectLocales[key], custom, custom2);
|
|
10492
|
-
};
|
|
10493
10493
|
function _array_like_to_array$f(arr, len) {
|
|
10494
10494
|
if (len == null || len > arr.length)
|
|
10495
10495
|
len = arr.length;
|
|
@@ -11245,6 +11245,27 @@ function _object_spread$n(target) {
|
|
|
11245
11245
|
function FilterMultiSelect(props) {
|
|
11246
11246
|
return /* @__PURE__ */ jsx(MultiSelectList, _object_spread$n({}, props));
|
|
11247
11247
|
}
|
|
11248
|
+
var SelectLocales = {
|
|
11249
|
+
ru: {
|
|
11250
|
+
clear: "Очистить",
|
|
11251
|
+
all: "Все",
|
|
11252
|
+
chosen: "Выбранные",
|
|
11253
|
+
nothingFound: "Ничего не найдено",
|
|
11254
|
+
searchPlaceholder: "Поиск"
|
|
11255
|
+
},
|
|
11256
|
+
en: {
|
|
11257
|
+
clear: "Clear",
|
|
11258
|
+
all: "All",
|
|
11259
|
+
chosen: "Chosen",
|
|
11260
|
+
nothingFound: "Nothing found",
|
|
11261
|
+
searchPlaceholder: "Search"
|
|
11262
|
+
}
|
|
11263
|
+
};
|
|
11264
|
+
var DEFAULT_LOCALE = "en";
|
|
11265
|
+
var getLocale = function() {
|
|
11266
|
+
var key = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : DEFAULT_LOCALE, custom = arguments.length > 1 ? arguments[1] : void 0, custom2 = arguments.length > 2 ? arguments[2] : void 0;
|
|
11267
|
+
return merge$1({}, SelectLocales[key], custom, custom2);
|
|
11268
|
+
};
|
|
11248
11269
|
function _define_property$n(obj, key, value) {
|
|
11249
11270
|
if (key in obj) {
|
|
11250
11271
|
Object.defineProperty(obj, key, {
|
|
@@ -11421,27 +11442,6 @@ var styles$n = {
|
|
|
11421
11442
|
}
|
|
11422
11443
|
}
|
|
11423
11444
|
};
|
|
11424
|
-
var SelectLocales = {
|
|
11425
|
-
ru: {
|
|
11426
|
-
clear: "Очистить",
|
|
11427
|
-
all: "Все",
|
|
11428
|
-
chosen: "Выбранные",
|
|
11429
|
-
nothingFound: "Ничего не найдено",
|
|
11430
|
-
searchPlaceholder: "Поиск"
|
|
11431
|
-
},
|
|
11432
|
-
en: {
|
|
11433
|
-
clear: "Clear",
|
|
11434
|
-
all: "All",
|
|
11435
|
-
chosen: "Chosen",
|
|
11436
|
-
nothingFound: "Nothing found",
|
|
11437
|
-
searchPlaceholder: "Search"
|
|
11438
|
-
}
|
|
11439
|
-
};
|
|
11440
|
-
var DEFAULT_LOCALE = "en";
|
|
11441
|
-
var getLocale = function() {
|
|
11442
|
-
var key = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : DEFAULT_LOCALE, custom = arguments.length > 1 ? arguments[1] : void 0, custom2 = arguments.length > 2 ? arguments[2] : void 0;
|
|
11443
|
-
return merge$1({}, SelectLocales[key], custom, custom2);
|
|
11444
|
-
};
|
|
11445
11445
|
function _array_like_to_array$e(arr, len) {
|
|
11446
11446
|
if (len == null || len > arr.length)
|
|
11447
11447
|
len = arr.length;
|
|
@@ -21093,206 +21093,83 @@ var Flag = function(param) {
|
|
|
21093
21093
|
className: classes.root
|
|
21094
21094
|
});
|
|
21095
21095
|
};
|
|
21096
|
-
|
|
21097
|
-
|
|
21098
|
-
|
|
21099
|
-
|
|
21100
|
-
|
|
21101
|
-
|
|
21102
|
-
|
|
21103
|
-
|
|
21104
|
-
|
|
21105
|
-
|
|
21106
|
-
|
|
21107
|
-
|
|
21108
|
-
|
|
21109
|
-
|
|
21110
|
-
|
|
21111
|
-
|
|
21112
|
-
|
|
21113
|
-
|
|
21114
|
-
|
|
21115
|
-
|
|
21116
|
-
|
|
21117
|
-
|
|
21118
|
-
|
|
21096
|
+
function _instanceof(left2, right2) {
|
|
21097
|
+
if (right2 != null && typeof Symbol !== "undefined" && right2[Symbol.hasInstance]) {
|
|
21098
|
+
return !!right2[Symbol.hasInstance](left2);
|
|
21099
|
+
} else {
|
|
21100
|
+
return left2 instanceof right2;
|
|
21101
|
+
}
|
|
21102
|
+
}
|
|
21103
|
+
var DEFAULT_DATE_FORMAT = "dd.MM.yyyy";
|
|
21104
|
+
function TableValue(param) {
|
|
21105
|
+
var item = param.item, columnName = param.columnName, config = param.config, classes = param.classes, isFocusedRow = param.isFocusedRow, isSecond = param.isSecond, isSticky = param.isSticky, isNestedComponentExpanded = param.isNestedComponentExpanded, isRowNestedComponentExpanded = param.isRowNestedComponentExpanded, onSetNestedComponent = param.onSetNestedComponent;
|
|
21106
|
+
var itemConfig = config === null || config === void 0 ? void 0 : config[columnName];
|
|
21107
|
+
var value = item[columnName];
|
|
21108
|
+
var content = null;
|
|
21109
|
+
if (itemConfig === null || itemConfig === void 0 ? void 0 : itemConfig.component) {
|
|
21110
|
+
var ValueComponent = itemConfig === null || itemConfig === void 0 ? void 0 : itemConfig.component;
|
|
21111
|
+
content = ValueComponent({
|
|
21112
|
+
value,
|
|
21113
|
+
row: item,
|
|
21114
|
+
isFocusedRow,
|
|
21115
|
+
isNestedComponentExpanded,
|
|
21116
|
+
isRowNestedComponentExpanded,
|
|
21117
|
+
onSetNestedComponent
|
|
21118
|
+
});
|
|
21119
|
+
} else if (typeof value === "string" || typeof value === "number") {
|
|
21120
|
+
content = value;
|
|
21121
|
+
} else if (_instanceof(value, Date)) {
|
|
21122
|
+
content = format$1(value, (itemConfig === null || itemConfig === void 0 ? void 0 : itemConfig.dateFormat) || DEFAULT_DATE_FORMAT);
|
|
21123
|
+
}
|
|
21124
|
+
return /* @__PURE__ */ jsx("td", {
|
|
21125
|
+
className: clsx(classes.root, isSticky && classes.sticky, isSecond && classes.second),
|
|
21126
|
+
style: {
|
|
21127
|
+
textAlign: itemConfig === null || itemConfig === void 0 ? void 0 : itemConfig.cellAlign,
|
|
21128
|
+
position: isSticky ? "sticky" : itemConfig === null || itemConfig === void 0 ? void 0 : itemConfig.position,
|
|
21129
|
+
right: itemConfig === null || itemConfig === void 0 ? void 0 : itemConfig.right,
|
|
21130
|
+
left: isSticky ? 0 : itemConfig === null || itemConfig === void 0 ? void 0 : itemConfig.left,
|
|
21131
|
+
verticalAlign: itemConfig === null || itemConfig === void 0 ? void 0 : itemConfig.cellVerticalAlign
|
|
21119
21132
|
},
|
|
21120
|
-
|
|
21121
|
-
|
|
21122
|
-
|
|
21123
|
-
|
|
21124
|
-
|
|
21125
|
-
|
|
21126
|
-
|
|
21127
|
-
|
|
21128
|
-
|
|
21129
|
-
|
|
21130
|
-
|
|
21131
|
-
|
|
21132
|
-
|
|
21133
|
-
|
|
21134
|
-
|
|
21135
|
-
|
|
21136
|
-
|
|
21137
|
-
|
|
21138
|
-
|
|
21139
|
-
|
|
21140
|
-
|
|
21141
|
-
|
|
21142
|
-
|
|
21143
|
-
|
|
21144
|
-
|
|
21145
|
-
|
|
21146
|
-
|
|
21147
|
-
|
|
21148
|
-
|
|
21149
|
-
|
|
21150
|
-
|
|
21151
|
-
|
|
21152
|
-
|
|
21153
|
-
|
|
21154
|
-
|
|
21155
|
-
|
|
21156
|
-
|
|
21157
|
-
|
|
21158
|
-
|
|
21159
|
-
|
|
21160
|
-
},
|
|
21161
|
-
cellSecond: {
|
|
21162
|
-
paddingLeft: STICKY_SHADOW_PADDING
|
|
21163
|
-
},
|
|
21164
|
-
header: {
|
|
21165
|
-
position: "sticky",
|
|
21166
|
-
boxSizing: "content-box",
|
|
21167
|
-
top: 0,
|
|
21168
|
-
zIndex: 10,
|
|
21169
|
-
fontSize: 12,
|
|
21170
|
-
fontWeight: "normal",
|
|
21171
|
-
padding: [
|
|
21172
|
-
0,
|
|
21173
|
-
7,
|
|
21174
|
-
16,
|
|
21175
|
-
7
|
|
21176
|
-
]
|
|
21177
|
-
},
|
|
21178
|
-
headerSticky: {
|
|
21179
|
-
zIndex: 20,
|
|
21180
|
-
left: 0,
|
|
21181
|
-
paddingLeft: 24,
|
|
21182
|
-
paddingRight: 12,
|
|
21183
|
-
"&::before": {
|
|
21184
|
-
content: '""',
|
|
21185
|
-
display: "block",
|
|
21186
|
-
width: "100%",
|
|
21187
|
-
height: "100%",
|
|
21188
|
-
position: "absolute",
|
|
21189
|
-
left: 0,
|
|
21190
|
-
top: 0,
|
|
21191
|
-
background: "transparent",
|
|
21192
|
-
pointerEvents: "none",
|
|
21193
|
-
zIndex: 1,
|
|
21194
|
-
transition: [
|
|
21195
|
-
"box-shadow",
|
|
21196
|
-
"0.25s",
|
|
21197
|
-
"ease-in-out"
|
|
21198
|
-
]
|
|
21199
|
-
},
|
|
21200
|
-
"&::after": {
|
|
21201
|
-
content: '""',
|
|
21202
|
-
display: "block",
|
|
21203
|
-
width: STICKY_SHADOW_PADDING,
|
|
21204
|
-
height: "100%",
|
|
21205
|
-
position: "absolute",
|
|
21206
|
-
left: "100%",
|
|
21207
|
-
top: 0,
|
|
21208
|
-
background: "linear-gradient(90deg, ".concat(colors.CLASSIC_WHITE, ", ").concat(rgba(colors.CLASSIC_WHITE, 0), ")"),
|
|
21209
|
-
zIndex: 0
|
|
21210
|
-
}
|
|
21211
|
-
},
|
|
21212
|
-
headerSecond: {
|
|
21213
|
-
paddingLeft: STICKY_SHADOW_PADDING
|
|
21214
|
-
},
|
|
21215
|
-
editableRow: {
|
|
21216
|
-
cursor: "pointer"
|
|
21217
|
-
}
|
|
21218
|
-
};
|
|
21219
|
-
function _instanceof(left2, right2) {
|
|
21220
|
-
if (right2 != null && typeof Symbol !== "undefined" && right2[Symbol.hasInstance]) {
|
|
21221
|
-
return !!right2[Symbol.hasInstance](left2);
|
|
21222
|
-
} else {
|
|
21223
|
-
return left2 instanceof right2;
|
|
21224
|
-
}
|
|
21225
|
-
}
|
|
21226
|
-
var DEFAULT_DATE_FORMAT = "dd.MM.yyyy";
|
|
21227
|
-
function TableValue(param) {
|
|
21228
|
-
var item = param.item, columnName = param.columnName, config = param.config, classes = param.classes, isFocusedRow = param.isFocusedRow, isSecond = param.isSecond, isSticky = param.isSticky, isNestedComponentExpanded = param.isNestedComponentExpanded, isRowNestedComponentExpanded = param.isRowNestedComponentExpanded, onSetNestedComponent = param.onSetNestedComponent;
|
|
21229
|
-
var itemConfig = config === null || config === void 0 ? void 0 : config[columnName];
|
|
21230
|
-
var value = item[columnName];
|
|
21231
|
-
var content = null;
|
|
21232
|
-
if (itemConfig === null || itemConfig === void 0 ? void 0 : itemConfig.component) {
|
|
21233
|
-
var ValueComponent = itemConfig === null || itemConfig === void 0 ? void 0 : itemConfig.component;
|
|
21234
|
-
content = ValueComponent({
|
|
21235
|
-
value,
|
|
21236
|
-
row: item,
|
|
21237
|
-
isFocusedRow,
|
|
21238
|
-
isNestedComponentExpanded,
|
|
21239
|
-
isRowNestedComponentExpanded,
|
|
21240
|
-
onSetNestedComponent
|
|
21241
|
-
});
|
|
21242
|
-
} else if (typeof value === "string" || typeof value === "number") {
|
|
21243
|
-
content = value;
|
|
21244
|
-
} else if (_instanceof(value, Date)) {
|
|
21245
|
-
content = format$1(value, (itemConfig === null || itemConfig === void 0 ? void 0 : itemConfig.dateFormat) || DEFAULT_DATE_FORMAT);
|
|
21246
|
-
}
|
|
21247
|
-
return /* @__PURE__ */ jsx("td", {
|
|
21248
|
-
className: clsx(classes.root, isSticky && classes.sticky, isSecond && classes.second),
|
|
21249
|
-
style: {
|
|
21250
|
-
textAlign: itemConfig === null || itemConfig === void 0 ? void 0 : itemConfig.cellAlign,
|
|
21251
|
-
position: isSticky ? "sticky" : itemConfig === null || itemConfig === void 0 ? void 0 : itemConfig.position,
|
|
21252
|
-
right: itemConfig === null || itemConfig === void 0 ? void 0 : itemConfig.right,
|
|
21253
|
-
left: isSticky ? 0 : itemConfig === null || itemConfig === void 0 ? void 0 : itemConfig.left,
|
|
21254
|
-
verticalAlign: itemConfig === null || itemConfig === void 0 ? void 0 : itemConfig.cellVerticalAlign
|
|
21255
|
-
},
|
|
21256
|
-
children: content
|
|
21257
|
-
}, columnName);
|
|
21258
|
-
}
|
|
21259
|
-
function _array_like_to_array$9(arr, len) {
|
|
21260
|
-
if (len == null || len > arr.length)
|
|
21261
|
-
len = arr.length;
|
|
21262
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
21263
|
-
arr2[i] = arr[i];
|
|
21264
|
-
return arr2;
|
|
21265
|
-
}
|
|
21266
|
-
function _array_with_holes$9(arr) {
|
|
21267
|
-
if (Array.isArray(arr))
|
|
21268
|
-
return arr;
|
|
21269
|
-
}
|
|
21270
|
-
function _define_property$g(obj, key, value) {
|
|
21271
|
-
if (key in obj) {
|
|
21272
|
-
Object.defineProperty(obj, key, {
|
|
21273
|
-
value,
|
|
21274
|
-
enumerable: true,
|
|
21275
|
-
configurable: true,
|
|
21276
|
-
writable: true
|
|
21277
|
-
});
|
|
21278
|
-
} else {
|
|
21279
|
-
obj[key] = value;
|
|
21280
|
-
}
|
|
21281
|
-
return obj;
|
|
21282
|
-
}
|
|
21283
|
-
function _iterable_to_array_limit$9(arr, i) {
|
|
21284
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
21285
|
-
if (_i == null)
|
|
21286
|
-
return;
|
|
21287
|
-
var _arr = [];
|
|
21288
|
-
var _n = true;
|
|
21289
|
-
var _d = false;
|
|
21290
|
-
var _s, _e;
|
|
21291
|
-
try {
|
|
21292
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
21293
|
-
_arr.push(_s.value);
|
|
21294
|
-
if (i && _arr.length === i)
|
|
21295
|
-
break;
|
|
21133
|
+
children: content
|
|
21134
|
+
}, columnName);
|
|
21135
|
+
}
|
|
21136
|
+
function _array_like_to_array$9(arr, len) {
|
|
21137
|
+
if (len == null || len > arr.length)
|
|
21138
|
+
len = arr.length;
|
|
21139
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
21140
|
+
arr2[i] = arr[i];
|
|
21141
|
+
return arr2;
|
|
21142
|
+
}
|
|
21143
|
+
function _array_with_holes$9(arr) {
|
|
21144
|
+
if (Array.isArray(arr))
|
|
21145
|
+
return arr;
|
|
21146
|
+
}
|
|
21147
|
+
function _define_property$g(obj, key, value) {
|
|
21148
|
+
if (key in obj) {
|
|
21149
|
+
Object.defineProperty(obj, key, {
|
|
21150
|
+
value,
|
|
21151
|
+
enumerable: true,
|
|
21152
|
+
configurable: true,
|
|
21153
|
+
writable: true
|
|
21154
|
+
});
|
|
21155
|
+
} else {
|
|
21156
|
+
obj[key] = value;
|
|
21157
|
+
}
|
|
21158
|
+
return obj;
|
|
21159
|
+
}
|
|
21160
|
+
function _iterable_to_array_limit$9(arr, i) {
|
|
21161
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
21162
|
+
if (_i == null)
|
|
21163
|
+
return;
|
|
21164
|
+
var _arr = [];
|
|
21165
|
+
var _n = true;
|
|
21166
|
+
var _d = false;
|
|
21167
|
+
var _s, _e;
|
|
21168
|
+
try {
|
|
21169
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
21170
|
+
_arr.push(_s.value);
|
|
21171
|
+
if (i && _arr.length === i)
|
|
21172
|
+
break;
|
|
21296
21173
|
}
|
|
21297
21174
|
} catch (err) {
|
|
21298
21175
|
_d = true;
|
|
@@ -21460,6 +21337,129 @@ function TableRow(param) {
|
|
|
21460
21337
|
});
|
|
21461
21338
|
}
|
|
21462
21339
|
const TableRow$1 = /* @__PURE__ */ React.memo(TableRow);
|
|
21340
|
+
var STICKY_SHADOW_PADDING = 12;
|
|
21341
|
+
var styles$f = {
|
|
21342
|
+
root: {
|
|
21343
|
+
position: "relative",
|
|
21344
|
+
width: "100%",
|
|
21345
|
+
borderCollapse: "separate",
|
|
21346
|
+
borderSpacing: 0
|
|
21347
|
+
},
|
|
21348
|
+
row: {
|
|
21349
|
+
position: "relative"
|
|
21350
|
+
},
|
|
21351
|
+
scroll: {
|
|
21352
|
+
overflow: "auto",
|
|
21353
|
+
/*
|
|
21354
|
+
Чтобы сделать таблицу на всю высоту проставьте
|
|
21355
|
+
height у родителя таблицы у себя в проекте.
|
|
21356
|
+
Например: height: calc(100vh -{высота шапки}px)
|
|
21357
|
+
*/
|
|
21358
|
+
maxHeight: "100%"
|
|
21359
|
+
},
|
|
21360
|
+
horizontallyScrolled: {
|
|
21361
|
+
"& $cellSticky": {
|
|
21362
|
+
boxShadow: "4px 0 4px rgba(0, 0, 0, 0.05)"
|
|
21363
|
+
},
|
|
21364
|
+
"& $headerSticky::before": {
|
|
21365
|
+
boxShadow: "4px 0 4px rgba(0, 0, 0, 0.05)"
|
|
21366
|
+
}
|
|
21367
|
+
},
|
|
21368
|
+
loader: {
|
|
21369
|
+
position: "sticky",
|
|
21370
|
+
left: 0,
|
|
21371
|
+
maxWidth: "100vw",
|
|
21372
|
+
height: 48,
|
|
21373
|
+
display: "flex",
|
|
21374
|
+
justifyContent: "center",
|
|
21375
|
+
alignItems: "center"
|
|
21376
|
+
},
|
|
21377
|
+
headerRow: {
|
|
21378
|
+
verticalAlign: "bottom"
|
|
21379
|
+
},
|
|
21380
|
+
activeRow: {},
|
|
21381
|
+
cell: {
|
|
21382
|
+
position: "relative",
|
|
21383
|
+
boxSizing: "content-box",
|
|
21384
|
+
padding: [
|
|
21385
|
+
14,
|
|
21386
|
+
7,
|
|
21387
|
+
14,
|
|
21388
|
+
7
|
|
21389
|
+
],
|
|
21390
|
+
fontSize: 14,
|
|
21391
|
+
lineHeight: 1.42,
|
|
21392
|
+
zIndex: 5,
|
|
21393
|
+
verticalAlign: "top"
|
|
21394
|
+
},
|
|
21395
|
+
cellSticky: {
|
|
21396
|
+
zIndex: 19,
|
|
21397
|
+
paddingLeft: 24,
|
|
21398
|
+
paddingRight: 12,
|
|
21399
|
+
transition: [
|
|
21400
|
+
"box-shadow",
|
|
21401
|
+
"0.25s",
|
|
21402
|
+
"ease-in-out"
|
|
21403
|
+
]
|
|
21404
|
+
},
|
|
21405
|
+
cellSecond: {
|
|
21406
|
+
paddingLeft: STICKY_SHADOW_PADDING
|
|
21407
|
+
},
|
|
21408
|
+
header: {
|
|
21409
|
+
position: "sticky",
|
|
21410
|
+
boxSizing: "content-box",
|
|
21411
|
+
top: 0,
|
|
21412
|
+
zIndex: 10,
|
|
21413
|
+
fontSize: 12,
|
|
21414
|
+
fontWeight: "normal",
|
|
21415
|
+
padding: [
|
|
21416
|
+
0,
|
|
21417
|
+
7,
|
|
21418
|
+
16,
|
|
21419
|
+
7
|
|
21420
|
+
]
|
|
21421
|
+
},
|
|
21422
|
+
headerSticky: {
|
|
21423
|
+
zIndex: 20,
|
|
21424
|
+
left: 0,
|
|
21425
|
+
paddingLeft: 24,
|
|
21426
|
+
paddingRight: 12,
|
|
21427
|
+
"&::before": {
|
|
21428
|
+
content: '""',
|
|
21429
|
+
display: "block",
|
|
21430
|
+
width: "100%",
|
|
21431
|
+
height: "100%",
|
|
21432
|
+
position: "absolute",
|
|
21433
|
+
left: 0,
|
|
21434
|
+
top: 0,
|
|
21435
|
+
background: "transparent",
|
|
21436
|
+
pointerEvents: "none",
|
|
21437
|
+
zIndex: 1,
|
|
21438
|
+
transition: [
|
|
21439
|
+
"box-shadow",
|
|
21440
|
+
"0.25s",
|
|
21441
|
+
"ease-in-out"
|
|
21442
|
+
]
|
|
21443
|
+
},
|
|
21444
|
+
"&::after": {
|
|
21445
|
+
content: '""',
|
|
21446
|
+
display: "block",
|
|
21447
|
+
width: STICKY_SHADOW_PADDING,
|
|
21448
|
+
height: "100%",
|
|
21449
|
+
position: "absolute",
|
|
21450
|
+
left: "100%",
|
|
21451
|
+
top: 0,
|
|
21452
|
+
background: "linear-gradient(90deg, ".concat(colors.CLASSIC_WHITE, ", ").concat(rgba(colors.CLASSIC_WHITE, 0), ")"),
|
|
21453
|
+
zIndex: 0
|
|
21454
|
+
}
|
|
21455
|
+
},
|
|
21456
|
+
headerSecond: {
|
|
21457
|
+
paddingLeft: STICKY_SHADOW_PADDING
|
|
21458
|
+
},
|
|
21459
|
+
editableRow: {
|
|
21460
|
+
cursor: "pointer"
|
|
21461
|
+
}
|
|
21462
|
+
};
|
|
21463
21463
|
function _array_like_to_array$8(arr, len) {
|
|
21464
21464
|
if (len == null || len > arr.length)
|
|
21465
21465
|
len = arr.length;
|
|
@@ -22351,8 +22351,8 @@ var Modal = function(_param) {
|
|
|
22351
22351
|
"unmountOnExit",
|
|
22352
22352
|
"onClose"
|
|
22353
22353
|
]);
|
|
22354
|
-
var
|
|
22355
|
-
var isModalOpen = (
|
|
22354
|
+
var _restProps_in;
|
|
22355
|
+
var isModalOpen = (_restProps_in = restProps.in) !== null && _restProps_in !== void 0 ? _restProps_in : isOpen;
|
|
22356
22356
|
var _useTheme = useTheme("Modal", styles$d, tweakStyles), classes = _useTheme.classes, componentStyles = _useTheme.componentStyles;
|
|
22357
22357
|
var tweakCloseButtonStyles = useTweakStyles(componentStyles, tweakStyles, "tweakCloseButton");
|
|
22358
22358
|
var _useState = _sliced_to_array$7(useState(false), 2), isClickOnOverlay = _useState[0], setIsClickOnOverlay = _useState[1];
|
|
@@ -22674,48 +22674,6 @@ var MoreMenu = function(param) {
|
|
|
22674
22674
|
});
|
|
22675
22675
|
};
|
|
22676
22676
|
var styles$b = {
|
|
22677
|
-
root: {
|
|
22678
|
-
position: "relative",
|
|
22679
|
-
boxSizing: "border-box",
|
|
22680
|
-
height: "100%",
|
|
22681
|
-
width: "100%",
|
|
22682
|
-
cursor: "pointer",
|
|
22683
|
-
fontSize: 16
|
|
22684
|
-
},
|
|
22685
|
-
required: {
|
|
22686
|
-
"&:before": {
|
|
22687
|
-
content: '""',
|
|
22688
|
-
position: "absolute",
|
|
22689
|
-
left: -12,
|
|
22690
|
-
top: "50%",
|
|
22691
|
-
transform: "translate(0, -50%)",
|
|
22692
|
-
width: 6,
|
|
22693
|
-
height: 6,
|
|
22694
|
-
borderRadius: "50%"
|
|
22695
|
-
}
|
|
22696
|
-
},
|
|
22697
|
-
disabled: {
|
|
22698
|
-
cursor: "default"
|
|
22699
|
-
},
|
|
22700
|
-
listContainer: {
|
|
22701
|
-
position: "absolute",
|
|
22702
|
-
top: "calc(100% + 4px)",
|
|
22703
|
-
left: -1,
|
|
22704
|
-
right: -1,
|
|
22705
|
-
zIndex: 2
|
|
22706
|
-
},
|
|
22707
|
-
invalid: {},
|
|
22708
|
-
open: {},
|
|
22709
|
-
full: {},
|
|
22710
|
-
left: {},
|
|
22711
|
-
right: {},
|
|
22712
|
-
tweakMultiSelectList: {
|
|
22713
|
-
root: {
|
|
22714
|
-
width: "100%"
|
|
22715
|
-
}
|
|
22716
|
-
}
|
|
22717
|
-
};
|
|
22718
|
-
var styles$a = {
|
|
22719
22677
|
root: {
|
|
22720
22678
|
display: "flex",
|
|
22721
22679
|
justifyContent: "center",
|
|
@@ -22783,7 +22741,7 @@ var styles$a = {
|
|
|
22783
22741
|
};
|
|
22784
22742
|
function MultiSelectInput(param) {
|
|
22785
22743
|
var v = param.value, isOpen = param.isOpen, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_placeholder = param.placeholder, placeholder = _param_placeholder === void 0 ? "" : _param_placeholder, onToggle = param.onToggle;
|
|
22786
|
-
var classes = useTheme("MultiSelectInput", styles$
|
|
22744
|
+
var classes = useTheme("MultiSelectInput", styles$b).classes;
|
|
22787
22745
|
var value = v === null || v === void 0 ? void 0 : v.include;
|
|
22788
22746
|
return /* @__PURE__ */ jsxs("div", {
|
|
22789
22747
|
className: classes.root,
|
|
@@ -22828,6 +22786,48 @@ function MultiSelectInput(param) {
|
|
|
22828
22786
|
]
|
|
22829
22787
|
});
|
|
22830
22788
|
}
|
|
22789
|
+
var styles$a = {
|
|
22790
|
+
root: {
|
|
22791
|
+
position: "relative",
|
|
22792
|
+
boxSizing: "border-box",
|
|
22793
|
+
height: "100%",
|
|
22794
|
+
width: "100%",
|
|
22795
|
+
cursor: "pointer",
|
|
22796
|
+
fontSize: 16
|
|
22797
|
+
},
|
|
22798
|
+
required: {
|
|
22799
|
+
"&:before": {
|
|
22800
|
+
content: '""',
|
|
22801
|
+
position: "absolute",
|
|
22802
|
+
left: -12,
|
|
22803
|
+
top: "50%",
|
|
22804
|
+
transform: "translate(0, -50%)",
|
|
22805
|
+
width: 6,
|
|
22806
|
+
height: 6,
|
|
22807
|
+
borderRadius: "50%"
|
|
22808
|
+
}
|
|
22809
|
+
},
|
|
22810
|
+
disabled: {
|
|
22811
|
+
cursor: "default"
|
|
22812
|
+
},
|
|
22813
|
+
listContainer: {
|
|
22814
|
+
position: "absolute",
|
|
22815
|
+
top: "calc(100% + 4px)",
|
|
22816
|
+
left: -1,
|
|
22817
|
+
right: -1,
|
|
22818
|
+
zIndex: 2
|
|
22819
|
+
},
|
|
22820
|
+
invalid: {},
|
|
22821
|
+
open: {},
|
|
22822
|
+
full: {},
|
|
22823
|
+
left: {},
|
|
22824
|
+
right: {},
|
|
22825
|
+
tweakMultiSelectList: {
|
|
22826
|
+
root: {
|
|
22827
|
+
width: "100%"
|
|
22828
|
+
}
|
|
22829
|
+
}
|
|
22830
|
+
};
|
|
22831
22831
|
function _array_like_to_array$5(arr, len) {
|
|
22832
22832
|
if (len == null || len > arr.length)
|
|
22833
22833
|
len = arr.length;
|
|
@@ -22888,7 +22888,7 @@ function _unsupported_iterable_to_array$5(o, minLen) {
|
|
|
22888
22888
|
}
|
|
22889
22889
|
function MultiSelect(param) {
|
|
22890
22890
|
var value = param.value, _param_corners = param.corners, corners = _param_corners === void 0 ? "full" : _param_corners, isInvalid = param.isInvalid, isRequired = param.isRequired, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_placeholder = param.placeholder, placeholder = _param_placeholder === void 0 ? "" : _param_placeholder, localeKey = param.localeKey, locale2 = param.locale, onChange = param.onChange, fetchOptions = param.fetchOptions, tweakStyles = param.tweakStyles;
|
|
22891
|
-
var _useTheme = useTheme("MultiSelect", styles$
|
|
22891
|
+
var _useTheme = useTheme("MultiSelect", styles$a, tweakStyles), classes = _useTheme.classes, componentStyles = _useTheme.componentStyles;
|
|
22892
22892
|
var _useState = _sliced_to_array$5(useState(false), 2), isOpen = _useState[0], setIsOpen = _useState[1];
|
|
22893
22893
|
var ref = useRef(null);
|
|
22894
22894
|
var handleOnClose = function() {
|
|
@@ -23361,75 +23361,6 @@ var SmartInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
23361
23361
|
value: currentValue
|
|
23362
23362
|
}));
|
|
23363
23363
|
});
|
|
23364
|
-
var COUNTRY_SELECT_WIDTH = 80;
|
|
23365
|
-
var styles$8 = {
|
|
23366
|
-
root: {
|
|
23367
|
-
width: "100%",
|
|
23368
|
-
position: "relative",
|
|
23369
|
-
boxSizing: "border-box"
|
|
23370
|
-
},
|
|
23371
|
-
countrySelectContainer: {
|
|
23372
|
-
position: "absolute",
|
|
23373
|
-
left: 1,
|
|
23374
|
-
top: 1,
|
|
23375
|
-
width: COUNTRY_SELECT_WIDTH,
|
|
23376
|
-
height: dimensions.CONTROL_HEIGHT - 2,
|
|
23377
|
-
display: "flex",
|
|
23378
|
-
alignItems: "center",
|
|
23379
|
-
justifyContent: "center",
|
|
23380
|
-
borderRight: [
|
|
23381
|
-
"solid",
|
|
23382
|
-
1,
|
|
23383
|
-
colors.BORDER_MAIN
|
|
23384
|
-
],
|
|
23385
|
-
transition: "border-color 0.2s ease-in",
|
|
23386
|
-
cursor: "pointer",
|
|
23387
|
-
zIndex: 2
|
|
23388
|
-
},
|
|
23389
|
-
disabledCountrySelect: {
|
|
23390
|
-
cursor: "default"
|
|
23391
|
-
},
|
|
23392
|
-
flag: {
|
|
23393
|
-
width: 22,
|
|
23394
|
-
height: 16
|
|
23395
|
-
},
|
|
23396
|
-
arrow: {
|
|
23397
|
-
width: 20,
|
|
23398
|
-
color: colors.GREY_ACTIVE,
|
|
23399
|
-
marginLeft: 8,
|
|
23400
|
-
transition: "transform .2s ease"
|
|
23401
|
-
},
|
|
23402
|
-
up: {
|
|
23403
|
-
transform: "rotate(180deg)"
|
|
23404
|
-
},
|
|
23405
|
-
invalidArrow: {
|
|
23406
|
-
color: colors.RED_WARNING
|
|
23407
|
-
},
|
|
23408
|
-
focusedBorder: {},
|
|
23409
|
-
invalidBorder: {
|
|
23410
|
-
borderColor: colors.RED_WARNING
|
|
23411
|
-
},
|
|
23412
|
-
inputContainer: {
|
|
23413
|
-
position: "relative",
|
|
23414
|
-
flex: 1
|
|
23415
|
-
},
|
|
23416
|
-
flagListContainer: {
|
|
23417
|
-
position: "absolute",
|
|
23418
|
-
width: "100%",
|
|
23419
|
-
top: dimensions.CONTROL_HEIGHT + 6,
|
|
23420
|
-
left: -1,
|
|
23421
|
-
zIndex: 3
|
|
23422
|
-
},
|
|
23423
|
-
tweakInput: {
|
|
23424
|
-
inputWrapper: {
|
|
23425
|
-
paddingLeft: COUNTRY_SELECT_WIDTH
|
|
23426
|
-
},
|
|
23427
|
-
label: {
|
|
23428
|
-
marginLeft: COUNTRY_SELECT_WIDTH
|
|
23429
|
-
}
|
|
23430
|
-
},
|
|
23431
|
-
tweakCountryList: {}
|
|
23432
|
-
};
|
|
23433
23364
|
var phoneInfo = [
|
|
23434
23365
|
{
|
|
23435
23366
|
countryEn: "Afghanistan",
|
|
@@ -26067,7 +25998,7 @@ function _object_spread$8(target) {
|
|
|
26067
25998
|
}
|
|
26068
25999
|
var ROW_HEIGHT = 40;
|
|
26069
26000
|
var LIST_PADDING = 10;
|
|
26070
|
-
var styles$
|
|
26001
|
+
var styles$8 = {
|
|
26071
26002
|
root: {
|
|
26072
26003
|
borderRadius: dimensions.BORDER_RADIUS_SMALL,
|
|
26073
26004
|
backgroundColor: colors.CLASSIC_WHITE,
|
|
@@ -26245,7 +26176,7 @@ function _unsupported_iterable_to_array$3(o, minLen) {
|
|
|
26245
26176
|
}
|
|
26246
26177
|
var PhoneInputCountryList = function(param) {
|
|
26247
26178
|
var locale2 = param.locale, placeholder = param.placeholder, selectedCountryCode = param.selectedCountryCode, closeList = param.closeList, noMatchesLabel = param.noMatchesLabel, onChange = param.onChange, tweakStyles = param.tweakStyles;
|
|
26248
|
-
var _useTheme = useTheme("PhoneInputCountryList", styles$
|
|
26179
|
+
var _useTheme = useTheme("PhoneInputCountryList", styles$8, tweakStyles), classes = _useTheme.classes, componentStyles = _useTheme.componentStyles;
|
|
26249
26180
|
var tweakInputStyles = useTweakStyles(componentStyles, tweakStyles, "tweakInput");
|
|
26250
26181
|
var sortedCountries = useMemo(function() {
|
|
26251
26182
|
return sortCountriesByLocale(phoneInfo, locale2);
|
|
@@ -26362,6 +26293,75 @@ var PhoneInputCountryList = function(param) {
|
|
|
26362
26293
|
]
|
|
26363
26294
|
});
|
|
26364
26295
|
};
|
|
26296
|
+
var COUNTRY_SELECT_WIDTH = 80;
|
|
26297
|
+
var styles$7 = {
|
|
26298
|
+
root: {
|
|
26299
|
+
width: "100%",
|
|
26300
|
+
position: "relative",
|
|
26301
|
+
boxSizing: "border-box"
|
|
26302
|
+
},
|
|
26303
|
+
countrySelectContainer: {
|
|
26304
|
+
position: "absolute",
|
|
26305
|
+
left: 1,
|
|
26306
|
+
top: 1,
|
|
26307
|
+
width: COUNTRY_SELECT_WIDTH,
|
|
26308
|
+
height: dimensions.CONTROL_HEIGHT - 2,
|
|
26309
|
+
display: "flex",
|
|
26310
|
+
alignItems: "center",
|
|
26311
|
+
justifyContent: "center",
|
|
26312
|
+
borderRight: [
|
|
26313
|
+
"solid",
|
|
26314
|
+
1,
|
|
26315
|
+
colors.BORDER_MAIN
|
|
26316
|
+
],
|
|
26317
|
+
transition: "border-color 0.2s ease-in",
|
|
26318
|
+
cursor: "pointer",
|
|
26319
|
+
zIndex: 2
|
|
26320
|
+
},
|
|
26321
|
+
disabledCountrySelect: {
|
|
26322
|
+
cursor: "default"
|
|
26323
|
+
},
|
|
26324
|
+
flag: {
|
|
26325
|
+
width: 22,
|
|
26326
|
+
height: 16
|
|
26327
|
+
},
|
|
26328
|
+
arrow: {
|
|
26329
|
+
width: 20,
|
|
26330
|
+
color: colors.GREY_ACTIVE,
|
|
26331
|
+
marginLeft: 8,
|
|
26332
|
+
transition: "transform .2s ease"
|
|
26333
|
+
},
|
|
26334
|
+
up: {
|
|
26335
|
+
transform: "rotate(180deg)"
|
|
26336
|
+
},
|
|
26337
|
+
invalidArrow: {
|
|
26338
|
+
color: colors.RED_WARNING
|
|
26339
|
+
},
|
|
26340
|
+
focusedBorder: {},
|
|
26341
|
+
invalidBorder: {
|
|
26342
|
+
borderColor: colors.RED_WARNING
|
|
26343
|
+
},
|
|
26344
|
+
inputContainer: {
|
|
26345
|
+
position: "relative",
|
|
26346
|
+
flex: 1
|
|
26347
|
+
},
|
|
26348
|
+
flagListContainer: {
|
|
26349
|
+
position: "absolute",
|
|
26350
|
+
width: "100%",
|
|
26351
|
+
top: dimensions.CONTROL_HEIGHT + 6,
|
|
26352
|
+
left: -1,
|
|
26353
|
+
zIndex: 3
|
|
26354
|
+
},
|
|
26355
|
+
tweakInput: {
|
|
26356
|
+
inputWrapper: {
|
|
26357
|
+
paddingLeft: COUNTRY_SELECT_WIDTH
|
|
26358
|
+
},
|
|
26359
|
+
label: {
|
|
26360
|
+
marginLeft: COUNTRY_SELECT_WIDTH
|
|
26361
|
+
}
|
|
26362
|
+
},
|
|
26363
|
+
tweakCountryList: {}
|
|
26364
|
+
};
|
|
26365
26365
|
function _array_like_to_array$2(arr, len) {
|
|
26366
26366
|
if (len == null || len > arr.length)
|
|
26367
26367
|
len = arr.length;
|
|
@@ -26497,7 +26497,7 @@ var PhoneInput = function(_param) {
|
|
|
26497
26497
|
"codeSearchPlaceholder",
|
|
26498
26498
|
"noMatchesLabel"
|
|
26499
26499
|
]);
|
|
26500
|
-
var _useTheme = useTheme("PhoneInput", styles$
|
|
26500
|
+
var _useTheme = useTheme("PhoneInput", styles$7, tweakStyles), classes = _useTheme.classes, componentStyles = _useTheme.componentStyles;
|
|
26501
26501
|
var list = useRef(null);
|
|
26502
26502
|
var inputWrapper = useRef(null);
|
|
26503
26503
|
var inputRef = useRef(null);
|