@epam/uui 4.9.1 → 4.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/styles/buttonLayout.scss +66 -66
- package/assets/styles/controlLayout.scss +11 -11
- package/assets/styles/effects.scss +8 -8
- package/assets/styles/font-faces.scss +51 -51
- package/assets/styles/fonts-variables.scss +24 -24
- package/assets/styles/icons.scss +18 -18
- package/assets/styles/index.scss +7 -7
- package/assets/styles/inputs.scss +69 -69
- package/assets/styles/layout-mixins.scss +8 -8
- package/assets/styles/prettifyScrollBar.scss +44 -44
- package/assets/styles/text-layout.scss +80 -80
- package/assets/styles/text-size.scss +37 -37
- package/assets/styles/typography.scss +3 -3
- package/assets/styles/variables/buttons/button.scss +70 -70
- package/assets/styles/variables/buttons/iconButton.scss +41 -41
- package/assets/styles/variables/buttons/linkButton.scss +6 -6
- package/assets/styles/variables/buttons/tabButton.scss +8 -8
- package/assets/styles/variables/inputs/checkbox.scss +18 -18
- package/assets/styles/variables/inputs/radioInput.scss +14 -14
- package/assets/styles/variables/inputs/switch.scss +24 -24
- package/assets/styles/variables/inputs/textInput.scss +21 -21
- package/assets/styles/variables/layout/accordion.scss +10 -10
- package/assets/styles/variables/layout/iconContainer.scss +22 -22
- package/assets/styles/variables/layout/labeledInput.scss +8 -8
- package/assets/styles/variables/layout/panel.scss +5 -5
- package/assets/styles/variables/layout/scrollBars.scss +3 -3
- package/assets/styles/variables/overlays/dropdownContainer.scss +4 -4
- package/assets/styles/variables/overlays/modals.scss +5 -5
- package/assets/styles/variables/overlays/notificationCard.scss +27 -27
- package/assets/styles/variables/overlays/tooltip.scss +8 -8
- package/assets/styles/variables/pickers/pickerToggler.scss +15 -15
- package/assets/styles/variables/typography/text.scss +19 -19
- package/assets/styles/variables/typography/textPlaceholder.scss +4 -4
- package/assets/styles/variables/widgets/badge.scss +50 -50
- package/assets/styles/variables/widgets/tag.scss +9 -9
- package/bundle-stats.json +1 -1
- package/components/buttons/Button.d.ts +13 -13
- package/components/buttons/IconButton.d.ts +11 -11
- package/components/buttons/LinkButton.d.ts +8 -8
- package/components/buttons/TabButton.d.ts +8 -8
- package/components/buttons/VerticalTabButton.d.ts +4 -4
- package/components/buttons/docs/button.doc.d.ts +5 -5
- package/components/buttons/docs/linkButton.doc.d.ts +5 -5
- package/components/buttons/helper.d.ts +2 -2
- package/components/buttons/index.d.ts +5 -5
- package/components/index.d.ts +9 -9
- package/components/inputs/Checkbox.d.ts +9 -9
- package/components/inputs/RadioInput.d.ts +7 -7
- package/components/inputs/Switch.d.ts +8 -8
- package/components/inputs/TextInput.d.ts +13 -13
- package/components/inputs/docs/checkbox.doc.d.ts +5 -5
- package/components/inputs/docs/radioInput.doc.d.ts +5 -5
- package/components/inputs/docs/switch.doc.d.ts +5 -5
- package/components/inputs/docs/textInput.doc.d.ts +5 -5
- package/components/inputs/index.d.ts +4 -4
- package/components/layout/Accordion.d.ts +8 -8
- package/components/layout/ControlGroup.d.ts +3 -3
- package/components/layout/FlexItems/FlexCell.d.ts +11 -11
- package/components/layout/FlexItems/FlexRow.d.ts +13 -13
- package/components/layout/FlexItems/FlexSpacer.d.ts +4 -4
- package/components/layout/FlexItems/Panel.d.ts +10 -10
- package/components/layout/FlexItems/index.d.ts +4 -4
- package/components/layout/IconContainer.d.ts +9 -9
- package/components/layout/LabeledInput.d.ts +7 -7
- package/components/layout/RadioGroup.d.ts +3 -3
- package/components/layout/ScrollBars.d.ts +5 -5
- package/components/layout/VirtualList.d.ts +7 -7
- package/components/layout/index.d.ts +8 -8
- package/components/overlays/Dropdown.d.ts +5 -5
- package/components/overlays/DropdownContainer.d.ts +6 -6
- package/components/overlays/DropdownMenu.d.ts +36 -36
- package/components/overlays/Modals.d.ts +23 -23
- package/components/overlays/NotificationCard.d.ts +30 -30
- package/components/overlays/Tooltip.d.ts +6 -6
- package/components/overlays/index.d.ts +6 -6
- package/components/pickers/DataPickerBody.d.ts +15 -15
- package/components/pickers/DataPickerFooter.d.ts +8 -8
- package/components/pickers/DataPickerHeader.d.ts +7 -7
- package/components/pickers/DataPickerRow.d.ts +15 -15
- package/components/pickers/MobileDropdownWrapper.d.ts +10 -10
- package/components/pickers/PickerInput.d.ts +16 -16
- package/components/pickers/PickerItem.d.ts +12 -12
- package/components/pickers/PickerList.d.ts +17 -17
- package/components/pickers/PickerListItem.d.ts +8 -8
- package/components/pickers/PickerModal.d.ts +15 -15
- package/components/pickers/PickerToggler.d.ts +8 -8
- package/components/pickers/docs/common.d.ts +27 -27
- package/components/pickers/docs/pickerInput.doc.d.ts +4 -4
- package/components/pickers/docs/pickerToggler.doc.d.ts +5 -5
- package/components/pickers/index.d.ts +11 -11
- package/components/tables/DataTableCell.d.ts +9 -9
- package/components/tables/Presets/Preset.d.ts +13 -13
- package/components/tables/Presets/Presets.d.ts +8 -8
- package/components/tables/Presets/index.d.ts +2 -2
- package/components/tables/index.d.ts +3 -3
- package/components/tables/types.d.ts +8 -8
- package/components/types.d.ts +29 -29
- package/components/typography/Text.d.ts +11 -11
- package/components/typography/TextPlaceholder.d.ts +7 -7
- package/components/typography/docs/textPlaceholder.doc.d.ts +4 -4
- package/components/typography/index.d.ts +2 -2
- package/components/widgets/Avatar.d.ts +3 -3
- package/components/widgets/Badge.d.ts +15 -15
- package/components/widgets/Tag.d.ts +8 -8
- package/components/widgets/index.d.ts +3 -3
- package/docs/common.d.ts +10 -10
- package/docs/contexts/DefaultContext.d.ts +6 -6
- package/docs/contexts/index.d.ts +1 -1
- package/docs/index.d.ts +2 -2
- package/helpers/textLayout.d.ts +8 -8
- package/i18n.d.ts +50 -50
- package/icons/icons.d.ts +3 -3
- package/index.d.ts +3 -3
- package/index.docs.d.ts +5 -5
- package/index.js +1679 -1679
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/readme.md +4 -4
- package/styles.css +614 -614
- package/styles.css.map +1 -1
package/index.js
CHANGED
|
@@ -651,7 +651,7 @@ function __classPrivateFieldIn(state, receiver) {
|
|
|
651
651
|
/***/ (function(module, exports, __webpack_require__) {
|
|
652
652
|
|
|
653
653
|
// extracted by mini-css-extract-plugin
|
|
654
|
-
module.exports = {"line-height-12":"
|
|
654
|
+
module.exports = {"line-height-12":"_1BWUi","lineHeight12":"_1BWUi","line-height-18":"_2rCdC","lineHeight18":"_2rCdC","line-height-24":"_4l1ER","lineHeight24":"_4l1ER","line-height-30":"_3L3a5","lineHeight30":"_3L3a5","font-size-10":"_3oykf","fontSize10":"_3oykf","font-size-12":"_29D_2","fontSize12":"_29D_2","font-size-14":"_16dun","fontSize14":"_16dun","font-size-16":"_3CzaZ","fontSize16":"_3CzaZ","font-size-18":"advzm","fontSize18":"advzm","font-size-24":"Ygp6M","fontSize24":"Ygp6M","v-padding-2":"_1ulgy","vPadding2":"_1ulgy","v-padding-3":"_1ryF-","vPadding3":"_1ryF-","v-padding-5":"SQ42z","vPadding5":"SQ42z","v-padding-6":"_1PkOW","vPadding6":"_1PkOW","v-padding-8":"_2NbKC","vPadding8":"_2NbKC","v-padding-9":"mc7wV","vPadding9":"mc7wV","v-padding-11":"_1Tnny","vPadding11":"_1Tnny","v-padding-12":"_1cNqs","vPadding12":"_1cNqs","v-padding-14":"_2-CC2","vPadding14":"_2-CC2","v-padding-15":"_3Ob6K","vPadding15":"_3Ob6K","v-padding-17":"_3qISl","vPadding17":"_3qISl","v-padding-18":"_1HKVG","vPadding18":"_1HKVG","v-padding-23":"_1ymUS","vPadding23":"_1ymUS","v-padding-24":"_35rL7","vPadding24":"_35rL7"};
|
|
655
655
|
|
|
656
656
|
/***/ }),
|
|
657
657
|
|
|
@@ -905,7 +905,7 @@ module.exports = {"line-height-12":"_8A03L","lineHeight12":"_8A03L","line-height
|
|
|
905
905
|
/***/ (function(module, exports, __webpack_require__) {
|
|
906
906
|
|
|
907
907
|
// extracted by mini-css-extract-plugin
|
|
908
|
-
module.exports = {"root":"
|
|
908
|
+
module.exports = {"root":"_3rvRF","mode-solid":"_3DGr1","modeSolid":"_3DGr1","mode-outline":"_2Ec4t","modeOutline":"_2Ec4t","mode-none":"_3PLgc","modeNone":"_3PLgc","mode-ghost":"_1_Hu1","modeGhost":"_1_Hu1","size-24":"_9zGZK","size24":"_9zGZK","size-30":"_2Ngbd","size30":"_2Ngbd","size-36":"Wgm7Y","size36":"Wgm7Y","size-42":"WDzL7","size42":"WDzL7","size-48":"_3b2hN","size48":"_3b2hN"};
|
|
909
909
|
|
|
910
910
|
/***/ }),
|
|
911
911
|
|
|
@@ -917,31 +917,31 @@ module.exports = {"root":"_2UD4Q","mode-solid":"_2QdWn","modeSolid":"_2QdWn","mo
|
|
|
917
917
|
/***/ (function(module, exports, __webpack_require__) {
|
|
918
918
|
|
|
919
919
|
"use strict";
|
|
920
|
-
|
|
921
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
922
|
-
exports.Button = exports.applyButtonMods = exports.allButtonColors = void 0;
|
|
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"));
|
|
928
|
-
__webpack_require__(/*! ../../assets/styles/variables/buttons/button.scss */ "./assets/styles/variables/buttons/button.scss");
|
|
929
|
-
exports.allButtonColors = ['accent', 'primary', 'secondary', 'negative'];
|
|
930
|
-
const defaultSize = '36';
|
|
931
|
-
function applyButtonMods(mods) {
|
|
932
|
-
return [
|
|
933
|
-
'button-vars',
|
|
934
|
-
`button-color-${mods.color || 'primary'}`,
|
|
935
|
-
css.root,
|
|
936
|
-
css[`size-${mods.size || defaultSize}`],
|
|
937
|
-
css[`mode-${mods.mode || 'solid'}`],
|
|
938
|
-
];
|
|
939
|
-
}
|
|
940
|
-
exports.applyButtonMods = applyButtonMods;
|
|
941
|
-
exports.Button = (0, uui_core_1.withMods)(uui_components_1.Button, applyButtonMods, (props) => ({
|
|
942
|
-
dropdownIcon: icons_1.systemIcons[props.size || defaultSize].foldingArrow,
|
|
943
|
-
clearIcon: icons_1.systemIcons[props.size || defaultSize].clear,
|
|
944
|
-
}));
|
|
920
|
+
|
|
921
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
922
|
+
exports.Button = exports.applyButtonMods = exports.allButtonColors = void 0;
|
|
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"));
|
|
928
|
+
__webpack_require__(/*! ../../assets/styles/variables/buttons/button.scss */ "./assets/styles/variables/buttons/button.scss");
|
|
929
|
+
exports.allButtonColors = ['accent', 'primary', 'secondary', 'negative'];
|
|
930
|
+
const defaultSize = '36';
|
|
931
|
+
function applyButtonMods(mods) {
|
|
932
|
+
return [
|
|
933
|
+
'button-vars',
|
|
934
|
+
`button-color-${mods.color || 'primary'}`,
|
|
935
|
+
css.root,
|
|
936
|
+
css[`size-${mods.size || defaultSize}`],
|
|
937
|
+
css[`mode-${mods.mode || 'solid'}`],
|
|
938
|
+
];
|
|
939
|
+
}
|
|
940
|
+
exports.applyButtonMods = applyButtonMods;
|
|
941
|
+
exports.Button = (0, uui_core_1.withMods)(uui_components_1.Button, applyButtonMods, (props) => ({
|
|
942
|
+
dropdownIcon: icons_1.systemIcons[props.size || defaultSize].foldingArrow,
|
|
943
|
+
clearIcon: icons_1.systemIcons[props.size || defaultSize].clear,
|
|
944
|
+
}));
|
|
945
945
|
|
|
946
946
|
|
|
947
947
|
/***/ }),
|
|
@@ -954,7 +954,7 @@ exports.Button = (0, uui_core_1.withMods)(uui_components_1.Button, applyButtonMo
|
|
|
954
954
|
/***/ (function(module, exports, __webpack_require__) {
|
|
955
955
|
|
|
956
956
|
// extracted by mini-css-extract-plugin
|
|
957
|
-
module.exports = {"root":"
|
|
957
|
+
module.exports = {"root":"_19PD4"};
|
|
958
958
|
|
|
959
959
|
/***/ }),
|
|
960
960
|
|
|
@@ -966,22 +966,22 @@ module.exports = {"root":"_18bZ3"};
|
|
|
966
966
|
/***/ (function(module, exports, __webpack_require__) {
|
|
967
967
|
|
|
968
968
|
"use strict";
|
|
969
|
-
|
|
970
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
971
|
-
exports.IconButton = exports.allIconColors = void 0;
|
|
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");
|
|
975
|
-
__webpack_require__(/*! ../../assets/styles/variables/buttons/iconButton.scss */ "./assets/styles/variables/buttons/iconButton.scss");
|
|
976
|
-
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./IconButton.scss */ "./components/buttons/IconButton.scss"));
|
|
977
|
-
exports.allIconColors = ['info', 'success', 'warning', 'error', 'secondary', 'default'];
|
|
978
|
-
function applyIconButtonMods(mods) {
|
|
979
|
-
return [
|
|
980
|
-
`icon-button-color-${mods.color || 'default'}`,
|
|
981
|
-
css.root,
|
|
982
|
-
];
|
|
983
|
-
}
|
|
984
|
-
exports.IconButton = (0, uui_core_1.withMods)(uui_components_1.IconButton, applyIconButtonMods);
|
|
969
|
+
|
|
970
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
971
|
+
exports.IconButton = exports.allIconColors = void 0;
|
|
972
|
+
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");
|
|
975
|
+
__webpack_require__(/*! ../../assets/styles/variables/buttons/iconButton.scss */ "./assets/styles/variables/buttons/iconButton.scss");
|
|
976
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./IconButton.scss */ "./components/buttons/IconButton.scss"));
|
|
977
|
+
exports.allIconColors = ['info', 'success', 'warning', 'error', 'secondary', 'default'];
|
|
978
|
+
function applyIconButtonMods(mods) {
|
|
979
|
+
return [
|
|
980
|
+
`icon-button-color-${mods.color || 'default'}`,
|
|
981
|
+
css.root,
|
|
982
|
+
];
|
|
983
|
+
}
|
|
984
|
+
exports.IconButton = (0, uui_core_1.withMods)(uui_components_1.IconButton, applyIconButtonMods);
|
|
985
985
|
|
|
986
986
|
|
|
987
987
|
/***/ }),
|
|
@@ -994,7 +994,7 @@ exports.IconButton = (0, uui_core_1.withMods)(uui_components_1.IconButton, apply
|
|
|
994
994
|
/***/ (function(module, exports, __webpack_require__) {
|
|
995
995
|
|
|
996
996
|
// extracted by mini-css-extract-plugin
|
|
997
|
-
module.exports = {"root":"
|
|
997
|
+
module.exports = {"root":"_24Y1P","size-18":"guBp7","size18":"guBp7","size-24":"kRdZu","size24":"kRdZu","size-30":"_3bTLY","size30":"_3bTLY","size-36":"_3k9Bi","size36":"_3k9Bi","size-42":"_1bjFh","size42":"_1bjFh","size-48":"_1YTEV","size48":"_1YTEV"};
|
|
998
998
|
|
|
999
999
|
/***/ }),
|
|
1000
1000
|
|
|
@@ -1006,29 +1006,29 @@ module.exports = {"root":"_3B5_W","size-18":"_1AP2U","size18":"_1AP2U","size-24"
|
|
|
1006
1006
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1007
1007
|
|
|
1008
1008
|
"use strict";
|
|
1009
|
-
|
|
1010
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1011
|
-
exports.LinkButton = void 0;
|
|
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"));
|
|
1018
|
-
__webpack_require__(/*! ../../assets/styles/variables/buttons/linkButton.scss */ "./assets/styles/variables/buttons/linkButton.scss");
|
|
1019
|
-
const defaultSize = '36';
|
|
1020
|
-
function applyLinkButtonMods(mods) {
|
|
1021
|
-
return [
|
|
1022
|
-
'link-button-vars',
|
|
1023
|
-
css.root,
|
|
1024
|
-
css['size-' + (mods.size || defaultSize)],
|
|
1025
|
-
...(0, helper_1.getIconClass)(mods),
|
|
1026
|
-
];
|
|
1027
|
-
}
|
|
1028
|
-
exports.LinkButton = (0, uui_core_1.withMods)(uui_components_1.Button, applyLinkButtonMods, (props) => ({
|
|
1029
|
-
dropdownIcon: icons_1.systemIcons[props.size || defaultSize].foldingArrow,
|
|
1030
|
-
clearIcon: icons_1.systemIcons[props.size || defaultSize].clear,
|
|
1031
|
-
}));
|
|
1009
|
+
|
|
1010
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1011
|
+
exports.LinkButton = void 0;
|
|
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"));
|
|
1018
|
+
__webpack_require__(/*! ../../assets/styles/variables/buttons/linkButton.scss */ "./assets/styles/variables/buttons/linkButton.scss");
|
|
1019
|
+
const defaultSize = '36';
|
|
1020
|
+
function applyLinkButtonMods(mods) {
|
|
1021
|
+
return [
|
|
1022
|
+
'link-button-vars',
|
|
1023
|
+
css.root,
|
|
1024
|
+
css['size-' + (mods.size || defaultSize)],
|
|
1025
|
+
...(0, helper_1.getIconClass)(mods),
|
|
1026
|
+
];
|
|
1027
|
+
}
|
|
1028
|
+
exports.LinkButton = (0, uui_core_1.withMods)(uui_components_1.Button, applyLinkButtonMods, (props) => ({
|
|
1029
|
+
dropdownIcon: icons_1.systemIcons[props.size || defaultSize].foldingArrow,
|
|
1030
|
+
clearIcon: icons_1.systemIcons[props.size || defaultSize].clear,
|
|
1031
|
+
}));
|
|
1032
1032
|
|
|
1033
1033
|
|
|
1034
1034
|
/***/ }),
|
|
@@ -1041,7 +1041,7 @@ exports.LinkButton = (0, uui_core_1.withMods)(uui_components_1.Button, applyLink
|
|
|
1041
1041
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1042
1042
|
|
|
1043
1043
|
// extracted by mini-css-extract-plugin
|
|
1044
|
-
module.exports = {"root":"
|
|
1044
|
+
module.exports = {"root":"YL-Tk","uui-notification":"_3e5Bw","uuiNotification":"_3e5Bw","size-36":"_1-SRr","size36":"_1-SRr","size-48":"_3c9XY","size48":"_3c9XY","size-60":"_2eOzS","size60":"_2eOzS"};
|
|
1045
1045
|
|
|
1046
1046
|
/***/ }),
|
|
1047
1047
|
|
|
@@ -1053,26 +1053,26 @@ module.exports = {"root":"_2YkUc","uui-notification":"qBOWi","uuiNotification":"
|
|
|
1053
1053
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1054
1054
|
|
|
1055
1055
|
"use strict";
|
|
1056
|
-
|
|
1057
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1058
|
-
exports.TabButton = void 0;
|
|
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");
|
|
1064
|
-
__webpack_require__(/*! ../../assets/styles/variables/buttons/tabButton.scss */ "./assets/styles/variables/buttons/tabButton.scss");
|
|
1065
|
-
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./TabButton.scss */ "./components/buttons/TabButton.scss"));
|
|
1066
|
-
function applyTabButtonMods(mods) {
|
|
1067
|
-
return [
|
|
1068
|
-
'tab-button-vars',
|
|
1069
|
-
css.root,
|
|
1070
|
-
css['size-' + (mods.size || '48')],
|
|
1071
|
-
mods.withNotify && css.uuiNotification,
|
|
1072
|
-
...(0, helper_1.getIconClass)(mods),
|
|
1073
|
-
];
|
|
1074
|
-
}
|
|
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) })));
|
|
1056
|
+
|
|
1057
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1058
|
+
exports.TabButton = void 0;
|
|
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");
|
|
1064
|
+
__webpack_require__(/*! ../../assets/styles/variables/buttons/tabButton.scss */ "./assets/styles/variables/buttons/tabButton.scss");
|
|
1065
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./TabButton.scss */ "./components/buttons/TabButton.scss"));
|
|
1066
|
+
function applyTabButtonMods(mods) {
|
|
1067
|
+
return [
|
|
1068
|
+
'tab-button-vars',
|
|
1069
|
+
css.root,
|
|
1070
|
+
css['size-' + (mods.size || '48')],
|
|
1071
|
+
mods.withNotify && css.uuiNotification,
|
|
1072
|
+
...(0, helper_1.getIconClass)(mods),
|
|
1073
|
+
];
|
|
1074
|
+
}
|
|
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) })));
|
|
1076
1076
|
|
|
1077
1077
|
|
|
1078
1078
|
/***/ }),
|
|
@@ -1085,7 +1085,7 @@ exports.TabButton = (0, uui_core_1.withMods)(uui_components_1.Button, applyTabBu
|
|
|
1085
1085
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1086
1086
|
|
|
1087
1087
|
// extracted by mini-css-extract-plugin
|
|
1088
|
-
module.exports = {"root":"
|
|
1088
|
+
module.exports = {"root":"_3KL61"};
|
|
1089
1089
|
|
|
1090
1090
|
/***/ }),
|
|
1091
1091
|
|
|
@@ -1097,19 +1097,19 @@ module.exports = {"root":"_36rwx"};
|
|
|
1097
1097
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1098
1098
|
|
|
1099
1099
|
"use strict";
|
|
1100
|
-
|
|
1101
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1102
|
-
exports.VerticalTabButton = void 0;
|
|
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");
|
|
1107
|
-
function applyVerticalTabButtonMods() {
|
|
1108
|
-
return [
|
|
1109
|
-
VerticalTabButton_scss_1.default.root,
|
|
1110
|
-
];
|
|
1111
|
-
}
|
|
1112
|
-
exports.VerticalTabButton = (0, uui_core_1.withMods)(TabButton_1.TabButton, applyVerticalTabButtonMods);
|
|
1100
|
+
|
|
1101
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1102
|
+
exports.VerticalTabButton = void 0;
|
|
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");
|
|
1107
|
+
function applyVerticalTabButtonMods() {
|
|
1108
|
+
return [
|
|
1109
|
+
VerticalTabButton_scss_1.default.root,
|
|
1110
|
+
];
|
|
1111
|
+
}
|
|
1112
|
+
exports.VerticalTabButton = (0, uui_core_1.withMods)(TabButton_1.TabButton, applyVerticalTabButtonMods);
|
|
1113
1113
|
|
|
1114
1114
|
|
|
1115
1115
|
/***/ }),
|
|
@@ -1122,29 +1122,29 @@ exports.VerticalTabButton = (0, uui_core_1.withMods)(TabButton_1.TabButton, appl
|
|
|
1122
1122
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1123
1123
|
|
|
1124
1124
|
"use strict";
|
|
1125
|
-
|
|
1126
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1127
|
-
exports.getIconClass = void 0;
|
|
1128
|
-
function getIconClass(props) {
|
|
1129
|
-
let classList = {
|
|
1130
|
-
'has-left-icon': false,
|
|
1131
|
-
'has-right-icon': false,
|
|
1132
|
-
};
|
|
1133
|
-
if (props.onClear) {
|
|
1134
|
-
classList['has-right-icon'] = true;
|
|
1135
|
-
}
|
|
1136
|
-
if (props.isDropdown) {
|
|
1137
|
-
classList[props.dropdownIconPosition === 'left' ? 'has-left-icon' : 'has-right-icon'] = true;
|
|
1138
|
-
}
|
|
1139
|
-
if (props.icon) {
|
|
1140
|
-
classList[props.iconPosition !== 'right' ? 'has-left-icon' : 'has-right-icon'] = true;
|
|
1141
|
-
}
|
|
1142
|
-
return [
|
|
1143
|
-
classList['has-left-icon'] ? 'uui-has-left-icon' : 'uui-no-left-icon',
|
|
1144
|
-
classList['has-right-icon'] ? 'uui-has-right-icon' : 'uui-no-right-icon',
|
|
1145
|
-
];
|
|
1146
|
-
}
|
|
1147
|
-
exports.getIconClass = getIconClass;
|
|
1125
|
+
|
|
1126
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1127
|
+
exports.getIconClass = void 0;
|
|
1128
|
+
function getIconClass(props) {
|
|
1129
|
+
let classList = {
|
|
1130
|
+
'has-left-icon': false,
|
|
1131
|
+
'has-right-icon': false,
|
|
1132
|
+
};
|
|
1133
|
+
if (props.onClear) {
|
|
1134
|
+
classList['has-right-icon'] = true;
|
|
1135
|
+
}
|
|
1136
|
+
if (props.isDropdown) {
|
|
1137
|
+
classList[props.dropdownIconPosition === 'left' ? 'has-left-icon' : 'has-right-icon'] = true;
|
|
1138
|
+
}
|
|
1139
|
+
if (props.icon) {
|
|
1140
|
+
classList[props.iconPosition !== 'right' ? 'has-left-icon' : 'has-right-icon'] = true;
|
|
1141
|
+
}
|
|
1142
|
+
return [
|
|
1143
|
+
classList['has-left-icon'] ? 'uui-has-left-icon' : 'uui-no-left-icon',
|
|
1144
|
+
classList['has-right-icon'] ? 'uui-has-right-icon' : 'uui-no-right-icon',
|
|
1145
|
+
];
|
|
1146
|
+
}
|
|
1147
|
+
exports.getIconClass = getIconClass;
|
|
1148
1148
|
|
|
1149
1149
|
|
|
1150
1150
|
/***/ }),
|
|
@@ -1157,14 +1157,14 @@ exports.getIconClass = getIconClass;
|
|
|
1157
1157
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1158
1158
|
|
|
1159
1159
|
"use strict";
|
|
1160
|
-
|
|
1161
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1162
|
-
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1163
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Button */ "./components/buttons/Button.tsx"), exports);
|
|
1164
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./IconButton */ "./components/buttons/IconButton.tsx"), exports);
|
|
1165
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./LinkButton */ "./components/buttons/LinkButton.tsx"), exports);
|
|
1166
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./TabButton */ "./components/buttons/TabButton.tsx"), exports);
|
|
1167
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./VerticalTabButton */ "./components/buttons/VerticalTabButton.tsx"), exports);
|
|
1160
|
+
|
|
1161
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1162
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1163
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Button */ "./components/buttons/Button.tsx"), exports);
|
|
1164
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./IconButton */ "./components/buttons/IconButton.tsx"), exports);
|
|
1165
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./LinkButton */ "./components/buttons/LinkButton.tsx"), exports);
|
|
1166
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./TabButton */ "./components/buttons/TabButton.tsx"), exports);
|
|
1167
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./VerticalTabButton */ "./components/buttons/VerticalTabButton.tsx"), exports);
|
|
1168
1168
|
|
|
1169
1169
|
|
|
1170
1170
|
/***/ }),
|
|
@@ -1177,18 +1177,18 @@ const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es
|
|
|
1177
1177
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1178
1178
|
|
|
1179
1179
|
"use strict";
|
|
1180
|
-
|
|
1181
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1182
|
-
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1183
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./buttons */ "./components/buttons/index.ts"), exports);
|
|
1184
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./inputs */ "./components/inputs/index.ts"), exports);
|
|
1185
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./layout */ "./components/layout/index.ts"), exports);
|
|
1186
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./overlays */ "./components/overlays/index.ts"), exports);
|
|
1187
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./pickers */ "./components/pickers/index.ts"), exports);
|
|
1188
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./typography */ "./components/typography/index.ts"), exports);
|
|
1189
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./widgets */ "./components/widgets/index.ts"), exports);
|
|
1190
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./tables */ "./components/tables/index.ts"), exports);
|
|
1191
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./types */ "./components/types.ts"), exports);
|
|
1180
|
+
|
|
1181
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1182
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1183
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./buttons */ "./components/buttons/index.ts"), exports);
|
|
1184
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./inputs */ "./components/inputs/index.ts"), exports);
|
|
1185
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./layout */ "./components/layout/index.ts"), exports);
|
|
1186
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./overlays */ "./components/overlays/index.ts"), exports);
|
|
1187
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./pickers */ "./components/pickers/index.ts"), exports);
|
|
1188
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./typography */ "./components/typography/index.ts"), exports);
|
|
1189
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./widgets */ "./components/widgets/index.ts"), exports);
|
|
1190
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./tables */ "./components/tables/index.ts"), exports);
|
|
1191
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./types */ "./components/types.ts"), exports);
|
|
1192
1192
|
|
|
1193
1193
|
|
|
1194
1194
|
/***/ }),
|
|
@@ -1201,7 +1201,7 @@ const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es
|
|
|
1201
1201
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1202
1202
|
|
|
1203
1203
|
// extracted by mini-css-extract-plugin
|
|
1204
|
-
module.exports = {"root":"
|
|
1204
|
+
module.exports = {"root":"_2b6ZC","size-18":"iyc0I","size18":"iyc0I","size-12":"_23DPP","size12":"_23DPP"};
|
|
1205
1205
|
|
|
1206
1206
|
/***/ }),
|
|
1207
1207
|
|
|
@@ -1213,30 +1213,30 @@ module.exports = {"root":"_2DCH6","size-18":"_11haQ","size18":"_11haQ","size-12"
|
|
|
1213
1213
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1214
1214
|
|
|
1215
1215
|
"use strict";
|
|
1216
|
-
|
|
1217
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1218
|
-
exports.Checkbox = exports.applyCheckboxMods = void 0;
|
|
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");
|
|
1227
|
-
__webpack_require__(/*! ../../assets/styles/variables/inputs/checkbox.scss */ "./assets/styles/variables/inputs/checkbox.scss");
|
|
1228
|
-
function applyCheckboxMods(mods) {
|
|
1229
|
-
return [
|
|
1230
|
-
'checkbox-vars',
|
|
1231
|
-
css.root,
|
|
1232
|
-
css['size-' + (mods.size || '18')],
|
|
1233
|
-
];
|
|
1234
|
-
}
|
|
1235
|
-
exports.applyCheckboxMods = applyCheckboxMods;
|
|
1236
|
-
exports.Checkbox = (0, uui_core_1.withMods)(uui_components_1.Checkbox, applyCheckboxMods, (props) => ({
|
|
1237
|
-
icon: (props.size === '12') ? check_12_svg_1.ReactComponent : check_18_svg_1.ReactComponent,
|
|
1238
|
-
indeterminateIcon: (props.size === '12') ? partly_select_12_svg_1.ReactComponent : partly_select_18_svg_1.ReactComponent,
|
|
1239
|
-
}));
|
|
1216
|
+
|
|
1217
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1218
|
+
exports.Checkbox = exports.applyCheckboxMods = void 0;
|
|
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");
|
|
1227
|
+
__webpack_require__(/*! ../../assets/styles/variables/inputs/checkbox.scss */ "./assets/styles/variables/inputs/checkbox.scss");
|
|
1228
|
+
function applyCheckboxMods(mods) {
|
|
1229
|
+
return [
|
|
1230
|
+
'checkbox-vars',
|
|
1231
|
+
css.root,
|
|
1232
|
+
css['size-' + (mods.size || '18')],
|
|
1233
|
+
];
|
|
1234
|
+
}
|
|
1235
|
+
exports.applyCheckboxMods = applyCheckboxMods;
|
|
1236
|
+
exports.Checkbox = (0, uui_core_1.withMods)(uui_components_1.Checkbox, applyCheckboxMods, (props) => ({
|
|
1237
|
+
icon: (props.size === '12') ? check_12_svg_1.ReactComponent : check_18_svg_1.ReactComponent,
|
|
1238
|
+
indeterminateIcon: (props.size === '12') ? partly_select_12_svg_1.ReactComponent : partly_select_18_svg_1.ReactComponent,
|
|
1239
|
+
}));
|
|
1240
1240
|
|
|
1241
1241
|
|
|
1242
1242
|
/***/ }),
|
|
@@ -1249,7 +1249,7 @@ exports.Checkbox = (0, uui_core_1.withMods)(uui_components_1.Checkbox, applyChec
|
|
|
1249
1249
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1250
1250
|
|
|
1251
1251
|
// extracted by mini-css-extract-plugin
|
|
1252
|
-
module.exports = {"root":"
|
|
1252
|
+
module.exports = {"root":"_3z9Yq","size-18":"_2M32f","size18":"_2M32f","size-12":"_17xBl","size12":"_17xBl"};
|
|
1253
1253
|
|
|
1254
1254
|
/***/ }),
|
|
1255
1255
|
|
|
@@ -1261,23 +1261,23 @@ module.exports = {"root":"cyE7c","size-18":"_23Y_r","size18":"_23Y_r","size-12":
|
|
|
1261
1261
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1262
1262
|
|
|
1263
1263
|
"use strict";
|
|
1264
|
-
|
|
1265
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1266
|
-
exports.RadioInput = void 0;
|
|
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");
|
|
1270
|
-
__webpack_require__(/*! ../../assets/styles/variables/inputs/radioInput.scss */ "./assets/styles/variables/inputs/radioInput.scss");
|
|
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");
|
|
1273
|
-
function applyRadioInputMods(mods) {
|
|
1274
|
-
return [
|
|
1275
|
-
'radio-input-vars',
|
|
1276
|
-
css.root,
|
|
1277
|
-
css['size-' + (mods.size || '18')],
|
|
1278
|
-
];
|
|
1279
|
-
}
|
|
1280
|
-
exports.RadioInput = (0, uui_core_1.withMods)(uui_components_1.RadioInput, applyRadioInputMods, () => ({ icon: radio_point_svg_1.ReactComponent }));
|
|
1264
|
+
|
|
1265
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1266
|
+
exports.RadioInput = void 0;
|
|
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");
|
|
1270
|
+
__webpack_require__(/*! ../../assets/styles/variables/inputs/radioInput.scss */ "./assets/styles/variables/inputs/radioInput.scss");
|
|
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");
|
|
1273
|
+
function applyRadioInputMods(mods) {
|
|
1274
|
+
return [
|
|
1275
|
+
'radio-input-vars',
|
|
1276
|
+
css.root,
|
|
1277
|
+
css['size-' + (mods.size || '18')],
|
|
1278
|
+
];
|
|
1279
|
+
}
|
|
1280
|
+
exports.RadioInput = (0, uui_core_1.withMods)(uui_components_1.RadioInput, applyRadioInputMods, () => ({ icon: radio_point_svg_1.ReactComponent }));
|
|
1281
1281
|
|
|
1282
1282
|
|
|
1283
1283
|
/***/ }),
|
|
@@ -1290,7 +1290,7 @@ exports.RadioInput = (0, uui_core_1.withMods)(uui_components_1.RadioInput, apply
|
|
|
1290
1290
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1291
1291
|
|
|
1292
1292
|
// extracted by mini-css-extract-plugin
|
|
1293
|
-
module.exports = {"root":"
|
|
1293
|
+
module.exports = {"root":"_1IgRU","size-12":"_2cwwX","size12":"_2cwwX","size-18":"_iwwd","size18":"_iwwd","size-24":"oJrDW","size24":"oJrDW"};
|
|
1294
1294
|
|
|
1295
1295
|
/***/ }),
|
|
1296
1296
|
|
|
@@ -1302,23 +1302,23 @@ module.exports = {"root":"_2tPn8","size-12":"_1amN_","size12":"_1amN_","size-18"
|
|
|
1302
1302
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1303
1303
|
|
|
1304
1304
|
"use strict";
|
|
1305
|
-
|
|
1306
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1307
|
-
exports.Switch = exports.applySwitchMods = void 0;
|
|
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"));
|
|
1312
|
-
__webpack_require__(/*! ../../assets/styles/variables/inputs/switch.scss */ "./assets/styles/variables/inputs/switch.scss");
|
|
1313
|
-
function applySwitchMods(mods) {
|
|
1314
|
-
return [
|
|
1315
|
-
'switch-vars',
|
|
1316
|
-
css.root,
|
|
1317
|
-
css['size-' + (mods.size || '18')],
|
|
1318
|
-
];
|
|
1319
|
-
}
|
|
1320
|
-
exports.applySwitchMods = applySwitchMods;
|
|
1321
|
-
exports.Switch = (0, uui_core_1.withMods)(uui_components_1.Switch, applySwitchMods);
|
|
1305
|
+
|
|
1306
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1307
|
+
exports.Switch = exports.applySwitchMods = void 0;
|
|
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"));
|
|
1312
|
+
__webpack_require__(/*! ../../assets/styles/variables/inputs/switch.scss */ "./assets/styles/variables/inputs/switch.scss");
|
|
1313
|
+
function applySwitchMods(mods) {
|
|
1314
|
+
return [
|
|
1315
|
+
'switch-vars',
|
|
1316
|
+
css.root,
|
|
1317
|
+
css['size-' + (mods.size || '18')],
|
|
1318
|
+
];
|
|
1319
|
+
}
|
|
1320
|
+
exports.applySwitchMods = applySwitchMods;
|
|
1321
|
+
exports.Switch = (0, uui_core_1.withMods)(uui_components_1.Switch, applySwitchMods);
|
|
1322
1322
|
|
|
1323
1323
|
|
|
1324
1324
|
/***/ }),
|
|
@@ -1331,7 +1331,7 @@ exports.Switch = (0, uui_core_1.withMods)(uui_components_1.Switch, applySwitchMo
|
|
|
1331
1331
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1332
1332
|
|
|
1333
1333
|
// extracted by mini-css-extract-plugin
|
|
1334
|
-
module.exports = {"root":"
|
|
1334
|
+
module.exports = {"root":"SX-BJ","mode-form":"_1GooJ","modeForm":"_1GooJ","mode-cell":"_1OdzO","modeCell":"_1OdzO","size-24":"_2M548","size24":"_2M548","size-30":"_3NYDE","size30":"_3NYDE","size-36":"_2nhrM","size36":"_2nhrM","size-42":"_2K4fX","size42":"_2K4fX","size-48":"_1fpXo","size48":"_1fpXo"};
|
|
1335
1335
|
|
|
1336
1336
|
/***/ }),
|
|
1337
1337
|
|
|
@@ -1343,42 +1343,42 @@ module.exports = {"root":"SbBvJ","mode-form":"_32qD1","modeForm":"_32qD1","mode-
|
|
|
1343
1343
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1344
1344
|
|
|
1345
1345
|
"use strict";
|
|
1346
|
-
|
|
1347
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1348
|
-
exports.SearchInput = exports.TextInput = exports.applyTextInputMods = void 0;
|
|
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"));
|
|
1356
|
-
__webpack_require__(/*! ../../assets/styles/variables/inputs/textInput.scss */ "./assets/styles/variables/inputs/textInput.scss");
|
|
1357
|
-
const defaultSize = '36';
|
|
1358
|
-
const defaultMode = types_1.EditMode.FORM;
|
|
1359
|
-
function applyTextInputMods(mods) {
|
|
1360
|
-
return [
|
|
1361
|
-
'text-input-vars',
|
|
1362
|
-
css.root,
|
|
1363
|
-
css['size-' + (mods.size || defaultSize)],
|
|
1364
|
-
css['mode-' + (mods.mode || defaultMode)],
|
|
1365
|
-
];
|
|
1366
|
-
}
|
|
1367
|
-
exports.applyTextInputMods = applyTextInputMods;
|
|
1368
|
-
exports.TextInput = (0, uui_core_1.withMods)(uui_components_1.TextInput, applyTextInputMods, (props) => ({
|
|
1369
|
-
acceptIcon: icons_1.systemIcons[props.size || defaultSize].accept,
|
|
1370
|
-
cancelIcon: icons_1.systemIcons[props.size || defaultSize].clear,
|
|
1371
|
-
dropdownIcon: icons_1.systemIcons[props.size || defaultSize].foldingArrow,
|
|
1372
|
-
}));
|
|
1373
|
-
class SearchInput extends react_1.default.Component {
|
|
1374
|
-
render() {
|
|
1375
|
-
// analytics events are sending in IEditableDebouncer, so we need to avoid sending events in TextInput
|
|
1376
|
-
const textInputProps = Object.assign({}, this.props);
|
|
1377
|
-
delete textInputProps.getValueChangeAnalyticsEvent;
|
|
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
|
-
}
|
|
1381
|
-
exports.SearchInput = SearchInput;
|
|
1346
|
+
|
|
1347
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1348
|
+
exports.SearchInput = exports.TextInput = exports.applyTextInputMods = void 0;
|
|
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"));
|
|
1356
|
+
__webpack_require__(/*! ../../assets/styles/variables/inputs/textInput.scss */ "./assets/styles/variables/inputs/textInput.scss");
|
|
1357
|
+
const defaultSize = '36';
|
|
1358
|
+
const defaultMode = types_1.EditMode.FORM;
|
|
1359
|
+
function applyTextInputMods(mods) {
|
|
1360
|
+
return [
|
|
1361
|
+
'text-input-vars',
|
|
1362
|
+
css.root,
|
|
1363
|
+
css['size-' + (mods.size || defaultSize)],
|
|
1364
|
+
css['mode-' + (mods.mode || defaultMode)],
|
|
1365
|
+
];
|
|
1366
|
+
}
|
|
1367
|
+
exports.applyTextInputMods = applyTextInputMods;
|
|
1368
|
+
exports.TextInput = (0, uui_core_1.withMods)(uui_components_1.TextInput, applyTextInputMods, (props) => ({
|
|
1369
|
+
acceptIcon: icons_1.systemIcons[props.size || defaultSize].accept,
|
|
1370
|
+
cancelIcon: icons_1.systemIcons[props.size || defaultSize].clear,
|
|
1371
|
+
dropdownIcon: icons_1.systemIcons[props.size || defaultSize].foldingArrow,
|
|
1372
|
+
}));
|
|
1373
|
+
class SearchInput extends react_1.default.Component {
|
|
1374
|
+
render() {
|
|
1375
|
+
// analytics events are sending in IEditableDebouncer, so we need to avoid sending events in TextInput
|
|
1376
|
+
const textInputProps = Object.assign({}, this.props);
|
|
1377
|
+
delete textInputProps.getValueChangeAnalyticsEvent;
|
|
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
|
+
}
|
|
1381
|
+
exports.SearchInput = SearchInput;
|
|
1382
1382
|
|
|
1383
1383
|
|
|
1384
1384
|
/***/ }),
|
|
@@ -1391,13 +1391,13 @@ exports.SearchInput = SearchInput;
|
|
|
1391
1391
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1392
1392
|
|
|
1393
1393
|
"use strict";
|
|
1394
|
-
|
|
1395
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1396
|
-
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1397
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Checkbox */ "./components/inputs/Checkbox.tsx"), exports);
|
|
1398
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./RadioInput */ "./components/inputs/RadioInput.tsx"), exports);
|
|
1399
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Switch */ "./components/inputs/Switch.tsx"), exports);
|
|
1400
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./TextInput */ "./components/inputs/TextInput.tsx"), exports);
|
|
1394
|
+
|
|
1395
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1396
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1397
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Checkbox */ "./components/inputs/Checkbox.tsx"), exports);
|
|
1398
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./RadioInput */ "./components/inputs/RadioInput.tsx"), exports);
|
|
1399
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Switch */ "./components/inputs/Switch.tsx"), exports);
|
|
1400
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./TextInput */ "./components/inputs/TextInput.tsx"), exports);
|
|
1401
1401
|
|
|
1402
1402
|
|
|
1403
1403
|
/***/ }),
|
|
@@ -1410,7 +1410,7 @@ const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es
|
|
|
1410
1410
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1411
1411
|
|
|
1412
1412
|
// extracted by mini-css-extract-plugin
|
|
1413
|
-
module.exports = {"root":"
|
|
1413
|
+
module.exports = {"root":"_3UAev","mode-block":"_3EP0U","modeBlock":"_3EP0U","mode-inline":"_1Kh8P","modeInline":"_1Kh8P","padding-0":"SED2t","padding0":"SED2t","padding-6":"_2W4ZZ","padding6":"_2W4ZZ","padding-12":"dXCi6","padding12":"dXCi6","padding-18":"_6aoDh","padding18":"_6aoDh"};
|
|
1414
1414
|
|
|
1415
1415
|
/***/ }),
|
|
1416
1416
|
|
|
@@ -1422,26 +1422,26 @@ module.exports = {"root":"_27ugZ","mode-block":"_3EYbU","modeBlock":"_3EYbU","mo
|
|
|
1422
1422
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1423
1423
|
|
|
1424
1424
|
"use strict";
|
|
1425
|
-
|
|
1426
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1427
|
-
exports.Accordion = void 0;
|
|
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");
|
|
1432
|
-
__webpack_require__(/*! ../../assets/styles/variables/layout/accordion.scss */ "./assets/styles/variables/layout/accordion.scss");
|
|
1433
|
-
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Accordion.scss */ "./components/layout/Accordion.scss"));
|
|
1434
|
-
function applyAccordionMods(mods) {
|
|
1435
|
-
return [
|
|
1436
|
-
'accordion-vars',
|
|
1437
|
-
css.root,
|
|
1438
|
-
css['mode-' + (mods.mode || 'block')],
|
|
1439
|
-
mods.padding && css['padding-' + mods.padding],
|
|
1440
|
-
];
|
|
1441
|
-
}
|
|
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
|
-
}));
|
|
1425
|
+
|
|
1426
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1427
|
+
exports.Accordion = void 0;
|
|
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");
|
|
1432
|
+
__webpack_require__(/*! ../../assets/styles/variables/layout/accordion.scss */ "./assets/styles/variables/layout/accordion.scss");
|
|
1433
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Accordion.scss */ "./components/layout/Accordion.scss"));
|
|
1434
|
+
function applyAccordionMods(mods) {
|
|
1435
|
+
return [
|
|
1436
|
+
'accordion-vars',
|
|
1437
|
+
css.root,
|
|
1438
|
+
css['mode-' + (mods.mode || 'block')],
|
|
1439
|
+
mods.padding && css['padding-' + mods.padding],
|
|
1440
|
+
];
|
|
1441
|
+
}
|
|
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
|
+
}));
|
|
1445
1445
|
|
|
1446
1446
|
|
|
1447
1447
|
/***/ }),
|
|
@@ -1454,7 +1454,7 @@ exports.Accordion = (0, uui_core_1.withMods)(uui_components_1.Accordion, applyAc
|
|
|
1454
1454
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1455
1455
|
|
|
1456
1456
|
// extracted by mini-css-extract-plugin
|
|
1457
|
-
module.exports = {"root":"
|
|
1457
|
+
module.exports = {"root":"qHqd0"};
|
|
1458
1458
|
|
|
1459
1459
|
/***/ }),
|
|
1460
1460
|
|
|
@@ -1466,14 +1466,14 @@ module.exports = {"root":"_3yd3t"};
|
|
|
1466
1466
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1467
1467
|
|
|
1468
1468
|
"use strict";
|
|
1469
|
-
|
|
1470
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1471
|
-
exports.ControlGroup = void 0;
|
|
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]);
|
|
1469
|
+
|
|
1470
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1471
|
+
exports.ControlGroup = void 0;
|
|
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]);
|
|
1477
1477
|
|
|
1478
1478
|
|
|
1479
1479
|
/***/ }),
|
|
@@ -1486,16 +1486,16 @@ exports.ControlGroup = (0, uui_core_1.withMods)(uui_components_1.ControlGroup, (
|
|
|
1486
1486
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1487
1487
|
|
|
1488
1488
|
"use strict";
|
|
1489
|
-
|
|
1490
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1491
|
-
exports.FlexCell = void 0;
|
|
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 => [
|
|
1497
|
-
css.flexCell,
|
|
1498
|
-
]);
|
|
1489
|
+
|
|
1490
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1491
|
+
exports.FlexCell = void 0;
|
|
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 => [
|
|
1497
|
+
css.flexCell,
|
|
1498
|
+
]);
|
|
1499
1499
|
|
|
1500
1500
|
|
|
1501
1501
|
/***/ }),
|
|
@@ -1508,7 +1508,7 @@ exports.FlexCell = (0, uui_core_1.withMods)(uui_components_1.FlexCell, props =>
|
|
|
1508
1508
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1509
1509
|
|
|
1510
1510
|
// extracted by mini-css-extract-plugin
|
|
1511
|
-
module.exports = {"root":"
|
|
1511
|
+
module.exports = {"root":"_1vnMk","top-shadow":"_2qc7o","topShadow":"_2qc7o","size-24":"kt-J-","size24":"kt-J-","size-30":"_1RUhV","size30":"_1RUhV","size-36":"_1z1QJ","size36":"_1z1QJ","size-42":"_271_u","size42":"_271_u","size-48":"_393Sf","size48":"_393Sf","padding-6":"pccgU","padding6":"pccgU","padding-12":"_35zV0","padding12":"_35zV0","padding-18":"um6MC","padding18":"um6MC","padding-24":"_2NADX","padding24":"_2NADX","margin-24":"_200NI","margin24":"_200NI","margin-12":"yAY5e","margin12":"yAY5e","vPadding-12":"_1xyxU","vPadding12":"_1xyxU","vPadding-18":"_2372N","vPadding18":"_2372N","vPadding-24":"_3bPqy","vPadding24":"_3bPqy","vPadding-36":"_1fojR","vPadding36":"_1fojR","vPadding-48":"_1eMib","vPadding48":"_1eMib","spacing-6":"_1_MAu","spacing6":"_1_MAu","spacing-12":"_1mZH8","spacing12":"_1mZH8","spacing-18":"_1er34","spacing18":"_1er34","border-bottom":"_1tGQ_","borderBottom":"_1tGQ_"};
|
|
1512
1512
|
|
|
1513
1513
|
/***/ }),
|
|
1514
1514
|
|
|
@@ -1520,25 +1520,25 @@ module.exports = {"root":"_2iIiq","top-shadow":"_1q6eN","topShadow":"_1q6eN","si
|
|
|
1520
1520
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1521
1521
|
|
|
1522
1522
|
"use strict";
|
|
1523
|
-
|
|
1524
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1525
|
-
exports.FlexRow = void 0;
|
|
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 => {
|
|
1531
|
-
return [
|
|
1532
|
-
css.root,
|
|
1533
|
-
props.size !== null && css['size-' + (props.size || '36')],
|
|
1534
|
-
props.padding && css['padding-' + props.padding],
|
|
1535
|
-
props.vPadding && css['vPadding-' + props.vPadding],
|
|
1536
|
-
props.margin && css['margin-' + props.margin],
|
|
1537
|
-
props.topShadow && css.topShadow,
|
|
1538
|
-
props.borderBottom && css['border-bottom'],
|
|
1539
|
-
props.spacing && css['spacing-' + props.spacing],
|
|
1540
|
-
];
|
|
1541
|
-
});
|
|
1523
|
+
|
|
1524
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1525
|
+
exports.FlexRow = void 0;
|
|
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 => {
|
|
1531
|
+
return [
|
|
1532
|
+
css.root,
|
|
1533
|
+
props.size !== null && css['size-' + (props.size || '36')],
|
|
1534
|
+
props.padding && css['padding-' + props.padding],
|
|
1535
|
+
props.vPadding && css['vPadding-' + props.vPadding],
|
|
1536
|
+
props.margin && css['margin-' + props.margin],
|
|
1537
|
+
props.topShadow && css.topShadow,
|
|
1538
|
+
props.borderBottom && css['border-bottom'],
|
|
1539
|
+
props.spacing && css['spacing-' + props.spacing],
|
|
1540
|
+
];
|
|
1541
|
+
});
|
|
1542
1542
|
|
|
1543
1543
|
|
|
1544
1544
|
/***/ }),
|
|
@@ -1551,11 +1551,11 @@ exports.FlexRow = (0, uui_core_1.withMods)(uui_components_1.FlexRow, props => {
|
|
|
1551
1551
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1552
1552
|
|
|
1553
1553
|
"use strict";
|
|
1554
|
-
|
|
1555
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1556
|
-
exports.FlexSpacer = void 0;
|
|
1557
|
-
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1558
|
-
exports.FlexSpacer = uui_components_1.FlexSpacer;
|
|
1554
|
+
|
|
1555
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1556
|
+
exports.FlexSpacer = void 0;
|
|
1557
|
+
const uui_components_1 = __webpack_require__(/*! @epam/uui-components */ "@epam/uui-components");
|
|
1558
|
+
exports.FlexSpacer = uui_components_1.FlexSpacer;
|
|
1559
1559
|
|
|
1560
1560
|
|
|
1561
1561
|
/***/ }),
|
|
@@ -1568,7 +1568,7 @@ exports.FlexSpacer = uui_components_1.FlexSpacer;
|
|
|
1568
1568
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1569
1569
|
|
|
1570
1570
|
// extracted by mini-css-extract-plugin
|
|
1571
|
-
module.exports = {"root":"
|
|
1571
|
+
module.exports = {"root":"I8xQj","background":"MUvjP","margin-24":"_1ZB1h","margin24":"_1ZB1h","padding-12":"_2O2yg","padding12":"_2O2yg","padding-24":"_3BGWx","padding24":"_3BGWx","shadow":"_2mUor"};
|
|
1572
1572
|
|
|
1573
1573
|
/***/ }),
|
|
1574
1574
|
|
|
@@ -1580,21 +1580,21 @@ module.exports = {"root":"_3EqLx","background":"AQ0f7","margin-24":"_2KcMV","mar
|
|
|
1580
1580
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1581
1581
|
|
|
1582
1582
|
"use strict";
|
|
1583
|
-
|
|
1584
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1585
|
-
exports.Panel = void 0;
|
|
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");
|
|
1589
|
-
__webpack_require__(/*! ../../../assets/styles/variables/layout/panel.scss */ "./assets/styles/variables/layout/panel.scss");
|
|
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 => [
|
|
1592
|
-
'panel-vars',
|
|
1593
|
-
css.root,
|
|
1594
|
-
props.shadow && css.shadow,
|
|
1595
|
-
props.background && css.background,
|
|
1596
|
-
props.margin && css['margin-' + props.margin],
|
|
1597
|
-
]);
|
|
1583
|
+
|
|
1584
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1585
|
+
exports.Panel = void 0;
|
|
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");
|
|
1589
|
+
__webpack_require__(/*! ../../../assets/styles/variables/layout/panel.scss */ "./assets/styles/variables/layout/panel.scss");
|
|
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 => [
|
|
1592
|
+
'panel-vars',
|
|
1593
|
+
css.root,
|
|
1594
|
+
props.shadow && css.shadow,
|
|
1595
|
+
props.background && css.background,
|
|
1596
|
+
props.margin && css['margin-' + props.margin],
|
|
1597
|
+
]);
|
|
1598
1598
|
|
|
1599
1599
|
|
|
1600
1600
|
/***/ }),
|
|
@@ -1607,13 +1607,13 @@ exports.Panel = (0, uui_core_1.withMods)(uui_components_1.VPanel, props => [
|
|
|
1607
1607
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1608
1608
|
|
|
1609
1609
|
"use strict";
|
|
1610
|
-
|
|
1611
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1612
|
-
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1613
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./FlexCell */ "./components/layout/FlexItems/FlexCell.tsx"), exports);
|
|
1614
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./FlexRow */ "./components/layout/FlexItems/FlexRow.tsx"), exports);
|
|
1615
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./FlexSpacer */ "./components/layout/FlexItems/FlexSpacer.tsx"), exports);
|
|
1616
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Panel */ "./components/layout/FlexItems/Panel.tsx"), exports);
|
|
1610
|
+
|
|
1611
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1612
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1613
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./FlexCell */ "./components/layout/FlexItems/FlexCell.tsx"), exports);
|
|
1614
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./FlexRow */ "./components/layout/FlexItems/FlexRow.tsx"), exports);
|
|
1615
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./FlexSpacer */ "./components/layout/FlexItems/FlexSpacer.tsx"), exports);
|
|
1616
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Panel */ "./components/layout/FlexItems/Panel.tsx"), exports);
|
|
1617
1617
|
|
|
1618
1618
|
|
|
1619
1619
|
/***/ }),
|
|
@@ -1626,7 +1626,7 @@ const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es
|
|
|
1626
1626
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1627
1627
|
|
|
1628
1628
|
// extracted by mini-css-extract-plugin
|
|
1629
|
-
module.exports = {"root":"
|
|
1629
|
+
module.exports = {"root":"_3X4pa"};
|
|
1630
1630
|
|
|
1631
1631
|
/***/ }),
|
|
1632
1632
|
|
|
@@ -1638,22 +1638,22 @@ module.exports = {"root":"_2cugx"};
|
|
|
1638
1638
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1639
1639
|
|
|
1640
1640
|
"use strict";
|
|
1641
|
-
|
|
1642
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1643
|
-
exports.IconContainer = exports.applyIconContainerMods = void 0;
|
|
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"));
|
|
1648
|
-
__webpack_require__(/*! ../../assets/styles/variables/layout/iconContainer.scss */ "./assets/styles/variables/layout/iconContainer.scss");
|
|
1649
|
-
function applyIconContainerMods(mods) {
|
|
1650
|
-
return [
|
|
1651
|
-
`icon-container-color-${mods.color || 'default'}`,
|
|
1652
|
-
css.root,
|
|
1653
|
-
];
|
|
1654
|
-
}
|
|
1655
|
-
exports.applyIconContainerMods = applyIconContainerMods;
|
|
1656
|
-
exports.IconContainer = (0, uui_core_1.withMods)(uui_components_1.IconContainer, applyIconContainerMods, () => ({ tabIndex: 0 }));
|
|
1641
|
+
|
|
1642
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1643
|
+
exports.IconContainer = exports.applyIconContainerMods = void 0;
|
|
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"));
|
|
1648
|
+
__webpack_require__(/*! ../../assets/styles/variables/layout/iconContainer.scss */ "./assets/styles/variables/layout/iconContainer.scss");
|
|
1649
|
+
function applyIconContainerMods(mods) {
|
|
1650
|
+
return [
|
|
1651
|
+
`icon-container-color-${mods.color || 'default'}`,
|
|
1652
|
+
css.root,
|
|
1653
|
+
];
|
|
1654
|
+
}
|
|
1655
|
+
exports.applyIconContainerMods = applyIconContainerMods;
|
|
1656
|
+
exports.IconContainer = (0, uui_core_1.withMods)(uui_components_1.IconContainer, applyIconContainerMods, () => ({ tabIndex: 0 }));
|
|
1657
1657
|
|
|
1658
1658
|
|
|
1659
1659
|
/***/ }),
|
|
@@ -1666,7 +1666,7 @@ exports.IconContainer = (0, uui_core_1.withMods)(uui_components_1.IconContainer,
|
|
|
1666
1666
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1667
1667
|
|
|
1668
1668
|
// extracted by mini-css-extract-plugin
|
|
1669
|
-
module.exports = {"root":"
|
|
1669
|
+
module.exports = {"root":"_2hZ07","size-24":"M7JGy","size24":"M7JGy","size-30":"pSNRJ","size30":"pSNRJ","size-36":"_1noW5","size36":"_1noW5","size-42":"_38s1k","size42":"_38s1k","size-48":"_3KgtI","size48":"_3KgtI"};
|
|
1670
1670
|
|
|
1671
1671
|
/***/ }),
|
|
1672
1672
|
|
|
@@ -1678,28 +1678,28 @@ module.exports = {"root":"_3CU4e","size-24":"_1PBoe","size24":"_1PBoe","size-30"
|
|
|
1678
1678
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1679
1679
|
|
|
1680
1680
|
"use strict";
|
|
1681
|
-
|
|
1682
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1683
|
-
exports.LabeledInput = void 0;
|
|
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");
|
|
1689
|
-
__webpack_require__(/*! ../../assets/styles/variables/layout/labeledInput.scss */ "./assets/styles/variables/layout/labeledInput.scss");
|
|
1690
|
-
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./LabeledInput.scss */ "./components/layout/LabeledInput.scss"));
|
|
1691
|
-
const defaultSize = '36';
|
|
1692
|
-
function applyLabeledInputMods(mods) {
|
|
1693
|
-
return [
|
|
1694
|
-
'labeled-input-vars',
|
|
1695
|
-
css.root,
|
|
1696
|
-
css['size-' + (mods.size || defaultSize)],
|
|
1697
|
-
];
|
|
1698
|
-
}
|
|
1699
|
-
exports.LabeledInput = (0, uui_core_1.withMods)(uui_components_1.LabeledInput, applyLabeledInputMods, (props) => ({
|
|
1700
|
-
Tooltip: overlays_1.Tooltip,
|
|
1701
|
-
infoIcon: icons_1.systemIcons[props.size || defaultSize].help,
|
|
1702
|
-
}));
|
|
1681
|
+
|
|
1682
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1683
|
+
exports.LabeledInput = void 0;
|
|
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");
|
|
1689
|
+
__webpack_require__(/*! ../../assets/styles/variables/layout/labeledInput.scss */ "./assets/styles/variables/layout/labeledInput.scss");
|
|
1690
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./LabeledInput.scss */ "./components/layout/LabeledInput.scss"));
|
|
1691
|
+
const defaultSize = '36';
|
|
1692
|
+
function applyLabeledInputMods(mods) {
|
|
1693
|
+
return [
|
|
1694
|
+
'labeled-input-vars',
|
|
1695
|
+
css.root,
|
|
1696
|
+
css['size-' + (mods.size || defaultSize)],
|
|
1697
|
+
];
|
|
1698
|
+
}
|
|
1699
|
+
exports.LabeledInput = (0, uui_core_1.withMods)(uui_components_1.LabeledInput, applyLabeledInputMods, (props) => ({
|
|
1700
|
+
Tooltip: overlays_1.Tooltip,
|
|
1701
|
+
infoIcon: icons_1.systemIcons[props.size || defaultSize].help,
|
|
1702
|
+
}));
|
|
1703
1703
|
|
|
1704
1704
|
|
|
1705
1705
|
/***/ }),
|
|
@@ -1712,7 +1712,7 @@ exports.LabeledInput = (0, uui_core_1.withMods)(uui_components_1.LabeledInput, a
|
|
|
1712
1712
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1713
1713
|
|
|
1714
1714
|
// extracted by mini-css-extract-plugin
|
|
1715
|
-
module.exports = {"root":"
|
|
1715
|
+
module.exports = {"root":"_2ANbs"};
|
|
1716
1716
|
|
|
1717
1717
|
/***/ }),
|
|
1718
1718
|
|
|
@@ -1724,15 +1724,15 @@ module.exports = {"root":"_1igAi"};
|
|
|
1724
1724
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1725
1725
|
|
|
1726
1726
|
"use strict";
|
|
1727
|
-
|
|
1728
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1729
|
-
exports.RadioGroup = void 0;
|
|
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 }));
|
|
1727
|
+
|
|
1728
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1729
|
+
exports.RadioGroup = void 0;
|
|
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 }));
|
|
1736
1736
|
|
|
1737
1737
|
|
|
1738
1738
|
/***/ }),
|
|
@@ -1756,19 +1756,19 @@ exports.RadioGroup = (0, uui_core_1.withMods)(uui_components_1.RadioGroup, () =>
|
|
|
1756
1756
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1757
1757
|
|
|
1758
1758
|
"use strict";
|
|
1759
|
-
|
|
1760
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1761
|
-
exports.ScrollBars = void 0;
|
|
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");
|
|
1764
|
-
__webpack_require__(/*! ./ScrollBars.scss */ "./components/layout/ScrollBars.scss");
|
|
1765
|
-
__webpack_require__(/*! ../../assets/styles/variables/layout/scrollBars.scss */ "./assets/styles/variables/layout/scrollBars.scss");
|
|
1766
|
-
function applyScrollBarsMods() {
|
|
1767
|
-
return [
|
|
1768
|
-
'scroll-bars-vars',
|
|
1769
|
-
];
|
|
1770
|
-
}
|
|
1771
|
-
exports.ScrollBars = (0, uui_core_1.withMods)(uui_components_1.ScrollBars, applyScrollBarsMods);
|
|
1759
|
+
|
|
1760
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1761
|
+
exports.ScrollBars = void 0;
|
|
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");
|
|
1764
|
+
__webpack_require__(/*! ./ScrollBars.scss */ "./components/layout/ScrollBars.scss");
|
|
1765
|
+
__webpack_require__(/*! ../../assets/styles/variables/layout/scrollBars.scss */ "./assets/styles/variables/layout/scrollBars.scss");
|
|
1766
|
+
function applyScrollBarsMods() {
|
|
1767
|
+
return [
|
|
1768
|
+
'scroll-bars-vars',
|
|
1769
|
+
];
|
|
1770
|
+
}
|
|
1771
|
+
exports.ScrollBars = (0, uui_core_1.withMods)(uui_components_1.ScrollBars, applyScrollBarsMods);
|
|
1772
1772
|
|
|
1773
1773
|
|
|
1774
1774
|
/***/ }),
|
|
@@ -1792,19 +1792,19 @@ exports.ScrollBars = (0, uui_core_1.withMods)(uui_components_1.ScrollBars, apply
|
|
|
1792
1792
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1793
1793
|
|
|
1794
1794
|
"use strict";
|
|
1795
|
-
|
|
1796
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1797
|
-
exports.VirtualList = void 0;
|
|
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");
|
|
1800
|
-
__webpack_require__(/*! ../../assets/styles/variables/layout/scrollBars.scss */ "./assets/styles/variables/layout/scrollBars.scss");
|
|
1801
|
-
__webpack_require__(/*! ./VirtualList.scss */ "./components/layout/VirtualList.scss");
|
|
1802
|
-
function applyVirtualListMods() {
|
|
1803
|
-
return [
|
|
1804
|
-
'scroll-bars-vars',
|
|
1805
|
-
];
|
|
1806
|
-
}
|
|
1807
|
-
exports.VirtualList = (0, uui_core_1.withMods)(uui_components_1.VirtualList, applyVirtualListMods);
|
|
1795
|
+
|
|
1796
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1797
|
+
exports.VirtualList = void 0;
|
|
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");
|
|
1800
|
+
__webpack_require__(/*! ../../assets/styles/variables/layout/scrollBars.scss */ "./assets/styles/variables/layout/scrollBars.scss");
|
|
1801
|
+
__webpack_require__(/*! ./VirtualList.scss */ "./components/layout/VirtualList.scss");
|
|
1802
|
+
function applyVirtualListMods() {
|
|
1803
|
+
return [
|
|
1804
|
+
'scroll-bars-vars',
|
|
1805
|
+
];
|
|
1806
|
+
}
|
|
1807
|
+
exports.VirtualList = (0, uui_core_1.withMods)(uui_components_1.VirtualList, applyVirtualListMods);
|
|
1808
1808
|
|
|
1809
1809
|
|
|
1810
1810
|
/***/ }),
|
|
@@ -1817,17 +1817,17 @@ exports.VirtualList = (0, uui_core_1.withMods)(uui_components_1.VirtualList, app
|
|
|
1817
1817
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1818
1818
|
|
|
1819
1819
|
"use strict";
|
|
1820
|
-
|
|
1821
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1822
|
-
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1823
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Accordion */ "./components/layout/Accordion.tsx"), exports);
|
|
1824
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./ControlGroup */ "./components/layout/ControlGroup.tsx"), exports);
|
|
1825
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./FlexItems */ "./components/layout/FlexItems/index.ts"), exports);
|
|
1826
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./IconContainer */ "./components/layout/IconContainer.tsx"), exports);
|
|
1827
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./LabeledInput */ "./components/layout/LabeledInput.tsx"), exports);
|
|
1828
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./RadioGroup */ "./components/layout/RadioGroup.tsx"), exports);
|
|
1829
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./ScrollBars */ "./components/layout/ScrollBars.tsx"), exports);
|
|
1830
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./VirtualList */ "./components/layout/VirtualList.tsx"), exports);
|
|
1820
|
+
|
|
1821
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1822
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
1823
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Accordion */ "./components/layout/Accordion.tsx"), exports);
|
|
1824
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./ControlGroup */ "./components/layout/ControlGroup.tsx"), exports);
|
|
1825
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./FlexItems */ "./components/layout/FlexItems/index.ts"), exports);
|
|
1826
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./IconContainer */ "./components/layout/IconContainer.tsx"), exports);
|
|
1827
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./LabeledInput */ "./components/layout/LabeledInput.tsx"), exports);
|
|
1828
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./RadioGroup */ "./components/layout/RadioGroup.tsx"), exports);
|
|
1829
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./ScrollBars */ "./components/layout/ScrollBars.tsx"), exports);
|
|
1830
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./VirtualList */ "./components/layout/VirtualList.tsx"), exports);
|
|
1831
1831
|
|
|
1832
1832
|
|
|
1833
1833
|
/***/ }),
|
|
@@ -1840,18 +1840,18 @@ const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es
|
|
|
1840
1840
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1841
1841
|
|
|
1842
1842
|
"use strict";
|
|
1843
|
-
|
|
1844
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1845
|
-
exports.Dropdown = void 0;
|
|
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)));
|
|
1852
|
-
}
|
|
1853
|
-
}
|
|
1854
|
-
exports.Dropdown = Dropdown;
|
|
1843
|
+
|
|
1844
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1845
|
+
exports.Dropdown = void 0;
|
|
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)));
|
|
1852
|
+
}
|
|
1853
|
+
}
|
|
1854
|
+
exports.Dropdown = Dropdown;
|
|
1855
1855
|
|
|
1856
1856
|
|
|
1857
1857
|
/***/ }),
|
|
@@ -1864,7 +1864,7 @@ exports.Dropdown = Dropdown;
|
|
|
1864
1864
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1865
1865
|
|
|
1866
1866
|
// extracted by mini-css-extract-plugin
|
|
1867
|
-
module.exports = {"root":"
|
|
1867
|
+
module.exports = {"root":"_21vSa"};
|
|
1868
1868
|
|
|
1869
1869
|
/***/ }),
|
|
1870
1870
|
|
|
@@ -1876,21 +1876,21 @@ module.exports = {"root":"_23-Lz"};
|
|
|
1876
1876
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1877
1877
|
|
|
1878
1878
|
"use strict";
|
|
1879
|
-
|
|
1880
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1881
|
-
exports.DropdownContainer = void 0;
|
|
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");
|
|
1885
|
-
__webpack_require__(/*! ../../assets/styles/variables/overlays/dropdownContainer.scss */ "./assets/styles/variables/overlays/dropdownContainer.scss");
|
|
1886
|
-
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./DropdownContainer.scss */ "./components/overlays/DropdownContainer.scss"));
|
|
1887
|
-
function applyDropdownContainerMods(mods) {
|
|
1888
|
-
return [
|
|
1889
|
-
'dropdown-container-vars',
|
|
1890
|
-
css.root,
|
|
1891
|
-
];
|
|
1892
|
-
}
|
|
1893
|
-
exports.DropdownContainer = (0, uui_core_1.withMods)(uui_components_1.DropdownContainer, applyDropdownContainerMods);
|
|
1879
|
+
|
|
1880
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1881
|
+
exports.DropdownContainer = void 0;
|
|
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");
|
|
1885
|
+
__webpack_require__(/*! ../../assets/styles/variables/overlays/dropdownContainer.scss */ "./assets/styles/variables/overlays/dropdownContainer.scss");
|
|
1886
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./DropdownContainer.scss */ "./components/overlays/DropdownContainer.scss"));
|
|
1887
|
+
function applyDropdownContainerMods(mods) {
|
|
1888
|
+
return [
|
|
1889
|
+
'dropdown-container-vars',
|
|
1890
|
+
css.root,
|
|
1891
|
+
];
|
|
1892
|
+
}
|
|
1893
|
+
exports.DropdownContainer = (0, uui_core_1.withMods)(uui_components_1.DropdownContainer, applyDropdownContainerMods);
|
|
1894
1894
|
|
|
1895
1895
|
|
|
1896
1896
|
/***/ }),
|
|
@@ -1903,7 +1903,7 @@ exports.DropdownContainer = (0, uui_core_1.withMods)(uui_components_1.DropdownCo
|
|
|
1903
1903
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1904
1904
|
|
|
1905
1905
|
// extracted by mini-css-extract-plugin
|
|
1906
|
-
module.exports = {"menuRoot":"
|
|
1906
|
+
module.exports = {"menuRoot":"_3NUy_","bodyRoot":"_1Q1qt","submenuRootItem":"_33xjp","iconAfter":"_1iRkk","iconCheck":"FL1-2","splitterRoot":"_1Mfdk","splitter":"_2Mz7e","headerRoot":"_1qm6R","itemRoot":"_1hUTu","icon":"_33IVO","link":"_3DBug"};
|
|
1907
1907
|
|
|
1908
1908
|
/***/ }),
|
|
1909
1909
|
|
|
@@ -1915,126 +1915,126 @@ module.exports = {"menuRoot":"_1S4_l","bodyRoot":"_1yGA2","submenuRootItem":"_1N
|
|
|
1915
1915
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1916
1916
|
|
|
1917
1917
|
"use strict";
|
|
1918
|
-
|
|
1919
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1920
|
-
exports.DropdownMenuSwitchButton = exports.DropdownSubMenu = exports.DropdownMenuHeader = exports.DropdownMenuSplitter = exports.DropdownMenuButton = exports.DropdownMenuBody = exports.DropdownControlKeys = void 0;
|
|
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'];
|
|
1930
|
-
exports.DropdownControlKeys = {
|
|
1931
|
-
ENTER: 'Enter',
|
|
1932
|
-
ESCAPE: 'Escape',
|
|
1933
|
-
LEFT_ARROW: 'ArrowLeft',
|
|
1934
|
-
RIGHT_ARROW: 'ArrowRight',
|
|
1935
|
-
UP_ARROW: 'ArrowUp',
|
|
1936
|
-
DOWN_ARROW: 'ArrowDown',
|
|
1937
|
-
};
|
|
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)(() => {
|
|
1943
|
-
var _a;
|
|
1944
|
-
(_a = menuRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
1945
|
-
}, [menuRef.current]);
|
|
1946
|
-
const changeFocus = (nextFocusedIndex) => {
|
|
1947
|
-
if (menuItems.length > 0) {
|
|
1948
|
-
setFocused(nextFocusedIndex);
|
|
1949
|
-
menuItems[nextFocusedIndex].focus();
|
|
1950
|
-
}
|
|
1951
|
-
};
|
|
1952
|
-
const handleArrowKeys = (e) => {
|
|
1953
|
-
e.stopPropagation();
|
|
1954
|
-
const lastMenuItemsIndex = menuItems.length - 1;
|
|
1955
|
-
if (e.key === exports.DropdownControlKeys.UP_ARROW) {
|
|
1956
|
-
changeFocus(currentlyFocused > 0 ? currentlyFocused - 1 : lastMenuItemsIndex);
|
|
1957
|
-
}
|
|
1958
|
-
else if (e.key === exports.DropdownControlKeys.DOWN_ARROW) {
|
|
1959
|
-
changeFocus(currentlyFocused < lastMenuItemsIndex ? currentlyFocused + 1 : 0);
|
|
1960
|
-
}
|
|
1961
|
-
else if (e.key === props.closeOnKey && props.onClose) {
|
|
1962
|
-
props.onClose();
|
|
1963
|
-
}
|
|
1964
|
-
};
|
|
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 } },
|
|
1966
|
-
react_1.default.createElement(uui_components_1.DropdownContainer, Object.assign({}, props, { rawProps: { tabIndex: -1 } }))));
|
|
1967
|
-
};
|
|
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) => {
|
|
1973
|
-
if (isDisabled || !onClick)
|
|
1974
|
-
return;
|
|
1975
|
-
onClick(event);
|
|
1976
|
-
context.uuiAnalytics.sendEvent(props.clickAnalyticsEvent);
|
|
1977
|
-
};
|
|
1978
|
-
const handleOpenDropdown = (event) => {
|
|
1979
|
-
if (event.key === exports.DropdownControlKeys.RIGHT_ARROW && isDropdown) {
|
|
1980
|
-
toggleDropdownOpening(true);
|
|
1981
|
-
}
|
|
1982
|
-
else if (event.key === exports.DropdownControlKeys.ENTER && onClick) {
|
|
1983
|
-
onClick(event);
|
|
1984
|
-
}
|
|
1985
|
-
};
|
|
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) });
|
|
1990
|
-
return react_1.default.createElement(react_1.default.Fragment, null,
|
|
1991
|
-
isIconBefore && iconElement,
|
|
1992
|
-
react_1.default.createElement(uui_components_1.Text, { cx: css.caption }, caption),
|
|
1993
|
-
isIconAfter && react_1.default.createElement(react_1.default.Fragment, null,
|
|
1994
|
-
react_1.default.createElement(uui_components_1.FlexSpacer, null),
|
|
1995
|
-
iconElement));
|
|
1996
|
-
};
|
|
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);
|
|
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: {
|
|
2000
|
-
tabIndex: isDisabled ? -1 : 0,
|
|
2001
|
-
role: 'menuitem',
|
|
2002
|
-
onKeyDown: isDisabled ? null : handleOpenDropdown,
|
|
2003
|
-
}, cx: itemClassNames, onClick: handleClick }, getMenuButtonContent()));
|
|
2004
|
-
};
|
|
2005
|
-
exports.DropdownMenuButton = DropdownMenuButton;
|
|
2006
|
-
exports.DropdownMenuButton.displayName = 'DropdownMenuButton';
|
|
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 })));
|
|
2009
|
-
exports.DropdownMenuSplitter = DropdownMenuSplitter;
|
|
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)));
|
|
2012
|
-
exports.DropdownMenuHeader = DropdownMenuHeader;
|
|
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))) }));
|
|
2015
|
-
};
|
|
2016
|
-
exports.DropdownSubMenu = DropdownSubMenu;
|
|
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) => {
|
|
2021
|
-
if (isDisabled || !onValueChange)
|
|
2022
|
-
return;
|
|
2023
|
-
onValueChange(value);
|
|
2024
|
-
context.uuiAnalytics.sendEvent(props.clickAnalyticsEvent);
|
|
2025
|
-
};
|
|
2026
|
-
const handleKeySelect = (e) => {
|
|
2027
|
-
if (e.key === exports.DropdownControlKeys.ENTER) {
|
|
2028
|
-
onHandleValueChange(!isSelected);
|
|
2029
|
-
}
|
|
2030
|
-
};
|
|
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 } },
|
|
2032
|
-
icon && react_1.default.createElement(uui_components_1.IconContainer, { icon: icon, cx: css.iconBefore }),
|
|
2033
|
-
react_1.default.createElement(uui_components_1.Text, { cx: css.caption }, caption),
|
|
2034
|
-
react_1.default.createElement(uui_components_1.FlexSpacer, null),
|
|
2035
|
-
react_1.default.createElement(inputs_1.Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
2036
|
-
};
|
|
2037
|
-
exports.DropdownMenuSwitchButton = DropdownMenuSwitchButton;
|
|
1918
|
+
|
|
1919
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1920
|
+
exports.DropdownMenuSwitchButton = exports.DropdownSubMenu = exports.DropdownMenuHeader = exports.DropdownMenuSplitter = exports.DropdownMenuButton = exports.DropdownMenuBody = exports.DropdownControlKeys = void 0;
|
|
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'];
|
|
1930
|
+
exports.DropdownControlKeys = {
|
|
1931
|
+
ENTER: 'Enter',
|
|
1932
|
+
ESCAPE: 'Escape',
|
|
1933
|
+
LEFT_ARROW: 'ArrowLeft',
|
|
1934
|
+
RIGHT_ARROW: 'ArrowRight',
|
|
1935
|
+
UP_ARROW: 'ArrowUp',
|
|
1936
|
+
DOWN_ARROW: 'ArrowDown',
|
|
1937
|
+
};
|
|
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)(() => {
|
|
1943
|
+
var _a;
|
|
1944
|
+
(_a = menuRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
1945
|
+
}, [menuRef.current]);
|
|
1946
|
+
const changeFocus = (nextFocusedIndex) => {
|
|
1947
|
+
if (menuItems.length > 0) {
|
|
1948
|
+
setFocused(nextFocusedIndex);
|
|
1949
|
+
menuItems[nextFocusedIndex].focus();
|
|
1950
|
+
}
|
|
1951
|
+
};
|
|
1952
|
+
const handleArrowKeys = (e) => {
|
|
1953
|
+
e.stopPropagation();
|
|
1954
|
+
const lastMenuItemsIndex = menuItems.length - 1;
|
|
1955
|
+
if (e.key === exports.DropdownControlKeys.UP_ARROW) {
|
|
1956
|
+
changeFocus(currentlyFocused > 0 ? currentlyFocused - 1 : lastMenuItemsIndex);
|
|
1957
|
+
}
|
|
1958
|
+
else if (e.key === exports.DropdownControlKeys.DOWN_ARROW) {
|
|
1959
|
+
changeFocus(currentlyFocused < lastMenuItemsIndex ? currentlyFocused + 1 : 0);
|
|
1960
|
+
}
|
|
1961
|
+
else if (e.key === props.closeOnKey && props.onClose) {
|
|
1962
|
+
props.onClose();
|
|
1963
|
+
}
|
|
1964
|
+
};
|
|
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 } },
|
|
1966
|
+
react_1.default.createElement(uui_components_1.DropdownContainer, Object.assign({}, props, { rawProps: { tabIndex: -1 } }))));
|
|
1967
|
+
};
|
|
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) => {
|
|
1973
|
+
if (isDisabled || !onClick)
|
|
1974
|
+
return;
|
|
1975
|
+
onClick(event);
|
|
1976
|
+
context.uuiAnalytics.sendEvent(props.clickAnalyticsEvent);
|
|
1977
|
+
};
|
|
1978
|
+
const handleOpenDropdown = (event) => {
|
|
1979
|
+
if (event.key === exports.DropdownControlKeys.RIGHT_ARROW && isDropdown) {
|
|
1980
|
+
toggleDropdownOpening(true);
|
|
1981
|
+
}
|
|
1982
|
+
else if (event.key === exports.DropdownControlKeys.ENTER && onClick) {
|
|
1983
|
+
onClick(event);
|
|
1984
|
+
}
|
|
1985
|
+
};
|
|
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) });
|
|
1990
|
+
return react_1.default.createElement(react_1.default.Fragment, null,
|
|
1991
|
+
isIconBefore && iconElement,
|
|
1992
|
+
react_1.default.createElement(uui_components_1.Text, { cx: css.caption }, caption),
|
|
1993
|
+
isIconAfter && react_1.default.createElement(react_1.default.Fragment, null,
|
|
1994
|
+
react_1.default.createElement(uui_components_1.FlexSpacer, null),
|
|
1995
|
+
iconElement));
|
|
1996
|
+
};
|
|
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);
|
|
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: {
|
|
2000
|
+
tabIndex: isDisabled ? -1 : 0,
|
|
2001
|
+
role: 'menuitem',
|
|
2002
|
+
onKeyDown: isDisabled ? null : handleOpenDropdown,
|
|
2003
|
+
}, cx: itemClassNames, onClick: handleClick }, getMenuButtonContent()));
|
|
2004
|
+
};
|
|
2005
|
+
exports.DropdownMenuButton = DropdownMenuButton;
|
|
2006
|
+
exports.DropdownMenuButton.displayName = 'DropdownMenuButton';
|
|
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 })));
|
|
2009
|
+
exports.DropdownMenuSplitter = DropdownMenuSplitter;
|
|
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)));
|
|
2012
|
+
exports.DropdownMenuHeader = DropdownMenuHeader;
|
|
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))) }));
|
|
2015
|
+
};
|
|
2016
|
+
exports.DropdownSubMenu = DropdownSubMenu;
|
|
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) => {
|
|
2021
|
+
if (isDisabled || !onValueChange)
|
|
2022
|
+
return;
|
|
2023
|
+
onValueChange(value);
|
|
2024
|
+
context.uuiAnalytics.sendEvent(props.clickAnalyticsEvent);
|
|
2025
|
+
};
|
|
2026
|
+
const handleKeySelect = (e) => {
|
|
2027
|
+
if (e.key === exports.DropdownControlKeys.ENTER) {
|
|
2028
|
+
onHandleValueChange(!isSelected);
|
|
2029
|
+
}
|
|
2030
|
+
};
|
|
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 } },
|
|
2032
|
+
icon && react_1.default.createElement(uui_components_1.IconContainer, { icon: icon, cx: css.iconBefore }),
|
|
2033
|
+
react_1.default.createElement(uui_components_1.Text, { cx: css.caption }, caption),
|
|
2034
|
+
react_1.default.createElement(uui_components_1.FlexSpacer, null),
|
|
2035
|
+
react_1.default.createElement(inputs_1.Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
2036
|
+
};
|
|
2037
|
+
exports.DropdownMenuSwitchButton = DropdownMenuSwitchButton;
|
|
2038
2038
|
|
|
2039
2039
|
|
|
2040
2040
|
/***/ }),
|
|
@@ -2047,7 +2047,7 @@ exports.DropdownMenuSwitchButton = DropdownMenuSwitchButton;
|
|
|
2047
2047
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2048
2048
|
|
|
2049
2049
|
// extracted by mini-css-extract-plugin
|
|
2050
|
-
module.exports = {"modal-blocker":"
|
|
2050
|
+
module.exports = {"modal-blocker":"_1PIWM","modalBlocker":"_1PIWM","animateModalBlocker":"_3WlnO","blocker-overlay":"pOm6n","blockerOverlay":"pOm6n","modal":"_3xpLn","modal-footer":"_3nfr3","modalFooter":"_3nfr3","border-top":"_2_lmL","borderTop":"_2_lmL","modal-header":"_3VTnZ","modalHeader":"_3VTnZ"};
|
|
2051
2051
|
|
|
2052
2052
|
/***/ }),
|
|
2053
2053
|
|
|
@@ -2059,48 +2059,48 @@ module.exports = {"modal-blocker":"MqYip","modalBlocker":"MqYip","animateModalBl
|
|
|
2059
2059
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2060
2060
|
|
|
2061
2061
|
"use strict";
|
|
2062
|
-
|
|
2063
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2064
|
-
exports.ModalFooter = exports.ModalHeader = exports.ModalWindow = exports.ModalBlocker = void 0;
|
|
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");
|
|
2073
|
-
__webpack_require__(/*! ../../assets/styles/variables/overlays/modals.scss */ "./assets/styles/variables/overlays/modals.scss");
|
|
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 => [
|
|
2076
|
-
'modals-vars',
|
|
2077
|
-
css.modalBlocker,
|
|
2078
|
-
mods.overlay && css['blocker-overlay'],
|
|
2079
|
-
]);
|
|
2080
|
-
exports.ModalWindow = (0, uui_core_1.withMods)(uui_components_1.ModalWindow, () => ['modals-vars', css.modal], props => ({ rawProps: {
|
|
2081
|
-
style: {
|
|
2082
|
-
width: `${props.width || 480}px`,
|
|
2083
|
-
height: props.height ? `${props.height}px` : '',
|
|
2084
|
-
},
|
|
2085
|
-
},
|
|
2086
|
-
}));
|
|
2087
|
-
class ModalHeader extends React.Component {
|
|
2088
|
-
render() {
|
|
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 },
|
|
2090
|
-
this.props.title && React.createElement(typography_1.Text, { size: '48', fontSize: '18', font: 'semibold' }, this.props.title),
|
|
2091
|
-
this.props.children,
|
|
2092
|
-
this.props.onClose && React.createElement(layout_1.FlexSpacer, null),
|
|
2093
|
-
this.props.onClose && React.createElement(layout_1.FlexCell, { shrink: 0, width: 'auto' },
|
|
2094
|
-
React.createElement(buttons_1.IconButton, { icon: navigation_close_24_svg_1.ReactComponent, onClick: this.props.onClose }))));
|
|
2095
|
-
}
|
|
2096
|
-
}
|
|
2097
|
-
exports.ModalHeader = ModalHeader;
|
|
2098
|
-
class ModalFooter extends React.Component {
|
|
2099
|
-
render() {
|
|
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));
|
|
2101
|
-
}
|
|
2102
|
-
}
|
|
2103
|
-
exports.ModalFooter = ModalFooter;
|
|
2062
|
+
|
|
2063
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2064
|
+
exports.ModalFooter = exports.ModalHeader = exports.ModalWindow = exports.ModalBlocker = void 0;
|
|
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");
|
|
2073
|
+
__webpack_require__(/*! ../../assets/styles/variables/overlays/modals.scss */ "./assets/styles/variables/overlays/modals.scss");
|
|
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 => [
|
|
2076
|
+
'modals-vars',
|
|
2077
|
+
css.modalBlocker,
|
|
2078
|
+
mods.overlay && css['blocker-overlay'],
|
|
2079
|
+
]);
|
|
2080
|
+
exports.ModalWindow = (0, uui_core_1.withMods)(uui_components_1.ModalWindow, () => ['modals-vars', css.modal], props => ({ rawProps: {
|
|
2081
|
+
style: {
|
|
2082
|
+
width: `${props.width || 480}px`,
|
|
2083
|
+
height: props.height ? `${props.height}px` : '',
|
|
2084
|
+
},
|
|
2085
|
+
},
|
|
2086
|
+
}));
|
|
2087
|
+
class ModalHeader extends React.Component {
|
|
2088
|
+
render() {
|
|
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 },
|
|
2090
|
+
this.props.title && React.createElement(typography_1.Text, { size: '48', fontSize: '18', font: 'semibold' }, this.props.title),
|
|
2091
|
+
this.props.children,
|
|
2092
|
+
this.props.onClose && React.createElement(layout_1.FlexSpacer, null),
|
|
2093
|
+
this.props.onClose && React.createElement(layout_1.FlexCell, { shrink: 0, width: 'auto' },
|
|
2094
|
+
React.createElement(buttons_1.IconButton, { icon: navigation_close_24_svg_1.ReactComponent, onClick: this.props.onClose }))));
|
|
2095
|
+
}
|
|
2096
|
+
}
|
|
2097
|
+
exports.ModalHeader = ModalHeader;
|
|
2098
|
+
class ModalFooter extends React.Component {
|
|
2099
|
+
render() {
|
|
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));
|
|
2101
|
+
}
|
|
2102
|
+
}
|
|
2103
|
+
exports.ModalFooter = ModalFooter;
|
|
2104
2104
|
|
|
2105
2105
|
|
|
2106
2106
|
/***/ }),
|
|
@@ -2113,7 +2113,7 @@ exports.ModalFooter = ModalFooter;
|
|
|
2113
2113
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2114
2114
|
|
|
2115
2115
|
// extracted by mini-css-extract-plugin
|
|
2116
|
-
module.exports = {"root":"
|
|
2116
|
+
module.exports = {"root":"_2343z","icon-wrapper":"_3OngB","iconWrapper":"_3OngB","notification-wrapper":"_3QFKt","notificationWrapper":"_3QFKt","action-wrapper":"_1HBip","actionWrapper":"_1HBip","action-link":"_18PVO","actionLink":"_18PVO","close-icon":"_3dWdu","closeIcon":"_3dWdu","main-path":"_2Nlcs","mainPath":"_2Nlcs","content":"_30kN_","clear-button":"_3P50w","clearButton":"_3P50w","close-wrapper":"u8v4Z","closeWrapper":"u8v4Z"};
|
|
2117
2117
|
|
|
2118
2118
|
/***/ }),
|
|
2119
2119
|
|
|
@@ -2125,69 +2125,69 @@ module.exports = {"root":"_1aKuE","icon-wrapper":"_2FIli","iconWrapper":"_2FIli"
|
|
|
2125
2125
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2126
2126
|
|
|
2127
2127
|
"use strict";
|
|
2128
|
-
|
|
2129
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2130
|
-
exports.ClearNotification = exports.ErrorNotification = exports.HintNotification = exports.SuccessNotification = exports.WarningNotification = exports.NotificationCard = void 0;
|
|
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");
|
|
2143
|
-
__webpack_require__(/*! ../../assets/styles/variables/overlays/notificationCard.scss */ "./assets/styles/variables/overlays/notificationCard.scss");
|
|
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;
|
|
2149
|
-
}
|
|
2150
|
-
componentDidMount() {
|
|
2151
|
-
var _a, _b;
|
|
2152
|
-
(_a = this.notificationCardNode) === null || _a === void 0 ? void 0 : _a.addEventListener('mouseenter', this.props.clearTimer);
|
|
2153
|
-
(_b = this.notificationCardNode) === null || _b === void 0 ? void 0 : _b.addEventListener('mouseleave', this.props.refreshTimer);
|
|
2154
|
-
}
|
|
2155
|
-
componentWillUnmount() {
|
|
2156
|
-
var _a, _b;
|
|
2157
|
-
(_a = this.notificationCardNode) === null || _a === void 0 ? void 0 : _a.removeEventListener('mouseenter', this.props.clearTimer);
|
|
2158
|
-
(_b = this.notificationCardNode) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseleave', this.props.refreshTimer);
|
|
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 },
|
|
2162
|
-
react_1.default.createElement("div", { className: css.mainPath },
|
|
2163
|
-
this.props.icon && react_1.default.createElement("div", { className: css.iconWrapper },
|
|
2164
|
-
react_1.default.createElement(uui_components_1.IconContainer, { icon: this.props.icon, cx: css.actionIcon })),
|
|
2165
|
-
react_1.default.createElement("div", { className: css.content },
|
|
2166
|
-
this.props.children,
|
|
2167
|
-
this.props.actions && react_1.default.createElement("div", { className: css.actionWrapper }, this.props.actions.map((action) => {
|
|
2168
|
-
return react_1.default.createElement(buttons_1.LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css.actionLink, size: '36' });
|
|
2169
|
-
}))),
|
|
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
|
-
}
|
|
2174
|
-
exports.NotificationCard = NotificationCard;
|
|
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) }));
|
|
2176
|
-
exports.WarningNotification = WarningNotification;
|
|
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) }));
|
|
2178
|
-
exports.SuccessNotification = SuccessNotification;
|
|
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) }));
|
|
2180
|
-
exports.HintNotification = HintNotification;
|
|
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) }));
|
|
2182
|
-
exports.ErrorNotification = ErrorNotification;
|
|
2183
|
-
class ClearNotification extends react_1.default.Component {
|
|
2184
|
-
render() {
|
|
2185
|
-
return react_1.default.createElement("div", { className: (0, classnames_1.default)(css.notificationWrapper, css.clearButton) },
|
|
2186
|
-
react_1.default.createElement(buttons_1.LinkButton, { caption: i18n_1.i18n.notificationCard.closeAllNotificationsButton, onClick: () => this.context.uuiNotifications.clearAll() }));
|
|
2187
|
-
}
|
|
2188
|
-
}
|
|
2189
|
-
exports.ClearNotification = ClearNotification;
|
|
2190
|
-
ClearNotification.contextType = uui_core_1.UuiContext;
|
|
2128
|
+
|
|
2129
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2130
|
+
exports.ClearNotification = exports.ErrorNotification = exports.HintNotification = exports.SuccessNotification = exports.WarningNotification = exports.NotificationCard = void 0;
|
|
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");
|
|
2143
|
+
__webpack_require__(/*! ../../assets/styles/variables/overlays/notificationCard.scss */ "./assets/styles/variables/overlays/notificationCard.scss");
|
|
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;
|
|
2149
|
+
}
|
|
2150
|
+
componentDidMount() {
|
|
2151
|
+
var _a, _b;
|
|
2152
|
+
(_a = this.notificationCardNode) === null || _a === void 0 ? void 0 : _a.addEventListener('mouseenter', this.props.clearTimer);
|
|
2153
|
+
(_b = this.notificationCardNode) === null || _b === void 0 ? void 0 : _b.addEventListener('mouseleave', this.props.refreshTimer);
|
|
2154
|
+
}
|
|
2155
|
+
componentWillUnmount() {
|
|
2156
|
+
var _a, _b;
|
|
2157
|
+
(_a = this.notificationCardNode) === null || _a === void 0 ? void 0 : _a.removeEventListener('mouseenter', this.props.clearTimer);
|
|
2158
|
+
(_b = this.notificationCardNode) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseleave', this.props.refreshTimer);
|
|
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 },
|
|
2162
|
+
react_1.default.createElement("div", { className: css.mainPath },
|
|
2163
|
+
this.props.icon && react_1.default.createElement("div", { className: css.iconWrapper },
|
|
2164
|
+
react_1.default.createElement(uui_components_1.IconContainer, { icon: this.props.icon, cx: css.actionIcon })),
|
|
2165
|
+
react_1.default.createElement("div", { className: css.content },
|
|
2166
|
+
this.props.children,
|
|
2167
|
+
this.props.actions && react_1.default.createElement("div", { className: css.actionWrapper }, this.props.actions.map((action) => {
|
|
2168
|
+
return react_1.default.createElement(buttons_1.LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css.actionLink, size: '36' });
|
|
2169
|
+
}))),
|
|
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
|
+
}
|
|
2174
|
+
exports.NotificationCard = NotificationCard;
|
|
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) }));
|
|
2176
|
+
exports.WarningNotification = WarningNotification;
|
|
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) }));
|
|
2178
|
+
exports.SuccessNotification = SuccessNotification;
|
|
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) }));
|
|
2180
|
+
exports.HintNotification = HintNotification;
|
|
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) }));
|
|
2182
|
+
exports.ErrorNotification = ErrorNotification;
|
|
2183
|
+
class ClearNotification extends react_1.default.Component {
|
|
2184
|
+
render() {
|
|
2185
|
+
return react_1.default.createElement("div", { className: (0, classnames_1.default)(css.notificationWrapper, css.clearButton) },
|
|
2186
|
+
react_1.default.createElement(buttons_1.LinkButton, { caption: i18n_1.i18n.notificationCard.closeAllNotificationsButton, onClick: () => this.context.uuiNotifications.clearAll() }));
|
|
2187
|
+
}
|
|
2188
|
+
}
|
|
2189
|
+
exports.ClearNotification = ClearNotification;
|
|
2190
|
+
ClearNotification.contextType = uui_core_1.UuiContext;
|
|
2191
2191
|
|
|
2192
2192
|
|
|
2193
2193
|
/***/ }),
|
|
@@ -2200,7 +2200,7 @@ ClearNotification.contextType = uui_core_1.UuiContext;
|
|
|
2200
2200
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2201
2201
|
|
|
2202
2202
|
// extracted by mini-css-extract-plugin
|
|
2203
|
-
module.exports = {"root":"
|
|
2203
|
+
module.exports = {"root":"_2o8VG"};
|
|
2204
2204
|
|
|
2205
2205
|
/***/ }),
|
|
2206
2206
|
|
|
@@ -2212,21 +2212,21 @@ module.exports = {"root":"_3vAqO"};
|
|
|
2212
2212
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2213
2213
|
|
|
2214
2214
|
"use strict";
|
|
2215
|
-
|
|
2216
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2217
|
-
exports.Tooltip = void 0;
|
|
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");
|
|
2221
|
-
__webpack_require__(/*! ../../assets/styles/variables/overlays/tooltip.scss */ "./assets/styles/variables/overlays/tooltip.scss");
|
|
2222
|
-
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Tooltip.scss */ "./components/overlays/Tooltip.scss"));
|
|
2223
|
-
function applyTooltipMods(mods) {
|
|
2224
|
-
return [
|
|
2225
|
-
'tooltip-vars',
|
|
2226
|
-
css.root,
|
|
2227
|
-
];
|
|
2228
|
-
}
|
|
2229
|
-
exports.Tooltip = (0, uui_core_1.withMods)(uui_components_1.Tooltip, applyTooltipMods);
|
|
2215
|
+
|
|
2216
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2217
|
+
exports.Tooltip = void 0;
|
|
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");
|
|
2221
|
+
__webpack_require__(/*! ../../assets/styles/variables/overlays/tooltip.scss */ "./assets/styles/variables/overlays/tooltip.scss");
|
|
2222
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Tooltip.scss */ "./components/overlays/Tooltip.scss"));
|
|
2223
|
+
function applyTooltipMods(mods) {
|
|
2224
|
+
return [
|
|
2225
|
+
'tooltip-vars',
|
|
2226
|
+
css.root,
|
|
2227
|
+
];
|
|
2228
|
+
}
|
|
2229
|
+
exports.Tooltip = (0, uui_core_1.withMods)(uui_components_1.Tooltip, applyTooltipMods);
|
|
2230
2230
|
|
|
2231
2231
|
|
|
2232
2232
|
/***/ }),
|
|
@@ -2239,15 +2239,15 @@ exports.Tooltip = (0, uui_core_1.withMods)(uui_components_1.Tooltip, applyToolti
|
|
|
2239
2239
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2240
2240
|
|
|
2241
2241
|
"use strict";
|
|
2242
|
-
|
|
2243
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2244
|
-
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2245
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Dropdown */ "./components/overlays/Dropdown.tsx"), exports);
|
|
2246
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DropdownContainer */ "./components/overlays/DropdownContainer.tsx"), exports);
|
|
2247
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DropdownMenu */ "./components/overlays/DropdownMenu.tsx"), exports);
|
|
2248
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Modals */ "./components/overlays/Modals.tsx"), exports);
|
|
2249
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./NotificationCard */ "./components/overlays/NotificationCard.tsx"), exports);
|
|
2250
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Tooltip */ "./components/overlays/Tooltip.tsx"), exports);
|
|
2242
|
+
|
|
2243
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2244
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2245
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Dropdown */ "./components/overlays/Dropdown.tsx"), exports);
|
|
2246
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DropdownContainer */ "./components/overlays/DropdownContainer.tsx"), exports);
|
|
2247
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DropdownMenu */ "./components/overlays/DropdownMenu.tsx"), exports);
|
|
2248
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Modals */ "./components/overlays/Modals.tsx"), exports);
|
|
2249
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./NotificationCard */ "./components/overlays/NotificationCard.tsx"), exports);
|
|
2250
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Tooltip */ "./components/overlays/Tooltip.tsx"), exports);
|
|
2251
2251
|
|
|
2252
2252
|
|
|
2253
2253
|
/***/ }),
|
|
@@ -2260,7 +2260,7 @@ const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es
|
|
|
2260
2260
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2261
2261
|
|
|
2262
2262
|
// extracted by mini-css-extract-plugin
|
|
2263
|
-
module.exports = {"body":"
|
|
2263
|
+
module.exports = {"body":"_3_A6Y","modal":"_3u7ic","search":"_2j2ut","checkbox":"_2IoGK","search-wrapper":"_2VMSO","searchWrapper":"_2VMSO","search-size-24":"_2AwPD","searchSize24":"_2AwPD","search-size-30":"_2I_qv","searchSize30":"_2I_qv","search-size-36":"_2Ebm_","searchSize36":"_2Ebm_","search-size-42":"_3Lyua","searchSize42":"_3Lyua","no-found-size-24":"_3HXkt","noFoundSize24":"_3HXkt","no-found-size-30":"_1BFsW","noFoundSize30":"_1BFsW","no-found-size-36":"_3bMXW","noFoundSize36":"_3bMXW","no-found-size-42":"_2d55w","noFoundSize42":"_2d55w"};
|
|
2264
2264
|
|
|
2265
2265
|
/***/ }),
|
|
2266
2266
|
|
|
@@ -2272,45 +2272,45 @@ module.exports = {"body":"_2zQf0","modal":"Mk13U","search":"_2nNZv","checkbox":"
|
|
|
2272
2272
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2273
2273
|
|
|
2274
2274
|
"use strict";
|
|
2275
|
-
|
|
2276
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2277
|
-
exports.DataPickerBody = void 0;
|
|
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');
|
|
2292
|
-
}
|
|
2293
|
-
renderNoFound() {
|
|
2294
|
-
if (this.props.renderNotFound) {
|
|
2295
|
-
return this.props.renderNotFound();
|
|
2296
|
-
}
|
|
2297
|
-
return react_1.default.createElement(uui_components_1.FlexCell, { cx: css[`no-found-size-${this.props.searchSize || 36}`], grow: 1, textAlign: 'center' },
|
|
2298
|
-
react_1.default.createElement(typography_1.Text, { size: this.props.searchSize || '36' }, i18n_1.i18n.dataPickerBody.noRecordsMessage));
|
|
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}`]);
|
|
2304
|
-
return react_1.default.createElement(react_1.default.Fragment, null,
|
|
2305
|
-
this.showSearch() && (react_1.default.createElement("div", { key: 'search', className: searchClass },
|
|
2306
|
-
react_1.default.createElement(uui_components_1.FlexCell, { grow: 1 },
|
|
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 }))))),
|
|
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
|
|
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 }))
|
|
2310
|
-
: this.renderNoFound()));
|
|
2311
|
-
}
|
|
2312
|
-
}
|
|
2313
|
-
exports.DataPickerBody = DataPickerBody;
|
|
2275
|
+
|
|
2276
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2277
|
+
exports.DataPickerBody = void 0;
|
|
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');
|
|
2292
|
+
}
|
|
2293
|
+
renderNoFound() {
|
|
2294
|
+
if (this.props.renderNotFound) {
|
|
2295
|
+
return this.props.renderNotFound();
|
|
2296
|
+
}
|
|
2297
|
+
return react_1.default.createElement(uui_components_1.FlexCell, { cx: css[`no-found-size-${this.props.searchSize || 36}`], grow: 1, textAlign: 'center' },
|
|
2298
|
+
react_1.default.createElement(typography_1.Text, { size: this.props.searchSize || '36' }, i18n_1.i18n.dataPickerBody.noRecordsMessage));
|
|
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}`]);
|
|
2304
|
+
return react_1.default.createElement(react_1.default.Fragment, null,
|
|
2305
|
+
this.showSearch() && (react_1.default.createElement("div", { key: 'search', className: searchClass },
|
|
2306
|
+
react_1.default.createElement(uui_components_1.FlexCell, { grow: 1 },
|
|
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 }))))),
|
|
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
|
|
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 }))
|
|
2310
|
+
: this.renderNoFound()));
|
|
2311
|
+
}
|
|
2312
|
+
}
|
|
2313
|
+
exports.DataPickerBody = DataPickerBody;
|
|
2314
2314
|
|
|
2315
2315
|
|
|
2316
2316
|
/***/ }),
|
|
@@ -2323,7 +2323,7 @@ exports.DataPickerBody = DataPickerBody;
|
|
|
2323
2323
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2324
2324
|
|
|
2325
2325
|
// extracted by mini-css-extract-plugin
|
|
2326
|
-
module.exports = {"footer-wrapper":"
|
|
2326
|
+
module.exports = {"footer-wrapper":"_3cIy0","footerWrapper":"_3cIy0"};
|
|
2327
2327
|
|
|
2328
2328
|
/***/ }),
|
|
2329
2329
|
|
|
@@ -2335,44 +2335,44 @@ module.exports = {"footer-wrapper":"_9dD02","footerWrapper":"_9dD02"};
|
|
|
2335
2335
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2336
2336
|
|
|
2337
2337
|
"use strict";
|
|
2338
|
-
|
|
2339
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2340
|
-
exports.DataPickerFooter = void 0;
|
|
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 = {
|
|
2351
|
-
'24': '12',
|
|
2352
|
-
'36': '18',
|
|
2353
|
-
'42': '24',
|
|
2354
|
-
'48': '24',
|
|
2355
|
-
};
|
|
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) => {
|
|
2362
|
-
if (!e.shiftKey && e.key === 'Tab')
|
|
2363
|
-
e.preventDefault();
|
|
2364
|
-
};
|
|
2365
|
-
return (react_1.default.createElement(layout_1.FlexRow, { padding: '12', cx: (0, classnames_1.default)(DataPickerFooter_scss_1.default.footerWrapper) },
|
|
2366
|
-
!props.hideShowOnlySelected && react_1.default.createElement(inputs_1.Switch, { size: switchSize, value: showSelected.value, isDisabled: !hasSelection, onValueChange: showSelected.onValueChange, label: i18n_1.i18n.pickerInput.showOnlySelectedLabel }),
|
|
2367
|
-
react_1.default.createElement(layout_1.FlexSpacer, null),
|
|
2368
|
-
view.selectAll && (react_1.default.createElement(layout_1.FlexCell, { width: 'auto', alignSelf: 'center' },
|
|
2369
|
-
react_1.default.createElement(buttons_1.LinkButton, { size: size, caption: hasSelection
|
|
2370
|
-
? i18n_1.i18n.pickerInput.clearSelectionButton
|
|
2371
|
-
: i18n_1.i18n.pickerInput.selectAllButton, onClick: hasSelection
|
|
2372
|
-
? clearSelection
|
|
2373
|
-
: () => view.selectAll.onValueChange(true), rawProps: { onKeyDown: handleKeyDown } })))));
|
|
2374
|
-
};
|
|
2375
|
-
exports.DataPickerFooter = react_1.default.memo(DataPickerFooterImpl);
|
|
2338
|
+
|
|
2339
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2340
|
+
exports.DataPickerFooter = void 0;
|
|
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 = {
|
|
2351
|
+
'24': '12',
|
|
2352
|
+
'36': '18',
|
|
2353
|
+
'42': '24',
|
|
2354
|
+
'48': '24',
|
|
2355
|
+
};
|
|
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) => {
|
|
2362
|
+
if (!e.shiftKey && e.key === 'Tab')
|
|
2363
|
+
e.preventDefault();
|
|
2364
|
+
};
|
|
2365
|
+
return (react_1.default.createElement(layout_1.FlexRow, { padding: '12', cx: (0, classnames_1.default)(DataPickerFooter_scss_1.default.footerWrapper) },
|
|
2366
|
+
!props.hideShowOnlySelected && react_1.default.createElement(inputs_1.Switch, { size: switchSize, value: showSelected.value, isDisabled: !hasSelection, onValueChange: showSelected.onValueChange, label: i18n_1.i18n.pickerInput.showOnlySelectedLabel }),
|
|
2367
|
+
react_1.default.createElement(layout_1.FlexSpacer, null),
|
|
2368
|
+
view.selectAll && (react_1.default.createElement(layout_1.FlexCell, { width: 'auto', alignSelf: 'center' },
|
|
2369
|
+
react_1.default.createElement(buttons_1.LinkButton, { size: size, caption: hasSelection
|
|
2370
|
+
? i18n_1.i18n.pickerInput.clearSelectionButton
|
|
2371
|
+
: i18n_1.i18n.pickerInput.selectAllButton, onClick: hasSelection
|
|
2372
|
+
? clearSelection
|
|
2373
|
+
: () => view.selectAll.onValueChange(true), rawProps: { onKeyDown: handleKeyDown } })))));
|
|
2374
|
+
};
|
|
2375
|
+
exports.DataPickerFooter = react_1.default.memo(DataPickerFooterImpl);
|
|
2376
2376
|
|
|
2377
2377
|
|
|
2378
2378
|
/***/ }),
|
|
@@ -2385,7 +2385,7 @@ exports.DataPickerFooter = react_1.default.memo(DataPickerFooterImpl);
|
|
|
2385
2385
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2386
2386
|
|
|
2387
2387
|
// extracted by mini-css-extract-plugin
|
|
2388
|
-
module.exports = {"header":"
|
|
2388
|
+
module.exports = {"header":"lZ1mj","close":"_3So8u"};
|
|
2389
2389
|
|
|
2390
2390
|
/***/ }),
|
|
2391
2391
|
|
|
@@ -2397,23 +2397,23 @@ module.exports = {"header":"_33zyC","close":"_3A9FY"};
|
|
|
2397
2397
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2398
2398
|
|
|
2399
2399
|
"use strict";
|
|
2400
|
-
|
|
2401
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2402
|
-
exports.DataPickerHeader = void 0;
|
|
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) : '';
|
|
2412
|
-
return (react_1.default.createElement(layout_1.FlexRow, { alignItems: 'center', borderBottom: true, size: "48", cx: DataPickerHeader_scss_1.default.header },
|
|
2413
|
-
react_1.default.createElement(typography_1.Text, { font: 'semibold' }, title),
|
|
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 })));
|
|
2415
|
-
};
|
|
2416
|
-
exports.DataPickerHeader = react_1.default.memo(DataPickerHeaderImpl);
|
|
2400
|
+
|
|
2401
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2402
|
+
exports.DataPickerHeader = void 0;
|
|
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) : '';
|
|
2412
|
+
return (react_1.default.createElement(layout_1.FlexRow, { alignItems: 'center', borderBottom: true, size: "48", cx: DataPickerHeader_scss_1.default.header },
|
|
2413
|
+
react_1.default.createElement(typography_1.Text, { font: 'semibold' }, title),
|
|
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 })));
|
|
2415
|
+
};
|
|
2416
|
+
exports.DataPickerHeader = react_1.default.memo(DataPickerHeaderImpl);
|
|
2417
2417
|
|
|
2418
2418
|
|
|
2419
2419
|
/***/ }),
|
|
@@ -2426,7 +2426,7 @@ exports.DataPickerHeader = react_1.default.memo(DataPickerHeaderImpl);
|
|
|
2426
2426
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2427
2427
|
|
|
2428
2428
|
// extracted by mini-css-extract-plugin
|
|
2429
|
-
module.exports = {"render-item":"
|
|
2429
|
+
module.exports = {"render-item":"vxc4l","renderItem":"vxc4l","icon-wrapper":"_3eOVZ","iconWrapper":"_3eOVZ","picker-row":"Oplfl","pickerRow":"Oplfl"};
|
|
2430
2430
|
|
|
2431
2431
|
/***/ }),
|
|
2432
2432
|
|
|
@@ -2438,49 +2438,49 @@ module.exports = {"render-item":"_2ikrW","renderItem":"_2ikrW","icon-wrapper":"_
|
|
|
2438
2438
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2439
2439
|
|
|
2440
2440
|
"use strict";
|
|
2441
|
-
|
|
2442
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2443
|
-
exports.DataPickerRow = void 0;
|
|
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) => {
|
|
2457
|
-
switch (size) {
|
|
2458
|
-
case '24': return notification_done_12_svg_1.ReactComponent;
|
|
2459
|
-
case '30': return notification_done_18_svg_1.ReactComponent;
|
|
2460
|
-
case '36': return notification_done_18_svg_1.ReactComponent;
|
|
2461
|
-
case '42': return notification_done_24_svg_1.ReactComponent;
|
|
2462
|
-
default: return notification_done_18_svg_1.ReactComponent;
|
|
2463
|
-
}
|
|
2464
|
-
};
|
|
2465
|
-
this.column = {
|
|
2466
|
-
key: 'name',
|
|
2467
|
-
grow: 1,
|
|
2468
|
-
width: 0,
|
|
2469
|
-
render: (item, rowProps) => React.createElement("div", { key: rowProps.id, className: css.renderItem },
|
|
2470
|
-
this.props.renderItem(item, rowProps),
|
|
2471
|
-
React.createElement(layout_1.FlexSpacer, null),
|
|
2472
|
-
(rowProps.isChildrenSelected || rowProps.isSelected) && React.createElement("div", { className: css.iconWrapper },
|
|
2473
|
-
React.createElement(layout_1.IconContainer, { icon: this.getIcon(this.props.size), color: rowProps.isChildrenSelected ? 'default' : 'info' }))),
|
|
2474
|
-
};
|
|
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' });
|
|
2477
|
-
};
|
|
2478
|
-
}
|
|
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
|
-
}
|
|
2483
|
-
exports.DataPickerRow = DataPickerRow;
|
|
2441
|
+
|
|
2442
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2443
|
+
exports.DataPickerRow = void 0;
|
|
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) => {
|
|
2457
|
+
switch (size) {
|
|
2458
|
+
case '24': return notification_done_12_svg_1.ReactComponent;
|
|
2459
|
+
case '30': return notification_done_18_svg_1.ReactComponent;
|
|
2460
|
+
case '36': return notification_done_18_svg_1.ReactComponent;
|
|
2461
|
+
case '42': return notification_done_24_svg_1.ReactComponent;
|
|
2462
|
+
default: return notification_done_18_svg_1.ReactComponent;
|
|
2463
|
+
}
|
|
2464
|
+
};
|
|
2465
|
+
this.column = {
|
|
2466
|
+
key: 'name',
|
|
2467
|
+
grow: 1,
|
|
2468
|
+
width: 0,
|
|
2469
|
+
render: (item, rowProps) => React.createElement("div", { key: rowProps.id, className: css.renderItem },
|
|
2470
|
+
this.props.renderItem(item, rowProps),
|
|
2471
|
+
React.createElement(layout_1.FlexSpacer, null),
|
|
2472
|
+
(rowProps.isChildrenSelected || rowProps.isSelected) && React.createElement("div", { className: css.iconWrapper },
|
|
2473
|
+
React.createElement(layout_1.IconContainer, { icon: this.getIcon(this.props.size), color: rowProps.isChildrenSelected ? 'default' : 'info' }))),
|
|
2474
|
+
};
|
|
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' });
|
|
2477
|
+
};
|
|
2478
|
+
}
|
|
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
|
+
}
|
|
2483
|
+
exports.DataPickerRow = DataPickerRow;
|
|
2484
2484
|
|
|
2485
2485
|
|
|
2486
2486
|
/***/ }),
|
|
@@ -2493,7 +2493,7 @@ exports.DataPickerRow = DataPickerRow;
|
|
|
2493
2493
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2494
2494
|
|
|
2495
2495
|
// extracted by mini-css-extract-plugin
|
|
2496
|
-
module.exports = {"done":"
|
|
2496
|
+
module.exports = {"done":"Nm9pG"};
|
|
2497
2497
|
|
|
2498
2498
|
/***/ }),
|
|
2499
2499
|
|
|
@@ -2505,24 +2505,24 @@ module.exports = {"done":"IPpjs"};
|
|
|
2505
2505
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2506
2506
|
|
|
2507
2507
|
"use strict";
|
|
2508
|
-
|
|
2509
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2510
|
-
exports.MobileDropdownWrapper = void 0;
|
|
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)();
|
|
2519
|
-
(0, uui_core_1.useAppMobileHeight)();
|
|
2520
|
-
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
2521
|
-
isVisible && react_1.default.createElement(DataPickerHeader_1.DataPickerHeader, { title: props.title, close: props.close }),
|
|
2522
|
-
props.children,
|
|
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' }))));
|
|
2524
|
-
};
|
|
2525
|
-
exports.MobileDropdownWrapper = MobileDropdownWrapper;
|
|
2508
|
+
|
|
2509
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2510
|
+
exports.MobileDropdownWrapper = void 0;
|
|
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)();
|
|
2519
|
+
(0, uui_core_1.useAppMobileHeight)();
|
|
2520
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
2521
|
+
isVisible && react_1.default.createElement(DataPickerHeader_1.DataPickerHeader, { title: props.title, close: props.close }),
|
|
2522
|
+
props.children,
|
|
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' }))));
|
|
2524
|
+
};
|
|
2525
|
+
exports.MobileDropdownWrapper = MobileDropdownWrapper;
|
|
2526
2526
|
|
|
2527
2527
|
|
|
2528
2528
|
/***/ }),
|
|
@@ -2535,7 +2535,7 @@ exports.MobileDropdownWrapper = MobileDropdownWrapper;
|
|
|
2535
2535
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2536
2536
|
|
|
2537
2537
|
// extracted by mini-css-extract-plugin
|
|
2538
|
-
module.exports = {"panel":"
|
|
2538
|
+
module.exports = {"panel":"_2IBHB","footer-wrapper":"_2ctGW","footerWrapper":"_2ctGW","footer-size-24":"_2wMKa","footerSize24":"_2wMKa","footer-size-30":"_2NiMj","footerSize30":"_2NiMj","footer-size-36":"_1SvdP","footerSize36":"_1SvdP","footer-size-42":"_1jYZZ","footerSize42":"_1jYZZ","footer-size-48":"_3bpno","footerSize48":"_3bpno"};
|
|
2539
2539
|
|
|
2540
2540
|
/***/ }),
|
|
2541
2541
|
|
|
@@ -2547,75 +2547,75 @@ module.exports = {"panel":"_3P7yc","footer-wrapper":"_3MzrB","footerWrapper":"_3
|
|
|
2547
2547
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2548
2548
|
|
|
2549
2549
|
"use strict";
|
|
2550
|
-
|
|
2551
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2552
|
-
exports.PickerInput = void 0;
|
|
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));
|
|
2574
|
-
};
|
|
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 })));
|
|
2577
|
-
};
|
|
2578
|
-
}
|
|
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() {
|
|
2586
|
-
return (0, uui_core_1.isMobile)()
|
|
2587
|
-
? '48'
|
|
2588
|
-
: this.props.editMode === 'modal'
|
|
2589
|
-
? '36'
|
|
2590
|
-
: this.props.size;
|
|
2591
|
-
}
|
|
2592
|
-
getTogglerMods() {
|
|
2593
|
-
return {
|
|
2594
|
-
size: this.props.size,
|
|
2595
|
-
mode: this.props.mode ? this.props.mode : types_1.EditMode.FORM,
|
|
2596
|
-
};
|
|
2597
|
-
}
|
|
2598
|
-
renderFooter() {
|
|
2599
|
-
const footerProps = this.getFooterProps();
|
|
2600
|
-
return this.props.renderFooter
|
|
2601
|
-
? this.props.renderFooter(footerProps)
|
|
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: targetProps.value, 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);
|
|
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 },
|
|
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' })),
|
|
2615
|
-
!this.isSingleSelect() && this.renderFooter())));
|
|
2616
|
-
}
|
|
2617
|
-
}
|
|
2618
|
-
exports.PickerInput = PickerInput;
|
|
2550
|
+
|
|
2551
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2552
|
+
exports.PickerInput = void 0;
|
|
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));
|
|
2574
|
+
};
|
|
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 })));
|
|
2577
|
+
};
|
|
2578
|
+
}
|
|
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() {
|
|
2586
|
+
return (0, uui_core_1.isMobile)()
|
|
2587
|
+
? '48'
|
|
2588
|
+
: this.props.editMode === 'modal'
|
|
2589
|
+
? '36'
|
|
2590
|
+
: this.props.size;
|
|
2591
|
+
}
|
|
2592
|
+
getTogglerMods() {
|
|
2593
|
+
return {
|
|
2594
|
+
size: this.props.size,
|
|
2595
|
+
mode: this.props.mode ? this.props.mode : types_1.EditMode.FORM,
|
|
2596
|
+
};
|
|
2597
|
+
}
|
|
2598
|
+
renderFooter() {
|
|
2599
|
+
const footerProps = this.getFooterProps();
|
|
2600
|
+
return this.props.renderFooter
|
|
2601
|
+
? this.props.renderFooter(footerProps)
|
|
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: targetProps.value, 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);
|
|
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 },
|
|
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' })),
|
|
2615
|
+
!this.isSingleSelect() && this.renderFooter())));
|
|
2616
|
+
}
|
|
2617
|
+
}
|
|
2618
|
+
exports.PickerInput = PickerInput;
|
|
2619
2619
|
|
|
2620
2620
|
|
|
2621
2621
|
/***/ }),
|
|
@@ -2628,7 +2628,7 @@ exports.PickerInput = PickerInput;
|
|
|
2628
2628
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2629
2629
|
|
|
2630
2630
|
// extracted by mini-css-extract-plugin
|
|
2631
|
-
module.exports = {"root":"
|
|
2631
|
+
module.exports = {"root":"lhA85","multiline-vertical-padding-24":"_1YUBS","multilineVerticalPadding24":"_1YUBS","multiline-vertical-padding-30":"_2ElKQ","multilineVerticalPadding30":"_2ElKQ","multiline-vertical-padding-36":"YHeQ0","multilineVerticalPadding36":"YHeQ0","multiline-vertical-padding-42":"_2MF5I","multilineVerticalPadding42":"_2MF5I","multiline-vertical-padding-48":"_2yATR","multilineVerticalPadding48":"_2yATR"};
|
|
2632
2632
|
|
|
2633
2633
|
/***/ }),
|
|
2634
2634
|
|
|
@@ -2640,36 +2640,36 @@ module.exports = {"root":"_3vqf5","multiline-vertical-padding-24":"_2U-PI","mult
|
|
|
2640
2640
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2641
2641
|
|
|
2642
2642
|
"use strict";
|
|
2643
|
-
|
|
2644
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2645
|
-
exports.PickerItem = void 0;
|
|
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) => {
|
|
2657
|
-
return isMultiline ? size : +size - 6;
|
|
2658
|
-
};
|
|
2659
|
-
}
|
|
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);
|
|
2664
|
-
return (React.createElement(FlexItems_1.FlexCell, { width: 'auto', cx: css.root },
|
|
2665
|
-
React.createElement(FlexItems_1.FlexRow, { size: itemSize, cx: isMultiline && css[`multiline-vertical-padding-${itemSize}`], spacing: '12' },
|
|
2666
|
-
avatarUrl && React.createElement(widgets_1.Avatar, { isLoading: isLoading, img: avatarUrl, size: this.getAvatarSize(itemSize, isMultiline).toString() }),
|
|
2667
|
-
React.createElement(FlexItems_1.FlexCell, { width: 'auto' },
|
|
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),
|
|
2669
|
-
subtitle && React.createElement(typography_1.Text, { size: itemSize, color: 'disabled', cx: css.text }, isLoading ? React.createElement(typography_1.TextPlaceholder, { wordsCount: 2 }) : subtitle)))));
|
|
2670
|
-
}
|
|
2671
|
-
}
|
|
2672
|
-
exports.PickerItem = PickerItem;
|
|
2643
|
+
|
|
2644
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2645
|
+
exports.PickerItem = void 0;
|
|
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) => {
|
|
2657
|
+
return isMultiline ? size : +size - 6;
|
|
2658
|
+
};
|
|
2659
|
+
}
|
|
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);
|
|
2664
|
+
return (React.createElement(FlexItems_1.FlexCell, { width: 'auto', cx: css.root },
|
|
2665
|
+
React.createElement(FlexItems_1.FlexRow, { size: itemSize, cx: isMultiline && css[`multiline-vertical-padding-${itemSize}`], spacing: '12' },
|
|
2666
|
+
avatarUrl && React.createElement(widgets_1.Avatar, { isLoading: isLoading, img: avatarUrl, size: this.getAvatarSize(itemSize, isMultiline).toString() }),
|
|
2667
|
+
React.createElement(FlexItems_1.FlexCell, { width: 'auto' },
|
|
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),
|
|
2669
|
+
subtitle && React.createElement(typography_1.Text, { size: itemSize, color: 'disabled', cx: css.text }, isLoading ? React.createElement(typography_1.TextPlaceholder, { wordsCount: 2 }) : subtitle)))));
|
|
2670
|
+
}
|
|
2671
|
+
}
|
|
2672
|
+
exports.PickerItem = PickerItem;
|
|
2673
2673
|
|
|
2674
2674
|
|
|
2675
2675
|
/***/ }),
|
|
@@ -2682,55 +2682,55 @@ exports.PickerItem = PickerItem;
|
|
|
2682
2682
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2683
2683
|
|
|
2684
2684
|
"use strict";
|
|
2685
|
-
|
|
2686
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2687
|
-
exports.PickerList = void 0;
|
|
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 }));
|
|
2702
|
-
};
|
|
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
|
-
});
|
|
2710
|
-
};
|
|
2711
|
-
this.defaultRenderToggler = (props) => (react_1.default.createElement(buttons_1.LinkButton, Object.assign({ caption: 'Show all' }, props)));
|
|
2712
|
-
}
|
|
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;
|
|
2721
|
-
return (react_1.default.createElement("div", null,
|
|
2722
|
-
!rows.length && (this.props.noOptionsMessage ?
|
|
2723
|
-
this.props.noOptionsMessage :
|
|
2724
|
-
react_1.default.createElement(typography_1.Text, { color: 'secondary', size: this.props.size }, "No options available")),
|
|
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
|
-
}
|
|
2732
|
-
exports.PickerList = PickerList;
|
|
2733
|
-
PickerList.contextType = uui_core_1.UuiContext;
|
|
2685
|
+
|
|
2686
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2687
|
+
exports.PickerList = void 0;
|
|
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 }));
|
|
2702
|
+
};
|
|
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
|
+
});
|
|
2710
|
+
};
|
|
2711
|
+
this.defaultRenderToggler = (props) => (react_1.default.createElement(buttons_1.LinkButton, Object.assign({ caption: 'Show all' }, props)));
|
|
2712
|
+
}
|
|
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;
|
|
2721
|
+
return (react_1.default.createElement("div", null,
|
|
2722
|
+
!rows.length && (this.props.noOptionsMessage ?
|
|
2723
|
+
this.props.noOptionsMessage :
|
|
2724
|
+
react_1.default.createElement(typography_1.Text, { color: 'secondary', size: this.props.size }, "No options available")),
|
|
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
|
+
}
|
|
2732
|
+
exports.PickerList = PickerList;
|
|
2733
|
+
PickerList.contextType = uui_core_1.UuiContext;
|
|
2734
2734
|
|
|
2735
2735
|
|
|
2736
2736
|
/***/ }),
|
|
@@ -2743,7 +2743,7 @@ PickerList.contextType = uui_core_1.UuiContext;
|
|
|
2743
2743
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2744
2744
|
|
|
2745
2745
|
// extracted by mini-css-extract-plugin
|
|
2746
|
-
module.exports = {"row":"
|
|
2746
|
+
module.exports = {"row":"_1VkeG"};
|
|
2747
2747
|
|
|
2748
2748
|
/***/ }),
|
|
2749
2749
|
|
|
@@ -2755,34 +2755,34 @@ module.exports = {"row":"_1dgui"};
|
|
|
2755
2755
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2756
2756
|
|
|
2757
2757
|
"use strict";
|
|
2758
|
-
|
|
2759
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2760
|
-
exports.PickerListItem = void 0;
|
|
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;
|
|
2769
|
-
if (this.props.isLoading) {
|
|
2770
|
-
label = react_1.default.createElement(typography_1.TextPlaceholder, { wordsCount: 2 });
|
|
2771
|
-
}
|
|
2772
|
-
else {
|
|
2773
|
-
label = this.props.getName(this.props.value);
|
|
2774
|
-
}
|
|
2775
|
-
let component;
|
|
2776
|
-
if (this.props.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) }));
|
|
2778
|
-
}
|
|
2779
|
-
else {
|
|
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) });
|
|
2781
|
-
}
|
|
2782
|
-
return react_1.default.createElement("div", { className: PickerListItem_scss_1.default.row }, component);
|
|
2783
|
-
}
|
|
2784
|
-
}
|
|
2785
|
-
exports.PickerListItem = PickerListItem;
|
|
2758
|
+
|
|
2759
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2760
|
+
exports.PickerListItem = void 0;
|
|
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;
|
|
2769
|
+
if (this.props.isLoading) {
|
|
2770
|
+
label = react_1.default.createElement(typography_1.TextPlaceholder, { wordsCount: 2 });
|
|
2771
|
+
}
|
|
2772
|
+
else {
|
|
2773
|
+
label = this.props.getName(this.props.value);
|
|
2774
|
+
}
|
|
2775
|
+
let component;
|
|
2776
|
+
if (this.props.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) }));
|
|
2778
|
+
}
|
|
2779
|
+
else {
|
|
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) });
|
|
2781
|
+
}
|
|
2782
|
+
return react_1.default.createElement("div", { className: PickerListItem_scss_1.default.row }, component);
|
|
2783
|
+
}
|
|
2784
|
+
}
|
|
2785
|
+
exports.PickerListItem = PickerListItem;
|
|
2786
2786
|
|
|
2787
2787
|
|
|
2788
2788
|
/***/ }),
|
|
@@ -2795,7 +2795,7 @@ exports.PickerListItem = PickerListItem;
|
|
|
2795
2795
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2796
2796
|
|
|
2797
2797
|
// extracted by mini-css-extract-plugin
|
|
2798
|
-
module.exports = {"sub-header-wrapper":"
|
|
2798
|
+
module.exports = {"sub-header-wrapper":"_3ho8r","subHeaderWrapper":"_3ho8r","switch":"_2woj9"};
|
|
2799
2799
|
|
|
2800
2800
|
/***/ }),
|
|
2801
2801
|
|
|
@@ -2807,75 +2807,75 @@ module.exports = {"sub-header-wrapper":"yO2Yg","subHeaderWrapper":"yO2Yg","switc
|
|
|
2807
2807
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2808
2808
|
|
|
2809
2809
|
"use strict";
|
|
2810
|
-
|
|
2811
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2812
|
-
exports.PickerModal = exports.PickerModalImpl = void 0;
|
|
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)) })));
|
|
2829
|
-
}
|
|
2830
|
-
renderFooter(selectedDataRows) {
|
|
2831
|
-
const hasSelection = selectedDataRows.length > 0;
|
|
2832
|
-
const view = this.getView();
|
|
2833
|
-
return React.createElement(React.Fragment, null,
|
|
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) }),
|
|
2835
|
-
React.createElement(FlexItems_1.FlexSpacer, null),
|
|
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),
|
|
2845
|
-
React.createElement(overlays_1.ModalWindow, { width: 600, height: 700 },
|
|
2846
|
-
React.createElement(overlays_1.ModalHeader, { borderBottom: true, title: this.props.caption || i18n_1.i18n.pickerModal.headerTitle, onClose: () => this.props.abort() }),
|
|
2847
|
-
React.createElement(FlexItems_1.FlexCell, { cx: css.subHeaderWrapper },
|
|
2848
|
-
React.createElement(FlexItems_1.FlexRow, { vPadding: '24' },
|
|
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,
|
|
2852
|
-
listView: view,
|
|
2853
|
-
rows: dataRows,
|
|
2854
|
-
editMode: 'modal',
|
|
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' })),
|
|
2857
|
-
this.props.renderFilter && React.createElement(FlexItems_1.FlexCell, { grow: 2 }, this.props.renderFilter(this.lens.prop('dataSourceState').prop('filter').toProps()))),
|
|
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' })),
|
|
2862
|
-
React.createElement(overlays_1.ModalFooter, { borderTop: true, padding: '24', vPadding: '24' }, this.props.renderFooter
|
|
2863
|
-
? this.props.renderFooter(this.getFooterProps())
|
|
2864
|
-
: this.renderFooter(selectedDataRows)))));
|
|
2865
|
-
}
|
|
2866
|
-
}
|
|
2867
|
-
exports.PickerModalImpl = PickerModalImpl;
|
|
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);
|
|
2873
|
-
}
|
|
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
|
-
}
|
|
2878
|
-
exports.PickerModal = PickerModal;
|
|
2810
|
+
|
|
2811
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2812
|
+
exports.PickerModal = exports.PickerModalImpl = void 0;
|
|
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)) })));
|
|
2829
|
+
}
|
|
2830
|
+
renderFooter(selectedDataRows) {
|
|
2831
|
+
const hasSelection = selectedDataRows.length > 0;
|
|
2832
|
+
const view = this.getView();
|
|
2833
|
+
return React.createElement(React.Fragment, null,
|
|
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) }),
|
|
2835
|
+
React.createElement(FlexItems_1.FlexSpacer, null),
|
|
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),
|
|
2845
|
+
React.createElement(overlays_1.ModalWindow, { width: 600, height: 700 },
|
|
2846
|
+
React.createElement(overlays_1.ModalHeader, { borderBottom: true, title: this.props.caption || i18n_1.i18n.pickerModal.headerTitle, onClose: () => this.props.abort() }),
|
|
2847
|
+
React.createElement(FlexItems_1.FlexCell, { cx: css.subHeaderWrapper },
|
|
2848
|
+
React.createElement(FlexItems_1.FlexRow, { vPadding: '24' },
|
|
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,
|
|
2852
|
+
listView: view,
|
|
2853
|
+
rows: dataRows,
|
|
2854
|
+
editMode: 'modal',
|
|
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' })),
|
|
2857
|
+
this.props.renderFilter && React.createElement(FlexItems_1.FlexCell, { grow: 2 }, this.props.renderFilter(this.lens.prop('dataSourceState').prop('filter').toProps()))),
|
|
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' })),
|
|
2862
|
+
React.createElement(overlays_1.ModalFooter, { borderTop: true, padding: '24', vPadding: '24' }, this.props.renderFooter
|
|
2863
|
+
? this.props.renderFooter(this.getFooterProps())
|
|
2864
|
+
: this.renderFooter(selectedDataRows)))));
|
|
2865
|
+
}
|
|
2866
|
+
}
|
|
2867
|
+
exports.PickerModalImpl = PickerModalImpl;
|
|
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);
|
|
2873
|
+
}
|
|
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
|
+
}
|
|
2878
|
+
exports.PickerModal = PickerModal;
|
|
2879
2879
|
|
|
2880
2880
|
|
|
2881
2881
|
/***/ }),
|
|
@@ -2888,7 +2888,7 @@ exports.PickerModal = PickerModal;
|
|
|
2888
2888
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2889
2889
|
|
|
2890
2890
|
// extracted by mini-css-extract-plugin
|
|
2891
|
-
module.exports = {"root":"
|
|
2891
|
+
module.exports = {"root":"_1Gul6","mode-form":"KnUr_","modeForm":"KnUr_","mode-cell":"_2-l9w","modeCell":"_2-l9w","size-24":"_2IpuH","size24":"_2IpuH","size-30":"_1kRz3","size30":"_1kRz3","size-36":"_1V-Nx","size36":"_1V-Nx","size-42":"_1xKKy","size42":"_1xKKy","size-48":"dNtbg","size48":"dNtbg"};
|
|
2892
2892
|
|
|
2893
2893
|
/***/ }),
|
|
2894
2894
|
|
|
@@ -2900,66 +2900,66 @@ module.exports = {"root":"_1ASY5","mode-form":"_2KV8K","modeForm":"_2KV8K","mode
|
|
|
2900
2900
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2901
2901
|
|
|
2902
2902
|
"use strict";
|
|
2903
|
-
|
|
2904
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2905
|
-
exports.PickerToggler = void 0;
|
|
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"));
|
|
2913
|
-
__webpack_require__(/*! ../../assets/styles/variables/pickers/pickerToggler.scss */ "./assets/styles/variables/pickers/pickerToggler.scss");
|
|
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;
|
|
2917
|
-
function applyPickerTogglerMods(mods) {
|
|
2918
|
-
return [
|
|
2919
|
-
'picker-toggler-vars',
|
|
2920
|
-
css.root,
|
|
2921
|
-
css['size-' + (mods.size || defaultSize)],
|
|
2922
|
-
css['mode-' + (mods.mode || defaultMode)],
|
|
2923
|
-
];
|
|
2924
|
-
}
|
|
2925
|
-
function PickerTogglerComponent(props, ref) {
|
|
2926
|
-
const getPickerTogglerButtonSize = (propSize) => {
|
|
2927
|
-
switch (propSize) {
|
|
2928
|
-
case '48':
|
|
2929
|
-
return '42';
|
|
2930
|
-
case '42':
|
|
2931
|
-
return '36';
|
|
2932
|
-
case '36':
|
|
2933
|
-
return '30';
|
|
2934
|
-
case '30':
|
|
2935
|
-
return '24';
|
|
2936
|
-
case '24':
|
|
2937
|
-
return '18';
|
|
2938
|
-
}
|
|
2939
|
-
};
|
|
2940
|
-
const getCaption = (row) => {
|
|
2941
|
-
var _a;
|
|
2942
|
-
const maxItems = (props.maxItems || props.maxItems === 0) ? props.maxItems : 100;
|
|
2943
|
-
if (row.isLoading) {
|
|
2944
|
-
return React.createElement(typography_1.TextPlaceholder, null);
|
|
2945
|
-
}
|
|
2946
|
-
else if (!props.getName || ((_a = props.selection) === null || _a === void 0 ? void 0 : _a.length) > maxItems) {
|
|
2947
|
-
return row.value;
|
|
2948
|
-
}
|
|
2949
|
-
else {
|
|
2950
|
-
return props.getName(row.value);
|
|
2951
|
-
}
|
|
2952
|
-
};
|
|
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 })));
|
|
2961
|
-
}
|
|
2962
|
-
exports.PickerToggler = React.forwardRef(PickerTogglerComponent);
|
|
2903
|
+
|
|
2904
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2905
|
+
exports.PickerToggler = void 0;
|
|
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"));
|
|
2913
|
+
__webpack_require__(/*! ../../assets/styles/variables/pickers/pickerToggler.scss */ "./assets/styles/variables/pickers/pickerToggler.scss");
|
|
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;
|
|
2917
|
+
function applyPickerTogglerMods(mods) {
|
|
2918
|
+
return [
|
|
2919
|
+
'picker-toggler-vars',
|
|
2920
|
+
css.root,
|
|
2921
|
+
css['size-' + (mods.size || defaultSize)],
|
|
2922
|
+
css['mode-' + (mods.mode || defaultMode)],
|
|
2923
|
+
];
|
|
2924
|
+
}
|
|
2925
|
+
function PickerTogglerComponent(props, ref) {
|
|
2926
|
+
const getPickerTogglerButtonSize = (propSize) => {
|
|
2927
|
+
switch (propSize) {
|
|
2928
|
+
case '48':
|
|
2929
|
+
return '42';
|
|
2930
|
+
case '42':
|
|
2931
|
+
return '36';
|
|
2932
|
+
case '36':
|
|
2933
|
+
return '30';
|
|
2934
|
+
case '30':
|
|
2935
|
+
return '24';
|
|
2936
|
+
case '24':
|
|
2937
|
+
return '18';
|
|
2938
|
+
}
|
|
2939
|
+
};
|
|
2940
|
+
const getCaption = (row) => {
|
|
2941
|
+
var _a;
|
|
2942
|
+
const maxItems = (props.maxItems || props.maxItems === 0) ? props.maxItems : 100;
|
|
2943
|
+
if (row.isLoading) {
|
|
2944
|
+
return React.createElement(typography_1.TextPlaceholder, null);
|
|
2945
|
+
}
|
|
2946
|
+
else if (!props.getName || ((_a = props.selection) === null || _a === void 0 ? void 0 : _a.length) > maxItems) {
|
|
2947
|
+
return row.value;
|
|
2948
|
+
}
|
|
2949
|
+
else {
|
|
2950
|
+
return props.getName(row.value);
|
|
2951
|
+
}
|
|
2952
|
+
};
|
|
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 })));
|
|
2961
|
+
}
|
|
2962
|
+
exports.PickerToggler = React.forwardRef(PickerTogglerComponent);
|
|
2963
2963
|
|
|
2964
2964
|
|
|
2965
2965
|
/***/ }),
|
|
@@ -2972,20 +2972,20 @@ exports.PickerToggler = React.forwardRef(PickerTogglerComponent);
|
|
|
2972
2972
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2973
2973
|
|
|
2974
2974
|
"use strict";
|
|
2975
|
-
|
|
2976
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2977
|
-
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2978
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DataPickerBody */ "./components/pickers/DataPickerBody.tsx"), exports);
|
|
2979
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DataPickerFooter */ "./components/pickers/DataPickerFooter.tsx"), exports);
|
|
2980
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DataPickerHeader */ "./components/pickers/DataPickerHeader.tsx"), exports);
|
|
2981
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DataPickerRow */ "./components/pickers/DataPickerRow.tsx"), exports);
|
|
2982
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./MobileDropdownWrapper */ "./components/pickers/MobileDropdownWrapper.tsx"), exports);
|
|
2983
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./PickerInput */ "./components/pickers/PickerInput.tsx"), exports);
|
|
2984
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./PickerItem */ "./components/pickers/PickerItem.tsx"), exports);
|
|
2985
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./PickerList */ "./components/pickers/PickerList.tsx"), exports);
|
|
2986
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./PickerListItem */ "./components/pickers/PickerListItem.tsx"), exports);
|
|
2987
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./PickerModal */ "./components/pickers/PickerModal.tsx"), exports);
|
|
2988
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./PickerToggler */ "./components/pickers/PickerToggler.tsx"), exports);
|
|
2975
|
+
|
|
2976
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2977
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
2978
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DataPickerBody */ "./components/pickers/DataPickerBody.tsx"), exports);
|
|
2979
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DataPickerFooter */ "./components/pickers/DataPickerFooter.tsx"), exports);
|
|
2980
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DataPickerHeader */ "./components/pickers/DataPickerHeader.tsx"), exports);
|
|
2981
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DataPickerRow */ "./components/pickers/DataPickerRow.tsx"), exports);
|
|
2982
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./MobileDropdownWrapper */ "./components/pickers/MobileDropdownWrapper.tsx"), exports);
|
|
2983
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./PickerInput */ "./components/pickers/PickerInput.tsx"), exports);
|
|
2984
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./PickerItem */ "./components/pickers/PickerItem.tsx"), exports);
|
|
2985
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./PickerList */ "./components/pickers/PickerList.tsx"), exports);
|
|
2986
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./PickerListItem */ "./components/pickers/PickerListItem.tsx"), exports);
|
|
2987
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./PickerModal */ "./components/pickers/PickerModal.tsx"), exports);
|
|
2988
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./PickerToggler */ "./components/pickers/PickerToggler.tsx"), exports);
|
|
2989
2989
|
|
|
2990
2990
|
|
|
2991
2991
|
/***/ }),
|
|
@@ -2998,7 +2998,7 @@ const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es
|
|
|
2998
2998
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2999
2999
|
|
|
3000
3000
|
// extracted by mini-css-extract-plugin
|
|
3001
|
-
module.exports = {"cell":"
|
|
3001
|
+
module.exports = {"cell":"_3KxJ-","wrapper":"_3w8AS","align-widgets-top":"_1OZ10","alignWidgetsTop":"_1OZ10","size-24":"qPpDK","size24":"qPpDK","folding-arrow":"_25L1v","foldingArrow":"_25L1v","size-30":"Zocaq","size30":"Zocaq","size-36":"_2DH7X","size36":"_2DH7X","size-42":"_3S9kh","size42":"_3S9kh","size-48":"_2xITY","size48":"_2xITY","size-60":"_1sdBd","size60":"_1sdBd","align-widgets-center":"_3wAOT","alignWidgetsCenter":"_3wAOT","padding-12":"r7Kej","padding12":"r7Kej","padding-24":"_2YOdg","padding24":"_2YOdg","padding-left-12":"XJXFl","paddingLeft12":"XJXFl","padding-left-24":"_1tfKN","paddingLeft24":"_1tfKN","padding-right-24":"_1fQNB","paddingRight24":"_1fQNB","drag-handle":"_2s_-B","dragHandle":"_2s_-B","checkbox":"_3vYRA","indent":"GreTN","folding-arrow-12":"_2vXgs","foldingArrow12":"_2vXgs","folding-arrow-18":"tlTPm","foldingArrow18":"tlTPm"};
|
|
3002
3002
|
|
|
3003
3003
|
/***/ }),
|
|
3004
3004
|
|
|
@@ -3010,45 +3010,45 @@ module.exports = {"cell":"_2r7O_","wrapper":"_3bRe2","align-widgets-top":"ppV4-"
|
|
|
3010
3010
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3011
3011
|
|
|
3012
3012
|
"use strict";
|
|
3013
|
-
|
|
3014
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3015
|
-
exports.DataTableCell = void 0;
|
|
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() {
|
|
3027
|
-
var _a, _b, _c;
|
|
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 = () => {
|
|
3032
|
-
var _a;
|
|
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' },
|
|
3037
|
-
React.createElement(typography_1.TextPlaceholder, null))
|
|
3038
|
-
: this.props.column.render(this.props.rowProps.value, this.props.rowProps);
|
|
3039
|
-
return (React.createElement(React.Fragment, null,
|
|
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) }))),
|
|
3044
|
-
cellContent));
|
|
3045
|
-
};
|
|
3046
|
-
}
|
|
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
|
-
}
|
|
3051
|
-
exports.DataTableCell = DataTableCell;
|
|
3013
|
+
|
|
3014
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3015
|
+
exports.DataTableCell = void 0;
|
|
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() {
|
|
3027
|
+
var _a, _b, _c;
|
|
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 = () => {
|
|
3032
|
+
var _a;
|
|
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' },
|
|
3037
|
+
React.createElement(typography_1.TextPlaceholder, null))
|
|
3038
|
+
: this.props.column.render(this.props.rowProps.value, this.props.rowProps);
|
|
3039
|
+
return (React.createElement(React.Fragment, null,
|
|
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) }))),
|
|
3044
|
+
cellContent));
|
|
3045
|
+
};
|
|
3046
|
+
}
|
|
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
|
+
}
|
|
3051
|
+
exports.DataTableCell = DataTableCell;
|
|
3052
3052
|
|
|
3053
3053
|
|
|
3054
3054
|
/***/ }),
|
|
@@ -3061,7 +3061,7 @@ exports.DataTableCell = DataTableCell;
|
|
|
3061
3061
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3062
3062
|
|
|
3063
3063
|
// extracted by mini-css-extract-plugin
|
|
3064
|
-
module.exports = {"container":"
|
|
3064
|
+
module.exports = {"container":"_26kRn","target":"_1ksWT","panel":"_1Z0vo","divider":"_9Q26E","input":"_3GD6e","notification":"_1s0wg"};
|
|
3065
3065
|
|
|
3066
3066
|
/***/ }),
|
|
3067
3067
|
|
|
@@ -3073,66 +3073,66 @@ module.exports = {"container":"UY7Fd","target":"_2T3S8","panel":"_1tXuS","divide
|
|
|
3073
3073
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3074
3074
|
|
|
3075
3075
|
"use strict";
|
|
3076
|
-
|
|
3077
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3078
|
-
exports.Preset = void 0;
|
|
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)(() => {
|
|
3090
|
-
if (renamingValue) {
|
|
3091
|
-
const newPreset = Object.assign(Object.assign({}, preset), { name: renamingValue });
|
|
3092
|
-
updatePreset(newPreset);
|
|
3093
|
-
}
|
|
3094
|
-
setIsRenaming(false);
|
|
3095
|
-
}, [renamingValue, updatePreset]);
|
|
3096
|
-
const renderBody = (0, react_1.useCallback)((props) => {
|
|
3097
|
-
const handleDuplicate = () => {
|
|
3098
|
-
duplicatePreset(preset);
|
|
3099
|
-
props.onClose();
|
|
3100
|
-
};
|
|
3101
|
-
const startRenaming = () => {
|
|
3102
|
-
setIsRenaming(true);
|
|
3103
|
-
setRenamingValue(preset.name);
|
|
3104
|
-
props.onClose();
|
|
3105
|
-
};
|
|
3106
|
-
const handleDelete = () => {
|
|
3107
|
-
deletePreset(preset);
|
|
3108
|
-
props.onClose();
|
|
3109
|
-
};
|
|
3110
|
-
const update = () => {
|
|
3111
|
-
handleUpdate();
|
|
3112
|
-
props.onClose();
|
|
3113
|
-
};
|
|
3114
|
-
const choose = () => {
|
|
3115
|
-
choosePreset(preset);
|
|
3116
|
-
props.onClose();
|
|
3117
|
-
};
|
|
3118
|
-
return (react_1.default.createElement(__1.DropdownMenuBody, Object.assign({}, props),
|
|
3119
|
-
react_1.default.createElement(__1.DropdownMenuButton, { caption: 'Duplicate', onClick: handleDuplicate }),
|
|
3120
|
-
react_1.default.createElement(__1.DropdownMenuButton, { caption: 'Rename', onClick: startRenaming }),
|
|
3121
|
-
react_1.default.createElement(__1.DropdownMenuButton, { caption: 'Update', onClick: update, isDisabled: !hasChanged }),
|
|
3122
|
-
react_1.default.createElement(__1.DropdownMenuButton, { caption: 'Delete', onClick: handleDelete }),
|
|
3123
|
-
react_1.default.createElement(__1.DropdownMenuSplitter, null),
|
|
3124
|
-
react_1.default.createElement(__1.DropdownMenuButton, { caption: 'Discard all changes', onClick: choose, isDisabled: !hasChanged })));
|
|
3125
|
-
}, [preset, duplicatePreset, deletePreset, isActive, choosePreset, hasChanged]);
|
|
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] })));
|
|
3128
|
-
}, [preset, isActive, hasChanged]);
|
|
3129
|
-
return (react_1.default.createElement(react_1.default.Fragment, null, isRenaming
|
|
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 }))
|
|
3131
|
-
: (react_1.default.createElement(__1.ControlGroup, { cx: Preset_scss_1.default.container },
|
|
3132
|
-
react_1.default.createElement(__1.Button, { key: preset.id, size: '24', caption: preset.name, mode: isActive ? 'solid' : 'outline', onClick: isActive ? null : handleChoose }),
|
|
3133
|
-
!preset.isReadonly && (react_1.default.createElement(__1.Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: 'bottom-end' }))))));
|
|
3134
|
-
};
|
|
3135
|
-
exports.Preset = Preset;
|
|
3076
|
+
|
|
3077
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3078
|
+
exports.Preset = void 0;
|
|
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)(() => {
|
|
3090
|
+
if (renamingValue) {
|
|
3091
|
+
const newPreset = Object.assign(Object.assign({}, preset), { name: renamingValue });
|
|
3092
|
+
updatePreset(newPreset);
|
|
3093
|
+
}
|
|
3094
|
+
setIsRenaming(false);
|
|
3095
|
+
}, [renamingValue, updatePreset]);
|
|
3096
|
+
const renderBody = (0, react_1.useCallback)((props) => {
|
|
3097
|
+
const handleDuplicate = () => {
|
|
3098
|
+
duplicatePreset(preset);
|
|
3099
|
+
props.onClose();
|
|
3100
|
+
};
|
|
3101
|
+
const startRenaming = () => {
|
|
3102
|
+
setIsRenaming(true);
|
|
3103
|
+
setRenamingValue(preset.name);
|
|
3104
|
+
props.onClose();
|
|
3105
|
+
};
|
|
3106
|
+
const handleDelete = () => {
|
|
3107
|
+
deletePreset(preset);
|
|
3108
|
+
props.onClose();
|
|
3109
|
+
};
|
|
3110
|
+
const update = () => {
|
|
3111
|
+
handleUpdate();
|
|
3112
|
+
props.onClose();
|
|
3113
|
+
};
|
|
3114
|
+
const choose = () => {
|
|
3115
|
+
choosePreset(preset);
|
|
3116
|
+
props.onClose();
|
|
3117
|
+
};
|
|
3118
|
+
return (react_1.default.createElement(__1.DropdownMenuBody, Object.assign({}, props),
|
|
3119
|
+
react_1.default.createElement(__1.DropdownMenuButton, { caption: 'Duplicate', onClick: handleDuplicate }),
|
|
3120
|
+
react_1.default.createElement(__1.DropdownMenuButton, { caption: 'Rename', onClick: startRenaming }),
|
|
3121
|
+
react_1.default.createElement(__1.DropdownMenuButton, { caption: 'Update', onClick: update, isDisabled: !hasChanged }),
|
|
3122
|
+
react_1.default.createElement(__1.DropdownMenuButton, { caption: 'Delete', onClick: handleDelete }),
|
|
3123
|
+
react_1.default.createElement(__1.DropdownMenuSplitter, null),
|
|
3124
|
+
react_1.default.createElement(__1.DropdownMenuButton, { caption: 'Discard all changes', onClick: choose, isDisabled: !hasChanged })));
|
|
3125
|
+
}, [preset, duplicatePreset, deletePreset, isActive, choosePreset, hasChanged]);
|
|
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] })));
|
|
3128
|
+
}, [preset, isActive, hasChanged]);
|
|
3129
|
+
return (react_1.default.createElement(react_1.default.Fragment, null, isRenaming
|
|
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 }))
|
|
3131
|
+
: (react_1.default.createElement(__1.ControlGroup, { cx: Preset_scss_1.default.container },
|
|
3132
|
+
react_1.default.createElement(__1.Button, { key: preset.id, size: '24', caption: preset.name, mode: isActive ? 'solid' : 'outline', onClick: isActive ? null : handleChoose }),
|
|
3133
|
+
!preset.isReadonly && (react_1.default.createElement(__1.Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: 'bottom-end' }))))));
|
|
3134
|
+
};
|
|
3135
|
+
exports.Preset = Preset;
|
|
3136
3136
|
|
|
3137
3137
|
|
|
3138
3138
|
/***/ }),
|
|
@@ -3145,7 +3145,7 @@ exports.Preset = Preset;
|
|
|
3145
3145
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3146
3146
|
|
|
3147
3147
|
// extracted by mini-css-extract-plugin
|
|
3148
|
-
module.exports = {"row":"
|
|
3148
|
+
module.exports = {"row":"_3G09O"};
|
|
3149
3149
|
|
|
3150
3150
|
/***/ }),
|
|
3151
3151
|
|
|
@@ -3157,29 +3157,29 @@ module.exports = {"row":"_2n6A4"};
|
|
|
3157
3157
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3158
3158
|
|
|
3159
3159
|
"use strict";
|
|
3160
|
-
|
|
3161
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3162
|
-
exports.Presets = void 0;
|
|
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)(() => {
|
|
3172
|
-
createNewPreset(newPresetTitle);
|
|
3173
|
-
}, [createNewPreset, newPresetTitle]);
|
|
3174
|
-
const activePreset = presets.find(p => p.id === activePresetId);
|
|
3175
|
-
const hasActivePresetChanged = (0, react_1.useMemo)(() => {
|
|
3176
|
-
return hasPresetChanged(activePreset);
|
|
3177
|
-
}, [activePreset, tableState.filter]);
|
|
3178
|
-
return (react_1.default.createElement(layout_1.FlexRow, { spacing: "6", size: "48", padding: "18", cx: Presets_scss_1.default.row },
|
|
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' }))));
|
|
3181
|
-
};
|
|
3182
|
-
exports.Presets = react_1.default.memo(PresetsImpl);
|
|
3160
|
+
|
|
3161
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3162
|
+
exports.Presets = void 0;
|
|
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)(() => {
|
|
3172
|
+
createNewPreset(newPresetTitle);
|
|
3173
|
+
}, [createNewPreset, newPresetTitle]);
|
|
3174
|
+
const activePreset = presets.find(p => p.id === activePresetId);
|
|
3175
|
+
const hasActivePresetChanged = (0, react_1.useMemo)(() => {
|
|
3176
|
+
return hasPresetChanged(activePreset);
|
|
3177
|
+
}, [activePreset, tableState.filter]);
|
|
3178
|
+
return (react_1.default.createElement(layout_1.FlexRow, { spacing: "6", size: "48", padding: "18", cx: Presets_scss_1.default.row },
|
|
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' }))));
|
|
3181
|
+
};
|
|
3182
|
+
exports.Presets = react_1.default.memo(PresetsImpl);
|
|
3183
3183
|
|
|
3184
3184
|
|
|
3185
3185
|
/***/ }),
|
|
@@ -3192,11 +3192,11 @@ exports.Presets = react_1.default.memo(PresetsImpl);
|
|
|
3192
3192
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3193
3193
|
|
|
3194
3194
|
"use strict";
|
|
3195
|
-
|
|
3196
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3197
|
-
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3198
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Presets */ "./components/tables/Presets/Presets.tsx"), exports);
|
|
3199
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Preset */ "./components/tables/Presets/Preset.tsx"), exports);
|
|
3195
|
+
|
|
3196
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3197
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3198
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Presets */ "./components/tables/Presets/Presets.tsx"), exports);
|
|
3199
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Preset */ "./components/tables/Presets/Preset.tsx"), exports);
|
|
3200
3200
|
|
|
3201
3201
|
|
|
3202
3202
|
/***/ }),
|
|
@@ -3209,12 +3209,12 @@ const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es
|
|
|
3209
3209
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3210
3210
|
|
|
3211
3211
|
"use strict";
|
|
3212
|
-
|
|
3213
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3214
|
-
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3215
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DataTableCell */ "./components/tables/DataTableCell.tsx"), exports);
|
|
3216
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Presets */ "./components/tables/Presets/index.ts"), exports);
|
|
3217
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./types */ "./components/tables/types.ts"), exports);
|
|
3212
|
+
|
|
3213
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3214
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3215
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./DataTableCell */ "./components/tables/DataTableCell.tsx"), exports);
|
|
3216
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Presets */ "./components/tables/Presets/index.ts"), exports);
|
|
3217
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./types */ "./components/tables/types.ts"), exports);
|
|
3218
3218
|
|
|
3219
3219
|
|
|
3220
3220
|
/***/ }),
|
|
@@ -3227,8 +3227,8 @@ const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es
|
|
|
3227
3227
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3228
3228
|
|
|
3229
3229
|
"use strict";
|
|
3230
|
-
|
|
3231
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3230
|
+
|
|
3231
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3232
3232
|
|
|
3233
3233
|
|
|
3234
3234
|
/***/ }),
|
|
@@ -3241,20 +3241,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3241
3241
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3242
3242
|
|
|
3243
3243
|
"use strict";
|
|
3244
|
-
|
|
3245
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3246
|
-
exports.EditMode = exports.allFontStyles = exports.allTextSizes = exports.allEpamSemanticColors = exports.allRowSizes = exports.allSizes = exports.allButtonModes = void 0;
|
|
3247
|
-
exports.allButtonModes = ['solid', 'outline', 'ghost', 'none'];
|
|
3248
|
-
exports.allSizes = ['24', '30', '36', '42', '48'];
|
|
3249
|
-
exports.allRowSizes = [null, '24', '30', '36', '42', '48'];
|
|
3250
|
-
exports.allEpamSemanticColors = ['accent', 'primary', 'secondary', 'negative'];
|
|
3251
|
-
exports.allTextSizes = ['18', '24', '30', '36', '48'];
|
|
3252
|
-
exports.allFontStyles = ['regular', 'semibold', 'italic', 'primary', 'promo'];
|
|
3253
|
-
var EditMode;
|
|
3254
|
-
(function (EditMode) {
|
|
3255
|
-
EditMode["FORM"] = "form";
|
|
3256
|
-
EditMode["CELL"] = "cell";
|
|
3257
|
-
})(EditMode = exports.EditMode || (exports.EditMode = {}));
|
|
3244
|
+
|
|
3245
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3246
|
+
exports.EditMode = exports.allFontStyles = exports.allTextSizes = exports.allEpamSemanticColors = exports.allRowSizes = exports.allSizes = exports.allButtonModes = void 0;
|
|
3247
|
+
exports.allButtonModes = ['solid', 'outline', 'ghost', 'none'];
|
|
3248
|
+
exports.allSizes = ['24', '30', '36', '42', '48'];
|
|
3249
|
+
exports.allRowSizes = [null, '24', '30', '36', '42', '48'];
|
|
3250
|
+
exports.allEpamSemanticColors = ['accent', 'primary', 'secondary', 'negative'];
|
|
3251
|
+
exports.allTextSizes = ['18', '24', '30', '36', '48'];
|
|
3252
|
+
exports.allFontStyles = ['regular', 'semibold', 'italic', 'primary', 'promo'];
|
|
3253
|
+
var EditMode;
|
|
3254
|
+
(function (EditMode) {
|
|
3255
|
+
EditMode["FORM"] = "form";
|
|
3256
|
+
EditMode["CELL"] = "cell";
|
|
3257
|
+
})(EditMode = exports.EditMode || (exports.EditMode = {}));
|
|
3258
3258
|
|
|
3259
3259
|
|
|
3260
3260
|
/***/ }),
|
|
@@ -3267,7 +3267,7 @@ var EditMode;
|
|
|
3267
3267
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3268
3268
|
|
|
3269
3269
|
// extracted by mini-css-extract-plugin
|
|
3270
|
-
module.exports = {"root":"
|
|
3270
|
+
module.exports = {"root":"hkM0w"};
|
|
3271
3271
|
|
|
3272
3272
|
/***/ }),
|
|
3273
3273
|
|
|
@@ -3279,29 +3279,29 @@ module.exports = {"root":"NhF6K"};
|
|
|
3279
3279
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3280
3280
|
|
|
3281
3281
|
"use strict";
|
|
3282
|
-
|
|
3283
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3284
|
-
exports.Text = void 0;
|
|
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");
|
|
3290
|
-
__webpack_require__(/*! ../../assets/styles/variables/typography/text.scss */ "./assets/styles/variables/typography/text.scss");
|
|
3291
|
-
__webpack_require__(/*! ../../assets/styles/fonts-variables.scss */ "./assets/styles/fonts-variables.scss");
|
|
3292
|
-
function applyTextMods(mods) {
|
|
3293
|
-
const textClasses = (0, textLayout_1.getTextClasses)({
|
|
3294
|
-
size: mods.size || '36',
|
|
3295
|
-
lineHeight: mods.lineHeight,
|
|
3296
|
-
fontSize: mods.fontSize,
|
|
3297
|
-
}, false);
|
|
3298
|
-
return [
|
|
3299
|
-
`font-${mods.font || 'regular'}`,
|
|
3300
|
-
`text-color-${mods.color || 'primary'}`,
|
|
3301
|
-
css.root,
|
|
3302
|
-
].concat(textClasses);
|
|
3303
|
-
}
|
|
3304
|
-
exports.Text = (0, uui_core_1.withMods)(uui_components_1.Text, applyTextMods);
|
|
3282
|
+
|
|
3283
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3284
|
+
exports.Text = void 0;
|
|
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");
|
|
3290
|
+
__webpack_require__(/*! ../../assets/styles/variables/typography/text.scss */ "./assets/styles/variables/typography/text.scss");
|
|
3291
|
+
__webpack_require__(/*! ../../assets/styles/fonts-variables.scss */ "./assets/styles/fonts-variables.scss");
|
|
3292
|
+
function applyTextMods(mods) {
|
|
3293
|
+
const textClasses = (0, textLayout_1.getTextClasses)({
|
|
3294
|
+
size: mods.size || '36',
|
|
3295
|
+
lineHeight: mods.lineHeight,
|
|
3296
|
+
fontSize: mods.fontSize,
|
|
3297
|
+
}, false);
|
|
3298
|
+
return [
|
|
3299
|
+
`font-${mods.font || 'regular'}`,
|
|
3300
|
+
`text-color-${mods.color || 'primary'}`,
|
|
3301
|
+
css.root,
|
|
3302
|
+
].concat(textClasses);
|
|
3303
|
+
}
|
|
3304
|
+
exports.Text = (0, uui_core_1.withMods)(uui_components_1.Text, applyTextMods);
|
|
3305
3305
|
|
|
3306
3306
|
|
|
3307
3307
|
/***/ }),
|
|
@@ -3314,7 +3314,7 @@ exports.Text = (0, uui_core_1.withMods)(uui_components_1.Text, applyTextMods);
|
|
|
3314
3314
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3315
3315
|
|
|
3316
3316
|
// extracted by mini-css-extract-plugin
|
|
3317
|
-
module.exports = {"container":"
|
|
3317
|
+
module.exports = {"container":"_3C1JI","loading-word":"_39Smh","loadingWord":"_39Smh","animated-loading":"_1Xm8A","animatedLoading":"_1Xm8A","skeleton_loading":"_17xG_","skeletonLoading":"_17xG_"};
|
|
3318
3318
|
|
|
3319
3319
|
/***/ }),
|
|
3320
3320
|
|
|
@@ -3326,31 +3326,31 @@ module.exports = {"container":"uNauG","loading-word":"_-uZ1","loadingWord":"_-uZ
|
|
|
3326
3326
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3327
3327
|
|
|
3328
3328
|
"use strict";
|
|
3329
|
-
|
|
3330
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3331
|
-
exports.TextPlaceholder = void 0;
|
|
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"));
|
|
3336
|
-
__webpack_require__(/*! ../../assets/styles/variables/typography/textPlaceholder.scss */ "./assets/styles/variables/typography/textPlaceholder.scss");
|
|
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);
|
|
3343
|
-
words.push(pattern.repeat(lengthWord));
|
|
3344
|
-
}
|
|
3345
|
-
return words;
|
|
3346
|
-
}, [props.wordsCount]);
|
|
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)([
|
|
3348
|
-
'text-placeholder-vars',
|
|
3349
|
-
css.loadingWord,
|
|
3350
|
-
!props.isNotAnimated && css.animatedLoading,
|
|
3351
|
-
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
3352
|
-
};
|
|
3353
|
-
exports.TextPlaceholder = TextPlaceholder;
|
|
3329
|
+
|
|
3330
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3331
|
+
exports.TextPlaceholder = void 0;
|
|
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"));
|
|
3336
|
+
__webpack_require__(/*! ../../assets/styles/variables/typography/textPlaceholder.scss */ "./assets/styles/variables/typography/textPlaceholder.scss");
|
|
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);
|
|
3343
|
+
words.push(pattern.repeat(lengthWord));
|
|
3344
|
+
}
|
|
3345
|
+
return words;
|
|
3346
|
+
}, [props.wordsCount]);
|
|
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)([
|
|
3348
|
+
'text-placeholder-vars',
|
|
3349
|
+
css.loadingWord,
|
|
3350
|
+
!props.isNotAnimated && css.animatedLoading,
|
|
3351
|
+
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
3352
|
+
};
|
|
3353
|
+
exports.TextPlaceholder = TextPlaceholder;
|
|
3354
3354
|
|
|
3355
3355
|
|
|
3356
3356
|
/***/ }),
|
|
@@ -3363,11 +3363,11 @@ exports.TextPlaceholder = TextPlaceholder;
|
|
|
3363
3363
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3364
3364
|
|
|
3365
3365
|
"use strict";
|
|
3366
|
-
|
|
3367
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3368
|
-
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3369
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Text */ "./components/typography/Text.tsx"), exports);
|
|
3370
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./TextPlaceholder */ "./components/typography/TextPlaceholder.tsx"), exports);
|
|
3366
|
+
|
|
3367
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3368
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3369
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Text */ "./components/typography/Text.tsx"), exports);
|
|
3370
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./TextPlaceholder */ "./components/typography/TextPlaceholder.tsx"), exports);
|
|
3371
3371
|
|
|
3372
3372
|
|
|
3373
3373
|
/***/ }),
|
|
@@ -3380,12 +3380,12 @@ const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es
|
|
|
3380
3380
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3381
3381
|
|
|
3382
3382
|
"use strict";
|
|
3383
|
-
|
|
3384
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3385
|
-
exports.Avatar = void 0;
|
|
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, () => []);
|
|
3383
|
+
|
|
3384
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3385
|
+
exports.Avatar = void 0;
|
|
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, () => []);
|
|
3389
3389
|
|
|
3390
3390
|
|
|
3391
3391
|
/***/ }),
|
|
@@ -3398,7 +3398,7 @@ exports.Avatar = (0, uui_core_1.withMods)(uui_components_1.Avatar, () => []);
|
|
|
3398
3398
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3399
3399
|
|
|
3400
3400
|
// extracted by mini-css-extract-plugin
|
|
3401
|
-
module.exports = {"root":"
|
|
3401
|
+
module.exports = {"root":"OO4AG","size-18":"lvozr","size18":"lvozr","fill-transparent":"lnE3n","fillTransparent":"lnE3n","size-24":"_1zSrj","size24":"_1zSrj","size-30":"_2epdE","size30":"_2epdE","size-36":"_3tU7B","size36":"_3tU7B","size-42":"_8FqBb","size42":"_8FqBb","size-48":"_2Bg_K","size48":"_2Bg_K","fill-solid":"_2O-Oc","fillSolid":"_2O-Oc"};
|
|
3402
3402
|
|
|
3403
3403
|
/***/ }),
|
|
3404
3404
|
|
|
@@ -3410,40 +3410,40 @@ module.exports = {"root":"_3TNqq","size-18":"_2IlFQ","size18":"_2IlFQ","fill-tra
|
|
|
3410
3410
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3411
3411
|
|
|
3412
3412
|
"use strict";
|
|
3413
|
-
|
|
3414
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3415
|
-
exports.Badge = exports.applyBadgeMods = void 0;
|
|
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"));
|
|
3422
|
-
__webpack_require__(/*! ../../assets/styles/variables/widgets/badge.scss */ "./assets/styles/variables/widgets/badge.scss");
|
|
3423
|
-
const defaultSize = '36';
|
|
3424
|
-
const mapSize = {
|
|
3425
|
-
'48': '48',
|
|
3426
|
-
'42': '48',
|
|
3427
|
-
'36': '36',
|
|
3428
|
-
'30': '30',
|
|
3429
|
-
'24': '30',
|
|
3430
|
-
'18': '18',
|
|
3431
|
-
};
|
|
3432
|
-
function applyBadgeMods(mods) {
|
|
3433
|
-
return [
|
|
3434
|
-
`badge-color-${(mods.color || 'info')}`,
|
|
3435
|
-
buttonCss.root,
|
|
3436
|
-
css['size-' + (mods.size || defaultSize)],
|
|
3437
|
-
css['fill-' + (mods.fill || 'solid')],
|
|
3438
|
-
css.root,
|
|
3439
|
-
];
|
|
3440
|
-
}
|
|
3441
|
-
exports.applyBadgeMods = applyBadgeMods;
|
|
3442
|
-
exports.Badge = (0, uui_core_1.withMods)(uui_components_1.Button, applyBadgeMods, (props) => ({
|
|
3443
|
-
dropdownIcon: icons_1.systemIcons[props.size && mapSize[props.size] || defaultSize].foldingArrow,
|
|
3444
|
-
clearIcon: icons_1.systemIcons[props.size && mapSize[props.size] || defaultSize].clear,
|
|
3445
|
-
countPosition: 'left',
|
|
3446
|
-
}));
|
|
3413
|
+
|
|
3414
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3415
|
+
exports.Badge = exports.applyBadgeMods = void 0;
|
|
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"));
|
|
3422
|
+
__webpack_require__(/*! ../../assets/styles/variables/widgets/badge.scss */ "./assets/styles/variables/widgets/badge.scss");
|
|
3423
|
+
const defaultSize = '36';
|
|
3424
|
+
const mapSize = {
|
|
3425
|
+
'48': '48',
|
|
3426
|
+
'42': '48',
|
|
3427
|
+
'36': '36',
|
|
3428
|
+
'30': '30',
|
|
3429
|
+
'24': '30',
|
|
3430
|
+
'18': '18',
|
|
3431
|
+
};
|
|
3432
|
+
function applyBadgeMods(mods) {
|
|
3433
|
+
return [
|
|
3434
|
+
`badge-color-${(mods.color || 'info')}`,
|
|
3435
|
+
buttonCss.root,
|
|
3436
|
+
css['size-' + (mods.size || defaultSize)],
|
|
3437
|
+
css['fill-' + (mods.fill || 'solid')],
|
|
3438
|
+
css.root,
|
|
3439
|
+
];
|
|
3440
|
+
}
|
|
3441
|
+
exports.applyBadgeMods = applyBadgeMods;
|
|
3442
|
+
exports.Badge = (0, uui_core_1.withMods)(uui_components_1.Button, applyBadgeMods, (props) => ({
|
|
3443
|
+
dropdownIcon: icons_1.systemIcons[props.size && mapSize[props.size] || defaultSize].foldingArrow,
|
|
3444
|
+
clearIcon: icons_1.systemIcons[props.size && mapSize[props.size] || defaultSize].clear,
|
|
3445
|
+
countPosition: 'left',
|
|
3446
|
+
}));
|
|
3447
3447
|
|
|
3448
3448
|
|
|
3449
3449
|
/***/ }),
|
|
@@ -3456,7 +3456,7 @@ exports.Badge = (0, uui_core_1.withMods)(uui_components_1.Button, applyBadgeMods
|
|
|
3456
3456
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3457
3457
|
|
|
3458
3458
|
// extracted by mini-css-extract-plugin
|
|
3459
|
-
module.exports = {"root":"
|
|
3459
|
+
module.exports = {"root":"_2c4K9","size-18":"_29zLP","size18":"_29zLP","size-24":"MLKYa","size24":"MLKYa","size-30":"_2orIH","size30":"_2orIH","size-36":"_1K9y8","size36":"_1K9y8","size-42":"fsPB-","size42":"fsPB-","size-48":"_2DmW2","size48":"_2DmW2"};
|
|
3460
3460
|
|
|
3461
3461
|
/***/ }),
|
|
3462
3462
|
|
|
@@ -3468,38 +3468,38 @@ module.exports = {"root":"h6NFV","size-18":"_2yvlE","size18":"_2yvlE","size-24":
|
|
|
3468
3468
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3469
3469
|
|
|
3470
3470
|
"use strict";
|
|
3471
|
-
|
|
3472
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3473
|
-
exports.Tag = exports.applyTagMods = void 0;
|
|
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"));
|
|
3479
|
-
__webpack_require__(/*! ../../assets/styles/variables/widgets/tag.scss */ "./assets/styles/variables/widgets/tag.scss");
|
|
3480
|
-
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Tag.scss */ "./components/widgets/Tag.scss"));
|
|
3481
|
-
const defaultSize = '36';
|
|
3482
|
-
const mapSize = {
|
|
3483
|
-
'48': '48',
|
|
3484
|
-
'42': '48',
|
|
3485
|
-
'36': '36',
|
|
3486
|
-
'30': '30',
|
|
3487
|
-
'24': '30',
|
|
3488
|
-
'18': '18',
|
|
3489
|
-
};
|
|
3490
|
-
function applyTagMods(mods) {
|
|
3491
|
-
return [
|
|
3492
|
-
buttonCss.root,
|
|
3493
|
-
'tag-vars',
|
|
3494
|
-
css['size-' + (mods.size || defaultSize)],
|
|
3495
|
-
css.root,
|
|
3496
|
-
];
|
|
3497
|
-
}
|
|
3498
|
-
exports.applyTagMods = applyTagMods;
|
|
3499
|
-
exports.Tag = (0, uui_core_1.withMods)(uui_components_1.Button, applyTagMods, (props) => ({
|
|
3500
|
-
dropdownIcon: icons_1.systemIcons[mapSize[props.size] || defaultSize].foldingArrow,
|
|
3501
|
-
clearIcon: icons_1.systemIcons[mapSize[props.size] || defaultSize].clear,
|
|
3502
|
-
}));
|
|
3471
|
+
|
|
3472
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3473
|
+
exports.Tag = exports.applyTagMods = void 0;
|
|
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"));
|
|
3479
|
+
__webpack_require__(/*! ../../assets/styles/variables/widgets/tag.scss */ "./assets/styles/variables/widgets/tag.scss");
|
|
3480
|
+
const css = (0, tslib_1.__importStar)(__webpack_require__(/*! ./Tag.scss */ "./components/widgets/Tag.scss"));
|
|
3481
|
+
const defaultSize = '36';
|
|
3482
|
+
const mapSize = {
|
|
3483
|
+
'48': '48',
|
|
3484
|
+
'42': '48',
|
|
3485
|
+
'36': '36',
|
|
3486
|
+
'30': '30',
|
|
3487
|
+
'24': '30',
|
|
3488
|
+
'18': '18',
|
|
3489
|
+
};
|
|
3490
|
+
function applyTagMods(mods) {
|
|
3491
|
+
return [
|
|
3492
|
+
buttonCss.root,
|
|
3493
|
+
'tag-vars',
|
|
3494
|
+
css['size-' + (mods.size || defaultSize)],
|
|
3495
|
+
css.root,
|
|
3496
|
+
];
|
|
3497
|
+
}
|
|
3498
|
+
exports.applyTagMods = applyTagMods;
|
|
3499
|
+
exports.Tag = (0, uui_core_1.withMods)(uui_components_1.Button, applyTagMods, (props) => ({
|
|
3500
|
+
dropdownIcon: icons_1.systemIcons[mapSize[props.size] || defaultSize].foldingArrow,
|
|
3501
|
+
clearIcon: icons_1.systemIcons[mapSize[props.size] || defaultSize].clear,
|
|
3502
|
+
}));
|
|
3503
3503
|
|
|
3504
3504
|
|
|
3505
3505
|
/***/ }),
|
|
@@ -3512,12 +3512,12 @@ exports.Tag = (0, uui_core_1.withMods)(uui_components_1.Button, applyTagMods, (p
|
|
|
3512
3512
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3513
3513
|
|
|
3514
3514
|
"use strict";
|
|
3515
|
-
|
|
3516
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3517
|
-
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3518
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Avatar */ "./components/widgets/Avatar.tsx"), exports);
|
|
3519
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Badge */ "./components/widgets/Badge.tsx"), exports);
|
|
3520
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Tag */ "./components/widgets/Tag.tsx"), exports);
|
|
3515
|
+
|
|
3516
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3517
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
3518
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Avatar */ "./components/widgets/Avatar.tsx"), exports);
|
|
3519
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Badge */ "./components/widgets/Badge.tsx"), exports);
|
|
3520
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./Tag */ "./components/widgets/Tag.tsx"), exports);
|
|
3521
3521
|
|
|
3522
3522
|
|
|
3523
3523
|
/***/ }),
|
|
@@ -3530,40 +3530,40 @@ const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es
|
|
|
3530
3530
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3531
3531
|
|
|
3532
3532
|
"use strict";
|
|
3533
|
-
|
|
3534
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3535
|
-
exports.getTextClasses = void 0;
|
|
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 = {
|
|
3539
|
-
18: { lineHeight: 12, fontSize: 10 },
|
|
3540
|
-
24: { lineHeight: 18, fontSize: 12 },
|
|
3541
|
-
30: { lineHeight: 18, fontSize: 14 },
|
|
3542
|
-
36: { lineHeight: 18, fontSize: 14 },
|
|
3543
|
-
42: { lineHeight: 24, fontSize: 16 },
|
|
3544
|
-
48: { lineHeight: 24, fontSize: 16 },
|
|
3545
|
-
60: { lineHeight: 30, fontSize: 24 },
|
|
3546
|
-
};
|
|
3547
|
-
function getTextClasses(props, border) {
|
|
3548
|
-
if (props.size === 'none') {
|
|
3549
|
-
return [
|
|
3550
|
-
css['line-height-' + props.lineHeight],
|
|
3551
|
-
css['font-size-' + props.fontSize],
|
|
3552
|
-
];
|
|
3553
|
-
}
|
|
3554
|
-
const setting = {
|
|
3555
|
-
size: props.size,
|
|
3556
|
-
lineHeight: props.lineHeight || defaultTextSettings[props.size].lineHeight,
|
|
3557
|
-
fontSize: props.fontSize || defaultTextSettings[props.size].fontSize,
|
|
3558
|
-
};
|
|
3559
|
-
const vPadding = (+setting.size - +setting.lineHeight - (border ? 2 : 0)) / 2;
|
|
3560
|
-
return [
|
|
3561
|
-
css['line-height-' + setting.lineHeight],
|
|
3562
|
-
css['font-size-' + setting.fontSize],
|
|
3563
|
-
css['v-padding-' + vPadding],
|
|
3564
|
-
];
|
|
3565
|
-
}
|
|
3566
|
-
exports.getTextClasses = getTextClasses;
|
|
3533
|
+
|
|
3534
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3535
|
+
exports.getTextClasses = void 0;
|
|
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 = {
|
|
3539
|
+
18: { lineHeight: 12, fontSize: 10 },
|
|
3540
|
+
24: { lineHeight: 18, fontSize: 12 },
|
|
3541
|
+
30: { lineHeight: 18, fontSize: 14 },
|
|
3542
|
+
36: { lineHeight: 18, fontSize: 14 },
|
|
3543
|
+
42: { lineHeight: 24, fontSize: 16 },
|
|
3544
|
+
48: { lineHeight: 24, fontSize: 16 },
|
|
3545
|
+
60: { lineHeight: 30, fontSize: 24 },
|
|
3546
|
+
};
|
|
3547
|
+
function getTextClasses(props, border) {
|
|
3548
|
+
if (props.size === 'none') {
|
|
3549
|
+
return [
|
|
3550
|
+
css['line-height-' + props.lineHeight],
|
|
3551
|
+
css['font-size-' + props.fontSize],
|
|
3552
|
+
];
|
|
3553
|
+
}
|
|
3554
|
+
const setting = {
|
|
3555
|
+
size: props.size,
|
|
3556
|
+
lineHeight: props.lineHeight || defaultTextSettings[props.size].lineHeight,
|
|
3557
|
+
fontSize: props.fontSize || defaultTextSettings[props.size].fontSize,
|
|
3558
|
+
};
|
|
3559
|
+
const vPadding = (+setting.size - +setting.lineHeight - (border ? 2 : 0)) / 2;
|
|
3560
|
+
return [
|
|
3561
|
+
css['line-height-' + setting.lineHeight],
|
|
3562
|
+
css['font-size-' + setting.fontSize],
|
|
3563
|
+
css['v-padding-' + vPadding],
|
|
3564
|
+
];
|
|
3565
|
+
}
|
|
3566
|
+
exports.getTextClasses = getTextClasses;
|
|
3567
3567
|
|
|
3568
3568
|
|
|
3569
3569
|
/***/ }),
|
|
@@ -3576,59 +3576,59 @@ exports.getTextClasses = getTextClasses;
|
|
|
3576
3576
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3577
3577
|
|
|
3578
3578
|
"use strict";
|
|
3579
|
-
|
|
3580
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3581
|
-
exports.i18n = void 0;
|
|
3582
|
-
exports.i18n = {
|
|
3583
|
-
dataPickerBody: {
|
|
3584
|
-
searchPlaceholder: 'Search',
|
|
3585
|
-
noRecordsMessage: 'No records found',
|
|
3586
|
-
},
|
|
3587
|
-
pickerModal: {
|
|
3588
|
-
headerTitle: 'Please select',
|
|
3589
|
-
searchPlaceholder: 'Type text for quick search',
|
|
3590
|
-
cancelButton: 'Cancel',
|
|
3591
|
-
selectButton: 'Select',
|
|
3592
|
-
clearAllButton: 'CLEAR ALL',
|
|
3593
|
-
selectAllButton: 'SELECT ALL',
|
|
3594
|
-
},
|
|
3595
|
-
pickerInput: {
|
|
3596
|
-
showOnlySelectedLabel: 'Show only selected',
|
|
3597
|
-
clearSelectionButton: 'CLEAR ALL',
|
|
3598
|
-
selectAllButton: 'SELECT ALL',
|
|
3599
|
-
},
|
|
3600
|
-
notificationCard: {
|
|
3601
|
-
closeAllNotificationsButton: 'CLOSE ALL NOTIFICATIONS',
|
|
3602
|
-
},
|
|
3603
|
-
form: {
|
|
3604
|
-
notifications: {
|
|
3605
|
-
actionButtonCaption: 'Restore',
|
|
3606
|
-
unsavedChangesMessage: 'You have unsaved changes. Click Restore button if you would like to recover the data',
|
|
3607
|
-
},
|
|
3608
|
-
modals: {
|
|
3609
|
-
beforeLeaveMessage: 'Your data may be lost. Do you want to save data?',
|
|
3610
|
-
discardButton: 'Discard',
|
|
3611
|
-
saveButton: 'Save',
|
|
3612
|
-
},
|
|
3613
|
-
},
|
|
3614
|
-
rangeDatePicker: {
|
|
3615
|
-
pickerPlaceholderFrom: 'From:',
|
|
3616
|
-
pickerPlaceholderTo: 'To:',
|
|
3617
|
-
},
|
|
3618
|
-
tables: {
|
|
3619
|
-
columnsConfigurationModal: {
|
|
3620
|
-
applyButton: 'Apply',
|
|
3621
|
-
checkAllButton: 'CHECK ALL',
|
|
3622
|
-
uncheckAllButton: 'UNCHECK ALL',
|
|
3623
|
-
configureColumnsTitle: 'Configure columns',
|
|
3624
|
-
resetToDefaultButton: 'Reset to Default',
|
|
3625
|
-
},
|
|
3626
|
-
},
|
|
3627
|
-
pickerFilterHeader: {
|
|
3628
|
-
sortAscending: 'Sort Ascending',
|
|
3629
|
-
sortDescending: 'Sort Descending',
|
|
3630
|
-
},
|
|
3631
|
-
};
|
|
3579
|
+
|
|
3580
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3581
|
+
exports.i18n = void 0;
|
|
3582
|
+
exports.i18n = {
|
|
3583
|
+
dataPickerBody: {
|
|
3584
|
+
searchPlaceholder: 'Search',
|
|
3585
|
+
noRecordsMessage: 'No records found',
|
|
3586
|
+
},
|
|
3587
|
+
pickerModal: {
|
|
3588
|
+
headerTitle: 'Please select',
|
|
3589
|
+
searchPlaceholder: 'Type text for quick search',
|
|
3590
|
+
cancelButton: 'Cancel',
|
|
3591
|
+
selectButton: 'Select',
|
|
3592
|
+
clearAllButton: 'CLEAR ALL',
|
|
3593
|
+
selectAllButton: 'SELECT ALL',
|
|
3594
|
+
},
|
|
3595
|
+
pickerInput: {
|
|
3596
|
+
showOnlySelectedLabel: 'Show only selected',
|
|
3597
|
+
clearSelectionButton: 'CLEAR ALL',
|
|
3598
|
+
selectAllButton: 'SELECT ALL',
|
|
3599
|
+
},
|
|
3600
|
+
notificationCard: {
|
|
3601
|
+
closeAllNotificationsButton: 'CLOSE ALL NOTIFICATIONS',
|
|
3602
|
+
},
|
|
3603
|
+
form: {
|
|
3604
|
+
notifications: {
|
|
3605
|
+
actionButtonCaption: 'Restore',
|
|
3606
|
+
unsavedChangesMessage: 'You have unsaved changes. Click Restore button if you would like to recover the data',
|
|
3607
|
+
},
|
|
3608
|
+
modals: {
|
|
3609
|
+
beforeLeaveMessage: 'Your data may be lost. Do you want to save data?',
|
|
3610
|
+
discardButton: 'Discard',
|
|
3611
|
+
saveButton: 'Save',
|
|
3612
|
+
},
|
|
3613
|
+
},
|
|
3614
|
+
rangeDatePicker: {
|
|
3615
|
+
pickerPlaceholderFrom: 'From:',
|
|
3616
|
+
pickerPlaceholderTo: 'To:',
|
|
3617
|
+
},
|
|
3618
|
+
tables: {
|
|
3619
|
+
columnsConfigurationModal: {
|
|
3620
|
+
applyButton: 'Apply',
|
|
3621
|
+
checkAllButton: 'CHECK ALL',
|
|
3622
|
+
uncheckAllButton: 'UNCHECK ALL',
|
|
3623
|
+
configureColumnsTitle: 'Configure columns',
|
|
3624
|
+
resetToDefaultButton: 'Reset to Default',
|
|
3625
|
+
},
|
|
3626
|
+
},
|
|
3627
|
+
pickerFilterHeader: {
|
|
3628
|
+
sortAscending: 'Sort Ascending',
|
|
3629
|
+
sortDescending: 'Sort Descending',
|
|
3630
|
+
},
|
|
3631
|
+
};
|
|
3632
3632
|
|
|
3633
3633
|
|
|
3634
3634
|
/***/ }),
|
|
@@ -4118,7 +4118,7 @@ var ForwardRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.forwa
|
|
|
4118
4118
|
svgRef: ref
|
|
4119
4119
|
}, props));
|
|
4120
4120
|
});
|
|
4121
|
-
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "
|
|
4121
|
+
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "8c22fc9b8cbf04371e4f5bf1027a1214.svg");
|
|
4122
4122
|
|
|
4123
4123
|
|
|
4124
4124
|
/***/ }),
|
|
@@ -4167,7 +4167,7 @@ var ForwardRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.forwa
|
|
|
4167
4167
|
svgRef: ref
|
|
4168
4168
|
}, props));
|
|
4169
4169
|
});
|
|
4170
|
-
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "
|
|
4170
|
+
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "3dbfe2a24bf6fd3beb06518cc8b302b6.svg");
|
|
4171
4171
|
|
|
4172
4172
|
|
|
4173
4173
|
/***/ }),
|
|
@@ -4362,7 +4362,7 @@ var ForwardRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.forwa
|
|
|
4362
4362
|
svgRef: ref
|
|
4363
4363
|
}, props));
|
|
4364
4364
|
});
|
|
4365
|
-
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "
|
|
4365
|
+
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "2d55a1b593695615b326b4ec6cbb305b.svg");
|
|
4366
4366
|
|
|
4367
4367
|
|
|
4368
4368
|
/***/ }),
|
|
@@ -4410,7 +4410,7 @@ var ForwardRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.forwa
|
|
|
4410
4410
|
svgRef: ref
|
|
4411
4411
|
}, props));
|
|
4412
4412
|
});
|
|
4413
|
-
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "
|
|
4413
|
+
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "936b8cd53f40395c4e581f4718a5cc2f.svg");
|
|
4414
4414
|
|
|
4415
4415
|
|
|
4416
4416
|
/***/ }),
|
|
@@ -4423,103 +4423,103 @@ var ForwardRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.forwa
|
|
|
4423
4423
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4424
4424
|
|
|
4425
4425
|
"use strict";
|
|
4426
|
-
|
|
4427
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4428
|
-
exports.systemIcons = void 0;
|
|
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");
|
|
4449
|
-
exports.systemIcons = {
|
|
4450
|
-
'18': {
|
|
4451
|
-
clear: btn_cross_12_svg_1.ReactComponent,
|
|
4452
|
-
foldingArrow: folding_arrow_12_svg_1.ReactComponent,
|
|
4453
|
-
accept: accept_12_svg_1.ReactComponent,
|
|
4454
|
-
search: search_12_svg_1.ReactComponent,
|
|
4455
|
-
calendar: calendar_12_svg_1.ReactComponent,
|
|
4456
|
-
info: info_12_svg_1.ReactComponent,
|
|
4457
|
-
help: help_fill_10_svg_1.ReactComponent,
|
|
4458
|
-
},
|
|
4459
|
-
'24': {
|
|
4460
|
-
clear: btn_cross_12_svg_1.ReactComponent,
|
|
4461
|
-
foldingArrow: folding_arrow_12_svg_1.ReactComponent,
|
|
4462
|
-
accept: accept_12_svg_1.ReactComponent,
|
|
4463
|
-
search: search_12_svg_1.ReactComponent,
|
|
4464
|
-
calendar: calendar_12_svg_1.ReactComponent,
|
|
4465
|
-
info: info_12_svg_1.ReactComponent,
|
|
4466
|
-
help: help_fill_10_svg_1.ReactComponent,
|
|
4467
|
-
},
|
|
4468
|
-
'30': {
|
|
4469
|
-
clear: btn_cross_18_svg_1.ReactComponent,
|
|
4470
|
-
foldingArrow: folding_arrow_18_svg_1.ReactComponent,
|
|
4471
|
-
accept: accept_18_svg_1.ReactComponent,
|
|
4472
|
-
search: search_18_svg_1.ReactComponent,
|
|
4473
|
-
calendar: calendar_18_svg_1.ReactComponent,
|
|
4474
|
-
info: info_18_svg_1.ReactComponent,
|
|
4475
|
-
help: help_fill_10_svg_1.ReactComponent,
|
|
4476
|
-
},
|
|
4477
|
-
'36': {
|
|
4478
|
-
clear: btn_cross_18_svg_1.ReactComponent,
|
|
4479
|
-
foldingArrow: folding_arrow_18_svg_1.ReactComponent,
|
|
4480
|
-
accept: accept_18_svg_1.ReactComponent,
|
|
4481
|
-
search: search_18_svg_1.ReactComponent,
|
|
4482
|
-
calendar: calendar_18_svg_1.ReactComponent,
|
|
4483
|
-
info: info_18_svg_1.ReactComponent,
|
|
4484
|
-
help: help_fill_16_svg_1.ReactComponent,
|
|
4485
|
-
},
|
|
4486
|
-
'42': {
|
|
4487
|
-
clear: btn_cross_18_svg_1.ReactComponent,
|
|
4488
|
-
foldingArrow: folding_arrow_18_svg_1.ReactComponent,
|
|
4489
|
-
accept: accept_18_svg_1.ReactComponent,
|
|
4490
|
-
search: search_18_svg_1.ReactComponent,
|
|
4491
|
-
calendar: calendar_18_svg_1.ReactComponent,
|
|
4492
|
-
info: info_18_svg_1.ReactComponent,
|
|
4493
|
-
help: help_fill_16_svg_1.ReactComponent,
|
|
4494
|
-
},
|
|
4495
|
-
'48': {
|
|
4496
|
-
clear: btn_cross_24_svg_1.ReactComponent,
|
|
4497
|
-
foldingArrow: folding_arrow_24_svg_1.ReactComponent,
|
|
4498
|
-
accept: accept_24_svg_1.ReactComponent,
|
|
4499
|
-
search: search_24_svg_1.ReactComponent,
|
|
4500
|
-
calendar: calendar_24_svg_1.ReactComponent,
|
|
4501
|
-
info: info_24_svg_1.ReactComponent,
|
|
4502
|
-
help: help_fill_16_svg_1.ReactComponent,
|
|
4503
|
-
},
|
|
4504
|
-
'60': {
|
|
4505
|
-
clear: btn_cross_24_svg_1.ReactComponent,
|
|
4506
|
-
foldingArrow: folding_arrow_24_svg_1.ReactComponent,
|
|
4507
|
-
accept: accept_24_svg_1.ReactComponent,
|
|
4508
|
-
search: search_24_svg_1.ReactComponent,
|
|
4509
|
-
calendar: calendar_24_svg_1.ReactComponent,
|
|
4510
|
-
info: info_24_svg_1.ReactComponent,
|
|
4511
|
-
help: help_fill_16_svg_1.ReactComponent,
|
|
4512
|
-
},
|
|
4513
|
-
'none': {
|
|
4514
|
-
clear: btn_cross_18_svg_1.ReactComponent,
|
|
4515
|
-
foldingArrow: folding_arrow_18_svg_1.ReactComponent,
|
|
4516
|
-
accept: accept_18_svg_1.ReactComponent,
|
|
4517
|
-
search: search_18_svg_1.ReactComponent,
|
|
4518
|
-
calendar: calendar_18_svg_1.ReactComponent,
|
|
4519
|
-
info: info_18_svg_1.ReactComponent,
|
|
4520
|
-
help: help_fill_16_svg_1.ReactComponent,
|
|
4521
|
-
},
|
|
4522
|
-
};
|
|
4426
|
+
|
|
4427
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4428
|
+
exports.systemIcons = void 0;
|
|
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");
|
|
4449
|
+
exports.systemIcons = {
|
|
4450
|
+
'18': {
|
|
4451
|
+
clear: btn_cross_12_svg_1.ReactComponent,
|
|
4452
|
+
foldingArrow: folding_arrow_12_svg_1.ReactComponent,
|
|
4453
|
+
accept: accept_12_svg_1.ReactComponent,
|
|
4454
|
+
search: search_12_svg_1.ReactComponent,
|
|
4455
|
+
calendar: calendar_12_svg_1.ReactComponent,
|
|
4456
|
+
info: info_12_svg_1.ReactComponent,
|
|
4457
|
+
help: help_fill_10_svg_1.ReactComponent,
|
|
4458
|
+
},
|
|
4459
|
+
'24': {
|
|
4460
|
+
clear: btn_cross_12_svg_1.ReactComponent,
|
|
4461
|
+
foldingArrow: folding_arrow_12_svg_1.ReactComponent,
|
|
4462
|
+
accept: accept_12_svg_1.ReactComponent,
|
|
4463
|
+
search: search_12_svg_1.ReactComponent,
|
|
4464
|
+
calendar: calendar_12_svg_1.ReactComponent,
|
|
4465
|
+
info: info_12_svg_1.ReactComponent,
|
|
4466
|
+
help: help_fill_10_svg_1.ReactComponent,
|
|
4467
|
+
},
|
|
4468
|
+
'30': {
|
|
4469
|
+
clear: btn_cross_18_svg_1.ReactComponent,
|
|
4470
|
+
foldingArrow: folding_arrow_18_svg_1.ReactComponent,
|
|
4471
|
+
accept: accept_18_svg_1.ReactComponent,
|
|
4472
|
+
search: search_18_svg_1.ReactComponent,
|
|
4473
|
+
calendar: calendar_18_svg_1.ReactComponent,
|
|
4474
|
+
info: info_18_svg_1.ReactComponent,
|
|
4475
|
+
help: help_fill_10_svg_1.ReactComponent,
|
|
4476
|
+
},
|
|
4477
|
+
'36': {
|
|
4478
|
+
clear: btn_cross_18_svg_1.ReactComponent,
|
|
4479
|
+
foldingArrow: folding_arrow_18_svg_1.ReactComponent,
|
|
4480
|
+
accept: accept_18_svg_1.ReactComponent,
|
|
4481
|
+
search: search_18_svg_1.ReactComponent,
|
|
4482
|
+
calendar: calendar_18_svg_1.ReactComponent,
|
|
4483
|
+
info: info_18_svg_1.ReactComponent,
|
|
4484
|
+
help: help_fill_16_svg_1.ReactComponent,
|
|
4485
|
+
},
|
|
4486
|
+
'42': {
|
|
4487
|
+
clear: btn_cross_18_svg_1.ReactComponent,
|
|
4488
|
+
foldingArrow: folding_arrow_18_svg_1.ReactComponent,
|
|
4489
|
+
accept: accept_18_svg_1.ReactComponent,
|
|
4490
|
+
search: search_18_svg_1.ReactComponent,
|
|
4491
|
+
calendar: calendar_18_svg_1.ReactComponent,
|
|
4492
|
+
info: info_18_svg_1.ReactComponent,
|
|
4493
|
+
help: help_fill_16_svg_1.ReactComponent,
|
|
4494
|
+
},
|
|
4495
|
+
'48': {
|
|
4496
|
+
clear: btn_cross_24_svg_1.ReactComponent,
|
|
4497
|
+
foldingArrow: folding_arrow_24_svg_1.ReactComponent,
|
|
4498
|
+
accept: accept_24_svg_1.ReactComponent,
|
|
4499
|
+
search: search_24_svg_1.ReactComponent,
|
|
4500
|
+
calendar: calendar_24_svg_1.ReactComponent,
|
|
4501
|
+
info: info_24_svg_1.ReactComponent,
|
|
4502
|
+
help: help_fill_16_svg_1.ReactComponent,
|
|
4503
|
+
},
|
|
4504
|
+
'60': {
|
|
4505
|
+
clear: btn_cross_24_svg_1.ReactComponent,
|
|
4506
|
+
foldingArrow: folding_arrow_24_svg_1.ReactComponent,
|
|
4507
|
+
accept: accept_24_svg_1.ReactComponent,
|
|
4508
|
+
search: search_24_svg_1.ReactComponent,
|
|
4509
|
+
calendar: calendar_24_svg_1.ReactComponent,
|
|
4510
|
+
info: info_24_svg_1.ReactComponent,
|
|
4511
|
+
help: help_fill_16_svg_1.ReactComponent,
|
|
4512
|
+
},
|
|
4513
|
+
'none': {
|
|
4514
|
+
clear: btn_cross_18_svg_1.ReactComponent,
|
|
4515
|
+
foldingArrow: folding_arrow_18_svg_1.ReactComponent,
|
|
4516
|
+
accept: accept_18_svg_1.ReactComponent,
|
|
4517
|
+
search: search_18_svg_1.ReactComponent,
|
|
4518
|
+
calendar: calendar_18_svg_1.ReactComponent,
|
|
4519
|
+
info: info_18_svg_1.ReactComponent,
|
|
4520
|
+
help: help_fill_16_svg_1.ReactComponent,
|
|
4521
|
+
},
|
|
4522
|
+
};
|
|
4523
4523
|
|
|
4524
4524
|
|
|
4525
4525
|
/***/ }),
|
|
@@ -4568,7 +4568,7 @@ var ForwardRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.forwa
|
|
|
4568
4568
|
svgRef: ref
|
|
4569
4569
|
}, props));
|
|
4570
4570
|
});
|
|
4571
|
-
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "
|
|
4571
|
+
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "77b7c4fba164c58228be2d8d0d6dec98.svg");
|
|
4572
4572
|
|
|
4573
4573
|
|
|
4574
4574
|
/***/ }),
|
|
@@ -4960,7 +4960,7 @@ var ForwardRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.forwa
|
|
|
4960
4960
|
svgRef: ref
|
|
4961
4961
|
}, props));
|
|
4962
4962
|
});
|
|
4963
|
-
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "
|
|
4963
|
+
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "35106eb8a4be4afeb326f2926347d63c.svg");
|
|
4964
4964
|
|
|
4965
4965
|
|
|
4966
4966
|
/***/ }),
|
|
@@ -5009,7 +5009,7 @@ var ForwardRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.forwa
|
|
|
5009
5009
|
svgRef: ref
|
|
5010
5010
|
}, props));
|
|
5011
5011
|
});
|
|
5012
|
-
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "
|
|
5012
|
+
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "77e60738884942dab88dae51d3dbccd2.svg");
|
|
5013
5013
|
|
|
5014
5014
|
|
|
5015
5015
|
/***/ }),
|
|
@@ -5059,7 +5059,7 @@ var ForwardRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.forwa
|
|
|
5059
5059
|
svgRef: ref
|
|
5060
5060
|
}, props));
|
|
5061
5061
|
});
|
|
5062
|
-
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "
|
|
5062
|
+
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "e0a2a4521d4572e6b2c97c177d398463.svg");
|
|
5063
5063
|
|
|
5064
5064
|
|
|
5065
5065
|
/***/ }),
|
|
@@ -5310,7 +5310,7 @@ var ForwardRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.forwa
|
|
|
5310
5310
|
svgRef: ref
|
|
5311
5311
|
}, props));
|
|
5312
5312
|
});
|
|
5313
|
-
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "
|
|
5313
|
+
/* harmony default export */ __webpack_exports__["default"] = (__webpack_require__.p + "4a0775e7f6abd130329c74c2eba659c7.svg");
|
|
5314
5314
|
|
|
5315
5315
|
|
|
5316
5316
|
/***/ }),
|
|
@@ -5323,13 +5323,13 @@ var ForwardRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.forwa
|
|
|
5323
5323
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5324
5324
|
|
|
5325
5325
|
"use strict";
|
|
5326
|
-
|
|
5327
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5328
|
-
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
5329
|
-
__webpack_require__(/*! ./assets/styles/font-faces.scss */ "./assets/styles/font-faces.scss");
|
|
5330
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./components */ "./components/index.ts"), exports);
|
|
5331
|
-
// export * from './i18n';
|
|
5332
|
-
(0, tslib_1.__exportStar)(__webpack_require__(/*! @epam/uui-core */ "@epam/uui-core"), exports);
|
|
5326
|
+
|
|
5327
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5328
|
+
const tslib_1 = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.js");
|
|
5329
|
+
__webpack_require__(/*! ./assets/styles/font-faces.scss */ "./assets/styles/font-faces.scss");
|
|
5330
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! ./components */ "./components/index.ts"), exports);
|
|
5331
|
+
// export * from './i18n';
|
|
5332
|
+
(0, tslib_1.__exportStar)(__webpack_require__(/*! @epam/uui-core */ "@epam/uui-core"), exports);
|
|
5333
5333
|
|
|
5334
5334
|
|
|
5335
5335
|
/***/ }),
|
|
@@ -5341,7 +5341,7 @@ __webpack_require__(/*! ./assets/styles/font-faces.scss */ "./assets/styles/font
|
|
|
5341
5341
|
/*! no static exports found */
|
|
5342
5342
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5343
5343
|
|
|
5344
|
-
module.exports = __webpack_require__(/*!
|
|
5344
|
+
module.exports = __webpack_require__(/*! D:\dev\UUI-main\uui\index.tsx */"./index.tsx");
|
|
5345
5345
|
|
|
5346
5346
|
|
|
5347
5347
|
/***/ }),
|