@epam/uui 4.8.0-beta.0 → 4.8.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/assets/styles/buttonLayout.scss +66 -66
- package/assets/styles/controlLayout.scss +11 -11
- package/assets/styles/effects.scss +8 -8
- package/assets/styles/font-faces.scss +51 -51
- package/assets/styles/fonts-variables.scss +24 -24
- package/assets/styles/icons.scss +18 -18
- package/assets/styles/index.scss +7 -7
- package/assets/styles/inputs.scss +69 -69
- package/assets/styles/layout-mixins.scss +8 -8
- package/assets/styles/prettifyScrollBar.scss +44 -44
- package/assets/styles/text-layout.scss +80 -80
- package/assets/styles/text-size.scss +37 -37
- package/assets/styles/typography.scss +3 -3
- package/assets/styles/variables/buttons/button.scss +70 -70
- package/assets/styles/variables/buttons/iconButton.scss +41 -41
- package/assets/styles/variables/buttons/linkButton.scss +6 -6
- package/assets/styles/variables/buttons/tabButton.scss +8 -8
- package/assets/styles/variables/inputs/checkbox.scss +18 -18
- package/assets/styles/variables/inputs/radioInput.scss +14 -14
- package/assets/styles/variables/inputs/switch.scss +24 -24
- package/assets/styles/variables/inputs/textInput.scss +21 -21
- package/assets/styles/variables/layout/accordion.scss +10 -10
- package/assets/styles/variables/layout/iconContainer.scss +22 -22
- package/assets/styles/variables/layout/labeledInput.scss +8 -8
- package/assets/styles/variables/layout/panel.scss +5 -5
- package/assets/styles/variables/layout/scrollBars.scss +3 -3
- package/assets/styles/variables/overlays/dropdownContainer.scss +4 -4
- package/assets/styles/variables/overlays/modals.scss +5 -5
- package/assets/styles/variables/overlays/notificationCard.scss +27 -27
- package/assets/styles/variables/overlays/tooltip.scss +8 -8
- package/assets/styles/variables/pickers/pickerToggler.scss +15 -15
- package/assets/styles/variables/typography/text.scss +19 -19
- package/assets/styles/variables/typography/textPlaceholder.scss +4 -4
- package/assets/styles/variables/widgets/badge.scss +50 -50
- package/assets/styles/variables/widgets/tag.scss +9 -9
- package/bundle-stats.json +1 -1
- package/components/buttons/Button.d.ts +13 -13
- package/components/buttons/IconButton.d.ts +11 -11
- package/components/buttons/LinkButton.d.ts +8 -8
- package/components/buttons/TabButton.d.ts +8 -8
- package/components/buttons/VerticalTabButton.d.ts +4 -4
- package/components/buttons/docs/button.doc.d.ts +5 -5
- package/components/buttons/docs/linkButton.doc.d.ts +5 -5
- package/components/buttons/helper.d.ts +2 -2
- package/components/buttons/index.d.ts +5 -5
- package/components/index.d.ts +9 -9
- package/components/inputs/Checkbox.d.ts +9 -9
- package/components/inputs/RadioInput.d.ts +7 -7
- package/components/inputs/Switch.d.ts +8 -8
- package/components/inputs/TextInput.d.ts +13 -13
- package/components/inputs/docs/checkbox.doc.d.ts +5 -5
- package/components/inputs/docs/radioInput.doc.d.ts +5 -5
- package/components/inputs/docs/switch.doc.d.ts +5 -5
- package/components/inputs/docs/textInput.doc.d.ts +5 -5
- package/components/inputs/index.d.ts +4 -4
- package/components/layout/Accordion.d.ts +8 -8
- package/components/layout/ControlGroup.d.ts +3 -3
- package/components/layout/FlexItems/FlexCell.d.ts +11 -11
- package/components/layout/FlexItems/FlexRow.d.ts +14 -14
- package/components/layout/FlexItems/FlexSpacer.d.ts +4 -4
- package/components/layout/FlexItems/Panel.d.ts +10 -10
- package/components/layout/FlexItems/index.d.ts +4 -4
- package/components/layout/IconContainer.d.ts +9 -9
- package/components/layout/LabeledInput.d.ts +7 -7
- package/components/layout/RadioGroup.d.ts +3 -3
- package/components/layout/ScrollBars.d.ts +5 -5
- package/components/layout/VirtualList.d.ts +7 -7
- package/components/layout/index.d.ts +8 -8
- package/components/overlays/Dropdown.d.ts +5 -5
- package/components/overlays/DropdownContainer.d.ts +6 -6
- package/components/overlays/DropdownMenu.d.ts +36 -36
- package/components/overlays/DropdownMenu.d.ts.map +1 -1
- package/components/overlays/Modals.d.ts +23 -23
- package/components/overlays/NotificationCard.d.ts +30 -30
- package/components/overlays/Tooltip.d.ts +6 -6
- package/components/overlays/index.d.ts +6 -6
- package/components/pickers/DataPickerBody.d.ts +15 -15
- package/components/pickers/DataPickerFooter.d.ts +8 -8
- package/components/pickers/DataPickerFooter.d.ts.map +1 -1
- package/components/pickers/DataPickerHeader.d.ts +7 -7
- package/components/pickers/DataPickerRow.d.ts +15 -15
- package/components/pickers/DataPickerRow.d.ts.map +1 -1
- package/components/pickers/MobileDropdownWrapper.d.ts +10 -10
- package/components/pickers/PickerInput.d.ts +16 -16
- package/components/pickers/PickerInput.d.ts.map +1 -1
- package/components/pickers/PickerItem.d.ts +12 -12
- package/components/pickers/PickerList.d.ts +17 -17
- package/components/pickers/PickerList.d.ts.map +1 -1
- package/components/pickers/PickerListItem.d.ts +8 -8
- package/components/pickers/PickerModal.d.ts +15 -15
- package/components/pickers/PickerModal.d.ts.map +1 -1
- package/components/pickers/PickerToggler.d.ts +8 -8
- package/components/pickers/docs/common.d.ts +27 -27
- package/components/pickers/docs/pickerInput.doc.d.ts +4 -4
- package/components/pickers/docs/pickerToggler.doc.d.ts +5 -5
- package/components/pickers/index.d.ts +11 -11
- package/components/tables/DataTableCell.d.ts +9 -9
- package/components/tables/DataTableCell.d.ts.map +1 -1
- package/components/tables/Presets/Preset.d.ts +14 -14
- package/components/tables/Presets/Presets.d.ts +8 -8
- package/components/tables/Presets/index.d.ts +2 -2
- package/components/tables/index.d.ts +3 -3
- package/components/tables/types.d.ts +8 -8
- package/components/types.d.ts +28 -28
- package/components/typography/Text.d.ts +11 -11
- package/components/typography/TextPlaceholder.d.ts +7 -7
- package/components/typography/docs/textPlaceholder.doc.d.ts +4 -4
- package/components/typography/index.d.ts +2 -2
- package/components/widgets/Avatar.d.ts +3 -3
- package/components/widgets/Badge.d.ts +15 -15
- package/components/widgets/Tag.d.ts +8 -8
- package/components/widgets/index.d.ts +3 -3
- package/docs/common.d.ts +10 -10
- package/docs/contexts/DefaultContext.d.ts +6 -6
- package/docs/contexts/index.d.ts +1 -1
- package/docs/index.d.ts +2 -2
- package/helpers/textLayout.d.ts +8 -8
- package/i18n.d.ts +50 -50
- package/icons/icons.d.ts +3 -3
- package/index.d.ts +3 -3
- package/index.docs.d.ts +5 -5
- package/index.js +1782 -1781
- package/index.js.map +1 -1
- package/package.json +6 -6
- package/readme.md +4 -4
- package/styles.css +619 -617
- package/styles.css.map +1 -1
package/index.js
CHANGED
|
@@ -122,7 +122,8 @@ var SvgNavigationClose24 = function SvgNavigationClose24(_ref) {
|
|
|
122
122
|
ref: svgRef
|
|
123
123
|
}, props), _path || (_path = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("path", {
|
|
124
124
|
fillRule: "evenodd",
|
|
125
|
-
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41
|
|
125
|
+
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z",
|
|
126
|
+
clipRule: "evenodd"
|
|
126
127
|
})));
|
|
127
128
|
};
|
|
128
129
|
|
|
@@ -131,7 +132,7 @@ var ForwardRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.forwa
|
|
|
131
132
|
svgRef: ref
|
|
132
133
|
}, props));
|
|
133
134
|
});
|
|
134
|
-
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "
|
|
135
|
+
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "0ba933379964baa06b26e42142037b8c.svg");
|
|
135
136
|
|
|
136
137
|
|
|
137
138
|
/***/ }),
|
|
@@ -171,7 +172,8 @@ var SvgNavigationMoreVert12 = function SvgNavigationMoreVert12(_ref) {
|
|
|
171
172
|
ref: svgRef
|
|
172
173
|
}, props), _path || (_path = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("path", {
|
|
173
174
|
fillRule: "evenodd",
|
|
174
|
-
d: "M6 4c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0 1c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 3c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1z"
|
|
175
|
+
d: "M6 4c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0 1c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 3c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1z",
|
|
176
|
+
clipRule: "evenodd"
|
|
175
177
|
})));
|
|
176
178
|
};
|
|
177
179
|
|
|
@@ -180,7 +182,7 @@ var ForwardRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.forwa
|
|
|
180
182
|
svgRef: ref
|
|
181
183
|
}, props));
|
|
182
184
|
});
|
|
183
|
-
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "
|
|
185
|
+
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "dbb2b4b59958a58edd4c47ba24a011ff.svg");
|
|
184
186
|
|
|
185
187
|
|
|
186
188
|
/***/ }),
|
|
@@ -219,8 +221,7 @@ var SvgNotificationDone12 = function SvgNotificationDone12(_ref) {
|
|
|
219
221
|
viewBox: "0 0 12 12",
|
|
220
222
|
ref: svgRef
|
|
221
223
|
}, props), _path || (_path = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("path", {
|
|
222
|
-
|
|
223
|
-
d: "M9.462 2L11 3.6 4.846 10 3.308 8.4 1 6l1.538-1.6 2.308 2.399L9.462 2z"
|
|
224
|
+
d: "M11 3.6L9.462 2 4.846 6.8 2.538 4.4 1 6l3.846 4L11 3.6z"
|
|
224
225
|
})));
|
|
225
226
|
};
|
|
226
227
|
|
|
@@ -229,7 +230,7 @@ var ForwardRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.forwa
|
|
|
229
230
|
svgRef: ref
|
|
230
231
|
}, props));
|
|
231
232
|
});
|
|
232
|
-
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "
|
|
233
|
+
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "68b777821bbbc2492210a623b4570e14.svg");
|
|
233
234
|
|
|
234
235
|
|
|
235
236
|
/***/ }),
|
|
@@ -269,7 +270,8 @@ var SvgNotificationDone18 = function SvgNotificationDone18(_ref) {
|
|
|
269
270
|
ref: svgRef
|
|
270
271
|
}, props), _path || (_path = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("path", {
|
|
271
272
|
fillRule: "evenodd",
|
|
272
|
-
d: "M7.136 11.91L4.034 8.776 3 9.821 7.136 14 16 5.045 14.966
|
|
273
|
+
d: "M7.136 11.91L4.034 8.776 3 9.821 7.136 14 16 5.045 14.966 4l-7.83 7.91z",
|
|
274
|
+
clipRule: "evenodd"
|
|
273
275
|
})));
|
|
274
276
|
};
|
|
275
277
|
|
|
@@ -278,7 +280,7 @@ var ForwardRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.forwa
|
|
|
278
280
|
svgRef: ref
|
|
279
281
|
}, props));
|
|
280
282
|
});
|
|
281
|
-
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "
|
|
283
|
+
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "9ef06439f464b69c944ed641c4c2bc32.svg");
|
|
282
284
|
|
|
283
285
|
|
|
284
286
|
/***/ }),
|
|
@@ -318,7 +320,8 @@ var SvgNotificationDone24 = function SvgNotificationDone24(_ref) {
|
|
|
318
320
|
ref: svgRef
|
|
319
321
|
}, props), _path || (_path = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("path", {
|
|
320
322
|
fillRule: "evenodd",
|
|
321
|
-
d: "M9.727 16.075l-4.295-4.388L4 13.149 9.727 19 22 6.463 20.568
|
|
323
|
+
d: "M9.727 16.075l-4.295-4.388L4 13.149 9.727 19 22 6.463 20.568 5 9.728 16.075z",
|
|
324
|
+
clipRule: "evenodd"
|
|
322
325
|
})));
|
|
323
326
|
};
|
|
324
327
|
|
|
@@ -327,7 +330,7 @@ var ForwardRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.forwa
|
|
|
327
330
|
svgRef: ref
|
|
328
331
|
}, props));
|
|
329
332
|
});
|
|
330
|
-
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "
|
|
333
|
+
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "e0116bdd3134e03379fb18c289eee302.svg");
|
|
331
334
|
|
|
332
335
|
|
|
333
336
|
/***/ }),
|
|
@@ -648,7 +651,7 @@ function __classPrivateFieldIn(state, receiver) {
|
|
|
648
651
|
/***/ (function(module, exports, __webpack_require__) {
|
|
649
652
|
|
|
650
653
|
// extracted by mini-css-extract-plugin
|
|
651
|
-
module.exports = {"line-height-12":"
|
|
654
|
+
module.exports = {"line-height-12":"_2yVC4","lineHeight12":"_2yVC4","line-height-18":"_1NxRE","lineHeight18":"_1NxRE","line-height-24":"_2Hyu3","lineHeight24":"_2Hyu3","line-height-30":"_3fa2a","lineHeight30":"_3fa2a","font-size-10":"_2ivZt","fontSize10":"_2ivZt","font-size-12":"_3o9Be","fontSize12":"_3o9Be","font-size-14":"_2lmTD","fontSize14":"_2lmTD","font-size-16":"_385_e","fontSize16":"_385_e","font-size-18":"_3ApM5","fontSize18":"_3ApM5","font-size-24":"_39dlg","fontSize24":"_39dlg","v-padding-2":"QqfN3","vPadding2":"QqfN3","v-padding-3":"_2b8uj","vPadding3":"_2b8uj","v-padding-5":"_1o8HE","vPadding5":"_1o8HE","v-padding-6":"_3Kp6e","vPadding6":"_3Kp6e","v-padding-8":"_20uHM","vPadding8":"_20uHM","v-padding-9":"kLVCn","vPadding9":"kLVCn","v-padding-11":"_16_9S","vPadding11":"_16_9S","v-padding-12":"_12535","vPadding12":"_12535","v-padding-14":"AfnLy","vPadding14":"AfnLy","v-padding-15":"_1qV5x","vPadding15":"_1qV5x","v-padding-17":"T7EDu","vPadding17":"T7EDu","v-padding-18":"_15vGB","vPadding18":"_15vGB","v-padding-23":"_1Rax8","vPadding23":"_1Rax8","v-padding-24":"_2Jj44","vPadding24":"_2Jj44"};
|
|
652
655
|
|
|
653
656
|
/***/ }),
|
|
654
657
|
|
|
@@ -902,7 +905,7 @@ module.exports = {"line-height-12":"_35Qvs","lineHeight12":"_35Qvs","line-height
|
|
|
902
905
|
/***/ (function(module, exports, __webpack_require__) {
|
|
903
906
|
|
|
904
907
|
// extracted by mini-css-extract-plugin
|
|
905
|
-
module.exports = {"root":"
|
|
908
|
+
module.exports = {"root":"_1T-iu","mode-solid":"_2GD5e","modeSolid":"_2GD5e","mode-outline":"_1w81d","modeOutline":"_1w81d","mode-none":"_3w3pR","modeNone":"_3w3pR","mode-ghost":"_2W16m","modeGhost":"_2W16m","size-24":"wLgay","size24":"wLgay","size-30":"_13Ab0","size30":"_13Ab0","size-36":"_20ae7","size36":"_20ae7","size-42":"_2fdyo","size42":"_2fdyo","size-48":"c6fN8","size48":"c6fN8"};
|
|
906
909
|
|
|
907
910
|
/***/ }),
|
|
908
911
|
|
|
@@ -914,31 +917,31 @@ module.exports = {"root":"_1qKFr","mode-solid":"_33TYP","modeSolid":"_33TYP","mo
|
|
|
914
917
|
/***/ (function(module, exports, __webpack_require__) {
|
|
915
918
|
|
|
916
919
|
"use strict";
|
|
917
|
-
|
|
918
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
919
|
-
exports.Button = exports.applyButtonMods = exports.allButtonColors = void 0;
|
|
920
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
921
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
922
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
923
|
-
var icons_1 = __webpack_require__(/*! ../../icons/icons */ "./icons/icons.tsx");
|
|
924
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Button.scss */ "./components/buttons/Button.scss"));
|
|
925
|
-
__webpack_require__(/*! ../../assets/styles/variables/buttons/button.scss */ "./assets/styles/variables/buttons/button.scss");
|
|
926
|
-
exports.allButtonColors = ['accent', 'primary', 'secondary', 'negative'];
|
|
927
|
-
var defaultSize = '36';
|
|
928
|
-
function applyButtonMods(mods) {
|
|
929
|
-
return [
|
|
930
|
-
'button-vars',
|
|
931
|
-
"button-color-".concat(mods.color || 'primary'),
|
|
932
|
-
css.root,
|
|
933
|
-
css["size-".concat(mods.size || defaultSize)],
|
|
934
|
-
css["mode-".concat(mods.mode || 'solid')],
|
|
935
|
-
];
|
|
936
|
-
}
|
|
937
|
-
exports.applyButtonMods = applyButtonMods;
|
|
938
|
-
exports.Button = (0, uui_core_1.withMods)(uui_components_1.Button, applyButtonMods, function (props) { return ({
|
|
939
|
-
dropdownIcon: icons_1.systemIcons[props.size || defaultSize].foldingArrow,
|
|
940
|
-
clearIcon: icons_1.systemIcons[props.size || defaultSize].clear,
|
|
941
|
-
}); });
|
|
920
|
+
|
|
921
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
922
|
+
exports.Button = exports.applyButtonMods = exports.allButtonColors = void 0;
|
|
923
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
924
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
925
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
926
|
+
var icons_1 = __webpack_require__(/*! ../../icons/icons */ "./icons/icons.tsx");
|
|
927
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Button.scss */ "./components/buttons/Button.scss"));
|
|
928
|
+
__webpack_require__(/*! ../../assets/styles/variables/buttons/button.scss */ "./assets/styles/variables/buttons/button.scss");
|
|
929
|
+
exports.allButtonColors = ['accent', 'primary', 'secondary', 'negative'];
|
|
930
|
+
var defaultSize = '36';
|
|
931
|
+
function applyButtonMods(mods) {
|
|
932
|
+
return [
|
|
933
|
+
'button-vars',
|
|
934
|
+
"button-color-".concat(mods.color || 'primary'),
|
|
935
|
+
css.root,
|
|
936
|
+
css["size-".concat(mods.size || defaultSize)],
|
|
937
|
+
css["mode-".concat(mods.mode || 'solid')],
|
|
938
|
+
];
|
|
939
|
+
}
|
|
940
|
+
exports.applyButtonMods = applyButtonMods;
|
|
941
|
+
exports.Button = (0, uui_core_1.withMods)(uui_components_1.Button, applyButtonMods, function (props) { return ({
|
|
942
|
+
dropdownIcon: icons_1.systemIcons[props.size || defaultSize].foldingArrow,
|
|
943
|
+
clearIcon: icons_1.systemIcons[props.size || defaultSize].clear,
|
|
944
|
+
}); });
|
|
942
945
|
|
|
943
946
|
|
|
944
947
|
/***/ }),
|
|
@@ -951,7 +954,7 @@ exports.Button = (0, uui_core_1.withMods)(uui_components_1.Button, applyButtonMo
|
|
|
951
954
|
/***/ (function(module, exports, __webpack_require__) {
|
|
952
955
|
|
|
953
956
|
// extracted by mini-css-extract-plugin
|
|
954
|
-
module.exports = {"root":"
|
|
957
|
+
module.exports = {"root":"_3bO7Y"};
|
|
955
958
|
|
|
956
959
|
/***/ }),
|
|
957
960
|
|
|
@@ -963,22 +966,22 @@ module.exports = {"root":"_1s_Eo"};
|
|
|
963
966
|
/***/ (function(module, exports, __webpack_require__) {
|
|
964
967
|
|
|
965
968
|
"use strict";
|
|
966
|
-
|
|
967
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
968
|
-
exports.IconButton = exports.allIconColors = void 0;
|
|
969
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
970
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
971
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
972
|
-
__webpack_require__(/*! ../../assets/styles/variables/buttons/iconButton.scss */ "./assets/styles/variables/buttons/iconButton.scss");
|
|
973
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./IconButton.scss */ "./components/buttons/IconButton.scss"));
|
|
974
|
-
exports.allIconColors = ['info', 'success', 'warning', 'error', 'secondary', 'default'];
|
|
975
|
-
function applyIconButtonMods(mods) {
|
|
976
|
-
return [
|
|
977
|
-
"icon-button-color-".concat(mods.color || 'default'),
|
|
978
|
-
css.root,
|
|
979
|
-
];
|
|
980
|
-
}
|
|
981
|
-
exports.IconButton = (0, uui_core_1.withMods)(uui_components_1.IconButton, applyIconButtonMods);
|
|
969
|
+
|
|
970
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
971
|
+
exports.IconButton = exports.allIconColors = void 0;
|
|
972
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
973
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
974
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
975
|
+
__webpack_require__(/*! ../../assets/styles/variables/buttons/iconButton.scss */ "./assets/styles/variables/buttons/iconButton.scss");
|
|
976
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./IconButton.scss */ "./components/buttons/IconButton.scss"));
|
|
977
|
+
exports.allIconColors = ['info', 'success', 'warning', 'error', 'secondary', 'default'];
|
|
978
|
+
function applyIconButtonMods(mods) {
|
|
979
|
+
return [
|
|
980
|
+
"icon-button-color-".concat(mods.color || 'default'),
|
|
981
|
+
css.root,
|
|
982
|
+
];
|
|
983
|
+
}
|
|
984
|
+
exports.IconButton = (0, uui_core_1.withMods)(uui_components_1.IconButton, applyIconButtonMods);
|
|
982
985
|
|
|
983
986
|
|
|
984
987
|
/***/ }),
|
|
@@ -991,7 +994,7 @@ exports.IconButton = (0, uui_core_1.withMods)(uui_components_1.IconButton, apply
|
|
|
991
994
|
/***/ (function(module, exports, __webpack_require__) {
|
|
992
995
|
|
|
993
996
|
// extracted by mini-css-extract-plugin
|
|
994
|
-
module.exports = {"root":"
|
|
997
|
+
module.exports = {"root":"_3KTPe","size-18":"_3pUiu","size18":"_3pUiu","size-24":"wB4ds","size24":"wB4ds","size-30":"_26UYD","size30":"_26UYD","size-36":"_3wL-e","size36":"_3wL-e","size-42":"QpCTc","size42":"QpCTc","size-48":"_1y_kE","size48":"_1y_kE"};
|
|
995
998
|
|
|
996
999
|
/***/ }),
|
|
997
1000
|
|
|
@@ -1003,28 +1006,28 @@ module.exports = {"root":"_3CJRl","size-18":"_2wYRl","size18":"_2wYRl","size-24"
|
|
|
1003
1006
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1004
1007
|
|
|
1005
1008
|
"use strict";
|
|
1006
|
-
|
|
1007
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1008
|
-
exports.LinkButton = void 0;
|
|
1009
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1010
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1011
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1012
|
-
var icons_1 = __webpack_require__(/*! ../../icons/icons */ "./icons/icons.tsx");
|
|
1013
|
-
var helper_1 = __webpack_require__(/*! ./helper */ "./components/buttons/helper.ts");
|
|
1014
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./LinkButton.scss */ "./components/buttons/LinkButton.scss"));
|
|
1015
|
-
__webpack_require__(/*! ../../assets/styles/variables/buttons/linkButton.scss */ "./assets/styles/variables/buttons/linkButton.scss");
|
|
1016
|
-
var defaultSize = '36';
|
|
1017
|
-
function applyLinkButtonMods(mods) {
|
|
1018
|
-
return (0, tslib_1.__spreadArray)([
|
|
1019
|
-
'link-button-vars',
|
|
1020
|
-
css.root,
|
|
1021
|
-
css['size-' + (mods.size || defaultSize)]
|
|
1022
|
-
], (0, helper_1.getIconClass)(mods), true);
|
|
1023
|
-
}
|
|
1024
|
-
exports.LinkButton = (0, uui_core_1.withMods)(uui_components_1.Button, applyLinkButtonMods, function (props) { return ({
|
|
1025
|
-
dropdownIcon: icons_1.systemIcons[props.size || defaultSize].foldingArrow,
|
|
1026
|
-
clearIcon: icons_1.systemIcons[props.size || defaultSize].clear,
|
|
1027
|
-
}); });
|
|
1009
|
+
|
|
1010
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1011
|
+
exports.LinkButton = void 0;
|
|
1012
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1013
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1014
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1015
|
+
var icons_1 = __webpack_require__(/*! ../../icons/icons */ "./icons/icons.tsx");
|
|
1016
|
+
var helper_1 = __webpack_require__(/*! ./helper */ "./components/buttons/helper.ts");
|
|
1017
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./LinkButton.scss */ "./components/buttons/LinkButton.scss"));
|
|
1018
|
+
__webpack_require__(/*! ../../assets/styles/variables/buttons/linkButton.scss */ "./assets/styles/variables/buttons/linkButton.scss");
|
|
1019
|
+
var defaultSize = '36';
|
|
1020
|
+
function applyLinkButtonMods(mods) {
|
|
1021
|
+
return (0, tslib_1.__spreadArray)([
|
|
1022
|
+
'link-button-vars',
|
|
1023
|
+
css.root,
|
|
1024
|
+
css['size-' + (mods.size || defaultSize)]
|
|
1025
|
+
], (0, helper_1.getIconClass)(mods), true);
|
|
1026
|
+
}
|
|
1027
|
+
exports.LinkButton = (0, uui_core_1.withMods)(uui_components_1.Button, applyLinkButtonMods, function (props) { return ({
|
|
1028
|
+
dropdownIcon: icons_1.systemIcons[props.size || defaultSize].foldingArrow,
|
|
1029
|
+
clearIcon: icons_1.systemIcons[props.size || defaultSize].clear,
|
|
1030
|
+
}); });
|
|
1028
1031
|
|
|
1029
1032
|
|
|
1030
1033
|
/***/ }),
|
|
@@ -1037,7 +1040,7 @@ exports.LinkButton = (0, uui_core_1.withMods)(uui_components_1.Button, applyLink
|
|
|
1037
1040
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1038
1041
|
|
|
1039
1042
|
// extracted by mini-css-extract-plugin
|
|
1040
|
-
module.exports = {"root":"
|
|
1043
|
+
module.exports = {"root":"_114hH","uui-notification":"Y2e6u","uuiNotification":"Y2e6u","size-36":"_2ImIX","size36":"_2ImIX","size-48":"GV2F8","size48":"GV2F8","size-60":"_15R6y","size60":"_15R6y"};
|
|
1041
1044
|
|
|
1042
1045
|
/***/ }),
|
|
1043
1046
|
|
|
@@ -1049,25 +1052,25 @@ module.exports = {"root":"nBKxj","uui-notification":"QU4pL","uuiNotification":"Q
|
|
|
1049
1052
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1050
1053
|
|
|
1051
1054
|
"use strict";
|
|
1052
|
-
|
|
1053
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1054
|
-
exports.TabButton = void 0;
|
|
1055
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1056
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1057
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1058
|
-
var icons_1 = __webpack_require__(/*! ../../icons/icons */ "./icons/icons.tsx");
|
|
1059
|
-
var helper_1 = __webpack_require__(/*! ./helper */ "./components/buttons/helper.ts");
|
|
1060
|
-
__webpack_require__(/*! ../../assets/styles/variables/buttons/tabButton.scss */ "./assets/styles/variables/buttons/tabButton.scss");
|
|
1061
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./TabButton.scss */ "./components/buttons/TabButton.scss"));
|
|
1062
|
-
function applyTabButtonMods(mods) {
|
|
1063
|
-
return (0, tslib_1.__spreadArray)([
|
|
1064
|
-
'tab-button-vars',
|
|
1065
|
-
css.root,
|
|
1066
|
-
css['size-' + (mods.size || '48')],
|
|
1067
|
-
mods.withNotify && css.uuiNotification
|
|
1068
|
-
], (0, helper_1.getIconClass)(mods), true);
|
|
1069
|
-
}
|
|
1070
|
-
exports.TabButton = (0, uui_core_1.withMods)(uui_components_1.Button, applyTabButtonMods, function (props) { return ((0, tslib_1.__assign)((0, tslib_1.__assign)({ dropdownIcon: icons_1.systemIcons['36'].foldingArrow, clearIcon: icons_1.systemIcons['36'].clear, countPosition: 'right' }, props), { rawProps: (0, tslib_1.__assign)({ role: 'tab' }, props.rawProps) })); });
|
|
1055
|
+
|
|
1056
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1057
|
+
exports.TabButton = void 0;
|
|
1058
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1059
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1060
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1061
|
+
var icons_1 = __webpack_require__(/*! ../../icons/icons */ "./icons/icons.tsx");
|
|
1062
|
+
var helper_1 = __webpack_require__(/*! ./helper */ "./components/buttons/helper.ts");
|
|
1063
|
+
__webpack_require__(/*! ../../assets/styles/variables/buttons/tabButton.scss */ "./assets/styles/variables/buttons/tabButton.scss");
|
|
1064
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./TabButton.scss */ "./components/buttons/TabButton.scss"));
|
|
1065
|
+
function applyTabButtonMods(mods) {
|
|
1066
|
+
return (0, tslib_1.__spreadArray)([
|
|
1067
|
+
'tab-button-vars',
|
|
1068
|
+
css.root,
|
|
1069
|
+
css['size-' + (mods.size || '48')],
|
|
1070
|
+
mods.withNotify && css.uuiNotification
|
|
1071
|
+
], (0, helper_1.getIconClass)(mods), true);
|
|
1072
|
+
}
|
|
1073
|
+
exports.TabButton = (0, uui_core_1.withMods)(uui_components_1.Button, applyTabButtonMods, function (props) { return ((0, tslib_1.__assign)((0, tslib_1.__assign)({ dropdownIcon: icons_1.systemIcons['36'].foldingArrow, clearIcon: icons_1.systemIcons['36'].clear, countPosition: 'right' }, props), { rawProps: (0, tslib_1.__assign)({ role: 'tab' }, props.rawProps) })); });
|
|
1071
1074
|
|
|
1072
1075
|
|
|
1073
1076
|
/***/ }),
|
|
@@ -1080,7 +1083,7 @@ exports.TabButton = (0, uui_core_1.withMods)(uui_components_1.Button, applyTabBu
|
|
|
1080
1083
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1081
1084
|
|
|
1082
1085
|
// extracted by mini-css-extract-plugin
|
|
1083
|
-
module.exports = {"root":"
|
|
1086
|
+
module.exports = {"root":"_9iOcs"};
|
|
1084
1087
|
|
|
1085
1088
|
/***/ }),
|
|
1086
1089
|
|
|
@@ -1092,19 +1095,19 @@ module.exports = {"root":"gIAEL"};
|
|
|
1092
1095
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1093
1096
|
|
|
1094
1097
|
"use strict";
|
|
1095
|
-
|
|
1096
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1097
|
-
exports.VerticalTabButton = void 0;
|
|
1098
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1099
|
-
var VerticalTabButton_scss_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! ./VerticalTabButton.scss */ "./components/buttons/VerticalTabButton.scss"));
|
|
1100
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1101
|
-
var TabButton_1 = __webpack_require__(/*! ./TabButton */ "./components/buttons/TabButton.tsx");
|
|
1102
|
-
function applyVerticalTabButtonMods() {
|
|
1103
|
-
return [
|
|
1104
|
-
VerticalTabButton_scss_1.default.root,
|
|
1105
|
-
];
|
|
1106
|
-
}
|
|
1107
|
-
exports.VerticalTabButton = (0, uui_core_1.withMods)(TabButton_1.TabButton, applyVerticalTabButtonMods);
|
|
1098
|
+
|
|
1099
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1100
|
+
exports.VerticalTabButton = void 0;
|
|
1101
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1102
|
+
var VerticalTabButton_scss_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! ./VerticalTabButton.scss */ "./components/buttons/VerticalTabButton.scss"));
|
|
1103
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1104
|
+
var TabButton_1 = __webpack_require__(/*! ./TabButton */ "./components/buttons/TabButton.tsx");
|
|
1105
|
+
function applyVerticalTabButtonMods() {
|
|
1106
|
+
return [
|
|
1107
|
+
VerticalTabButton_scss_1.default.root,
|
|
1108
|
+
];
|
|
1109
|
+
}
|
|
1110
|
+
exports.VerticalTabButton = (0, uui_core_1.withMods)(TabButton_1.TabButton, applyVerticalTabButtonMods);
|
|
1108
1111
|
|
|
1109
1112
|
|
|
1110
1113
|
/***/ }),
|
|
@@ -1117,29 +1120,29 @@ exports.VerticalTabButton = (0, uui_core_1.withMods)(TabButton_1.TabButton, appl
|
|
|
1117
1120
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1118
1121
|
|
|
1119
1122
|
"use strict";
|
|
1120
|
-
|
|
1121
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1122
|
-
exports.getIconClass = void 0;
|
|
1123
|
-
function getIconClass(props) {
|
|
1124
|
-
var classList = {
|
|
1125
|
-
'has-left-icon': false,
|
|
1126
|
-
'has-right-icon': false,
|
|
1127
|
-
};
|
|
1128
|
-
if (props.onClear) {
|
|
1129
|
-
classList['has-right-icon'] = true;
|
|
1130
|
-
}
|
|
1131
|
-
if (props.isDropdown) {
|
|
1132
|
-
classList[props.dropdownIconPosition === 'left' ? 'has-left-icon' : 'has-right-icon'] = true;
|
|
1133
|
-
}
|
|
1134
|
-
if (props.icon) {
|
|
1135
|
-
classList[props.iconPosition !== 'right' ? 'has-left-icon' : 'has-right-icon'] = true;
|
|
1136
|
-
}
|
|
1137
|
-
return [
|
|
1138
|
-
classList['has-left-icon'] ? 'uui-has-left-icon' : 'uui-no-left-icon',
|
|
1139
|
-
classList['has-right-icon'] ? 'uui-has-right-icon' : 'uui-no-right-icon',
|
|
1140
|
-
];
|
|
1141
|
-
}
|
|
1142
|
-
exports.getIconClass = getIconClass;
|
|
1123
|
+
|
|
1124
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1125
|
+
exports.getIconClass = void 0;
|
|
1126
|
+
function getIconClass(props) {
|
|
1127
|
+
var classList = {
|
|
1128
|
+
'has-left-icon': false,
|
|
1129
|
+
'has-right-icon': false,
|
|
1130
|
+
};
|
|
1131
|
+
if (props.onClear) {
|
|
1132
|
+
classList['has-right-icon'] = true;
|
|
1133
|
+
}
|
|
1134
|
+
if (props.isDropdown) {
|
|
1135
|
+
classList[props.dropdownIconPosition === 'left' ? 'has-left-icon' : 'has-right-icon'] = true;
|
|
1136
|
+
}
|
|
1137
|
+
if (props.icon) {
|
|
1138
|
+
classList[props.iconPosition !== 'right' ? 'has-left-icon' : 'has-right-icon'] = true;
|
|
1139
|
+
}
|
|
1140
|
+
return [
|
|
1141
|
+
classList['has-left-icon'] ? 'uui-has-left-icon' : 'uui-no-left-icon',
|
|
1142
|
+
classList['has-right-icon'] ? 'uui-has-right-icon' : 'uui-no-right-icon',
|
|
1143
|
+
];
|
|
1144
|
+
}
|
|
1145
|
+
exports.getIconClass = getIconClass;
|
|
1143
1146
|
|
|
1144
1147
|
|
|
1145
1148
|
/***/ }),
|
|
@@ -1152,14 +1155,14 @@ exports.getIconClass = getIconClass;
|
|
|
1152
1155
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1153
1156
|
|
|
1154
1157
|
"use strict";
|
|
1155
|
-
|
|
1156
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1157
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1158
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Button */ "./components/buttons/Button.tsx"), exports);
|
|
1159
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./IconButton */ "./components/buttons/IconButton.tsx"), exports);
|
|
1160
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./LinkButton */ "./components/buttons/LinkButton.tsx"), exports);
|
|
1161
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./TabButton */ "./components/buttons/TabButton.tsx"), exports);
|
|
1162
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./VerticalTabButton */ "./components/buttons/VerticalTabButton.tsx"), exports);
|
|
1158
|
+
|
|
1159
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1160
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1161
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Button */ "./components/buttons/Button.tsx"), exports);
|
|
1162
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./IconButton */ "./components/buttons/IconButton.tsx"), exports);
|
|
1163
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./LinkButton */ "./components/buttons/LinkButton.tsx"), exports);
|
|
1164
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./TabButton */ "./components/buttons/TabButton.tsx"), exports);
|
|
1165
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./VerticalTabButton */ "./components/buttons/VerticalTabButton.tsx"), exports);
|
|
1163
1166
|
|
|
1164
1167
|
|
|
1165
1168
|
/***/ }),
|
|
@@ -1172,18 +1175,18 @@ var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.
|
|
|
1172
1175
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1173
1176
|
|
|
1174
1177
|
"use strict";
|
|
1175
|
-
|
|
1176
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1177
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1178
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./buttons */ "./components/buttons/index.ts"), exports);
|
|
1179
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./inputs */ "./components/inputs/index.ts"), exports);
|
|
1180
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./layout */ "./components/layout/index.ts"), exports);
|
|
1181
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./overlays */ "./components/overlays/index.ts"), exports);
|
|
1182
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./pickers */ "./components/pickers/index.ts"), exports);
|
|
1183
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./typography */ "./components/typography/index.ts"), exports);
|
|
1184
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./widgets */ "./components/widgets/index.ts"), exports);
|
|
1185
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./tables */ "./components/tables/index.ts"), exports);
|
|
1186
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./types */ "./components/types.ts"), exports);
|
|
1178
|
+
|
|
1179
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1180
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1181
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./buttons */ "./components/buttons/index.ts"), exports);
|
|
1182
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./inputs */ "./components/inputs/index.ts"), exports);
|
|
1183
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./layout */ "./components/layout/index.ts"), exports);
|
|
1184
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./overlays */ "./components/overlays/index.ts"), exports);
|
|
1185
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./pickers */ "./components/pickers/index.ts"), exports);
|
|
1186
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./typography */ "./components/typography/index.ts"), exports);
|
|
1187
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./widgets */ "./components/widgets/index.ts"), exports);
|
|
1188
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./tables */ "./components/tables/index.ts"), exports);
|
|
1189
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./types */ "./components/types.ts"), exports);
|
|
1187
1190
|
|
|
1188
1191
|
|
|
1189
1192
|
/***/ }),
|
|
@@ -1196,7 +1199,7 @@ var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.
|
|
|
1196
1199
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1197
1200
|
|
|
1198
1201
|
// extracted by mini-css-extract-plugin
|
|
1199
|
-
module.exports = {"root":"
|
|
1202
|
+
module.exports = {"root":"vsaly","size-18":"_11TCM","size18":"_11TCM","size-12":"_4JkSs","size12":"_4JkSs"};
|
|
1200
1203
|
|
|
1201
1204
|
/***/ }),
|
|
1202
1205
|
|
|
@@ -1208,30 +1211,30 @@ module.exports = {"root":"_1ZVhf","size-18":"_56aFw","size18":"_56aFw","size-12"
|
|
|
1208
1211
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1209
1212
|
|
|
1210
1213
|
"use strict";
|
|
1211
|
-
|
|
1212
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1213
|
-
exports.Checkbox = exports.applyCheckboxMods = void 0;
|
|
1214
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1215
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1216
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1217
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Checkbox.scss */ "./components/inputs/Checkbox.scss"));
|
|
1218
|
-
var check_12_svg_1 = __webpack_require__(/*! ../../icons/check-12.svg */ "./icons/check-12.svg");
|
|
1219
|
-
var check_18_svg_1 = __webpack_require__(/*! ../../icons/check-18.svg */ "./icons/check-18.svg");
|
|
1220
|
-
var partly_select_12_svg_1 = __webpack_require__(/*! ../../icons/partly-select-12.svg */ "./icons/partly-select-12.svg");
|
|
1221
|
-
var partly_select_18_svg_1 = __webpack_require__(/*! ../../icons/partly-select-18.svg */ "./icons/partly-select-18.svg");
|
|
1222
|
-
__webpack_require__(/*! ../../assets/styles/variables/inputs/checkbox.scss */ "./assets/styles/variables/inputs/checkbox.scss");
|
|
1223
|
-
function applyCheckboxMods(mods) {
|
|
1224
|
-
return [
|
|
1225
|
-
'checkbox-vars',
|
|
1226
|
-
css.root,
|
|
1227
|
-
css['size-' + (mods.size || '18')],
|
|
1228
|
-
];
|
|
1229
|
-
}
|
|
1230
|
-
exports.applyCheckboxMods = applyCheckboxMods;
|
|
1231
|
-
exports.Checkbox = (0, uui_core_1.withMods)(uui_components_1.Checkbox, applyCheckboxMods, function (props) { return ({
|
|
1232
|
-
icon: (props.size === '12') ? check_12_svg_1.ReactComponent : check_18_svg_1.ReactComponent,
|
|
1233
|
-
indeterminateIcon: (props.size === '12') ? partly_select_12_svg_1.ReactComponent : partly_select_18_svg_1.ReactComponent,
|
|
1234
|
-
}); });
|
|
1214
|
+
|
|
1215
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1216
|
+
exports.Checkbox = exports.applyCheckboxMods = void 0;
|
|
1217
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1218
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1219
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1220
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Checkbox.scss */ "./components/inputs/Checkbox.scss"));
|
|
1221
|
+
var check_12_svg_1 = __webpack_require__(/*! ../../icons/check-12.svg */ "./icons/check-12.svg");
|
|
1222
|
+
var check_18_svg_1 = __webpack_require__(/*! ../../icons/check-18.svg */ "./icons/check-18.svg");
|
|
1223
|
+
var partly_select_12_svg_1 = __webpack_require__(/*! ../../icons/partly-select-12.svg */ "./icons/partly-select-12.svg");
|
|
1224
|
+
var partly_select_18_svg_1 = __webpack_require__(/*! ../../icons/partly-select-18.svg */ "./icons/partly-select-18.svg");
|
|
1225
|
+
__webpack_require__(/*! ../../assets/styles/variables/inputs/checkbox.scss */ "./assets/styles/variables/inputs/checkbox.scss");
|
|
1226
|
+
function applyCheckboxMods(mods) {
|
|
1227
|
+
return [
|
|
1228
|
+
'checkbox-vars',
|
|
1229
|
+
css.root,
|
|
1230
|
+
css['size-' + (mods.size || '18')],
|
|
1231
|
+
];
|
|
1232
|
+
}
|
|
1233
|
+
exports.applyCheckboxMods = applyCheckboxMods;
|
|
1234
|
+
exports.Checkbox = (0, uui_core_1.withMods)(uui_components_1.Checkbox, applyCheckboxMods, function (props) { return ({
|
|
1235
|
+
icon: (props.size === '12') ? check_12_svg_1.ReactComponent : check_18_svg_1.ReactComponent,
|
|
1236
|
+
indeterminateIcon: (props.size === '12') ? partly_select_12_svg_1.ReactComponent : partly_select_18_svg_1.ReactComponent,
|
|
1237
|
+
}); });
|
|
1235
1238
|
|
|
1236
1239
|
|
|
1237
1240
|
/***/ }),
|
|
@@ -1244,7 +1247,7 @@ exports.Checkbox = (0, uui_core_1.withMods)(uui_components_1.Checkbox, applyChec
|
|
|
1244
1247
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1245
1248
|
|
|
1246
1249
|
// extracted by mini-css-extract-plugin
|
|
1247
|
-
module.exports = {"root":"
|
|
1250
|
+
module.exports = {"root":"drRPf","size-18":"_3UN0Q","size18":"_3UN0Q","size-12":"_29Qoc","size12":"_29Qoc"};
|
|
1248
1251
|
|
|
1249
1252
|
/***/ }),
|
|
1250
1253
|
|
|
@@ -1256,23 +1259,23 @@ module.exports = {"root":"_3h4NR","size-18":"_2n_ak","size18":"_2n_ak","size-12"
|
|
|
1256
1259
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1257
1260
|
|
|
1258
1261
|
"use strict";
|
|
1259
|
-
|
|
1260
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1261
|
-
exports.RadioInput = void 0;
|
|
1262
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1263
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1264
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1265
|
-
__webpack_require__(/*! ../../assets/styles/variables/inputs/radioInput.scss */ "./assets/styles/variables/inputs/radioInput.scss");
|
|
1266
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./RadioInput.scss */ "./components/inputs/RadioInput.scss"));
|
|
1267
|
-
var radio_point_svg_1 = __webpack_require__(/*! ../../icons/radio-point.svg */ "./icons/radio-point.svg");
|
|
1268
|
-
function applyRadioInputMods(mods) {
|
|
1269
|
-
return [
|
|
1270
|
-
'radio-input-vars',
|
|
1271
|
-
css.root,
|
|
1272
|
-
css['size-' + (mods.size || '18')],
|
|
1273
|
-
];
|
|
1274
|
-
}
|
|
1275
|
-
exports.RadioInput = (0, uui_core_1.withMods)(uui_components_1.RadioInput, applyRadioInputMods, function () { return ({ icon: radio_point_svg_1.ReactComponent }); });
|
|
1262
|
+
|
|
1263
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1264
|
+
exports.RadioInput = void 0;
|
|
1265
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1266
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1267
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1268
|
+
__webpack_require__(/*! ../../assets/styles/variables/inputs/radioInput.scss */ "./assets/styles/variables/inputs/radioInput.scss");
|
|
1269
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./RadioInput.scss */ "./components/inputs/RadioInput.scss"));
|
|
1270
|
+
var radio_point_svg_1 = __webpack_require__(/*! ../../icons/radio-point.svg */ "./icons/radio-point.svg");
|
|
1271
|
+
function applyRadioInputMods(mods) {
|
|
1272
|
+
return [
|
|
1273
|
+
'radio-input-vars',
|
|
1274
|
+
css.root,
|
|
1275
|
+
css['size-' + (mods.size || '18')],
|
|
1276
|
+
];
|
|
1277
|
+
}
|
|
1278
|
+
exports.RadioInput = (0, uui_core_1.withMods)(uui_components_1.RadioInput, applyRadioInputMods, function () { return ({ icon: radio_point_svg_1.ReactComponent }); });
|
|
1276
1279
|
|
|
1277
1280
|
|
|
1278
1281
|
/***/ }),
|
|
@@ -1285,7 +1288,7 @@ exports.RadioInput = (0, uui_core_1.withMods)(uui_components_1.RadioInput, apply
|
|
|
1285
1288
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1286
1289
|
|
|
1287
1290
|
// extracted by mini-css-extract-plugin
|
|
1288
|
-
module.exports = {"root":"
|
|
1291
|
+
module.exports = {"root":"Ba7_V","size-12":"_3fz5w","size12":"_3fz5w","size-18":"_3gEJO","size18":"_3gEJO","size-24":"_7lTyO","size24":"_7lTyO"};
|
|
1289
1292
|
|
|
1290
1293
|
/***/ }),
|
|
1291
1294
|
|
|
@@ -1297,23 +1300,23 @@ module.exports = {"root":"_3rHDX","size-12":"OAK6I","size12":"OAK6I","size-18":"
|
|
|
1297
1300
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1298
1301
|
|
|
1299
1302
|
"use strict";
|
|
1300
|
-
|
|
1301
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1302
|
-
exports.Switch = exports.applySwitchMods = void 0;
|
|
1303
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1304
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1305
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1306
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Switch.scss */ "./components/inputs/Switch.scss"));
|
|
1307
|
-
__webpack_require__(/*! ../../assets/styles/variables/inputs/switch.scss */ "./assets/styles/variables/inputs/switch.scss");
|
|
1308
|
-
function applySwitchMods(mods) {
|
|
1309
|
-
return [
|
|
1310
|
-
'switch-vars',
|
|
1311
|
-
css.root,
|
|
1312
|
-
css['size-' + (mods.size || '18')],
|
|
1313
|
-
];
|
|
1314
|
-
}
|
|
1315
|
-
exports.applySwitchMods = applySwitchMods;
|
|
1316
|
-
exports.Switch = (0, uui_core_1.withMods)(uui_components_1.Switch, applySwitchMods);
|
|
1303
|
+
|
|
1304
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1305
|
+
exports.Switch = exports.applySwitchMods = void 0;
|
|
1306
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1307
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1308
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1309
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Switch.scss */ "./components/inputs/Switch.scss"));
|
|
1310
|
+
__webpack_require__(/*! ../../assets/styles/variables/inputs/switch.scss */ "./assets/styles/variables/inputs/switch.scss");
|
|
1311
|
+
function applySwitchMods(mods) {
|
|
1312
|
+
return [
|
|
1313
|
+
'switch-vars',
|
|
1314
|
+
css.root,
|
|
1315
|
+
css['size-' + (mods.size || '18')],
|
|
1316
|
+
];
|
|
1317
|
+
}
|
|
1318
|
+
exports.applySwitchMods = applySwitchMods;
|
|
1319
|
+
exports.Switch = (0, uui_core_1.withMods)(uui_components_1.Switch, applySwitchMods);
|
|
1317
1320
|
|
|
1318
1321
|
|
|
1319
1322
|
/***/ }),
|
|
@@ -1326,7 +1329,7 @@ exports.Switch = (0, uui_core_1.withMods)(uui_components_1.Switch, applySwitchMo
|
|
|
1326
1329
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1327
1330
|
|
|
1328
1331
|
// extracted by mini-css-extract-plugin
|
|
1329
|
-
module.exports = {"root":"
|
|
1332
|
+
module.exports = {"root":"_12C2L","mode-form":"_2LWVu","modeForm":"_2LWVu","mode-cell":"_2rb-h","modeCell":"_2rb-h","size-24":"_3x3hG","size24":"_3x3hG","size-30":"_1FcK3","size30":"_1FcK3","size-36":"_213g3","size36":"_213g3","size-42":"_2weJY","size42":"_2weJY","size-48":"_28Mlj","size48":"_28Mlj"};
|
|
1330
1333
|
|
|
1331
1334
|
/***/ }),
|
|
1332
1335
|
|
|
@@ -1338,50 +1341,50 @@ module.exports = {"root":"vkmSi","mode-form":"Y03lK","modeForm":"Y03lK","mode-ce
|
|
|
1338
1341
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1339
1342
|
|
|
1340
1343
|
"use strict";
|
|
1341
|
-
|
|
1342
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1343
|
-
exports.SearchInput = exports.TextInput = exports.applyTextInputMods = void 0;
|
|
1344
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1345
|
-
var react_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! react */ "react"));
|
|
1346
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1347
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1348
|
-
var types_1 = __webpack_require__(/*! ../types */ "./components/types.ts");
|
|
1349
|
-
var icons_1 = __webpack_require__(/*! ../../icons/icons */ "./icons/icons.tsx");
|
|
1350
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./TextInput.scss */ "./components/inputs/TextInput.scss"));
|
|
1351
|
-
__webpack_require__(/*! ../../assets/styles/variables/inputs/textInput.scss */ "./assets/styles/variables/inputs/textInput.scss");
|
|
1352
|
-
var defaultSize = '36';
|
|
1353
|
-
var defaultMode = types_1.EditMode.FORM;
|
|
1354
|
-
function applyTextInputMods(mods) {
|
|
1355
|
-
return [
|
|
1356
|
-
'text-input-vars',
|
|
1357
|
-
css.root,
|
|
1358
|
-
css['size-' + (mods.size || defaultSize)],
|
|
1359
|
-
css['mode-' + (mods.mode || defaultMode)],
|
|
1360
|
-
];
|
|
1361
|
-
}
|
|
1362
|
-
exports.applyTextInputMods = applyTextInputMods;
|
|
1363
|
-
exports.TextInput = (0, uui_core_1.withMods)(uui_components_1.TextInput, applyTextInputMods, function (props) { return ({
|
|
1364
|
-
acceptIcon: icons_1.systemIcons[props.size || defaultSize].accept,
|
|
1365
|
-
cancelIcon: icons_1.systemIcons[props.size || defaultSize].clear,
|
|
1366
|
-
dropdownIcon: icons_1.systemIcons[props.size || defaultSize].foldingArrow,
|
|
1367
|
-
}); });
|
|
1368
|
-
var SearchInput = /** @class */ (function (_super) {
|
|
1369
|
-
(0, tslib_1.__extends)(SearchInput, _super);
|
|
1370
|
-
function SearchInput() {
|
|
1371
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
1372
|
-
}
|
|
1373
|
-
SearchInput.prototype.render = function () {
|
|
1374
|
-
var _this = this;
|
|
1375
|
-
// analytics events are sending in IEditableDebouncer, so we need to avoid sending events in TextInput
|
|
1376
|
-
var textInputProps = (0, tslib_1.__assign)({}, this.props);
|
|
1377
|
-
delete textInputProps.getValueChangeAnalyticsEvent;
|
|
1378
|
-
return react_1.default.createElement(uui_core_1.IEditableDebouncer, (0, tslib_1.__assign)({}, this.props, { render: (function (iEditable) {
|
|
1379
|
-
return react_1.default.createElement(exports.TextInput, (0, tslib_1.__assign)({ icon: icons_1.systemIcons[_this.props.size || defaultSize].search, onCancel: !!_this.props.value ? (function () { return iEditable.onValueChange(''); }) : undefined, type: "search", inputMode: "search" }, textInputProps, iEditable));
|
|
1380
|
-
}) }));
|
|
1381
|
-
};
|
|
1382
|
-
return SearchInput;
|
|
1383
|
-
}(react_1.default.Component));
|
|
1384
|
-
exports.SearchInput = SearchInput;
|
|
1344
|
+
|
|
1345
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1346
|
+
exports.SearchInput = exports.TextInput = exports.applyTextInputMods = void 0;
|
|
1347
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1348
|
+
var react_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! react */ "react"));
|
|
1349
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1350
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1351
|
+
var types_1 = __webpack_require__(/*! ../types */ "./components/types.ts");
|
|
1352
|
+
var icons_1 = __webpack_require__(/*! ../../icons/icons */ "./icons/icons.tsx");
|
|
1353
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./TextInput.scss */ "./components/inputs/TextInput.scss"));
|
|
1354
|
+
__webpack_require__(/*! ../../assets/styles/variables/inputs/textInput.scss */ "./assets/styles/variables/inputs/textInput.scss");
|
|
1355
|
+
var defaultSize = '36';
|
|
1356
|
+
var defaultMode = types_1.EditMode.FORM;
|
|
1357
|
+
function applyTextInputMods(mods) {
|
|
1358
|
+
return [
|
|
1359
|
+
'text-input-vars',
|
|
1360
|
+
css.root,
|
|
1361
|
+
css['size-' + (mods.size || defaultSize)],
|
|
1362
|
+
css['mode-' + (mods.mode || defaultMode)],
|
|
1363
|
+
];
|
|
1364
|
+
}
|
|
1365
|
+
exports.applyTextInputMods = applyTextInputMods;
|
|
1366
|
+
exports.TextInput = (0, uui_core_1.withMods)(uui_components_1.TextInput, applyTextInputMods, function (props) { return ({
|
|
1367
|
+
acceptIcon: icons_1.systemIcons[props.size || defaultSize].accept,
|
|
1368
|
+
cancelIcon: icons_1.systemIcons[props.size || defaultSize].clear,
|
|
1369
|
+
dropdownIcon: icons_1.systemIcons[props.size || defaultSize].foldingArrow,
|
|
1370
|
+
}); });
|
|
1371
|
+
var SearchInput = /** @class */ (function (_super) {
|
|
1372
|
+
(0, tslib_1.__extends)(SearchInput, _super);
|
|
1373
|
+
function SearchInput() {
|
|
1374
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1375
|
+
}
|
|
1376
|
+
SearchInput.prototype.render = function () {
|
|
1377
|
+
var _this = this;
|
|
1378
|
+
// analytics events are sending in IEditableDebouncer, so we need to avoid sending events in TextInput
|
|
1379
|
+
var textInputProps = (0, tslib_1.__assign)({}, this.props);
|
|
1380
|
+
delete textInputProps.getValueChangeAnalyticsEvent;
|
|
1381
|
+
return react_1.default.createElement(uui_core_1.IEditableDebouncer, (0, tslib_1.__assign)({}, this.props, { render: (function (iEditable) {
|
|
1382
|
+
return react_1.default.createElement(exports.TextInput, (0, tslib_1.__assign)({ icon: icons_1.systemIcons[_this.props.size || defaultSize].search, onCancel: !!_this.props.value ? (function () { return iEditable.onValueChange(''); }) : undefined, type: "search", inputMode: "search" }, textInputProps, iEditable));
|
|
1383
|
+
}) }));
|
|
1384
|
+
};
|
|
1385
|
+
return SearchInput;
|
|
1386
|
+
}(react_1.default.Component));
|
|
1387
|
+
exports.SearchInput = SearchInput;
|
|
1385
1388
|
|
|
1386
1389
|
|
|
1387
1390
|
/***/ }),
|
|
@@ -1394,13 +1397,13 @@ exports.SearchInput = SearchInput;
|
|
|
1394
1397
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1395
1398
|
|
|
1396
1399
|
"use strict";
|
|
1397
|
-
|
|
1398
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1399
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1400
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Checkbox */ "./components/inputs/Checkbox.tsx"), exports);
|
|
1401
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./RadioInput */ "./components/inputs/RadioInput.tsx"), exports);
|
|
1402
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Switch */ "./components/inputs/Switch.tsx"), exports);
|
|
1403
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./TextInput */ "./components/inputs/TextInput.tsx"), exports);
|
|
1400
|
+
|
|
1401
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1402
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1403
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Checkbox */ "./components/inputs/Checkbox.tsx"), exports);
|
|
1404
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./RadioInput */ "./components/inputs/RadioInput.tsx"), exports);
|
|
1405
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Switch */ "./components/inputs/Switch.tsx"), exports);
|
|
1406
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./TextInput */ "./components/inputs/TextInput.tsx"), exports);
|
|
1404
1407
|
|
|
1405
1408
|
|
|
1406
1409
|
/***/ }),
|
|
@@ -1413,7 +1416,7 @@ var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.
|
|
|
1413
1416
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1414
1417
|
|
|
1415
1418
|
// extracted by mini-css-extract-plugin
|
|
1416
|
-
module.exports = {"root":"
|
|
1419
|
+
module.exports = {"root":"_2TqbV","mode-block":"_1ChH7","modeBlock":"_1ChH7","mode-inline":"_1Ip_o","modeInline":"_1Ip_o","padding-0":"_1TcRS","padding0":"_1TcRS","padding-6":"_2NdMM","padding6":"_2NdMM","padding-12":"LSa0c","padding12":"LSa0c","padding-18":"_3w7ID","padding18":"_3w7ID"};
|
|
1417
1420
|
|
|
1418
1421
|
/***/ }),
|
|
1419
1422
|
|
|
@@ -1425,26 +1428,26 @@ module.exports = {"root":"_3hMvN","mode-block":"jU9zB","modeBlock":"jU9zB","mode
|
|
|
1425
1428
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1426
1429
|
|
|
1427
1430
|
"use strict";
|
|
1428
|
-
|
|
1429
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1430
|
-
exports.Accordion = void 0;
|
|
1431
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1432
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1433
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1434
|
-
var icons_1 = __webpack_require__(/*! ../../icons/icons */ "./icons/icons.tsx");
|
|
1435
|
-
__webpack_require__(/*! ../../assets/styles/variables/layout/accordion.scss */ "./assets/styles/variables/layout/accordion.scss");
|
|
1436
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Accordion.scss */ "./components/layout/Accordion.scss"));
|
|
1437
|
-
function applyAccordionMods(mods) {
|
|
1438
|
-
return [
|
|
1439
|
-
'accordion-vars',
|
|
1440
|
-
css.root,
|
|
1441
|
-
css['mode-' + (mods.mode || 'block')],
|
|
1442
|
-
mods.padding && css['padding-' + mods.padding],
|
|
1443
|
-
];
|
|
1444
|
-
}
|
|
1445
|
-
exports.Accordion = (0, uui_core_1.withMods)(uui_components_1.Accordion, applyAccordionMods, function (mods) { return ({
|
|
1446
|
-
dropdownIcon: icons_1.systemIcons[mods.mode === 'block' ? '60' : '30'].foldingArrow,
|
|
1447
|
-
}); });
|
|
1431
|
+
|
|
1432
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1433
|
+
exports.Accordion = void 0;
|
|
1434
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1435
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1436
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1437
|
+
var icons_1 = __webpack_require__(/*! ../../icons/icons */ "./icons/icons.tsx");
|
|
1438
|
+
__webpack_require__(/*! ../../assets/styles/variables/layout/accordion.scss */ "./assets/styles/variables/layout/accordion.scss");
|
|
1439
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Accordion.scss */ "./components/layout/Accordion.scss"));
|
|
1440
|
+
function applyAccordionMods(mods) {
|
|
1441
|
+
return [
|
|
1442
|
+
'accordion-vars',
|
|
1443
|
+
css.root,
|
|
1444
|
+
css['mode-' + (mods.mode || 'block')],
|
|
1445
|
+
mods.padding && css['padding-' + mods.padding],
|
|
1446
|
+
];
|
|
1447
|
+
}
|
|
1448
|
+
exports.Accordion = (0, uui_core_1.withMods)(uui_components_1.Accordion, applyAccordionMods, function (mods) { return ({
|
|
1449
|
+
dropdownIcon: icons_1.systemIcons[mods.mode === 'block' ? '60' : '30'].foldingArrow,
|
|
1450
|
+
}); });
|
|
1448
1451
|
|
|
1449
1452
|
|
|
1450
1453
|
/***/ }),
|
|
@@ -1457,7 +1460,7 @@ exports.Accordion = (0, uui_core_1.withMods)(uui_components_1.Accordion, applyAc
|
|
|
1457
1460
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1458
1461
|
|
|
1459
1462
|
// extracted by mini-css-extract-plugin
|
|
1460
|
-
module.exports = {"root":"
|
|
1463
|
+
module.exports = {"root":"_2uI28"};
|
|
1461
1464
|
|
|
1462
1465
|
/***/ }),
|
|
1463
1466
|
|
|
@@ -1469,14 +1472,14 @@ module.exports = {"root":"_1HVAZ"};
|
|
|
1469
1472
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1470
1473
|
|
|
1471
1474
|
"use strict";
|
|
1472
|
-
|
|
1473
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1474
|
-
exports.ControlGroup = void 0;
|
|
1475
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1476
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./ControlGroup.scss */ "./components/layout/ControlGroup.scss"));
|
|
1477
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1478
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1479
|
-
exports.ControlGroup = (0, uui_core_1.withMods)(uui_components_1.ControlGroup, function () { return [css.root]; });
|
|
1475
|
+
|
|
1476
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1477
|
+
exports.ControlGroup = void 0;
|
|
1478
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1479
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./ControlGroup.scss */ "./components/layout/ControlGroup.scss"));
|
|
1480
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1481
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1482
|
+
exports.ControlGroup = (0, uui_core_1.withMods)(uui_components_1.ControlGroup, function () { return [css.root]; });
|
|
1480
1483
|
|
|
1481
1484
|
|
|
1482
1485
|
/***/ }),
|
|
@@ -1489,16 +1492,16 @@ exports.ControlGroup = (0, uui_core_1.withMods)(uui_components_1.ControlGroup, f
|
|
|
1489
1492
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1490
1493
|
|
|
1491
1494
|
"use strict";
|
|
1492
|
-
|
|
1493
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1494
|
-
exports.FlexCell = void 0;
|
|
1495
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1496
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./FlexRow.scss */ "./components/layout/FlexItems/FlexRow.scss"));
|
|
1497
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1498
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1499
|
-
exports.FlexCell = (0, uui_core_1.withMods)(uui_components_1.FlexCell, function (props) { return [
|
|
1500
|
-
css.flexCell,
|
|
1501
|
-
]; });
|
|
1495
|
+
|
|
1496
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1497
|
+
exports.FlexCell = void 0;
|
|
1498
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1499
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./FlexRow.scss */ "./components/layout/FlexItems/FlexRow.scss"));
|
|
1500
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1501
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1502
|
+
exports.FlexCell = (0, uui_core_1.withMods)(uui_components_1.FlexCell, function (props) { return [
|
|
1503
|
+
css.flexCell,
|
|
1504
|
+
]; });
|
|
1502
1505
|
|
|
1503
1506
|
|
|
1504
1507
|
/***/ }),
|
|
@@ -1511,7 +1514,7 @@ exports.FlexCell = (0, uui_core_1.withMods)(uui_components_1.FlexCell, function
|
|
|
1511
1514
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1512
1515
|
|
|
1513
1516
|
// extracted by mini-css-extract-plugin
|
|
1514
|
-
module.exports = {"root":"
|
|
1517
|
+
module.exports = {"root":"_1nOJ1","top-shadow":"_3l5HA","topShadow":"_3l5HA","size-24":"_1_66S","size24":"_1_66S","size-30":"_1iV-W","size30":"_1iV-W","size-36":"_3zHhO","size36":"_3zHhO","size-42":"_1-9V7","size42":"_1-9V7","size-48":"_1hd_G","size48":"_1hd_G","padding-6":"_3eJYw","padding6":"_3eJYw","padding-12":"BtnUF","padding12":"BtnUF","padding-18":"_1PcnD","padding18":"_1PcnD","padding-24":"jAcU4","padding24":"jAcU4","margin-24":"_3M8a0","margin24":"_3M8a0","margin-12":"_3Qv2F","margin12":"_3Qv2F","vPadding-12":"_2-1M-","vPadding12":"_2-1M-","vPadding-18":"umD2w","vPadding18":"umD2w","vPadding-24":"_3G_8c","vPadding24":"_3G_8c","vPadding-36":"soTvr","vPadding36":"soTvr","vPadding-48":"_3nDu_","vPadding48":"_3nDu_","spacing-6":"_2u0MF","spacing6":"_2u0MF","spacing-12":"_18L03","spacing12":"_18L03","spacing-18":"uKk6f","spacing18":"uKk6f","border-bottom":"QBj4i","borderBottom":"QBj4i"};
|
|
1515
1518
|
|
|
1516
1519
|
/***/ }),
|
|
1517
1520
|
|
|
@@ -1523,25 +1526,25 @@ module.exports = {"root":"iKySE","top-shadow":"_3AHqC","topShadow":"_3AHqC","siz
|
|
|
1523
1526
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1524
1527
|
|
|
1525
1528
|
"use strict";
|
|
1526
|
-
|
|
1527
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1528
|
-
exports.FlexRow = void 0;
|
|
1529
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1530
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1531
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1532
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./FlexRow.scss */ "./components/layout/FlexItems/FlexRow.scss"));
|
|
1533
|
-
exports.FlexRow = (0, uui_core_1.withMods)(uui_components_1.FlexRow, function (props) {
|
|
1534
|
-
return [
|
|
1535
|
-
css.root,
|
|
1536
|
-
props.size !== null && css['size-' + (props.size || '36')],
|
|
1537
|
-
props.padding && css['padding-' + props.padding],
|
|
1538
|
-
props.vPadding && css['vPadding-' + props.vPadding],
|
|
1539
|
-
props.margin && css['margin-' + props.margin],
|
|
1540
|
-
props.topShadow && css.topShadow,
|
|
1541
|
-
props.borderBottom && css['border-bottom'],
|
|
1542
|
-
props.spacing && css['spacing-' + props.spacing],
|
|
1543
|
-
];
|
|
1544
|
-
});
|
|
1529
|
+
|
|
1530
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1531
|
+
exports.FlexRow = void 0;
|
|
1532
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1533
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1534
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1535
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./FlexRow.scss */ "./components/layout/FlexItems/FlexRow.scss"));
|
|
1536
|
+
exports.FlexRow = (0, uui_core_1.withMods)(uui_components_1.FlexRow, function (props) {
|
|
1537
|
+
return [
|
|
1538
|
+
css.root,
|
|
1539
|
+
props.size !== null && css['size-' + (props.size || '36')],
|
|
1540
|
+
props.padding && css['padding-' + props.padding],
|
|
1541
|
+
props.vPadding && css['vPadding-' + props.vPadding],
|
|
1542
|
+
props.margin && css['margin-' + props.margin],
|
|
1543
|
+
props.topShadow && css.topShadow,
|
|
1544
|
+
props.borderBottom && css['border-bottom'],
|
|
1545
|
+
props.spacing && css['spacing-' + props.spacing],
|
|
1546
|
+
];
|
|
1547
|
+
});
|
|
1545
1548
|
|
|
1546
1549
|
|
|
1547
1550
|
/***/ }),
|
|
@@ -1554,11 +1557,11 @@ exports.FlexRow = (0, uui_core_1.withMods)(uui_components_1.FlexRow, function (p
|
|
|
1554
1557
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1555
1558
|
|
|
1556
1559
|
"use strict";
|
|
1557
|
-
|
|
1558
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1559
|
-
exports.FlexSpacer = void 0;
|
|
1560
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1561
|
-
exports.FlexSpacer = uui_components_1.FlexSpacer;
|
|
1560
|
+
|
|
1561
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1562
|
+
exports.FlexSpacer = void 0;
|
|
1563
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1564
|
+
exports.FlexSpacer = uui_components_1.FlexSpacer;
|
|
1562
1565
|
|
|
1563
1566
|
|
|
1564
1567
|
/***/ }),
|
|
@@ -1571,7 +1574,7 @@ exports.FlexSpacer = uui_components_1.FlexSpacer;
|
|
|
1571
1574
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1572
1575
|
|
|
1573
1576
|
// extracted by mini-css-extract-plugin
|
|
1574
|
-
module.exports = {"root":"
|
|
1577
|
+
module.exports = {"root":"c0_Gj","background":"_18rZg","margin-24":"_1YeOB","margin24":"_1YeOB","padding-12":"_1Q9TK","padding12":"_1Q9TK","padding-24":"_3Zf04","padding24":"_3Zf04","shadow":"_1pcfS"};
|
|
1575
1578
|
|
|
1576
1579
|
/***/ }),
|
|
1577
1580
|
|
|
@@ -1583,21 +1586,21 @@ module.exports = {"root":"IEt2r","background":"_2VAhC","margin-24":"_2i0K6","mar
|
|
|
1583
1586
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1584
1587
|
|
|
1585
1588
|
"use strict";
|
|
1586
|
-
|
|
1587
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1588
|
-
exports.Panel = void 0;
|
|
1589
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1590
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1591
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1592
|
-
__webpack_require__(/*! ../../../assets/styles/variables/layout/panel.scss */ "./assets/styles/variables/layout/panel.scss");
|
|
1593
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Panel.scss */ "./components/layout/FlexItems/Panel.scss"));
|
|
1594
|
-
exports.Panel = (0, uui_core_1.withMods)(uui_components_1.VPanel, function (props) { return [
|
|
1595
|
-
'panel-vars',
|
|
1596
|
-
css.root,
|
|
1597
|
-
props.shadow && css.shadow,
|
|
1598
|
-
props.background && css.background,
|
|
1599
|
-
props.margin && css['margin-' + props.margin],
|
|
1600
|
-
]; });
|
|
1589
|
+
|
|
1590
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1591
|
+
exports.Panel = void 0;
|
|
1592
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1593
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1594
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1595
|
+
__webpack_require__(/*! ../../../assets/styles/variables/layout/panel.scss */ "./assets/styles/variables/layout/panel.scss");
|
|
1596
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Panel.scss */ "./components/layout/FlexItems/Panel.scss"));
|
|
1597
|
+
exports.Panel = (0, uui_core_1.withMods)(uui_components_1.VPanel, function (props) { return [
|
|
1598
|
+
'panel-vars',
|
|
1599
|
+
css.root,
|
|
1600
|
+
props.shadow && css.shadow,
|
|
1601
|
+
props.background && css.background,
|
|
1602
|
+
props.margin && css['margin-' + props.margin],
|
|
1603
|
+
]; });
|
|
1601
1604
|
|
|
1602
1605
|
|
|
1603
1606
|
/***/ }),
|
|
@@ -1610,13 +1613,13 @@ exports.Panel = (0, uui_core_1.withMods)(uui_components_1.VPanel, function (prop
|
|
|
1610
1613
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1611
1614
|
|
|
1612
1615
|
"use strict";
|
|
1613
|
-
|
|
1614
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1615
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1616
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./FlexCell */ "./components/layout/FlexItems/FlexCell.tsx"), exports);
|
|
1617
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./FlexRow */ "./components/layout/FlexItems/FlexRow.tsx"), exports);
|
|
1618
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./FlexSpacer */ "./components/layout/FlexItems/FlexSpacer.tsx"), exports);
|
|
1619
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Panel */ "./components/layout/FlexItems/Panel.tsx"), exports);
|
|
1616
|
+
|
|
1617
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1618
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1619
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./FlexCell */ "./components/layout/FlexItems/FlexCell.tsx"), exports);
|
|
1620
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./FlexRow */ "./components/layout/FlexItems/FlexRow.tsx"), exports);
|
|
1621
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./FlexSpacer */ "./components/layout/FlexItems/FlexSpacer.tsx"), exports);
|
|
1622
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Panel */ "./components/layout/FlexItems/Panel.tsx"), exports);
|
|
1620
1623
|
|
|
1621
1624
|
|
|
1622
1625
|
/***/ }),
|
|
@@ -1629,7 +1632,7 @@ var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.
|
|
|
1629
1632
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1630
1633
|
|
|
1631
1634
|
// extracted by mini-css-extract-plugin
|
|
1632
|
-
module.exports = {"root":"
|
|
1635
|
+
module.exports = {"root":"GEcIJ"};
|
|
1633
1636
|
|
|
1634
1637
|
/***/ }),
|
|
1635
1638
|
|
|
@@ -1641,22 +1644,22 @@ module.exports = {"root":"_2fyS4"};
|
|
|
1641
1644
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1642
1645
|
|
|
1643
1646
|
"use strict";
|
|
1644
|
-
|
|
1645
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1646
|
-
exports.IconContainer = exports.applyIconContainerMods = void 0;
|
|
1647
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1648
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1649
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1650
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./IconContainer.scss */ "./components/layout/IconContainer.scss"));
|
|
1651
|
-
__webpack_require__(/*! ../../assets/styles/variables/layout/iconContainer.scss */ "./assets/styles/variables/layout/iconContainer.scss");
|
|
1652
|
-
function applyIconContainerMods(mods) {
|
|
1653
|
-
return [
|
|
1654
|
-
"icon-container-color-".concat(mods.color || 'default'),
|
|
1655
|
-
css.root,
|
|
1656
|
-
];
|
|
1657
|
-
}
|
|
1658
|
-
exports.applyIconContainerMods = applyIconContainerMods;
|
|
1659
|
-
exports.IconContainer = (0, uui_core_1.withMods)(uui_components_1.IconContainer, applyIconContainerMods, function () { return ({ tabIndex: 0 }); });
|
|
1647
|
+
|
|
1648
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1649
|
+
exports.IconContainer = exports.applyIconContainerMods = void 0;
|
|
1650
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1651
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1652
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1653
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./IconContainer.scss */ "./components/layout/IconContainer.scss"));
|
|
1654
|
+
__webpack_require__(/*! ../../assets/styles/variables/layout/iconContainer.scss */ "./assets/styles/variables/layout/iconContainer.scss");
|
|
1655
|
+
function applyIconContainerMods(mods) {
|
|
1656
|
+
return [
|
|
1657
|
+
"icon-container-color-".concat(mods.color || 'default'),
|
|
1658
|
+
css.root,
|
|
1659
|
+
];
|
|
1660
|
+
}
|
|
1661
|
+
exports.applyIconContainerMods = applyIconContainerMods;
|
|
1662
|
+
exports.IconContainer = (0, uui_core_1.withMods)(uui_components_1.IconContainer, applyIconContainerMods, function () { return ({ tabIndex: 0 }); });
|
|
1660
1663
|
|
|
1661
1664
|
|
|
1662
1665
|
/***/ }),
|
|
@@ -1669,7 +1672,7 @@ exports.IconContainer = (0, uui_core_1.withMods)(uui_components_1.IconContainer,
|
|
|
1669
1672
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1670
1673
|
|
|
1671
1674
|
// extracted by mini-css-extract-plugin
|
|
1672
|
-
module.exports = {"root":"
|
|
1675
|
+
module.exports = {"root":"_7sUj2","size-24":"_1Y7jZ","size24":"_1Y7jZ","size-30":"_2-KaT","size30":"_2-KaT","size-36":"ua3An","size36":"ua3An","size-42":"JUYfo","size42":"JUYfo","size-48":"lMhDM","size48":"lMhDM"};
|
|
1673
1676
|
|
|
1674
1677
|
/***/ }),
|
|
1675
1678
|
|
|
@@ -1681,28 +1684,28 @@ module.exports = {"root":"_1xd0Q","size-24":"hgAxi","size24":"hgAxi","size-30":"
|
|
|
1681
1684
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1682
1685
|
|
|
1683
1686
|
"use strict";
|
|
1684
|
-
|
|
1685
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1686
|
-
exports.LabeledInput = void 0;
|
|
1687
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1688
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1689
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1690
|
-
var overlays_1 = __webpack_require__(/*! ../overlays */ "./components/overlays/index.ts");
|
|
1691
|
-
var icons_1 = __webpack_require__(/*! ../../icons/icons */ "./icons/icons.tsx");
|
|
1692
|
-
__webpack_require__(/*! ../../assets/styles/variables/layout/labeledInput.scss */ "./assets/styles/variables/layout/labeledInput.scss");
|
|
1693
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./LabeledInput.scss */ "./components/layout/LabeledInput.scss"));
|
|
1694
|
-
var defaultSize = '36';
|
|
1695
|
-
function applyLabeledInputMods(mods) {
|
|
1696
|
-
return [
|
|
1697
|
-
'labeled-input-vars',
|
|
1698
|
-
css.root,
|
|
1699
|
-
css['size-' + (mods.size || defaultSize)],
|
|
1700
|
-
];
|
|
1701
|
-
}
|
|
1702
|
-
exports.LabeledInput = (0, uui_core_1.withMods)(uui_components_1.LabeledInput, applyLabeledInputMods, function (props) { return ({
|
|
1703
|
-
Tooltip: overlays_1.Tooltip,
|
|
1704
|
-
infoIcon: icons_1.systemIcons[props.size || defaultSize].help,
|
|
1705
|
-
}); });
|
|
1687
|
+
|
|
1688
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1689
|
+
exports.LabeledInput = void 0;
|
|
1690
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1691
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1692
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1693
|
+
var overlays_1 = __webpack_require__(/*! ../overlays */ "./components/overlays/index.ts");
|
|
1694
|
+
var icons_1 = __webpack_require__(/*! ../../icons/icons */ "./icons/icons.tsx");
|
|
1695
|
+
__webpack_require__(/*! ../../assets/styles/variables/layout/labeledInput.scss */ "./assets/styles/variables/layout/labeledInput.scss");
|
|
1696
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./LabeledInput.scss */ "./components/layout/LabeledInput.scss"));
|
|
1697
|
+
var defaultSize = '36';
|
|
1698
|
+
function applyLabeledInputMods(mods) {
|
|
1699
|
+
return [
|
|
1700
|
+
'labeled-input-vars',
|
|
1701
|
+
css.root,
|
|
1702
|
+
css['size-' + (mods.size || defaultSize)],
|
|
1703
|
+
];
|
|
1704
|
+
}
|
|
1705
|
+
exports.LabeledInput = (0, uui_core_1.withMods)(uui_components_1.LabeledInput, applyLabeledInputMods, function (props) { return ({
|
|
1706
|
+
Tooltip: overlays_1.Tooltip,
|
|
1707
|
+
infoIcon: icons_1.systemIcons[props.size || defaultSize].help,
|
|
1708
|
+
}); });
|
|
1706
1709
|
|
|
1707
1710
|
|
|
1708
1711
|
/***/ }),
|
|
@@ -1715,7 +1718,7 @@ exports.LabeledInput = (0, uui_core_1.withMods)(uui_components_1.LabeledInput, a
|
|
|
1715
1718
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1716
1719
|
|
|
1717
1720
|
// extracted by mini-css-extract-plugin
|
|
1718
|
-
module.exports = {"root":"
|
|
1721
|
+
module.exports = {"root":"Cpef0"};
|
|
1719
1722
|
|
|
1720
1723
|
/***/ }),
|
|
1721
1724
|
|
|
@@ -1727,15 +1730,15 @@ module.exports = {"root":"_1ED2B"};
|
|
|
1727
1730
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1728
1731
|
|
|
1729
1732
|
"use strict";
|
|
1730
|
-
|
|
1731
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1732
|
-
exports.RadioGroup = void 0;
|
|
1733
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1734
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1735
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1736
|
-
var inputs_1 = __webpack_require__(/*! ../inputs */ "./components/inputs/index.ts");
|
|
1737
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./RadioGroup.scss */ "./components/layout/RadioGroup.scss"));
|
|
1738
|
-
exports.RadioGroup = (0, uui_core_1.withMods)(uui_components_1.RadioGroup, function () { return [css.root]; }, function () { return ({ RadioInput: inputs_1.RadioInput }); });
|
|
1733
|
+
|
|
1734
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1735
|
+
exports.RadioGroup = void 0;
|
|
1736
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1737
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1738
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1739
|
+
var inputs_1 = __webpack_require__(/*! ../inputs */ "./components/inputs/index.ts");
|
|
1740
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./RadioGroup.scss */ "./components/layout/RadioGroup.scss"));
|
|
1741
|
+
exports.RadioGroup = (0, uui_core_1.withMods)(uui_components_1.RadioGroup, function () { return [css.root]; }, function () { return ({ RadioInput: inputs_1.RadioInput }); });
|
|
1739
1742
|
|
|
1740
1743
|
|
|
1741
1744
|
/***/ }),
|
|
@@ -1759,19 +1762,19 @@ exports.RadioGroup = (0, uui_core_1.withMods)(uui_components_1.RadioGroup, funct
|
|
|
1759
1762
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1760
1763
|
|
|
1761
1764
|
"use strict";
|
|
1762
|
-
|
|
1763
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1764
|
-
exports.ScrollBars = void 0;
|
|
1765
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1766
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1767
|
-
__webpack_require__(/*! ./ScrollBars.scss */ "./components/layout/ScrollBars.scss");
|
|
1768
|
-
__webpack_require__(/*! ../../assets/styles/variables/layout/scrollBars.scss */ "./assets/styles/variables/layout/scrollBars.scss");
|
|
1769
|
-
function applyScrollBarsMods() {
|
|
1770
|
-
return [
|
|
1771
|
-
'scroll-bars-vars',
|
|
1772
|
-
];
|
|
1773
|
-
}
|
|
1774
|
-
exports.ScrollBars = (0, uui_core_1.withMods)(uui_components_1.ScrollBars, applyScrollBarsMods);
|
|
1765
|
+
|
|
1766
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1767
|
+
exports.ScrollBars = void 0;
|
|
1768
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1769
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1770
|
+
__webpack_require__(/*! ./ScrollBars.scss */ "./components/layout/ScrollBars.scss");
|
|
1771
|
+
__webpack_require__(/*! ../../assets/styles/variables/layout/scrollBars.scss */ "./assets/styles/variables/layout/scrollBars.scss");
|
|
1772
|
+
function applyScrollBarsMods() {
|
|
1773
|
+
return [
|
|
1774
|
+
'scroll-bars-vars',
|
|
1775
|
+
];
|
|
1776
|
+
}
|
|
1777
|
+
exports.ScrollBars = (0, uui_core_1.withMods)(uui_components_1.ScrollBars, applyScrollBarsMods);
|
|
1775
1778
|
|
|
1776
1779
|
|
|
1777
1780
|
/***/ }),
|
|
@@ -1795,19 +1798,19 @@ exports.ScrollBars = (0, uui_core_1.withMods)(uui_components_1.ScrollBars, apply
|
|
|
1795
1798
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1796
1799
|
|
|
1797
1800
|
"use strict";
|
|
1798
|
-
|
|
1799
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1800
|
-
exports.VirtualList = void 0;
|
|
1801
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1802
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1803
|
-
__webpack_require__(/*! ../../assets/styles/variables/layout/scrollBars.scss */ "./assets/styles/variables/layout/scrollBars.scss");
|
|
1804
|
-
__webpack_require__(/*! ./VirtualList.scss */ "./components/layout/VirtualList.scss");
|
|
1805
|
-
function applyVirtualListMods() {
|
|
1806
|
-
return [
|
|
1807
|
-
'scroll-bars-vars',
|
|
1808
|
-
];
|
|
1809
|
-
}
|
|
1810
|
-
exports.VirtualList = (0, uui_core_1.withMods)(uui_components_1.VirtualList, applyVirtualListMods);
|
|
1801
|
+
|
|
1802
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1803
|
+
exports.VirtualList = void 0;
|
|
1804
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1805
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1806
|
+
__webpack_require__(/*! ../../assets/styles/variables/layout/scrollBars.scss */ "./assets/styles/variables/layout/scrollBars.scss");
|
|
1807
|
+
__webpack_require__(/*! ./VirtualList.scss */ "./components/layout/VirtualList.scss");
|
|
1808
|
+
function applyVirtualListMods() {
|
|
1809
|
+
return [
|
|
1810
|
+
'scroll-bars-vars',
|
|
1811
|
+
];
|
|
1812
|
+
}
|
|
1813
|
+
exports.VirtualList = (0, uui_core_1.withMods)(uui_components_1.VirtualList, applyVirtualListMods);
|
|
1811
1814
|
|
|
1812
1815
|
|
|
1813
1816
|
/***/ }),
|
|
@@ -1820,17 +1823,17 @@ exports.VirtualList = (0, uui_core_1.withMods)(uui_components_1.VirtualList, app
|
|
|
1820
1823
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1821
1824
|
|
|
1822
1825
|
"use strict";
|
|
1823
|
-
|
|
1824
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1825
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1826
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Accordion */ "./components/layout/Accordion.tsx"), exports);
|
|
1827
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./ControlGroup */ "./components/layout/ControlGroup.tsx"), exports);
|
|
1828
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./FlexItems */ "./components/layout/FlexItems/index.ts"), exports);
|
|
1829
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./IconContainer */ "./components/layout/IconContainer.tsx"), exports);
|
|
1830
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./LabeledInput */ "./components/layout/LabeledInput.tsx"), exports);
|
|
1831
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./RadioGroup */ "./components/layout/RadioGroup.tsx"), exports);
|
|
1832
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./ScrollBars */ "./components/layout/ScrollBars.tsx"), exports);
|
|
1833
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./VirtualList */ "./components/layout/VirtualList.tsx"), exports);
|
|
1826
|
+
|
|
1827
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1828
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1829
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Accordion */ "./components/layout/Accordion.tsx"), exports);
|
|
1830
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./ControlGroup */ "./components/layout/ControlGroup.tsx"), exports);
|
|
1831
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./FlexItems */ "./components/layout/FlexItems/index.ts"), exports);
|
|
1832
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./IconContainer */ "./components/layout/IconContainer.tsx"), exports);
|
|
1833
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./LabeledInput */ "./components/layout/LabeledInput.tsx"), exports);
|
|
1834
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./RadioGroup */ "./components/layout/RadioGroup.tsx"), exports);
|
|
1835
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./ScrollBars */ "./components/layout/ScrollBars.tsx"), exports);
|
|
1836
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./VirtualList */ "./components/layout/VirtualList.tsx"), exports);
|
|
1834
1837
|
|
|
1835
1838
|
|
|
1836
1839
|
/***/ }),
|
|
@@ -1843,23 +1846,23 @@ var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.
|
|
|
1843
1846
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1844
1847
|
|
|
1845
1848
|
"use strict";
|
|
1846
|
-
|
|
1847
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1848
|
-
exports.Dropdown = void 0;
|
|
1849
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1850
|
-
var React = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
1851
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1852
|
-
var Dropdown = /** @class */ (function (_super) {
|
|
1853
|
-
(0, tslib_1.__extends)(Dropdown, _super);
|
|
1854
|
-
function Dropdown() {
|
|
1855
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
1856
|
-
}
|
|
1857
|
-
Dropdown.prototype.render = function () {
|
|
1858
|
-
return (React.createElement(uui_components_1.Dropdown, (0, tslib_1.__assign)({}, this.props)));
|
|
1859
|
-
};
|
|
1860
|
-
return Dropdown;
|
|
1861
|
-
}(React.Component));
|
|
1862
|
-
exports.Dropdown = Dropdown;
|
|
1849
|
+
|
|
1850
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1851
|
+
exports.Dropdown = void 0;
|
|
1852
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1853
|
+
var React = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
1854
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1855
|
+
var Dropdown = /** @class */ (function (_super) {
|
|
1856
|
+
(0, tslib_1.__extends)(Dropdown, _super);
|
|
1857
|
+
function Dropdown() {
|
|
1858
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1859
|
+
}
|
|
1860
|
+
Dropdown.prototype.render = function () {
|
|
1861
|
+
return (React.createElement(uui_components_1.Dropdown, (0, tslib_1.__assign)({}, this.props)));
|
|
1862
|
+
};
|
|
1863
|
+
return Dropdown;
|
|
1864
|
+
}(React.Component));
|
|
1865
|
+
exports.Dropdown = Dropdown;
|
|
1863
1866
|
|
|
1864
1867
|
|
|
1865
1868
|
/***/ }),
|
|
@@ -1872,7 +1875,7 @@ exports.Dropdown = Dropdown;
|
|
|
1872
1875
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1873
1876
|
|
|
1874
1877
|
// extracted by mini-css-extract-plugin
|
|
1875
|
-
module.exports = {"root":"
|
|
1878
|
+
module.exports = {"root":"_1WcVm"};
|
|
1876
1879
|
|
|
1877
1880
|
/***/ }),
|
|
1878
1881
|
|
|
@@ -1884,21 +1887,21 @@ module.exports = {"root":"ddmij"};
|
|
|
1884
1887
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1885
1888
|
|
|
1886
1889
|
"use strict";
|
|
1887
|
-
|
|
1888
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1889
|
-
exports.DropdownContainer = void 0;
|
|
1890
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1891
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1892
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1893
|
-
__webpack_require__(/*! ../../assets/styles/variables/overlays/dropdownContainer.scss */ "./assets/styles/variables/overlays/dropdownContainer.scss");
|
|
1894
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./DropdownContainer.scss */ "./components/overlays/DropdownContainer.scss"));
|
|
1895
|
-
function applyDropdownContainerMods(mods) {
|
|
1896
|
-
return [
|
|
1897
|
-
'dropdown-container-vars',
|
|
1898
|
-
css.root,
|
|
1899
|
-
];
|
|
1900
|
-
}
|
|
1901
|
-
exports.DropdownContainer = (0, uui_core_1.withMods)(uui_components_1.DropdownContainer, applyDropdownContainerMods);
|
|
1890
|
+
|
|
1891
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1892
|
+
exports.DropdownContainer = void 0;
|
|
1893
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1894
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1895
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1896
|
+
__webpack_require__(/*! ../../assets/styles/variables/overlays/dropdownContainer.scss */ "./assets/styles/variables/overlays/dropdownContainer.scss");
|
|
1897
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./DropdownContainer.scss */ "./components/overlays/DropdownContainer.scss"));
|
|
1898
|
+
function applyDropdownContainerMods(mods) {
|
|
1899
|
+
return [
|
|
1900
|
+
'dropdown-container-vars',
|
|
1901
|
+
css.root,
|
|
1902
|
+
];
|
|
1903
|
+
}
|
|
1904
|
+
exports.DropdownContainer = (0, uui_core_1.withMods)(uui_components_1.DropdownContainer, applyDropdownContainerMods);
|
|
1902
1905
|
|
|
1903
1906
|
|
|
1904
1907
|
/***/ }),
|
|
@@ -1911,7 +1914,7 @@ exports.DropdownContainer = (0, uui_core_1.withMods)(uui_components_1.DropdownCo
|
|
|
1911
1914
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1912
1915
|
|
|
1913
1916
|
// extracted by mini-css-extract-plugin
|
|
1914
|
-
module.exports = {"menuRoot":"
|
|
1917
|
+
module.exports = {"menuRoot":"_3pRlz","bodyRoot":"_35__8","submenuRootItem":"_1fxBJ","iconAfter":"_3T5L2","iconCheck":"_2ScI3","splitterRoot":"kHYLV","splitter":"_14-oS","headerRoot":"NaS0D","itemRoot":"jimbt","icon":"_2O8Q_","link":"_2yWhi"};
|
|
1915
1918
|
|
|
1916
1919
|
/***/ }),
|
|
1917
1920
|
|
|
@@ -1923,136 +1926,132 @@ module.exports = {"menuRoot":"_1Yydx","bodyRoot":"_2oj9X","submenuRootItem":"_2h
|
|
|
1923
1926
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1924
1927
|
|
|
1925
1928
|
"use strict";
|
|
1926
|
-
|
|
1927
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1928
|
-
exports.DropdownMenuSwitchButton = exports.DropdownSubMenu = exports.DropdownMenuHeader = exports.DropdownMenuSplitter = exports.DropdownMenuButton = exports.DropdownMenuBody = exports.DropdownControlKeys = void 0;
|
|
1929
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1930
|
-
var react_1 = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
1931
|
-
var react_focus_lock_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! react-focus-lock */ "react-focus-lock"));
|
|
1932
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1933
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1934
|
-
var inputs_1 = __webpack_require__(/*! ../inputs */ "./components/inputs/index.ts");
|
|
1935
|
-
var icons_1 = __webpack_require__(/*! ../../icons/icons */ "./icons/icons.tsx");
|
|
1936
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./DropdownMenu.scss */ "./components/overlays/DropdownMenu.scss"));
|
|
1937
|
-
var icons = icons_1.systemIcons['36'];
|
|
1938
|
-
exports.DropdownControlKeys = {
|
|
1939
|
-
ENTER: 'Enter',
|
|
1940
|
-
ESCAPE: 'Escape',
|
|
1941
|
-
LEFT_ARROW: 'ArrowLeft',
|
|
1942
|
-
RIGHT_ARROW: 'ArrowRight',
|
|
1943
|
-
UP_ARROW: 'ArrowUp',
|
|
1944
|
-
DOWN_ARROW: 'ArrowDown',
|
|
1945
|
-
};
|
|
1946
|
-
var DropdownMenuContainer = function (
|
|
1947
|
-
var
|
|
1948
|
-
var
|
|
1949
|
-
var
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
}
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
}
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
var
|
|
1982
|
-
var
|
|
1983
|
-
var
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
var
|
|
2000
|
-
var
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
react_1.default.createElement(
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
var
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
exports.DropdownMenuButton = DropdownMenuButton;
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
}
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
react_1.default.createElement(uui_components_1.FlexSpacer, null),
|
|
2053
|
-
react_1.default.createElement(inputs_1.Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
2054
|
-
};
|
|
2055
|
-
exports.DropdownMenuSwitchButton = DropdownMenuSwitchButton;
|
|
1929
|
+
|
|
1930
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1931
|
+
exports.DropdownMenuSwitchButton = exports.DropdownSubMenu = exports.DropdownMenuHeader = exports.DropdownMenuSplitter = exports.DropdownMenuButton = exports.DropdownMenuBody = exports.DropdownControlKeys = void 0;
|
|
1932
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1933
|
+
var react_1 = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
1934
|
+
var react_focus_lock_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! react-focus-lock */ "react-focus-lock"));
|
|
1935
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1936
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1937
|
+
var inputs_1 = __webpack_require__(/*! ../inputs */ "./components/inputs/index.ts");
|
|
1938
|
+
var icons_1 = __webpack_require__(/*! ../../icons/icons */ "./icons/icons.tsx");
|
|
1939
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./DropdownMenu.scss */ "./components/overlays/DropdownMenu.scss"));
|
|
1940
|
+
var icons = icons_1.systemIcons['36'];
|
|
1941
|
+
exports.DropdownControlKeys = {
|
|
1942
|
+
ENTER: 'Enter',
|
|
1943
|
+
ESCAPE: 'Escape',
|
|
1944
|
+
LEFT_ARROW: 'ArrowLeft',
|
|
1945
|
+
RIGHT_ARROW: 'ArrowRight',
|
|
1946
|
+
UP_ARROW: 'ArrowUp',
|
|
1947
|
+
DOWN_ARROW: 'ArrowDown',
|
|
1948
|
+
};
|
|
1949
|
+
var DropdownMenuContainer = function (props) {
|
|
1950
|
+
var menuRef = (0, react_1.useRef)(null);
|
|
1951
|
+
var _a = (0, react_1.useState)(-1), currentlyFocused = _a[0], setFocused = _a[1];
|
|
1952
|
+
var menuItems = menuRef.current ? Array.from(menuRef.current.querySelectorAll("[role=\"menuitem\"]:not(.".concat(uui_core_1.uuiMod.disabled, ")"))) : [];
|
|
1953
|
+
(0, react_1.useEffect)(function () {
|
|
1954
|
+
var _a;
|
|
1955
|
+
(_a = menuRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
1956
|
+
}, [menuRef.current]);
|
|
1957
|
+
var changeFocus = function (nextFocusedIndex) {
|
|
1958
|
+
if (menuItems.length > 0) {
|
|
1959
|
+
setFocused(nextFocusedIndex);
|
|
1960
|
+
menuItems[nextFocusedIndex].focus();
|
|
1961
|
+
}
|
|
1962
|
+
};
|
|
1963
|
+
var handleArrowKeys = function (e) {
|
|
1964
|
+
e.stopPropagation();
|
|
1965
|
+
var lastMenuItemsIndex = menuItems.length - 1;
|
|
1966
|
+
if (e.key === exports.DropdownControlKeys.UP_ARROW) {
|
|
1967
|
+
changeFocus(currentlyFocused > 0 ? currentlyFocused - 1 : lastMenuItemsIndex);
|
|
1968
|
+
}
|
|
1969
|
+
else if (e.key === exports.DropdownControlKeys.DOWN_ARROW) {
|
|
1970
|
+
changeFocus(currentlyFocused < lastMenuItemsIndex ? currentlyFocused + 1 : 0);
|
|
1971
|
+
}
|
|
1972
|
+
else if (e.key === props.closeOnKey && props.onClose) {
|
|
1973
|
+
props.onClose();
|
|
1974
|
+
}
|
|
1975
|
+
};
|
|
1976
|
+
return (react_1.default.createElement(react_focus_lock_1.default, { as: "menu", className: css.menuRoot, returnFocus: true, autoFocus: false, ref: menuRef, lockProps: { onKeyDown: handleArrowKeys, tabIndex: -1 } },
|
|
1977
|
+
react_1.default.createElement(uui_components_1.DropdownContainer, (0, tslib_1.__assign)({}, props, { rawProps: { tabIndex: -1 } }))));
|
|
1978
|
+
};
|
|
1979
|
+
exports.DropdownMenuBody = (0, uui_core_1.withMods)(DropdownMenuContainer, function () { return [css.bodyRoot]; }, function (_a) {
|
|
1980
|
+
var style = _a.style;
|
|
1981
|
+
return ({ style: style });
|
|
1982
|
+
});
|
|
1983
|
+
var DropdownMenuButton = function (props) {
|
|
1984
|
+
var context = (0, react_1.useContext)(uui_core_1.UuiContext);
|
|
1985
|
+
var icon = props.icon, iconPosition = props.iconPosition, caption = props.caption, isDisabled = props.isDisabled, isSelected = props.isSelected, link = props.link, href = props.href, onClick = props.onClick, toggleDropdownOpening = props.toggleDropdownOpening, isDropdown = props.isDropdown;
|
|
1986
|
+
var handleClick = function (event) {
|
|
1987
|
+
if (isDisabled || !onClick)
|
|
1988
|
+
return;
|
|
1989
|
+
onClick(event);
|
|
1990
|
+
context.uuiAnalytics.sendEvent(props.clickAnalyticsEvent);
|
|
1991
|
+
};
|
|
1992
|
+
var handleOpenDropdown = function (event) {
|
|
1993
|
+
if (event.key === exports.DropdownControlKeys.RIGHT_ARROW && isDropdown) {
|
|
1994
|
+
toggleDropdownOpening(true);
|
|
1995
|
+
}
|
|
1996
|
+
else if (event.key === exports.DropdownControlKeys.ENTER && onClick) {
|
|
1997
|
+
onClick(event);
|
|
1998
|
+
}
|
|
1999
|
+
};
|
|
2000
|
+
var getMenuButtonContent = function () {
|
|
2001
|
+
var isIconBefore = Boolean(icon && iconPosition !== "right");
|
|
2002
|
+
var isIconAfter = Boolean(icon && iconPosition === "right");
|
|
2003
|
+
var iconElement = react_1.default.createElement(uui_components_1.IconContainer, { icon: icon, cx: (0, uui_core_1.cx)(css.icon, iconPosition === "right" ? css.iconAfter : css.iconBefore) });
|
|
2004
|
+
return react_1.default.createElement(react_1.default.Fragment, null,
|
|
2005
|
+
isIconBefore && iconElement,
|
|
2006
|
+
react_1.default.createElement(uui_components_1.Text, { cx: css.caption }, caption),
|
|
2007
|
+
isIconAfter && react_1.default.createElement(react_1.default.Fragment, null,
|
|
2008
|
+
react_1.default.createElement(uui_components_1.FlexSpacer, null),
|
|
2009
|
+
iconElement));
|
|
2010
|
+
};
|
|
2011
|
+
var isAnchor = Boolean(link || href);
|
|
2012
|
+
var itemClassNames = (0, uui_core_1.cx)(props.cx, css.itemRoot, isDisabled && uui_core_1.uuiMod.disabled, isSelected && uui_core_1.uuiMod.selected);
|
|
2013
|
+
return isAnchor ? (react_1.default.createElement(uui_components_1.Anchor, { cx: (0, uui_core_1.cx)(css.link, itemClassNames), link: link, href: href, rawProps: { role: 'menuitem', tabIndex: isDisabled ? -1 : 0 }, onClick: handleClick, isDisabled: isDisabled }, getMenuButtonContent())) : (react_1.default.createElement(uui_components_1.FlexRow, { rawProps: {
|
|
2014
|
+
tabIndex: isDisabled ? -1 : 0,
|
|
2015
|
+
role: 'menuitem',
|
|
2016
|
+
onKeyDown: isDisabled ? null : handleOpenDropdown,
|
|
2017
|
+
}, cx: itemClassNames, onClick: handleClick }, getMenuButtonContent()));
|
|
2018
|
+
};
|
|
2019
|
+
exports.DropdownMenuButton = DropdownMenuButton;
|
|
2020
|
+
exports.DropdownMenuButton.displayName = 'DropdownMenuButton';
|
|
2021
|
+
var DropdownMenuSplitter = function (props) { return (react_1.default.createElement("div", { className: (0, uui_core_1.cx)(props.cx, css.splitterRoot) },
|
|
2022
|
+
react_1.default.createElement("hr", { className: css.splitter }))); };
|
|
2023
|
+
exports.DropdownMenuSplitter = DropdownMenuSplitter;
|
|
2024
|
+
var DropdownMenuHeader = function (props) { return (react_1.default.createElement("div", { className: (0, uui_core_1.cx)(props.cx, css.headerRoot) },
|
|
2025
|
+
react_1.default.createElement("span", { className: css.header }, props.caption))); };
|
|
2026
|
+
exports.DropdownMenuHeader = DropdownMenuHeader;
|
|
2027
|
+
var DropdownSubMenu = function (props) {
|
|
2028
|
+
return (react_1.default.createElement(uui_components_1.Dropdown, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", placement: "right-start", renderBody: function (props) { return (react_1.default.createElement(exports.DropdownMenuBody, (0, tslib_1.__assign)({ closeOnKey: exports.DropdownControlKeys.LEFT_ARROW }, props))); }, renderTarget: function (_a) {
|
|
2029
|
+
var toggleDropdownOpening = _a.toggleDropdownOpening;
|
|
2030
|
+
return (react_1.default.createElement(exports.DropdownMenuButton, (0, tslib_1.__assign)({ cx: (0, uui_core_1.cx)(css.submenuRootItem), icon: icons.foldingArrow, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening }, props)));
|
|
2031
|
+
} }));
|
|
2032
|
+
};
|
|
2033
|
+
exports.DropdownSubMenu = DropdownSubMenu;
|
|
2034
|
+
var DropdownMenuSwitchButton = function (props) {
|
|
2035
|
+
var context = (0, react_1.useContext)(uui_core_1.UuiContext);
|
|
2036
|
+
var icon = props.icon, caption = props.caption, isDisabled = props.isDisabled, isSelected = props.isSelected, onValueChange = props.onValueChange;
|
|
2037
|
+
var onHandleValueChange = function (value) {
|
|
2038
|
+
if (isDisabled || !onValueChange)
|
|
2039
|
+
return;
|
|
2040
|
+
onValueChange(value);
|
|
2041
|
+
context.uuiAnalytics.sendEvent(props.clickAnalyticsEvent);
|
|
2042
|
+
};
|
|
2043
|
+
var handleKeySelect = function (e) {
|
|
2044
|
+
if (e.key === exports.DropdownControlKeys.ENTER) {
|
|
2045
|
+
onHandleValueChange(!isSelected);
|
|
2046
|
+
}
|
|
2047
|
+
};
|
|
2048
|
+
return (react_1.default.createElement(uui_components_1.FlexRow, { cx: (0, uui_core_1.cx)(props.cx, css.itemRoot, isDisabled && uui_core_1.uuiMod.disabled), onClick: function () { return onHandleValueChange(!isSelected); }, rawProps: { role: 'menuitem', onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 } },
|
|
2049
|
+
icon && react_1.default.createElement(uui_components_1.IconContainer, { icon: icon, cx: css.iconBefore }),
|
|
2050
|
+
react_1.default.createElement(uui_components_1.Text, { cx: css.caption }, caption),
|
|
2051
|
+
react_1.default.createElement(uui_components_1.FlexSpacer, null),
|
|
2052
|
+
react_1.default.createElement(inputs_1.Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
2053
|
+
};
|
|
2054
|
+
exports.DropdownMenuSwitchButton = DropdownMenuSwitchButton;
|
|
2056
2055
|
|
|
2057
2056
|
|
|
2058
2057
|
/***/ }),
|
|
@@ -2065,7 +2064,7 @@ exports.DropdownMenuSwitchButton = DropdownMenuSwitchButton;
|
|
|
2065
2064
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2066
2065
|
|
|
2067
2066
|
// extracted by mini-css-extract-plugin
|
|
2068
|
-
module.exports = {"modal-blocker":"
|
|
2067
|
+
module.exports = {"modal-blocker":"HXNzc","modalBlocker":"HXNzc","animateModalBlocker":"_36b-I","blocker-overlay":"xXCEM","blockerOverlay":"xXCEM","modal":"_1NulA","modal-footer":"K7JNA","modalFooter":"K7JNA","border-top":"_1wr9d","borderTop":"_1wr9d","modal-header":"_3No_p","modalHeader":"_3No_p"};
|
|
2069
2068
|
|
|
2070
2069
|
/***/ }),
|
|
2071
2070
|
|
|
@@ -2077,58 +2076,58 @@ module.exports = {"modal-blocker":"_1aB-1","modalBlocker":"_1aB-1","animateModal
|
|
|
2077
2076
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2078
2077
|
|
|
2079
2078
|
"use strict";
|
|
2080
|
-
|
|
2081
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2082
|
-
exports.ModalFooter = exports.ModalHeader = exports.ModalWindow = exports.ModalBlocker = void 0;
|
|
2083
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2084
|
-
var React = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
2085
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
2086
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
2087
|
-
var layout_1 = __webpack_require__(/*! ../layout */ "./components/layout/index.ts");
|
|
2088
|
-
var buttons_1 = __webpack_require__(/*! ../buttons */ "./components/buttons/index.ts");
|
|
2089
|
-
var typography_1 = __webpack_require__(/*! ../typography */ "./components/typography/index.ts");
|
|
2090
|
-
var navigation_close_24_svg_1 = __webpack_require__(/*! ../../icons/navigation-close-24.svg */ "./icons/navigation-close-24.svg");
|
|
2091
|
-
__webpack_require__(/*! ../../assets/styles/variables/overlays/modals.scss */ "./assets/styles/variables/overlays/modals.scss");
|
|
2092
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Modals.scss */ "./components/overlays/Modals.scss"));
|
|
2093
|
-
exports.ModalBlocker = (0, uui_core_1.withMods)(uui_components_1.ModalBlocker, function (mods) { return [
|
|
2094
|
-
'modals-vars',
|
|
2095
|
-
css.modalBlocker,
|
|
2096
|
-
mods.overlay && css['blocker-overlay'],
|
|
2097
|
-
]; });
|
|
2098
|
-
exports.ModalWindow = (0, uui_core_1.withMods)(uui_components_1.ModalWindow, function () { return ['modals-vars', css.modal]; }, function (props) { return ({ rawProps: {
|
|
2099
|
-
style: {
|
|
2100
|
-
width: "".concat(props.width || 480, "px"),
|
|
2101
|
-
height: props.height ? "".concat(props.height, "px") : '',
|
|
2102
|
-
},
|
|
2103
|
-
},
|
|
2104
|
-
}); });
|
|
2105
|
-
var ModalHeader = /** @class */ (function (_super) {
|
|
2106
|
-
(0, tslib_1.__extends)(ModalHeader, _super);
|
|
2107
|
-
function ModalHeader() {
|
|
2108
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
2109
|
-
}
|
|
2110
|
-
ModalHeader.prototype.render = function () {
|
|
2111
|
-
return (React.createElement(layout_1.FlexRow, { padding: this.props.padding || '24', vPadding: '12', borderBottom: true, cx: ['modals-vars', css.modalHeader, this.props.cx], spacing: '12', rawProps: this.props.rawProps },
|
|
2112
|
-
this.props.title && React.createElement(typography_1.Text, { size: '48', fontSize: '18', font: 'semibold' }, this.props.title),
|
|
2113
|
-
this.props.children,
|
|
2114
|
-
this.props.onClose && React.createElement(layout_1.FlexSpacer, null),
|
|
2115
|
-
this.props.onClose && React.createElement(layout_1.FlexCell, { shrink: 0, width: 'auto' },
|
|
2116
|
-
React.createElement(buttons_1.IconButton, { icon: navigation_close_24_svg_1.ReactComponent, onClick: this.props.onClose }))));
|
|
2117
|
-
};
|
|
2118
|
-
return ModalHeader;
|
|
2119
|
-
}(React.Component));
|
|
2120
|
-
exports.ModalHeader = ModalHeader;
|
|
2121
|
-
var ModalFooter = /** @class */ (function (_super) {
|
|
2122
|
-
(0, tslib_1.__extends)(ModalFooter, _super);
|
|
2123
|
-
function ModalFooter() {
|
|
2124
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
2125
|
-
}
|
|
2126
|
-
ModalFooter.prototype.render = function () {
|
|
2127
|
-
return (React.createElement(layout_1.FlexRow, { spacing: this.props.spacing || '12', cx: ['modals-vars', css.modalFooter, this.props.borderTop && css.borderTop, this.props.cx], padding: this.props.padding || '24', vPadding: this.props.vPadding || '24', rawProps: this.props.rawProps }, this.props.children));
|
|
2128
|
-
};
|
|
2129
|
-
return ModalFooter;
|
|
2130
|
-
}(React.Component));
|
|
2131
|
-
exports.ModalFooter = ModalFooter;
|
|
2079
|
+
|
|
2080
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2081
|
+
exports.ModalFooter = exports.ModalHeader = exports.ModalWindow = exports.ModalBlocker = void 0;
|
|
2082
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2083
|
+
var React = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
2084
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
2085
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
2086
|
+
var layout_1 = __webpack_require__(/*! ../layout */ "./components/layout/index.ts");
|
|
2087
|
+
var buttons_1 = __webpack_require__(/*! ../buttons */ "./components/buttons/index.ts");
|
|
2088
|
+
var typography_1 = __webpack_require__(/*! ../typography */ "./components/typography/index.ts");
|
|
2089
|
+
var navigation_close_24_svg_1 = __webpack_require__(/*! ../../icons/navigation-close-24.svg */ "./icons/navigation-close-24.svg");
|
|
2090
|
+
__webpack_require__(/*! ../../assets/styles/variables/overlays/modals.scss */ "./assets/styles/variables/overlays/modals.scss");
|
|
2091
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Modals.scss */ "./components/overlays/Modals.scss"));
|
|
2092
|
+
exports.ModalBlocker = (0, uui_core_1.withMods)(uui_components_1.ModalBlocker, function (mods) { return [
|
|
2093
|
+
'modals-vars',
|
|
2094
|
+
css.modalBlocker,
|
|
2095
|
+
mods.overlay && css['blocker-overlay'],
|
|
2096
|
+
]; });
|
|
2097
|
+
exports.ModalWindow = (0, uui_core_1.withMods)(uui_components_1.ModalWindow, function () { return ['modals-vars', css.modal]; }, function (props) { return ({ rawProps: {
|
|
2098
|
+
style: {
|
|
2099
|
+
width: "".concat(props.width || 480, "px"),
|
|
2100
|
+
height: props.height ? "".concat(props.height, "px") : '',
|
|
2101
|
+
},
|
|
2102
|
+
},
|
|
2103
|
+
}); });
|
|
2104
|
+
var ModalHeader = /** @class */ (function (_super) {
|
|
2105
|
+
(0, tslib_1.__extends)(ModalHeader, _super);
|
|
2106
|
+
function ModalHeader() {
|
|
2107
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2108
|
+
}
|
|
2109
|
+
ModalHeader.prototype.render = function () {
|
|
2110
|
+
return (React.createElement(layout_1.FlexRow, { padding: this.props.padding || '24', vPadding: '12', borderBottom: true, cx: ['modals-vars', css.modalHeader, this.props.cx], spacing: '12', rawProps: this.props.rawProps },
|
|
2111
|
+
this.props.title && React.createElement(typography_1.Text, { size: '48', fontSize: '18', font: 'semibold' }, this.props.title),
|
|
2112
|
+
this.props.children,
|
|
2113
|
+
this.props.onClose && React.createElement(layout_1.FlexSpacer, null),
|
|
2114
|
+
this.props.onClose && React.createElement(layout_1.FlexCell, { shrink: 0, width: 'auto' },
|
|
2115
|
+
React.createElement(buttons_1.IconButton, { icon: navigation_close_24_svg_1.ReactComponent, onClick: this.props.onClose }))));
|
|
2116
|
+
};
|
|
2117
|
+
return ModalHeader;
|
|
2118
|
+
}(React.Component));
|
|
2119
|
+
exports.ModalHeader = ModalHeader;
|
|
2120
|
+
var ModalFooter = /** @class */ (function (_super) {
|
|
2121
|
+
(0, tslib_1.__extends)(ModalFooter, _super);
|
|
2122
|
+
function ModalFooter() {
|
|
2123
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2124
|
+
}
|
|
2125
|
+
ModalFooter.prototype.render = function () {
|
|
2126
|
+
return (React.createElement(layout_1.FlexRow, { spacing: this.props.spacing || '12', cx: ['modals-vars', css.modalFooter, this.props.borderTop && css.borderTop, this.props.cx], padding: this.props.padding || '24', vPadding: this.props.vPadding || '24', rawProps: this.props.rawProps }, this.props.children));
|
|
2127
|
+
};
|
|
2128
|
+
return ModalFooter;
|
|
2129
|
+
}(React.Component));
|
|
2130
|
+
exports.ModalFooter = ModalFooter;
|
|
2132
2131
|
|
|
2133
2132
|
|
|
2134
2133
|
/***/ }),
|
|
@@ -2141,7 +2140,7 @@ exports.ModalFooter = ModalFooter;
|
|
|
2141
2140
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2142
2141
|
|
|
2143
2142
|
// extracted by mini-css-extract-plugin
|
|
2144
|
-
module.exports = {"root":"
|
|
2143
|
+
module.exports = {"root":"_1W9yn","icon-wrapper":"_1SLVZ","iconWrapper":"_1SLVZ","notification-wrapper":"_3eJQZ","notificationWrapper":"_3eJQZ","action-wrapper":"_36Era","actionWrapper":"_36Era","action-link":"_1Rg5n","actionLink":"_1Rg5n","close-icon":"_1sCRD","closeIcon":"_1sCRD","main-path":"_115YM","mainPath":"_115YM","content":"SMEht","clear-button":"_3YKfb","clearButton":"_3YKfb","close-wrapper":"_3OghY","closeWrapper":"_3OghY"};
|
|
2145
2144
|
|
|
2146
2145
|
/***/ }),
|
|
2147
2146
|
|
|
@@ -2153,86 +2152,87 @@ module.exports = {"root":"_3ej33","icon-wrapper":"_1uX_5","iconWrapper":"_1uX_5"
|
|
|
2153
2152
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2154
2153
|
|
|
2155
2154
|
"use strict";
|
|
2156
|
-
|
|
2157
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2158
|
-
exports.ClearNotification = exports.ErrorNotification = exports.HintNotification = exports.SuccessNotification = exports.WarningNotification = exports.NotificationCard = void 0;
|
|
2159
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2160
|
-
var react_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! react */ "react"));
|
|
2161
|
-
var classnames_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! classnames */ "classnames"));
|
|
2162
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
2163
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
2164
|
-
var buttons_1 = __webpack_require__(/*! ../buttons */ "./components/buttons/index.ts");
|
|
2165
|
-
var i18n_1 = __webpack_require__(/*! ../../i18n */ "./i18n.ts");
|
|
2166
|
-
var notification_check_circle_fill_24_svg_1 = __webpack_require__(/*! ../../icons/notification-check_circle-fill-24.svg */ "./icons/notification-check_circle-fill-24.svg");
|
|
2167
|
-
var notification_warning_fill_24_svg_1 = __webpack_require__(/*! ../../icons/notification-warning-fill-24.svg */ "./icons/notification-warning-fill-24.svg");
|
|
2168
|
-
var notification_error_fill_24_svg_1 = __webpack_require__(/*! ../../icons/notification-error-fill-24.svg */ "./icons/notification-error-fill-24.svg");
|
|
2169
|
-
var notification_help_fill_24_svg_1 = __webpack_require__(/*! ../../icons/notification-help-fill-24.svg */ "./icons/notification-help-fill-24.svg");
|
|
2170
|
-
var cross_svg_1 = __webpack_require__(/*! ../../icons/snackbar/cross.svg */ "./icons/snackbar/cross.svg");
|
|
2171
|
-
__webpack_require__(/*! ../../assets/styles/variables/overlays/notificationCard.scss */ "./assets/styles/variables/overlays/notificationCard.scss");
|
|
2172
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./NotificationCard.scss */ "./components/overlays/NotificationCard.scss"));
|
|
2173
|
-
var NotificationCard = /** @class */ (function (_super) {
|
|
2174
|
-
(0, tslib_1.__extends)(NotificationCard, _super);
|
|
2175
|
-
function NotificationCard() {
|
|
2176
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
2177
|
-
_this.notificationCardNode = null;
|
|
2178
|
-
return _this;
|
|
2179
|
-
}
|
|
2180
|
-
NotificationCard.prototype.componentDidMount = function () {
|
|
2181
|
-
var _a, _b;
|
|
2182
|
-
(_a = this.notificationCardNode) === null || _a === void 0 ? void 0 : _a.addEventListener('mouseenter', this.props.clearTimer);
|
|
2183
|
-
(_b = this.notificationCardNode) === null || _b === void 0 ? void 0 : _b.addEventListener('mouseleave', this.props.refreshTimer);
|
|
2184
|
-
};
|
|
2185
|
-
NotificationCard.prototype.componentWillUnmount = function () {
|
|
2186
|
-
var _a, _b;
|
|
2187
|
-
(_a = this.notificationCardNode) === null || _a === void 0 ? void 0 : _a.removeEventListener('mouseenter', this.props.clearTimer);
|
|
2188
|
-
(_b = this.notificationCardNode) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseleave', this.props.refreshTimer);
|
|
2189
|
-
};
|
|
2190
|
-
NotificationCard.prototype.render = function () {
|
|
2191
|
-
var _this = this;
|
|
2192
|
-
return (react_1.default.createElement("div", { role: 'alert', className: (0, classnames_1.default)(css.notificationWrapper, 'notification-card-vars', "notification-card-color-".concat(this.props.color), css.root, this.props.cx), ref: function (el) { return _this.notificationCardNode = el; } },
|
|
2193
|
-
react_1.default.createElement("div", { className: css.mainPath },
|
|
2194
|
-
this.props.icon && react_1.default.createElement("div", { className: css.iconWrapper },
|
|
2195
|
-
react_1.default.createElement(uui_components_1.IconContainer, { icon: this.props.icon, cx: css.actionIcon })),
|
|
2196
|
-
react_1.default.createElement("div", { className: css.content },
|
|
2197
|
-
this.props.children,
|
|
2198
|
-
this.props.actions && react_1.default.createElement("div", { className: css.actionWrapper }, this.props.actions.map(function (action) {
|
|
2199
|
-
return react_1.default.createElement(buttons_1.LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css.actionLink, size: '36' });
|
|
2200
|
-
}))),
|
|
2201
|
-
this.props.onClose && react_1.default.createElement(
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
};
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
};
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
};
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
};
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2155
|
+
|
|
2156
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2157
|
+
exports.ClearNotification = exports.ErrorNotification = exports.HintNotification = exports.SuccessNotification = exports.WarningNotification = exports.NotificationCard = void 0;
|
|
2158
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2159
|
+
var react_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! react */ "react"));
|
|
2160
|
+
var classnames_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! classnames */ "classnames"));
|
|
2161
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
2162
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
2163
|
+
var buttons_1 = __webpack_require__(/*! ../buttons */ "./components/buttons/index.ts");
|
|
2164
|
+
var i18n_1 = __webpack_require__(/*! ../../i18n */ "./i18n.ts");
|
|
2165
|
+
var notification_check_circle_fill_24_svg_1 = __webpack_require__(/*! ../../icons/notification-check_circle-fill-24.svg */ "./icons/notification-check_circle-fill-24.svg");
|
|
2166
|
+
var notification_warning_fill_24_svg_1 = __webpack_require__(/*! ../../icons/notification-warning-fill-24.svg */ "./icons/notification-warning-fill-24.svg");
|
|
2167
|
+
var notification_error_fill_24_svg_1 = __webpack_require__(/*! ../../icons/notification-error-fill-24.svg */ "./icons/notification-error-fill-24.svg");
|
|
2168
|
+
var notification_help_fill_24_svg_1 = __webpack_require__(/*! ../../icons/notification-help-fill-24.svg */ "./icons/notification-help-fill-24.svg");
|
|
2169
|
+
var cross_svg_1 = __webpack_require__(/*! ../../icons/snackbar/cross.svg */ "./icons/snackbar/cross.svg");
|
|
2170
|
+
__webpack_require__(/*! ../../assets/styles/variables/overlays/notificationCard.scss */ "./assets/styles/variables/overlays/notificationCard.scss");
|
|
2171
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./NotificationCard.scss */ "./components/overlays/NotificationCard.scss"));
|
|
2172
|
+
var NotificationCard = /** @class */ (function (_super) {
|
|
2173
|
+
(0, tslib_1.__extends)(NotificationCard, _super);
|
|
2174
|
+
function NotificationCard() {
|
|
2175
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
2176
|
+
_this.notificationCardNode = null;
|
|
2177
|
+
return _this;
|
|
2178
|
+
}
|
|
2179
|
+
NotificationCard.prototype.componentDidMount = function () {
|
|
2180
|
+
var _a, _b;
|
|
2181
|
+
(_a = this.notificationCardNode) === null || _a === void 0 ? void 0 : _a.addEventListener('mouseenter', this.props.clearTimer);
|
|
2182
|
+
(_b = this.notificationCardNode) === null || _b === void 0 ? void 0 : _b.addEventListener('mouseleave', this.props.refreshTimer);
|
|
2183
|
+
};
|
|
2184
|
+
NotificationCard.prototype.componentWillUnmount = function () {
|
|
2185
|
+
var _a, _b;
|
|
2186
|
+
(_a = this.notificationCardNode) === null || _a === void 0 ? void 0 : _a.removeEventListener('mouseenter', this.props.clearTimer);
|
|
2187
|
+
(_b = this.notificationCardNode) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseleave', this.props.refreshTimer);
|
|
2188
|
+
};
|
|
2189
|
+
NotificationCard.prototype.render = function () {
|
|
2190
|
+
var _this = this;
|
|
2191
|
+
return (react_1.default.createElement("div", { role: 'alert', className: (0, classnames_1.default)(css.notificationWrapper, 'notification-card-vars', "notification-card-color-".concat(this.props.color), css.root, this.props.cx), ref: function (el) { return _this.notificationCardNode = el; } },
|
|
2192
|
+
react_1.default.createElement("div", { className: css.mainPath },
|
|
2193
|
+
this.props.icon && react_1.default.createElement("div", { className: css.iconWrapper },
|
|
2194
|
+
react_1.default.createElement(uui_components_1.IconContainer, { icon: this.props.icon, cx: css.actionIcon })),
|
|
2195
|
+
react_1.default.createElement("div", { className: css.content },
|
|
2196
|
+
this.props.children,
|
|
2197
|
+
this.props.actions && react_1.default.createElement("div", { className: css.actionWrapper }, this.props.actions.map(function (action) {
|
|
2198
|
+
return react_1.default.createElement(buttons_1.LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css.actionLink, size: '36' });
|
|
2199
|
+
}))),
|
|
2200
|
+
this.props.onClose && react_1.default.createElement("div", { className: css.closeWrapper },
|
|
2201
|
+
react_1.default.createElement(buttons_1.IconButton, { icon: cross_svg_1.ReactComponent, color: 'default', onClick: this.props.onClose, cx: css.closeIcon })))));
|
|
2202
|
+
};
|
|
2203
|
+
return NotificationCard;
|
|
2204
|
+
}(react_1.default.Component));
|
|
2205
|
+
exports.NotificationCard = NotificationCard;
|
|
2206
|
+
var WarningNotification = function (props) {
|
|
2207
|
+
return react_1.default.createElement(NotificationCard, (0, tslib_1.__assign)({ icon: notification_warning_fill_24_svg_1.ReactComponent, color: 'warning' }, props, { cx: (0, classnames_1.default)(props.cx) }));
|
|
2208
|
+
};
|
|
2209
|
+
exports.WarningNotification = WarningNotification;
|
|
2210
|
+
var SuccessNotification = function (props) {
|
|
2211
|
+
return react_1.default.createElement(NotificationCard, (0, tslib_1.__assign)({ icon: notification_check_circle_fill_24_svg_1.ReactComponent, color: 'success' }, props, { cx: (0, classnames_1.default)(props.cx) }));
|
|
2212
|
+
};
|
|
2213
|
+
exports.SuccessNotification = SuccessNotification;
|
|
2214
|
+
var HintNotification = function (props) {
|
|
2215
|
+
return react_1.default.createElement(NotificationCard, (0, tslib_1.__assign)({ icon: notification_help_fill_24_svg_1.ReactComponent, color: 'info' }, props, { cx: (0, classnames_1.default)(props.cx) }));
|
|
2216
|
+
};
|
|
2217
|
+
exports.HintNotification = HintNotification;
|
|
2218
|
+
var ErrorNotification = function (props) {
|
|
2219
|
+
return react_1.default.createElement(NotificationCard, (0, tslib_1.__assign)({ icon: notification_error_fill_24_svg_1.ReactComponent, color: 'error' }, props, { cx: (0, classnames_1.default)(props.cx) }));
|
|
2220
|
+
};
|
|
2221
|
+
exports.ErrorNotification = ErrorNotification;
|
|
2222
|
+
var ClearNotification = /** @class */ (function (_super) {
|
|
2223
|
+
(0, tslib_1.__extends)(ClearNotification, _super);
|
|
2224
|
+
function ClearNotification() {
|
|
2225
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2226
|
+
}
|
|
2227
|
+
ClearNotification.prototype.render = function () {
|
|
2228
|
+
var _this = this;
|
|
2229
|
+
return react_1.default.createElement("div", { className: (0, classnames_1.default)(css.notificationWrapper, css.clearButton) },
|
|
2230
|
+
react_1.default.createElement(buttons_1.LinkButton, { caption: i18n_1.i18n.notificationCard.closeAllNotificationsButton, onClick: function () { return _this.context.uuiNotifications.clearAll(); } }));
|
|
2231
|
+
};
|
|
2232
|
+
ClearNotification.contextType = uui_core_1.UuiContext;
|
|
2233
|
+
return ClearNotification;
|
|
2234
|
+
}(react_1.default.Component));
|
|
2235
|
+
exports.ClearNotification = ClearNotification;
|
|
2236
2236
|
|
|
2237
2237
|
|
|
2238
2238
|
/***/ }),
|
|
@@ -2245,7 +2245,7 @@ exports.ClearNotification = ClearNotification;
|
|
|
2245
2245
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2246
2246
|
|
|
2247
2247
|
// extracted by mini-css-extract-plugin
|
|
2248
|
-
module.exports = {"root":"
|
|
2248
|
+
module.exports = {"root":"J56ZT"};
|
|
2249
2249
|
|
|
2250
2250
|
/***/ }),
|
|
2251
2251
|
|
|
@@ -2257,21 +2257,21 @@ module.exports = {"root":"_1LVjq"};
|
|
|
2257
2257
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2258
2258
|
|
|
2259
2259
|
"use strict";
|
|
2260
|
-
|
|
2261
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2262
|
-
exports.Tooltip = void 0;
|
|
2263
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2264
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
2265
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
2266
|
-
__webpack_require__(/*! ../../assets/styles/variables/overlays/tooltip.scss */ "./assets/styles/variables/overlays/tooltip.scss");
|
|
2267
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Tooltip.scss */ "./components/overlays/Tooltip.scss"));
|
|
2268
|
-
function applyTooltipMods(mods) {
|
|
2269
|
-
return [
|
|
2270
|
-
'tooltip-vars',
|
|
2271
|
-
css.root,
|
|
2272
|
-
];
|
|
2273
|
-
}
|
|
2274
|
-
exports.Tooltip = (0, uui_core_1.withMods)(uui_components_1.Tooltip, applyTooltipMods);
|
|
2260
|
+
|
|
2261
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2262
|
+
exports.Tooltip = void 0;
|
|
2263
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2264
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
2265
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
2266
|
+
__webpack_require__(/*! ../../assets/styles/variables/overlays/tooltip.scss */ "./assets/styles/variables/overlays/tooltip.scss");
|
|
2267
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Tooltip.scss */ "./components/overlays/Tooltip.scss"));
|
|
2268
|
+
function applyTooltipMods(mods) {
|
|
2269
|
+
return [
|
|
2270
|
+
'tooltip-vars',
|
|
2271
|
+
css.root,
|
|
2272
|
+
];
|
|
2273
|
+
}
|
|
2274
|
+
exports.Tooltip = (0, uui_core_1.withMods)(uui_components_1.Tooltip, applyTooltipMods);
|
|
2275
2275
|
|
|
2276
2276
|
|
|
2277
2277
|
/***/ }),
|
|
@@ -2284,15 +2284,15 @@ exports.Tooltip = (0, uui_core_1.withMods)(uui_components_1.Tooltip, applyToolti
|
|
|
2284
2284
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2285
2285
|
|
|
2286
2286
|
"use strict";
|
|
2287
|
-
|
|
2288
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2289
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2290
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Dropdown */ "./components/overlays/Dropdown.tsx"), exports);
|
|
2291
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DropdownContainer */ "./components/overlays/DropdownContainer.tsx"), exports);
|
|
2292
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DropdownMenu */ "./components/overlays/DropdownMenu.tsx"), exports);
|
|
2293
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Modals */ "./components/overlays/Modals.tsx"), exports);
|
|
2294
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./NotificationCard */ "./components/overlays/NotificationCard.tsx"), exports);
|
|
2295
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Tooltip */ "./components/overlays/Tooltip.tsx"), exports);
|
|
2287
|
+
|
|
2288
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2289
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2290
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Dropdown */ "./components/overlays/Dropdown.tsx"), exports);
|
|
2291
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DropdownContainer */ "./components/overlays/DropdownContainer.tsx"), exports);
|
|
2292
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DropdownMenu */ "./components/overlays/DropdownMenu.tsx"), exports);
|
|
2293
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Modals */ "./components/overlays/Modals.tsx"), exports);
|
|
2294
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./NotificationCard */ "./components/overlays/NotificationCard.tsx"), exports);
|
|
2295
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Tooltip */ "./components/overlays/Tooltip.tsx"), exports);
|
|
2296
2296
|
|
|
2297
2297
|
|
|
2298
2298
|
/***/ }),
|
|
@@ -2305,7 +2305,7 @@ var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.
|
|
|
2305
2305
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2306
2306
|
|
|
2307
2307
|
// extracted by mini-css-extract-plugin
|
|
2308
|
-
module.exports = {"body":"
|
|
2308
|
+
module.exports = {"body":"_3zIMe","modal":"_1ykZZ","search":"_35k3n","checkbox":"_2MMyD","search-wrapper":"_2pu1e","searchWrapper":"_2pu1e","search-size-24":"_3w2PJ","searchSize24":"_3w2PJ","search-size-30":"_2w_Sx","searchSize30":"_2w_Sx","search-size-36":"_1VmDp","searchSize36":"_1VmDp","search-size-42":"_3dEe4","searchSize42":"_3dEe4","no-found-size-24":"rJ2XH","noFoundSize24":"rJ2XH","no-found-size-30":"_2Ro2s","noFoundSize30":"_2Ro2s","no-found-size-36":"_2V3ty","noFoundSize36":"_2V3ty","no-found-size-42":"jswRy","noFoundSize42":"jswRy"};
|
|
2309
2309
|
|
|
2310
2310
|
/***/ }),
|
|
2311
2311
|
|
|
@@ -2317,48 +2317,48 @@ module.exports = {"body":"_2mX7N","modal":"tC-vF","search":"_1cRY-","checkbox":"
|
|
|
2317
2317
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2318
2318
|
|
|
2319
2319
|
"use strict";
|
|
2320
|
-
|
|
2321
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2322
|
-
exports.DataPickerBody = void 0;
|
|
2323
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2324
|
-
var react_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! react */ "react"));
|
|
2325
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
2326
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
2327
|
-
var inputs_1 = __webpack_require__(/*! ../inputs */ "./components/inputs/index.ts");
|
|
2328
|
-
var layout_1 = __webpack_require__(/*! ../layout */ "./components/layout/index.ts");
|
|
2329
|
-
var typography_1 = __webpack_require__(/*! ../typography */ "./components/typography/index.ts");
|
|
2330
|
-
var i18n_1 = __webpack_require__(/*! ../../i18n */ "./i18n.ts");
|
|
2331
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./DataPickerBody.scss */ "./components/pickers/DataPickerBody.scss"));
|
|
2332
|
-
var DataPickerBody = /** @class */ (function (_super) {
|
|
2333
|
-
(0, tslib_1.__extends)(DataPickerBody, _super);
|
|
2334
|
-
function DataPickerBody() {
|
|
2335
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
2336
|
-
_this.lens = uui_core_1.Lens.onEditableComponent(_this);
|
|
2337
|
-
_this.searchLens = _this.lens.prop('search');
|
|
2338
|
-
return _this;
|
|
2339
|
-
}
|
|
2340
|
-
DataPickerBody.prototype.renderNoFound = function () {
|
|
2341
|
-
if (this.props.renderNotFound) {
|
|
2342
|
-
return this.props.renderNotFound();
|
|
2343
|
-
}
|
|
2344
|
-
return react_1.default.createElement(uui_components_1.FlexCell, { cx: css["no-found-size-".concat(this.props.searchSize || 36)], grow: 1, textAlign: 'center' },
|
|
2345
|
-
react_1.default.createElement(typography_1.Text, { size: this.props.searchSize || '36' }, i18n_1.i18n.dataPickerBody.noRecordsMessage));
|
|
2346
|
-
};
|
|
2347
|
-
DataPickerBody.prototype.render = function () {
|
|
2348
|
-
var value = this.props.value;
|
|
2349
|
-
var searchSize = (0, uui_core_1.isMobile)() ? '48' : (this.props.searchSize || '36');
|
|
2350
|
-
var searchClass = (0, uui_core_1.cx)(css.searchWrapper, css["search-size-".concat(searchSize)]);
|
|
2351
|
-
return react_1.default.createElement(react_1.default.Fragment, null,
|
|
2352
|
-
this.showSearch() && (react_1.default.createElement("div", { key: 'search', className: searchClass },
|
|
2353
|
-
react_1.default.createElement(uui_components_1.FlexCell, { grow: 1 },
|
|
2354
|
-
react_1.default.createElement(inputs_1.SearchInput, (0, tslib_1.__assign)({ cx: css.search, placeholder: i18n_1.i18n.dataPickerBody.searchPlaceholder }, this.searchLens.toProps(), { onKeyDown: this.searchKeyDown, size: searchSize }))))),
|
|
2355
|
-
react_1.default.createElement(layout_1.FlexRow, { key: 'body', cx: (0, uui_core_1.cx)(css.body, css[this.props.editMode]), rawProps: { style: { maxHeight: this.props.maxHeight } } }, this.props.rowsCount > 0
|
|
2356
|
-
? react_1.default.createElement(layout_1.VirtualList, (0, tslib_1.__assign)({}, this.lens.toProps(), { rows: this.props.rows, role: "listbox", rawProps: this.props.rawProps, rowsCount: this.props.rowsCount }))
|
|
2357
|
-
: this.renderNoFound()));
|
|
2358
|
-
};
|
|
2359
|
-
return DataPickerBody;
|
|
2360
|
-
}(uui_components_1.PickerBodyBase));
|
|
2361
|
-
exports.DataPickerBody = DataPickerBody;
|
|
2320
|
+
|
|
2321
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2322
|
+
exports.DataPickerBody = void 0;
|
|
2323
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2324
|
+
var react_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! react */ "react"));
|
|
2325
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
2326
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
2327
|
+
var inputs_1 = __webpack_require__(/*! ../inputs */ "./components/inputs/index.ts");
|
|
2328
|
+
var layout_1 = __webpack_require__(/*! ../layout */ "./components/layout/index.ts");
|
|
2329
|
+
var typography_1 = __webpack_require__(/*! ../typography */ "./components/typography/index.ts");
|
|
2330
|
+
var i18n_1 = __webpack_require__(/*! ../../i18n */ "./i18n.ts");
|
|
2331
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./DataPickerBody.scss */ "./components/pickers/DataPickerBody.scss"));
|
|
2332
|
+
var DataPickerBody = /** @class */ (function (_super) {
|
|
2333
|
+
(0, tslib_1.__extends)(DataPickerBody, _super);
|
|
2334
|
+
function DataPickerBody() {
|
|
2335
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
2336
|
+
_this.lens = uui_core_1.Lens.onEditableComponent(_this);
|
|
2337
|
+
_this.searchLens = _this.lens.prop('search');
|
|
2338
|
+
return _this;
|
|
2339
|
+
}
|
|
2340
|
+
DataPickerBody.prototype.renderNoFound = function () {
|
|
2341
|
+
if (this.props.renderNotFound) {
|
|
2342
|
+
return this.props.renderNotFound();
|
|
2343
|
+
}
|
|
2344
|
+
return react_1.default.createElement(uui_components_1.FlexCell, { cx: css["no-found-size-".concat(this.props.searchSize || 36)], grow: 1, textAlign: 'center' },
|
|
2345
|
+
react_1.default.createElement(typography_1.Text, { size: this.props.searchSize || '36' }, i18n_1.i18n.dataPickerBody.noRecordsMessage));
|
|
2346
|
+
};
|
|
2347
|
+
DataPickerBody.prototype.render = function () {
|
|
2348
|
+
var value = this.props.value;
|
|
2349
|
+
var searchSize = (0, uui_core_1.isMobile)() ? '48' : (this.props.searchSize || '36');
|
|
2350
|
+
var searchClass = (0, uui_core_1.cx)(css.searchWrapper, css["search-size-".concat(searchSize)]);
|
|
2351
|
+
return react_1.default.createElement(react_1.default.Fragment, null,
|
|
2352
|
+
this.showSearch() && (react_1.default.createElement("div", { key: 'search', className: searchClass },
|
|
2353
|
+
react_1.default.createElement(uui_components_1.FlexCell, { grow: 1 },
|
|
2354
|
+
react_1.default.createElement(inputs_1.SearchInput, (0, tslib_1.__assign)({ cx: css.search, placeholder: i18n_1.i18n.dataPickerBody.searchPlaceholder }, this.searchLens.toProps(), { onKeyDown: this.searchKeyDown, size: searchSize }))))),
|
|
2355
|
+
react_1.default.createElement(layout_1.FlexRow, { key: 'body', cx: (0, uui_core_1.cx)(css.body, css[this.props.editMode]), rawProps: { style: { maxHeight: this.props.maxHeight } } }, this.props.rowsCount > 0
|
|
2356
|
+
? react_1.default.createElement(layout_1.VirtualList, (0, tslib_1.__assign)({}, this.lens.toProps(), { rows: this.props.rows, role: "listbox", rawProps: this.props.rawProps, rowsCount: this.props.rowsCount }))
|
|
2357
|
+
: this.renderNoFound()));
|
|
2358
|
+
};
|
|
2359
|
+
return DataPickerBody;
|
|
2360
|
+
}(uui_components_1.PickerBodyBase));
|
|
2361
|
+
exports.DataPickerBody = DataPickerBody;
|
|
2362
2362
|
|
|
2363
2363
|
|
|
2364
2364
|
/***/ }),
|
|
@@ -2371,7 +2371,7 @@ exports.DataPickerBody = DataPickerBody;
|
|
|
2371
2371
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2372
2372
|
|
|
2373
2373
|
// extracted by mini-css-extract-plugin
|
|
2374
|
-
module.exports = {"footer-wrapper":"
|
|
2374
|
+
module.exports = {"footer-wrapper":"uE3NL","footerWrapper":"uE3NL"};
|
|
2375
2375
|
|
|
2376
2376
|
/***/ }),
|
|
2377
2377
|
|
|
@@ -2383,44 +2383,44 @@ module.exports = {"footer-wrapper":"_3IwKV","footerWrapper":"_3IwKV"};
|
|
|
2383
2383
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2384
2384
|
|
|
2385
2385
|
"use strict";
|
|
2386
|
-
|
|
2387
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2388
|
-
exports.DataPickerFooter = void 0;
|
|
2389
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2390
|
-
var react_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! react */ "react"));
|
|
2391
|
-
var classnames_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! classnames */ "classnames"));
|
|
2392
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
2393
|
-
var i18n_1 = __webpack_require__(/*! ../../i18n */ "./i18n.ts");
|
|
2394
|
-
var inputs_1 = __webpack_require__(/*! ../inputs */ "./components/inputs/index.ts");
|
|
2395
|
-
var layout_1 = __webpack_require__(/*! ../layout */ "./components/layout/index.ts");
|
|
2396
|
-
var buttons_1 = __webpack_require__(/*! ../buttons */ "./components/buttons/index.ts");
|
|
2397
|
-
var DataPickerFooter_scss_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! ./DataPickerFooter.scss */ "./components/pickers/DataPickerFooter.scss"));
|
|
2398
|
-
var switchSizes = {
|
|
2399
|
-
'24': '12',
|
|
2400
|
-
'36': '18',
|
|
2401
|
-
'42': '24',
|
|
2402
|
-
'48': '24',
|
|
2403
|
-
};
|
|
2404
|
-
var DataPickerFooterImpl = function (props) {
|
|
2405
|
-
var clearSelection = props.clearSelection, view = props.view, showSelected = props.showSelected;
|
|
2406
|
-
var size = (0, uui_core_1.isMobile)() ? '48' : (props.size || '36');
|
|
2407
|
-
var switchSize = switchSizes[size];
|
|
2408
|
-
var hasSelection = view.getSelectedRows().length > 0;
|
|
2409
|
-
var handleKeyDown = function (e) {
|
|
2410
|
-
if (!e.shiftKey && e.key === 'Tab')
|
|
2411
|
-
e.preventDefault();
|
|
2412
|
-
};
|
|
2413
|
-
return (react_1.default.createElement(layout_1.FlexRow, { padding: '12', cx: (0, classnames_1.default)(DataPickerFooter_scss_1.default.footerWrapper) },
|
|
2414
|
-
!props.hideShowOnlySelected && react_1.default.createElement(inputs_1.Switch, { size: switchSize, value: showSelected.value, isDisabled: !hasSelection, onValueChange: showSelected.onValueChange, label: i18n_1.i18n.pickerInput.showOnlySelectedLabel }),
|
|
2415
|
-
react_1.default.createElement(layout_1.FlexSpacer, null),
|
|
2416
|
-
view.selectAll && (react_1.default.createElement(layout_1.FlexCell, { width: 'auto', alignSelf: 'center' },
|
|
2417
|
-
react_1.default.createElement(buttons_1.LinkButton, { size: size, caption: hasSelection
|
|
2418
|
-
? i18n_1.i18n.pickerInput.clearSelectionButton
|
|
2419
|
-
: i18n_1.i18n.pickerInput.selectAllButton, onClick: hasSelection
|
|
2420
|
-
? clearSelection
|
|
2421
|
-
: function () { return view.selectAll.onValueChange(true); }, rawProps: { onKeyDown: handleKeyDown } })))));
|
|
2422
|
-
};
|
|
2423
|
-
exports.DataPickerFooter = react_1.default.memo(DataPickerFooterImpl);
|
|
2386
|
+
|
|
2387
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2388
|
+
exports.DataPickerFooter = void 0;
|
|
2389
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2390
|
+
var react_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! react */ "react"));
|
|
2391
|
+
var classnames_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! classnames */ "classnames"));
|
|
2392
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
2393
|
+
var i18n_1 = __webpack_require__(/*! ../../i18n */ "./i18n.ts");
|
|
2394
|
+
var inputs_1 = __webpack_require__(/*! ../inputs */ "./components/inputs/index.ts");
|
|
2395
|
+
var layout_1 = __webpack_require__(/*! ../layout */ "./components/layout/index.ts");
|
|
2396
|
+
var buttons_1 = __webpack_require__(/*! ../buttons */ "./components/buttons/index.ts");
|
|
2397
|
+
var DataPickerFooter_scss_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! ./DataPickerFooter.scss */ "./components/pickers/DataPickerFooter.scss"));
|
|
2398
|
+
var switchSizes = {
|
|
2399
|
+
'24': '12',
|
|
2400
|
+
'36': '18',
|
|
2401
|
+
'42': '24',
|
|
2402
|
+
'48': '24',
|
|
2403
|
+
};
|
|
2404
|
+
var DataPickerFooterImpl = function (props) {
|
|
2405
|
+
var clearSelection = props.clearSelection, view = props.view, showSelected = props.showSelected;
|
|
2406
|
+
var size = (0, uui_core_1.isMobile)() ? '48' : (props.size || '36');
|
|
2407
|
+
var switchSize = switchSizes[size];
|
|
2408
|
+
var hasSelection = view.getSelectedRows().length > 0;
|
|
2409
|
+
var handleKeyDown = function (e) {
|
|
2410
|
+
if (!e.shiftKey && e.key === 'Tab')
|
|
2411
|
+
e.preventDefault();
|
|
2412
|
+
};
|
|
2413
|
+
return (react_1.default.createElement(layout_1.FlexRow, { padding: '12', cx: (0, classnames_1.default)(DataPickerFooter_scss_1.default.footerWrapper) },
|
|
2414
|
+
!props.hideShowOnlySelected && react_1.default.createElement(inputs_1.Switch, { size: switchSize, value: showSelected.value, isDisabled: !hasSelection, onValueChange: showSelected.onValueChange, label: i18n_1.i18n.pickerInput.showOnlySelectedLabel }),
|
|
2415
|
+
react_1.default.createElement(layout_1.FlexSpacer, null),
|
|
2416
|
+
view.selectAll && (react_1.default.createElement(layout_1.FlexCell, { width: 'auto', alignSelf: 'center' },
|
|
2417
|
+
react_1.default.createElement(buttons_1.LinkButton, { size: size, caption: hasSelection
|
|
2418
|
+
? i18n_1.i18n.pickerInput.clearSelectionButton
|
|
2419
|
+
: i18n_1.i18n.pickerInput.selectAllButton, onClick: hasSelection
|
|
2420
|
+
? clearSelection
|
|
2421
|
+
: function () { return view.selectAll.onValueChange(true); }, rawProps: { onKeyDown: handleKeyDown } })))));
|
|
2422
|
+
};
|
|
2423
|
+
exports.DataPickerFooter = react_1.default.memo(DataPickerFooterImpl);
|
|
2424
2424
|
|
|
2425
2425
|
|
|
2426
2426
|
/***/ }),
|
|
@@ -2433,7 +2433,7 @@ exports.DataPickerFooter = react_1.default.memo(DataPickerFooterImpl);
|
|
|
2433
2433
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2434
2434
|
|
|
2435
2435
|
// extracted by mini-css-extract-plugin
|
|
2436
|
-
module.exports = {"header":"
|
|
2436
|
+
module.exports = {"header":"_1fNGO","close":"_1b2wH"};
|
|
2437
2437
|
|
|
2438
2438
|
/***/ }),
|
|
2439
2439
|
|
|
@@ -2445,23 +2445,23 @@ module.exports = {"header":"_3YObp","close":"_10B-4"};
|
|
|
2445
2445
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2446
2446
|
|
|
2447
2447
|
"use strict";
|
|
2448
|
-
|
|
2449
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2450
|
-
exports.DataPickerHeader = void 0;
|
|
2451
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2452
|
-
var react_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! react */ "react"));
|
|
2453
|
-
var DataPickerHeader_scss_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! ./DataPickerHeader.scss */ "./components/pickers/DataPickerHeader.scss"));
|
|
2454
|
-
var navigation_close_24_svg_1 = __webpack_require__(/*! @epam/assets/icons/common/navigation-close-24.svg */ "../epam-assets/icons/common/navigation-close-24.svg");
|
|
2455
|
-
var typography_1 = __webpack_require__(/*! ../typography */ "./components/typography/index.ts");
|
|
2456
|
-
var buttons_1 = __webpack_require__(/*! ../buttons */ "./components/buttons/index.ts");
|
|
2457
|
-
var layout_1 = __webpack_require__(/*! ../layout */ "./components/layout/index.ts");
|
|
2458
|
-
var DataPickerHeaderImpl = function (props) {
|
|
2459
|
-
var title = props.title ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
2460
|
-
return (react_1.default.createElement(layout_1.FlexRow, { alignItems: 'center', borderBottom: true, size: "48", cx: DataPickerHeader_scss_1.default.header },
|
|
2461
|
-
react_1.default.createElement(typography_1.Text, { font: 'semibold' }, title),
|
|
2462
|
-
react_1.default.createElement(buttons_1.IconButton, { icon: navigation_close_24_svg_1.ReactComponent, onClick: function () { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: DataPickerHeader_scss_1.default.close })));
|
|
2463
|
-
};
|
|
2464
|
-
exports.DataPickerHeader = react_1.default.memo(DataPickerHeaderImpl);
|
|
2448
|
+
|
|
2449
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2450
|
+
exports.DataPickerHeader = void 0;
|
|
2451
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2452
|
+
var react_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! react */ "react"));
|
|
2453
|
+
var DataPickerHeader_scss_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! ./DataPickerHeader.scss */ "./components/pickers/DataPickerHeader.scss"));
|
|
2454
|
+
var navigation_close_24_svg_1 = __webpack_require__(/*! @epam/assets/icons/common/navigation-close-24.svg */ "../epam-assets/icons/common/navigation-close-24.svg");
|
|
2455
|
+
var typography_1 = __webpack_require__(/*! ../typography */ "./components/typography/index.ts");
|
|
2456
|
+
var buttons_1 = __webpack_require__(/*! ../buttons */ "./components/buttons/index.ts");
|
|
2457
|
+
var layout_1 = __webpack_require__(/*! ../layout */ "./components/layout/index.ts");
|
|
2458
|
+
var DataPickerHeaderImpl = function (props) {
|
|
2459
|
+
var title = props.title ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
2460
|
+
return (react_1.default.createElement(layout_1.FlexRow, { alignItems: 'center', borderBottom: true, size: "48", cx: DataPickerHeader_scss_1.default.header },
|
|
2461
|
+
react_1.default.createElement(typography_1.Text, { font: 'semibold' }, title),
|
|
2462
|
+
react_1.default.createElement(buttons_1.IconButton, { icon: navigation_close_24_svg_1.ReactComponent, onClick: function () { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: DataPickerHeader_scss_1.default.close })));
|
|
2463
|
+
};
|
|
2464
|
+
exports.DataPickerHeader = react_1.default.memo(DataPickerHeaderImpl);
|
|
2465
2465
|
|
|
2466
2466
|
|
|
2467
2467
|
/***/ }),
|
|
@@ -2474,7 +2474,7 @@ exports.DataPickerHeader = react_1.default.memo(DataPickerHeaderImpl);
|
|
|
2474
2474
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2475
2475
|
|
|
2476
2476
|
// extracted by mini-css-extract-plugin
|
|
2477
|
-
module.exports = {"render-item":"
|
|
2477
|
+
module.exports = {"render-item":"_3qKGx","renderItem":"_3qKGx","icon-wrapper":"_3k22g","iconWrapper":"_3k22g","picker-row":"_2kfIg","pickerRow":"_2kfIg"};
|
|
2478
2478
|
|
|
2479
2479
|
/***/ }),
|
|
2480
2480
|
|
|
@@ -2486,52 +2486,51 @@ module.exports = {"render-item":"_3Gj26","renderItem":"_3Gj26","icon-wrapper":"_
|
|
|
2486
2486
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2487
2487
|
|
|
2488
2488
|
"use strict";
|
|
2489
|
-
|
|
2490
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2491
|
-
exports.DataPickerRow = void 0;
|
|
2492
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2493
|
-
var React = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
2494
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
2495
|
-
var layout_1 = __webpack_require__(/*! ../layout */ "./components/layout/index.ts");
|
|
2496
|
-
var tables_1 = __webpack_require__(/*! ../tables */ "./components/tables/index.ts");
|
|
2497
|
-
var notification_done_24_svg_1 = __webpack_require__(/*! @epam/assets/icons/common/notification-done-24.svg */ "../epam-assets/icons/common/notification-done-24.svg");
|
|
2498
|
-
var notification_done_18_svg_1 = __webpack_require__(/*! @epam/assets/icons/common/notification-done-18.svg */ "../epam-assets/icons/common/notification-done-18.svg");
|
|
2499
|
-
var notification_done_12_svg_1 = __webpack_require__(/*! @epam/assets/icons/common/notification-done-12.svg */ "../epam-assets/icons/common/notification-done-12.svg");
|
|
2500
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./DataPickerRow.scss */ "./components/pickers/DataPickerRow.scss"));
|
|
2501
|
-
var DataPickerRow = /** @class */ (function (_super) {
|
|
2502
|
-
(0, tslib_1.__extends)(DataPickerRow, _super);
|
|
2503
|
-
function DataPickerRow() {
|
|
2504
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
2505
|
-
_this.getIcon = function (size) {
|
|
2506
|
-
switch (size) {
|
|
2507
|
-
case '24': return notification_done_12_svg_1.ReactComponent;
|
|
2508
|
-
case '30': return notification_done_18_svg_1.ReactComponent;
|
|
2509
|
-
case '36': return notification_done_18_svg_1.ReactComponent;
|
|
2510
|
-
case '42': return notification_done_24_svg_1.ReactComponent;
|
|
2511
|
-
default: return notification_done_18_svg_1.ReactComponent;
|
|
2512
|
-
}
|
|
2513
|
-
};
|
|
2514
|
-
_this.column = {
|
|
2515
|
-
key: 'name',
|
|
2516
|
-
grow: 1,
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
React.createElement(
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
exports.DataPickerRow = DataPickerRow;
|
|
2489
|
+
|
|
2490
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2491
|
+
exports.DataPickerRow = void 0;
|
|
2492
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2493
|
+
var React = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
2494
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
2495
|
+
var layout_1 = __webpack_require__(/*! ../layout */ "./components/layout/index.ts");
|
|
2496
|
+
var tables_1 = __webpack_require__(/*! ../tables */ "./components/tables/index.ts");
|
|
2497
|
+
var notification_done_24_svg_1 = __webpack_require__(/*! @epam/assets/icons/common/notification-done-24.svg */ "../epam-assets/icons/common/notification-done-24.svg");
|
|
2498
|
+
var notification_done_18_svg_1 = __webpack_require__(/*! @epam/assets/icons/common/notification-done-18.svg */ "../epam-assets/icons/common/notification-done-18.svg");
|
|
2499
|
+
var notification_done_12_svg_1 = __webpack_require__(/*! @epam/assets/icons/common/notification-done-12.svg */ "../epam-assets/icons/common/notification-done-12.svg");
|
|
2500
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./DataPickerRow.scss */ "./components/pickers/DataPickerRow.scss"));
|
|
2501
|
+
var DataPickerRow = /** @class */ (function (_super) {
|
|
2502
|
+
(0, tslib_1.__extends)(DataPickerRow, _super);
|
|
2503
|
+
function DataPickerRow() {
|
|
2504
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
2505
|
+
_this.getIcon = function (size) {
|
|
2506
|
+
switch (size) {
|
|
2507
|
+
case '24': return notification_done_12_svg_1.ReactComponent;
|
|
2508
|
+
case '30': return notification_done_18_svg_1.ReactComponent;
|
|
2509
|
+
case '36': return notification_done_18_svg_1.ReactComponent;
|
|
2510
|
+
case '42': return notification_done_24_svg_1.ReactComponent;
|
|
2511
|
+
default: return notification_done_18_svg_1.ReactComponent;
|
|
2512
|
+
}
|
|
2513
|
+
};
|
|
2514
|
+
_this.column = {
|
|
2515
|
+
key: 'name',
|
|
2516
|
+
grow: 1,
|
|
2517
|
+
render: function (item, rowProps) { return React.createElement("div", { key: rowProps.id, className: css.renderItem },
|
|
2518
|
+
_this.props.renderItem(item, rowProps),
|
|
2519
|
+
React.createElement(layout_1.FlexSpacer, null),
|
|
2520
|
+
(rowProps.isChildrenSelected || rowProps.isSelected) && React.createElement("div", { className: css.iconWrapper },
|
|
2521
|
+
React.createElement(layout_1.IconContainer, { icon: _this.getIcon(_this.props.size), color: rowProps.isChildrenSelected ? 'default' : 'info' }))); },
|
|
2522
|
+
};
|
|
2523
|
+
_this.renderContent = function () {
|
|
2524
|
+
return React.createElement(tables_1.DataTableCell, { key: 'name', size: _this.props.size || '36', padding: _this.props.padding || '24', isFirstColumn: true, isLastColumn: false, tabIndex: -1, column: _this.column, rowProps: _this.props, alignActions: _this.props.alignActions || 'top' });
|
|
2525
|
+
};
|
|
2526
|
+
return _this;
|
|
2527
|
+
}
|
|
2528
|
+
DataPickerRow.prototype.render = function () {
|
|
2529
|
+
return React.createElement(uui_components_1.DataPickerRow, (0, tslib_1.__assign)({}, this.props, { cx: [css.pickerRow, this.props.cx], renderContent: this.renderContent }));
|
|
2530
|
+
};
|
|
2531
|
+
return DataPickerRow;
|
|
2532
|
+
}(React.Component));
|
|
2533
|
+
exports.DataPickerRow = DataPickerRow;
|
|
2535
2534
|
|
|
2536
2535
|
|
|
2537
2536
|
/***/ }),
|
|
@@ -2544,7 +2543,7 @@ exports.DataPickerRow = DataPickerRow;
|
|
|
2544
2543
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2545
2544
|
|
|
2546
2545
|
// extracted by mini-css-extract-plugin
|
|
2547
|
-
module.exports = {"done":"
|
|
2546
|
+
module.exports = {"done":"oAvrq"};
|
|
2548
2547
|
|
|
2549
2548
|
/***/ }),
|
|
2550
2549
|
|
|
@@ -2556,24 +2555,24 @@ module.exports = {"done":"_1cK02"};
|
|
|
2556
2555
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2557
2556
|
|
|
2558
2557
|
"use strict";
|
|
2559
|
-
|
|
2560
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2561
|
-
exports.MobileDropdownWrapper = void 0;
|
|
2562
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2563
|
-
var react_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! react */ "react"));
|
|
2564
|
-
var MobileDropdownWrapper_scss_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! ./MobileDropdownWrapper.scss */ "./components/pickers/MobileDropdownWrapper.scss"));
|
|
2565
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
2566
|
-
var buttons_1 = __webpack_require__(/*! ../buttons */ "./components/buttons/index.ts");
|
|
2567
|
-
var DataPickerHeader_1 = __webpack_require__(/*! ./DataPickerHeader */ "./components/pickers/DataPickerHeader.tsx");
|
|
2568
|
-
var MobileDropdownWrapper = function (props) {
|
|
2569
|
-
var isVisible = (0, uui_core_1.isMobile)();
|
|
2570
|
-
(0, uui_core_1.useAppMobileHeight)();
|
|
2571
|
-
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
2572
|
-
isVisible && react_1.default.createElement(DataPickerHeader_1.DataPickerHeader, { title: props.title, close: props.close }),
|
|
2573
|
-
props.children,
|
|
2574
|
-
isVisible && (react_1.default.createElement(buttons_1.LinkButton, { caption: 'DONE', onClick: function () { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: MobileDropdownWrapper_scss_1.default.done, size: '48' }))));
|
|
2575
|
-
};
|
|
2576
|
-
exports.MobileDropdownWrapper = MobileDropdownWrapper;
|
|
2558
|
+
|
|
2559
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2560
|
+
exports.MobileDropdownWrapper = void 0;
|
|
2561
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2562
|
+
var react_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! react */ "react"));
|
|
2563
|
+
var MobileDropdownWrapper_scss_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! ./MobileDropdownWrapper.scss */ "./components/pickers/MobileDropdownWrapper.scss"));
|
|
2564
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
2565
|
+
var buttons_1 = __webpack_require__(/*! ../buttons */ "./components/buttons/index.ts");
|
|
2566
|
+
var DataPickerHeader_1 = __webpack_require__(/*! ./DataPickerHeader */ "./components/pickers/DataPickerHeader.tsx");
|
|
2567
|
+
var MobileDropdownWrapper = function (props) {
|
|
2568
|
+
var isVisible = (0, uui_core_1.isMobile)();
|
|
2569
|
+
(0, uui_core_1.useAppMobileHeight)();
|
|
2570
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
2571
|
+
isVisible && react_1.default.createElement(DataPickerHeader_1.DataPickerHeader, { title: props.title, close: props.close }),
|
|
2572
|
+
props.children,
|
|
2573
|
+
isVisible && (react_1.default.createElement(buttons_1.LinkButton, { caption: 'DONE', onClick: function () { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: MobileDropdownWrapper_scss_1.default.done, size: '48' }))));
|
|
2574
|
+
};
|
|
2575
|
+
exports.MobileDropdownWrapper = MobileDropdownWrapper;
|
|
2577
2576
|
|
|
2578
2577
|
|
|
2579
2578
|
/***/ }),
|
|
@@ -2586,7 +2585,7 @@ exports.MobileDropdownWrapper = MobileDropdownWrapper;
|
|
|
2586
2585
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2587
2586
|
|
|
2588
2587
|
// extracted by mini-css-extract-plugin
|
|
2589
|
-
module.exports = {"panel":"
|
|
2588
|
+
module.exports = {"panel":"_2DVPx","footer-wrapper":"_1p-lV","footerWrapper":"_1p-lV","footer-size-24":"_32AGt","footerSize24":"_32AGt","footer-size-30":"dCdju","footerSize30":"dCdju","footer-size-36":"_3wGqr","footerSize36":"_3wGqr","footer-size-42":"xIp1b","footerSize42":"xIp1b","footer-size-48":"_2piK0","footerSize48":"_2piK0"};
|
|
2590
2589
|
|
|
2591
2590
|
/***/ }),
|
|
2592
2591
|
|
|
@@ -2598,84 +2597,84 @@ module.exports = {"panel":"_3c9r2","footer-wrapper":"_2Ch9R","footerWrapper":"_2
|
|
|
2598
2597
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2599
2598
|
|
|
2600
2599
|
"use strict";
|
|
2601
|
-
|
|
2602
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2603
|
-
exports.PickerInput = void 0;
|
|
2604
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2605
|
-
var react_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! react */ "react"));
|
|
2606
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
2607
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
2608
|
-
var PickerModal_1 = __webpack_require__(/*! ./PickerModal */ "./components/pickers/PickerModal.tsx");
|
|
2609
|
-
var layout_1 = __webpack_require__(/*! ../layout */ "./components/layout/index.ts");
|
|
2610
|
-
var PickerToggler_1 = __webpack_require__(/*! ./PickerToggler */ "./components/pickers/PickerToggler.tsx");
|
|
2611
|
-
var DataPickerRow_1 = __webpack_require__(/*! ./DataPickerRow */ "./components/pickers/DataPickerRow.tsx");
|
|
2612
|
-
var PickerItem_1 = __webpack_require__(/*! ./PickerItem */ "./components/pickers/PickerItem.tsx");
|
|
2613
|
-
var DataPickerBody_1 = __webpack_require__(/*! ./DataPickerBody */ "./components/pickers/DataPickerBody.tsx");
|
|
2614
|
-
var DataPickerFooter_1 = __webpack_require__(/*! ./DataPickerFooter */ "./components/pickers/DataPickerFooter.tsx");
|
|
2615
|
-
var MobileDropdownWrapper_1 = __webpack_require__(/*! ./MobileDropdownWrapper */ "./components/pickers/MobileDropdownWrapper.tsx");
|
|
2616
|
-
var types_1 = __webpack_require__(/*! ../types */ "./components/types.ts");
|
|
2617
|
-
var PickerInput_scss_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! ./PickerInput.scss */ "./components/pickers/PickerInput.scss"));
|
|
2618
|
-
var pickerHeight = 300;
|
|
2619
|
-
var pickerWidth = 360;
|
|
2620
|
-
var PickerInput = /** @class */ (function (_super) {
|
|
2621
|
-
(0, tslib_1.__extends)(PickerInput, _super);
|
|
2622
|
-
function PickerInput() {
|
|
2623
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
2624
|
-
_this.renderItem = function (item, rowProps) {
|
|
2625
|
-
return react_1.default.createElement(PickerItem_1.PickerItem, (0, tslib_1.__assign)({ title: _this.getName(item), size: _this.getRowSize() }, rowProps));
|
|
2626
|
-
};
|
|
2627
|
-
_this.renderRow = function (rowProps) {
|
|
2628
|
-
if (rowProps.isSelectable && _this.isSingleSelect() && _this.props.editMode !== 'modal') {
|
|
2629
|
-
rowProps.onSelect = _this.onSelect;
|
|
2630
|
-
}
|
|
2631
|
-
return _this.props.renderRow ? _this.props.renderRow(rowProps) : (react_1.default.createElement(DataPickerRow_1.DataPickerRow, (0, tslib_1.__assign)({}, rowProps, { key: rowProps.rowKey, borderBottom: 'none', size: _this.getRowSize(), rawProps: { 'aria-selected': rowProps.isSelectable && rowProps.isSelected, role: 'option' }, padding: _this.props.editMode === 'modal' ? '24' : '12', renderItem: _this.renderItem })));
|
|
2632
|
-
};
|
|
2633
|
-
return _this;
|
|
2634
|
-
}
|
|
2635
|
-
PickerInput.prototype.toggleModalOpening = function (opened) {
|
|
2636
|
-
var _this = this;
|
|
2637
|
-
var _a = this.props, renderFooter = _a.renderFooter, restProps = (0, tslib_1.__rest)(_a, ["renderFooter"]);
|
|
2638
|
-
this.context.uuiModals.show(function (props) { return react_1.default.createElement(PickerModal_1.PickerModal, (0, tslib_1.__assign)({}, restProps, props, { caption: _this.getPlaceholder(), initialValue: _this.props.value, renderRow: _this.renderRow, selectionMode: _this.props.selectionMode, valueType: _this.props.valueType })); })
|
|
2639
|
-
.then(function (newSelection) { return _this.handleSelectionValueChange(newSelection); })
|
|
2640
|
-
.catch(function () { return null; });
|
|
2641
|
-
};
|
|
2642
|
-
PickerInput.prototype.getRowSize = function () {
|
|
2643
|
-
return (0, uui_core_1.isMobile)()
|
|
2644
|
-
? '48'
|
|
2645
|
-
: this.props.editMode === 'modal'
|
|
2646
|
-
? '36'
|
|
2647
|
-
: this.props.size;
|
|
2648
|
-
};
|
|
2649
|
-
PickerInput.prototype.getTogglerMods = function () {
|
|
2650
|
-
return {
|
|
2651
|
-
size: this.props.size,
|
|
2652
|
-
mode: this.props.mode ? this.props.mode : types_1.EditMode.FORM,
|
|
2653
|
-
};
|
|
2654
|
-
};
|
|
2655
|
-
PickerInput.prototype.renderFooter = function () {
|
|
2656
|
-
var footerProps = this.getFooterProps();
|
|
2657
|
-
return this.props.renderFooter
|
|
2658
|
-
? this.props.renderFooter(footerProps)
|
|
2659
|
-
: react_1.default.createElement(DataPickerFooter_1.DataPickerFooter, (0, tslib_1.__assign)({}, footerProps, { size: this.props.size }));
|
|
2660
|
-
};
|
|
2661
|
-
PickerInput.prototype.renderTarget = function (targetProps) {
|
|
2662
|
-
var _this = this;
|
|
2663
|
-
var renderTarget = this.props.renderToggler || (function (props) { return react_1.default.createElement(PickerToggler_1.PickerToggler, (0, tslib_1.__assign)({}, props)); });
|
|
2664
|
-
return (react_1.default.createElement(uui_core_1.IEditableDebouncer, { value: this.state.dataSourceState.search, onValueChange: this.handleTogglerSearchChange, render: function (editableProps) { return renderTarget((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)({}, _this.getTogglerMods()), targetProps), editableProps)); } }));
|
|
2665
|
-
};
|
|
2666
|
-
PickerInput.prototype.renderBody = function (props, rows) {
|
|
2667
|
-
var _this = this;
|
|
2668
|
-
var renderedDataRows = rows.map(function (props) { return _this.renderRow(props); });
|
|
2669
|
-
var maxHeight = (0, uui_core_1.isMobile)() ? document.documentElement.clientHeight : (this.props.dropdownHeight || pickerHeight);
|
|
2670
|
-
var minBodyWidth = (0, uui_core_1.isMobile)() ? document.documentElement.clientWidth : (this.props.minBodyWidth || pickerWidth);
|
|
2671
|
-
return (react_1.default.createElement(layout_1.Panel, { shadow: true, style: { width: props.togglerWidth > minBodyWidth ? props.togglerWidth : minBodyWidth }, rawProps: { tabIndex: -1 }, cx: [PickerInput_scss_1.default.panel, uui_core_1.uuiMarkers.lockFocus], background: true },
|
|
2672
|
-
react_1.default.createElement(MobileDropdownWrapper_1.MobileDropdownWrapper, { title: this.props.entityName, close: function () { return _this.toggleBodyOpening(false); } },
|
|
2673
|
-
react_1.default.createElement(DataPickerBody_1.DataPickerBody, (0, tslib_1.__assign)({}, props, { rows: renderedDataRows, maxHeight: maxHeight, searchSize: this.props.size, editMode: 'dropdown' })),
|
|
2674
|
-
!this.isSingleSelect() && this.renderFooter())));
|
|
2675
|
-
};
|
|
2676
|
-
return PickerInput;
|
|
2677
|
-
}(uui_components_1.PickerInputBase));
|
|
2678
|
-
exports.PickerInput = PickerInput;
|
|
2600
|
+
|
|
2601
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2602
|
+
exports.PickerInput = void 0;
|
|
2603
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2604
|
+
var react_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! react */ "react"));
|
|
2605
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
2606
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
2607
|
+
var PickerModal_1 = __webpack_require__(/*! ./PickerModal */ "./components/pickers/PickerModal.tsx");
|
|
2608
|
+
var layout_1 = __webpack_require__(/*! ../layout */ "./components/layout/index.ts");
|
|
2609
|
+
var PickerToggler_1 = __webpack_require__(/*! ./PickerToggler */ "./components/pickers/PickerToggler.tsx");
|
|
2610
|
+
var DataPickerRow_1 = __webpack_require__(/*! ./DataPickerRow */ "./components/pickers/DataPickerRow.tsx");
|
|
2611
|
+
var PickerItem_1 = __webpack_require__(/*! ./PickerItem */ "./components/pickers/PickerItem.tsx");
|
|
2612
|
+
var DataPickerBody_1 = __webpack_require__(/*! ./DataPickerBody */ "./components/pickers/DataPickerBody.tsx");
|
|
2613
|
+
var DataPickerFooter_1 = __webpack_require__(/*! ./DataPickerFooter */ "./components/pickers/DataPickerFooter.tsx");
|
|
2614
|
+
var MobileDropdownWrapper_1 = __webpack_require__(/*! ./MobileDropdownWrapper */ "./components/pickers/MobileDropdownWrapper.tsx");
|
|
2615
|
+
var types_1 = __webpack_require__(/*! ../types */ "./components/types.ts");
|
|
2616
|
+
var PickerInput_scss_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! ./PickerInput.scss */ "./components/pickers/PickerInput.scss"));
|
|
2617
|
+
var pickerHeight = 300;
|
|
2618
|
+
var pickerWidth = 360;
|
|
2619
|
+
var PickerInput = /** @class */ (function (_super) {
|
|
2620
|
+
(0, tslib_1.__extends)(PickerInput, _super);
|
|
2621
|
+
function PickerInput() {
|
|
2622
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
2623
|
+
_this.renderItem = function (item, rowProps) {
|
|
2624
|
+
return react_1.default.createElement(PickerItem_1.PickerItem, (0, tslib_1.__assign)({ title: _this.getName(item), size: _this.getRowSize() }, rowProps));
|
|
2625
|
+
};
|
|
2626
|
+
_this.renderRow = function (rowProps) {
|
|
2627
|
+
if (rowProps.isSelectable && _this.isSingleSelect() && _this.props.editMode !== 'modal') {
|
|
2628
|
+
rowProps.onSelect = _this.onSelect;
|
|
2629
|
+
}
|
|
2630
|
+
return _this.props.renderRow ? _this.props.renderRow(rowProps) : (react_1.default.createElement(DataPickerRow_1.DataPickerRow, (0, tslib_1.__assign)({}, rowProps, { key: rowProps.rowKey, borderBottom: 'none', size: _this.getRowSize(), rawProps: { 'aria-selected': rowProps.isSelectable && rowProps.isSelected, role: 'option' }, padding: _this.props.editMode === 'modal' ? '24' : '12', renderItem: _this.renderItem })));
|
|
2631
|
+
};
|
|
2632
|
+
return _this;
|
|
2633
|
+
}
|
|
2634
|
+
PickerInput.prototype.toggleModalOpening = function (opened) {
|
|
2635
|
+
var _this = this;
|
|
2636
|
+
var _a = this.props, renderFooter = _a.renderFooter, restProps = (0, tslib_1.__rest)(_a, ["renderFooter"]);
|
|
2637
|
+
this.context.uuiModals.show(function (props) { return react_1.default.createElement(PickerModal_1.PickerModal, (0, tslib_1.__assign)({}, restProps, props, { caption: _this.getPlaceholder(), initialValue: _this.props.value, renderRow: _this.renderRow, selectionMode: _this.props.selectionMode, valueType: _this.props.valueType })); })
|
|
2638
|
+
.then(function (newSelection) { return _this.handleSelectionValueChange(newSelection); })
|
|
2639
|
+
.catch(function () { return null; });
|
|
2640
|
+
};
|
|
2641
|
+
PickerInput.prototype.getRowSize = function () {
|
|
2642
|
+
return (0, uui_core_1.isMobile)()
|
|
2643
|
+
? '48'
|
|
2644
|
+
: this.props.editMode === 'modal'
|
|
2645
|
+
? '36'
|
|
2646
|
+
: this.props.size;
|
|
2647
|
+
};
|
|
2648
|
+
PickerInput.prototype.getTogglerMods = function () {
|
|
2649
|
+
return {
|
|
2650
|
+
size: this.props.size,
|
|
2651
|
+
mode: this.props.mode ? this.props.mode : types_1.EditMode.FORM,
|
|
2652
|
+
};
|
|
2653
|
+
};
|
|
2654
|
+
PickerInput.prototype.renderFooter = function () {
|
|
2655
|
+
var footerProps = this.getFooterProps();
|
|
2656
|
+
return this.props.renderFooter
|
|
2657
|
+
? this.props.renderFooter(footerProps)
|
|
2658
|
+
: react_1.default.createElement(DataPickerFooter_1.DataPickerFooter, (0, tslib_1.__assign)({}, footerProps, { size: this.props.size }));
|
|
2659
|
+
};
|
|
2660
|
+
PickerInput.prototype.renderTarget = function (targetProps) {
|
|
2661
|
+
var _this = this;
|
|
2662
|
+
var renderTarget = this.props.renderToggler || (function (props) { return react_1.default.createElement(PickerToggler_1.PickerToggler, (0, tslib_1.__assign)({}, props)); });
|
|
2663
|
+
return (react_1.default.createElement(uui_core_1.IEditableDebouncer, { value: this.state.dataSourceState.search, onValueChange: this.handleTogglerSearchChange, render: function (editableProps) { return renderTarget((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)({}, _this.getTogglerMods()), targetProps), editableProps)); } }));
|
|
2664
|
+
};
|
|
2665
|
+
PickerInput.prototype.renderBody = function (props, rows) {
|
|
2666
|
+
var _this = this;
|
|
2667
|
+
var renderedDataRows = rows.map(function (props) { return _this.renderRow(props); });
|
|
2668
|
+
var maxHeight = (0, uui_core_1.isMobile)() ? document.documentElement.clientHeight : (this.props.dropdownHeight || pickerHeight);
|
|
2669
|
+
var minBodyWidth = (0, uui_core_1.isMobile)() ? document.documentElement.clientWidth : (this.props.minBodyWidth || pickerWidth);
|
|
2670
|
+
return (react_1.default.createElement(layout_1.Panel, { shadow: true, style: { width: props.togglerWidth > minBodyWidth ? props.togglerWidth : minBodyWidth }, rawProps: { tabIndex: -1 }, cx: [PickerInput_scss_1.default.panel, uui_core_1.uuiMarkers.lockFocus], background: true },
|
|
2671
|
+
react_1.default.createElement(MobileDropdownWrapper_1.MobileDropdownWrapper, { title: this.props.entityName, close: function () { return _this.toggleBodyOpening(false); } },
|
|
2672
|
+
react_1.default.createElement(DataPickerBody_1.DataPickerBody, (0, tslib_1.__assign)({}, props, { rows: renderedDataRows, maxHeight: maxHeight, searchSize: this.props.size, editMode: 'dropdown' })),
|
|
2673
|
+
!this.isSingleSelect() && this.renderFooter())));
|
|
2674
|
+
};
|
|
2675
|
+
return PickerInput;
|
|
2676
|
+
}(uui_components_1.PickerInputBase));
|
|
2677
|
+
exports.PickerInput = PickerInput;
|
|
2679
2678
|
|
|
2680
2679
|
|
|
2681
2680
|
/***/ }),
|
|
@@ -2688,7 +2687,7 @@ exports.PickerInput = PickerInput;
|
|
|
2688
2687
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2689
2688
|
|
|
2690
2689
|
// extracted by mini-css-extract-plugin
|
|
2691
|
-
module.exports = {"root":"
|
|
2690
|
+
module.exports = {"root":"_1jvof","multiline-vertical-padding-24":"_3FIhK","multilineVerticalPadding24":"_3FIhK","multiline-vertical-padding-30":"_6b4ld","multilineVerticalPadding30":"_6b4ld","multiline-vertical-padding-36":"_1KJip","multilineVerticalPadding36":"_1KJip","multiline-vertical-padding-42":"_14DWx","multilineVerticalPadding42":"_14DWx","multiline-vertical-padding-48":"d3Onz","multilineVerticalPadding48":"d3Onz"};
|
|
2692
2691
|
|
|
2693
2692
|
/***/ }),
|
|
2694
2693
|
|
|
@@ -2700,39 +2699,39 @@ module.exports = {"root":"_1jSlo","multiline-vertical-padding-24":"GnRhh","multi
|
|
|
2700
2699
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2701
2700
|
|
|
2702
2701
|
"use strict";
|
|
2703
|
-
|
|
2704
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2705
|
-
exports.PickerItem = void 0;
|
|
2706
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2707
|
-
var React = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
2708
|
-
var FlexItems_1 = __webpack_require__(/*! ../layout/FlexItems */ "./components/layout/FlexItems/index.ts");
|
|
2709
|
-
var typography_1 = __webpack_require__(/*! ../typography */ "./components/typography/index.ts");
|
|
2710
|
-
var widgets_1 = __webpack_require__(/*! ../widgets */ "./components/widgets/index.ts");
|
|
2711
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./PickerItem.scss */ "./components/pickers/PickerItem.scss"));
|
|
2712
|
-
var defaultSize = '36';
|
|
2713
|
-
var PickerItem = /** @class */ (function (_super) {
|
|
2714
|
-
(0, tslib_1.__extends)(PickerItem, _super);
|
|
2715
|
-
function PickerItem() {
|
|
2716
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
2717
|
-
_this.getAvatarSize = function (size, isMultiline) {
|
|
2718
|
-
return isMultiline ? size : +size - 6;
|
|
2719
|
-
};
|
|
2720
|
-
return _this;
|
|
2721
|
-
}
|
|
2722
|
-
PickerItem.prototype.render = function () {
|
|
2723
|
-
var _a = this.props, size = _a.size, avatarUrl = _a.avatarUrl, title = _a.title, subtitle = _a.subtitle, isLoading = _a.isLoading, isDisabled = _a.isDisabled;
|
|
2724
|
-
var itemSize = size && size !== 'none' ? size : defaultSize;
|
|
2725
|
-
var isMultiline = !!(title && subtitle);
|
|
2726
|
-
return (React.createElement(FlexItems_1.FlexCell, { width: 'auto', cx: css.root },
|
|
2727
|
-
React.createElement(FlexItems_1.FlexRow, { size: itemSize, cx: isMultiline && css["multiline-vertical-padding-".concat(itemSize)], spacing: '12' },
|
|
2728
|
-
avatarUrl && React.createElement(widgets_1.Avatar, { isLoading: isLoading, img: avatarUrl, size: this.getAvatarSize(itemSize, isMultiline).toString() }),
|
|
2729
|
-
React.createElement(FlexItems_1.FlexCell, { width: 'auto' },
|
|
2730
|
-
title && React.createElement(typography_1.Text, { size: itemSize, cx: css.text, color: isDisabled ? 'disabled' : 'primary' }, isLoading ? React.createElement(typography_1.TextPlaceholder, { wordsCount: 2 }) : title),
|
|
2731
|
-
subtitle && React.createElement(typography_1.Text, { size: itemSize, color: 'disabled', cx: css.text }, isLoading ? React.createElement(typography_1.TextPlaceholder, { wordsCount: 2 }) : subtitle)))));
|
|
2732
|
-
};
|
|
2733
|
-
return PickerItem;
|
|
2734
|
-
}(React.Component));
|
|
2735
|
-
exports.PickerItem = PickerItem;
|
|
2702
|
+
|
|
2703
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2704
|
+
exports.PickerItem = void 0;
|
|
2705
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2706
|
+
var React = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
2707
|
+
var FlexItems_1 = __webpack_require__(/*! ../layout/FlexItems */ "./components/layout/FlexItems/index.ts");
|
|
2708
|
+
var typography_1 = __webpack_require__(/*! ../typography */ "./components/typography/index.ts");
|
|
2709
|
+
var widgets_1 = __webpack_require__(/*! ../widgets */ "./components/widgets/index.ts");
|
|
2710
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./PickerItem.scss */ "./components/pickers/PickerItem.scss"));
|
|
2711
|
+
var defaultSize = '36';
|
|
2712
|
+
var PickerItem = /** @class */ (function (_super) {
|
|
2713
|
+
(0, tslib_1.__extends)(PickerItem, _super);
|
|
2714
|
+
function PickerItem() {
|
|
2715
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
2716
|
+
_this.getAvatarSize = function (size, isMultiline) {
|
|
2717
|
+
return isMultiline ? size : +size - 6;
|
|
2718
|
+
};
|
|
2719
|
+
return _this;
|
|
2720
|
+
}
|
|
2721
|
+
PickerItem.prototype.render = function () {
|
|
2722
|
+
var _a = this.props, size = _a.size, avatarUrl = _a.avatarUrl, title = _a.title, subtitle = _a.subtitle, isLoading = _a.isLoading, isDisabled = _a.isDisabled;
|
|
2723
|
+
var itemSize = size && size !== 'none' ? size : defaultSize;
|
|
2724
|
+
var isMultiline = !!(title && subtitle);
|
|
2725
|
+
return (React.createElement(FlexItems_1.FlexCell, { width: 'auto', cx: css.root },
|
|
2726
|
+
React.createElement(FlexItems_1.FlexRow, { size: itemSize, cx: isMultiline && css["multiline-vertical-padding-".concat(itemSize)], spacing: '12' },
|
|
2727
|
+
avatarUrl && React.createElement(widgets_1.Avatar, { isLoading: isLoading, img: avatarUrl, size: this.getAvatarSize(itemSize, isMultiline).toString() }),
|
|
2728
|
+
React.createElement(FlexItems_1.FlexCell, { width: 'auto' },
|
|
2729
|
+
title && React.createElement(typography_1.Text, { size: itemSize, cx: css.text, color: isDisabled ? 'disabled' : 'primary' }, isLoading ? React.createElement(typography_1.TextPlaceholder, { wordsCount: 2 }) : title),
|
|
2730
|
+
subtitle && React.createElement(typography_1.Text, { size: itemSize, color: 'disabled', cx: css.text }, isLoading ? React.createElement(typography_1.TextPlaceholder, { wordsCount: 2 }) : subtitle)))));
|
|
2731
|
+
};
|
|
2732
|
+
return PickerItem;
|
|
2733
|
+
}(React.Component));
|
|
2734
|
+
exports.PickerItem = PickerItem;
|
|
2736
2735
|
|
|
2737
2736
|
|
|
2738
2737
|
/***/ }),
|
|
@@ -2745,56 +2744,58 @@ exports.PickerItem = PickerItem;
|
|
|
2745
2744
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2746
2745
|
|
|
2747
2746
|
"use strict";
|
|
2748
|
-
|
|
2749
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2750
|
-
exports.PickerList = void 0;
|
|
2751
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2752
|
-
var react_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! react */ "react"));
|
|
2753
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
2754
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
2755
|
-
var
|
|
2756
|
-
var buttons_1 = __webpack_require__(/*! ../buttons */ "./components/buttons/index.ts");
|
|
2757
|
-
var PickerListItem_1 = __webpack_require__(/*! ./PickerListItem */ "./components/pickers/PickerListItem.tsx");
|
|
2758
|
-
var
|
|
2759
|
-
var PickerList = /** @class */ (function (_super) {
|
|
2760
|
-
(0, tslib_1.__extends)(PickerList, _super);
|
|
2761
|
-
function PickerList() {
|
|
2762
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
2763
|
-
_this.sessionStartTime = (new Date()).getTime();
|
|
2764
|
-
_this.renderRow = function (row) {
|
|
2765
|
-
return react_1.default.createElement(PickerListItem_1.PickerListItem, (0, tslib_1.__assign)({ getName: function (item) { return _this.getName(item); } }, row, { key: row.rowKey }));
|
|
2766
|
-
};
|
|
2767
|
-
_this.handleShowPicker = function () {
|
|
2768
|
-
_this.context.uuiModals
|
|
2769
|
-
.
|
|
2770
|
-
|
|
2771
|
-
_this.
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
};
|
|
2775
|
-
_this.defaultRenderToggler = function (props) { return react_1.default.createElement(buttons_1.LinkButton, (0, tslib_1.__assign)({ caption: 'Show all' }, props)); };
|
|
2776
|
-
return _this;
|
|
2777
|
-
}
|
|
2778
|
-
PickerList.prototype.render = function () {
|
|
2779
|
-
var view = this.getView();
|
|
2780
|
-
var viewProps = view.getListProps();
|
|
2781
|
-
var selectedRows = view.getSelectedRows();
|
|
2782
|
-
var rows = this.buildRowsList();
|
|
2783
|
-
|
|
2784
|
-
var
|
|
2785
|
-
var
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
this.props.
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2747
|
+
|
|
2748
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2749
|
+
exports.PickerList = void 0;
|
|
2750
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2751
|
+
var react_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! react */ "react"));
|
|
2752
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
2753
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
2754
|
+
var typography_1 = __webpack_require__(/*! ../typography */ "./components/typography/index.ts");
|
|
2755
|
+
var buttons_1 = __webpack_require__(/*! ../buttons */ "./components/buttons/index.ts");
|
|
2756
|
+
var PickerListItem_1 = __webpack_require__(/*! ./PickerListItem */ "./components/pickers/PickerListItem.tsx");
|
|
2757
|
+
var PickerModal_1 = __webpack_require__(/*! ./PickerModal */ "./components/pickers/PickerModal.tsx");
|
|
2758
|
+
var PickerList = /** @class */ (function (_super) {
|
|
2759
|
+
(0, tslib_1.__extends)(PickerList, _super);
|
|
2760
|
+
function PickerList() {
|
|
2761
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
2762
|
+
_this.sessionStartTime = (new Date()).getTime();
|
|
2763
|
+
_this.renderRow = function (row) {
|
|
2764
|
+
return react_1.default.createElement(PickerListItem_1.PickerListItem, (0, tslib_1.__assign)({ getName: function (item) { return _this.getName(item); } }, row, { key: row.rowKey }));
|
|
2765
|
+
};
|
|
2766
|
+
_this.handleShowPicker = function () {
|
|
2767
|
+
_this.context.uuiModals
|
|
2768
|
+
.show(function (props) { return (react_1.default.createElement(PickerModal_1.PickerModal, (0, tslib_1.__assign)({}, props, _this.props, { caption: _this.props.placeholder || "Please select ".concat(_this.getEntityName() ? _this.getEntityName() : ""), initialValue: _this.props.value, selectionMode: _this.props.selectionMode, valueType: _this.props.valueType }))); })
|
|
2769
|
+
.then(function (value) {
|
|
2770
|
+
_this.appendLastSelected((0, tslib_1.__spreadArray)([], _this.getSelectedIdsArray(value), true));
|
|
2771
|
+
_this.props.onValueChange(value);
|
|
2772
|
+
});
|
|
2773
|
+
};
|
|
2774
|
+
_this.defaultRenderToggler = function (props) { return (react_1.default.createElement(buttons_1.LinkButton, (0, tslib_1.__assign)({ caption: 'Show all' }, props))); };
|
|
2775
|
+
return _this;
|
|
2776
|
+
}
|
|
2777
|
+
PickerList.prototype.render = function () {
|
|
2778
|
+
var view = this.getView();
|
|
2779
|
+
var viewProps = view.getListProps();
|
|
2780
|
+
var selectedRows = view.getSelectedRows();
|
|
2781
|
+
var rows = this.buildRowsList();
|
|
2782
|
+
var showPicker = viewProps.totalCount == null || viewProps.totalCount > this.getMaxDefaultItems();
|
|
2783
|
+
var renderToggler = this.props.renderModalToggler || this.defaultRenderToggler;
|
|
2784
|
+
var renderRow = this.props.renderRow || this.renderRow;
|
|
2785
|
+
return (react_1.default.createElement("div", null,
|
|
2786
|
+
!rows.length && (this.props.noOptionsMessage ?
|
|
2787
|
+
this.props.noOptionsMessage :
|
|
2788
|
+
react_1.default.createElement(typography_1.Text, { color: 'secondary', size: this.props.size }, "No options available")),
|
|
2789
|
+
rows.map(function (row) { return renderRow(row); }),
|
|
2790
|
+
showPicker && renderToggler({
|
|
2791
|
+
onClick: this.handleShowPicker,
|
|
2792
|
+
caption: this.getModalTogglerCaption(viewProps.totalCount, selectedRows.length),
|
|
2793
|
+
}, selectedRows)));
|
|
2794
|
+
};
|
|
2795
|
+
PickerList.contextType = uui_core_1.UuiContext;
|
|
2796
|
+
return PickerList;
|
|
2797
|
+
}(uui_components_1.PickerListBase));
|
|
2798
|
+
exports.PickerList = PickerList;
|
|
2798
2799
|
|
|
2799
2800
|
|
|
2800
2801
|
/***/ }),
|
|
@@ -2807,7 +2808,7 @@ exports.PickerList = PickerList;
|
|
|
2807
2808
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2808
2809
|
|
|
2809
2810
|
// extracted by mini-css-extract-plugin
|
|
2810
|
-
module.exports = {"row":"
|
|
2811
|
+
module.exports = {"row":"_6CS4t"};
|
|
2811
2812
|
|
|
2812
2813
|
/***/ }),
|
|
2813
2814
|
|
|
@@ -2819,40 +2820,40 @@ module.exports = {"row":"PdUoY"};
|
|
|
2819
2820
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2820
2821
|
|
|
2821
2822
|
"use strict";
|
|
2822
|
-
|
|
2823
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2824
|
-
exports.PickerListItem = void 0;
|
|
2825
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2826
|
-
var react_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! react */ "react"));
|
|
2827
|
-
var inputs_1 = __webpack_require__(/*! ../inputs */ "./components/inputs/index.ts");
|
|
2828
|
-
var typography_1 = __webpack_require__(/*! ../typography */ "./components/typography/index.ts");
|
|
2829
|
-
var PickerListItem_scss_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! ./PickerListItem.scss */ "./components/pickers/PickerListItem.scss"));
|
|
2830
|
-
var PickerListItem = /** @class */ (function (_super) {
|
|
2831
|
-
(0, tslib_1.__extends)(PickerListItem, _super);
|
|
2832
|
-
function PickerListItem() {
|
|
2833
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
2834
|
-
}
|
|
2835
|
-
PickerListItem.prototype.render = function () {
|
|
2836
|
-
var _this = this;
|
|
2837
|
-
var label;
|
|
2838
|
-
if (this.props.isLoading) {
|
|
2839
|
-
label = react_1.default.createElement(typography_1.TextPlaceholder, { wordsCount: 2 });
|
|
2840
|
-
}
|
|
2841
|
-
else {
|
|
2842
|
-
label = this.props.getName(this.props.value);
|
|
2843
|
-
}
|
|
2844
|
-
var component;
|
|
2845
|
-
if (this.props.checkbox) {
|
|
2846
|
-
component = react_1.default.createElement(inputs_1.Checkbox, (0, tslib_1.__assign)({}, this.props.checkbox, { isDisabled: this.props.isLoading || this.props.checkbox.isDisabled, label: label, value: this.props.isChecked, onValueChange: function () { return _this.props.onCheck(_this.props); } }));
|
|
2847
|
-
}
|
|
2848
|
-
else {
|
|
2849
|
-
component = react_1.default.createElement(inputs_1.RadioInput, { label: label, value: this.props.isSelected, isDisabled: this.props.isLoading || !this.props.isSelectable, onValueChange: function () { return _this.props.onSelect(_this.props); } });
|
|
2850
|
-
}
|
|
2851
|
-
return react_1.default.createElement("div", { className: PickerListItem_scss_1.default.row }, component);
|
|
2852
|
-
};
|
|
2853
|
-
return PickerListItem;
|
|
2854
|
-
}(react_1.default.Component));
|
|
2855
|
-
exports.PickerListItem = PickerListItem;
|
|
2823
|
+
|
|
2824
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2825
|
+
exports.PickerListItem = void 0;
|
|
2826
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2827
|
+
var react_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! react */ "react"));
|
|
2828
|
+
var inputs_1 = __webpack_require__(/*! ../inputs */ "./components/inputs/index.ts");
|
|
2829
|
+
var typography_1 = __webpack_require__(/*! ../typography */ "./components/typography/index.ts");
|
|
2830
|
+
var PickerListItem_scss_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! ./PickerListItem.scss */ "./components/pickers/PickerListItem.scss"));
|
|
2831
|
+
var PickerListItem = /** @class */ (function (_super) {
|
|
2832
|
+
(0, tslib_1.__extends)(PickerListItem, _super);
|
|
2833
|
+
function PickerListItem() {
|
|
2834
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2835
|
+
}
|
|
2836
|
+
PickerListItem.prototype.render = function () {
|
|
2837
|
+
var _this = this;
|
|
2838
|
+
var label;
|
|
2839
|
+
if (this.props.isLoading) {
|
|
2840
|
+
label = react_1.default.createElement(typography_1.TextPlaceholder, { wordsCount: 2 });
|
|
2841
|
+
}
|
|
2842
|
+
else {
|
|
2843
|
+
label = this.props.getName(this.props.value);
|
|
2844
|
+
}
|
|
2845
|
+
var component;
|
|
2846
|
+
if (this.props.checkbox) {
|
|
2847
|
+
component = react_1.default.createElement(inputs_1.Checkbox, (0, tslib_1.__assign)({}, this.props.checkbox, { isDisabled: this.props.isLoading || this.props.checkbox.isDisabled, label: label, value: this.props.isChecked, onValueChange: function () { return _this.props.onCheck(_this.props); } }));
|
|
2848
|
+
}
|
|
2849
|
+
else {
|
|
2850
|
+
component = react_1.default.createElement(inputs_1.RadioInput, { label: label, value: this.props.isSelected, isDisabled: this.props.isLoading || !this.props.isSelectable, onValueChange: function () { return _this.props.onSelect(_this.props); } });
|
|
2851
|
+
}
|
|
2852
|
+
return react_1.default.createElement("div", { className: PickerListItem_scss_1.default.row }, component);
|
|
2853
|
+
};
|
|
2854
|
+
return PickerListItem;
|
|
2855
|
+
}(react_1.default.Component));
|
|
2856
|
+
exports.PickerListItem = PickerListItem;
|
|
2856
2857
|
|
|
2857
2858
|
|
|
2858
2859
|
/***/ }),
|
|
@@ -2865,7 +2866,7 @@ exports.PickerListItem = PickerListItem;
|
|
|
2865
2866
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2866
2867
|
|
|
2867
2868
|
// extracted by mini-css-extract-plugin
|
|
2868
|
-
module.exports = {"sub-header-wrapper":"
|
|
2869
|
+
module.exports = {"sub-header-wrapper":"_2j-rF","subHeaderWrapper":"_2j-rF","switch":"_3neKm"};
|
|
2869
2870
|
|
|
2870
2871
|
/***/ }),
|
|
2871
2872
|
|
|
@@ -2877,87 +2878,87 @@ module.exports = {"sub-header-wrapper":"_1c4tS","subHeaderWrapper":"_1c4tS","swi
|
|
|
2877
2878
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2878
2879
|
|
|
2879
2880
|
"use strict";
|
|
2880
|
-
|
|
2881
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2882
|
-
exports.PickerModal = exports.PickerModalImpl = void 0;
|
|
2883
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2884
|
-
var React = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
2885
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./PickerModal.scss */ "./components/pickers/PickerModal.scss"));
|
|
2886
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
2887
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
2888
|
-
var DataPickerBody_1 = __webpack_require__(/*! ./DataPickerBody */ "./components/pickers/DataPickerBody.tsx");
|
|
2889
|
-
var FlexItems_1 = __webpack_require__(/*! ../layout/FlexItems */ "./components/layout/FlexItems/index.ts");
|
|
2890
|
-
var overlays_1 = __webpack_require__(/*! ../overlays */ "./components/overlays/index.ts");
|
|
2891
|
-
var inputs_1 = __webpack_require__(/*! ../inputs */ "./components/inputs/index.ts");
|
|
2892
|
-
var buttons_1 = __webpack_require__(/*! ../buttons */ "./components/buttons/index.ts");
|
|
2893
|
-
var DataPickerRow_1 = __webpack_require__(/*! ./DataPickerRow */ "./components/pickers/DataPickerRow.tsx");
|
|
2894
|
-
var typography_1 = __webpack_require__(/*! ../typography */ "./components/typography/index.ts");
|
|
2895
|
-
var i18n_1 = __webpack_require__(/*! ../../i18n */ "./i18n.ts");
|
|
2896
|
-
var PickerModalImpl = /** @class */ (function (_super) {
|
|
2897
|
-
(0, tslib_1.__extends)(PickerModalImpl, _super);
|
|
2898
|
-
function PickerModalImpl() {
|
|
2899
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
2900
|
-
}
|
|
2901
|
-
PickerModalImpl.prototype.renderRow = function (rowProps) {
|
|
2902
|
-
var _this = this;
|
|
2903
|
-
return this.props.renderRow ? this.props.renderRow(rowProps) : (React.createElement(DataPickerRow_1.DataPickerRow, (0, tslib_1.__assign)({}, rowProps, { key: rowProps.rowKey, borderBottom: 'none', padding: '24', size: '36', renderItem: function (i) { return React.createElement(typography_1.Text, { size: '36' }, rowProps.isLoading ? React.createElement(typography_1.TextPlaceholder, { wordsCount: 2 }) : _this.getName(i)); } })));
|
|
2904
|
-
};
|
|
2905
|
-
PickerModalImpl.prototype.renderFooter = function (selectedDataRows) {
|
|
2906
|
-
var _this = this;
|
|
2907
|
-
var hasSelection = selectedDataRows.length > 0;
|
|
2908
|
-
var view = this.getView();
|
|
2909
|
-
return React.createElement(React.Fragment, null,
|
|
2910
|
-
view.selectAll && React.createElement(buttons_1.LinkButton, { caption: hasSelection ? i18n_1.i18n.pickerModal.clearAllButton : i18n_1.i18n.pickerModal.selectAllButton, onClick: hasSelection ? function () { return _this.clearSelection(); } : function () { return view.selectAll.onValueChange(true); } }),
|
|
2911
|
-
React.createElement(FlexItems_1.FlexSpacer, null),
|
|
2912
|
-
React.createElement(buttons_1.Button, { mode: 'outline', color: 'secondary', caption: i18n_1.i18n.pickerModal.cancelButton, onClick: function () { return _this.props.abort(); } }),
|
|
2913
|
-
React.createElement(buttons_1.Button, { color: 'accent', caption: i18n_1.i18n.pickerModal.selectButton, onClick: function () { return _this.props.success(null); } }));
|
|
2914
|
-
};
|
|
2915
|
-
PickerModalImpl.prototype.render = function () {
|
|
2916
|
-
var _this = this;
|
|
2917
|
-
var view = this.getView();
|
|
2918
|
-
var dataRows = this.getRows();
|
|
2919
|
-
var selectedDataRows = view.getSelectedRows();
|
|
2920
|
-
var rows = dataRows.map(function (props) { return _this.renderRow(props); });
|
|
2921
|
-
return (React.createElement(overlays_1.ModalBlocker, (0, tslib_1.__assign)({}, this.props),
|
|
2922
|
-
React.createElement(overlays_1.ModalWindow, { width: 600, height: 700 },
|
|
2923
|
-
React.createElement(overlays_1.ModalHeader, { borderBottom: true, title: this.props.caption || i18n_1.i18n.pickerModal.headerTitle, onClose: function () { return _this.props.abort(); } }),
|
|
2924
|
-
React.createElement(FlexItems_1.FlexCell, { cx: css.subHeaderWrapper },
|
|
2925
|
-
React.createElement(FlexItems_1.FlexRow, { vPadding: '24' },
|
|
2926
|
-
React.createElement(inputs_1.SearchInput, (0, tslib_1.__assign)({}, this.lens.prop('dataSourceState').prop('search').toProps(), { onKeyDown: function (e) { return (0, uui_components_1.handleDataSourceKeyboard)({
|
|
2927
|
-
value: _this.getDataSourceState(),
|
|
2928
|
-
onValueChange: _this.handleDataSourceValueChange,
|
|
2929
|
-
listView: view,
|
|
2930
|
-
rows: dataRows,
|
|
2931
|
-
editMode: 'modal',
|
|
2932
|
-
}, e); }, autoFocus: true, placeholder: i18n_1.i18n.pickerModal.searchPlaceholder }))),
|
|
2933
|
-
!this.isSingleSelect() && React.createElement(inputs_1.Switch, (0, tslib_1.__assign)({ cx: css.switch, size: '18' }, this.stateLens.prop('showSelected').toProps(), { isDisabled: selectedDataRows.length < 1, label: 'Show only selected' })),
|
|
2934
|
-
this.props.renderFilter && React.createElement(FlexItems_1.FlexCell, { grow: 2 }, this.props.renderFilter(this.lens.prop('dataSourceState').prop('filter').toProps()))),
|
|
2935
|
-
React.createElement(DataPickerBody_1.DataPickerBody, (0, tslib_1.__assign)({}, this.getListProps(), { value: this.getDataSourceState(), onValueChange: this.handleDataSourceValueChange, search: this.lens.prop('dataSourceState').prop('search').toProps(), showSearch: false, rows: rows, renderNotFound: this.props.renderNotFound && (function () { return _this.props.renderNotFound({
|
|
2936
|
-
search: _this.state.dataSourceState.search,
|
|
2937
|
-
onClose: function () { return _this.props.success(selectedDataRows); },
|
|
2938
|
-
}); }), editMode: 'modal' })),
|
|
2939
|
-
React.createElement(overlays_1.ModalFooter, { borderTop: true, padding: '24', vPadding: '24' }, this.props.renderFooter
|
|
2940
|
-
? this.props.renderFooter(this.getFooterProps())
|
|
2941
|
-
: this.renderFooter(selectedDataRows)))));
|
|
2942
|
-
};
|
|
2943
|
-
return PickerModalImpl;
|
|
2944
|
-
}(uui_components_1.PickerModalBase));
|
|
2945
|
-
exports.PickerModalImpl = PickerModalImpl;
|
|
2946
|
-
var PickerModal = /** @class */ (function (_super) {
|
|
2947
|
-
(0, tslib_1.__extends)(PickerModal, _super);
|
|
2948
|
-
function PickerModal() {
|
|
2949
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
2950
|
-
_this.state = { selection: _this.props.initialValue };
|
|
2951
|
-
_this.lens = uui_core_1.Lens.onState(_this);
|
|
2952
|
-
return _this;
|
|
2953
|
-
}
|
|
2954
|
-
PickerModal.prototype.render = function () {
|
|
2955
|
-
var _this = this;
|
|
2956
|
-
return React.createElement(PickerModalImpl, (0, tslib_1.__assign)({}, this.props, this.lens.prop('selection').toProps(), { success: function () { return _this.props.success(_this.state.selection); } }));
|
|
2957
|
-
};
|
|
2958
|
-
return PickerModal;
|
|
2959
|
-
}(React.Component));
|
|
2960
|
-
exports.PickerModal = PickerModal;
|
|
2881
|
+
|
|
2882
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2883
|
+
exports.PickerModal = exports.PickerModalImpl = void 0;
|
|
2884
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2885
|
+
var React = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
2886
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./PickerModal.scss */ "./components/pickers/PickerModal.scss"));
|
|
2887
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
2888
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
2889
|
+
var DataPickerBody_1 = __webpack_require__(/*! ./DataPickerBody */ "./components/pickers/DataPickerBody.tsx");
|
|
2890
|
+
var FlexItems_1 = __webpack_require__(/*! ../layout/FlexItems */ "./components/layout/FlexItems/index.ts");
|
|
2891
|
+
var overlays_1 = __webpack_require__(/*! ../overlays */ "./components/overlays/index.ts");
|
|
2892
|
+
var inputs_1 = __webpack_require__(/*! ../inputs */ "./components/inputs/index.ts");
|
|
2893
|
+
var buttons_1 = __webpack_require__(/*! ../buttons */ "./components/buttons/index.ts");
|
|
2894
|
+
var DataPickerRow_1 = __webpack_require__(/*! ./DataPickerRow */ "./components/pickers/DataPickerRow.tsx");
|
|
2895
|
+
var typography_1 = __webpack_require__(/*! ../typography */ "./components/typography/index.ts");
|
|
2896
|
+
var i18n_1 = __webpack_require__(/*! ../../i18n */ "./i18n.ts");
|
|
2897
|
+
var PickerModalImpl = /** @class */ (function (_super) {
|
|
2898
|
+
(0, tslib_1.__extends)(PickerModalImpl, _super);
|
|
2899
|
+
function PickerModalImpl() {
|
|
2900
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2901
|
+
}
|
|
2902
|
+
PickerModalImpl.prototype.renderRow = function (rowProps) {
|
|
2903
|
+
var _this = this;
|
|
2904
|
+
return this.props.renderRow ? this.props.renderRow(rowProps) : (React.createElement(DataPickerRow_1.DataPickerRow, (0, tslib_1.__assign)({}, rowProps, { key: rowProps.rowKey, borderBottom: 'none', padding: '24', size: '36', renderItem: function (i) { return React.createElement(typography_1.Text, { size: '36' }, rowProps.isLoading ? React.createElement(typography_1.TextPlaceholder, { wordsCount: 2 }) : _this.getName(i)); } })));
|
|
2905
|
+
};
|
|
2906
|
+
PickerModalImpl.prototype.renderFooter = function (selectedDataRows) {
|
|
2907
|
+
var _this = this;
|
|
2908
|
+
var hasSelection = selectedDataRows.length > 0;
|
|
2909
|
+
var view = this.getView();
|
|
2910
|
+
return React.createElement(React.Fragment, null,
|
|
2911
|
+
view.selectAll && React.createElement(buttons_1.LinkButton, { caption: hasSelection ? i18n_1.i18n.pickerModal.clearAllButton : i18n_1.i18n.pickerModal.selectAllButton, onClick: hasSelection ? function () { return _this.clearSelection(); } : function () { return view.selectAll.onValueChange(true); } }),
|
|
2912
|
+
React.createElement(FlexItems_1.FlexSpacer, null),
|
|
2913
|
+
React.createElement(buttons_1.Button, { mode: 'outline', color: 'secondary', caption: i18n_1.i18n.pickerModal.cancelButton, onClick: function () { return _this.props.abort(); } }),
|
|
2914
|
+
React.createElement(buttons_1.Button, { color: 'accent', caption: i18n_1.i18n.pickerModal.selectButton, onClick: function () { return _this.props.success(null); } }));
|
|
2915
|
+
};
|
|
2916
|
+
PickerModalImpl.prototype.render = function () {
|
|
2917
|
+
var _this = this;
|
|
2918
|
+
var view = this.getView();
|
|
2919
|
+
var dataRows = this.getRows();
|
|
2920
|
+
var selectedDataRows = view.getSelectedRows();
|
|
2921
|
+
var rows = dataRows.map(function (props) { return _this.renderRow(props); });
|
|
2922
|
+
return (React.createElement(overlays_1.ModalBlocker, (0, tslib_1.__assign)({}, this.props),
|
|
2923
|
+
React.createElement(overlays_1.ModalWindow, { width: 600, height: 700 },
|
|
2924
|
+
React.createElement(overlays_1.ModalHeader, { borderBottom: true, title: this.props.caption || i18n_1.i18n.pickerModal.headerTitle, onClose: function () { return _this.props.abort(); } }),
|
|
2925
|
+
React.createElement(FlexItems_1.FlexCell, { cx: css.subHeaderWrapper },
|
|
2926
|
+
React.createElement(FlexItems_1.FlexRow, { vPadding: '24' },
|
|
2927
|
+
React.createElement(inputs_1.SearchInput, (0, tslib_1.__assign)({}, this.lens.prop('dataSourceState').prop('search').toProps(), { onKeyDown: function (e) { return (0, uui_components_1.handleDataSourceKeyboard)({
|
|
2928
|
+
value: _this.getDataSourceState(),
|
|
2929
|
+
onValueChange: _this.handleDataSourceValueChange,
|
|
2930
|
+
listView: view,
|
|
2931
|
+
rows: dataRows,
|
|
2932
|
+
editMode: 'modal',
|
|
2933
|
+
}, e); }, autoFocus: true, placeholder: i18n_1.i18n.pickerModal.searchPlaceholder }))),
|
|
2934
|
+
!this.isSingleSelect() && React.createElement(inputs_1.Switch, (0, tslib_1.__assign)({ cx: css.switch, size: '18' }, this.stateLens.prop('showSelected').toProps(), { isDisabled: selectedDataRows.length < 1, label: 'Show only selected' })),
|
|
2935
|
+
this.props.renderFilter && React.createElement(FlexItems_1.FlexCell, { grow: 2 }, this.props.renderFilter(this.lens.prop('dataSourceState').prop('filter').toProps()))),
|
|
2936
|
+
React.createElement(DataPickerBody_1.DataPickerBody, (0, tslib_1.__assign)({}, this.getListProps(), { value: this.getDataSourceState(), onValueChange: this.handleDataSourceValueChange, search: this.lens.prop('dataSourceState').prop('search').toProps(), showSearch: false, rows: rows, renderNotFound: this.props.renderNotFound && (function () { return _this.props.renderNotFound({
|
|
2937
|
+
search: _this.state.dataSourceState.search,
|
|
2938
|
+
onClose: function () { return _this.props.success(selectedDataRows); },
|
|
2939
|
+
}); }), editMode: 'modal' })),
|
|
2940
|
+
React.createElement(overlays_1.ModalFooter, { borderTop: true, padding: '24', vPadding: '24' }, this.props.renderFooter
|
|
2941
|
+
? this.props.renderFooter(this.getFooterProps())
|
|
2942
|
+
: this.renderFooter(selectedDataRows)))));
|
|
2943
|
+
};
|
|
2944
|
+
return PickerModalImpl;
|
|
2945
|
+
}(uui_components_1.PickerModalBase));
|
|
2946
|
+
exports.PickerModalImpl = PickerModalImpl;
|
|
2947
|
+
var PickerModal = /** @class */ (function (_super) {
|
|
2948
|
+
(0, tslib_1.__extends)(PickerModal, _super);
|
|
2949
|
+
function PickerModal() {
|
|
2950
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
2951
|
+
_this.state = { selection: _this.props.initialValue };
|
|
2952
|
+
_this.lens = uui_core_1.Lens.onState(_this);
|
|
2953
|
+
return _this;
|
|
2954
|
+
}
|
|
2955
|
+
PickerModal.prototype.render = function () {
|
|
2956
|
+
var _this = this;
|
|
2957
|
+
return React.createElement(PickerModalImpl, (0, tslib_1.__assign)({}, this.props, this.lens.prop('selection').toProps(), { success: function () { return _this.props.success(_this.state.selection); } }));
|
|
2958
|
+
};
|
|
2959
|
+
return PickerModal;
|
|
2960
|
+
}(React.Component));
|
|
2961
|
+
exports.PickerModal = PickerModal;
|
|
2961
2962
|
|
|
2962
2963
|
|
|
2963
2964
|
/***/ }),
|
|
@@ -2970,7 +2971,7 @@ exports.PickerModal = PickerModal;
|
|
|
2970
2971
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2971
2972
|
|
|
2972
2973
|
// extracted by mini-css-extract-plugin
|
|
2973
|
-
module.exports = {"root":"
|
|
2974
|
+
module.exports = {"root":"d9UTm","mode-form":"_2FMiR","modeForm":"_2FMiR","mode-cell":"_1WUpR","modeCell":"_1WUpR","size-24":"_17Nqv","size24":"_17Nqv","size-30":"_1d_6n","size30":"_1d_6n","size-36":"_2yvte","size36":"_2yvte","size-42":"_2T3Oc","size42":"_2T3Oc","size-48":"_17jUm","size48":"_17jUm"};
|
|
2974
2975
|
|
|
2975
2976
|
/***/ }),
|
|
2976
2977
|
|
|
@@ -2982,63 +2983,63 @@ module.exports = {"root":"h70iL","mode-form":"_2bAZr","modeForm":"_2bAZr","mode-
|
|
|
2982
2983
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2983
2984
|
|
|
2984
2985
|
"use strict";
|
|
2985
|
-
|
|
2986
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2987
|
-
exports.PickerToggler = void 0;
|
|
2988
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2989
|
-
var React = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
2990
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
2991
|
-
var typography_1 = __webpack_require__(/*! ../typography */ "./components/typography/index.ts");
|
|
2992
|
-
var icons_1 = __webpack_require__(/*! ../../icons/icons */ "./icons/icons.tsx");
|
|
2993
|
-
var widgets_1 = __webpack_require__(/*! ../widgets */ "./components/widgets/index.ts");
|
|
2994
|
-
var types = (0, tslib_1.__importStar)(__webpack_require__(/*! ../types */ "./components/types.ts"));
|
|
2995
|
-
__webpack_require__(/*! ../../assets/styles/variables/pickers/pickerToggler.scss */ "./assets/styles/variables/pickers/pickerToggler.scss");
|
|
2996
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./PickerToggler.scss */ "./components/pickers/PickerToggler.scss"));
|
|
2997
|
-
var defaultSize = '36';
|
|
2998
|
-
var defaultMode = types.EditMode.FORM;
|
|
2999
|
-
function applyPickerTogglerMods(mods) {
|
|
3000
|
-
return [
|
|
3001
|
-
'picker-toggler-vars',
|
|
3002
|
-
css.root,
|
|
3003
|
-
css['size-' + (mods.size || defaultSize)],
|
|
3004
|
-
css['mode-' + (mods.mode || defaultMode)],
|
|
3005
|
-
];
|
|
3006
|
-
}
|
|
3007
|
-
function PickerTogglerComponent(props, ref) {
|
|
3008
|
-
var getPickerTogglerButtonSize = function (propSize) {
|
|
3009
|
-
switch (propSize) {
|
|
3010
|
-
case '48':
|
|
3011
|
-
return '42';
|
|
3012
|
-
case '42':
|
|
3013
|
-
return '36';
|
|
3014
|
-
case '36':
|
|
3015
|
-
return '30';
|
|
3016
|
-
case '30':
|
|
3017
|
-
return '24';
|
|
3018
|
-
case '24':
|
|
3019
|
-
return '18';
|
|
3020
|
-
}
|
|
3021
|
-
};
|
|
3022
|
-
var getCaption = function (row) {
|
|
3023
|
-
var _a;
|
|
3024
|
-
var maxItems = (props.maxItems || props.maxItems === 0) ? props.maxItems : 100;
|
|
3025
|
-
if (row.isLoading) {
|
|
3026
|
-
return React.createElement(typography_1.TextPlaceholder, null);
|
|
3027
|
-
}
|
|
3028
|
-
else if (!props.getName || ((_a = props.selection) === null || _a === void 0 ? void 0 : _a.length) > maxItems) {
|
|
3029
|
-
return row.value;
|
|
3030
|
-
}
|
|
3031
|
-
else {
|
|
3032
|
-
return props.getName(row.value);
|
|
3033
|
-
}
|
|
3034
|
-
};
|
|
3035
|
-
var renderItem = function (row) { return (React.createElement(widgets_1.Tag, { key: row.id, caption: getCaption(row), tabIndex: -1, size: props.size ? getPickerTogglerButtonSize(props.size) : '30', onClear: function (e) {
|
|
3036
|
-
row.onCheck && row.onCheck(row);
|
|
3037
|
-
e.stopPropagation();
|
|
3038
|
-
} })); };
|
|
3039
|
-
return (React.createElement(uui_components_1.PickerToggler, (0, tslib_1.__assign)({}, props, { ref: ref, cx: [applyPickerTogglerMods(props), props.cx], renderItem: !!props.renderItem ? props.renderItem : renderItem, getName: function (
|
|
3040
|
-
}
|
|
3041
|
-
exports.PickerToggler = React.forwardRef(PickerTogglerComponent);
|
|
2986
|
+
|
|
2987
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2988
|
+
exports.PickerToggler = void 0;
|
|
2989
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2990
|
+
var React = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
2991
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
2992
|
+
var typography_1 = __webpack_require__(/*! ../typography */ "./components/typography/index.ts");
|
|
2993
|
+
var icons_1 = __webpack_require__(/*! ../../icons/icons */ "./icons/icons.tsx");
|
|
2994
|
+
var widgets_1 = __webpack_require__(/*! ../widgets */ "./components/widgets/index.ts");
|
|
2995
|
+
var types = (0, tslib_1.__importStar)(__webpack_require__(/*! ../types */ "./components/types.ts"));
|
|
2996
|
+
__webpack_require__(/*! ../../assets/styles/variables/pickers/pickerToggler.scss */ "./assets/styles/variables/pickers/pickerToggler.scss");
|
|
2997
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./PickerToggler.scss */ "./components/pickers/PickerToggler.scss"));
|
|
2998
|
+
var defaultSize = '36';
|
|
2999
|
+
var defaultMode = types.EditMode.FORM;
|
|
3000
|
+
function applyPickerTogglerMods(mods) {
|
|
3001
|
+
return [
|
|
3002
|
+
'picker-toggler-vars',
|
|
3003
|
+
css.root,
|
|
3004
|
+
css['size-' + (mods.size || defaultSize)],
|
|
3005
|
+
css['mode-' + (mods.mode || defaultMode)],
|
|
3006
|
+
];
|
|
3007
|
+
}
|
|
3008
|
+
function PickerTogglerComponent(props, ref) {
|
|
3009
|
+
var getPickerTogglerButtonSize = function (propSize) {
|
|
3010
|
+
switch (propSize) {
|
|
3011
|
+
case '48':
|
|
3012
|
+
return '42';
|
|
3013
|
+
case '42':
|
|
3014
|
+
return '36';
|
|
3015
|
+
case '36':
|
|
3016
|
+
return '30';
|
|
3017
|
+
case '30':
|
|
3018
|
+
return '24';
|
|
3019
|
+
case '24':
|
|
3020
|
+
return '18';
|
|
3021
|
+
}
|
|
3022
|
+
};
|
|
3023
|
+
var getCaption = function (row) {
|
|
3024
|
+
var _a;
|
|
3025
|
+
var maxItems = (props.maxItems || props.maxItems === 0) ? props.maxItems : 100;
|
|
3026
|
+
if (row.isLoading) {
|
|
3027
|
+
return React.createElement(typography_1.TextPlaceholder, null);
|
|
3028
|
+
}
|
|
3029
|
+
else if (!props.getName || ((_a = props.selection) === null || _a === void 0 ? void 0 : _a.length) > maxItems) {
|
|
3030
|
+
return row.value;
|
|
3031
|
+
}
|
|
3032
|
+
else {
|
|
3033
|
+
return props.getName(row.value);
|
|
3034
|
+
}
|
|
3035
|
+
};
|
|
3036
|
+
var renderItem = function (row) { return (React.createElement(widgets_1.Tag, { key: row.id, caption: getCaption(row), tabIndex: -1, size: props.size ? getPickerTogglerButtonSize(props.size) : '30', onClear: function (e) {
|
|
3037
|
+
row.onCheck && row.onCheck(row);
|
|
3038
|
+
e.stopPropagation();
|
|
3039
|
+
} })); };
|
|
3040
|
+
return (React.createElement(uui_components_1.PickerToggler, (0, tslib_1.__assign)({}, props, { ref: ref, cx: [applyPickerTogglerMods(props), props.cx], renderItem: !!props.renderItem ? props.renderItem : renderItem, getName: function (item) { return props.getName ? props.getName(item) : item; }, cancelIcon: icons_1.systemIcons[props.size || defaultSize].clear, dropdownIcon: icons_1.systemIcons[props.size || defaultSize].foldingArrow })));
|
|
3041
|
+
}
|
|
3042
|
+
exports.PickerToggler = React.forwardRef(PickerTogglerComponent);
|
|
3042
3043
|
|
|
3043
3044
|
|
|
3044
3045
|
/***/ }),
|
|
@@ -3051,20 +3052,20 @@ exports.PickerToggler = React.forwardRef(PickerTogglerComponent);
|
|
|
3051
3052
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3052
3053
|
|
|
3053
3054
|
"use strict";
|
|
3054
|
-
|
|
3055
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3056
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3057
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DataPickerBody */ "./components/pickers/DataPickerBody.tsx"), exports);
|
|
3058
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DataPickerFooter */ "./components/pickers/DataPickerFooter.tsx"), exports);
|
|
3059
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DataPickerHeader */ "./components/pickers/DataPickerHeader.tsx"), exports);
|
|
3060
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DataPickerRow */ "./components/pickers/DataPickerRow.tsx"), exports);
|
|
3061
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./MobileDropdownWrapper */ "./components/pickers/MobileDropdownWrapper.tsx"), exports);
|
|
3062
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./PickerInput */ "./components/pickers/PickerInput.tsx"), exports);
|
|
3063
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./PickerItem */ "./components/pickers/PickerItem.tsx"), exports);
|
|
3064
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./PickerList */ "./components/pickers/PickerList.tsx"), exports);
|
|
3065
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./PickerListItem */ "./components/pickers/PickerListItem.tsx"), exports);
|
|
3066
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./PickerModal */ "./components/pickers/PickerModal.tsx"), exports);
|
|
3067
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./PickerToggler */ "./components/pickers/PickerToggler.tsx"), exports);
|
|
3055
|
+
|
|
3056
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3057
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3058
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DataPickerBody */ "./components/pickers/DataPickerBody.tsx"), exports);
|
|
3059
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DataPickerFooter */ "./components/pickers/DataPickerFooter.tsx"), exports);
|
|
3060
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DataPickerHeader */ "./components/pickers/DataPickerHeader.tsx"), exports);
|
|
3061
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DataPickerRow */ "./components/pickers/DataPickerRow.tsx"), exports);
|
|
3062
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./MobileDropdownWrapper */ "./components/pickers/MobileDropdownWrapper.tsx"), exports);
|
|
3063
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./PickerInput */ "./components/pickers/PickerInput.tsx"), exports);
|
|
3064
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./PickerItem */ "./components/pickers/PickerItem.tsx"), exports);
|
|
3065
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./PickerList */ "./components/pickers/PickerList.tsx"), exports);
|
|
3066
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./PickerListItem */ "./components/pickers/PickerListItem.tsx"), exports);
|
|
3067
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./PickerModal */ "./components/pickers/PickerModal.tsx"), exports);
|
|
3068
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./PickerToggler */ "./components/pickers/PickerToggler.tsx"), exports);
|
|
3068
3069
|
|
|
3069
3070
|
|
|
3070
3071
|
/***/ }),
|
|
@@ -3077,7 +3078,7 @@ var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.
|
|
|
3077
3078
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3078
3079
|
|
|
3079
3080
|
// extracted by mini-css-extract-plugin
|
|
3080
|
-
module.exports = {"cell":"
|
|
3081
|
+
module.exports = {"cell":"_2wT6t","wrapper":"_3HZ2P","align-widgets-top":"_3oVRI","alignWidgetsTop":"_3oVRI","size-24":"_3RmXn","size24":"_3RmXn","folding-arrow":"twtpq","foldingArrow":"twtpq","size-30":"_2Uqkp","size30":"_2Uqkp","size-36":"b923D","size36":"b923D","size-42":"_1Dd4Y","size42":"_1Dd4Y","size-48":"_1rLEq","size48":"_1rLEq","size-60":"PgkSZ","size60":"PgkSZ","align-widgets-center":"_1TCH5","alignWidgetsCenter":"_1TCH5","padding-12":"_2GLiB","padding12":"_2GLiB","padding-24":"_1Hhd0","padding24":"_1Hhd0","padding-left-12":"KGMbS","paddingLeft12":"KGMbS","padding-left-24":"i2bYH","paddingLeft24":"i2bYH","padding-right-24":"_3f4Ew","paddingRight24":"_3f4Ew","drag-handle":"_2S8Rl","dragHandle":"_2S8Rl","checkbox":"_3Iu6o","indent":"_2RS2a","folding-arrow-12":"_1xqjb","foldingArrow12":"_1xqjb","folding-arrow-18":"_2ooqZ","foldingArrow18":"_2ooqZ"};
|
|
3081
3082
|
|
|
3082
3083
|
/***/ }),
|
|
3083
3084
|
|
|
@@ -3089,48 +3090,48 @@ module.exports = {"cell":"_1nf0e","wrapper":"_1Jfop","align-widgets-top":"_22NR8
|
|
|
3089
3090
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3090
3091
|
|
|
3091
3092
|
"use strict";
|
|
3092
|
-
|
|
3093
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3094
|
-
exports.DataTableCell = void 0;
|
|
3095
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3096
|
-
var React = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
3097
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
3098
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
3099
|
-
var typography_1 = __webpack_require__(/*! ../typography */ "./components/typography/index.ts");
|
|
3100
|
-
var layout_1 = __webpack_require__(/*! ../layout */ "./components/layout/index.ts");
|
|
3101
|
-
var inputs_1 = __webpack_require__(/*! ../inputs */ "./components/inputs/index.ts");
|
|
3102
|
-
var tree_folding_arrow_svg_1 = __webpack_require__(/*! ../../icons/tree_folding_arrow.svg */ "./icons/tree_folding_arrow.svg");
|
|
3103
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./DataTableCell.scss */ "./components/tables/DataTableCell.scss"));
|
|
3104
|
-
var DataTableCell = /** @class */ (function (_super) {
|
|
3105
|
-
(0, tslib_1.__extends)(DataTableCell, _super);
|
|
3106
|
-
function DataTableCell() {
|
|
3107
|
-
var _a, _b, _c;
|
|
3108
|
-
var _this = _super.apply(this, arguments) || this;
|
|
3109
|
-
_this.hasDepsWidgets = !!(((_b = (_a = _this.props.rowProps) === null || _a === void 0 ? void 0 : _a.checkbox) === null || _b === void 0 ? void 0 : _b.isVisible) || ((_c = _this.props.rowProps) === null || _c === void 0 ? void 0 : _c.indent));
|
|
3110
|
-
_this.isDraggable = function () { var _a, _b; return !!((_b = (_a = _this.props.rowProps) === null || _a === void 0 ? void 0 : _a.dnd) === null || _b === void 0 ? void 0 : _b.srcData); };
|
|
3111
|
-
_this.getContent = function () {
|
|
3112
|
-
var _a;
|
|
3113
|
-
var row = _this.props.rowProps;
|
|
3114
|
-
var additionalItemSize = +_this.props.size < 30 ? '12' : '18';
|
|
3115
|
-
var cellContent = row.isLoading
|
|
3116
|
-
? React.createElement(typography_1.Text, { size: _this.props.size != '60' ? _this.props.size : '48' },
|
|
3117
|
-
React.createElement(typography_1.TextPlaceholder, null))
|
|
3118
|
-
: _this.props.column.render(_this.props.rowProps.value, _this.props.rowProps);
|
|
3119
|
-
return (React.createElement(React.Fragment, null,
|
|
3120
|
-
_this.props.isFirstColumn && _this.isDraggable() && React.createElement(uui_components_1.DragHandle, { cx: css.dragHandle }),
|
|
3121
|
-
_this.props.isFirstColumn && ((_a = row === null || row === void 0 ? void 0 : row.checkbox) === null || _a === void 0 ? void 0 : _a.isVisible) && React.createElement(inputs_1.Checkbox, { key: 'cb', cx: css.checkbox, tabIndex: _this.props.tabIndex, size: additionalItemSize, value: row.isChecked, indeterminate: !row.isChecked && row.isChildrenChecked, onValueChange: function () { return row.onCheck(row); }, isDisabled: row.checkbox.isDisabled, isInvalid: row.checkbox.isInvalid }),
|
|
3122
|
-
_this.props.isFirstColumn && row.indent > 0 && (React.createElement("div", { key: 'fold', className: css.indent, style: { marginLeft: (row.indent - 1) * 24 } }, row.isFoldable &&
|
|
3123
|
-
React.createElement(uui_components_1.IconContainer, { key: 'icon', icon: tree_folding_arrow_svg_1.ReactComponent, cx: [css.foldingArrow, css["folding-arrow-".concat(additionalItemSize)], uui_core_1.uuiMarkers.clickable], rotate: row.isFolded ? '90ccw' : '0', onClick: function () { return row.onFold(row); } }))),
|
|
3124
|
-
cellContent));
|
|
3125
|
-
};
|
|
3126
|
-
return _this;
|
|
3127
|
-
}
|
|
3128
|
-
DataTableCell.prototype.render = function () {
|
|
3129
|
-
return (React.createElement(layout_1.FlexCell, (0, tslib_1.__assign)({}, this.props.column, { rawProps: { role: this.props.role }, cx: (0, uui_core_1.cx)(css.cell, this.props.isFirstColumn && this.hasDepsWidgets && css.wrapper, css['size-' + (this.props.size || '36')], css["padding-".concat(this.props.padding || '12')], this.props.isFirstColumn && css["padding-left-".concat(this.props.padding || '24')], this.props.isLastColumn && css['padding-right-24'], this.props.column.cx, css["align-widgets-".concat(this.props.alignActions || 'top')]) }), this.getContent()));
|
|
3130
|
-
};
|
|
3131
|
-
return DataTableCell;
|
|
3132
|
-
}(React.Component));
|
|
3133
|
-
exports.DataTableCell = DataTableCell;
|
|
3093
|
+
|
|
3094
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3095
|
+
exports.DataTableCell = void 0;
|
|
3096
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3097
|
+
var React = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
3098
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
3099
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
3100
|
+
var typography_1 = __webpack_require__(/*! ../typography */ "./components/typography/index.ts");
|
|
3101
|
+
var layout_1 = __webpack_require__(/*! ../layout */ "./components/layout/index.ts");
|
|
3102
|
+
var inputs_1 = __webpack_require__(/*! ../inputs */ "./components/inputs/index.ts");
|
|
3103
|
+
var tree_folding_arrow_svg_1 = __webpack_require__(/*! ../../icons/tree_folding_arrow.svg */ "./icons/tree_folding_arrow.svg");
|
|
3104
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./DataTableCell.scss */ "./components/tables/DataTableCell.scss"));
|
|
3105
|
+
var DataTableCell = /** @class */ (function (_super) {
|
|
3106
|
+
(0, tslib_1.__extends)(DataTableCell, _super);
|
|
3107
|
+
function DataTableCell() {
|
|
3108
|
+
var _a, _b, _c;
|
|
3109
|
+
var _this = _super.apply(this, arguments) || this;
|
|
3110
|
+
_this.hasDepsWidgets = !!(((_b = (_a = _this.props.rowProps) === null || _a === void 0 ? void 0 : _a.checkbox) === null || _b === void 0 ? void 0 : _b.isVisible) || ((_c = _this.props.rowProps) === null || _c === void 0 ? void 0 : _c.indent));
|
|
3111
|
+
_this.isDraggable = function () { var _a, _b; return !!((_b = (_a = _this.props.rowProps) === null || _a === void 0 ? void 0 : _a.dnd) === null || _b === void 0 ? void 0 : _b.srcData); };
|
|
3112
|
+
_this.getContent = function () {
|
|
3113
|
+
var _a;
|
|
3114
|
+
var row = _this.props.rowProps;
|
|
3115
|
+
var additionalItemSize = +_this.props.size < 30 ? '12' : '18';
|
|
3116
|
+
var cellContent = row.isLoading
|
|
3117
|
+
? React.createElement(typography_1.Text, { size: _this.props.size != '60' ? _this.props.size : '48' },
|
|
3118
|
+
React.createElement(typography_1.TextPlaceholder, null))
|
|
3119
|
+
: _this.props.column.render(_this.props.rowProps.value, _this.props.rowProps);
|
|
3120
|
+
return (React.createElement(React.Fragment, null,
|
|
3121
|
+
_this.props.isFirstColumn && _this.isDraggable() && React.createElement(uui_components_1.DragHandle, { cx: css.dragHandle }),
|
|
3122
|
+
_this.props.isFirstColumn && ((_a = row === null || row === void 0 ? void 0 : row.checkbox) === null || _a === void 0 ? void 0 : _a.isVisible) && React.createElement(inputs_1.Checkbox, { key: 'cb', cx: css.checkbox, tabIndex: _this.props.tabIndex, size: additionalItemSize, value: row.isChecked, indeterminate: !row.isChecked && row.isChildrenChecked, onValueChange: function () { return row.onCheck(row); }, isDisabled: row.checkbox.isDisabled, isInvalid: row.checkbox.isInvalid }),
|
|
3123
|
+
_this.props.isFirstColumn && row.indent > 0 && (React.createElement("div", { key: 'fold', className: css.indent, style: { marginLeft: (row.indent - 1) * 24 } }, row.isFoldable &&
|
|
3124
|
+
React.createElement(uui_components_1.IconContainer, { key: 'icon', icon: tree_folding_arrow_svg_1.ReactComponent, cx: [css.foldingArrow, css["folding-arrow-".concat(additionalItemSize)], uui_core_1.uuiMarkers.clickable], rotate: row.isFolded ? '90ccw' : '0', onClick: function () { return row.onFold(row); } }))),
|
|
3125
|
+
cellContent));
|
|
3126
|
+
};
|
|
3127
|
+
return _this;
|
|
3128
|
+
}
|
|
3129
|
+
DataTableCell.prototype.render = function () {
|
|
3130
|
+
return (React.createElement(layout_1.FlexCell, (0, tslib_1.__assign)({}, this.props.column, { rawProps: { role: this.props.role }, cx: (0, uui_core_1.cx)(css.cell, this.props.isFirstColumn && this.hasDepsWidgets && css.wrapper, css['size-' + (this.props.size || '36')], css["padding-".concat(this.props.padding || '12')], this.props.isFirstColumn && css["padding-left-".concat(this.props.padding || '24')], this.props.isLastColumn && css['padding-right-24'], this.props.column.cx, css["align-widgets-".concat(this.props.alignActions || 'top')]) }), this.getContent()));
|
|
3131
|
+
};
|
|
3132
|
+
return DataTableCell;
|
|
3133
|
+
}(React.Component));
|
|
3134
|
+
exports.DataTableCell = DataTableCell;
|
|
3134
3135
|
|
|
3135
3136
|
|
|
3136
3137
|
/***/ }),
|
|
@@ -3143,7 +3144,7 @@ exports.DataTableCell = DataTableCell;
|
|
|
3143
3144
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3144
3145
|
|
|
3145
3146
|
// extracted by mini-css-extract-plugin
|
|
3146
|
-
module.exports = {"container":"
|
|
3147
|
+
module.exports = {"container":"_3LqOL","target":"_2gpsq","panel":"_1AeAM","divider":"_2_OTU","input":"_1D_80","notification":"_3382N"};
|
|
3147
3148
|
|
|
3148
3149
|
/***/ }),
|
|
3149
3150
|
|
|
@@ -3155,70 +3156,70 @@ module.exports = {"container":"h5cGx","target":"Q0H77","panel":"_3OIE9","divider
|
|
|
3155
3156
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3156
3157
|
|
|
3157
3158
|
"use strict";
|
|
3158
|
-
|
|
3159
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3160
|
-
exports.Preset = void 0;
|
|
3161
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3162
|
-
var react_1 = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
3163
|
-
var __1 = __webpack_require__(/*! ../../ */ "./components/index.ts");
|
|
3164
|
-
var navigation_more_vert_12_svg_1 = __webpack_require__(/*! @epam/assets/icons/common/navigation-more_vert-12.svg */ "../epam-assets/icons/common/navigation-more_vert-12.svg");
|
|
3165
|
-
var Preset_scss_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! ./Preset.scss */ "./components/tables/Presets/Preset.scss"));
|
|
3166
|
-
var Preset = function (_a) {
|
|
3167
|
-
var preset = _a.preset, isActive = _a.isActive, hasChanged = _a.hasChanged, choosePreset = _a.choosePreset, duplicatePreset = _a.duplicatePreset, deletePreset = _a.deletePreset, updatePreset = _a.updatePreset, resetToDefault = _a.resetToDefault;
|
|
3168
|
-
var _b = (0, react_1.useState)(false), isRenaming = _b[0], setIsRenaming = _b[1];
|
|
3169
|
-
var _c = (0, react_1.useState)(""), renamingValue = _c[0], setRenamingValue = _c[1];
|
|
3170
|
-
var handleChoose = (0, react_1.useCallback)(function () { return choosePreset(preset); }, [preset, choosePreset]);
|
|
3171
|
-
var handleUpdate = (0, react_1.useCallback)(function () { return updatePreset(preset); }, [preset, updatePreset]);
|
|
3172
|
-
var acceptRenaming = (0, react_1.useCallback)(function () {
|
|
3173
|
-
if (renamingValue) {
|
|
3174
|
-
var newPreset = (0, tslib_1.__assign)((0, tslib_1.__assign)({}, preset), { name: renamingValue });
|
|
3175
|
-
updatePreset(newPreset);
|
|
3176
|
-
}
|
|
3177
|
-
setIsRenaming(false);
|
|
3178
|
-
}, [renamingValue, updatePreset]);
|
|
3179
|
-
var renderBody = (0, react_1.useCallback)(function (props) {
|
|
3180
|
-
var handleDuplicate = function () {
|
|
3181
|
-
duplicatePreset(preset);
|
|
3182
|
-
props.onClose();
|
|
3183
|
-
};
|
|
3184
|
-
var startRenaming = function () {
|
|
3185
|
-
setIsRenaming(true);
|
|
3186
|
-
setRenamingValue(preset.name);
|
|
3187
|
-
props.onClose();
|
|
3188
|
-
};
|
|
3189
|
-
var handleDelete = function () {
|
|
3190
|
-
deletePreset(preset);
|
|
3191
|
-
if (isActive) {
|
|
3192
|
-
resetToDefault();
|
|
3193
|
-
}
|
|
3194
|
-
props.onClose();
|
|
3195
|
-
};
|
|
3196
|
-
var update = function () {
|
|
3197
|
-
handleUpdate();
|
|
3198
|
-
props.onClose();
|
|
3199
|
-
};
|
|
3200
|
-
var choose = function () {
|
|
3201
|
-
choosePreset(preset);
|
|
3202
|
-
props.onClose();
|
|
3203
|
-
};
|
|
3204
|
-
return (react_1.default.createElement(__1.DropdownMenuBody, (0, tslib_1.__assign)({}, props),
|
|
3205
|
-
react_1.default.createElement(__1.DropdownMenuButton, { caption: 'Duplicate', onClick: handleDuplicate }),
|
|
3206
|
-
react_1.default.createElement(__1.DropdownMenuButton, { caption: 'Rename', onClick: startRenaming }),
|
|
3207
|
-
react_1.default.createElement(__1.DropdownMenuButton, { caption: 'Update', onClick: update, isDisabled: !hasChanged }),
|
|
3208
|
-
react_1.default.createElement(__1.DropdownMenuButton, { caption: 'Delete', onClick: handleDelete }),
|
|
3209
|
-
react_1.default.createElement(__1.DropdownMenuSplitter, null),
|
|
3210
|
-
react_1.default.createElement(__1.DropdownMenuButton, { caption: 'Discard all changes', onClick: choose, isDisabled: !hasChanged })));
|
|
3211
|
-
}, [preset, duplicatePreset, deletePreset, isActive, choosePreset, hasChanged]);
|
|
3212
|
-
var renderTarget = (0, react_1.useCallback)(function (props) {
|
|
3213
|
-
return (react_1.default.createElement(__1.Button, (0, tslib_1.__assign)({}, props, { icon: navigation_more_vert_12_svg_1.ReactComponent, size: '24', isDropdown: false, mode: isActive ? 'solid' : 'outline', cx: [Preset_scss_1.default.target, hasChanged && Preset_scss_1.default.notification] })));
|
|
3214
|
-
}, [preset, isActive, hasChanged]);
|
|
3215
|
-
return (react_1.default.createElement(react_1.default.Fragment, null, isRenaming
|
|
3216
|
-
? (react_1.default.createElement(__1.TextInput, { value: renamingValue, onValueChange: setRenamingValue, size: '24', onAccept: acceptRenaming, onBlur: acceptRenaming, cx: Preset_scss_1.default.input, autoFocus: true }))
|
|
3217
|
-
: (react_1.default.createElement(__1.ControlGroup, { cx: Preset_scss_1.default.container },
|
|
3218
|
-
react_1.default.createElement(__1.Button, { key: preset.id, size: '24', caption: preset.name, mode: isActive ? 'solid' : 'outline', onClick: isActive ? null : handleChoose }),
|
|
3219
|
-
!preset.isReadonly && (react_1.default.createElement(__1.Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: 'bottom-end' }))))));
|
|
3220
|
-
};
|
|
3221
|
-
exports.Preset = Preset;
|
|
3159
|
+
|
|
3160
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3161
|
+
exports.Preset = void 0;
|
|
3162
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3163
|
+
var react_1 = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
3164
|
+
var __1 = __webpack_require__(/*! ../../ */ "./components/index.ts");
|
|
3165
|
+
var navigation_more_vert_12_svg_1 = __webpack_require__(/*! @epam/assets/icons/common/navigation-more_vert-12.svg */ "../epam-assets/icons/common/navigation-more_vert-12.svg");
|
|
3166
|
+
var Preset_scss_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! ./Preset.scss */ "./components/tables/Presets/Preset.scss"));
|
|
3167
|
+
var Preset = function (_a) {
|
|
3168
|
+
var preset = _a.preset, isActive = _a.isActive, hasChanged = _a.hasChanged, choosePreset = _a.choosePreset, duplicatePreset = _a.duplicatePreset, deletePreset = _a.deletePreset, updatePreset = _a.updatePreset, resetToDefault = _a.resetToDefault;
|
|
3169
|
+
var _b = (0, react_1.useState)(false), isRenaming = _b[0], setIsRenaming = _b[1];
|
|
3170
|
+
var _c = (0, react_1.useState)(""), renamingValue = _c[0], setRenamingValue = _c[1];
|
|
3171
|
+
var handleChoose = (0, react_1.useCallback)(function () { return choosePreset(preset); }, [preset, choosePreset]);
|
|
3172
|
+
var handleUpdate = (0, react_1.useCallback)(function () { return updatePreset(preset); }, [preset, updatePreset]);
|
|
3173
|
+
var acceptRenaming = (0, react_1.useCallback)(function () {
|
|
3174
|
+
if (renamingValue) {
|
|
3175
|
+
var newPreset = (0, tslib_1.__assign)((0, tslib_1.__assign)({}, preset), { name: renamingValue });
|
|
3176
|
+
updatePreset(newPreset);
|
|
3177
|
+
}
|
|
3178
|
+
setIsRenaming(false);
|
|
3179
|
+
}, [renamingValue, updatePreset]);
|
|
3180
|
+
var renderBody = (0, react_1.useCallback)(function (props) {
|
|
3181
|
+
var handleDuplicate = function () {
|
|
3182
|
+
duplicatePreset(preset);
|
|
3183
|
+
props.onClose();
|
|
3184
|
+
};
|
|
3185
|
+
var startRenaming = function () {
|
|
3186
|
+
setIsRenaming(true);
|
|
3187
|
+
setRenamingValue(preset.name);
|
|
3188
|
+
props.onClose();
|
|
3189
|
+
};
|
|
3190
|
+
var handleDelete = function () {
|
|
3191
|
+
deletePreset(preset);
|
|
3192
|
+
if (isActive) {
|
|
3193
|
+
resetToDefault();
|
|
3194
|
+
}
|
|
3195
|
+
props.onClose();
|
|
3196
|
+
};
|
|
3197
|
+
var update = function () {
|
|
3198
|
+
handleUpdate();
|
|
3199
|
+
props.onClose();
|
|
3200
|
+
};
|
|
3201
|
+
var choose = function () {
|
|
3202
|
+
choosePreset(preset);
|
|
3203
|
+
props.onClose();
|
|
3204
|
+
};
|
|
3205
|
+
return (react_1.default.createElement(__1.DropdownMenuBody, (0, tslib_1.__assign)({}, props),
|
|
3206
|
+
react_1.default.createElement(__1.DropdownMenuButton, { caption: 'Duplicate', onClick: handleDuplicate }),
|
|
3207
|
+
react_1.default.createElement(__1.DropdownMenuButton, { caption: 'Rename', onClick: startRenaming }),
|
|
3208
|
+
react_1.default.createElement(__1.DropdownMenuButton, { caption: 'Update', onClick: update, isDisabled: !hasChanged }),
|
|
3209
|
+
react_1.default.createElement(__1.DropdownMenuButton, { caption: 'Delete', onClick: handleDelete }),
|
|
3210
|
+
react_1.default.createElement(__1.DropdownMenuSplitter, null),
|
|
3211
|
+
react_1.default.createElement(__1.DropdownMenuButton, { caption: 'Discard all changes', onClick: choose, isDisabled: !hasChanged })));
|
|
3212
|
+
}, [preset, duplicatePreset, deletePreset, isActive, choosePreset, hasChanged]);
|
|
3213
|
+
var renderTarget = (0, react_1.useCallback)(function (props) {
|
|
3214
|
+
return (react_1.default.createElement(__1.Button, (0, tslib_1.__assign)({}, props, { icon: navigation_more_vert_12_svg_1.ReactComponent, size: '24', isDropdown: false, mode: isActive ? 'solid' : 'outline', cx: [Preset_scss_1.default.target, hasChanged && Preset_scss_1.default.notification] })));
|
|
3215
|
+
}, [preset, isActive, hasChanged]);
|
|
3216
|
+
return (react_1.default.createElement(react_1.default.Fragment, null, isRenaming
|
|
3217
|
+
? (react_1.default.createElement(__1.TextInput, { value: renamingValue, onValueChange: setRenamingValue, size: '24', onAccept: acceptRenaming, onBlur: acceptRenaming, cx: Preset_scss_1.default.input, autoFocus: true }))
|
|
3218
|
+
: (react_1.default.createElement(__1.ControlGroup, { cx: Preset_scss_1.default.container },
|
|
3219
|
+
react_1.default.createElement(__1.Button, { key: preset.id, size: '24', caption: preset.name, mode: isActive ? 'solid' : 'outline', onClick: isActive ? null : handleChoose }),
|
|
3220
|
+
!preset.isReadonly && (react_1.default.createElement(__1.Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: 'bottom-end' }))))));
|
|
3221
|
+
};
|
|
3222
|
+
exports.Preset = Preset;
|
|
3222
3223
|
|
|
3223
3224
|
|
|
3224
3225
|
/***/ }),
|
|
@@ -3231,7 +3232,7 @@ exports.Preset = Preset;
|
|
|
3231
3232
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3232
3233
|
|
|
3233
3234
|
// extracted by mini-css-extract-plugin
|
|
3234
|
-
module.exports = {"row":"
|
|
3235
|
+
module.exports = {"row":"_2MwrC"};
|
|
3235
3236
|
|
|
3236
3237
|
/***/ }),
|
|
3237
3238
|
|
|
@@ -3243,31 +3244,31 @@ module.exports = {"row":"_1EYzE"};
|
|
|
3243
3244
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3244
3245
|
|
|
3245
3246
|
"use strict";
|
|
3246
|
-
|
|
3247
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3248
|
-
exports.Presets = void 0;
|
|
3249
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3250
|
-
var react_1 = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
3251
|
-
var index_1 = __webpack_require__(/*! ../../index */ "./components/index.ts");
|
|
3252
|
-
var layout_1 = __webpack_require__(/*! ../../layout */ "./components/layout/index.ts");
|
|
3253
|
-
var Preset_1 = __webpack_require__(/*! ./Preset */ "./components/tables/Presets/Preset.tsx");
|
|
3254
|
-
var Presets_scss_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! ./Presets.scss */ "./components/tables/Presets/Presets.scss"));
|
|
3255
|
-
var PresetsImpl = function (_a) {
|
|
3256
|
-
var tableState = _a.tableState, presets = _a.presets, createNewPreset = _a.createNewPreset, activePresetId = _a.activePresetId, isDefaultPresetActive = _a.isDefaultPresetActive, hasPresetChanged = _a.hasPresetChanged, resetToDefault = _a.resetToDefault, choosePreset = _a.choosePreset, duplicatePreset = _a.duplicatePreset, deletePreset = _a.deletePreset, updatePreset = _a.updatePreset;
|
|
3257
|
-
var newPresetTitle = "New preset";
|
|
3258
|
-
var saveNewPreset = (0, react_1.useCallback)(function () {
|
|
3259
|
-
createNewPreset(newPresetTitle);
|
|
3260
|
-
}, [createNewPreset, newPresetTitle]);
|
|
3261
|
-
var activePreset = presets.find(function (p) { return p.id === activePresetId; });
|
|
3262
|
-
var hasActivePresetChanged = (0, react_1.useMemo)(function () {
|
|
3263
|
-
return !isDefaultPresetActive && hasPresetChanged(activePreset);
|
|
3264
|
-
}, [isDefaultPresetActive, activePreset, tableState.filter]);
|
|
3265
|
-
return (react_1.default.createElement(layout_1.FlexRow, { spacing: "6", size: "48", padding: "18", cx: Presets_scss_1.default.row },
|
|
3266
|
-
react_1.default.createElement(index_1.Button, { size: "24", caption: "Default", mode: isDefaultPresetActive ? 'solid' : 'outline', onClick: isDefaultPresetActive ? null : resetToDefault }),
|
|
3267
|
-
presets.map(function (preset) { return (react_1.default.createElement(Preset_1.Preset, { preset: preset, isActive: preset.id === activePresetId, hasChanged: preset.id === activePresetId && hasActivePresetChanged, choosePreset: choosePreset, duplicatePreset: duplicatePreset, deletePreset: deletePreset, updatePreset: updatePreset, resetToDefault: resetToDefault, key: preset.id })); }),
|
|
3268
|
-
hasActivePresetChanged && (react_1.default.createElement(index_1.Button, { caption: "Save as ".concat(newPresetTitle), onClick: saveNewPreset, color: 'accent', mode: 'solid', size: '24' }))));
|
|
3269
|
-
};
|
|
3270
|
-
exports.Presets = react_1.default.memo(PresetsImpl);
|
|
3247
|
+
|
|
3248
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3249
|
+
exports.Presets = void 0;
|
|
3250
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3251
|
+
var react_1 = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
3252
|
+
var index_1 = __webpack_require__(/*! ../../index */ "./components/index.ts");
|
|
3253
|
+
var layout_1 = __webpack_require__(/*! ../../layout */ "./components/layout/index.ts");
|
|
3254
|
+
var Preset_1 = __webpack_require__(/*! ./Preset */ "./components/tables/Presets/Preset.tsx");
|
|
3255
|
+
var Presets_scss_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! ./Presets.scss */ "./components/tables/Presets/Presets.scss"));
|
|
3256
|
+
var PresetsImpl = function (_a) {
|
|
3257
|
+
var tableState = _a.tableState, presets = _a.presets, createNewPreset = _a.createNewPreset, activePresetId = _a.activePresetId, isDefaultPresetActive = _a.isDefaultPresetActive, hasPresetChanged = _a.hasPresetChanged, resetToDefault = _a.resetToDefault, choosePreset = _a.choosePreset, duplicatePreset = _a.duplicatePreset, deletePreset = _a.deletePreset, updatePreset = _a.updatePreset;
|
|
3258
|
+
var newPresetTitle = "New preset";
|
|
3259
|
+
var saveNewPreset = (0, react_1.useCallback)(function () {
|
|
3260
|
+
createNewPreset(newPresetTitle);
|
|
3261
|
+
}, [createNewPreset, newPresetTitle]);
|
|
3262
|
+
var activePreset = presets.find(function (p) { return p.id === activePresetId; });
|
|
3263
|
+
var hasActivePresetChanged = (0, react_1.useMemo)(function () {
|
|
3264
|
+
return !isDefaultPresetActive && hasPresetChanged(activePreset);
|
|
3265
|
+
}, [isDefaultPresetActive, activePreset, tableState.filter]);
|
|
3266
|
+
return (react_1.default.createElement(layout_1.FlexRow, { spacing: "6", size: "48", padding: "18", cx: Presets_scss_1.default.row },
|
|
3267
|
+
react_1.default.createElement(index_1.Button, { size: "24", caption: "Default", mode: isDefaultPresetActive ? 'solid' : 'outline', onClick: isDefaultPresetActive ? null : resetToDefault }),
|
|
3268
|
+
presets.map(function (preset) { return (react_1.default.createElement(Preset_1.Preset, { preset: preset, isActive: preset.id === activePresetId, hasChanged: preset.id === activePresetId && hasActivePresetChanged, choosePreset: choosePreset, duplicatePreset: duplicatePreset, deletePreset: deletePreset, updatePreset: updatePreset, resetToDefault: resetToDefault, key: preset.id })); }),
|
|
3269
|
+
hasActivePresetChanged && (react_1.default.createElement(index_1.Button, { caption: "Save as ".concat(newPresetTitle), onClick: saveNewPreset, color: 'accent', mode: 'solid', size: '24' }))));
|
|
3270
|
+
};
|
|
3271
|
+
exports.Presets = react_1.default.memo(PresetsImpl);
|
|
3271
3272
|
|
|
3272
3273
|
|
|
3273
3274
|
/***/ }),
|
|
@@ -3280,11 +3281,11 @@ exports.Presets = react_1.default.memo(PresetsImpl);
|
|
|
3280
3281
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3281
3282
|
|
|
3282
3283
|
"use strict";
|
|
3283
|
-
|
|
3284
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3285
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3286
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Presets */ "./components/tables/Presets/Presets.tsx"), exports);
|
|
3287
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Preset */ "./components/tables/Presets/Preset.tsx"), exports);
|
|
3284
|
+
|
|
3285
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3286
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3287
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Presets */ "./components/tables/Presets/Presets.tsx"), exports);
|
|
3288
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Preset */ "./components/tables/Presets/Preset.tsx"), exports);
|
|
3288
3289
|
|
|
3289
3290
|
|
|
3290
3291
|
/***/ }),
|
|
@@ -3297,12 +3298,12 @@ var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.
|
|
|
3297
3298
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3298
3299
|
|
|
3299
3300
|
"use strict";
|
|
3300
|
-
|
|
3301
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3302
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3303
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DataTableCell */ "./components/tables/DataTableCell.tsx"), exports);
|
|
3304
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Presets */ "./components/tables/Presets/index.ts"), exports);
|
|
3305
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./types */ "./components/tables/types.ts"), exports);
|
|
3301
|
+
|
|
3302
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3303
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3304
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DataTableCell */ "./components/tables/DataTableCell.tsx"), exports);
|
|
3305
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Presets */ "./components/tables/Presets/index.ts"), exports);
|
|
3306
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./types */ "./components/tables/types.ts"), exports);
|
|
3306
3307
|
|
|
3307
3308
|
|
|
3308
3309
|
/***/ }),
|
|
@@ -3315,8 +3316,8 @@ var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.
|
|
|
3315
3316
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3316
3317
|
|
|
3317
3318
|
"use strict";
|
|
3318
|
-
|
|
3319
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3319
|
+
|
|
3320
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3320
3321
|
|
|
3321
3322
|
|
|
3322
3323
|
/***/ }),
|
|
@@ -3329,20 +3330,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3329
3330
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3330
3331
|
|
|
3331
3332
|
"use strict";
|
|
3332
|
-
|
|
3333
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3334
|
-
exports.EditMode = exports.allFontStyles = exports.allTextSizes = exports.allEpamSemanticColors = exports.allRowSizes = exports.allSizes = exports.allButtonModes = void 0;
|
|
3335
|
-
exports.allButtonModes = ['solid', 'outline', 'ghost', 'none'];
|
|
3336
|
-
exports.allSizes = ['24', '30', '36', '42', '48'];
|
|
3337
|
-
exports.allRowSizes = [null, '24', '30', '36', '42', '48'];
|
|
3338
|
-
exports.allEpamSemanticColors = ['accent', 'primary', 'secondary', 'negative'];
|
|
3339
|
-
exports.allTextSizes = ['18', '24', '30', '36', '48'];
|
|
3340
|
-
exports.allFontStyles = ['regular', 'semibold', 'italic', 'primary', 'promo'];
|
|
3341
|
-
var EditMode;
|
|
3342
|
-
(function (EditMode) {
|
|
3343
|
-
EditMode["FORM"] = "form";
|
|
3344
|
-
EditMode["CELL"] = "cell";
|
|
3345
|
-
})(EditMode = exports.EditMode || (exports.EditMode = {}));
|
|
3333
|
+
|
|
3334
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3335
|
+
exports.EditMode = exports.allFontStyles = exports.allTextSizes = exports.allEpamSemanticColors = exports.allRowSizes = exports.allSizes = exports.allButtonModes = void 0;
|
|
3336
|
+
exports.allButtonModes = ['solid', 'outline', 'ghost', 'none'];
|
|
3337
|
+
exports.allSizes = ['24', '30', '36', '42', '48'];
|
|
3338
|
+
exports.allRowSizes = [null, '24', '30', '36', '42', '48'];
|
|
3339
|
+
exports.allEpamSemanticColors = ['accent', 'primary', 'secondary', 'negative'];
|
|
3340
|
+
exports.allTextSizes = ['18', '24', '30', '36', '48'];
|
|
3341
|
+
exports.allFontStyles = ['regular', 'semibold', 'italic', 'primary', 'promo'];
|
|
3342
|
+
var EditMode;
|
|
3343
|
+
(function (EditMode) {
|
|
3344
|
+
EditMode["FORM"] = "form";
|
|
3345
|
+
EditMode["CELL"] = "cell";
|
|
3346
|
+
})(EditMode = exports.EditMode || (exports.EditMode = {}));
|
|
3346
3347
|
|
|
3347
3348
|
|
|
3348
3349
|
/***/ }),
|
|
@@ -3355,7 +3356,7 @@ var EditMode;
|
|
|
3355
3356
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3356
3357
|
|
|
3357
3358
|
// extracted by mini-css-extract-plugin
|
|
3358
|
-
module.exports = {"root":"
|
|
3359
|
+
module.exports = {"root":"_19qGE"};
|
|
3359
3360
|
|
|
3360
3361
|
/***/ }),
|
|
3361
3362
|
|
|
@@ -3367,29 +3368,29 @@ module.exports = {"root":"_1c6kD"};
|
|
|
3367
3368
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3368
3369
|
|
|
3369
3370
|
"use strict";
|
|
3370
|
-
|
|
3371
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3372
|
-
exports.Text = void 0;
|
|
3373
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3374
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Text.scss */ "./components/typography/Text.scss"));
|
|
3375
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
3376
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
3377
|
-
var textLayout_1 = __webpack_require__(/*! ../../helpers/textLayout */ "./helpers/textLayout.tsx");
|
|
3378
|
-
__webpack_require__(/*! ../../assets/styles/variables/typography/text.scss */ "./assets/styles/variables/typography/text.scss");
|
|
3379
|
-
__webpack_require__(/*! ../../assets/styles/fonts-variables.scss */ "./assets/styles/fonts-variables.scss");
|
|
3380
|
-
function applyTextMods(mods) {
|
|
3381
|
-
var textClasses = (0, textLayout_1.getTextClasses)({
|
|
3382
|
-
size: mods.size || '36',
|
|
3383
|
-
lineHeight: mods.lineHeight,
|
|
3384
|
-
fontSize: mods.fontSize,
|
|
3385
|
-
}, false);
|
|
3386
|
-
return [
|
|
3387
|
-
"font-".concat(mods.font || 'regular'),
|
|
3388
|
-
"text-color-".concat(mods.color || 'primary'),
|
|
3389
|
-
css.root,
|
|
3390
|
-
].concat(textClasses);
|
|
3391
|
-
}
|
|
3392
|
-
exports.Text = (0, uui_core_1.withMods)(uui_components_1.Text, applyTextMods);
|
|
3371
|
+
|
|
3372
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3373
|
+
exports.Text = void 0;
|
|
3374
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3375
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Text.scss */ "./components/typography/Text.scss"));
|
|
3376
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
3377
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
3378
|
+
var textLayout_1 = __webpack_require__(/*! ../../helpers/textLayout */ "./helpers/textLayout.tsx");
|
|
3379
|
+
__webpack_require__(/*! ../../assets/styles/variables/typography/text.scss */ "./assets/styles/variables/typography/text.scss");
|
|
3380
|
+
__webpack_require__(/*! ../../assets/styles/fonts-variables.scss */ "./assets/styles/fonts-variables.scss");
|
|
3381
|
+
function applyTextMods(mods) {
|
|
3382
|
+
var textClasses = (0, textLayout_1.getTextClasses)({
|
|
3383
|
+
size: mods.size || '36',
|
|
3384
|
+
lineHeight: mods.lineHeight,
|
|
3385
|
+
fontSize: mods.fontSize,
|
|
3386
|
+
}, false);
|
|
3387
|
+
return [
|
|
3388
|
+
"font-".concat(mods.font || 'regular'),
|
|
3389
|
+
"text-color-".concat(mods.color || 'primary'),
|
|
3390
|
+
css.root,
|
|
3391
|
+
].concat(textClasses);
|
|
3392
|
+
}
|
|
3393
|
+
exports.Text = (0, uui_core_1.withMods)(uui_components_1.Text, applyTextMods);
|
|
3393
3394
|
|
|
3394
3395
|
|
|
3395
3396
|
/***/ }),
|
|
@@ -3402,7 +3403,7 @@ exports.Text = (0, uui_core_1.withMods)(uui_components_1.Text, applyTextMods);
|
|
|
3402
3403
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3403
3404
|
|
|
3404
3405
|
// extracted by mini-css-extract-plugin
|
|
3405
|
-
module.exports = {"container":"
|
|
3406
|
+
module.exports = {"container":"v5S0G","loading-word":"_3ZBKg","loadingWord":"_3ZBKg","animated-loading":"tTR-E","animatedLoading":"tTR-E","skeleton_loading":"_1kQJ7","skeletonLoading":"_1kQJ7"};
|
|
3406
3407
|
|
|
3407
3408
|
/***/ }),
|
|
3408
3409
|
|
|
@@ -3414,31 +3415,31 @@ module.exports = {"container":"_3VflS","loading-word":"_1Az0l","loadingWord":"_1
|
|
|
3414
3415
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3415
3416
|
|
|
3416
3417
|
"use strict";
|
|
3417
|
-
|
|
3418
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3419
|
-
exports.TextPlaceholder = void 0;
|
|
3420
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3421
|
-
var React = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
3422
|
-
var classnames_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! classnames */ "classnames"));
|
|
3423
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./TextPlaceholder.scss */ "./components/typography/TextPlaceholder.scss"));
|
|
3424
|
-
__webpack_require__(/*! ../../assets/styles/variables/typography/textPlaceholder.scss */ "./assets/styles/variables/typography/textPlaceholder.scss");
|
|
3425
|
-
var TextPlaceholder = function (props) {
|
|
3426
|
-
var pattern = "0";
|
|
3427
|
-
var text = React.useMemo(function () {
|
|
3428
|
-
var words = [];
|
|
3429
|
-
for (var i = 0; i < (props.wordsCount || 1); i++) {
|
|
3430
|
-
var lengthWord = Math.floor(Math.random() * 10 + 8);
|
|
3431
|
-
words.push(pattern.repeat(lengthWord));
|
|
3432
|
-
}
|
|
3433
|
-
return words;
|
|
3434
|
-
}, [props.wordsCount]);
|
|
3435
|
-
return (React.createElement("div", { "aria-busy": true, className: css.container }, text.map(function (it, index) { return (React.createElement("span", { key: index, className: (0, classnames_1.default)([
|
|
3436
|
-
'text-placeholder-vars',
|
|
3437
|
-
css.loadingWord,
|
|
3438
|
-
!props.isNotAnimated && css.animatedLoading,
|
|
3439
|
-
]), dangerouslySetInnerHTML: { __html: it } })); })));
|
|
3440
|
-
};
|
|
3441
|
-
exports.TextPlaceholder = TextPlaceholder;
|
|
3418
|
+
|
|
3419
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3420
|
+
exports.TextPlaceholder = void 0;
|
|
3421
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3422
|
+
var React = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
3423
|
+
var classnames_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! classnames */ "classnames"));
|
|
3424
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./TextPlaceholder.scss */ "./components/typography/TextPlaceholder.scss"));
|
|
3425
|
+
__webpack_require__(/*! ../../assets/styles/variables/typography/textPlaceholder.scss */ "./assets/styles/variables/typography/textPlaceholder.scss");
|
|
3426
|
+
var TextPlaceholder = function (props) {
|
|
3427
|
+
var pattern = "0";
|
|
3428
|
+
var text = React.useMemo(function () {
|
|
3429
|
+
var words = [];
|
|
3430
|
+
for (var i = 0; i < (props.wordsCount || 1); i++) {
|
|
3431
|
+
var lengthWord = Math.floor(Math.random() * 10 + 8);
|
|
3432
|
+
words.push(pattern.repeat(lengthWord));
|
|
3433
|
+
}
|
|
3434
|
+
return words;
|
|
3435
|
+
}, [props.wordsCount]);
|
|
3436
|
+
return (React.createElement("div", { "aria-busy": true, className: css.container }, text.map(function (it, index) { return (React.createElement("span", { key: index, className: (0, classnames_1.default)([
|
|
3437
|
+
'text-placeholder-vars',
|
|
3438
|
+
css.loadingWord,
|
|
3439
|
+
!props.isNotAnimated && css.animatedLoading,
|
|
3440
|
+
]), dangerouslySetInnerHTML: { __html: it } })); })));
|
|
3441
|
+
};
|
|
3442
|
+
exports.TextPlaceholder = TextPlaceholder;
|
|
3442
3443
|
|
|
3443
3444
|
|
|
3444
3445
|
/***/ }),
|
|
@@ -3451,11 +3452,11 @@ exports.TextPlaceholder = TextPlaceholder;
|
|
|
3451
3452
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3452
3453
|
|
|
3453
3454
|
"use strict";
|
|
3454
|
-
|
|
3455
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3456
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3457
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Text */ "./components/typography/Text.tsx"), exports);
|
|
3458
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./TextPlaceholder */ "./components/typography/TextPlaceholder.tsx"), exports);
|
|
3455
|
+
|
|
3456
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3457
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3458
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Text */ "./components/typography/Text.tsx"), exports);
|
|
3459
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./TextPlaceholder */ "./components/typography/TextPlaceholder.tsx"), exports);
|
|
3459
3460
|
|
|
3460
3461
|
|
|
3461
3462
|
/***/ }),
|
|
@@ -3468,12 +3469,12 @@ var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.
|
|
|
3468
3469
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3469
3470
|
|
|
3470
3471
|
"use strict";
|
|
3471
|
-
|
|
3472
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3473
|
-
exports.Avatar = void 0;
|
|
3474
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
3475
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
3476
|
-
exports.Avatar = (0, uui_core_1.withMods)(uui_components_1.Avatar, function () { return []; });
|
|
3472
|
+
|
|
3473
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3474
|
+
exports.Avatar = void 0;
|
|
3475
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
3476
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
3477
|
+
exports.Avatar = (0, uui_core_1.withMods)(uui_components_1.Avatar, function () { return []; });
|
|
3477
3478
|
|
|
3478
3479
|
|
|
3479
3480
|
/***/ }),
|
|
@@ -3486,7 +3487,7 @@ exports.Avatar = (0, uui_core_1.withMods)(uui_components_1.Avatar, function () {
|
|
|
3486
3487
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3487
3488
|
|
|
3488
3489
|
// extracted by mini-css-extract-plugin
|
|
3489
|
-
module.exports = {"root":"
|
|
3490
|
+
module.exports = {"root":"_2sw5G","size-18":"_24319","size18":"_24319","fill-transparent":"_29EIR","fillTransparent":"_29EIR","size-24":"aOLvA","size24":"aOLvA","size-30":"ENNJO","size30":"ENNJO","size-36":"_2rORd","size36":"_2rORd","size-42":"fibSW","size42":"fibSW","size-48":"_1eL3k","size48":"_1eL3k","fill-solid":"_2mz0u","fillSolid":"_2mz0u"};
|
|
3490
3491
|
|
|
3491
3492
|
/***/ }),
|
|
3492
3493
|
|
|
@@ -3498,40 +3499,40 @@ module.exports = {"root":"_11RnI","size-18":"_1_d9Q","size18":"_1_d9Q","fill-tra
|
|
|
3498
3499
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3499
3500
|
|
|
3500
3501
|
"use strict";
|
|
3501
|
-
|
|
3502
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3503
|
-
exports.Badge = exports.applyBadgeMods = void 0;
|
|
3504
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3505
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
3506
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
3507
|
-
var icons_1 = __webpack_require__(/*! ../../icons/icons */ "./icons/icons.tsx");
|
|
3508
|
-
var buttonCss = (0, tslib_1.__importStar)(__webpack_require__(/*! ../buttons/Button.scss */ "./components/buttons/Button.scss"));
|
|
3509
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Badge.scss */ "./components/widgets/Badge.scss"));
|
|
3510
|
-
__webpack_require__(/*! ../../assets/styles/variables/widgets/badge.scss */ "./assets/styles/variables/widgets/badge.scss");
|
|
3511
|
-
var defaultSize = '36';
|
|
3512
|
-
var mapSize = {
|
|
3513
|
-
'48': '48',
|
|
3514
|
-
'42': '48',
|
|
3515
|
-
'36': '36',
|
|
3516
|
-
'30': '30',
|
|
3517
|
-
'24': '30',
|
|
3518
|
-
'18': '18',
|
|
3519
|
-
};
|
|
3520
|
-
function applyBadgeMods(mods) {
|
|
3521
|
-
return [
|
|
3522
|
-
"badge-color-".concat((mods.color || 'info')),
|
|
3523
|
-
buttonCss.root,
|
|
3524
|
-
css['size-' + (mods.size || defaultSize)],
|
|
3525
|
-
css['fill-' + (mods.fill || 'solid')],
|
|
3526
|
-
css.root,
|
|
3527
|
-
];
|
|
3528
|
-
}
|
|
3529
|
-
exports.applyBadgeMods = applyBadgeMods;
|
|
3530
|
-
exports.Badge = (0, uui_core_1.withMods)(uui_components_1.Button, applyBadgeMods, function (props) { return ({
|
|
3531
|
-
dropdownIcon: icons_1.systemIcons[props.size && mapSize[props.size] || defaultSize].foldingArrow,
|
|
3532
|
-
clearIcon: icons_1.systemIcons[props.size && mapSize[props.size] || defaultSize].clear,
|
|
3533
|
-
countPosition: 'left',
|
|
3534
|
-
}); });
|
|
3502
|
+
|
|
3503
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3504
|
+
exports.Badge = exports.applyBadgeMods = void 0;
|
|
3505
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3506
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
3507
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
3508
|
+
var icons_1 = __webpack_require__(/*! ../../icons/icons */ "./icons/icons.tsx");
|
|
3509
|
+
var buttonCss = (0, tslib_1.__importStar)(__webpack_require__(/*! ../buttons/Button.scss */ "./components/buttons/Button.scss"));
|
|
3510
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Badge.scss */ "./components/widgets/Badge.scss"));
|
|
3511
|
+
__webpack_require__(/*! ../../assets/styles/variables/widgets/badge.scss */ "./assets/styles/variables/widgets/badge.scss");
|
|
3512
|
+
var defaultSize = '36';
|
|
3513
|
+
var mapSize = {
|
|
3514
|
+
'48': '48',
|
|
3515
|
+
'42': '48',
|
|
3516
|
+
'36': '36',
|
|
3517
|
+
'30': '30',
|
|
3518
|
+
'24': '30',
|
|
3519
|
+
'18': '18',
|
|
3520
|
+
};
|
|
3521
|
+
function applyBadgeMods(mods) {
|
|
3522
|
+
return [
|
|
3523
|
+
"badge-color-".concat((mods.color || 'info')),
|
|
3524
|
+
buttonCss.root,
|
|
3525
|
+
css['size-' + (mods.size || defaultSize)],
|
|
3526
|
+
css['fill-' + (mods.fill || 'solid')],
|
|
3527
|
+
css.root,
|
|
3528
|
+
];
|
|
3529
|
+
}
|
|
3530
|
+
exports.applyBadgeMods = applyBadgeMods;
|
|
3531
|
+
exports.Badge = (0, uui_core_1.withMods)(uui_components_1.Button, applyBadgeMods, function (props) { return ({
|
|
3532
|
+
dropdownIcon: icons_1.systemIcons[props.size && mapSize[props.size] || defaultSize].foldingArrow,
|
|
3533
|
+
clearIcon: icons_1.systemIcons[props.size && mapSize[props.size] || defaultSize].clear,
|
|
3534
|
+
countPosition: 'left',
|
|
3535
|
+
}); });
|
|
3535
3536
|
|
|
3536
3537
|
|
|
3537
3538
|
/***/ }),
|
|
@@ -3544,7 +3545,7 @@ exports.Badge = (0, uui_core_1.withMods)(uui_components_1.Button, applyBadgeMods
|
|
|
3544
3545
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3545
3546
|
|
|
3546
3547
|
// extracted by mini-css-extract-plugin
|
|
3547
|
-
module.exports = {"root":"
|
|
3548
|
+
module.exports = {"root":"_1nskx","size-18":"_2P_NL","size18":"_2P_NL","size-24":"qzep9","size24":"qzep9","size-30":"_1R8xM","size30":"_1R8xM","size-36":"NHrL6","size36":"NHrL6","size-42":"_3fjSS","size42":"_3fjSS","size-48":"_1Bpdr","size48":"_1Bpdr"};
|
|
3548
3549
|
|
|
3549
3550
|
/***/ }),
|
|
3550
3551
|
|
|
@@ -3556,38 +3557,38 @@ module.exports = {"root":"_1n8m1","size-18":"_1EBzJ","size18":"_1EBzJ","size-24"
|
|
|
3556
3557
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3557
3558
|
|
|
3558
3559
|
"use strict";
|
|
3559
|
-
|
|
3560
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3561
|
-
exports.Tag = exports.applyTagMods = void 0;
|
|
3562
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3563
|
-
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
3564
|
-
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
3565
|
-
var icons_1 = __webpack_require__(/*! ../../icons/icons */ "./icons/icons.tsx");
|
|
3566
|
-
var buttonCss = (0, tslib_1.__importStar)(__webpack_require__(/*! ../buttons/Button.scss */ "./components/buttons/Button.scss"));
|
|
3567
|
-
__webpack_require__(/*! ../../assets/styles/variables/widgets/tag.scss */ "./assets/styles/variables/widgets/tag.scss");
|
|
3568
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Tag.scss */ "./components/widgets/Tag.scss"));
|
|
3569
|
-
var defaultSize = '36';
|
|
3570
|
-
var mapSize = {
|
|
3571
|
-
'48': '48',
|
|
3572
|
-
'42': '48',
|
|
3573
|
-
'36': '36',
|
|
3574
|
-
'30': '30',
|
|
3575
|
-
'24': '30',
|
|
3576
|
-
'18': '18',
|
|
3577
|
-
};
|
|
3578
|
-
function applyTagMods(mods) {
|
|
3579
|
-
return [
|
|
3580
|
-
buttonCss.root,
|
|
3581
|
-
'tag-vars',
|
|
3582
|
-
css['size-' + (mods.size || defaultSize)],
|
|
3583
|
-
css.root,
|
|
3584
|
-
];
|
|
3585
|
-
}
|
|
3586
|
-
exports.applyTagMods = applyTagMods;
|
|
3587
|
-
exports.Tag = (0, uui_core_1.withMods)(uui_components_1.Button, applyTagMods, function (props) { return ({
|
|
3588
|
-
dropdownIcon: icons_1.systemIcons[mapSize[props.size] || defaultSize].foldingArrow,
|
|
3589
|
-
clearIcon: icons_1.systemIcons[mapSize[props.size] || defaultSize].clear,
|
|
3590
|
-
}); });
|
|
3560
|
+
|
|
3561
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3562
|
+
exports.Tag = exports.applyTagMods = void 0;
|
|
3563
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3564
|
+
var uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
3565
|
+
var uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
3566
|
+
var icons_1 = __webpack_require__(/*! ../../icons/icons */ "./icons/icons.tsx");
|
|
3567
|
+
var buttonCss = (0, tslib_1.__importStar)(__webpack_require__(/*! ../buttons/Button.scss */ "./components/buttons/Button.scss"));
|
|
3568
|
+
__webpack_require__(/*! ../../assets/styles/variables/widgets/tag.scss */ "./assets/styles/variables/widgets/tag.scss");
|
|
3569
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Tag.scss */ "./components/widgets/Tag.scss"));
|
|
3570
|
+
var defaultSize = '36';
|
|
3571
|
+
var mapSize = {
|
|
3572
|
+
'48': '48',
|
|
3573
|
+
'42': '48',
|
|
3574
|
+
'36': '36',
|
|
3575
|
+
'30': '30',
|
|
3576
|
+
'24': '30',
|
|
3577
|
+
'18': '18',
|
|
3578
|
+
};
|
|
3579
|
+
function applyTagMods(mods) {
|
|
3580
|
+
return [
|
|
3581
|
+
buttonCss.root,
|
|
3582
|
+
'tag-vars',
|
|
3583
|
+
css['size-' + (mods.size || defaultSize)],
|
|
3584
|
+
css.root,
|
|
3585
|
+
];
|
|
3586
|
+
}
|
|
3587
|
+
exports.applyTagMods = applyTagMods;
|
|
3588
|
+
exports.Tag = (0, uui_core_1.withMods)(uui_components_1.Button, applyTagMods, function (props) { return ({
|
|
3589
|
+
dropdownIcon: icons_1.systemIcons[mapSize[props.size] || defaultSize].foldingArrow,
|
|
3590
|
+
clearIcon: icons_1.systemIcons[mapSize[props.size] || defaultSize].clear,
|
|
3591
|
+
}); });
|
|
3591
3592
|
|
|
3592
3593
|
|
|
3593
3594
|
/***/ }),
|
|
@@ -3600,12 +3601,12 @@ exports.Tag = (0, uui_core_1.withMods)(uui_components_1.Button, applyTagMods, fu
|
|
|
3600
3601
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3601
3602
|
|
|
3602
3603
|
"use strict";
|
|
3603
|
-
|
|
3604
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3605
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3606
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Avatar */ "./components/widgets/Avatar.tsx"), exports);
|
|
3607
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Badge */ "./components/widgets/Badge.tsx"), exports);
|
|
3608
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Tag */ "./components/widgets/Tag.tsx"), exports);
|
|
3604
|
+
|
|
3605
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3606
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3607
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Avatar */ "./components/widgets/Avatar.tsx"), exports);
|
|
3608
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Badge */ "./components/widgets/Badge.tsx"), exports);
|
|
3609
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Tag */ "./components/widgets/Tag.tsx"), exports);
|
|
3609
3610
|
|
|
3610
3611
|
|
|
3611
3612
|
/***/ }),
|
|
@@ -3618,40 +3619,40 @@ var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.
|
|
|
3618
3619
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3619
3620
|
|
|
3620
3621
|
"use strict";
|
|
3621
|
-
|
|
3622
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3623
|
-
exports.getTextClasses = void 0;
|
|
3624
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3625
|
-
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ../assets/styles/text-layout.scss */ "./assets/styles/text-layout.scss"));
|
|
3626
|
-
var defaultTextSettings = {
|
|
3627
|
-
18: { lineHeight: 12, fontSize: 10 },
|
|
3628
|
-
24: { lineHeight: 18, fontSize: 12 },
|
|
3629
|
-
30: { lineHeight: 18, fontSize: 14 },
|
|
3630
|
-
36: { lineHeight: 18, fontSize: 14 },
|
|
3631
|
-
42: { lineHeight: 24, fontSize: 16 },
|
|
3632
|
-
48: { lineHeight: 24, fontSize: 16 },
|
|
3633
|
-
60: { lineHeight: 30, fontSize: 24 },
|
|
3634
|
-
};
|
|
3635
|
-
function getTextClasses(props, border) {
|
|
3636
|
-
if (props.size === 'none') {
|
|
3637
|
-
return [
|
|
3638
|
-
css['line-height-' + props.lineHeight],
|
|
3639
|
-
css['font-size-' + props.fontSize],
|
|
3640
|
-
];
|
|
3641
|
-
}
|
|
3642
|
-
var setting = {
|
|
3643
|
-
size: props.size,
|
|
3644
|
-
lineHeight: props.lineHeight || defaultTextSettings[props.size].lineHeight,
|
|
3645
|
-
fontSize: props.fontSize || defaultTextSettings[props.size].fontSize,
|
|
3646
|
-
};
|
|
3647
|
-
var vPadding = (+setting.size - +setting.lineHeight - (border ? 2 : 0)) / 2;
|
|
3648
|
-
return [
|
|
3649
|
-
css['line-height-' + setting.lineHeight],
|
|
3650
|
-
css['font-size-' + setting.fontSize],
|
|
3651
|
-
css['v-padding-' + vPadding],
|
|
3652
|
-
];
|
|
3653
|
-
}
|
|
3654
|
-
exports.getTextClasses = getTextClasses;
|
|
3622
|
+
|
|
3623
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3624
|
+
exports.getTextClasses = void 0;
|
|
3625
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3626
|
+
var css = (0, tslib_1.__importStar)(__webpack_require__(/*! ../assets/styles/text-layout.scss */ "./assets/styles/text-layout.scss"));
|
|
3627
|
+
var defaultTextSettings = {
|
|
3628
|
+
18: { lineHeight: 12, fontSize: 10 },
|
|
3629
|
+
24: { lineHeight: 18, fontSize: 12 },
|
|
3630
|
+
30: { lineHeight: 18, fontSize: 14 },
|
|
3631
|
+
36: { lineHeight: 18, fontSize: 14 },
|
|
3632
|
+
42: { lineHeight: 24, fontSize: 16 },
|
|
3633
|
+
48: { lineHeight: 24, fontSize: 16 },
|
|
3634
|
+
60: { lineHeight: 30, fontSize: 24 },
|
|
3635
|
+
};
|
|
3636
|
+
function getTextClasses(props, border) {
|
|
3637
|
+
if (props.size === 'none') {
|
|
3638
|
+
return [
|
|
3639
|
+
css['line-height-' + props.lineHeight],
|
|
3640
|
+
css['font-size-' + props.fontSize],
|
|
3641
|
+
];
|
|
3642
|
+
}
|
|
3643
|
+
var setting = {
|
|
3644
|
+
size: props.size,
|
|
3645
|
+
lineHeight: props.lineHeight || defaultTextSettings[props.size].lineHeight,
|
|
3646
|
+
fontSize: props.fontSize || defaultTextSettings[props.size].fontSize,
|
|
3647
|
+
};
|
|
3648
|
+
var vPadding = (+setting.size - +setting.lineHeight - (border ? 2 : 0)) / 2;
|
|
3649
|
+
return [
|
|
3650
|
+
css['line-height-' + setting.lineHeight],
|
|
3651
|
+
css['font-size-' + setting.fontSize],
|
|
3652
|
+
css['v-padding-' + vPadding],
|
|
3653
|
+
];
|
|
3654
|
+
}
|
|
3655
|
+
exports.getTextClasses = getTextClasses;
|
|
3655
3656
|
|
|
3656
3657
|
|
|
3657
3658
|
/***/ }),
|
|
@@ -3664,59 +3665,59 @@ exports.getTextClasses = getTextClasses;
|
|
|
3664
3665
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3665
3666
|
|
|
3666
3667
|
"use strict";
|
|
3667
|
-
|
|
3668
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3669
|
-
exports.i18n = void 0;
|
|
3670
|
-
exports.i18n = {
|
|
3671
|
-
dataPickerBody: {
|
|
3672
|
-
searchPlaceholder: 'Search',
|
|
3673
|
-
noRecordsMessage: 'No records found',
|
|
3674
|
-
},
|
|
3675
|
-
pickerModal: {
|
|
3676
|
-
headerTitle: 'Please select',
|
|
3677
|
-
searchPlaceholder: 'Type text for quick search',
|
|
3678
|
-
cancelButton: 'Cancel',
|
|
3679
|
-
selectButton: 'Select',
|
|
3680
|
-
clearAllButton: 'CLEAR ALL',
|
|
3681
|
-
selectAllButton: 'SELECT ALL',
|
|
3682
|
-
},
|
|
3683
|
-
pickerInput: {
|
|
3684
|
-
showOnlySelectedLabel: 'Show only selected',
|
|
3685
|
-
clearSelectionButton: 'CLEAR ALL',
|
|
3686
|
-
selectAllButton: 'SELECT ALL',
|
|
3687
|
-
},
|
|
3688
|
-
notificationCard: {
|
|
3689
|
-
closeAllNotificationsButton: 'CLOSE ALL NOTIFICATIONS',
|
|
3690
|
-
},
|
|
3691
|
-
form: {
|
|
3692
|
-
notifications: {
|
|
3693
|
-
actionButtonCaption: 'Restore',
|
|
3694
|
-
unsavedChangesMessage: 'You have unsaved changes. Click Restore button if you would like to recover the data',
|
|
3695
|
-
},
|
|
3696
|
-
modals: {
|
|
3697
|
-
beforeLeaveMessage: 'Your data may be lost. Do you want to save data?',
|
|
3698
|
-
discardButton: 'Discard',
|
|
3699
|
-
saveButton: 'Save',
|
|
3700
|
-
},
|
|
3701
|
-
},
|
|
3702
|
-
rangeDatePicker: {
|
|
3703
|
-
pickerPlaceholderFrom: 'From:',
|
|
3704
|
-
pickerPlaceholderTo: 'To:',
|
|
3705
|
-
},
|
|
3706
|
-
tables: {
|
|
3707
|
-
columnsConfigurationModal: {
|
|
3708
|
-
applyButton: 'Apply',
|
|
3709
|
-
checkAllButton: 'CHECK ALL',
|
|
3710
|
-
uncheckAllButton: 'UNCHECK ALL',
|
|
3711
|
-
configureColumnsTitle: 'Configure columns',
|
|
3712
|
-
resetToDefaultButton: 'Reset to Default',
|
|
3713
|
-
},
|
|
3714
|
-
},
|
|
3715
|
-
pickerFilterHeader: {
|
|
3716
|
-
sortAscending: 'Sort Ascending',
|
|
3717
|
-
sortDescending: 'Sort Descending',
|
|
3718
|
-
},
|
|
3719
|
-
};
|
|
3668
|
+
|
|
3669
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3670
|
+
exports.i18n = void 0;
|
|
3671
|
+
exports.i18n = {
|
|
3672
|
+
dataPickerBody: {
|
|
3673
|
+
searchPlaceholder: 'Search',
|
|
3674
|
+
noRecordsMessage: 'No records found',
|
|
3675
|
+
},
|
|
3676
|
+
pickerModal: {
|
|
3677
|
+
headerTitle: 'Please select',
|
|
3678
|
+
searchPlaceholder: 'Type text for quick search',
|
|
3679
|
+
cancelButton: 'Cancel',
|
|
3680
|
+
selectButton: 'Select',
|
|
3681
|
+
clearAllButton: 'CLEAR ALL',
|
|
3682
|
+
selectAllButton: 'SELECT ALL',
|
|
3683
|
+
},
|
|
3684
|
+
pickerInput: {
|
|
3685
|
+
showOnlySelectedLabel: 'Show only selected',
|
|
3686
|
+
clearSelectionButton: 'CLEAR ALL',
|
|
3687
|
+
selectAllButton: 'SELECT ALL',
|
|
3688
|
+
},
|
|
3689
|
+
notificationCard: {
|
|
3690
|
+
closeAllNotificationsButton: 'CLOSE ALL NOTIFICATIONS',
|
|
3691
|
+
},
|
|
3692
|
+
form: {
|
|
3693
|
+
notifications: {
|
|
3694
|
+
actionButtonCaption: 'Restore',
|
|
3695
|
+
unsavedChangesMessage: 'You have unsaved changes. Click Restore button if you would like to recover the data',
|
|
3696
|
+
},
|
|
3697
|
+
modals: {
|
|
3698
|
+
beforeLeaveMessage: 'Your data may be lost. Do you want to save data?',
|
|
3699
|
+
discardButton: 'Discard',
|
|
3700
|
+
saveButton: 'Save',
|
|
3701
|
+
},
|
|
3702
|
+
},
|
|
3703
|
+
rangeDatePicker: {
|
|
3704
|
+
pickerPlaceholderFrom: 'From:',
|
|
3705
|
+
pickerPlaceholderTo: 'To:',
|
|
3706
|
+
},
|
|
3707
|
+
tables: {
|
|
3708
|
+
columnsConfigurationModal: {
|
|
3709
|
+
applyButton: 'Apply',
|
|
3710
|
+
checkAllButton: 'CHECK ALL',
|
|
3711
|
+
uncheckAllButton: 'UNCHECK ALL',
|
|
3712
|
+
configureColumnsTitle: 'Configure columns',
|
|
3713
|
+
resetToDefaultButton: 'Reset to Default',
|
|
3714
|
+
},
|
|
3715
|
+
},
|
|
3716
|
+
pickerFilterHeader: {
|
|
3717
|
+
sortAscending: 'Sort Ascending',
|
|
3718
|
+
sortDescending: 'Sort Descending',
|
|
3719
|
+
},
|
|
3720
|
+
};
|
|
3720
3721
|
|
|
3721
3722
|
|
|
3722
3723
|
/***/ }),
|
|
@@ -4206,7 +4207,7 @@ var ForwardRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.forwa
|
|
|
4206
4207
|
svgRef: ref
|
|
4207
4208
|
}, props));
|
|
4208
4209
|
});
|
|
4209
|
-
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "
|
|
4210
|
+
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "11307d1a2e75df3e85e86f245e610a8e.svg");
|
|
4210
4211
|
|
|
4211
4212
|
|
|
4212
4213
|
/***/ }),
|
|
@@ -4255,7 +4256,7 @@ var ForwardRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.forwa
|
|
|
4255
4256
|
svgRef: ref
|
|
4256
4257
|
}, props));
|
|
4257
4258
|
});
|
|
4258
|
-
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "
|
|
4259
|
+
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "202f6af5ee2dd821281cf1e45c2f83c0.svg");
|
|
4259
4260
|
|
|
4260
4261
|
|
|
4261
4262
|
/***/ }),
|
|
@@ -4450,7 +4451,7 @@ var ForwardRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.forwa
|
|
|
4450
4451
|
svgRef: ref
|
|
4451
4452
|
}, props));
|
|
4452
4453
|
});
|
|
4453
|
-
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "
|
|
4454
|
+
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "061e2086aa65c874e6a1700986fc0143.svg");
|
|
4454
4455
|
|
|
4455
4456
|
|
|
4456
4457
|
/***/ }),
|
|
@@ -4498,7 +4499,7 @@ var ForwardRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.forwa
|
|
|
4498
4499
|
svgRef: ref
|
|
4499
4500
|
}, props));
|
|
4500
4501
|
});
|
|
4501
|
-
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "
|
|
4502
|
+
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "4378bc48485978a258c355821108dd24.svg");
|
|
4502
4503
|
|
|
4503
4504
|
|
|
4504
4505
|
/***/ }),
|
|
@@ -4511,103 +4512,103 @@ var ForwardRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.forwa
|
|
|
4511
4512
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4512
4513
|
|
|
4513
4514
|
"use strict";
|
|
4514
|
-
|
|
4515
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4516
|
-
exports.systemIcons = void 0;
|
|
4517
|
-
var btn_cross_12_svg_1 = __webpack_require__(/*! ./btn-cross-12.svg */ "./icons/btn-cross-12.svg");
|
|
4518
|
-
var btn_cross_18_svg_1 = __webpack_require__(/*! ./btn-cross-18.svg */ "./icons/btn-cross-18.svg");
|
|
4519
|
-
var btn_cross_24_svg_1 = __webpack_require__(/*! ./btn-cross-24.svg */ "./icons/btn-cross-24.svg");
|
|
4520
|
-
var folding_arrow_12_svg_1 = __webpack_require__(/*! ./folding-arrow-12.svg */ "./icons/folding-arrow-12.svg");
|
|
4521
|
-
var folding_arrow_18_svg_1 = __webpack_require__(/*! ./folding-arrow-18.svg */ "./icons/folding-arrow-18.svg");
|
|
4522
|
-
var folding_arrow_24_svg_1 = __webpack_require__(/*! ./folding-arrow-24.svg */ "./icons/folding-arrow-24.svg");
|
|
4523
|
-
var accept_12_svg_1 = __webpack_require__(/*! ./accept-12.svg */ "./icons/accept-12.svg");
|
|
4524
|
-
var accept_18_svg_1 = __webpack_require__(/*! ./accept-18.svg */ "./icons/accept-18.svg");
|
|
4525
|
-
var accept_24_svg_1 = __webpack_require__(/*! ./accept-24.svg */ "./icons/accept-24.svg");
|
|
4526
|
-
var search_12_svg_1 = __webpack_require__(/*! ./search-12.svg */ "./icons/search-12.svg");
|
|
4527
|
-
var search_18_svg_1 = __webpack_require__(/*! ./search-18.svg */ "./icons/search-18.svg");
|
|
4528
|
-
var search_24_svg_1 = __webpack_require__(/*! ./search-24.svg */ "./icons/search-24.svg");
|
|
4529
|
-
var calendar_12_svg_1 = __webpack_require__(/*! ./calendar-12.svg */ "./icons/calendar-12.svg");
|
|
4530
|
-
var calendar_18_svg_1 = __webpack_require__(/*! ./calendar-18.svg */ "./icons/calendar-18.svg");
|
|
4531
|
-
var calendar_24_svg_1 = __webpack_require__(/*! ./calendar-24.svg */ "./icons/calendar-24.svg");
|
|
4532
|
-
var info_12_svg_1 = __webpack_require__(/*! ./info-12.svg */ "./icons/info-12.svg");
|
|
4533
|
-
var info_18_svg_1 = __webpack_require__(/*! ./info-18.svg */ "./icons/info-18.svg");
|
|
4534
|
-
var info_24_svg_1 = __webpack_require__(/*! ./info-24.svg */ "./icons/info-24.svg");
|
|
4535
|
-
var help_fill_10_svg_1 = __webpack_require__(/*! ./help-fill-10.svg */ "./icons/help-fill-10.svg");
|
|
4536
|
-
var help_fill_16_svg_1 = __webpack_require__(/*! ./help-fill-16.svg */ "./icons/help-fill-16.svg");
|
|
4537
|
-
exports.systemIcons = {
|
|
4538
|
-
'18': {
|
|
4539
|
-
clear: btn_cross_12_svg_1.ReactComponent,
|
|
4540
|
-
foldingArrow: folding_arrow_12_svg_1.ReactComponent,
|
|
4541
|
-
accept: accept_12_svg_1.ReactComponent,
|
|
4542
|
-
search: search_12_svg_1.ReactComponent,
|
|
4543
|
-
calendar: calendar_12_svg_1.ReactComponent,
|
|
4544
|
-
info: info_12_svg_1.ReactComponent,
|
|
4545
|
-
help: help_fill_10_svg_1.ReactComponent,
|
|
4546
|
-
},
|
|
4547
|
-
'24': {
|
|
4548
|
-
clear: btn_cross_12_svg_1.ReactComponent,
|
|
4549
|
-
foldingArrow: folding_arrow_12_svg_1.ReactComponent,
|
|
4550
|
-
accept: accept_12_svg_1.ReactComponent,
|
|
4551
|
-
search: search_12_svg_1.ReactComponent,
|
|
4552
|
-
calendar: calendar_12_svg_1.ReactComponent,
|
|
4553
|
-
info: info_12_svg_1.ReactComponent,
|
|
4554
|
-
help: help_fill_10_svg_1.ReactComponent,
|
|
4555
|
-
},
|
|
4556
|
-
'30': {
|
|
4557
|
-
clear: btn_cross_18_svg_1.ReactComponent,
|
|
4558
|
-
foldingArrow: folding_arrow_18_svg_1.ReactComponent,
|
|
4559
|
-
accept: accept_18_svg_1.ReactComponent,
|
|
4560
|
-
search: search_18_svg_1.ReactComponent,
|
|
4561
|
-
calendar: calendar_18_svg_1.ReactComponent,
|
|
4562
|
-
info: info_18_svg_1.ReactComponent,
|
|
4563
|
-
help: help_fill_10_svg_1.ReactComponent,
|
|
4564
|
-
},
|
|
4565
|
-
'36': {
|
|
4566
|
-
clear: btn_cross_18_svg_1.ReactComponent,
|
|
4567
|
-
foldingArrow: folding_arrow_18_svg_1.ReactComponent,
|
|
4568
|
-
accept: accept_18_svg_1.ReactComponent,
|
|
4569
|
-
search: search_18_svg_1.ReactComponent,
|
|
4570
|
-
calendar: calendar_18_svg_1.ReactComponent,
|
|
4571
|
-
info: info_18_svg_1.ReactComponent,
|
|
4572
|
-
help: help_fill_16_svg_1.ReactComponent,
|
|
4573
|
-
},
|
|
4574
|
-
'42': {
|
|
4575
|
-
clear: btn_cross_18_svg_1.ReactComponent,
|
|
4576
|
-
foldingArrow: folding_arrow_18_svg_1.ReactComponent,
|
|
4577
|
-
accept: accept_18_svg_1.ReactComponent,
|
|
4578
|
-
search: search_18_svg_1.ReactComponent,
|
|
4579
|
-
calendar: calendar_18_svg_1.ReactComponent,
|
|
4580
|
-
info: info_18_svg_1.ReactComponent,
|
|
4581
|
-
help: help_fill_16_svg_1.ReactComponent,
|
|
4582
|
-
},
|
|
4583
|
-
'48': {
|
|
4584
|
-
clear: btn_cross_24_svg_1.ReactComponent,
|
|
4585
|
-
foldingArrow: folding_arrow_24_svg_1.ReactComponent,
|
|
4586
|
-
accept: accept_24_svg_1.ReactComponent,
|
|
4587
|
-
search: search_24_svg_1.ReactComponent,
|
|
4588
|
-
calendar: calendar_24_svg_1.ReactComponent,
|
|
4589
|
-
info: info_24_svg_1.ReactComponent,
|
|
4590
|
-
help: help_fill_16_svg_1.ReactComponent,
|
|
4591
|
-
},
|
|
4592
|
-
'60': {
|
|
4593
|
-
clear: btn_cross_24_svg_1.ReactComponent,
|
|
4594
|
-
foldingArrow: folding_arrow_24_svg_1.ReactComponent,
|
|
4595
|
-
accept: accept_24_svg_1.ReactComponent,
|
|
4596
|
-
search: search_24_svg_1.ReactComponent,
|
|
4597
|
-
calendar: calendar_24_svg_1.ReactComponent,
|
|
4598
|
-
info: info_24_svg_1.ReactComponent,
|
|
4599
|
-
help: help_fill_16_svg_1.ReactComponent,
|
|
4600
|
-
},
|
|
4601
|
-
'none': {
|
|
4602
|
-
clear: btn_cross_18_svg_1.ReactComponent,
|
|
4603
|
-
foldingArrow: folding_arrow_18_svg_1.ReactComponent,
|
|
4604
|
-
accept: accept_18_svg_1.ReactComponent,
|
|
4605
|
-
search: search_18_svg_1.ReactComponent,
|
|
4606
|
-
calendar: calendar_18_svg_1.ReactComponent,
|
|
4607
|
-
info: info_18_svg_1.ReactComponent,
|
|
4608
|
-
help: help_fill_16_svg_1.ReactComponent,
|
|
4609
|
-
},
|
|
4610
|
-
};
|
|
4515
|
+
|
|
4516
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4517
|
+
exports.systemIcons = void 0;
|
|
4518
|
+
var btn_cross_12_svg_1 = __webpack_require__(/*! ./btn-cross-12.svg */ "./icons/btn-cross-12.svg");
|
|
4519
|
+
var btn_cross_18_svg_1 = __webpack_require__(/*! ./btn-cross-18.svg */ "./icons/btn-cross-18.svg");
|
|
4520
|
+
var btn_cross_24_svg_1 = __webpack_require__(/*! ./btn-cross-24.svg */ "./icons/btn-cross-24.svg");
|
|
4521
|
+
var folding_arrow_12_svg_1 = __webpack_require__(/*! ./folding-arrow-12.svg */ "./icons/folding-arrow-12.svg");
|
|
4522
|
+
var folding_arrow_18_svg_1 = __webpack_require__(/*! ./folding-arrow-18.svg */ "./icons/folding-arrow-18.svg");
|
|
4523
|
+
var folding_arrow_24_svg_1 = __webpack_require__(/*! ./folding-arrow-24.svg */ "./icons/folding-arrow-24.svg");
|
|
4524
|
+
var accept_12_svg_1 = __webpack_require__(/*! ./accept-12.svg */ "./icons/accept-12.svg");
|
|
4525
|
+
var accept_18_svg_1 = __webpack_require__(/*! ./accept-18.svg */ "./icons/accept-18.svg");
|
|
4526
|
+
var accept_24_svg_1 = __webpack_require__(/*! ./accept-24.svg */ "./icons/accept-24.svg");
|
|
4527
|
+
var search_12_svg_1 = __webpack_require__(/*! ./search-12.svg */ "./icons/search-12.svg");
|
|
4528
|
+
var search_18_svg_1 = __webpack_require__(/*! ./search-18.svg */ "./icons/search-18.svg");
|
|
4529
|
+
var search_24_svg_1 = __webpack_require__(/*! ./search-24.svg */ "./icons/search-24.svg");
|
|
4530
|
+
var calendar_12_svg_1 = __webpack_require__(/*! ./calendar-12.svg */ "./icons/calendar-12.svg");
|
|
4531
|
+
var calendar_18_svg_1 = __webpack_require__(/*! ./calendar-18.svg */ "./icons/calendar-18.svg");
|
|
4532
|
+
var calendar_24_svg_1 = __webpack_require__(/*! ./calendar-24.svg */ "./icons/calendar-24.svg");
|
|
4533
|
+
var info_12_svg_1 = __webpack_require__(/*! ./info-12.svg */ "./icons/info-12.svg");
|
|
4534
|
+
var info_18_svg_1 = __webpack_require__(/*! ./info-18.svg */ "./icons/info-18.svg");
|
|
4535
|
+
var info_24_svg_1 = __webpack_require__(/*! ./info-24.svg */ "./icons/info-24.svg");
|
|
4536
|
+
var help_fill_10_svg_1 = __webpack_require__(/*! ./help-fill-10.svg */ "./icons/help-fill-10.svg");
|
|
4537
|
+
var help_fill_16_svg_1 = __webpack_require__(/*! ./help-fill-16.svg */ "./icons/help-fill-16.svg");
|
|
4538
|
+
exports.systemIcons = {
|
|
4539
|
+
'18': {
|
|
4540
|
+
clear: btn_cross_12_svg_1.ReactComponent,
|
|
4541
|
+
foldingArrow: folding_arrow_12_svg_1.ReactComponent,
|
|
4542
|
+
accept: accept_12_svg_1.ReactComponent,
|
|
4543
|
+
search: search_12_svg_1.ReactComponent,
|
|
4544
|
+
calendar: calendar_12_svg_1.ReactComponent,
|
|
4545
|
+
info: info_12_svg_1.ReactComponent,
|
|
4546
|
+
help: help_fill_10_svg_1.ReactComponent,
|
|
4547
|
+
},
|
|
4548
|
+
'24': {
|
|
4549
|
+
clear: btn_cross_12_svg_1.ReactComponent,
|
|
4550
|
+
foldingArrow: folding_arrow_12_svg_1.ReactComponent,
|
|
4551
|
+
accept: accept_12_svg_1.ReactComponent,
|
|
4552
|
+
search: search_12_svg_1.ReactComponent,
|
|
4553
|
+
calendar: calendar_12_svg_1.ReactComponent,
|
|
4554
|
+
info: info_12_svg_1.ReactComponent,
|
|
4555
|
+
help: help_fill_10_svg_1.ReactComponent,
|
|
4556
|
+
},
|
|
4557
|
+
'30': {
|
|
4558
|
+
clear: btn_cross_18_svg_1.ReactComponent,
|
|
4559
|
+
foldingArrow: folding_arrow_18_svg_1.ReactComponent,
|
|
4560
|
+
accept: accept_18_svg_1.ReactComponent,
|
|
4561
|
+
search: search_18_svg_1.ReactComponent,
|
|
4562
|
+
calendar: calendar_18_svg_1.ReactComponent,
|
|
4563
|
+
info: info_18_svg_1.ReactComponent,
|
|
4564
|
+
help: help_fill_10_svg_1.ReactComponent,
|
|
4565
|
+
},
|
|
4566
|
+
'36': {
|
|
4567
|
+
clear: btn_cross_18_svg_1.ReactComponent,
|
|
4568
|
+
foldingArrow: folding_arrow_18_svg_1.ReactComponent,
|
|
4569
|
+
accept: accept_18_svg_1.ReactComponent,
|
|
4570
|
+
search: search_18_svg_1.ReactComponent,
|
|
4571
|
+
calendar: calendar_18_svg_1.ReactComponent,
|
|
4572
|
+
info: info_18_svg_1.ReactComponent,
|
|
4573
|
+
help: help_fill_16_svg_1.ReactComponent,
|
|
4574
|
+
},
|
|
4575
|
+
'42': {
|
|
4576
|
+
clear: btn_cross_18_svg_1.ReactComponent,
|
|
4577
|
+
foldingArrow: folding_arrow_18_svg_1.ReactComponent,
|
|
4578
|
+
accept: accept_18_svg_1.ReactComponent,
|
|
4579
|
+
search: search_18_svg_1.ReactComponent,
|
|
4580
|
+
calendar: calendar_18_svg_1.ReactComponent,
|
|
4581
|
+
info: info_18_svg_1.ReactComponent,
|
|
4582
|
+
help: help_fill_16_svg_1.ReactComponent,
|
|
4583
|
+
},
|
|
4584
|
+
'48': {
|
|
4585
|
+
clear: btn_cross_24_svg_1.ReactComponent,
|
|
4586
|
+
foldingArrow: folding_arrow_24_svg_1.ReactComponent,
|
|
4587
|
+
accept: accept_24_svg_1.ReactComponent,
|
|
4588
|
+
search: search_24_svg_1.ReactComponent,
|
|
4589
|
+
calendar: calendar_24_svg_1.ReactComponent,
|
|
4590
|
+
info: info_24_svg_1.ReactComponent,
|
|
4591
|
+
help: help_fill_16_svg_1.ReactComponent,
|
|
4592
|
+
},
|
|
4593
|
+
'60': {
|
|
4594
|
+
clear: btn_cross_24_svg_1.ReactComponent,
|
|
4595
|
+
foldingArrow: folding_arrow_24_svg_1.ReactComponent,
|
|
4596
|
+
accept: accept_24_svg_1.ReactComponent,
|
|
4597
|
+
search: search_24_svg_1.ReactComponent,
|
|
4598
|
+
calendar: calendar_24_svg_1.ReactComponent,
|
|
4599
|
+
info: info_24_svg_1.ReactComponent,
|
|
4600
|
+
help: help_fill_16_svg_1.ReactComponent,
|
|
4601
|
+
},
|
|
4602
|
+
'none': {
|
|
4603
|
+
clear: btn_cross_18_svg_1.ReactComponent,
|
|
4604
|
+
foldingArrow: folding_arrow_18_svg_1.ReactComponent,
|
|
4605
|
+
accept: accept_18_svg_1.ReactComponent,
|
|
4606
|
+
search: search_18_svg_1.ReactComponent,
|
|
4607
|
+
calendar: calendar_18_svg_1.ReactComponent,
|
|
4608
|
+
info: info_18_svg_1.ReactComponent,
|
|
4609
|
+
help: help_fill_16_svg_1.ReactComponent,
|
|
4610
|
+
},
|
|
4611
|
+
};
|
|
4611
4612
|
|
|
4612
4613
|
|
|
4613
4614
|
/***/ }),
|
|
@@ -4656,7 +4657,7 @@ var ForwardRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.forwa
|
|
|
4656
4657
|
svgRef: ref
|
|
4657
4658
|
}, props));
|
|
4658
4659
|
});
|
|
4659
|
-
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "
|
|
4660
|
+
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "10d963a41893dff812561ad9c06e8c8e.svg");
|
|
4660
4661
|
|
|
4661
4662
|
|
|
4662
4663
|
/***/ }),
|
|
@@ -5048,7 +5049,7 @@ var ForwardRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.forwa
|
|
|
5048
5049
|
svgRef: ref
|
|
5049
5050
|
}, props));
|
|
5050
5051
|
});
|
|
5051
|
-
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "
|
|
5052
|
+
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "186bde10a8ddfabd7f88203aa781fd01.svg");
|
|
5052
5053
|
|
|
5053
5054
|
|
|
5054
5055
|
/***/ }),
|
|
@@ -5097,7 +5098,7 @@ var ForwardRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.forwa
|
|
|
5097
5098
|
svgRef: ref
|
|
5098
5099
|
}, props));
|
|
5099
5100
|
});
|
|
5100
|
-
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "
|
|
5101
|
+
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "e36f18168e01c9d3ec6bcfea2c198694.svg");
|
|
5101
5102
|
|
|
5102
5103
|
|
|
5103
5104
|
/***/ }),
|
|
@@ -5147,7 +5148,7 @@ var ForwardRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.forwa
|
|
|
5147
5148
|
svgRef: ref
|
|
5148
5149
|
}, props));
|
|
5149
5150
|
});
|
|
5150
|
-
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "
|
|
5151
|
+
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "fdb597ac9240648084098a063c313975.svg");
|
|
5151
5152
|
|
|
5152
5153
|
|
|
5153
5154
|
/***/ }),
|
|
@@ -5398,7 +5399,7 @@ var ForwardRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.forwa
|
|
|
5398
5399
|
svgRef: ref
|
|
5399
5400
|
}, props));
|
|
5400
5401
|
});
|
|
5401
|
-
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "
|
|
5402
|
+
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "eb8234f2be3ac730458ef8c9334067db.svg");
|
|
5402
5403
|
|
|
5403
5404
|
|
|
5404
5405
|
/***/ }),
|
|
@@ -5411,13 +5412,13 @@ var ForwardRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.forwa
|
|
|
5411
5412
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5412
5413
|
|
|
5413
5414
|
"use strict";
|
|
5414
|
-
|
|
5415
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5416
|
-
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
5417
|
-
__webpack_require__(/*! ./assets/styles/font-faces.scss */ "./assets/styles/font-faces.scss");
|
|
5418
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./components */ "./components/index.ts"), exports);
|
|
5419
|
-
// export * from './i18n';
|
|
5420
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! @epam/uui-core */ "@epam/uui-core"), exports);
|
|
5415
|
+
|
|
5416
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5417
|
+
var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
5418
|
+
__webpack_require__(/*! ./assets/styles/font-faces.scss */ "./assets/styles/font-faces.scss");
|
|
5419
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./components */ "./components/index.ts"), exports);
|
|
5420
|
+
// export * from './i18n';
|
|
5421
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! @epam/uui-core */ "@epam/uui-core"), exports);
|
|
5421
5422
|
|
|
5422
5423
|
|
|
5423
5424
|
/***/ }),
|
|
@@ -5429,7 +5430,7 @@ __webpack_require__(/*! ./assets/styles/font-faces.scss */ "./assets/styles/font
|
|
|
5429
5430
|
/*! no static exports found */
|
|
5430
5431
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5431
5432
|
|
|
5432
|
-
module.exports = __webpack_require__(/*!
|
|
5433
|
+
module.exports = __webpack_require__(/*! /Users/Aliaksei_Manetau/WebstormProjects/uui/uui/index.tsx */"./index.tsx");
|
|
5433
5434
|
|
|
5434
5435
|
|
|
5435
5436
|
/***/ }),
|