@salutejs/plasma-new-hope 0.174.0-canary.1505.11483510462.0 → 0.174.0-canary.1505.11503860288.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +5 -1
- package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +5 -1
- package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +5 -1
- package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +5 -1
- package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/Combobox.js +18 -7
- package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/utils/getInitialValue.js +27 -0
- package/cjs/components/Combobox/ComboboxNew/utils/getInitialValue.js.map +1 -0
- package/cjs/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +9 -5
- package/cjs/components/Combobox/ComboboxNew/utils/initialItemsTransform.js.map +1 -1
- package/cjs/components/Select/utils/initialItemsTransform.js +6 -7
- package/cjs/components/Select/utils/initialItemsTransform.js.map +1 -1
- package/cjs/components/TextArea/TextArea.js +1 -1
- package/cjs/components/TextArea/TextArea.js.map +1 -1
- package/cjs/components/TextArea/TextArea.styles.js +2 -2
- package/cjs/components/TextArea/TextArea.styles.js.map +1 -1
- package/cjs/components/TextField/TextField.js +1 -1
- package/cjs/components/TextField/TextField.js.map +1 -1
- package/cjs/components/TextField/TextField.styles.js +2 -2
- package/cjs/components/TextField/TextField.styles.js.map +1 -1
- package/emotion/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +5 -1
- package/emotion/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +5 -1
- package/emotion/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +5 -1
- package/emotion/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +5 -1
- package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +17 -7
- package/emotion/cjs/components/Combobox/ComboboxNew/utils/getInitialValue.js +26 -0
- package/emotion/cjs/components/Combobox/ComboboxNew/utils/index.js +8 -1
- package/emotion/cjs/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +19 -5
- package/emotion/cjs/components/Select/utils/initialItemsTransform.js +6 -7
- package/emotion/cjs/components/TextArea/TextArea.js +2 -2
- package/emotion/cjs/components/TextArea/TextArea.styles.js +20 -20
- package/emotion/cjs/components/TextField/TextField.js +2 -2
- package/emotion/cjs/components/TextField/TextField.styles.js +24 -24
- package/emotion/es/components/Calendar/ui/CalendarDays/CalendarDays.js +5 -1
- package/emotion/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +5 -1
- package/emotion/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +5 -1
- package/emotion/es/components/Calendar/ui/CalendarYears/CalendarYears.js +5 -1
- package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +18 -8
- package/emotion/es/components/Combobox/ComboboxNew/utils/getInitialValue.js +20 -0
- package/emotion/es/components/Combobox/ComboboxNew/utils/index.js +2 -1
- package/emotion/es/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +19 -5
- package/emotion/es/components/Select/utils/initialItemsTransform.js +6 -7
- package/emotion/es/components/TextArea/TextArea.js +2 -2
- package/emotion/es/components/TextArea/TextArea.styles.js +20 -20
- package/emotion/es/components/TextField/TextField.js +2 -2
- package/emotion/es/components/TextField/TextField.styles.js +24 -24
- package/es/components/Calendar/ui/CalendarDays/CalendarDays.js +5 -1
- package/es/components/Calendar/ui/CalendarDays/CalendarDays.js.map +1 -1
- package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +5 -1
- package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
- package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +5 -1
- package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js.map +1 -1
- package/es/components/Calendar/ui/CalendarYears/CalendarYears.js +5 -1
- package/es/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/Combobox.js +18 -7
- package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/utils/getInitialValue.js +23 -0
- package/es/components/Combobox/ComboboxNew/utils/getInitialValue.js.map +1 -0
- package/es/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +9 -5
- package/es/components/Combobox/ComboboxNew/utils/initialItemsTransform.js.map +1 -1
- package/es/components/Select/utils/initialItemsTransform.js +6 -7
- package/es/components/Select/utils/initialItemsTransform.js.map +1 -1
- package/es/components/TextArea/TextArea.js +1 -1
- package/es/components/TextArea/TextArea.js.map +1 -1
- package/es/components/TextArea/TextArea.styles.js +2 -2
- package/es/components/TextArea/TextArea.styles.js.map +1 -1
- package/es/components/TextField/TextField.js +1 -1
- package/es/components/TextField/TextField.js.map +1 -1
- package/es/components/TextField/TextField.styles.js +2 -2
- package/es/components/TextField/TextField.styles.js.map +1 -1
- package/package.json +2 -2
- package/styled-components/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +5 -1
- package/styled-components/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +5 -1
- package/styled-components/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +5 -1
- package/styled-components/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +5 -1
- package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +17 -7
- package/styled-components/cjs/components/Combobox/ComboboxNew/utils/getInitialValue.js +26 -0
- package/styled-components/cjs/components/Combobox/ComboboxNew/utils/index.js +8 -1
- package/styled-components/cjs/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +19 -5
- package/styled-components/cjs/components/Select/utils/initialItemsTransform.js +6 -7
- package/styled-components/cjs/components/TextArea/TextArea.js +1 -1
- package/styled-components/cjs/components/TextArea/TextArea.styles.js +2 -2
- package/styled-components/cjs/components/TextField/TextField.js +1 -1
- package/styled-components/cjs/components/TextField/TextField.styles.js +2 -2
- package/styled-components/es/components/Calendar/ui/CalendarDays/CalendarDays.js +5 -1
- package/styled-components/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +5 -1
- package/styled-components/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +5 -1
- package/styled-components/es/components/Calendar/ui/CalendarYears/CalendarYears.js +5 -1
- package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +18 -8
- package/styled-components/es/components/Combobox/ComboboxNew/utils/getInitialValue.js +20 -0
- package/styled-components/es/components/Combobox/ComboboxNew/utils/index.js +2 -1
- package/styled-components/es/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +19 -5
- package/styled-components/es/components/Select/utils/initialItemsTransform.js +6 -7
- package/styled-components/es/components/TextArea/TextArea.js +1 -1
- package/styled-components/es/components/TextArea/TextArea.styles.js +2 -2
- package/styled-components/es/components/TextField/TextField.js +1 -1
- package/styled-components/es/components/TextField/TextField.styles.js +2 -2
- package/types/components/Calendar/ui/CalendarDays/CalendarDays.d.ts.map +1 -1
- package/types/components/Calendar/ui/CalendarMonths/CalendarMonths.d.ts.map +1 -1
- package/types/components/Calendar/ui/CalendarQuarters/CalendarQuarters.d.ts.map +1 -1
- package/types/components/Calendar/ui/CalendarYears/CalendarYears.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +7 -2
- package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/utils/getInitialValue.d.ts +4 -0
- package/types/components/Combobox/ComboboxNew/utils/getInitialValue.d.ts.map +1 -0
- package/types/components/Combobox/ComboboxNew/utils/index.d.ts +1 -0
- package/types/components/Combobox/ComboboxNew/utils/index.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/utils/initialItemsTransform.d.ts.map +1 -1
- package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts +4 -0
- package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts.map +1 -1
- package/types/components/Select/utils/initialItemsTransform.d.ts.map +1 -1
- package/types/components/TextArea/TextArea.styles.d.ts +1 -1
- package/types/components/TextArea/TextArea.styles.d.ts.map +1 -1
- package/types/components/TextField/TextField.styles.d.ts +1 -1
- package/types/components/TextField/TextField.styles.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +12 -0
- package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +12 -0
- package/types/examples/plasma_web/components/Combobox/Combobox.d.ts.map +1 -1
@@ -9,6 +9,12 @@ Object.defineProperty(exports, "filterItems", {
|
|
9
9
|
return _filterItems.filterItems;
|
10
10
|
}
|
11
11
|
});
|
12
|
+
Object.defineProperty(exports, "getInitialValue", {
|
13
|
+
enumerable: true,
|
14
|
+
get: function get() {
|
15
|
+
return _getInitialValue.getInitialValue;
|
16
|
+
}
|
17
|
+
});
|
12
18
|
Object.defineProperty(exports, "getItemId", {
|
13
19
|
enumerable: true,
|
14
20
|
get: function get() {
|
@@ -51,4 +57,5 @@ var _updateAncestors = /*#__PURE__*/require("./updateAncestors");
|
|
51
57
|
var _updateSingleAncestors = /*#__PURE__*/require("./updateSingleAncestors");
|
52
58
|
var _sizeToIconSize = /*#__PURE__*/require("./sizeToIconSize");
|
53
59
|
var _filterItems = /*#__PURE__*/require("./filterItems");
|
54
|
-
var _getItemId = /*#__PURE__*/require("./getItemId");
|
60
|
+
var _getItemId = /*#__PURE__*/require("./getItemId");
|
61
|
+
var _getInitialValue = /*#__PURE__*/require("./getInitialValue");
|
package/styled-components/cjs/components/Combobox/ComboboxNew/utils/initialItemsTransform.js
CHANGED
@@ -1,17 +1,31 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
4
5
|
value: true
|
5
6
|
});
|
6
7
|
exports.initialItemsTransform = void 0;
|
8
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
9
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
10
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
11
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
12
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
13
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
14
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
15
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
16
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
17
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
18
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
7
19
|
// Проходимся по массиву items и добавляем в каждый item ключ parent, который ссылается на item родителя.
|
8
20
|
// Дает возможность прохода к корневому элементу (снизу вверх).
|
21
|
+
// На выходе получаем глубокую копию исходного массива items.
|
9
22
|
var initialItemsTransform = exports.initialItemsTransform = function initialItemsTransform(items, parent) {
|
10
|
-
items.
|
11
|
-
|
12
|
-
|
13
|
-
|
23
|
+
return _toConsumableArray(items).map(function (item) {
|
24
|
+
var itemCopy = _objectSpread({}, item);
|
25
|
+
itemCopy.parent = parent;
|
26
|
+
if (itemCopy.items) {
|
27
|
+
itemCopy.items = initialItemsTransform(itemCopy.items, itemCopy);
|
14
28
|
}
|
29
|
+
return itemCopy;
|
15
30
|
});
|
16
|
-
return items;
|
17
31
|
};
|
@@ -20,13 +20,12 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
20
20
|
// Дает возможность прохода к корневому элементу (снизу вверх).
|
21
21
|
// На выходе получаем глубокую копию исходного массива items.
|
22
22
|
var initialItemsTransform = exports.initialItemsTransform = function initialItemsTransform(items, parent) {
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
item.items = initialItemsTransform(item.items, item);
|
23
|
+
return _toConsumableArray(items).map(function (item) {
|
24
|
+
var itemCopy = _objectSpread({}, item);
|
25
|
+
itemCopy.parent = parent;
|
26
|
+
if (itemCopy.items) {
|
27
|
+
itemCopy.items = initialItemsTransform(itemCopy.items, itemCopy);
|
29
28
|
}
|
29
|
+
return itemCopy;
|
30
30
|
});
|
31
|
-
return newItems;
|
32
31
|
};
|
@@ -250,7 +250,7 @@ var textAreaRoot = exports.textAreaRoot = function textAreaRoot(Root) {
|
|
250
250
|
hintView: hintView,
|
251
251
|
hintSize: hintSize
|
252
252
|
}), (hasOuterLabel || titleCaption) && /*#__PURE__*/_react["default"].createElement(_TextArea.OuterLabelWrapper, {
|
253
|
-
|
253
|
+
isInnerLabel: labelPlacement === 'inner'
|
254
254
|
}, hasOuterLabel && /*#__PURE__*/_react["default"].createElement(_TextArea.StyledIndicatorWrapper, null, /*#__PURE__*/_react["default"].createElement(_TextArea.StyledLabel, null, label), hintText && /*#__PURE__*/_react["default"].createElement(_TextArea.StyledHintWrapper, null, /*#__PURE__*/_react["default"].createElement(_Hint.HintComponent, {
|
255
255
|
ref: hintForkRef,
|
256
256
|
hintText: hintText,
|
@@ -18,8 +18,8 @@ var Hint = exports.Hint = /*#__PURE__*/(0, _styledComponents["default"])(Tooltip
|
|
18
18
|
var OuterLabelWrapper = exports.OuterLabelWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
19
19
|
componentId: "plasma-new-hope__sc-pxxv3p-1"
|
20
20
|
})(["display:flex;align-items:center;margin-bottom:", ";"], function (_ref) {
|
21
|
-
var
|
22
|
-
return
|
21
|
+
var isInnerLabel = _ref.isInnerLabel;
|
22
|
+
return isInnerLabel ? "var(".concat(_TextArea.tokens.titleCaptionInnerLabelOffset, ")") : "var(".concat(_TextArea.tokens.labelMarginBottom, ")");
|
23
23
|
});
|
24
24
|
var StyledLabel = exports.StyledLabel = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
25
25
|
componentId: "plasma-new-hope__sc-pxxv3p-2"
|
@@ -254,7 +254,7 @@ var textFieldRoot = exports.textFieldRoot = function textFieldRoot(Root) {
|
|
254
254
|
hintView: hintView,
|
255
255
|
hintSize: hintSize
|
256
256
|
}), (hasOuterLabel || titleCaption) && /*#__PURE__*/_react["default"].createElement(_TextField.OuterLabelWrapper, {
|
257
|
-
|
257
|
+
isInnerLabel: labelPlacement === 'inner'
|
258
258
|
}, hasOuterLabel && /*#__PURE__*/_react["default"].createElement(_TextField.StyledIndicatorWrapper, null, /*#__PURE__*/_react["default"].createElement(_TextField.Label, {
|
259
259
|
id: labelId,
|
260
260
|
htmlFor: id
|
@@ -35,8 +35,8 @@ var InputPlaceholder = exports.InputPlaceholder = /*#__PURE__*/_styledComponents
|
|
35
35
|
var OuterLabelWrapper = exports.OuterLabelWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
36
36
|
componentId: "plasma-new-hope__sc-g4vxbb-7"
|
37
37
|
})(["display:flex;align-items:center;margin-bottom:", ";"], function (_ref) {
|
38
|
-
var
|
39
|
-
return
|
38
|
+
var isInnerLabel = _ref.isInnerLabel;
|
39
|
+
return isInnerLabel ? "var(".concat(_TextField.tokens.titleCaptionInnerLabelOffset, ")") : "var(".concat(_TextField.tokens.labelOffset, ")");
|
40
40
|
});
|
41
41
|
var TitleCaption = exports.TitleCaption = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
42
42
|
componentId: "plasma-new-hope__sc-g4vxbb-8"
|
@@ -88,6 +88,9 @@ export var CalendarDays = function CalendarDays(_ref) {
|
|
88
88
|
}
|
89
89
|
onHoverDay === null || onHoverDay === void 0 || onHoverDay(selectedDate);
|
90
90
|
}, [getSelectedDate, onHoverDay, value]);
|
91
|
+
var handleMouseOutGrid = function handleMouseOutGrid() {
|
92
|
+
return onHoverDay === null || onHoverDay === void 0 ? void 0 : onHoverDay(undefined);
|
93
|
+
};
|
91
94
|
var getRefs = function getRefs(element, isDayInCurrentMonth, i, j) {
|
92
95
|
if (isDayInCurrentMonth) {
|
93
96
|
outerRefs.current[i + offset][j] = element;
|
@@ -102,7 +105,8 @@ export var CalendarDays = function CalendarDays(_ref) {
|
|
102
105
|
return /*#__PURE__*/React.createElement(StyledCalendarDays, {
|
103
106
|
role: "grid",
|
104
107
|
"aria-labelledby": "id-grid-label",
|
105
|
-
onKeyDown: onKeyDown
|
108
|
+
onKeyDown: onKeyDown,
|
109
|
+
onMouseLeave: handleMouseOutGrid
|
106
110
|
}, _StyledCalendarDaysHi || (_StyledCalendarDaysHi = /*#__PURE__*/React.createElement(StyledCalendarDaysHint, {
|
107
111
|
id: "withShift"
|
108
112
|
}, "\u0414\u043B\u044F \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438 \u0442\u043E\u043B\u044C\u043A\u043E \u043F\u043E \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u043C \u0434\u0430\u0442\u0430\u043C \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Shift.")), /*#__PURE__*/React.createElement(StyledFlex, {
|
@@ -92,6 +92,9 @@ export var CalendarMonths = function CalendarMonths(_ref) {
|
|
92
92
|
}
|
93
93
|
onHoverMonth === null || onHoverMonth === void 0 || onHoverMonth(selectedDate);
|
94
94
|
}, [getSelectedDate, onHoverMonth, value]);
|
95
|
+
var handleMouseOutGrid = function handleMouseOutGrid() {
|
96
|
+
return onHoverMonth === null || onHoverMonth === void 0 ? void 0 : onHoverMonth(undefined);
|
97
|
+
};
|
95
98
|
var getRefs = useCallback(function (element, i, j) {
|
96
99
|
outerRefs.current[i + offset][j] = element;
|
97
100
|
}, [offset, outerRefs]);
|
@@ -104,7 +107,8 @@ export var CalendarMonths = function CalendarMonths(_ref) {
|
|
104
107
|
return /*#__PURE__*/React.createElement(StyledCalendarMonths, {
|
105
108
|
role: "grid",
|
106
109
|
"aria-labelledby": "id-grid-label",
|
107
|
-
onKeyDown: onKeyDown
|
110
|
+
onKeyDown: onKeyDown,
|
111
|
+
onMouseLeave: handleMouseOutGrid
|
108
112
|
}, months.map(function (month, i) {
|
109
113
|
return /*#__PURE__*/React.createElement(StyledFlex, {
|
110
114
|
role: "row",
|
@@ -90,6 +90,9 @@ export var CalendarQuarters = function CalendarQuarters(_ref) {
|
|
90
90
|
}
|
91
91
|
onHoverQuarter === null || onHoverQuarter === void 0 || onHoverQuarter(selectedDate);
|
92
92
|
}, [getSelectedDate, onHoverQuarter, value]);
|
93
|
+
var handleMouseOutGrid = function handleMouseOutGrid() {
|
94
|
+
return onHoverQuarter === null || onHoverQuarter === void 0 ? void 0 : onHoverQuarter(undefined);
|
95
|
+
};
|
93
96
|
var getRefs = useCallback(function (element, i, j) {
|
94
97
|
outerRefs.current[i + offset][j] = element;
|
95
98
|
}, [offset, outerRefs]);
|
@@ -102,7 +105,8 @@ export var CalendarQuarters = function CalendarQuarters(_ref) {
|
|
102
105
|
return /*#__PURE__*/React.createElement(StyledCalendarQuarters, {
|
103
106
|
role: "grid",
|
104
107
|
"aria-labelledby": "id-grid-label",
|
105
|
-
onKeyDown: onKeyDown
|
108
|
+
onKeyDown: onKeyDown,
|
109
|
+
onMouseLeave: handleMouseOutGrid
|
106
110
|
}, quarters.map(function (quarter, i) {
|
107
111
|
return /*#__PURE__*/React.createElement(StyledFlex, {
|
108
112
|
role: "row",
|
@@ -92,6 +92,9 @@ export var CalendarYears = function CalendarYears(_ref) {
|
|
92
92
|
}
|
93
93
|
onHoverYear === null || onHoverYear === void 0 || onHoverYear(selectedDate);
|
94
94
|
}, [getSelectedDate, onHoverYear, value]);
|
95
|
+
var handleMouseOutGrid = function handleMouseOutGrid() {
|
96
|
+
return onHoverYear === null || onHoverYear === void 0 ? void 0 : onHoverYear(undefined);
|
97
|
+
};
|
95
98
|
var getRefs = useCallback(function (element, i, j) {
|
96
99
|
outerRefs.current[i + offset][j] = element;
|
97
100
|
}, [outerRefs]);
|
@@ -104,7 +107,8 @@ export var CalendarYears = function CalendarYears(_ref) {
|
|
104
107
|
return /*#__PURE__*/React.createElement(StyledCalendarYears, {
|
105
108
|
role: "grid",
|
106
109
|
"aria-labelledby": "id-grid-label",
|
107
|
-
onKeyDown: onKeyDown
|
110
|
+
onKeyDown: onKeyDown,
|
111
|
+
onMouseLeave: handleMouseOutGrid
|
108
112
|
}, years.map(function (year, i) {
|
109
113
|
return /*#__PURE__*/React.createElement(StyledFlex, {
|
110
114
|
role: "row",
|
@@ -1,4 +1,4 @@
|
|
1
|
-
var _excluded = ["multiple", "value", "onChange", "isTargetAmount", "items", "placement", "label", "placeholder", "helperText", "contentLeft", "textBefore", "textAfter", "variant", "listOverflow", "listHeight", "listWidth", "portal", "renderItem", "view", "size", "labelPlacement", "readOnly", "disabled", "alwaysOpened", "filter", "closeAfterSelect"];
|
1
|
+
var _excluded = ["multiple", "value", "onChange", "isTargetAmount", "items", "placement", "label", "placeholder", "helperText", "contentLeft", "textBefore", "textAfter", "variant", "listOverflow", "listHeight", "listWidth", "portal", "renderItem", "view", "size", "labelPlacement", "readOnly", "disabled", "alwaysOpened", "filter", "closeAfterSelect", "renderValue"];
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
3
3
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
4
4
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
@@ -16,7 +16,7 @@ import { sizeToIconSize } from '../../Select/utils';
|
|
16
16
|
import { classes } from './Combobox.tokens';
|
17
17
|
import { FloatingPopover } from './FloatingPopover';
|
18
18
|
import { useKeyNavigation, getItemByFocused } from './hooks/useKeyboardNavigation';
|
19
|
-
import { initialItemsTransform, updateAncestors, updateDescendants, updateSingleAncestors, filterItems, getItemId } from './utils';
|
19
|
+
import { initialItemsTransform, updateAncestors, updateDescendants, updateSingleAncestors, filterItems, getItemId, getInitialValue } from './utils';
|
20
20
|
import { Inner, StyledTextField } from './ui';
|
21
21
|
import { pathReducer, focusedPathReducer } from './reducers';
|
22
22
|
import { getPathMap, getTreeMaps } from './hooks/getPathMaps';
|
@@ -62,6 +62,7 @@ export var comboboxRoot = function comboboxRoot(Root) {
|
|
62
62
|
alwaysOpened = _props$alwaysOpened === void 0 ? false : _props$alwaysOpened,
|
63
63
|
filter = props.filter,
|
64
64
|
outerCloseAfterSelect = props.closeAfterSelect,
|
65
|
+
renderValue = props.renderValue,
|
65
66
|
rest = _objectWithoutProperties(props, _excluded);
|
66
67
|
// Создаем структуры для быстрой работы с деревом
|
67
68
|
var _useMemo = useMemo(function () {
|
@@ -79,7 +80,7 @@ export var comboboxRoot = function comboboxRoot(Root) {
|
|
79
80
|
_useState4 = _slicedToArray(_useState3, 2),
|
80
81
|
internalValue = _useState4[0],
|
81
82
|
setInternalValue = _useState4[1];
|
82
|
-
var value = outerValue
|
83
|
+
var value = outerValue !== null && outerValue !== undefined ? getInitialValue(outerValue, valueToItemMap) : internalValue;
|
83
84
|
var inputRef = useRef(null);
|
84
85
|
var floatingPopoverRef = useRef(null);
|
85
86
|
var inputForkRef = useForkRef(inputRef, ref);
|
@@ -276,14 +277,17 @@ export var comboboxRoot = function comboboxRoot(Root) {
|
|
276
277
|
}
|
277
278
|
};
|
278
279
|
var getChips = function getChips() {
|
279
|
-
if (multiple) {
|
280
|
+
if (multiple && Array.isArray(value)) {
|
280
281
|
if (value.length === 0) return [];
|
281
282
|
if (isTargetAmount) {
|
282
283
|
return ["\u0412\u044B\u0431\u0440\u0430\u043D\u043E ".concat(value.length)];
|
283
284
|
}
|
284
|
-
|
285
|
-
return valueToItemMap.get(
|
286
|
-
})
|
285
|
+
var mapper = renderValue && function (stringValue) {
|
286
|
+
return renderValue(valueToItemMap.get(stringValue));
|
287
|
+
} || function (stringValue) {
|
288
|
+
return valueToItemMap.get(stringValue).label;
|
289
|
+
};
|
290
|
+
return value.map(mapper);
|
287
291
|
}
|
288
292
|
return [];
|
289
293
|
};
|
@@ -311,6 +315,7 @@ export var comboboxRoot = function comboboxRoot(Root) {
|
|
311
315
|
// В данном эффекте мы следим за изменениями value снаружи и вносим коррективы в дерево чекбоксов.
|
312
316
|
// Пример: когда юзер очистил value извне, тогда нужно пройтись по элементам и выключить все чекбоксы.
|
313
317
|
useLayoutEffect(function () {
|
318
|
+
var _valueToItemMap$get4;
|
314
319
|
var checkedCopy = new Map(checked);
|
315
320
|
checkedCopy.forEach(function (_, key) {
|
316
321
|
checkedCopy.set(key, false);
|
@@ -328,7 +333,12 @@ export var comboboxRoot = function comboboxRoot(Root) {
|
|
328
333
|
}
|
329
334
|
}
|
330
335
|
setChecked(checkedCopy);
|
331
|
-
|
336
|
+
setTextValue(((_valueToItemMap$get4 = valueToItemMap.get(outerValue)) === null || _valueToItemMap$get4 === void 0 ? void 0 : _valueToItemMap$get4.label) || '');
|
337
|
+
|
338
|
+
// В deps мы кладем именно outerValue и internalValue, а не просто value.
|
339
|
+
// Т.к. вначале нужно отфильтровать и провалидировать outerValue и результат положить в переменную.
|
340
|
+
// А переменную, содержащую сложные типы данных, нельзя помещать в deps.
|
341
|
+
}, [outerValue, internalValue]);
|
332
342
|
return /*#__PURE__*/React.createElement(Root, {
|
333
343
|
size: size,
|
334
344
|
view: view,
|
@@ -0,0 +1,20 @@
|
|
1
|
+
// Утилита предназначена для фильтрации элементов в value, которые отсутствуют в items.
|
2
|
+
// Эти элементы игнорируются и не участвуют в дальнейшей работе компонента.
|
3
|
+
export var getInitialValue = function getInitialValue(outerValue, valueToItemMap) {
|
4
|
+
if (Array.isArray(outerValue)) {
|
5
|
+
if (outerValue.length === 0) {
|
6
|
+
return [];
|
7
|
+
}
|
8
|
+
var updatedValue = [];
|
9
|
+
outerValue.forEach(function (value) {
|
10
|
+
if (valueToItemMap.has(value)) {
|
11
|
+
updatedValue.push(value);
|
12
|
+
}
|
13
|
+
});
|
14
|
+
return updatedValue;
|
15
|
+
}
|
16
|
+
if (valueToItemMap.has(outerValue)) {
|
17
|
+
return outerValue;
|
18
|
+
}
|
19
|
+
return '';
|
20
|
+
};
|
@@ -4,4 +4,5 @@ export { updateAncestors } from './updateAncestors';
|
|
4
4
|
export { updateSingleAncestors } from './updateSingleAncestors';
|
5
5
|
export { sizeToIconSize } from './sizeToIconSize';
|
6
6
|
export { filterItems } from './filterItems';
|
7
|
-
export { getItemId } from './getItemId';
|
7
|
+
export { getItemId } from './getItemId';
|
8
|
+
export { getInitialValue } from './getInitialValue';
|
@@ -1,11 +1,25 @@
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
7
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
8
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
9
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
10
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
11
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
12
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
1
13
|
// Проходимся по массиву items и добавляем в каждый item ключ parent, который ссылается на item родителя.
|
2
14
|
// Дает возможность прохода к корневому элементу (снизу вверх).
|
15
|
+
// На выходе получаем глубокую копию исходного массива items.
|
3
16
|
export var initialItemsTransform = function initialItemsTransform(items, parent) {
|
4
|
-
items.
|
5
|
-
|
6
|
-
|
7
|
-
|
17
|
+
return _toConsumableArray(items).map(function (item) {
|
18
|
+
var itemCopy = _objectSpread({}, item);
|
19
|
+
itemCopy.parent = parent;
|
20
|
+
if (itemCopy.items) {
|
21
|
+
itemCopy.items = initialItemsTransform(itemCopy.items, itemCopy);
|
8
22
|
}
|
23
|
+
return itemCopy;
|
9
24
|
});
|
10
|
-
return items;
|
11
25
|
};
|
@@ -14,13 +14,12 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
14
14
|
// Дает возможность прохода к корневому элементу (снизу вверх).
|
15
15
|
// На выходе получаем глубокую копию исходного массива items.
|
16
16
|
export var initialItemsTransform = function initialItemsTransform(items, parent) {
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
item.items = initialItemsTransform(item.items, item);
|
17
|
+
return _toConsumableArray(items).map(function (item) {
|
18
|
+
var itemCopy = _objectSpread({}, item);
|
19
|
+
itemCopy.parent = parent;
|
20
|
+
if (itemCopy.items) {
|
21
|
+
itemCopy.items = initialItemsTransform(itemCopy.items, itemCopy);
|
23
22
|
}
|
23
|
+
return itemCopy;
|
24
24
|
});
|
25
|
-
return newItems;
|
26
25
|
};
|
@@ -242,7 +242,7 @@ export var textAreaRoot = function textAreaRoot(Root) {
|
|
242
242
|
hintView: hintView,
|
243
243
|
hintSize: hintSize
|
244
244
|
}), (hasOuterLabel || titleCaption) && /*#__PURE__*/React.createElement(OuterLabelWrapper, {
|
245
|
-
|
245
|
+
isInnerLabel: labelPlacement === 'inner'
|
246
246
|
}, hasOuterLabel && /*#__PURE__*/React.createElement(StyledIndicatorWrapper, null, /*#__PURE__*/React.createElement(StyledLabel, null, label), hintText && /*#__PURE__*/React.createElement(StyledHintWrapper, null, /*#__PURE__*/React.createElement(HintComponent, {
|
247
247
|
ref: hintForkRef,
|
248
248
|
hintText: hintText,
|
@@ -11,8 +11,8 @@ export var Hint = /*#__PURE__*/styled(Tooltip).withConfig({
|
|
11
11
|
export var OuterLabelWrapper = /*#__PURE__*/styled.div.withConfig({
|
12
12
|
componentId: "plasma-new-hope__sc-pxxv3p-1"
|
13
13
|
})(["display:flex;align-items:center;margin-bottom:", ";"], function (_ref) {
|
14
|
-
var
|
15
|
-
return
|
14
|
+
var isInnerLabel = _ref.isInnerLabel;
|
15
|
+
return isInnerLabel ? "var(".concat(tokens.titleCaptionInnerLabelOffset, ")") : "var(".concat(tokens.labelMarginBottom, ")");
|
16
16
|
});
|
17
17
|
export var StyledLabel = /*#__PURE__*/styled.div.withConfig({
|
18
18
|
componentId: "plasma-new-hope__sc-pxxv3p-2"
|
@@ -245,7 +245,7 @@ export var textFieldRoot = function textFieldRoot(Root) {
|
|
245
245
|
hintView: hintView,
|
246
246
|
hintSize: hintSize
|
247
247
|
}), (hasOuterLabel || titleCaption) && /*#__PURE__*/React.createElement(OuterLabelWrapper, {
|
248
|
-
|
248
|
+
isInnerLabel: labelPlacement === 'inner'
|
249
249
|
}, hasOuterLabel && /*#__PURE__*/React.createElement(StyledIndicatorWrapper, null, /*#__PURE__*/React.createElement(Label, {
|
250
250
|
id: labelId,
|
251
251
|
htmlFor: id
|
@@ -28,8 +28,8 @@ export var InputPlaceholder = /*#__PURE__*/styled.div.withConfig({
|
|
28
28
|
export var OuterLabelWrapper = /*#__PURE__*/styled.div.withConfig({
|
29
29
|
componentId: "plasma-new-hope__sc-g4vxbb-7"
|
30
30
|
})(["display:flex;align-items:center;margin-bottom:", ";"], function (_ref) {
|
31
|
-
var
|
32
|
-
return
|
31
|
+
var isInnerLabel = _ref.isInnerLabel;
|
32
|
+
return isInnerLabel ? "var(".concat(tokens.titleCaptionInnerLabelOffset, ")") : "var(".concat(tokens.labelOffset, ")");
|
33
33
|
});
|
34
34
|
export var TitleCaption = /*#__PURE__*/styled.div.withConfig({
|
35
35
|
componentId: "plasma-new-hope__sc-g4vxbb-8"
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CalendarDays.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarDays/CalendarDays.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAkB9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,
|
1
|
+
{"version":3,"file":"CalendarDays.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarDays/CalendarDays.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAkB9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAiLpD,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CalendarMonths.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarMonths/CalendarMonths.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAO9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAGlE;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,
|
1
|
+
{"version":3,"file":"CalendarMonths.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarMonths/CalendarMonths.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAO9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAGlE;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA8KxD,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CalendarQuarters.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarQuarters/CalendarQuarters.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAO9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAGtE;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,
|
1
|
+
{"version":3,"file":"CalendarQuarters.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarQuarters/CalendarQuarters.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAO9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAGtE;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA2K5D,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CalendarYears.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarYears/CalendarYears.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAO9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAGhE;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,
|
1
|
+
{"version":3,"file":"CalendarYears.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarYears/CalendarYears.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAO9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAGhE;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA+KtD,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/ComboboxNew/Combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4F,MAAM,OAAO,CAAC;AAIjH,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;
|
1
|
+
{"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/ComboboxNew/Combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4F,MAAM,OAAO,CAAC;AAIjH,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAqB7C,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKnE,eAAO,MAAM,OAAO,4BAAgD,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,YAAY,SAAU,UAAU,gBAAgB,EAAE,KAAK,aAAa,EAAE,OAAO,CAAC,CAAC,+IAqZtF,CAAC;AAEP,eAAO,MAAM,cAAc;;;mBAvZQ,UAAU,gBAAgB,EAAE,KAAK,aAAa,EAAE,OAAO,CAAC,CAAC;;;;;;;;;;;;;;;;;;CA4a3F,CAAC"}
|
@@ -4,7 +4,7 @@ import { FocusedPathState } from './reducers';
|
|
4
4
|
import { ItemOption, ItemOptionTransformed } from './ui/Inner/ui/Item/Item.types';
|
5
5
|
import type { ValueToCheckedMapType, ValueToItemMapType } from './hooks/getPathMaps';
|
6
6
|
declare type Placement = 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
|
7
|
-
declare type IsMultiselect = {
|
7
|
+
declare type IsMultiselect<T extends ItemOption = ItemOption> = {
|
8
8
|
multiple?: false;
|
9
9
|
value?: string;
|
10
10
|
onChange?: (value: string) => void;
|
@@ -13,11 +13,16 @@ declare type IsMultiselect = {
|
|
13
13
|
* @default false
|
14
14
|
*/
|
15
15
|
isTargetAmount?: never | false;
|
16
|
+
renderValue?: never;
|
16
17
|
} | {
|
17
18
|
multiple: true;
|
18
19
|
value?: Array<string>;
|
19
20
|
onChange?: (value: Array<string>) => void;
|
20
21
|
isTargetAmount?: boolean;
|
22
|
+
/**
|
23
|
+
* Callback для кастомной настройки значения в селекте.
|
24
|
+
*/
|
25
|
+
renderValue?: (item: T) => string;
|
21
26
|
};
|
22
27
|
declare type ViewStateProps = {
|
23
28
|
/**
|
@@ -142,7 +147,7 @@ export declare type ComboboxProps<T extends ItemOption = ItemOption> = {
|
|
142
147
|
* @default outer
|
143
148
|
*/
|
144
149
|
labelPlacement?: 'outer' | 'inner';
|
145
|
-
} & ViewStateProps & IsMultiselect & Omit<ButtonHTMLAttributes<HTMLInputElement>, 'value' | 'onChange'>;
|
150
|
+
} & ViewStateProps & IsMultiselect<T> & Omit<ButtonHTMLAttributes<HTMLInputElement>, 'value' | 'onChange'>;
|
146
151
|
export declare type FloatingPopoverProps = {
|
147
152
|
target: React.ReactNode | ((ref: React.MutableRefObject<HTMLElement | null>) => React.ReactNode);
|
148
153
|
children: React.ReactNode;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Combobox.types.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/ComboboxNew/Combobox.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAClF,OAAO,KAAK,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAErF,aAAK,SAAS,GACR,KAAK,GACL,WAAW,GACX,SAAS,GACT,OAAO,GACP,aAAa,GACb,WAAW,GACX,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,CAAC;AAEjB,aAAK,aAAa,
|
1
|
+
{"version":3,"file":"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,CAAC;IAC5D,eAAe,EAAE,CAAC,IAAI,EAAE,qBAAqB,EAAE,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACzF,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IAClC,UAAU,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACxC,cAAc,EAAE,kBAAkB,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { ComboboxProps } from '../Combobox.types';
|
2
|
+
import { ValueToItemMapType } from '../hooks/getPathMaps';
|
3
|
+
export declare const getInitialValue: (outerValue: NonNullable<ComboboxProps['value']>, valueToItemMap: ValueToItemMapType) => string | string[];
|
4
|
+
//# sourceMappingURL=getInitialValue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getInitialValue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Combobox/ComboboxNew/utils/getInitialValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAI1D,eAAO,MAAM,eAAe,eACZ,YAAY,aAAa,CAAC,OAAO,CAAC,CAAC,0DAwBlD,CAAC"}
|
@@ -5,4 +5,5 @@ export { updateSingleAncestors } from './updateSingleAncestors';
|
|
5
5
|
export { sizeToIconSize } from './sizeToIconSize';
|
6
6
|
export { filterItems } from './filterItems';
|
7
7
|
export { getItemId } from './getItemId';
|
8
|
+
export { getInitialValue } from './getInitialValue';
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Combobox/ComboboxNew/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Combobox/ComboboxNew/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"initialItemsTransform.d.ts","sourceRoot":"","sources":["../../../../../src/components/Combobox/ComboboxNew/utils/initialItemsTransform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;
|
1
|
+
{"version":3,"file":"initialItemsTransform.d.ts","sourceRoot":"","sources":["../../../../../src/components/Combobox/ComboboxNew/utils/initialItemsTransform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAKvE,eAAO,MAAM,qBAAqB,UACvB,MAAM,qBAAqB,CAAC,iDAEpC,MAAM,qBAAqB,CAY7B,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SingleDate.types.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/SingleDate/SingleDate.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvE,OAAO,KAAK,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACjG,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAE9D,oBAAY,wBAAwB,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AAC3E,oBAAY,mBAAmB,GAAG,wBAAwB,GAAG,MAAM,CAAC;AAEpE,oBAAY,wBAAwB,GAAG;IACnC;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IACjC;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE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C,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzF;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE;YAAE,KAAK,CAAC,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,KAAK,IAAI,CAAC;CAC7E,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACjC;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,mBAAmB,GAAG,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAClE;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,SAAS,CAAC,WAAW,CAAC,CAAC;IACrD;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,cAAc,GAAG,KAAK,KAAK,IAAI,CAAC;CACvE,CAAC;AAEF,oBAAY,eAAe,GAAG,wBAAwB,GAClD,wBAAwB,GACxB,uBAAuB,GACvB,sBAAsB,GACtB,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,cAAc,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"initialItemsTransform.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/utils/initialItemsTransform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAK/E,eAAO,MAAM,qBAAqB,UACvB,MAAM,6BAA6B,CAAC,yDAE5C,MAAM,6BAA6B,
|
1
|
+
{"version":3,"file":"initialItemsTransform.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/utils/initialItemsTransform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAK/E,eAAO,MAAM,qBAAqB,UACvB,MAAM,6BAA6B,CAAC,yDAE5C,MAAM,6BAA6B,CAYrC,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
export declare const Hint: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("../../engines/types").PropsType<import("../../engines/types").Variants> & import("../Tooltip").TooltipProps & import("react").RefAttributes<HTMLDivElement>>;
|
3
3
|
export declare const OuterLabelWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
4
|
-
|
4
|
+
isInnerLabel: boolean;
|
5
5
|
}>;
|
6
6
|
export declare const StyledLabel: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
7
7
|
export declare const TitleCaption: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TextArea.styles.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.styles.ts"],"names":[],"mappings":";AAWA,eAAO,MAAM,IAAI,8OAAoB,CAAC;AAEtC,eAAO,MAAM,iBAAiB;
|
1
|
+
{"version":3,"file":"TextArea.styles.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.styles.ts"],"names":[],"mappings":";AAWA,eAAO,MAAM,IAAI,8OAAoB,CAAC;AAEtC,eAAO,MAAM,iBAAiB;kBAA8B,OAAO;EAMlE,CAAC;AAEF,eAAO,MAAM,WAAW,qKAWvB,CAAC;AAEF,eAAO,MAAM,YAAY,qKAUxB,CAAC;AAEF,eAAO,MAAM,sBAAsB,qKAIlC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;EAe9B,CAAC;AAEF,eAAO,MAAM,iBAAiB,qKAU7B,CAAC;AAEF,eAAO,MAAM,iBAAiB,qKAQ7B,CAAC;AAEF,eAAO,MAAM,eAAe,qKAAe,CAAC;AAE5C,eAAO,MAAM,qBAAqB;eACnB,OAAO;EAUrB,CAAC;AAEF,eAAO,MAAM,aAAa,qKAazB,CAAC;AAEF,eAAO,MAAM,eAAe;WAAuB,MAAM;EAOxD,CAAC;AAEF,eAAO,MAAM,cAAc;eACZ,OAAO;qBACD,OAAO;sBACN,OAAO;;;;EAkG5B,CAAC;AAEF,eAAO,MAAM,aAAa,qKAgBzB,CAAC;AAEF,eAAO,MAAM,gBAAgB,uKAa5B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;EAG7B,CAAC;AAEF,eAAO,MAAM,iBAAiB;qBACT,OAAO;EA2B3B,CAAC;AAEF,eAAO,MAAM,eAAe,qKA6B3B,CAAC"}
|
@@ -7,7 +7,7 @@ export declare const Input: import("@linaria/react").StyledComponent<import("rea
|
|
7
7
|
export declare const InputContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
8
8
|
export declare const InputPlaceholder: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
9
9
|
export declare const OuterLabelWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
10
|
-
|
10
|
+
isInnerLabel: boolean;
|
11
11
|
}>;
|
12
12
|
export declare const TitleCaption: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
13
13
|
export declare const StyledIndicatorWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|