@epam/uui 4.9.0-alpha.0 → 4.9.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle-stats.json +1 -1
- package/components/buttons/Button.d.ts +1 -1
- package/components/buttons/LinkButton.d.ts +1 -1
- package/components/buttons/TabButton.d.ts +1 -1
- package/components/buttons/VerticalTabButton.d.ts +1 -1
- package/components/inputs/TextInput.d.ts +1 -1
- package/components/layout/FlexItems/FlexCell.d.ts +2 -2
- package/components/layout/FlexItems/FlexRow.d.ts +1 -2
- package/components/layout/FlexItems/FlexRow.d.ts.map +1 -1
- package/components/layout/FlexItems/Panel.d.ts +1 -1
- package/components/pickers/DataPickerFooter.d.ts +3 -3
- package/components/pickers/DataPickerFooter.d.ts.map +1 -1
- package/components/pickers/PickerInput.d.ts +2 -2
- package/components/pickers/PickerInput.d.ts.map +1 -1
- package/components/pickers/PickerList.d.ts +3 -3
- package/components/pickers/PickerList.d.ts.map +1 -1
- package/components/pickers/PickerModal.d.ts +3 -3
- package/components/pickers/PickerModal.d.ts.map +1 -1
- package/components/pickers/PickerToggler.d.ts.map +1 -1
- package/components/tables/Presets/Preset.d.ts +0 -1
- package/components/tables/Presets/Preset.d.ts.map +1 -1
- package/components/tables/Presets/Presets.d.ts.map +1 -1
- package/components/types.d.ts +1 -0
- package/components/types.d.ts.map +1 -1
- package/components/typography/Text.d.ts +1 -1
- package/components/typography/Text.d.ts.map +1 -1
- package/components/widgets/Badge.d.ts +1 -1
- package/components/widgets/Tag.d.ts +1 -1
- package/index.js +727 -811
- package/index.js.map +1 -1
- package/package.json +6 -6
- package/styles.css +620 -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":"_3-e5A","lineHeight12":"_3-e5A","line-height-18":"_3lj_p","lineHeight18":"_3lj_p","line-height-24":"_2_LYd","lineHeight24":"_2_LYd","line-height-30":"_3H0Ri","lineHeight30":"_3H0Ri","font-size-10":"GeUqX","fontSize10":"GeUqX","font-size-12":"v_qh1","fontSize12":"v_qh1","font-size-14":"_1T4ZM","fontSize14":"_1T4ZM","font-size-16":"_3ghNL","fontSize16":"_3ghNL","font-size-18":"_2CaRF","fontSize18":"_2CaRF","font-size-24":"_1rEJV","fontSize24":"_1rEJV","v-padding-2":"_3FUhH","vPadding2":"_3FUhH","v-padding-3":"_3Sv6C","vPadding3":"_3Sv6C","v-padding-5":"_3yHDc","vPadding5":"_3yHDc","v-padding-6":"_2jvYp","vPadding6":"_2jvYp","v-padding-8":"_3UiPe","vPadding8":"_3UiPe","v-padding-9":"_3RYuH","vPadding9":"_3RYuH","v-padding-11":"_1zt0r","vPadding11":"_1zt0r","v-padding-12":"_343mc","vPadding12":"_343mc","v-padding-14":"vIGem","vPadding14":"vIGem","v-padding-15":"_3pqqp","vPadding15":"_3pqqp","v-padding-17":"K8L7w","vPadding17":"K8L7w","v-padding-18":"_12XE5","vPadding18":"_12XE5","v-padding-23":"_34nm3","vPadding23":"_34nm3","v-padding-24":"_2CsFl","vPadding24":"_2CsFl"};
|
|
652
655
|
|
|
653
656
|
/***/ }),
|
|
654
657
|
|
|
@@ -902,7 +905,7 @@ module.exports = {"line-height-12":"_2oco0","lineHeight12":"_2oco0","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":"_2MpJQ","mode-solid":"SJ6OM","modeSolid":"SJ6OM","mode-outline":"_2LQD2","modeOutline":"_2LQD2","mode-none":"_2Un2Y","modeNone":"_2Un2Y","mode-ghost":"_1V5jf","modeGhost":"_1V5jf","size-24":"GEavZ","size24":"GEavZ","size-30":"_2HM8g","size30":"_2HM8g","size-36":"_3GOqz","size36":"_3GOqz","size-42":"_5CpdW","size42":"_5CpdW","size-48":"_2Tz07","size48":"_2Tz07"};
|
|
906
909
|
|
|
907
910
|
/***/ }),
|
|
908
911
|
|
|
@@ -917,28 +920,28 @@ module.exports = {"root":"_3eLGU","mode-solid":"_2B8z0","modeSolid":"_2B8z0","mo
|
|
|
917
920
|
|
|
918
921
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
919
922
|
exports.Button = exports.applyButtonMods = exports.allButtonColors = void 0;
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
923
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
924
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
925
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
926
|
+
const icons_1 = __webpack_require__(/*! ../../icons/icons */ "./icons/icons.tsx");
|
|
927
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Button.scss */ "./components/buttons/Button.scss"));
|
|
925
928
|
__webpack_require__(/*! ../../assets/styles/variables/buttons/button.scss */ "./assets/styles/variables/buttons/button.scss");
|
|
926
929
|
exports.allButtonColors = ['accent', 'primary', 'secondary', 'negative'];
|
|
927
|
-
|
|
930
|
+
const defaultSize = '36';
|
|
928
931
|
function applyButtonMods(mods) {
|
|
929
932
|
return [
|
|
930
933
|
'button-vars',
|
|
931
|
-
|
|
934
|
+
`button-color-${mods.color || 'primary'}`,
|
|
932
935
|
css.root,
|
|
933
|
-
css[
|
|
934
|
-
css[
|
|
936
|
+
css[`size-${mods.size || defaultSize}`],
|
|
937
|
+
css[`mode-${mods.mode || 'solid'}`],
|
|
935
938
|
];
|
|
936
939
|
}
|
|
937
940
|
exports.applyButtonMods = applyButtonMods;
|
|
938
|
-
exports.Button = (0, uui_core_1.withMods)(uui_components_1.Button, applyButtonMods,
|
|
941
|
+
exports.Button = (0, uui_core_1.withMods)(uui_components_1.Button, applyButtonMods, (props) => ({
|
|
939
942
|
dropdownIcon: icons_1.systemIcons[props.size || defaultSize].foldingArrow,
|
|
940
943
|
clearIcon: icons_1.systemIcons[props.size || defaultSize].clear,
|
|
941
|
-
})
|
|
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":"_3z9uB"};
|
|
955
958
|
|
|
956
959
|
/***/ }),
|
|
957
960
|
|
|
@@ -966,15 +969,15 @@ module.exports = {"root":"_2rVkH"};
|
|
|
966
969
|
|
|
967
970
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
968
971
|
exports.IconButton = exports.allIconColors = void 0;
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
973
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
974
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
972
975
|
__webpack_require__(/*! ../../assets/styles/variables/buttons/iconButton.scss */ "./assets/styles/variables/buttons/iconButton.scss");
|
|
973
|
-
|
|
976
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./IconButton.scss */ "./components/buttons/IconButton.scss"));
|
|
974
977
|
exports.allIconColors = ['info', 'success', 'warning', 'error', 'secondary', 'default'];
|
|
975
978
|
function applyIconButtonMods(mods) {
|
|
976
979
|
return [
|
|
977
|
-
|
|
980
|
+
`icon-button-color-${mods.color || 'default'}`,
|
|
978
981
|
css.root,
|
|
979
982
|
];
|
|
980
983
|
}
|
|
@@ -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":"_3pgx_","size-18":"_2y_FV","size18":"_2y_FV","size-24":"_3_O5Y","size24":"_3_O5Y","size-30":"_14cwo","size30":"_14cwo","size-36":"_3Wiol","size36":"_3Wiol","size-42":"_3juMh","size42":"_3juMh","size-48":"BhLr8","size48":"BhLr8"};
|
|
995
998
|
|
|
996
999
|
/***/ }),
|
|
997
1000
|
|
|
@@ -1006,25 +1009,26 @@ module.exports = {"root":"_8laxH","size-18":"_2S5IX","size18":"_2S5IX","size-24"
|
|
|
1006
1009
|
|
|
1007
1010
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1008
1011
|
exports.LinkButton = void 0;
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1012
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1013
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1014
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1015
|
+
const icons_1 = __webpack_require__(/*! ../../icons/icons */ "./icons/icons.tsx");
|
|
1016
|
+
const helper_1 = __webpack_require__(/*! ./helper */ "./components/buttons/helper.ts");
|
|
1017
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./LinkButton.scss */ "./components/buttons/LinkButton.scss"));
|
|
1015
1018
|
__webpack_require__(/*! ../../assets/styles/variables/buttons/linkButton.scss */ "./assets/styles/variables/buttons/linkButton.scss");
|
|
1016
|
-
|
|
1019
|
+
const defaultSize = '36';
|
|
1017
1020
|
function applyLinkButtonMods(mods) {
|
|
1018
|
-
return
|
|
1021
|
+
return [
|
|
1019
1022
|
'link-button-vars',
|
|
1020
1023
|
css.root,
|
|
1021
|
-
css['size-' + (mods.size || defaultSize)]
|
|
1022
|
-
|
|
1024
|
+
css['size-' + (mods.size || defaultSize)],
|
|
1025
|
+
...(0, helper_1.getIconClass)(mods),
|
|
1026
|
+
];
|
|
1023
1027
|
}
|
|
1024
|
-
exports.LinkButton = (0, uui_core_1.withMods)(uui_components_1.Button, applyLinkButtonMods,
|
|
1028
|
+
exports.LinkButton = (0, uui_core_1.withMods)(uui_components_1.Button, applyLinkButtonMods, (props) => ({
|
|
1025
1029
|
dropdownIcon: icons_1.systemIcons[props.size || defaultSize].foldingArrow,
|
|
1026
1030
|
clearIcon: icons_1.systemIcons[props.size || defaultSize].clear,
|
|
1027
|
-
})
|
|
1031
|
+
}));
|
|
1028
1032
|
|
|
1029
1033
|
|
|
1030
1034
|
/***/ }),
|
|
@@ -1037,7 +1041,7 @@ exports.LinkButton = (0, uui_core_1.withMods)(uui_components_1.Button, applyLink
|
|
|
1037
1041
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1038
1042
|
|
|
1039
1043
|
// extracted by mini-css-extract-plugin
|
|
1040
|
-
module.exports = {"root":"
|
|
1044
|
+
module.exports = {"root":"_3YM91","uui-notification":"_1leQ_","uuiNotification":"_1leQ_","size-36":"_16tIO","size36":"_16tIO","size-48":"dlVV2","size48":"dlVV2","size-60":"_1EmoE","size60":"_1EmoE"};
|
|
1041
1045
|
|
|
1042
1046
|
/***/ }),
|
|
1043
1047
|
|
|
@@ -1052,22 +1056,23 @@ module.exports = {"root":"_3CC4D","uui-notification":"_1W1ef","uuiNotification":
|
|
|
1052
1056
|
|
|
1053
1057
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1054
1058
|
exports.TabButton = void 0;
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1059
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1060
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1061
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1062
|
+
const icons_1 = __webpack_require__(/*! ../../icons/icons */ "./icons/icons.tsx");
|
|
1063
|
+
const helper_1 = __webpack_require__(/*! ./helper */ "./components/buttons/helper.ts");
|
|
1060
1064
|
__webpack_require__(/*! ../../assets/styles/variables/buttons/tabButton.scss */ "./assets/styles/variables/buttons/tabButton.scss");
|
|
1061
|
-
|
|
1065
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./TabButton.scss */ "./components/buttons/TabButton.scss"));
|
|
1062
1066
|
function applyTabButtonMods(mods) {
|
|
1063
|
-
return
|
|
1067
|
+
return [
|
|
1064
1068
|
'tab-button-vars',
|
|
1065
1069
|
css.root,
|
|
1066
1070
|
css['size-' + (mods.size || '48')],
|
|
1067
|
-
mods.withNotify && css.uuiNotification
|
|
1068
|
-
|
|
1071
|
+
mods.withNotify && css.uuiNotification,
|
|
1072
|
+
...(0, helper_1.getIconClass)(mods),
|
|
1073
|
+
];
|
|
1069
1074
|
}
|
|
1070
|
-
exports.TabButton = (0, uui_core_1.withMods)(uui_components_1.Button, applyTabButtonMods,
|
|
1075
|
+
exports.TabButton = (0, uui_core_1.withMods)(uui_components_1.Button, applyTabButtonMods, props => (Object.assign(Object.assign({ dropdownIcon: icons_1.systemIcons['36'].foldingArrow, clearIcon: icons_1.systemIcons['36'].clear, countPosition: 'right' }, props), { rawProps: Object.assign({ role: 'tab' }, props.rawProps) })));
|
|
1071
1076
|
|
|
1072
1077
|
|
|
1073
1078
|
/***/ }),
|
|
@@ -1080,7 +1085,7 @@ exports.TabButton = (0, uui_core_1.withMods)(uui_components_1.Button, applyTabBu
|
|
|
1080
1085
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1081
1086
|
|
|
1082
1087
|
// extracted by mini-css-extract-plugin
|
|
1083
|
-
module.exports = {"root":"
|
|
1088
|
+
module.exports = {"root":"_3xu2j"};
|
|
1084
1089
|
|
|
1085
1090
|
/***/ }),
|
|
1086
1091
|
|
|
@@ -1095,10 +1100,10 @@ module.exports = {"root":"_2mmVJ"};
|
|
|
1095
1100
|
|
|
1096
1101
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1097
1102
|
exports.VerticalTabButton = void 0;
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1103
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1104
|
+
const VerticalTabButton_scss_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! ./VerticalTabButton.scss */ "./components/buttons/VerticalTabButton.scss"));
|
|
1105
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1106
|
+
const TabButton_1 = __webpack_require__(/*! ./TabButton */ "./components/buttons/TabButton.tsx");
|
|
1102
1107
|
function applyVerticalTabButtonMods() {
|
|
1103
1108
|
return [
|
|
1104
1109
|
VerticalTabButton_scss_1.default.root,
|
|
@@ -1121,7 +1126,7 @@ exports.VerticalTabButton = (0, uui_core_1.withMods)(TabButton_1.TabButton, appl
|
|
|
1121
1126
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1122
1127
|
exports.getIconClass = void 0;
|
|
1123
1128
|
function getIconClass(props) {
|
|
1124
|
-
|
|
1129
|
+
let classList = {
|
|
1125
1130
|
'has-left-icon': false,
|
|
1126
1131
|
'has-right-icon': false,
|
|
1127
1132
|
};
|
|
@@ -1154,7 +1159,7 @@ exports.getIconClass = getIconClass;
|
|
|
1154
1159
|
"use strict";
|
|
1155
1160
|
|
|
1156
1161
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1157
|
-
|
|
1162
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1158
1163
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Button */ "./components/buttons/Button.tsx"), exports);
|
|
1159
1164
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./IconButton */ "./components/buttons/IconButton.tsx"), exports);
|
|
1160
1165
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./LinkButton */ "./components/buttons/LinkButton.tsx"), exports);
|
|
@@ -1174,7 +1179,7 @@ var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.
|
|
|
1174
1179
|
"use strict";
|
|
1175
1180
|
|
|
1176
1181
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1177
|
-
|
|
1182
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1178
1183
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./buttons */ "./components/buttons/index.ts"), exports);
|
|
1179
1184
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./inputs */ "./components/inputs/index.ts"), exports);
|
|
1180
1185
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./layout */ "./components/layout/index.ts"), exports);
|
|
@@ -1196,7 +1201,7 @@ var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.
|
|
|
1196
1201
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1197
1202
|
|
|
1198
1203
|
// extracted by mini-css-extract-plugin
|
|
1199
|
-
module.exports = {"root":"
|
|
1204
|
+
module.exports = {"root":"_2VGyj","size-18":"_2FjPh","size18":"_2FjPh","size-12":"_18zVX","size12":"_18zVX"};
|
|
1200
1205
|
|
|
1201
1206
|
/***/ }),
|
|
1202
1207
|
|
|
@@ -1211,14 +1216,14 @@ module.exports = {"root":"MOhTB","size-18":"_3qdrH","size18":"_3qdrH","size-12":
|
|
|
1211
1216
|
|
|
1212
1217
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1213
1218
|
exports.Checkbox = exports.applyCheckboxMods = void 0;
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1219
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1220
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1221
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1222
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Checkbox.scss */ "./components/inputs/Checkbox.scss"));
|
|
1223
|
+
const check_12_svg_1 = __webpack_require__(/*! ../../icons/check-12.svg */ "./icons/check-12.svg");
|
|
1224
|
+
const check_18_svg_1 = __webpack_require__(/*! ../../icons/check-18.svg */ "./icons/check-18.svg");
|
|
1225
|
+
const partly_select_12_svg_1 = __webpack_require__(/*! ../../icons/partly-select-12.svg */ "./icons/partly-select-12.svg");
|
|
1226
|
+
const partly_select_18_svg_1 = __webpack_require__(/*! ../../icons/partly-select-18.svg */ "./icons/partly-select-18.svg");
|
|
1222
1227
|
__webpack_require__(/*! ../../assets/styles/variables/inputs/checkbox.scss */ "./assets/styles/variables/inputs/checkbox.scss");
|
|
1223
1228
|
function applyCheckboxMods(mods) {
|
|
1224
1229
|
return [
|
|
@@ -1228,10 +1233,10 @@ function applyCheckboxMods(mods) {
|
|
|
1228
1233
|
];
|
|
1229
1234
|
}
|
|
1230
1235
|
exports.applyCheckboxMods = applyCheckboxMods;
|
|
1231
|
-
exports.Checkbox = (0, uui_core_1.withMods)(uui_components_1.Checkbox, applyCheckboxMods,
|
|
1236
|
+
exports.Checkbox = (0, uui_core_1.withMods)(uui_components_1.Checkbox, applyCheckboxMods, (props) => ({
|
|
1232
1237
|
icon: (props.size === '12') ? check_12_svg_1.ReactComponent : check_18_svg_1.ReactComponent,
|
|
1233
1238
|
indeterminateIcon: (props.size === '12') ? partly_select_12_svg_1.ReactComponent : partly_select_18_svg_1.ReactComponent,
|
|
1234
|
-
})
|
|
1239
|
+
}));
|
|
1235
1240
|
|
|
1236
1241
|
|
|
1237
1242
|
/***/ }),
|
|
@@ -1244,7 +1249,7 @@ exports.Checkbox = (0, uui_core_1.withMods)(uui_components_1.Checkbox, applyChec
|
|
|
1244
1249
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1245
1250
|
|
|
1246
1251
|
// extracted by mini-css-extract-plugin
|
|
1247
|
-
module.exports = {"root":"
|
|
1252
|
+
module.exports = {"root":"_1zMIh","size-18":"_1kfgj","size18":"_1kfgj","size-12":"_1girw","size12":"_1girw"};
|
|
1248
1253
|
|
|
1249
1254
|
/***/ }),
|
|
1250
1255
|
|
|
@@ -1259,12 +1264,12 @@ module.exports = {"root":"_2bGHP","size-18":"_1nIWG","size18":"_1nIWG","size-12"
|
|
|
1259
1264
|
|
|
1260
1265
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1261
1266
|
exports.RadioInput = void 0;
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1267
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1268
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1269
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1265
1270
|
__webpack_require__(/*! ../../assets/styles/variables/inputs/radioInput.scss */ "./assets/styles/variables/inputs/radioInput.scss");
|
|
1266
|
-
|
|
1267
|
-
|
|
1271
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./RadioInput.scss */ "./components/inputs/RadioInput.scss"));
|
|
1272
|
+
const radio_point_svg_1 = __webpack_require__(/*! ../../icons/radio-point.svg */ "./icons/radio-point.svg");
|
|
1268
1273
|
function applyRadioInputMods(mods) {
|
|
1269
1274
|
return [
|
|
1270
1275
|
'radio-input-vars',
|
|
@@ -1272,7 +1277,7 @@ function applyRadioInputMods(mods) {
|
|
|
1272
1277
|
css['size-' + (mods.size || '18')],
|
|
1273
1278
|
];
|
|
1274
1279
|
}
|
|
1275
|
-
exports.RadioInput = (0, uui_core_1.withMods)(uui_components_1.RadioInput, applyRadioInputMods,
|
|
1280
|
+
exports.RadioInput = (0, uui_core_1.withMods)(uui_components_1.RadioInput, applyRadioInputMods, () => ({ icon: radio_point_svg_1.ReactComponent }));
|
|
1276
1281
|
|
|
1277
1282
|
|
|
1278
1283
|
/***/ }),
|
|
@@ -1285,7 +1290,7 @@ exports.RadioInput = (0, uui_core_1.withMods)(uui_components_1.RadioInput, apply
|
|
|
1285
1290
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1286
1291
|
|
|
1287
1292
|
// extracted by mini-css-extract-plugin
|
|
1288
|
-
module.exports = {"root":"
|
|
1293
|
+
module.exports = {"root":"_2WZXk","size-12":"_1CHhD","size12":"_1CHhD","size-18":"_2fE4M","size18":"_2fE4M","size-24":"_1ETlc","size24":"_1ETlc"};
|
|
1289
1294
|
|
|
1290
1295
|
/***/ }),
|
|
1291
1296
|
|
|
@@ -1300,10 +1305,10 @@ module.exports = {"root":"UDMR2","size-12":"_2kOyr","size12":"_2kOyr","size-18":
|
|
|
1300
1305
|
|
|
1301
1306
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1302
1307
|
exports.Switch = exports.applySwitchMods = void 0;
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1308
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1309
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1310
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1311
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Switch.scss */ "./components/inputs/Switch.scss"));
|
|
1307
1312
|
__webpack_require__(/*! ../../assets/styles/variables/inputs/switch.scss */ "./assets/styles/variables/inputs/switch.scss");
|
|
1308
1313
|
function applySwitchMods(mods) {
|
|
1309
1314
|
return [
|
|
@@ -1326,7 +1331,7 @@ exports.Switch = (0, uui_core_1.withMods)(uui_components_1.Switch, applySwitchMo
|
|
|
1326
1331
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1327
1332
|
|
|
1328
1333
|
// extracted by mini-css-extract-plugin
|
|
1329
|
-
module.exports = {"root":"
|
|
1334
|
+
module.exports = {"root":"_27nvG","mode-form":"_3ny50","modeForm":"_3ny50","mode-cell":"_3VRdA","modeCell":"_3VRdA","size-24":"_35K9n","size24":"_35K9n","size-30":"_2kAjg","size30":"_2kAjg","size-36":"_12E1T","size36":"_12E1T","size-42":"_1aUEj","size42":"_1aUEj","size-48":"_37O6y","size48":"_37O6y"};
|
|
1330
1335
|
|
|
1331
1336
|
/***/ }),
|
|
1332
1337
|
|
|
@@ -1341,16 +1346,16 @@ module.exports = {"root":"_2aPWK","mode-form":"_2O-C_","modeForm":"_2O-C_","mode
|
|
|
1341
1346
|
|
|
1342
1347
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1343
1348
|
exports.SearchInput = exports.TextInput = exports.applyTextInputMods = void 0;
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1349
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1350
|
+
const react_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! react */ "react"));
|
|
1351
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1352
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1353
|
+
const types_1 = __webpack_require__(/*! ../types */ "./components/types.ts");
|
|
1354
|
+
const icons_1 = __webpack_require__(/*! ../../icons/icons */ "./icons/icons.tsx");
|
|
1355
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./TextInput.scss */ "./components/inputs/TextInput.scss"));
|
|
1351
1356
|
__webpack_require__(/*! ../../assets/styles/variables/inputs/textInput.scss */ "./assets/styles/variables/inputs/textInput.scss");
|
|
1352
|
-
|
|
1353
|
-
|
|
1357
|
+
const defaultSize = '36';
|
|
1358
|
+
const defaultMode = types_1.EditMode.FORM;
|
|
1354
1359
|
function applyTextInputMods(mods) {
|
|
1355
1360
|
return [
|
|
1356
1361
|
'text-input-vars',
|
|
@@ -1360,27 +1365,19 @@ function applyTextInputMods(mods) {
|
|
|
1360
1365
|
];
|
|
1361
1366
|
}
|
|
1362
1367
|
exports.applyTextInputMods = applyTextInputMods;
|
|
1363
|
-
exports.TextInput = (0, uui_core_1.withMods)(uui_components_1.TextInput, applyTextInputMods,
|
|
1368
|
+
exports.TextInput = (0, uui_core_1.withMods)(uui_components_1.TextInput, applyTextInputMods, (props) => ({
|
|
1364
1369
|
acceptIcon: icons_1.systemIcons[props.size || defaultSize].accept,
|
|
1365
1370
|
cancelIcon: icons_1.systemIcons[props.size || defaultSize].clear,
|
|
1366
1371
|
dropdownIcon: icons_1.systemIcons[props.size || defaultSize].foldingArrow,
|
|
1367
|
-
})
|
|
1368
|
-
|
|
1369
|
-
(
|
|
1370
|
-
function SearchInput() {
|
|
1371
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
1372
|
-
}
|
|
1373
|
-
SearchInput.prototype.render = function () {
|
|
1374
|
-
var _this = this;
|
|
1372
|
+
}));
|
|
1373
|
+
class SearchInput extends react_1.default.Component {
|
|
1374
|
+
render() {
|
|
1375
1375
|
// analytics events are sending in IEditableDebouncer, so we need to avoid sending events in TextInput
|
|
1376
|
-
|
|
1376
|
+
const textInputProps = Object.assign({}, this.props);
|
|
1377
1377
|
delete textInputProps.getValueChangeAnalyticsEvent;
|
|
1378
|
-
return react_1.default.createElement(uui_core_1.IEditableDebouncer,
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
};
|
|
1382
|
-
return SearchInput;
|
|
1383
|
-
}(react_1.default.Component));
|
|
1378
|
+
return react_1.default.createElement(uui_core_1.IEditableDebouncer, Object.assign({}, this.props, { render: (iEditable => react_1.default.createElement(exports.TextInput, Object.assign({ icon: icons_1.systemIcons[this.props.size || defaultSize].search, onCancel: !!this.props.value ? (() => iEditable.onValueChange('')) : undefined, type: "search", inputMode: "search" }, textInputProps, iEditable))) }));
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1384
1381
|
exports.SearchInput = SearchInput;
|
|
1385
1382
|
|
|
1386
1383
|
|
|
@@ -1396,7 +1393,7 @@ exports.SearchInput = SearchInput;
|
|
|
1396
1393
|
"use strict";
|
|
1397
1394
|
|
|
1398
1395
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1399
|
-
|
|
1396
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1400
1397
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Checkbox */ "./components/inputs/Checkbox.tsx"), exports);
|
|
1401
1398
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./RadioInput */ "./components/inputs/RadioInput.tsx"), exports);
|
|
1402
1399
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Switch */ "./components/inputs/Switch.tsx"), exports);
|
|
@@ -1413,7 +1410,7 @@ var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.
|
|
|
1413
1410
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1414
1411
|
|
|
1415
1412
|
// extracted by mini-css-extract-plugin
|
|
1416
|
-
module.exports = {"root":"
|
|
1413
|
+
module.exports = {"root":"_1sRAF","mode-block":"_2MkrE","modeBlock":"_2MkrE","mode-inline":"_2ZSQ6","modeInline":"_2ZSQ6","padding-0":"_36Uao","padding0":"_36Uao","padding-6":"_1of8Y","padding6":"_1of8Y","padding-12":"_1AOWw","padding12":"_1AOWw","padding-18":"_3iGiZ","padding18":"_3iGiZ"};
|
|
1417
1414
|
|
|
1418
1415
|
/***/ }),
|
|
1419
1416
|
|
|
@@ -1428,12 +1425,12 @@ module.exports = {"root":"_3IR_Q","mode-block":"_3JgF-","modeBlock":"_3JgF-","mo
|
|
|
1428
1425
|
|
|
1429
1426
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1430
1427
|
exports.Accordion = void 0;
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1428
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1429
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1430
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1431
|
+
const icons_1 = __webpack_require__(/*! ../../icons/icons */ "./icons/icons.tsx");
|
|
1435
1432
|
__webpack_require__(/*! ../../assets/styles/variables/layout/accordion.scss */ "./assets/styles/variables/layout/accordion.scss");
|
|
1436
|
-
|
|
1433
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Accordion.scss */ "./components/layout/Accordion.scss"));
|
|
1437
1434
|
function applyAccordionMods(mods) {
|
|
1438
1435
|
return [
|
|
1439
1436
|
'accordion-vars',
|
|
@@ -1442,9 +1439,9 @@ function applyAccordionMods(mods) {
|
|
|
1442
1439
|
mods.padding && css['padding-' + mods.padding],
|
|
1443
1440
|
];
|
|
1444
1441
|
}
|
|
1445
|
-
exports.Accordion = (0, uui_core_1.withMods)(uui_components_1.Accordion, applyAccordionMods,
|
|
1446
|
-
dropdownIcon: icons_1.systemIcons[mods.mode === 'block' ? '60' : '30'].foldingArrow,
|
|
1447
|
-
})
|
|
1442
|
+
exports.Accordion = (0, uui_core_1.withMods)(uui_components_1.Accordion, applyAccordionMods, (mods) => ({
|
|
1443
|
+
dropdownIcon: mods.dropdownIcon !== null && icons_1.systemIcons[mods.mode === 'block' ? '60' : '30'].foldingArrow,
|
|
1444
|
+
}));
|
|
1448
1445
|
|
|
1449
1446
|
|
|
1450
1447
|
/***/ }),
|
|
@@ -1457,7 +1454,7 @@ exports.Accordion = (0, uui_core_1.withMods)(uui_components_1.Accordion, applyAc
|
|
|
1457
1454
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1458
1455
|
|
|
1459
1456
|
// extracted by mini-css-extract-plugin
|
|
1460
|
-
module.exports = {"root":"
|
|
1457
|
+
module.exports = {"root":"_1ACdG"};
|
|
1461
1458
|
|
|
1462
1459
|
/***/ }),
|
|
1463
1460
|
|
|
@@ -1472,11 +1469,11 @@ module.exports = {"root":"_1m1h7"};
|
|
|
1472
1469
|
|
|
1473
1470
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1474
1471
|
exports.ControlGroup = void 0;
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
exports.ControlGroup = (0, uui_core_1.withMods)(uui_components_1.ControlGroup,
|
|
1472
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1473
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./ControlGroup.scss */ "./components/layout/ControlGroup.scss"));
|
|
1474
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1475
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1476
|
+
exports.ControlGroup = (0, uui_core_1.withMods)(uui_components_1.ControlGroup, () => [css.root]);
|
|
1480
1477
|
|
|
1481
1478
|
|
|
1482
1479
|
/***/ }),
|
|
@@ -1492,13 +1489,13 @@ exports.ControlGroup = (0, uui_core_1.withMods)(uui_components_1.ControlGroup, f
|
|
|
1492
1489
|
|
|
1493
1490
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1494
1491
|
exports.FlexCell = void 0;
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
exports.FlexCell = (0, uui_core_1.withMods)(uui_components_1.FlexCell,
|
|
1492
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1493
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./FlexRow.scss */ "./components/layout/FlexItems/FlexRow.scss"));
|
|
1494
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1495
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1496
|
+
exports.FlexCell = (0, uui_core_1.withMods)(uui_components_1.FlexCell, props => [
|
|
1500
1497
|
css.flexCell,
|
|
1501
|
-
]
|
|
1498
|
+
]);
|
|
1502
1499
|
|
|
1503
1500
|
|
|
1504
1501
|
/***/ }),
|
|
@@ -1511,7 +1508,7 @@ exports.FlexCell = (0, uui_core_1.withMods)(uui_components_1.FlexCell, function
|
|
|
1511
1508
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1512
1509
|
|
|
1513
1510
|
// extracted by mini-css-extract-plugin
|
|
1514
|
-
module.exports = {"root":"
|
|
1511
|
+
module.exports = {"root":"_1gH-A","top-shadow":"_2eGFK","topShadow":"_2eGFK","size-24":"_33ogB","size24":"_33ogB","size-30":"X0sau","size30":"X0sau","size-36":"_3Y8P5","size36":"_3Y8P5","size-42":"_2sHSm","size42":"_2sHSm","size-48":"_3bskJ","size48":"_3bskJ","padding-6":"_1r0Cj","padding6":"_1r0Cj","padding-12":"_25KX4","padding12":"_25KX4","padding-18":"_1FouQ","padding18":"_1FouQ","padding-24":"IRH9M","padding24":"IRH9M","margin-24":"_1oNpz","margin24":"_1oNpz","margin-12":"_3AW0T","margin12":"_3AW0T","vPadding-12":"_1Dyhs","vPadding12":"_1Dyhs","vPadding-18":"CTXx5","vPadding18":"CTXx5","vPadding-24":"mO0bU","vPadding24":"mO0bU","vPadding-36":"_31RY1","vPadding36":"_31RY1","vPadding-48":"_3cqdJ","vPadding48":"_3cqdJ","spacing-6":"RedRq","spacing6":"RedRq","spacing-12":"_2W0Je","spacing12":"_2W0Je","spacing-18":"_3DZ9W","spacing18":"_3DZ9W","border-bottom":"_1MjUT","borderBottom":"_1MjUT"};
|
|
1515
1512
|
|
|
1516
1513
|
/***/ }),
|
|
1517
1514
|
|
|
@@ -1526,11 +1523,11 @@ module.exports = {"root":"_1oL__","top-shadow":"d7OlY","topShadow":"d7OlY","size
|
|
|
1526
1523
|
|
|
1527
1524
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1528
1525
|
exports.FlexRow = void 0;
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
exports.FlexRow = (0, uui_core_1.withMods)(uui_components_1.FlexRow,
|
|
1526
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1527
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1528
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1529
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./FlexRow.scss */ "./components/layout/FlexItems/FlexRow.scss"));
|
|
1530
|
+
exports.FlexRow = (0, uui_core_1.withMods)(uui_components_1.FlexRow, props => {
|
|
1534
1531
|
return [
|
|
1535
1532
|
css.root,
|
|
1536
1533
|
props.size !== null && css['size-' + (props.size || '36')],
|
|
@@ -1557,7 +1554,7 @@ exports.FlexRow = (0, uui_core_1.withMods)(uui_components_1.FlexRow, function (p
|
|
|
1557
1554
|
|
|
1558
1555
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1559
1556
|
exports.FlexSpacer = void 0;
|
|
1560
|
-
|
|
1557
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1561
1558
|
exports.FlexSpacer = uui_components_1.FlexSpacer;
|
|
1562
1559
|
|
|
1563
1560
|
|
|
@@ -1571,7 +1568,7 @@ exports.FlexSpacer = uui_components_1.FlexSpacer;
|
|
|
1571
1568
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1572
1569
|
|
|
1573
1570
|
// extracted by mini-css-extract-plugin
|
|
1574
|
-
module.exports = {"root":"
|
|
1571
|
+
module.exports = {"root":"UR49G","background":"_1kDXG","margin-24":"_1GZtc","margin24":"_1GZtc","padding-12":"_3Hr_J","padding12":"_3Hr_J","padding-24":"_2IZ8s","padding24":"_2IZ8s","shadow":"bP2rX"};
|
|
1575
1572
|
|
|
1576
1573
|
/***/ }),
|
|
1577
1574
|
|
|
@@ -1586,18 +1583,18 @@ module.exports = {"root":"_1bRDf","background":"_3PjY9","margin-24":"_3GF2J","ma
|
|
|
1586
1583
|
|
|
1587
1584
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1588
1585
|
exports.Panel = void 0;
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1586
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1587
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1588
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1592
1589
|
__webpack_require__(/*! ../../../assets/styles/variables/layout/panel.scss */ "./assets/styles/variables/layout/panel.scss");
|
|
1593
|
-
|
|
1594
|
-
exports.Panel = (0, uui_core_1.withMods)(uui_components_1.VPanel,
|
|
1590
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Panel.scss */ "./components/layout/FlexItems/Panel.scss"));
|
|
1591
|
+
exports.Panel = (0, uui_core_1.withMods)(uui_components_1.VPanel, props => [
|
|
1595
1592
|
'panel-vars',
|
|
1596
1593
|
css.root,
|
|
1597
1594
|
props.shadow && css.shadow,
|
|
1598
1595
|
props.background && css.background,
|
|
1599
1596
|
props.margin && css['margin-' + props.margin],
|
|
1600
|
-
]
|
|
1597
|
+
]);
|
|
1601
1598
|
|
|
1602
1599
|
|
|
1603
1600
|
/***/ }),
|
|
@@ -1612,7 +1609,7 @@ exports.Panel = (0, uui_core_1.withMods)(uui_components_1.VPanel, function (prop
|
|
|
1612
1609
|
"use strict";
|
|
1613
1610
|
|
|
1614
1611
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1615
|
-
|
|
1612
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1616
1613
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./FlexCell */ "./components/layout/FlexItems/FlexCell.tsx"), exports);
|
|
1617
1614
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./FlexRow */ "./components/layout/FlexItems/FlexRow.tsx"), exports);
|
|
1618
1615
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./FlexSpacer */ "./components/layout/FlexItems/FlexSpacer.tsx"), exports);
|
|
@@ -1629,7 +1626,7 @@ var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.
|
|
|
1629
1626
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1630
1627
|
|
|
1631
1628
|
// extracted by mini-css-extract-plugin
|
|
1632
|
-
module.exports = {"root":"
|
|
1629
|
+
module.exports = {"root":"hcfIC"};
|
|
1633
1630
|
|
|
1634
1631
|
/***/ }),
|
|
1635
1632
|
|
|
@@ -1644,19 +1641,19 @@ module.exports = {"root":"_1rRXy"};
|
|
|
1644
1641
|
|
|
1645
1642
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1646
1643
|
exports.IconContainer = exports.applyIconContainerMods = void 0;
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1644
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1645
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1646
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1647
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./IconContainer.scss */ "./components/layout/IconContainer.scss"));
|
|
1651
1648
|
__webpack_require__(/*! ../../assets/styles/variables/layout/iconContainer.scss */ "./assets/styles/variables/layout/iconContainer.scss");
|
|
1652
1649
|
function applyIconContainerMods(mods) {
|
|
1653
1650
|
return [
|
|
1654
|
-
|
|
1651
|
+
`icon-container-color-${mods.color || 'default'}`,
|
|
1655
1652
|
css.root,
|
|
1656
1653
|
];
|
|
1657
1654
|
}
|
|
1658
1655
|
exports.applyIconContainerMods = applyIconContainerMods;
|
|
1659
|
-
exports.IconContainer = (0, uui_core_1.withMods)(uui_components_1.IconContainer, applyIconContainerMods,
|
|
1656
|
+
exports.IconContainer = (0, uui_core_1.withMods)(uui_components_1.IconContainer, applyIconContainerMods, () => ({ tabIndex: 0 }));
|
|
1660
1657
|
|
|
1661
1658
|
|
|
1662
1659
|
/***/ }),
|
|
@@ -1669,7 +1666,7 @@ exports.IconContainer = (0, uui_core_1.withMods)(uui_components_1.IconContainer,
|
|
|
1669
1666
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1670
1667
|
|
|
1671
1668
|
// extracted by mini-css-extract-plugin
|
|
1672
|
-
module.exports = {"root":"
|
|
1669
|
+
module.exports = {"root":"_3gVoD","size-24":"ljpPn","size24":"ljpPn","size-30":"_1bmSl","size30":"_1bmSl","size-36":"_2AioQ","size36":"_2AioQ","size-42":"_2_1nA","size42":"_2_1nA","size-48":"_3qfJF","size48":"_3qfJF"};
|
|
1673
1670
|
|
|
1674
1671
|
/***/ }),
|
|
1675
1672
|
|
|
@@ -1684,14 +1681,14 @@ module.exports = {"root":"_1uUYV","size-24":"_3hi6E","size24":"_3hi6E","size-30"
|
|
|
1684
1681
|
|
|
1685
1682
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1686
1683
|
exports.LabeledInput = void 0;
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1684
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1685
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1686
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1687
|
+
const overlays_1 = __webpack_require__(/*! ../overlays */ "./components/overlays/index.ts");
|
|
1688
|
+
const icons_1 = __webpack_require__(/*! ../../icons/icons */ "./icons/icons.tsx");
|
|
1692
1689
|
__webpack_require__(/*! ../../assets/styles/variables/layout/labeledInput.scss */ "./assets/styles/variables/layout/labeledInput.scss");
|
|
1693
|
-
|
|
1694
|
-
|
|
1690
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./LabeledInput.scss */ "./components/layout/LabeledInput.scss"));
|
|
1691
|
+
const defaultSize = '36';
|
|
1695
1692
|
function applyLabeledInputMods(mods) {
|
|
1696
1693
|
return [
|
|
1697
1694
|
'labeled-input-vars',
|
|
@@ -1699,10 +1696,10 @@ function applyLabeledInputMods(mods) {
|
|
|
1699
1696
|
css['size-' + (mods.size || defaultSize)],
|
|
1700
1697
|
];
|
|
1701
1698
|
}
|
|
1702
|
-
exports.LabeledInput = (0, uui_core_1.withMods)(uui_components_1.LabeledInput, applyLabeledInputMods,
|
|
1699
|
+
exports.LabeledInput = (0, uui_core_1.withMods)(uui_components_1.LabeledInput, applyLabeledInputMods, (props) => ({
|
|
1703
1700
|
Tooltip: overlays_1.Tooltip,
|
|
1704
1701
|
infoIcon: icons_1.systemIcons[props.size || defaultSize].help,
|
|
1705
|
-
})
|
|
1702
|
+
}));
|
|
1706
1703
|
|
|
1707
1704
|
|
|
1708
1705
|
/***/ }),
|
|
@@ -1715,7 +1712,7 @@ exports.LabeledInput = (0, uui_core_1.withMods)(uui_components_1.LabeledInput, a
|
|
|
1715
1712
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1716
1713
|
|
|
1717
1714
|
// extracted by mini-css-extract-plugin
|
|
1718
|
-
module.exports = {"root":"
|
|
1715
|
+
module.exports = {"root":"yt9Rp"};
|
|
1719
1716
|
|
|
1720
1717
|
/***/ }),
|
|
1721
1718
|
|
|
@@ -1730,12 +1727,12 @@ module.exports = {"root":"Wvc4o"};
|
|
|
1730
1727
|
|
|
1731
1728
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1732
1729
|
exports.RadioGroup = void 0;
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
exports.RadioGroup = (0, uui_core_1.withMods)(uui_components_1.RadioGroup,
|
|
1730
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1731
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1732
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1733
|
+
const inputs_1 = __webpack_require__(/*! ../inputs */ "./components/inputs/index.ts");
|
|
1734
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./RadioGroup.scss */ "./components/layout/RadioGroup.scss"));
|
|
1735
|
+
exports.RadioGroup = (0, uui_core_1.withMods)(uui_components_1.RadioGroup, () => [css.root], () => ({ RadioInput: inputs_1.RadioInput }));
|
|
1739
1736
|
|
|
1740
1737
|
|
|
1741
1738
|
/***/ }),
|
|
@@ -1762,8 +1759,8 @@ exports.RadioGroup = (0, uui_core_1.withMods)(uui_components_1.RadioGroup, funct
|
|
|
1762
1759
|
|
|
1763
1760
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1764
1761
|
exports.ScrollBars = void 0;
|
|
1765
|
-
|
|
1766
|
-
|
|
1762
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1763
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1767
1764
|
__webpack_require__(/*! ./ScrollBars.scss */ "./components/layout/ScrollBars.scss");
|
|
1768
1765
|
__webpack_require__(/*! ../../assets/styles/variables/layout/scrollBars.scss */ "./assets/styles/variables/layout/scrollBars.scss");
|
|
1769
1766
|
function applyScrollBarsMods() {
|
|
@@ -1798,8 +1795,8 @@ exports.ScrollBars = (0, uui_core_1.withMods)(uui_components_1.ScrollBars, apply
|
|
|
1798
1795
|
|
|
1799
1796
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1800
1797
|
exports.VirtualList = void 0;
|
|
1801
|
-
|
|
1802
|
-
|
|
1798
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1799
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1803
1800
|
__webpack_require__(/*! ../../assets/styles/variables/layout/scrollBars.scss */ "./assets/styles/variables/layout/scrollBars.scss");
|
|
1804
1801
|
__webpack_require__(/*! ./VirtualList.scss */ "./components/layout/VirtualList.scss");
|
|
1805
1802
|
function applyVirtualListMods() {
|
|
@@ -1822,7 +1819,7 @@ exports.VirtualList = (0, uui_core_1.withMods)(uui_components_1.VirtualList, app
|
|
|
1822
1819
|
"use strict";
|
|
1823
1820
|
|
|
1824
1821
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1825
|
-
|
|
1822
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1826
1823
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Accordion */ "./components/layout/Accordion.tsx"), exports);
|
|
1827
1824
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./ControlGroup */ "./components/layout/ControlGroup.tsx"), exports);
|
|
1828
1825
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./FlexItems */ "./components/layout/FlexItems/index.ts"), exports);
|
|
@@ -1846,19 +1843,14 @@ var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.
|
|
|
1846
1843
|
|
|
1847
1844
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1848
1845
|
exports.Dropdown = void 0;
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
(
|
|
1854
|
-
|
|
1855
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
1846
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1847
|
+
const React = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
1848
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1849
|
+
class Dropdown extends React.Component {
|
|
1850
|
+
render() {
|
|
1851
|
+
return (React.createElement(uui_components_1.Dropdown, Object.assign({}, this.props)));
|
|
1856
1852
|
}
|
|
1857
|
-
|
|
1858
|
-
return (React.createElement(uui_components_1.Dropdown, (0, tslib_1.__assign)({}, this.props)));
|
|
1859
|
-
};
|
|
1860
|
-
return Dropdown;
|
|
1861
|
-
}(React.Component));
|
|
1853
|
+
}
|
|
1862
1854
|
exports.Dropdown = Dropdown;
|
|
1863
1855
|
|
|
1864
1856
|
|
|
@@ -1872,7 +1864,7 @@ exports.Dropdown = Dropdown;
|
|
|
1872
1864
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1873
1865
|
|
|
1874
1866
|
// extracted by mini-css-extract-plugin
|
|
1875
|
-
module.exports = {"root":"
|
|
1867
|
+
module.exports = {"root":"_12KAn"};
|
|
1876
1868
|
|
|
1877
1869
|
/***/ }),
|
|
1878
1870
|
|
|
@@ -1887,11 +1879,11 @@ module.exports = {"root":"_2mqjb"};
|
|
|
1887
1879
|
|
|
1888
1880
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1889
1881
|
exports.DropdownContainer = void 0;
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1882
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1883
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1884
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1893
1885
|
__webpack_require__(/*! ../../assets/styles/variables/overlays/dropdownContainer.scss */ "./assets/styles/variables/overlays/dropdownContainer.scss");
|
|
1894
|
-
|
|
1886
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./DropdownContainer.scss */ "./components/overlays/DropdownContainer.scss"));
|
|
1895
1887
|
function applyDropdownContainerMods(mods) {
|
|
1896
1888
|
return [
|
|
1897
1889
|
'dropdown-container-vars',
|
|
@@ -1911,7 +1903,7 @@ exports.DropdownContainer = (0, uui_core_1.withMods)(uui_components_1.DropdownCo
|
|
|
1911
1903
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1912
1904
|
|
|
1913
1905
|
// extracted by mini-css-extract-plugin
|
|
1914
|
-
module.exports = {"menuRoot":"
|
|
1906
|
+
module.exports = {"menuRoot":"_1kaKY","bodyRoot":"_50vbN","submenuRootItem":"_3Ckfl","iconAfter":"XjoLb","iconCheck":"_3WdoH","splitterRoot":"_1cFMw","splitter":"_2OUEu","headerRoot":"_1qyI5","itemRoot":"cxf47","icon":"_29AH7","link":"_3KzBV"};
|
|
1915
1907
|
|
|
1916
1908
|
/***/ }),
|
|
1917
1909
|
|
|
@@ -1926,15 +1918,15 @@ module.exports = {"menuRoot":"_3E4XU","bodyRoot":"eGwTo","submenuRootItem":"_78Q
|
|
|
1926
1918
|
|
|
1927
1919
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1928
1920
|
exports.DropdownMenuSwitchButton = exports.DropdownSubMenu = exports.DropdownMenuHeader = exports.DropdownMenuSplitter = exports.DropdownMenuButton = exports.DropdownMenuBody = exports.DropdownControlKeys = void 0;
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1921
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1922
|
+
const react_1 = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
1923
|
+
const react_focus_lock_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! react-focus-lock */ "react-focus-lock"));
|
|
1924
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
1925
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1926
|
+
const inputs_1 = __webpack_require__(/*! ../inputs */ "./components/inputs/index.ts");
|
|
1927
|
+
const icons_1 = __webpack_require__(/*! ../../icons/icons */ "./icons/icons.tsx");
|
|
1928
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./DropdownMenu.scss */ "./components/overlays/DropdownMenu.scss"));
|
|
1929
|
+
const icons = icons_1.systemIcons['36'];
|
|
1938
1930
|
exports.DropdownControlKeys = {
|
|
1939
1931
|
ENTER: 'Enter',
|
|
1940
1932
|
ESCAPE: 'Escape',
|
|
@@ -1943,23 +1935,23 @@ exports.DropdownControlKeys = {
|
|
|
1943
1935
|
UP_ARROW: 'ArrowUp',
|
|
1944
1936
|
DOWN_ARROW: 'ArrowDown',
|
|
1945
1937
|
};
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
(0, react_1.useEffect)(
|
|
1938
|
+
const DropdownMenuContainer = (props) => {
|
|
1939
|
+
const menuRef = (0, react_1.useRef)(null);
|
|
1940
|
+
const [currentlyFocused, setFocused] = (0, react_1.useState)(-1);
|
|
1941
|
+
const menuItems = menuRef.current ? Array.from(menuRef.current.querySelectorAll(`[role="menuitem"]:not(.${uui_core_1.uuiMod.disabled})`)) : [];
|
|
1942
|
+
(0, react_1.useEffect)(() => {
|
|
1951
1943
|
var _a;
|
|
1952
1944
|
(_a = menuRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
1953
1945
|
}, [menuRef.current]);
|
|
1954
|
-
|
|
1946
|
+
const changeFocus = (nextFocusedIndex) => {
|
|
1955
1947
|
if (menuItems.length > 0) {
|
|
1956
1948
|
setFocused(nextFocusedIndex);
|
|
1957
1949
|
menuItems[nextFocusedIndex].focus();
|
|
1958
1950
|
}
|
|
1959
1951
|
};
|
|
1960
|
-
|
|
1952
|
+
const handleArrowKeys = (e) => {
|
|
1961
1953
|
e.stopPropagation();
|
|
1962
|
-
|
|
1954
|
+
const lastMenuItemsIndex = menuItems.length - 1;
|
|
1963
1955
|
if (e.key === exports.DropdownControlKeys.UP_ARROW) {
|
|
1964
1956
|
changeFocus(currentlyFocused > 0 ? currentlyFocused - 1 : lastMenuItemsIndex);
|
|
1965
1957
|
}
|
|
@@ -1971,22 +1963,19 @@ var DropdownMenuContainer = function (props) {
|
|
|
1971
1963
|
}
|
|
1972
1964
|
};
|
|
1973
1965
|
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 } },
|
|
1974
|
-
react_1.default.createElement(uui_components_1.DropdownContainer,
|
|
1966
|
+
react_1.default.createElement(uui_components_1.DropdownContainer, Object.assign({}, props, { rawProps: { tabIndex: -1 } }))));
|
|
1975
1967
|
};
|
|
1976
|
-
exports.DropdownMenuBody = (0, uui_core_1.withMods)(DropdownMenuContainer,
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
}
|
|
1980
|
-
|
|
1981
|
-
var context = (0, react_1.useContext)(uui_core_1.UuiContext);
|
|
1982
|
-
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;
|
|
1983
|
-
var handleClick = function (event) {
|
|
1968
|
+
exports.DropdownMenuBody = (0, uui_core_1.withMods)(DropdownMenuContainer, () => [css.bodyRoot], ({ style }) => ({ style }));
|
|
1969
|
+
const DropdownMenuButton = (props) => {
|
|
1970
|
+
const context = (0, react_1.useContext)(uui_core_1.UuiContext);
|
|
1971
|
+
const { icon, iconPosition, caption, isDisabled, isSelected, link, href, onClick, toggleDropdownOpening, isDropdown, } = props;
|
|
1972
|
+
const handleClick = (event) => {
|
|
1984
1973
|
if (isDisabled || !onClick)
|
|
1985
1974
|
return;
|
|
1986
1975
|
onClick(event);
|
|
1987
1976
|
context.uuiAnalytics.sendEvent(props.clickAnalyticsEvent);
|
|
1988
1977
|
};
|
|
1989
|
-
|
|
1978
|
+
const handleOpenDropdown = (event) => {
|
|
1990
1979
|
if (event.key === exports.DropdownControlKeys.RIGHT_ARROW && isDropdown) {
|
|
1991
1980
|
toggleDropdownOpening(true);
|
|
1992
1981
|
}
|
|
@@ -1994,10 +1983,10 @@ var DropdownMenuButton = function (props) {
|
|
|
1994
1983
|
onClick(event);
|
|
1995
1984
|
}
|
|
1996
1985
|
};
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
1986
|
+
const getMenuButtonContent = () => {
|
|
1987
|
+
const isIconBefore = Boolean(icon && iconPosition !== "right");
|
|
1988
|
+
const isIconAfter = Boolean(icon && iconPosition === "right");
|
|
1989
|
+
const 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) });
|
|
2001
1990
|
return react_1.default.createElement(react_1.default.Fragment, null,
|
|
2002
1991
|
isIconBefore && iconElement,
|
|
2003
1992
|
react_1.default.createElement(uui_components_1.Text, { cx: css.caption }, caption),
|
|
@@ -2005,8 +1994,8 @@ var DropdownMenuButton = function (props) {
|
|
|
2005
1994
|
react_1.default.createElement(uui_components_1.FlexSpacer, null),
|
|
2006
1995
|
iconElement));
|
|
2007
1996
|
};
|
|
2008
|
-
|
|
2009
|
-
|
|
1997
|
+
const isAnchor = Boolean(link || href);
|
|
1998
|
+
const itemClassNames = (0, uui_core_1.cx)(props.cx, css.itemRoot, isDisabled && uui_core_1.uuiMod.disabled, isSelected && uui_core_1.uuiMod.selected);
|
|
2010
1999
|
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: {
|
|
2011
2000
|
tabIndex: isDisabled ? -1 : 0,
|
|
2012
2001
|
role: 'menuitem',
|
|
@@ -2015,34 +2004,31 @@ var DropdownMenuButton = function (props) {
|
|
|
2015
2004
|
};
|
|
2016
2005
|
exports.DropdownMenuButton = DropdownMenuButton;
|
|
2017
2006
|
exports.DropdownMenuButton.displayName = 'DropdownMenuButton';
|
|
2018
|
-
|
|
2019
|
-
react_1.default.createElement("hr", { className: css.splitter })));
|
|
2007
|
+
const DropdownMenuSplitter = (props) => (react_1.default.createElement("div", { className: (0, uui_core_1.cx)(props.cx, css.splitterRoot) },
|
|
2008
|
+
react_1.default.createElement("hr", { className: css.splitter })));
|
|
2020
2009
|
exports.DropdownMenuSplitter = DropdownMenuSplitter;
|
|
2021
|
-
|
|
2022
|
-
react_1.default.createElement("span", { className: css.header }, props.caption)));
|
|
2010
|
+
const DropdownMenuHeader = (props) => (react_1.default.createElement("div", { className: (0, uui_core_1.cx)(props.cx, css.headerRoot) },
|
|
2011
|
+
react_1.default.createElement("span", { className: css.header }, props.caption)));
|
|
2023
2012
|
exports.DropdownMenuHeader = DropdownMenuHeader;
|
|
2024
|
-
|
|
2025
|
-
return (react_1.default.createElement(uui_components_1.Dropdown, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", placement: "right-start", renderBody:
|
|
2026
|
-
var toggleDropdownOpening = _a.toggleDropdownOpening;
|
|
2027
|
-
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)));
|
|
2028
|
-
} }));
|
|
2013
|
+
const DropdownSubMenu = (props) => {
|
|
2014
|
+
return (react_1.default.createElement(uui_components_1.Dropdown, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", placement: "right-start", renderBody: (props) => (react_1.default.createElement(exports.DropdownMenuBody, Object.assign({ closeOnKey: exports.DropdownControlKeys.LEFT_ARROW }, props))), renderTarget: ({ toggleDropdownOpening }) => (react_1.default.createElement(exports.DropdownMenuButton, Object.assign({ cx: (0, uui_core_1.cx)(css.submenuRootItem), icon: icons.foldingArrow, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening }, props))) }));
|
|
2029
2015
|
};
|
|
2030
2016
|
exports.DropdownSubMenu = DropdownSubMenu;
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2017
|
+
const DropdownMenuSwitchButton = (props) => {
|
|
2018
|
+
const context = (0, react_1.useContext)(uui_core_1.UuiContext);
|
|
2019
|
+
const { icon, caption, isDisabled, isSelected, onValueChange, } = props;
|
|
2020
|
+
const onHandleValueChange = (value) => {
|
|
2035
2021
|
if (isDisabled || !onValueChange)
|
|
2036
2022
|
return;
|
|
2037
2023
|
onValueChange(value);
|
|
2038
2024
|
context.uuiAnalytics.sendEvent(props.clickAnalyticsEvent);
|
|
2039
2025
|
};
|
|
2040
|
-
|
|
2026
|
+
const handleKeySelect = (e) => {
|
|
2041
2027
|
if (e.key === exports.DropdownControlKeys.ENTER) {
|
|
2042
2028
|
onHandleValueChange(!isSelected);
|
|
2043
2029
|
}
|
|
2044
2030
|
};
|
|
2045
|
-
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:
|
|
2031
|
+
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: () => onHandleValueChange(!isSelected), rawProps: { role: 'menuitem', onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 } },
|
|
2046
2032
|
icon && react_1.default.createElement(uui_components_1.IconContainer, { icon: icon, cx: css.iconBefore }),
|
|
2047
2033
|
react_1.default.createElement(uui_components_1.Text, { cx: css.caption }, caption),
|
|
2048
2034
|
react_1.default.createElement(uui_components_1.FlexSpacer, null),
|
|
@@ -2061,7 +2047,7 @@ exports.DropdownMenuSwitchButton = DropdownMenuSwitchButton;
|
|
|
2061
2047
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2062
2048
|
|
|
2063
2049
|
// extracted by mini-css-extract-plugin
|
|
2064
|
-
module.exports = {"modal-blocker":"
|
|
2050
|
+
module.exports = {"modal-blocker":"_1dxbf","modalBlocker":"_1dxbf","animateModalBlocker":"_3i_uu","blocker-overlay":"qKkgc","blockerOverlay":"qKkgc","modal":"_1XOdL","modal-footer":"_3oDUu","modalFooter":"_3oDUu","border-top":"_11lF_","borderTop":"_11lF_","modal-header":"Jc6LZ","modalHeader":"Jc6LZ"};
|
|
2065
2051
|
|
|
2066
2052
|
/***/ }),
|
|
2067
2053
|
|
|
@@ -2076,54 +2062,44 @@ module.exports = {"modal-blocker":"_368CD","modalBlocker":"_368CD","animateModal
|
|
|
2076
2062
|
|
|
2077
2063
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2078
2064
|
exports.ModalFooter = exports.ModalHeader = exports.ModalWindow = exports.ModalBlocker = void 0;
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2065
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2066
|
+
const React = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
2067
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
2068
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
2069
|
+
const layout_1 = __webpack_require__(/*! ../layout */ "./components/layout/index.ts");
|
|
2070
|
+
const buttons_1 = __webpack_require__(/*! ../buttons */ "./components/buttons/index.ts");
|
|
2071
|
+
const typography_1 = __webpack_require__(/*! ../typography */ "./components/typography/index.ts");
|
|
2072
|
+
const navigation_close_24_svg_1 = __webpack_require__(/*! ../../icons/navigation-close-24.svg */ "./icons/navigation-close-24.svg");
|
|
2087
2073
|
__webpack_require__(/*! ../../assets/styles/variables/overlays/modals.scss */ "./assets/styles/variables/overlays/modals.scss");
|
|
2088
|
-
|
|
2089
|
-
exports.ModalBlocker = (0, uui_core_1.withMods)(uui_components_1.ModalBlocker,
|
|
2074
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Modals.scss */ "./components/overlays/Modals.scss"));
|
|
2075
|
+
exports.ModalBlocker = (0, uui_core_1.withMods)(uui_components_1.ModalBlocker, mods => [
|
|
2090
2076
|
'modals-vars',
|
|
2091
2077
|
css.modalBlocker,
|
|
2092
2078
|
mods.overlay && css['blocker-overlay'],
|
|
2093
|
-
]
|
|
2094
|
-
exports.ModalWindow = (0, uui_core_1.withMods)(uui_components_1.ModalWindow,
|
|
2079
|
+
]);
|
|
2080
|
+
exports.ModalWindow = (0, uui_core_1.withMods)(uui_components_1.ModalWindow, () => ['modals-vars', css.modal], props => ({ rawProps: {
|
|
2095
2081
|
style: {
|
|
2096
|
-
width:
|
|
2097
|
-
height: props.height ?
|
|
2082
|
+
width: `${props.width || 480}px`,
|
|
2083
|
+
height: props.height ? `${props.height}px` : '',
|
|
2098
2084
|
},
|
|
2099
2085
|
},
|
|
2100
|
-
})
|
|
2101
|
-
|
|
2102
|
-
(
|
|
2103
|
-
function ModalHeader() {
|
|
2104
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
2105
|
-
}
|
|
2106
|
-
ModalHeader.prototype.render = function () {
|
|
2086
|
+
}));
|
|
2087
|
+
class ModalHeader extends React.Component {
|
|
2088
|
+
render() {
|
|
2107
2089
|
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 },
|
|
2108
2090
|
this.props.title && React.createElement(typography_1.Text, { size: '48', fontSize: '18', font: 'semibold' }, this.props.title),
|
|
2109
2091
|
this.props.children,
|
|
2110
2092
|
this.props.onClose && React.createElement(layout_1.FlexSpacer, null),
|
|
2111
2093
|
this.props.onClose && React.createElement(layout_1.FlexCell, { shrink: 0, width: 'auto' },
|
|
2112
2094
|
React.createElement(buttons_1.IconButton, { icon: navigation_close_24_svg_1.ReactComponent, onClick: this.props.onClose }))));
|
|
2113
|
-
};
|
|
2114
|
-
return ModalHeader;
|
|
2115
|
-
}(React.Component));
|
|
2116
|
-
exports.ModalHeader = ModalHeader;
|
|
2117
|
-
var ModalFooter = /** @class */ (function (_super) {
|
|
2118
|
-
(0, tslib_1.__extends)(ModalFooter, _super);
|
|
2119
|
-
function ModalFooter() {
|
|
2120
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
2121
2095
|
}
|
|
2122
|
-
|
|
2096
|
+
}
|
|
2097
|
+
exports.ModalHeader = ModalHeader;
|
|
2098
|
+
class ModalFooter extends React.Component {
|
|
2099
|
+
render() {
|
|
2123
2100
|
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));
|
|
2124
|
-
}
|
|
2125
|
-
|
|
2126
|
-
}(React.Component));
|
|
2101
|
+
}
|
|
2102
|
+
}
|
|
2127
2103
|
exports.ModalFooter = ModalFooter;
|
|
2128
2104
|
|
|
2129
2105
|
|
|
@@ -2137,7 +2113,7 @@ exports.ModalFooter = ModalFooter;
|
|
|
2137
2113
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2138
2114
|
|
|
2139
2115
|
// extracted by mini-css-extract-plugin
|
|
2140
|
-
module.exports = {"root":"
|
|
2116
|
+
module.exports = {"root":"yy2Bh","icon-wrapper":"_1uJTA","iconWrapper":"_1uJTA","notification-wrapper":"_2M3nj","notificationWrapper":"_2M3nj","action-wrapper":"DaFjO","actionWrapper":"DaFjO","action-link":"_54AYd","actionLink":"_54AYd","close-icon":"JH85Y","closeIcon":"JH85Y","main-path":"np8Mh","mainPath":"np8Mh","content":"_8yero","clear-button":"_2h-Mh","clearButton":"_2h-Mh","close-wrapper":"_1ij9O","closeWrapper":"_1ij9O"};
|
|
2141
2117
|
|
|
2142
2118
|
/***/ }),
|
|
2143
2119
|
|
|
@@ -2152,83 +2128,66 @@ module.exports = {"root":"_1Zcw3","icon-wrapper":"_26lfl","iconWrapper":"_26lfl"
|
|
|
2152
2128
|
|
|
2153
2129
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2154
2130
|
exports.ClearNotification = exports.ErrorNotification = exports.HintNotification = exports.SuccessNotification = exports.WarningNotification = exports.NotificationCard = void 0;
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2131
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2132
|
+
const react_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! react */ "react"));
|
|
2133
|
+
const classnames_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! classnames */ "classnames"));
|
|
2134
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
2135
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
2136
|
+
const buttons_1 = __webpack_require__(/*! ../buttons */ "./components/buttons/index.ts");
|
|
2137
|
+
const i18n_1 = __webpack_require__(/*! ../../i18n */ "./i18n.ts");
|
|
2138
|
+
const notification_check_circle_fill_24_svg_1 = __webpack_require__(/*! ../../icons/notification-check_circle-fill-24.svg */ "./icons/notification-check_circle-fill-24.svg");
|
|
2139
|
+
const notification_warning_fill_24_svg_1 = __webpack_require__(/*! ../../icons/notification-warning-fill-24.svg */ "./icons/notification-warning-fill-24.svg");
|
|
2140
|
+
const notification_error_fill_24_svg_1 = __webpack_require__(/*! ../../icons/notification-error-fill-24.svg */ "./icons/notification-error-fill-24.svg");
|
|
2141
|
+
const notification_help_fill_24_svg_1 = __webpack_require__(/*! ../../icons/notification-help-fill-24.svg */ "./icons/notification-help-fill-24.svg");
|
|
2142
|
+
const cross_svg_1 = __webpack_require__(/*! ../../icons/snackbar/cross.svg */ "./icons/snackbar/cross.svg");
|
|
2167
2143
|
__webpack_require__(/*! ../../assets/styles/variables/overlays/notificationCard.scss */ "./assets/styles/variables/overlays/notificationCard.scss");
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
(
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
_this.notificationCardNode = null;
|
|
2174
|
-
return _this;
|
|
2144
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./NotificationCard.scss */ "./components/overlays/NotificationCard.scss"));
|
|
2145
|
+
class NotificationCard extends react_1.default.Component {
|
|
2146
|
+
constructor() {
|
|
2147
|
+
super(...arguments);
|
|
2148
|
+
this.notificationCardNode = null;
|
|
2175
2149
|
}
|
|
2176
|
-
|
|
2150
|
+
componentDidMount() {
|
|
2177
2151
|
var _a, _b;
|
|
2178
2152
|
(_a = this.notificationCardNode) === null || _a === void 0 ? void 0 : _a.addEventListener('mouseenter', this.props.clearTimer);
|
|
2179
2153
|
(_b = this.notificationCardNode) === null || _b === void 0 ? void 0 : _b.addEventListener('mouseleave', this.props.refreshTimer);
|
|
2180
|
-
}
|
|
2181
|
-
|
|
2154
|
+
}
|
|
2155
|
+
componentWillUnmount() {
|
|
2182
2156
|
var _a, _b;
|
|
2183
2157
|
(_a = this.notificationCardNode) === null || _a === void 0 ? void 0 : _a.removeEventListener('mouseenter', this.props.clearTimer);
|
|
2184
2158
|
(_b = this.notificationCardNode) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseleave', this.props.refreshTimer);
|
|
2185
|
-
}
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
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; } },
|
|
2159
|
+
}
|
|
2160
|
+
render() {
|
|
2161
|
+
return (react_1.default.createElement("div", { role: 'alert', className: (0, classnames_1.default)(css.notificationWrapper, 'notification-card-vars', `notification-card-color-${this.props.color}`, css.root, this.props.cx), ref: (el) => this.notificationCardNode = el },
|
|
2189
2162
|
react_1.default.createElement("div", { className: css.mainPath },
|
|
2190
2163
|
this.props.icon && react_1.default.createElement("div", { className: css.iconWrapper },
|
|
2191
2164
|
react_1.default.createElement(uui_components_1.IconContainer, { icon: this.props.icon, cx: css.actionIcon })),
|
|
2192
2165
|
react_1.default.createElement("div", { className: css.content },
|
|
2193
2166
|
this.props.children,
|
|
2194
|
-
this.props.actions && react_1.default.createElement("div", { className: css.actionWrapper }, this.props.actions.map(
|
|
2167
|
+
this.props.actions && react_1.default.createElement("div", { className: css.actionWrapper }, this.props.actions.map((action) => {
|
|
2195
2168
|
return react_1.default.createElement(buttons_1.LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css.actionLink, size: '36' });
|
|
2196
2169
|
}))),
|
|
2197
|
-
this.props.onClose && react_1.default.createElement(
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
}
|
|
2170
|
+
this.props.onClose && react_1.default.createElement("div", { className: css.closeWrapper },
|
|
2171
|
+
react_1.default.createElement(buttons_1.IconButton, { icon: cross_svg_1.ReactComponent, color: 'default', onClick: this.props.onClose, cx: css.closeIcon })))));
|
|
2172
|
+
}
|
|
2173
|
+
}
|
|
2201
2174
|
exports.NotificationCard = NotificationCard;
|
|
2202
|
-
|
|
2203
|
-
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) }));
|
|
2204
|
-
};
|
|
2175
|
+
const WarningNotification = (props) => react_1.default.createElement(NotificationCard, Object.assign({ icon: notification_warning_fill_24_svg_1.ReactComponent, color: 'warning' }, props, { cx: (0, classnames_1.default)(props.cx) }));
|
|
2205
2176
|
exports.WarningNotification = WarningNotification;
|
|
2206
|
-
|
|
2207
|
-
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) }));
|
|
2208
|
-
};
|
|
2177
|
+
const SuccessNotification = (props) => react_1.default.createElement(NotificationCard, Object.assign({ icon: notification_check_circle_fill_24_svg_1.ReactComponent, color: 'success' }, props, { cx: (0, classnames_1.default)(props.cx) }));
|
|
2209
2178
|
exports.SuccessNotification = SuccessNotification;
|
|
2210
|
-
|
|
2211
|
-
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) }));
|
|
2212
|
-
};
|
|
2179
|
+
const HintNotification = (props) => react_1.default.createElement(NotificationCard, Object.assign({ icon: notification_help_fill_24_svg_1.ReactComponent, color: 'info' }, props, { cx: (0, classnames_1.default)(props.cx) }));
|
|
2213
2180
|
exports.HintNotification = HintNotification;
|
|
2214
|
-
|
|
2215
|
-
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) }));
|
|
2216
|
-
};
|
|
2181
|
+
const ErrorNotification = (props) => react_1.default.createElement(NotificationCard, Object.assign({ icon: notification_error_fill_24_svg_1.ReactComponent, color: 'error' }, props, { cx: (0, classnames_1.default)(props.cx) }));
|
|
2217
2182
|
exports.ErrorNotification = ErrorNotification;
|
|
2218
|
-
|
|
2219
|
-
(
|
|
2220
|
-
function ClearNotification() {
|
|
2221
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
2222
|
-
}
|
|
2223
|
-
ClearNotification.prototype.render = function () {
|
|
2224
|
-
var _this = this;
|
|
2183
|
+
class ClearNotification extends react_1.default.Component {
|
|
2184
|
+
render() {
|
|
2225
2185
|
return react_1.default.createElement("div", { className: (0, classnames_1.default)(css.notificationWrapper, css.clearButton) },
|
|
2226
|
-
react_1.default.createElement(buttons_1.LinkButton, { caption: i18n_1.i18n.notificationCard.closeAllNotificationsButton, onClick:
|
|
2227
|
-
}
|
|
2228
|
-
|
|
2229
|
-
return ClearNotification;
|
|
2230
|
-
}(react_1.default.Component));
|
|
2186
|
+
react_1.default.createElement(buttons_1.LinkButton, { caption: i18n_1.i18n.notificationCard.closeAllNotificationsButton, onClick: () => this.context.uuiNotifications.clearAll() }));
|
|
2187
|
+
}
|
|
2188
|
+
}
|
|
2231
2189
|
exports.ClearNotification = ClearNotification;
|
|
2190
|
+
ClearNotification.contextType = uui_core_1.UuiContext;
|
|
2232
2191
|
|
|
2233
2192
|
|
|
2234
2193
|
/***/ }),
|
|
@@ -2241,7 +2200,7 @@ exports.ClearNotification = ClearNotification;
|
|
|
2241
2200
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2242
2201
|
|
|
2243
2202
|
// extracted by mini-css-extract-plugin
|
|
2244
|
-
module.exports = {"root":"
|
|
2203
|
+
module.exports = {"root":"_3kTSO"};
|
|
2245
2204
|
|
|
2246
2205
|
/***/ }),
|
|
2247
2206
|
|
|
@@ -2256,11 +2215,11 @@ module.exports = {"root":"_3Lc0Y"};
|
|
|
2256
2215
|
|
|
2257
2216
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2258
2217
|
exports.Tooltip = void 0;
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2218
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2219
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
2220
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
2262
2221
|
__webpack_require__(/*! ../../assets/styles/variables/overlays/tooltip.scss */ "./assets/styles/variables/overlays/tooltip.scss");
|
|
2263
|
-
|
|
2222
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Tooltip.scss */ "./components/overlays/Tooltip.scss"));
|
|
2264
2223
|
function applyTooltipMods(mods) {
|
|
2265
2224
|
return [
|
|
2266
2225
|
'tooltip-vars',
|
|
@@ -2282,7 +2241,7 @@ exports.Tooltip = (0, uui_core_1.withMods)(uui_components_1.Tooltip, applyToolti
|
|
|
2282
2241
|
"use strict";
|
|
2283
2242
|
|
|
2284
2243
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2285
|
-
|
|
2244
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2286
2245
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Dropdown */ "./components/overlays/Dropdown.tsx"), exports);
|
|
2287
2246
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DropdownContainer */ "./components/overlays/DropdownContainer.tsx"), exports);
|
|
2288
2247
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DropdownMenu */ "./components/overlays/DropdownMenu.tsx"), exports);
|
|
@@ -2301,7 +2260,7 @@ var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.
|
|
|
2301
2260
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2302
2261
|
|
|
2303
2262
|
// extracted by mini-css-extract-plugin
|
|
2304
|
-
module.exports = {"body":"
|
|
2263
|
+
module.exports = {"body":"_2nY4Z","modal":"_2WAHF","search":"_2XFPq","checkbox":"_1Sef8","search-wrapper":"A8ngn","searchWrapper":"A8ngn","search-size-24":"_3lm5M","searchSize24":"_3lm5M","search-size-30":"_3Yfa0","searchSize30":"_3Yfa0","search-size-36":"dsjq0","searchSize36":"dsjq0","search-size-42":"_1ELBZ","searchSize42":"_1ELBZ","no-found-size-24":"W3g6g","noFoundSize24":"W3g6g","no-found-size-30":"_3pfQS","noFoundSize30":"_3pfQS","no-found-size-36":"_31SN_","noFoundSize36":"_31SN_","no-found-size-42":"_1B5jt","noFoundSize42":"_1B5jt"};
|
|
2305
2264
|
|
|
2306
2265
|
/***/ }),
|
|
2307
2266
|
|
|
@@ -2316,44 +2275,41 @@ module.exports = {"body":"_2Zpsf","modal":"_1xRvh","search":"_2KbXK","checkbox":
|
|
|
2316
2275
|
|
|
2317
2276
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2318
2277
|
exports.DataPickerBody = void 0;
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
(
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
_this.searchLens = _this.lens.prop('search');
|
|
2334
|
-
return _this;
|
|
2278
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2279
|
+
const react_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! react */ "react"));
|
|
2280
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
2281
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
2282
|
+
const inputs_1 = __webpack_require__(/*! ../inputs */ "./components/inputs/index.ts");
|
|
2283
|
+
const layout_1 = __webpack_require__(/*! ../layout */ "./components/layout/index.ts");
|
|
2284
|
+
const typography_1 = __webpack_require__(/*! ../typography */ "./components/typography/index.ts");
|
|
2285
|
+
const i18n_1 = __webpack_require__(/*! ../../i18n */ "./i18n.ts");
|
|
2286
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./DataPickerBody.scss */ "./components/pickers/DataPickerBody.scss"));
|
|
2287
|
+
class DataPickerBody extends uui_components_1.PickerBodyBase {
|
|
2288
|
+
constructor() {
|
|
2289
|
+
super(...arguments);
|
|
2290
|
+
this.lens = uui_core_1.Lens.onEditableComponent(this);
|
|
2291
|
+
this.searchLens = this.lens.prop('search');
|
|
2335
2292
|
}
|
|
2336
|
-
|
|
2293
|
+
renderNoFound() {
|
|
2337
2294
|
if (this.props.renderNotFound) {
|
|
2338
2295
|
return this.props.renderNotFound();
|
|
2339
2296
|
}
|
|
2340
|
-
return react_1.default.createElement(uui_components_1.FlexCell, { cx: css[
|
|
2297
|
+
return react_1.default.createElement(uui_components_1.FlexCell, { cx: css[`no-found-size-${this.props.searchSize || 36}`], grow: 1, textAlign: 'center' },
|
|
2341
2298
|
react_1.default.createElement(typography_1.Text, { size: this.props.searchSize || '36' }, i18n_1.i18n.dataPickerBody.noRecordsMessage));
|
|
2342
|
-
}
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2299
|
+
}
|
|
2300
|
+
render() {
|
|
2301
|
+
const value = this.props.value;
|
|
2302
|
+
const searchSize = (0, uui_core_1.isMobile)() ? '48' : (this.props.searchSize || '36');
|
|
2303
|
+
const searchClass = (0, uui_core_1.cx)(css.searchWrapper, css[`search-size-${searchSize}`]);
|
|
2347
2304
|
return react_1.default.createElement(react_1.default.Fragment, null,
|
|
2348
2305
|
this.showSearch() && (react_1.default.createElement("div", { key: 'search', className: searchClass },
|
|
2349
2306
|
react_1.default.createElement(uui_components_1.FlexCell, { grow: 1 },
|
|
2350
|
-
react_1.default.createElement(inputs_1.SearchInput,
|
|
2307
|
+
react_1.default.createElement(inputs_1.SearchInput, Object.assign({ cx: css.search, placeholder: i18n_1.i18n.dataPickerBody.searchPlaceholder }, this.searchLens.toProps(), { onKeyDown: this.searchKeyDown, size: searchSize }))))),
|
|
2351
2308
|
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
|
|
2352
|
-
? react_1.default.createElement(layout_1.VirtualList,
|
|
2309
|
+
? react_1.default.createElement(layout_1.VirtualList, Object.assign({}, this.lens.toProps(), { rows: this.props.rows, role: "listbox", rawProps: this.props.rawProps, rowsCount: this.props.rowsCount }))
|
|
2353
2310
|
: this.renderNoFound()));
|
|
2354
|
-
}
|
|
2355
|
-
|
|
2356
|
-
}(uui_components_1.PickerBodyBase));
|
|
2311
|
+
}
|
|
2312
|
+
}
|
|
2357
2313
|
exports.DataPickerBody = DataPickerBody;
|
|
2358
2314
|
|
|
2359
2315
|
|
|
@@ -2367,7 +2323,7 @@ exports.DataPickerBody = DataPickerBody;
|
|
|
2367
2323
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2368
2324
|
|
|
2369
2325
|
// extracted by mini-css-extract-plugin
|
|
2370
|
-
module.exports = {"footer-wrapper":"
|
|
2326
|
+
module.exports = {"footer-wrapper":"kp3uC","footerWrapper":"kp3uC"};
|
|
2371
2327
|
|
|
2372
2328
|
/***/ }),
|
|
2373
2329
|
|
|
@@ -2382,27 +2338,27 @@ module.exports = {"footer-wrapper":"_3UKV5","footerWrapper":"_3UKV5"};
|
|
|
2382
2338
|
|
|
2383
2339
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2384
2340
|
exports.DataPickerFooter = void 0;
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2341
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2342
|
+
const react_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! react */ "react"));
|
|
2343
|
+
const classnames_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! classnames */ "classnames"));
|
|
2344
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
2345
|
+
const i18n_1 = __webpack_require__(/*! ../../i18n */ "./i18n.ts");
|
|
2346
|
+
const inputs_1 = __webpack_require__(/*! ../inputs */ "./components/inputs/index.ts");
|
|
2347
|
+
const layout_1 = __webpack_require__(/*! ../layout */ "./components/layout/index.ts");
|
|
2348
|
+
const buttons_1 = __webpack_require__(/*! ../buttons */ "./components/buttons/index.ts");
|
|
2349
|
+
const DataPickerFooter_scss_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! ./DataPickerFooter.scss */ "./components/pickers/DataPickerFooter.scss"));
|
|
2350
|
+
const switchSizes = {
|
|
2395
2351
|
'24': '12',
|
|
2396
2352
|
'36': '18',
|
|
2397
2353
|
'42': '24',
|
|
2398
2354
|
'48': '24',
|
|
2399
2355
|
};
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2356
|
+
const DataPickerFooterImpl = (props) => {
|
|
2357
|
+
const { clearSelection, view, showSelected } = props;
|
|
2358
|
+
const size = (0, uui_core_1.isMobile)() ? '48' : (props.size || '36');
|
|
2359
|
+
const switchSize = switchSizes[size];
|
|
2360
|
+
const hasSelection = view.getSelectedRows().length > 0;
|
|
2361
|
+
const handleKeyDown = (e) => {
|
|
2406
2362
|
if (!e.shiftKey && e.key === 'Tab')
|
|
2407
2363
|
e.preventDefault();
|
|
2408
2364
|
};
|
|
@@ -2414,7 +2370,7 @@ var DataPickerFooterImpl = function (props) {
|
|
|
2414
2370
|
? i18n_1.i18n.pickerInput.clearSelectionButton
|
|
2415
2371
|
: i18n_1.i18n.pickerInput.selectAllButton, onClick: hasSelection
|
|
2416
2372
|
? clearSelection
|
|
2417
|
-
:
|
|
2373
|
+
: () => view.selectAll.onValueChange(true), rawProps: { onKeyDown: handleKeyDown } })))));
|
|
2418
2374
|
};
|
|
2419
2375
|
exports.DataPickerFooter = react_1.default.memo(DataPickerFooterImpl);
|
|
2420
2376
|
|
|
@@ -2429,7 +2385,7 @@ exports.DataPickerFooter = react_1.default.memo(DataPickerFooterImpl);
|
|
|
2429
2385
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2430
2386
|
|
|
2431
2387
|
// extracted by mini-css-extract-plugin
|
|
2432
|
-
module.exports = {"header":"
|
|
2388
|
+
module.exports = {"header":"_1l2aP","close":"_27R0H"};
|
|
2433
2389
|
|
|
2434
2390
|
/***/ }),
|
|
2435
2391
|
|
|
@@ -2444,18 +2400,18 @@ module.exports = {"header":"_3Gaf0","close":"_19oYn"};
|
|
|
2444
2400
|
|
|
2445
2401
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2446
2402
|
exports.DataPickerHeader = void 0;
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2403
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2404
|
+
const react_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! react */ "react"));
|
|
2405
|
+
const DataPickerHeader_scss_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! ./DataPickerHeader.scss */ "./components/pickers/DataPickerHeader.scss"));
|
|
2406
|
+
const navigation_close_24_svg_1 = __webpack_require__(/*! @epam/assets/icons/common/navigation-close-24.svg */ "../epam-assets/icons/common/navigation-close-24.svg");
|
|
2407
|
+
const typography_1 = __webpack_require__(/*! ../typography */ "./components/typography/index.ts");
|
|
2408
|
+
const buttons_1 = __webpack_require__(/*! ../buttons */ "./components/buttons/index.ts");
|
|
2409
|
+
const layout_1 = __webpack_require__(/*! ../layout */ "./components/layout/index.ts");
|
|
2410
|
+
const DataPickerHeaderImpl = props => {
|
|
2411
|
+
const title = props.title ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
2456
2412
|
return (react_1.default.createElement(layout_1.FlexRow, { alignItems: 'center', borderBottom: true, size: "48", cx: DataPickerHeader_scss_1.default.header },
|
|
2457
2413
|
react_1.default.createElement(typography_1.Text, { font: 'semibold' }, title),
|
|
2458
|
-
react_1.default.createElement(buttons_1.IconButton, { icon: navigation_close_24_svg_1.ReactComponent, onClick:
|
|
2414
|
+
react_1.default.createElement(buttons_1.IconButton, { icon: navigation_close_24_svg_1.ReactComponent, onClick: () => { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: DataPickerHeader_scss_1.default.close })));
|
|
2459
2415
|
};
|
|
2460
2416
|
exports.DataPickerHeader = react_1.default.memo(DataPickerHeaderImpl);
|
|
2461
2417
|
|
|
@@ -2470,7 +2426,7 @@ exports.DataPickerHeader = react_1.default.memo(DataPickerHeaderImpl);
|
|
|
2470
2426
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2471
2427
|
|
|
2472
2428
|
// extracted by mini-css-extract-plugin
|
|
2473
|
-
module.exports = {"render-item":"
|
|
2429
|
+
module.exports = {"render-item":"_3t3FW","renderItem":"_3t3FW","icon-wrapper":"_3jtx8","iconWrapper":"_3jtx8","picker-row":"_2XDCz","pickerRow":"_2XDCz"};
|
|
2474
2430
|
|
|
2475
2431
|
/***/ }),
|
|
2476
2432
|
|
|
@@ -2485,20 +2441,19 @@ module.exports = {"render-item":"_26At-","renderItem":"_26At-","icon-wrapper":"_
|
|
|
2485
2441
|
|
|
2486
2442
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2487
2443
|
exports.DataPickerRow = void 0;
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
(
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
_this.getIcon = function (size) {
|
|
2444
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2445
|
+
const React = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
2446
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
2447
|
+
const layout_1 = __webpack_require__(/*! ../layout */ "./components/layout/index.ts");
|
|
2448
|
+
const tables_1 = __webpack_require__(/*! ../tables */ "./components/tables/index.ts");
|
|
2449
|
+
const notification_done_24_svg_1 = __webpack_require__(/*! @epam/assets/icons/common/notification-done-24.svg */ "../epam-assets/icons/common/notification-done-24.svg");
|
|
2450
|
+
const notification_done_18_svg_1 = __webpack_require__(/*! @epam/assets/icons/common/notification-done-18.svg */ "../epam-assets/icons/common/notification-done-18.svg");
|
|
2451
|
+
const notification_done_12_svg_1 = __webpack_require__(/*! @epam/assets/icons/common/notification-done-12.svg */ "../epam-assets/icons/common/notification-done-12.svg");
|
|
2452
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./DataPickerRow.scss */ "./components/pickers/DataPickerRow.scss"));
|
|
2453
|
+
class DataPickerRow extends React.Component {
|
|
2454
|
+
constructor() {
|
|
2455
|
+
super(...arguments);
|
|
2456
|
+
this.getIcon = (size) => {
|
|
2502
2457
|
switch (size) {
|
|
2503
2458
|
case '24': return notification_done_12_svg_1.ReactComponent;
|
|
2504
2459
|
case '30': return notification_done_18_svg_1.ReactComponent;
|
|
@@ -2507,26 +2462,24 @@ var DataPickerRow = /** @class */ (function (_super) {
|
|
|
2507
2462
|
default: return notification_done_18_svg_1.ReactComponent;
|
|
2508
2463
|
}
|
|
2509
2464
|
};
|
|
2510
|
-
|
|
2465
|
+
this.column = {
|
|
2511
2466
|
key: 'name',
|
|
2512
2467
|
grow: 1,
|
|
2513
2468
|
width: 0,
|
|
2514
|
-
render:
|
|
2515
|
-
|
|
2469
|
+
render: (item, rowProps) => React.createElement("div", { key: rowProps.id, className: css.renderItem },
|
|
2470
|
+
this.props.renderItem(item, rowProps),
|
|
2516
2471
|
React.createElement(layout_1.FlexSpacer, null),
|
|
2517
2472
|
(rowProps.isChildrenSelected || rowProps.isSelected) && React.createElement("div", { className: css.iconWrapper },
|
|
2518
|
-
React.createElement(layout_1.IconContainer, { icon:
|
|
2473
|
+
React.createElement(layout_1.IconContainer, { icon: this.getIcon(this.props.size), color: rowProps.isChildrenSelected ? 'default' : 'info' }))),
|
|
2519
2474
|
};
|
|
2520
|
-
|
|
2521
|
-
return React.createElement(tables_1.DataTableCell, { key: 'name', size:
|
|
2475
|
+
this.renderContent = () => {
|
|
2476
|
+
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' });
|
|
2522
2477
|
};
|
|
2523
|
-
return _this;
|
|
2524
2478
|
}
|
|
2525
|
-
|
|
2526
|
-
return React.createElement(uui_components_1.DataPickerRow,
|
|
2527
|
-
}
|
|
2528
|
-
|
|
2529
|
-
}(React.Component));
|
|
2479
|
+
render() {
|
|
2480
|
+
return React.createElement(uui_components_1.DataPickerRow, Object.assign({}, this.props, { cx: [css.pickerRow, this.props.cx], renderContent: this.renderContent }));
|
|
2481
|
+
}
|
|
2482
|
+
}
|
|
2530
2483
|
exports.DataPickerRow = DataPickerRow;
|
|
2531
2484
|
|
|
2532
2485
|
|
|
@@ -2540,7 +2493,7 @@ exports.DataPickerRow = DataPickerRow;
|
|
|
2540
2493
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2541
2494
|
|
|
2542
2495
|
// extracted by mini-css-extract-plugin
|
|
2543
|
-
module.exports = {"done":"
|
|
2496
|
+
module.exports = {"done":"Tl49d"};
|
|
2544
2497
|
|
|
2545
2498
|
/***/ }),
|
|
2546
2499
|
|
|
@@ -2555,19 +2508,19 @@ module.exports = {"done":"_2ht6y"};
|
|
|
2555
2508
|
|
|
2556
2509
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2557
2510
|
exports.MobileDropdownWrapper = void 0;
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2511
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2512
|
+
const react_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! react */ "react"));
|
|
2513
|
+
const MobileDropdownWrapper_scss_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! ./MobileDropdownWrapper.scss */ "./components/pickers/MobileDropdownWrapper.scss"));
|
|
2514
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
2515
|
+
const buttons_1 = __webpack_require__(/*! ../buttons */ "./components/buttons/index.ts");
|
|
2516
|
+
const DataPickerHeader_1 = __webpack_require__(/*! ./DataPickerHeader */ "./components/pickers/DataPickerHeader.tsx");
|
|
2517
|
+
const MobileDropdownWrapper = props => {
|
|
2518
|
+
const isVisible = (0, uui_core_1.isMobile)();
|
|
2566
2519
|
(0, uui_core_1.useAppMobileHeight)();
|
|
2567
2520
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
2568
2521
|
isVisible && react_1.default.createElement(DataPickerHeader_1.DataPickerHeader, { title: props.title, close: props.close }),
|
|
2569
2522
|
props.children,
|
|
2570
|
-
isVisible && (react_1.default.createElement(buttons_1.LinkButton, { caption: 'DONE', onClick:
|
|
2523
|
+
isVisible && (react_1.default.createElement(buttons_1.LinkButton, { caption: 'DONE', onClick: () => { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: MobileDropdownWrapper_scss_1.default.done, size: '48' }))));
|
|
2571
2524
|
};
|
|
2572
2525
|
exports.MobileDropdownWrapper = MobileDropdownWrapper;
|
|
2573
2526
|
|
|
@@ -2582,7 +2535,7 @@ exports.MobileDropdownWrapper = MobileDropdownWrapper;
|
|
|
2582
2535
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2583
2536
|
|
|
2584
2537
|
// extracted by mini-css-extract-plugin
|
|
2585
|
-
module.exports = {"panel":"
|
|
2538
|
+
module.exports = {"panel":"BRJrB","footer-wrapper":"_35b2s","footerWrapper":"_35b2s","footer-size-24":"KD4ay","footerSize24":"KD4ay","footer-size-30":"_3aJ3E","footerSize30":"_3aJ3E","footer-size-36":"_1mt8Z","footerSize36":"_1mt8Z","footer-size-42":"ZHGOQ","footerSize42":"ZHGOQ","footer-size-48":"_2wqPV","footerSize48":"_2wqPV"};
|
|
2586
2539
|
|
|
2587
2540
|
/***/ }),
|
|
2588
2541
|
|
|
@@ -2597,80 +2550,71 @@ module.exports = {"panel":"_3GiY4","footer-wrapper":"_3DChl","footerWrapper":"_3
|
|
|
2597
2550
|
|
|
2598
2551
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2599
2552
|
exports.PickerInput = void 0;
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
(
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
return react_1.default.createElement(PickerItem_1.PickerItem, (0, tslib_1.__assign)({ title: _this.getName(item), size: _this.getRowSize() }, rowProps));
|
|
2553
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2554
|
+
const react_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! react */ "react"));
|
|
2555
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
2556
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
2557
|
+
const PickerModal_1 = __webpack_require__(/*! ./PickerModal */ "./components/pickers/PickerModal.tsx");
|
|
2558
|
+
const layout_1 = __webpack_require__(/*! ../layout */ "./components/layout/index.ts");
|
|
2559
|
+
const PickerToggler_1 = __webpack_require__(/*! ./PickerToggler */ "./components/pickers/PickerToggler.tsx");
|
|
2560
|
+
const DataPickerRow_1 = __webpack_require__(/*! ./DataPickerRow */ "./components/pickers/DataPickerRow.tsx");
|
|
2561
|
+
const PickerItem_1 = __webpack_require__(/*! ./PickerItem */ "./components/pickers/PickerItem.tsx");
|
|
2562
|
+
const DataPickerBody_1 = __webpack_require__(/*! ./DataPickerBody */ "./components/pickers/DataPickerBody.tsx");
|
|
2563
|
+
const DataPickerFooter_1 = __webpack_require__(/*! ./DataPickerFooter */ "./components/pickers/DataPickerFooter.tsx");
|
|
2564
|
+
const MobileDropdownWrapper_1 = __webpack_require__(/*! ./MobileDropdownWrapper */ "./components/pickers/MobileDropdownWrapper.tsx");
|
|
2565
|
+
const types_1 = __webpack_require__(/*! ../types */ "./components/types.ts");
|
|
2566
|
+
const PickerInput_scss_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! ./PickerInput.scss */ "./components/pickers/PickerInput.scss"));
|
|
2567
|
+
const pickerHeight = 300;
|
|
2568
|
+
const pickerWidth = 360;
|
|
2569
|
+
class PickerInput extends uui_components_1.PickerInputBase {
|
|
2570
|
+
constructor() {
|
|
2571
|
+
super(...arguments);
|
|
2572
|
+
this.renderItem = (item, rowProps) => {
|
|
2573
|
+
return react_1.default.createElement(PickerItem_1.PickerItem, Object.assign({ title: this.getName(item), size: this.getRowSize() }, rowProps));
|
|
2622
2574
|
};
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
rowProps.onSelect = _this.onSelect;
|
|
2626
|
-
}
|
|
2627
|
-
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 })));
|
|
2575
|
+
this.renderRow = (rowProps) => {
|
|
2576
|
+
return this.props.renderRow ? this.props.renderRow(rowProps) : (react_1.default.createElement(DataPickerRow_1.DataPickerRow, Object.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 })));
|
|
2628
2577
|
};
|
|
2629
|
-
return _this;
|
|
2630
2578
|
}
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
.
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
PickerInput.prototype.getRowSize = function () {
|
|
2579
|
+
toggleModalOpening(opened) {
|
|
2580
|
+
const _a = this.props, { renderFooter } = _a, restProps = (0, tslib_1.__rest)(_a, ["renderFooter"]);
|
|
2581
|
+
this.context.uuiModals.show(props => react_1.default.createElement(PickerModal_1.PickerModal, Object.assign({}, restProps, props, { caption: this.getPlaceholder(), initialValue: this.props.value, renderRow: this.renderRow, selectionMode: this.props.selectionMode, valueType: this.props.valueType })))
|
|
2582
|
+
.then(newSelection => this.handleSelectionValueChange(newSelection))
|
|
2583
|
+
.catch(() => null);
|
|
2584
|
+
}
|
|
2585
|
+
getRowSize() {
|
|
2639
2586
|
return (0, uui_core_1.isMobile)()
|
|
2640
2587
|
? '48'
|
|
2641
2588
|
: this.props.editMode === 'modal'
|
|
2642
2589
|
? '36'
|
|
2643
2590
|
: this.props.size;
|
|
2644
|
-
}
|
|
2645
|
-
|
|
2591
|
+
}
|
|
2592
|
+
getTogglerMods() {
|
|
2646
2593
|
return {
|
|
2647
2594
|
size: this.props.size,
|
|
2648
2595
|
mode: this.props.mode ? this.props.mode : types_1.EditMode.FORM,
|
|
2649
2596
|
};
|
|
2650
|
-
}
|
|
2651
|
-
|
|
2652
|
-
|
|
2597
|
+
}
|
|
2598
|
+
renderFooter() {
|
|
2599
|
+
const footerProps = this.getFooterProps();
|
|
2653
2600
|
return this.props.renderFooter
|
|
2654
2601
|
? this.props.renderFooter(footerProps)
|
|
2655
|
-
: react_1.default.createElement(DataPickerFooter_1.DataPickerFooter,
|
|
2656
|
-
}
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
var maxHeight = (0, uui_core_1.isMobile)() ? document.documentElement.clientHeight : (this.props.dropdownHeight || pickerHeight);
|
|
2666
|
-
var minBodyWidth = (0, uui_core_1.isMobile)() ? document.documentElement.clientWidth : (this.props.minBodyWidth || pickerWidth);
|
|
2602
|
+
: react_1.default.createElement(DataPickerFooter_1.DataPickerFooter, Object.assign({}, footerProps, { size: this.props.size }));
|
|
2603
|
+
}
|
|
2604
|
+
renderTarget(targetProps) {
|
|
2605
|
+
const renderTarget = this.props.renderToggler || (props => react_1.default.createElement(PickerToggler_1.PickerToggler, Object.assign({}, props)));
|
|
2606
|
+
return (react_1.default.createElement(uui_core_1.IEditableDebouncer, { value: this.state.dataSourceState.search, onValueChange: this.handleTogglerSearchChange, render: editableProps => renderTarget(Object.assign(Object.assign(Object.assign({}, this.getTogglerMods()), targetProps), editableProps)) }));
|
|
2607
|
+
}
|
|
2608
|
+
renderBody(props, rows) {
|
|
2609
|
+
const renderedDataRows = rows.map((props) => this.renderRow(props));
|
|
2610
|
+
const maxHeight = (0, uui_core_1.isMobile)() ? document.documentElement.clientHeight : (this.props.dropdownHeight || pickerHeight);
|
|
2611
|
+
const minBodyWidth = (0, uui_core_1.isMobile)() ? document.documentElement.clientWidth : (this.props.minBodyWidth || pickerWidth);
|
|
2667
2612
|
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 },
|
|
2668
|
-
react_1.default.createElement(MobileDropdownWrapper_1.MobileDropdownWrapper, { title: this.props.entityName, close:
|
|
2669
|
-
react_1.default.createElement(DataPickerBody_1.DataPickerBody,
|
|
2613
|
+
react_1.default.createElement(MobileDropdownWrapper_1.MobileDropdownWrapper, { title: this.props.entityName, close: () => this.toggleBodyOpening(false) },
|
|
2614
|
+
react_1.default.createElement(DataPickerBody_1.DataPickerBody, Object.assign({}, props, { rows: renderedDataRows, maxHeight: maxHeight, searchSize: this.props.size, editMode: 'dropdown' })),
|
|
2670
2615
|
!this.isSingleSelect() && this.renderFooter())));
|
|
2671
|
-
}
|
|
2672
|
-
|
|
2673
|
-
}(uui_components_1.PickerInputBase));
|
|
2616
|
+
}
|
|
2617
|
+
}
|
|
2674
2618
|
exports.PickerInput = PickerInput;
|
|
2675
2619
|
|
|
2676
2620
|
|
|
@@ -2684,7 +2628,7 @@ exports.PickerInput = PickerInput;
|
|
|
2684
2628
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2685
2629
|
|
|
2686
2630
|
// extracted by mini-css-extract-plugin
|
|
2687
|
-
module.exports = {"root":"
|
|
2631
|
+
module.exports = {"root":"_1PTu0","multiline-vertical-padding-24":"aXmV5","multilineVerticalPadding24":"aXmV5","multiline-vertical-padding-30":"TZb8h","multilineVerticalPadding30":"TZb8h","multiline-vertical-padding-36":"_1yfer","multilineVerticalPadding36":"_1yfer","multiline-vertical-padding-42":"_3VowF","multilineVerticalPadding42":"_3VowF","multiline-vertical-padding-48":"_3FSNY","multilineVerticalPadding48":"_3FSNY"};
|
|
2688
2632
|
|
|
2689
2633
|
/***/ }),
|
|
2690
2634
|
|
|
@@ -2699,35 +2643,32 @@ module.exports = {"root":"_2LvWM","multiline-vertical-padding-24":"_1VhIw","mult
|
|
|
2699
2643
|
|
|
2700
2644
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2701
2645
|
exports.PickerItem = void 0;
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
(
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
_this.getAvatarSize = function (size, isMultiline) {
|
|
2646
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2647
|
+
const React = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
2648
|
+
const FlexItems_1 = __webpack_require__(/*! ../layout/FlexItems */ "./components/layout/FlexItems/index.ts");
|
|
2649
|
+
const typography_1 = __webpack_require__(/*! ../typography */ "./components/typography/index.ts");
|
|
2650
|
+
const widgets_1 = __webpack_require__(/*! ../widgets */ "./components/widgets/index.ts");
|
|
2651
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./PickerItem.scss */ "./components/pickers/PickerItem.scss"));
|
|
2652
|
+
const defaultSize = '36';
|
|
2653
|
+
class PickerItem extends React.Component {
|
|
2654
|
+
constructor() {
|
|
2655
|
+
super(...arguments);
|
|
2656
|
+
this.getAvatarSize = (size, isMultiline) => {
|
|
2714
2657
|
return isMultiline ? size : +size - 6;
|
|
2715
2658
|
};
|
|
2716
|
-
return _this;
|
|
2717
2659
|
}
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2660
|
+
render() {
|
|
2661
|
+
const { size, avatarUrl, title, subtitle, isLoading, isDisabled } = this.props;
|
|
2662
|
+
const itemSize = size && size !== 'none' ? size : defaultSize;
|
|
2663
|
+
const isMultiline = !!(title && subtitle);
|
|
2722
2664
|
return (React.createElement(FlexItems_1.FlexCell, { width: 'auto', cx: css.root },
|
|
2723
|
-
React.createElement(FlexItems_1.FlexRow, { size: itemSize, cx: isMultiline && css[
|
|
2665
|
+
React.createElement(FlexItems_1.FlexRow, { size: itemSize, cx: isMultiline && css[`multiline-vertical-padding-${itemSize}`], spacing: '12' },
|
|
2724
2666
|
avatarUrl && React.createElement(widgets_1.Avatar, { isLoading: isLoading, img: avatarUrl, size: this.getAvatarSize(itemSize, isMultiline).toString() }),
|
|
2725
2667
|
React.createElement(FlexItems_1.FlexCell, { width: 'auto' },
|
|
2726
2668
|
title && React.createElement(typography_1.Text, { size: itemSize, cx: css.text, color: isDisabled ? 'disabled' : 'primary' }, isLoading ? React.createElement(typography_1.TextPlaceholder, { wordsCount: 2 }) : title),
|
|
2727
2669
|
subtitle && React.createElement(typography_1.Text, { size: itemSize, color: 'disabled', cx: css.text }, isLoading ? React.createElement(typography_1.TextPlaceholder, { wordsCount: 2 }) : subtitle)))));
|
|
2728
|
-
}
|
|
2729
|
-
|
|
2730
|
-
}(React.Component));
|
|
2670
|
+
}
|
|
2671
|
+
}
|
|
2731
2672
|
exports.PickerItem = PickerItem;
|
|
2732
2673
|
|
|
2733
2674
|
|
|
@@ -2744,53 +2685,52 @@ exports.PickerItem = PickerItem;
|
|
|
2744
2685
|
|
|
2745
2686
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2746
2687
|
exports.PickerList = void 0;
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
(
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
return react_1.default.createElement(PickerListItem_1.PickerListItem, (0, tslib_1.__assign)({ getName: function (item) { return _this.getName(item); } }, row, { key: row.rowKey }));
|
|
2688
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2689
|
+
const react_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! react */ "react"));
|
|
2690
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
2691
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
2692
|
+
const typography_1 = __webpack_require__(/*! ../typography */ "./components/typography/index.ts");
|
|
2693
|
+
const buttons_1 = __webpack_require__(/*! ../buttons */ "./components/buttons/index.ts");
|
|
2694
|
+
const PickerListItem_1 = __webpack_require__(/*! ./PickerListItem */ "./components/pickers/PickerListItem.tsx");
|
|
2695
|
+
const PickerModal_1 = __webpack_require__(/*! ./PickerModal */ "./components/pickers/PickerModal.tsx");
|
|
2696
|
+
class PickerList extends uui_components_1.PickerListBase {
|
|
2697
|
+
constructor() {
|
|
2698
|
+
super(...arguments);
|
|
2699
|
+
this.sessionStartTime = (new Date()).getTime();
|
|
2700
|
+
this.renderRow = (row) => {
|
|
2701
|
+
return react_1.default.createElement(PickerListItem_1.PickerListItem, Object.assign({ getName: item => this.getName(item) }, row, { key: row.rowKey }));
|
|
2762
2702
|
};
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
.
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2703
|
+
this.handleShowPicker = () => {
|
|
2704
|
+
this.context.uuiModals
|
|
2705
|
+
.show(props => (react_1.default.createElement(PickerModal_1.PickerModal, Object.assign({}, props, this.props, { caption: this.props.placeholder || `Please select ${this.getEntityName() ? this.getEntityName() : ""}`, initialValue: this.props.value, selectionMode: this.props.selectionMode, valueType: this.props.valueType }))))
|
|
2706
|
+
.then((value) => {
|
|
2707
|
+
this.appendLastSelected([...this.getSelectedIdsArray(value)]);
|
|
2708
|
+
this.props.onValueChange(value);
|
|
2709
|
+
});
|
|
2770
2710
|
};
|
|
2771
|
-
|
|
2772
|
-
return _this;
|
|
2711
|
+
this.defaultRenderToggler = (props) => (react_1.default.createElement(buttons_1.LinkButton, Object.assign({ caption: 'Show all' }, props)));
|
|
2773
2712
|
}
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
var renderRow = this.props.renderRow || this.renderRow;
|
|
2713
|
+
render() {
|
|
2714
|
+
const view = this.getView();
|
|
2715
|
+
const viewProps = view.getListProps();
|
|
2716
|
+
const selectedRows = view.getSelectedRows();
|
|
2717
|
+
const rows = this.buildRowsList();
|
|
2718
|
+
const showPicker = viewProps.totalCount == null || viewProps.totalCount > this.getMaxDefaultItems();
|
|
2719
|
+
const renderToggler = this.props.renderModalToggler || this.defaultRenderToggler;
|
|
2720
|
+
const renderRow = this.props.renderRow || this.renderRow;
|
|
2783
2721
|
return (react_1.default.createElement("div", null,
|
|
2784
2722
|
!rows.length && (this.props.noOptionsMessage ?
|
|
2785
2723
|
this.props.noOptionsMessage :
|
|
2786
2724
|
react_1.default.createElement(typography_1.Text, { color: 'secondary', size: this.props.size }, "No options available")),
|
|
2787
|
-
rows.map(
|
|
2788
|
-
showPicker && renderToggler({
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
}
|
|
2725
|
+
rows.map(row => renderRow(row)),
|
|
2726
|
+
showPicker && renderToggler({
|
|
2727
|
+
onClick: this.handleShowPicker,
|
|
2728
|
+
caption: this.getModalTogglerCaption(viewProps.totalCount, selectedRows.length),
|
|
2729
|
+
}, selectedRows)));
|
|
2730
|
+
}
|
|
2731
|
+
}
|
|
2793
2732
|
exports.PickerList = PickerList;
|
|
2733
|
+
PickerList.contextType = uui_core_1.UuiContext;
|
|
2794
2734
|
|
|
2795
2735
|
|
|
2796
2736
|
/***/ }),
|
|
@@ -2803,7 +2743,7 @@ exports.PickerList = PickerList;
|
|
|
2803
2743
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2804
2744
|
|
|
2805
2745
|
// extracted by mini-css-extract-plugin
|
|
2806
|
-
module.exports = {"row":"
|
|
2746
|
+
module.exports = {"row":"_3au2w"};
|
|
2807
2747
|
|
|
2808
2748
|
/***/ }),
|
|
2809
2749
|
|
|
@@ -2818,36 +2758,30 @@ module.exports = {"row":"_3FuMH"};
|
|
|
2818
2758
|
|
|
2819
2759
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2820
2760
|
exports.PickerListItem = void 0;
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
(
|
|
2828
|
-
|
|
2829
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
2830
|
-
}
|
|
2831
|
-
PickerListItem.prototype.render = function () {
|
|
2832
|
-
var _this = this;
|
|
2833
|
-
var label;
|
|
2761
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2762
|
+
const react_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! react */ "react"));
|
|
2763
|
+
const inputs_1 = __webpack_require__(/*! ../inputs */ "./components/inputs/index.ts");
|
|
2764
|
+
const typography_1 = __webpack_require__(/*! ../typography */ "./components/typography/index.ts");
|
|
2765
|
+
const PickerListItem_scss_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! ./PickerListItem.scss */ "./components/pickers/PickerListItem.scss"));
|
|
2766
|
+
class PickerListItem extends react_1.default.Component {
|
|
2767
|
+
render() {
|
|
2768
|
+
let label;
|
|
2834
2769
|
if (this.props.isLoading) {
|
|
2835
2770
|
label = react_1.default.createElement(typography_1.TextPlaceholder, { wordsCount: 2 });
|
|
2836
2771
|
}
|
|
2837
2772
|
else {
|
|
2838
2773
|
label = this.props.getName(this.props.value);
|
|
2839
2774
|
}
|
|
2840
|
-
|
|
2775
|
+
let component;
|
|
2841
2776
|
if (this.props.checkbox) {
|
|
2842
|
-
component = react_1.default.createElement(inputs_1.Checkbox,
|
|
2777
|
+
component = react_1.default.createElement(inputs_1.Checkbox, Object.assign({}, this.props.checkbox, { isDisabled: this.props.isLoading || this.props.checkbox.isDisabled, label: label, value: this.props.isChecked, onValueChange: () => this.props.onCheck(this.props) }));
|
|
2843
2778
|
}
|
|
2844
2779
|
else {
|
|
2845
|
-
component = react_1.default.createElement(inputs_1.RadioInput, { label: label, value: this.props.isSelected, isDisabled: this.props.isLoading || !this.props.isSelectable, onValueChange:
|
|
2780
|
+
component = react_1.default.createElement(inputs_1.RadioInput, { label: label, value: this.props.isSelected, isDisabled: this.props.isLoading || !this.props.isSelectable, onValueChange: () => this.props.onSelect(this.props) });
|
|
2846
2781
|
}
|
|
2847
2782
|
return react_1.default.createElement("div", { className: PickerListItem_scss_1.default.row }, component);
|
|
2848
|
-
}
|
|
2849
|
-
|
|
2850
|
-
}(react_1.default.Component));
|
|
2783
|
+
}
|
|
2784
|
+
}
|
|
2851
2785
|
exports.PickerListItem = PickerListItem;
|
|
2852
2786
|
|
|
2853
2787
|
|
|
@@ -2861,7 +2795,7 @@ exports.PickerListItem = PickerListItem;
|
|
|
2861
2795
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2862
2796
|
|
|
2863
2797
|
// extracted by mini-css-extract-plugin
|
|
2864
|
-
module.exports = {"sub-header-wrapper":"
|
|
2798
|
+
module.exports = {"sub-header-wrapper":"_1UnXc","subHeaderWrapper":"_1UnXc","switch":"_3ispc"};
|
|
2865
2799
|
|
|
2866
2800
|
/***/ }),
|
|
2867
2801
|
|
|
@@ -2876,83 +2810,71 @@ module.exports = {"sub-header-wrapper":"XZ3sL","subHeaderWrapper":"XZ3sL","switc
|
|
|
2876
2810
|
|
|
2877
2811
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2878
2812
|
exports.PickerModal = exports.PickerModalImpl = void 0;
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
(
|
|
2894
|
-
|
|
2895
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
2813
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2814
|
+
const React = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
2815
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./PickerModal.scss */ "./components/pickers/PickerModal.scss"));
|
|
2816
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
2817
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
2818
|
+
const DataPickerBody_1 = __webpack_require__(/*! ./DataPickerBody */ "./components/pickers/DataPickerBody.tsx");
|
|
2819
|
+
const FlexItems_1 = __webpack_require__(/*! ../layout/FlexItems */ "./components/layout/FlexItems/index.ts");
|
|
2820
|
+
const overlays_1 = __webpack_require__(/*! ../overlays */ "./components/overlays/index.ts");
|
|
2821
|
+
const inputs_1 = __webpack_require__(/*! ../inputs */ "./components/inputs/index.ts");
|
|
2822
|
+
const buttons_1 = __webpack_require__(/*! ../buttons */ "./components/buttons/index.ts");
|
|
2823
|
+
const DataPickerRow_1 = __webpack_require__(/*! ./DataPickerRow */ "./components/pickers/DataPickerRow.tsx");
|
|
2824
|
+
const typography_1 = __webpack_require__(/*! ../typography */ "./components/typography/index.ts");
|
|
2825
|
+
const i18n_1 = __webpack_require__(/*! ../../i18n */ "./i18n.ts");
|
|
2826
|
+
class PickerModalImpl extends uui_components_1.PickerModalBase {
|
|
2827
|
+
renderRow(rowProps) {
|
|
2828
|
+
return this.props.renderRow ? this.props.renderRow(rowProps) : (React.createElement(DataPickerRow_1.DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, borderBottom: 'none', padding: '24', size: '36', renderItem: (i) => React.createElement(typography_1.Text, { size: '36' }, rowProps.isLoading ? React.createElement(typography_1.TextPlaceholder, { wordsCount: 2 }) : this.getName(i)) })));
|
|
2896
2829
|
}
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
};
|
|
2901
|
-
PickerModalImpl.prototype.renderFooter = function (selectedDataRows) {
|
|
2902
|
-
var _this = this;
|
|
2903
|
-
var hasSelection = selectedDataRows.length > 0;
|
|
2904
|
-
var view = this.getView();
|
|
2830
|
+
renderFooter(selectedDataRows) {
|
|
2831
|
+
const hasSelection = selectedDataRows.length > 0;
|
|
2832
|
+
const view = this.getView();
|
|
2905
2833
|
return React.createElement(React.Fragment, null,
|
|
2906
|
-
view.selectAll && React.createElement(buttons_1.LinkButton, { caption: hasSelection ? i18n_1.i18n.pickerModal.clearAllButton : i18n_1.i18n.pickerModal.selectAllButton, onClick: hasSelection ?
|
|
2834
|
+
view.selectAll && React.createElement(buttons_1.LinkButton, { caption: hasSelection ? i18n_1.i18n.pickerModal.clearAllButton : i18n_1.i18n.pickerModal.selectAllButton, onClick: hasSelection ? () => this.clearSelection() : () => view.selectAll.onValueChange(true) }),
|
|
2907
2835
|
React.createElement(FlexItems_1.FlexSpacer, null),
|
|
2908
|
-
React.createElement(buttons_1.Button, { mode: 'outline', color: 'secondary', caption: i18n_1.i18n.pickerModal.cancelButton, onClick:
|
|
2909
|
-
React.createElement(buttons_1.Button, { color: 'accent', caption: i18n_1.i18n.pickerModal.selectButton, onClick:
|
|
2910
|
-
}
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
return (React.createElement(overlays_1.ModalBlocker, (0, tslib_1.__assign)({}, this.props),
|
|
2836
|
+
React.createElement(buttons_1.Button, { mode: 'outline', color: 'secondary', caption: i18n_1.i18n.pickerModal.cancelButton, onClick: () => this.props.abort() }),
|
|
2837
|
+
React.createElement(buttons_1.Button, { color: 'accent', caption: i18n_1.i18n.pickerModal.selectButton, onClick: () => this.props.success(null) }));
|
|
2838
|
+
}
|
|
2839
|
+
render() {
|
|
2840
|
+
const view = this.getView();
|
|
2841
|
+
const dataRows = this.getRows();
|
|
2842
|
+
const selectedDataRows = view.getSelectedRows();
|
|
2843
|
+
const rows = dataRows.map(props => this.renderRow(props));
|
|
2844
|
+
return (React.createElement(overlays_1.ModalBlocker, Object.assign({}, this.props),
|
|
2918
2845
|
React.createElement(overlays_1.ModalWindow, { width: 600, height: 700 },
|
|
2919
|
-
React.createElement(overlays_1.ModalHeader, { borderBottom: true, title: this.props.caption || i18n_1.i18n.pickerModal.headerTitle, onClose:
|
|
2846
|
+
React.createElement(overlays_1.ModalHeader, { borderBottom: true, title: this.props.caption || i18n_1.i18n.pickerModal.headerTitle, onClose: () => this.props.abort() }),
|
|
2920
2847
|
React.createElement(FlexItems_1.FlexCell, { cx: css.subHeaderWrapper },
|
|
2921
2848
|
React.createElement(FlexItems_1.FlexRow, { vPadding: '24' },
|
|
2922
|
-
React.createElement(inputs_1.SearchInput,
|
|
2923
|
-
value:
|
|
2924
|
-
onValueChange:
|
|
2849
|
+
React.createElement(inputs_1.SearchInput, Object.assign({}, this.lens.prop('dataSourceState').prop('search').toProps(), { onKeyDown: (e) => (0, uui_components_1.handleDataSourceKeyboard)({
|
|
2850
|
+
value: this.getDataSourceState(),
|
|
2851
|
+
onValueChange: this.handleDataSourceValueChange,
|
|
2925
2852
|
listView: view,
|
|
2926
2853
|
rows: dataRows,
|
|
2927
2854
|
editMode: 'modal',
|
|
2928
|
-
}, e)
|
|
2929
|
-
!this.isSingleSelect() && React.createElement(inputs_1.Switch,
|
|
2855
|
+
}, e), autoFocus: true, placeholder: i18n_1.i18n.pickerModal.searchPlaceholder }))),
|
|
2856
|
+
!this.isSingleSelect() && React.createElement(inputs_1.Switch, Object.assign({ cx: css.switch, size: '18' }, this.stateLens.prop('showSelected').toProps(), { isDisabled: selectedDataRows.length < 1, label: 'Show only selected' })),
|
|
2930
2857
|
this.props.renderFilter && React.createElement(FlexItems_1.FlexCell, { grow: 2 }, this.props.renderFilter(this.lens.prop('dataSourceState').prop('filter').toProps()))),
|
|
2931
|
-
React.createElement(DataPickerBody_1.DataPickerBody,
|
|
2932
|
-
search:
|
|
2933
|
-
onClose:
|
|
2934
|
-
})
|
|
2858
|
+
React.createElement(DataPickerBody_1.DataPickerBody, Object.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 && (() => this.props.renderNotFound({
|
|
2859
|
+
search: this.state.dataSourceState.search,
|
|
2860
|
+
onClose: () => this.props.success(selectedDataRows),
|
|
2861
|
+
})), editMode: 'modal' })),
|
|
2935
2862
|
React.createElement(overlays_1.ModalFooter, { borderTop: true, padding: '24', vPadding: '24' }, this.props.renderFooter
|
|
2936
2863
|
? this.props.renderFooter(this.getFooterProps())
|
|
2937
2864
|
: this.renderFooter(selectedDataRows)))));
|
|
2938
|
-
}
|
|
2939
|
-
|
|
2940
|
-
}(uui_components_1.PickerModalBase));
|
|
2865
|
+
}
|
|
2866
|
+
}
|
|
2941
2867
|
exports.PickerModalImpl = PickerModalImpl;
|
|
2942
|
-
|
|
2943
|
-
(
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
_this.lens = uui_core_1.Lens.onState(_this);
|
|
2948
|
-
return _this;
|
|
2868
|
+
class PickerModal extends React.Component {
|
|
2869
|
+
constructor() {
|
|
2870
|
+
super(...arguments);
|
|
2871
|
+
this.state = { selection: this.props.initialValue };
|
|
2872
|
+
this.lens = uui_core_1.Lens.onState(this);
|
|
2949
2873
|
}
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
return PickerModal;
|
|
2955
|
-
}(React.Component));
|
|
2874
|
+
render() {
|
|
2875
|
+
return React.createElement(PickerModalImpl, Object.assign({}, this.props, this.lens.prop('selection').toProps(), { success: () => this.props.success(this.state.selection) }));
|
|
2876
|
+
}
|
|
2877
|
+
}
|
|
2956
2878
|
exports.PickerModal = PickerModal;
|
|
2957
2879
|
|
|
2958
2880
|
|
|
@@ -2966,7 +2888,7 @@ exports.PickerModal = PickerModal;
|
|
|
2966
2888
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2967
2889
|
|
|
2968
2890
|
// extracted by mini-css-extract-plugin
|
|
2969
|
-
module.exports = {"root":"
|
|
2891
|
+
module.exports = {"root":"bLiuq","mode-form":"_1eBBR","modeForm":"_1eBBR","mode-cell":"cASlj","modeCell":"cASlj","size-24":"_1gKeM","size24":"_1gKeM","size-30":"ySojn","size30":"ySojn","size-36":"_2yS0W","size36":"_2yS0W","size-42":"_14dN1","size42":"_14dN1","size-48":"_3eZEJ","size48":"_3eZEJ"};
|
|
2970
2892
|
|
|
2971
2893
|
/***/ }),
|
|
2972
2894
|
|
|
@@ -2981,17 +2903,17 @@ module.exports = {"root":"_1nM23","mode-form":"_1cOPx","modeForm":"_1cOPx","mode
|
|
|
2981
2903
|
|
|
2982
2904
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2983
2905
|
exports.PickerToggler = void 0;
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2906
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2907
|
+
const React = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
2908
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
2909
|
+
const typography_1 = __webpack_require__(/*! ../typography */ "./components/typography/index.ts");
|
|
2910
|
+
const icons_1 = __webpack_require__(/*! ../../icons/icons */ "./icons/icons.tsx");
|
|
2911
|
+
const widgets_1 = __webpack_require__(/*! ../widgets */ "./components/widgets/index.ts");
|
|
2912
|
+
const types = (0, tslib_1.__importStar)(__webpack_require__(/*! ../types */ "./components/types.ts"));
|
|
2991
2913
|
__webpack_require__(/*! ../../assets/styles/variables/pickers/pickerToggler.scss */ "./assets/styles/variables/pickers/pickerToggler.scss");
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2914
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./PickerToggler.scss */ "./components/pickers/PickerToggler.scss"));
|
|
2915
|
+
const defaultSize = '36';
|
|
2916
|
+
const defaultMode = types.EditMode.FORM;
|
|
2995
2917
|
function applyPickerTogglerMods(mods) {
|
|
2996
2918
|
return [
|
|
2997
2919
|
'picker-toggler-vars',
|
|
@@ -3001,7 +2923,7 @@ function applyPickerTogglerMods(mods) {
|
|
|
3001
2923
|
];
|
|
3002
2924
|
}
|
|
3003
2925
|
function PickerTogglerComponent(props, ref) {
|
|
3004
|
-
|
|
2926
|
+
const getPickerTogglerButtonSize = (propSize) => {
|
|
3005
2927
|
switch (propSize) {
|
|
3006
2928
|
case '48':
|
|
3007
2929
|
return '42';
|
|
@@ -3015,9 +2937,9 @@ function PickerTogglerComponent(props, ref) {
|
|
|
3015
2937
|
return '18';
|
|
3016
2938
|
}
|
|
3017
2939
|
};
|
|
3018
|
-
|
|
2940
|
+
const getCaption = (row) => {
|
|
3019
2941
|
var _a;
|
|
3020
|
-
|
|
2942
|
+
const maxItems = (props.maxItems || props.maxItems === 0) ? props.maxItems : 100;
|
|
3021
2943
|
if (row.isLoading) {
|
|
3022
2944
|
return React.createElement(typography_1.TextPlaceholder, null);
|
|
3023
2945
|
}
|
|
@@ -3028,11 +2950,14 @@ function PickerTogglerComponent(props, ref) {
|
|
|
3028
2950
|
return props.getName(row.value);
|
|
3029
2951
|
}
|
|
3030
2952
|
};
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
2953
|
+
const renderItem = (row) => {
|
|
2954
|
+
var _a;
|
|
2955
|
+
return (React.createElement(widgets_1.Tag, { key: row.id, caption: getCaption(row), tabIndex: -1, size: props.size ? getPickerTogglerButtonSize(props.size) : '30', onClear: e => {
|
|
2956
|
+
row.onCheck && row.onCheck(row);
|
|
2957
|
+
e.stopPropagation();
|
|
2958
|
+
}, isDisabled: props.isDisabled || props.isReadonly || ((_a = row === null || row === void 0 ? void 0 : row.checkbox) === null || _a === void 0 ? void 0 : _a.isDisabled) }));
|
|
2959
|
+
};
|
|
2960
|
+
return (React.createElement(uui_components_1.PickerToggler, Object.assign({}, props, { ref: ref, cx: [applyPickerTogglerMods(props), props.cx], renderItem: !!props.renderItem ? props.renderItem : renderItem, getName: (item) => props.getName ? props.getName(item) : item, cancelIcon: icons_1.systemIcons[props.size || defaultSize].clear, dropdownIcon: icons_1.systemIcons[props.size || defaultSize].foldingArrow })));
|
|
3036
2961
|
}
|
|
3037
2962
|
exports.PickerToggler = React.forwardRef(PickerTogglerComponent);
|
|
3038
2963
|
|
|
@@ -3049,7 +2974,7 @@ exports.PickerToggler = React.forwardRef(PickerTogglerComponent);
|
|
|
3049
2974
|
"use strict";
|
|
3050
2975
|
|
|
3051
2976
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3052
|
-
|
|
2977
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3053
2978
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DataPickerBody */ "./components/pickers/DataPickerBody.tsx"), exports);
|
|
3054
2979
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DataPickerFooter */ "./components/pickers/DataPickerFooter.tsx"), exports);
|
|
3055
2980
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DataPickerHeader */ "./components/pickers/DataPickerHeader.tsx"), exports);
|
|
@@ -3073,7 +2998,7 @@ var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.
|
|
|
3073
2998
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3074
2999
|
|
|
3075
3000
|
// extracted by mini-css-extract-plugin
|
|
3076
|
-
module.exports = {"cell":"
|
|
3001
|
+
module.exports = {"cell":"AN8pM","wrapper":"_2Krjd","align-widgets-top":"_1evKg","alignWidgetsTop":"_1evKg","size-24":"_2voJw","size24":"_2voJw","folding-arrow":"_3HNqa","foldingArrow":"_3HNqa","size-30":"_91rET","size30":"_91rET","size-36":"_2WSyT","size36":"_2WSyT","size-42":"_2nC8t","size42":"_2nC8t","size-48":"wmMPW","size48":"wmMPW","size-60":"_3Apfp","size60":"_3Apfp","align-widgets-center":"_2Sbv2","alignWidgetsCenter":"_2Sbv2","padding-12":"_363JH","padding12":"_363JH","padding-24":"NXHy0","padding24":"NXHy0","padding-left-12":"_1i7-D","paddingLeft12":"_1i7-D","padding-left-24":"_2AvHf","paddingLeft24":"_2AvHf","padding-right-24":"rhqd8","paddingRight24":"rhqd8","drag-handle":"_2MfK-","dragHandle":"_2MfK-","checkbox":"_2BMjs","indent":"_1GcXn","folding-arrow-12":"_1BnHa","foldingArrow12":"_1BnHa","folding-arrow-18":"Z_mNq","foldingArrow18":"Z_mNq"};
|
|
3077
3002
|
|
|
3078
3003
|
/***/ }),
|
|
3079
3004
|
|
|
@@ -3088,44 +3013,41 @@ module.exports = {"cell":"_5jifw","wrapper":"_31fEZ","align-widgets-top":"_1DtRS
|
|
|
3088
3013
|
|
|
3089
3014
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3090
3015
|
exports.DataTableCell = void 0;
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
(
|
|
3102
|
-
function DataTableCell() {
|
|
3016
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3017
|
+
const React = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
3018
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
3019
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
3020
|
+
const typography_1 = __webpack_require__(/*! ../typography */ "./components/typography/index.ts");
|
|
3021
|
+
const layout_1 = __webpack_require__(/*! ../layout */ "./components/layout/index.ts");
|
|
3022
|
+
const inputs_1 = __webpack_require__(/*! ../inputs */ "./components/inputs/index.ts");
|
|
3023
|
+
const tree_folding_arrow_svg_1 = __webpack_require__(/*! ../../icons/tree_folding_arrow.svg */ "./icons/tree_folding_arrow.svg");
|
|
3024
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./DataTableCell.scss */ "./components/tables/DataTableCell.scss"));
|
|
3025
|
+
class DataTableCell extends React.Component {
|
|
3026
|
+
constructor() {
|
|
3103
3027
|
var _a, _b, _c;
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3028
|
+
super(...arguments);
|
|
3029
|
+
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));
|
|
3030
|
+
this.isDraggable = () => { 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); };
|
|
3031
|
+
this.getContent = () => {
|
|
3108
3032
|
var _a;
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
? React.createElement(typography_1.Text, { size:
|
|
3033
|
+
const row = this.props.rowProps;
|
|
3034
|
+
const additionalItemSize = +this.props.size < 30 ? '12' : '18';
|
|
3035
|
+
const cellContent = row.isLoading
|
|
3036
|
+
? React.createElement(typography_1.Text, { size: this.props.size != '60' ? this.props.size : '48' },
|
|
3113
3037
|
React.createElement(typography_1.TextPlaceholder, null))
|
|
3114
|
-
:
|
|
3038
|
+
: this.props.column.render(this.props.rowProps.value, this.props.rowProps);
|
|
3115
3039
|
return (React.createElement(React.Fragment, null,
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
React.createElement(uui_components_1.IconContainer, { key: 'icon', icon: tree_folding_arrow_svg_1.ReactComponent, cx: [css.foldingArrow, css[
|
|
3040
|
+
this.props.isFirstColumn && this.isDraggable() && React.createElement(uui_components_1.DragHandle, { cx: css.dragHandle }),
|
|
3041
|
+
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: () => row.onCheck(row), isDisabled: row.checkbox.isDisabled, isInvalid: row.checkbox.isInvalid }),
|
|
3042
|
+
this.props.isFirstColumn && row.indent > 0 && (React.createElement("div", { key: 'fold', className: css.indent, style: { marginLeft: (row.indent - 1) * 24 } }, row.isFoldable &&
|
|
3043
|
+
React.createElement(uui_components_1.IconContainer, { key: 'icon', icon: tree_folding_arrow_svg_1.ReactComponent, cx: [css.foldingArrow, css[`folding-arrow-${additionalItemSize}`], uui_core_1.uuiMarkers.clickable], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row) }))),
|
|
3120
3044
|
cellContent));
|
|
3121
3045
|
};
|
|
3122
|
-
return _this;
|
|
3123
3046
|
}
|
|
3124
|
-
|
|
3125
|
-
return (React.createElement(layout_1.FlexCell,
|
|
3126
|
-
}
|
|
3127
|
-
|
|
3128
|
-
}(React.Component));
|
|
3047
|
+
render() {
|
|
3048
|
+
return (React.createElement(layout_1.FlexCell, Object.assign({}, this.props.column, { rawProps: { role: 'cell' }, cx: (0, uui_core_1.cx)(css.cell, this.props.isFirstColumn && this.hasDepsWidgets && css.wrapper, css['size-' + (this.props.size || '36')], css[`padding-${this.props.padding || '12'}`], this.props.isFirstColumn && css[`padding-left-${this.props.padding || '24'}`], this.props.isLastColumn && css['padding-right-24'], this.props.column.cx, css[`align-widgets-${this.props.alignActions || 'top'}`]) }), this.getContent()));
|
|
3049
|
+
}
|
|
3050
|
+
}
|
|
3129
3051
|
exports.DataTableCell = DataTableCell;
|
|
3130
3052
|
|
|
3131
3053
|
|
|
@@ -3139,7 +3061,7 @@ exports.DataTableCell = DataTableCell;
|
|
|
3139
3061
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3140
3062
|
|
|
3141
3063
|
// extracted by mini-css-extract-plugin
|
|
3142
|
-
module.exports = {"container":"
|
|
3064
|
+
module.exports = {"container":"_1RJjp","target":"_2fLje","panel":"_301i5","divider":"T4MUw","input":"_3ibuP","notification":"_2XfLJ"};
|
|
3143
3065
|
|
|
3144
3066
|
/***/ }),
|
|
3145
3067
|
|
|
@@ -3154,50 +3076,46 @@ module.exports = {"container":"WE856","target":"_2JyBJ","panel":"_3wg9z","divide
|
|
|
3154
3076
|
|
|
3155
3077
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3156
3078
|
exports.Preset = void 0;
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
var acceptRenaming = (0, react_1.useCallback)(function () {
|
|
3079
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3080
|
+
const react_1 = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
3081
|
+
const __1 = __webpack_require__(/*! ../../ */ "./components/index.ts");
|
|
3082
|
+
const 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");
|
|
3083
|
+
const Preset_scss_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! ./Preset.scss */ "./components/tables/Presets/Preset.scss"));
|
|
3084
|
+
const Preset = ({ preset, isActive, hasChanged, choosePreset, duplicatePreset, deletePreset, updatePreset, }) => {
|
|
3085
|
+
const [isRenaming, setIsRenaming] = (0, react_1.useState)(false);
|
|
3086
|
+
const [renamingValue, setRenamingValue] = (0, react_1.useState)("");
|
|
3087
|
+
const handleChoose = (0, react_1.useCallback)(() => choosePreset(preset), [preset, choosePreset]);
|
|
3088
|
+
const handleUpdate = (0, react_1.useCallback)(() => updatePreset(preset), [preset, updatePreset]);
|
|
3089
|
+
const acceptRenaming = (0, react_1.useCallback)(() => {
|
|
3169
3090
|
if (renamingValue) {
|
|
3170
|
-
|
|
3091
|
+
const newPreset = Object.assign(Object.assign({}, preset), { name: renamingValue });
|
|
3171
3092
|
updatePreset(newPreset);
|
|
3172
3093
|
}
|
|
3173
3094
|
setIsRenaming(false);
|
|
3174
3095
|
}, [renamingValue, updatePreset]);
|
|
3175
|
-
|
|
3176
|
-
|
|
3096
|
+
const renderBody = (0, react_1.useCallback)((props) => {
|
|
3097
|
+
const handleDuplicate = () => {
|
|
3177
3098
|
duplicatePreset(preset);
|
|
3178
3099
|
props.onClose();
|
|
3179
3100
|
};
|
|
3180
|
-
|
|
3101
|
+
const startRenaming = () => {
|
|
3181
3102
|
setIsRenaming(true);
|
|
3182
3103
|
setRenamingValue(preset.name);
|
|
3183
3104
|
props.onClose();
|
|
3184
3105
|
};
|
|
3185
|
-
|
|
3106
|
+
const handleDelete = () => {
|
|
3186
3107
|
deletePreset(preset);
|
|
3187
|
-
if (isActive) {
|
|
3188
|
-
resetToDefault();
|
|
3189
|
-
}
|
|
3190
3108
|
props.onClose();
|
|
3191
3109
|
};
|
|
3192
|
-
|
|
3110
|
+
const update = () => {
|
|
3193
3111
|
handleUpdate();
|
|
3194
3112
|
props.onClose();
|
|
3195
3113
|
};
|
|
3196
|
-
|
|
3114
|
+
const choose = () => {
|
|
3197
3115
|
choosePreset(preset);
|
|
3198
3116
|
props.onClose();
|
|
3199
3117
|
};
|
|
3200
|
-
return (react_1.default.createElement(__1.DropdownMenuBody,
|
|
3118
|
+
return (react_1.default.createElement(__1.DropdownMenuBody, Object.assign({}, props),
|
|
3201
3119
|
react_1.default.createElement(__1.DropdownMenuButton, { caption: 'Duplicate', onClick: handleDuplicate }),
|
|
3202
3120
|
react_1.default.createElement(__1.DropdownMenuButton, { caption: 'Rename', onClick: startRenaming }),
|
|
3203
3121
|
react_1.default.createElement(__1.DropdownMenuButton, { caption: 'Update', onClick: update, isDisabled: !hasChanged }),
|
|
@@ -3205,8 +3123,8 @@ var Preset = function (_a) {
|
|
|
3205
3123
|
react_1.default.createElement(__1.DropdownMenuSplitter, null),
|
|
3206
3124
|
react_1.default.createElement(__1.DropdownMenuButton, { caption: 'Discard all changes', onClick: choose, isDisabled: !hasChanged })));
|
|
3207
3125
|
}, [preset, duplicatePreset, deletePreset, isActive, choosePreset, hasChanged]);
|
|
3208
|
-
|
|
3209
|
-
return (react_1.default.createElement(__1.Button,
|
|
3126
|
+
const renderTarget = (0, react_1.useCallback)((props) => {
|
|
3127
|
+
return (react_1.default.createElement(__1.Button, Object.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] })));
|
|
3210
3128
|
}, [preset, isActive, hasChanged]);
|
|
3211
3129
|
return (react_1.default.createElement(react_1.default.Fragment, null, isRenaming
|
|
3212
3130
|
? (react_1.default.createElement(__1.TextInput, { value: renamingValue, onValueChange: setRenamingValue, size: '24', onAccept: acceptRenaming, onBlur: acceptRenaming, cx: Preset_scss_1.default.input, autoFocus: true }))
|
|
@@ -3227,7 +3145,7 @@ exports.Preset = Preset;
|
|
|
3227
3145
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3228
3146
|
|
|
3229
3147
|
// extracted by mini-css-extract-plugin
|
|
3230
|
-
module.exports = {"row":"
|
|
3148
|
+
module.exports = {"row":"_2fTAk"};
|
|
3231
3149
|
|
|
3232
3150
|
/***/ }),
|
|
3233
3151
|
|
|
@@ -3242,26 +3160,24 @@ module.exports = {"row":"C1P2j"};
|
|
|
3242
3160
|
|
|
3243
3161
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3244
3162
|
exports.Presets = void 0;
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
var saveNewPreset = (0, react_1.useCallback)(function () {
|
|
3163
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3164
|
+
const react_1 = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
3165
|
+
const index_1 = __webpack_require__(/*! ../../index */ "./components/index.ts");
|
|
3166
|
+
const layout_1 = __webpack_require__(/*! ../../layout */ "./components/layout/index.ts");
|
|
3167
|
+
const Preset_1 = __webpack_require__(/*! ./Preset */ "./components/tables/Presets/Preset.tsx");
|
|
3168
|
+
const Presets_scss_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! ./Presets.scss */ "./components/tables/Presets/Presets.scss"));
|
|
3169
|
+
const PresetsImpl = ({ tableState, presets, createNewPreset, activePresetId, hasPresetChanged, choosePreset, duplicatePreset, deletePreset, updatePreset }) => {
|
|
3170
|
+
const newPresetTitle = "New preset";
|
|
3171
|
+
const saveNewPreset = (0, react_1.useCallback)(() => {
|
|
3255
3172
|
createNewPreset(newPresetTitle);
|
|
3256
3173
|
}, [createNewPreset, newPresetTitle]);
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
return
|
|
3260
|
-
}, [
|
|
3174
|
+
const activePreset = presets.find(p => p.id === activePresetId);
|
|
3175
|
+
const hasActivePresetChanged = (0, react_1.useMemo)(() => {
|
|
3176
|
+
return hasPresetChanged(activePreset);
|
|
3177
|
+
}, [activePreset, tableState.filter]);
|
|
3261
3178
|
return (react_1.default.createElement(layout_1.FlexRow, { spacing: "6", size: "48", padding: "18", cx: Presets_scss_1.default.row },
|
|
3262
|
-
react_1.default.createElement(
|
|
3263
|
-
|
|
3264
|
-
hasActivePresetChanged && (react_1.default.createElement(index_1.Button, { caption: "Save as ".concat(newPresetTitle), onClick: saveNewPreset, color: 'accent', mode: 'solid', size: '24' }))));
|
|
3179
|
+
presets.map(preset => (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, key: preset.id }))),
|
|
3180
|
+
hasActivePresetChanged && (react_1.default.createElement(index_1.Button, { caption: `Save as ${newPresetTitle}`, onClick: saveNewPreset, color: 'accent', mode: 'solid', size: '24' }))));
|
|
3265
3181
|
};
|
|
3266
3182
|
exports.Presets = react_1.default.memo(PresetsImpl);
|
|
3267
3183
|
|
|
@@ -3278,7 +3194,7 @@ exports.Presets = react_1.default.memo(PresetsImpl);
|
|
|
3278
3194
|
"use strict";
|
|
3279
3195
|
|
|
3280
3196
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3281
|
-
|
|
3197
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3282
3198
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Presets */ "./components/tables/Presets/Presets.tsx"), exports);
|
|
3283
3199
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Preset */ "./components/tables/Presets/Preset.tsx"), exports);
|
|
3284
3200
|
|
|
@@ -3295,7 +3211,7 @@ var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.
|
|
|
3295
3211
|
"use strict";
|
|
3296
3212
|
|
|
3297
3213
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3298
|
-
|
|
3214
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3299
3215
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DataTableCell */ "./components/tables/DataTableCell.tsx"), exports);
|
|
3300
3216
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Presets */ "./components/tables/Presets/index.ts"), exports);
|
|
3301
3217
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./types */ "./components/tables/types.ts"), exports);
|
|
@@ -3351,7 +3267,7 @@ var EditMode;
|
|
|
3351
3267
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3352
3268
|
|
|
3353
3269
|
// extracted by mini-css-extract-plugin
|
|
3354
|
-
module.exports = {"root":"
|
|
3270
|
+
module.exports = {"root":"_31qXI"};
|
|
3355
3271
|
|
|
3356
3272
|
/***/ }),
|
|
3357
3273
|
|
|
@@ -3366,22 +3282,22 @@ module.exports = {"root":"ZP8mQ"};
|
|
|
3366
3282
|
|
|
3367
3283
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3368
3284
|
exports.Text = void 0;
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3285
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3286
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Text.scss */ "./components/typography/Text.scss"));
|
|
3287
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
3288
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
3289
|
+
const textLayout_1 = __webpack_require__(/*! ../../helpers/textLayout */ "./helpers/textLayout.tsx");
|
|
3374
3290
|
__webpack_require__(/*! ../../assets/styles/variables/typography/text.scss */ "./assets/styles/variables/typography/text.scss");
|
|
3375
3291
|
__webpack_require__(/*! ../../assets/styles/fonts-variables.scss */ "./assets/styles/fonts-variables.scss");
|
|
3376
3292
|
function applyTextMods(mods) {
|
|
3377
|
-
|
|
3293
|
+
const textClasses = (0, textLayout_1.getTextClasses)({
|
|
3378
3294
|
size: mods.size || '36',
|
|
3379
3295
|
lineHeight: mods.lineHeight,
|
|
3380
3296
|
fontSize: mods.fontSize,
|
|
3381
3297
|
}, false);
|
|
3382
3298
|
return [
|
|
3383
|
-
|
|
3384
|
-
|
|
3299
|
+
`font-${mods.font || 'regular'}`,
|
|
3300
|
+
`text-color-${mods.color || 'primary'}`,
|
|
3385
3301
|
css.root,
|
|
3386
3302
|
].concat(textClasses);
|
|
3387
3303
|
}
|
|
@@ -3398,7 +3314,7 @@ exports.Text = (0, uui_core_1.withMods)(uui_components_1.Text, applyTextMods);
|
|
|
3398
3314
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3399
3315
|
|
|
3400
3316
|
// extracted by mini-css-extract-plugin
|
|
3401
|
-
module.exports = {"container":"
|
|
3317
|
+
module.exports = {"container":"_3XBX8","loading-word":"_1Z4BH","loadingWord":"_1Z4BH","animated-loading":"_1wYYK","animatedLoading":"_1wYYK","skeleton_loading":"_3UwDP","skeletonLoading":"_3UwDP"};
|
|
3402
3318
|
|
|
3403
3319
|
/***/ }),
|
|
3404
3320
|
|
|
@@ -3413,26 +3329,26 @@ module.exports = {"container":"_3m3OR","loading-word":"_1A-WL","loadingWord":"_1
|
|
|
3413
3329
|
|
|
3414
3330
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3415
3331
|
exports.TextPlaceholder = void 0;
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3332
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3333
|
+
const React = (0, tslib_1.__importStar)(__webpack_require__(/*! react */ "react"));
|
|
3334
|
+
const classnames_1 = (0, tslib_1.__importDefault)(__webpack_require__(/*! classnames */ "classnames"));
|
|
3335
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./TextPlaceholder.scss */ "./components/typography/TextPlaceholder.scss"));
|
|
3420
3336
|
__webpack_require__(/*! ../../assets/styles/variables/typography/textPlaceholder.scss */ "./assets/styles/variables/typography/textPlaceholder.scss");
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
for (
|
|
3426
|
-
|
|
3337
|
+
const TextPlaceholder = (props) => {
|
|
3338
|
+
const pattern = `0`;
|
|
3339
|
+
const text = React.useMemo(() => {
|
|
3340
|
+
const words = [];
|
|
3341
|
+
for (let i = 0; i < (props.wordsCount || 1); i++) {
|
|
3342
|
+
let lengthWord = Math.floor(Math.random() * 10 + 8);
|
|
3427
3343
|
words.push(pattern.repeat(lengthWord));
|
|
3428
3344
|
}
|
|
3429
3345
|
return words;
|
|
3430
3346
|
}, [props.wordsCount]);
|
|
3431
|
-
return (React.createElement("div", { "aria-busy": true, className: css.container }, text.map(
|
|
3347
|
+
return (React.createElement("div", { "aria-busy": true, className: css.container }, text.map((it, index) => (React.createElement("span", { key: index, className: (0, classnames_1.default)([
|
|
3432
3348
|
'text-placeholder-vars',
|
|
3433
3349
|
css.loadingWord,
|
|
3434
3350
|
!props.isNotAnimated && css.animatedLoading,
|
|
3435
|
-
]), dangerouslySetInnerHTML: { __html: it } }))
|
|
3351
|
+
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
3436
3352
|
};
|
|
3437
3353
|
exports.TextPlaceholder = TextPlaceholder;
|
|
3438
3354
|
|
|
@@ -3449,7 +3365,7 @@ exports.TextPlaceholder = TextPlaceholder;
|
|
|
3449
3365
|
"use strict";
|
|
3450
3366
|
|
|
3451
3367
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3452
|
-
|
|
3368
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3453
3369
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Text */ "./components/typography/Text.tsx"), exports);
|
|
3454
3370
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./TextPlaceholder */ "./components/typography/TextPlaceholder.tsx"), exports);
|
|
3455
3371
|
|
|
@@ -3467,9 +3383,9 @@ var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.
|
|
|
3467
3383
|
|
|
3468
3384
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3469
3385
|
exports.Avatar = void 0;
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
exports.Avatar = (0, uui_core_1.withMods)(uui_components_1.Avatar,
|
|
3386
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
3387
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
3388
|
+
exports.Avatar = (0, uui_core_1.withMods)(uui_components_1.Avatar, () => []);
|
|
3473
3389
|
|
|
3474
3390
|
|
|
3475
3391
|
/***/ }),
|
|
@@ -3482,7 +3398,7 @@ exports.Avatar = (0, uui_core_1.withMods)(uui_components_1.Avatar, function () {
|
|
|
3482
3398
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3483
3399
|
|
|
3484
3400
|
// extracted by mini-css-extract-plugin
|
|
3485
|
-
module.exports = {"root":"
|
|
3401
|
+
module.exports = {"root":"_17Bsg","size-18":"qRQZD","size18":"qRQZD","fill-transparent":"_1Vnlk","fillTransparent":"_1Vnlk","size-24":"_2vZjF","size24":"_2vZjF","size-30":"_3voUa","size30":"_3voUa","size-36":"_2WWn6","size36":"_2WWn6","size-42":"_3LWS0","size42":"_3LWS0","size-48":"y9RQG","size48":"y9RQG","fill-solid":"_2WFgL","fillSolid":"_2WFgL"};
|
|
3486
3402
|
|
|
3487
3403
|
/***/ }),
|
|
3488
3404
|
|
|
@@ -3497,15 +3413,15 @@ module.exports = {"root":"_1dZIP","size-18":"_2QoZh","size18":"_2QoZh","fill-tra
|
|
|
3497
3413
|
|
|
3498
3414
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3499
3415
|
exports.Badge = exports.applyBadgeMods = void 0;
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3416
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3417
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
3418
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
3419
|
+
const icons_1 = __webpack_require__(/*! ../../icons/icons */ "./icons/icons.tsx");
|
|
3420
|
+
const buttonCss = (0, tslib_1.__importStar)(__webpack_require__(/*! ../buttons/Button.scss */ "./components/buttons/Button.scss"));
|
|
3421
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Badge.scss */ "./components/widgets/Badge.scss"));
|
|
3506
3422
|
__webpack_require__(/*! ../../assets/styles/variables/widgets/badge.scss */ "./assets/styles/variables/widgets/badge.scss");
|
|
3507
|
-
|
|
3508
|
-
|
|
3423
|
+
const defaultSize = '36';
|
|
3424
|
+
const mapSize = {
|
|
3509
3425
|
'48': '48',
|
|
3510
3426
|
'42': '48',
|
|
3511
3427
|
'36': '36',
|
|
@@ -3515,7 +3431,7 @@ var mapSize = {
|
|
|
3515
3431
|
};
|
|
3516
3432
|
function applyBadgeMods(mods) {
|
|
3517
3433
|
return [
|
|
3518
|
-
|
|
3434
|
+
`badge-color-${(mods.color || 'info')}`,
|
|
3519
3435
|
buttonCss.root,
|
|
3520
3436
|
css['size-' + (mods.size || defaultSize)],
|
|
3521
3437
|
css['fill-' + (mods.fill || 'solid')],
|
|
@@ -3523,11 +3439,11 @@ function applyBadgeMods(mods) {
|
|
|
3523
3439
|
];
|
|
3524
3440
|
}
|
|
3525
3441
|
exports.applyBadgeMods = applyBadgeMods;
|
|
3526
|
-
exports.Badge = (0, uui_core_1.withMods)(uui_components_1.Button, applyBadgeMods,
|
|
3442
|
+
exports.Badge = (0, uui_core_1.withMods)(uui_components_1.Button, applyBadgeMods, (props) => ({
|
|
3527
3443
|
dropdownIcon: icons_1.systemIcons[props.size && mapSize[props.size] || defaultSize].foldingArrow,
|
|
3528
3444
|
clearIcon: icons_1.systemIcons[props.size && mapSize[props.size] || defaultSize].clear,
|
|
3529
3445
|
countPosition: 'left',
|
|
3530
|
-
})
|
|
3446
|
+
}));
|
|
3531
3447
|
|
|
3532
3448
|
|
|
3533
3449
|
/***/ }),
|
|
@@ -3540,7 +3456,7 @@ exports.Badge = (0, uui_core_1.withMods)(uui_components_1.Button, applyBadgeMods
|
|
|
3540
3456
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3541
3457
|
|
|
3542
3458
|
// extracted by mini-css-extract-plugin
|
|
3543
|
-
module.exports = {"root":"
|
|
3459
|
+
module.exports = {"root":"_3niLc","size-18":"_3lRTy","size18":"_3lRTy","size-24":"O5IqU","size24":"O5IqU","size-30":"HwqtS","size30":"HwqtS","size-36":"_32Fyd","size36":"_32Fyd","size-42":"_1Mn8c","size42":"_1Mn8c","size-48":"_1QcE3","size48":"_1QcE3"};
|
|
3544
3460
|
|
|
3545
3461
|
/***/ }),
|
|
3546
3462
|
|
|
@@ -3555,15 +3471,15 @@ module.exports = {"root":"_1CSeE","size-18":"_1OBSP","size18":"_1OBSP","size-24"
|
|
|
3555
3471
|
|
|
3556
3472
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3557
3473
|
exports.Tag = exports.applyTagMods = void 0;
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3474
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3475
|
+
const uui_core_1 = __webpack_require__(/*! @epam/uui-core */ "@epam/uui-core");
|
|
3476
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
3477
|
+
const icons_1 = __webpack_require__(/*! ../../icons/icons */ "./icons/icons.tsx");
|
|
3478
|
+
const buttonCss = (0, tslib_1.__importStar)(__webpack_require__(/*! ../buttons/Button.scss */ "./components/buttons/Button.scss"));
|
|
3563
3479
|
__webpack_require__(/*! ../../assets/styles/variables/widgets/tag.scss */ "./assets/styles/variables/widgets/tag.scss");
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3480
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Tag.scss */ "./components/widgets/Tag.scss"));
|
|
3481
|
+
const defaultSize = '36';
|
|
3482
|
+
const mapSize = {
|
|
3567
3483
|
'48': '48',
|
|
3568
3484
|
'42': '48',
|
|
3569
3485
|
'36': '36',
|
|
@@ -3580,10 +3496,10 @@ function applyTagMods(mods) {
|
|
|
3580
3496
|
];
|
|
3581
3497
|
}
|
|
3582
3498
|
exports.applyTagMods = applyTagMods;
|
|
3583
|
-
exports.Tag = (0, uui_core_1.withMods)(uui_components_1.Button, applyTagMods,
|
|
3499
|
+
exports.Tag = (0, uui_core_1.withMods)(uui_components_1.Button, applyTagMods, (props) => ({
|
|
3584
3500
|
dropdownIcon: icons_1.systemIcons[mapSize[props.size] || defaultSize].foldingArrow,
|
|
3585
3501
|
clearIcon: icons_1.systemIcons[mapSize[props.size] || defaultSize].clear,
|
|
3586
|
-
})
|
|
3502
|
+
}));
|
|
3587
3503
|
|
|
3588
3504
|
|
|
3589
3505
|
/***/ }),
|
|
@@ -3598,7 +3514,7 @@ exports.Tag = (0, uui_core_1.withMods)(uui_components_1.Button, applyTagMods, fu
|
|
|
3598
3514
|
"use strict";
|
|
3599
3515
|
|
|
3600
3516
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3601
|
-
|
|
3517
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3602
3518
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Avatar */ "./components/widgets/Avatar.tsx"), exports);
|
|
3603
3519
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Badge */ "./components/widgets/Badge.tsx"), exports);
|
|
3604
3520
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Tag */ "./components/widgets/Tag.tsx"), exports);
|
|
@@ -3617,9 +3533,9 @@ var tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.
|
|
|
3617
3533
|
|
|
3618
3534
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3619
3535
|
exports.getTextClasses = void 0;
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3536
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3537
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ../assets/styles/text-layout.scss */ "./assets/styles/text-layout.scss"));
|
|
3538
|
+
const defaultTextSettings = {
|
|
3623
3539
|
18: { lineHeight: 12, fontSize: 10 },
|
|
3624
3540
|
24: { lineHeight: 18, fontSize: 12 },
|
|
3625
3541
|
30: { lineHeight: 18, fontSize: 14 },
|
|
@@ -3635,12 +3551,12 @@ function getTextClasses(props, border) {
|
|
|
3635
3551
|
css['font-size-' + props.fontSize],
|
|
3636
3552
|
];
|
|
3637
3553
|
}
|
|
3638
|
-
|
|
3554
|
+
const setting = {
|
|
3639
3555
|
size: props.size,
|
|
3640
3556
|
lineHeight: props.lineHeight || defaultTextSettings[props.size].lineHeight,
|
|
3641
3557
|
fontSize: props.fontSize || defaultTextSettings[props.size].fontSize,
|
|
3642
3558
|
};
|
|
3643
|
-
|
|
3559
|
+
const vPadding = (+setting.size - +setting.lineHeight - (border ? 2 : 0)) / 2;
|
|
3644
3560
|
return [
|
|
3645
3561
|
css['line-height-' + setting.lineHeight],
|
|
3646
3562
|
css['font-size-' + setting.fontSize],
|
|
@@ -4510,26 +4426,26 @@ var ForwardRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.forwa
|
|
|
4510
4426
|
|
|
4511
4427
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4512
4428
|
exports.systemIcons = void 0;
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4429
|
+
const btn_cross_12_svg_1 = __webpack_require__(/*! ./btn-cross-12.svg */ "./icons/btn-cross-12.svg");
|
|
4430
|
+
const btn_cross_18_svg_1 = __webpack_require__(/*! ./btn-cross-18.svg */ "./icons/btn-cross-18.svg");
|
|
4431
|
+
const btn_cross_24_svg_1 = __webpack_require__(/*! ./btn-cross-24.svg */ "./icons/btn-cross-24.svg");
|
|
4432
|
+
const folding_arrow_12_svg_1 = __webpack_require__(/*! ./folding-arrow-12.svg */ "./icons/folding-arrow-12.svg");
|
|
4433
|
+
const folding_arrow_18_svg_1 = __webpack_require__(/*! ./folding-arrow-18.svg */ "./icons/folding-arrow-18.svg");
|
|
4434
|
+
const folding_arrow_24_svg_1 = __webpack_require__(/*! ./folding-arrow-24.svg */ "./icons/folding-arrow-24.svg");
|
|
4435
|
+
const accept_12_svg_1 = __webpack_require__(/*! ./accept-12.svg */ "./icons/accept-12.svg");
|
|
4436
|
+
const accept_18_svg_1 = __webpack_require__(/*! ./accept-18.svg */ "./icons/accept-18.svg");
|
|
4437
|
+
const accept_24_svg_1 = __webpack_require__(/*! ./accept-24.svg */ "./icons/accept-24.svg");
|
|
4438
|
+
const search_12_svg_1 = __webpack_require__(/*! ./search-12.svg */ "./icons/search-12.svg");
|
|
4439
|
+
const search_18_svg_1 = __webpack_require__(/*! ./search-18.svg */ "./icons/search-18.svg");
|
|
4440
|
+
const search_24_svg_1 = __webpack_require__(/*! ./search-24.svg */ "./icons/search-24.svg");
|
|
4441
|
+
const calendar_12_svg_1 = __webpack_require__(/*! ./calendar-12.svg */ "./icons/calendar-12.svg");
|
|
4442
|
+
const calendar_18_svg_1 = __webpack_require__(/*! ./calendar-18.svg */ "./icons/calendar-18.svg");
|
|
4443
|
+
const calendar_24_svg_1 = __webpack_require__(/*! ./calendar-24.svg */ "./icons/calendar-24.svg");
|
|
4444
|
+
const info_12_svg_1 = __webpack_require__(/*! ./info-12.svg */ "./icons/info-12.svg");
|
|
4445
|
+
const info_18_svg_1 = __webpack_require__(/*! ./info-18.svg */ "./icons/info-18.svg");
|
|
4446
|
+
const info_24_svg_1 = __webpack_require__(/*! ./info-24.svg */ "./icons/info-24.svg");
|
|
4447
|
+
const help_fill_10_svg_1 = __webpack_require__(/*! ./help-fill-10.svg */ "./icons/help-fill-10.svg");
|
|
4448
|
+
const help_fill_16_svg_1 = __webpack_require__(/*! ./help-fill-16.svg */ "./icons/help-fill-16.svg");
|
|
4533
4449
|
exports.systemIcons = {
|
|
4534
4450
|
'18': {
|
|
4535
4451
|
clear: btn_cross_12_svg_1.ReactComponent,
|
|
@@ -5409,7 +5325,7 @@ var ForwardRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.forwa
|
|
|
5409
5325
|
"use strict";
|
|
5410
5326
|
|
|
5411
5327
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5412
|
-
|
|
5328
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
5413
5329
|
__webpack_require__(/*! ./assets/styles/font-faces.scss */ "./assets/styles/font-faces.scss");
|
|
5414
5330
|
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./components */ "./components/index.ts"), exports);
|
|
5415
5331
|
// export * from './i18n';
|