@councilbox/councilbox-ui 2.0.52 → 2.0.54
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/dist/HOCs/overlayA11yStack.js +47 -0
- package/dist/HOCs/useA11yGuard.js +38 -0
- package/dist/HOCs/useDynamicStyles.js +18 -38
- package/dist/HOCs/useMenuNavigation.js +110 -0
- package/dist/HOCs/useOverlay.js +87 -0
- package/dist/HOCs/usePopoverPosition.js +228 -0
- package/dist/HOCs/useRipple.js +17 -35
- package/dist/HOCs/useWindowSize.js +24 -42
- package/dist/build-index.js +49 -99
- package/dist/components/1.Introduction.stories.mdx +1 -1
- package/dist/components/2.Changelog.stories.mdx +45 -0
- package/dist/components/3.Guide.stories.mdx +1 -1
- package/dist/components/Accordion/Accordion.css +7 -0
- package/dist/components/Accordion/Accordion.js +97 -102
- package/dist/components/Accordion/Accordion.stories.js +10 -12
- package/dist/components/Accordion/AccordionOld.js +32 -56
- package/dist/components/Accordion/DesignAccordion.stories.js +10 -21
- package/dist/components/Alert/Alert.js +55 -55
- package/dist/components/Alert/Alert.stories.js +10 -11
- package/dist/components/Avatar/Avatar.js +82 -74
- package/dist/components/Avatar/Avatar.stories.js +19 -23
- package/dist/components/Avatar/AvatarOld.js +46 -60
- package/dist/components/Avatar/DesignAvatar.stories.js +18 -26
- package/dist/components/Avatar/DesignAvatarText.stories.js +31 -40
- package/dist/components/AvatarGroup/AvatarGroup.js +7 -14
- package/dist/components/AvatarGroup/AvatarGroup.stories.js +6 -13
- package/dist/components/AvatarGroup/DesignAvatarGroup.stories.js +34 -45
- package/dist/components/Block/Block.css +3 -3
- package/dist/components/Block/Block.js +31 -45
- package/dist/components/Block/Block.stories.js +5 -12
- package/dist/components/Block/DesignBlock.stories.js +7 -13
- package/dist/components/Button/Button.js +44 -66
- package/dist/components/Button/Button.stories.js +8 -14
- package/dist/components/Button/button.css +1 -1
- package/dist/components/ButtonBasic/ButtonBasic.css +6 -1
- package/dist/components/ButtonBasic/ButtonBasic.js +96 -118
- package/dist/components/ButtonBasic/ButtonBasic.stories.js +14 -15
- package/dist/components/ButtonBasic/ButtonBasicOld.js +57 -77
- package/dist/components/Checkbox/Checkbox.css +6 -0
- package/dist/components/Checkbox/Checkbox.js +81 -100
- package/dist/components/Checkbox/Checkbox.stories.js +10 -11
- package/dist/components/Checkbox/CheckboxOld.js +19 -35
- package/dist/components/DragDrop/DragDrop.css +20 -9
- package/dist/components/DragDrop/DragDrop.js +80 -76
- package/dist/components/DragDrop/DragDrop.stories.js +9 -16
- package/dist/components/DrawerPanel/DesignDrawerPanel.js +35 -53
- package/dist/components/DrawerPanel/DrawerPanel.js +157 -146
- package/dist/components/DrawerPanel/DrawerPanel.stories.js +10 -12
- package/dist/components/DrawerPanel/DrawerPanelOld.js +76 -98
- package/dist/components/DropDown/DesignDropDown.stories.js +79 -97
- package/dist/components/DropDown/DropDown.js +168 -342
- package/dist/components/DropDown/DropDown.stories.js +6 -12
- package/dist/components/DropDown/DropDownOld.js +57 -89
- package/dist/components/DropDown/PopoverPlayground.js +68 -98
- package/dist/components/EnhancedTable/DesignEnhancedTable.stories.js +26 -36
- package/dist/components/EnhancedTable/EnhancedMyTable.js +16 -19
- package/dist/components/EnhancedTable/EnhancedTable.js +77 -136
- package/dist/components/EnhancedTable/EnhancedTable.stories.js +5 -12
- package/dist/components/EnhancedTable/EnhancedTableBody.js +11 -14
- package/dist/components/EnhancedTable/EnhancedTableCell.js +25 -34
- package/dist/components/EnhancedTable/EnhancedTableContainer.js +11 -14
- package/dist/components/EnhancedTable/EnhancedTableHead.js +11 -14
- package/dist/components/EnhancedTable/EnhancedTableRow.js +15 -18
- package/dist/components/EnhancedTable/EnhancedTableSortLabel.js +15 -18
- package/dist/components/FabButton/DesignFabButton.stories.js +9 -16
- package/dist/components/FabButton/FabButton.js +51 -54
- package/dist/components/FabButton/FabButton.stories.js +10 -12
- package/dist/components/Grid/DesignGrid.stories.js +7 -14
- package/dist/components/Grid/Grid.js +38 -46
- package/dist/components/Grid/Grid.stories.js +6 -13
- package/dist/components/Grid/GridItem.js +37 -39
- package/dist/components/Grid/GridItemOld.js +13 -18
- package/dist/components/Grid/GridOld.js +14 -21
- package/dist/components/Header/DesignHeader.stories.js +20 -24
- package/dist/components/Header/Header.js +201 -242
- package/dist/components/Header/Header.stories.js +9 -21
- package/dist/components/Header/header.css +10 -5
- package/dist/components/IconButton/DesignIconButton.stories.js +31 -36
- package/dist/components/IconButton/IconButton.css +6 -1
- package/dist/components/IconButton/IconButton.js +132 -138
- package/dist/components/IconButton/IconButton.stories.js +12 -13
- package/dist/components/IconButton/IconButtonOld.js +41 -57
- package/dist/components/IconButtonSquare/DesignIconButtonSquare.stories.js +5 -11
- package/dist/components/IconButtonSquare/IconButtonSquare.js +11 -25
- package/dist/components/IconButtonSquare/IconButtonSquare.stories.js +7 -13
- package/dist/components/IconButtonSquare/IconButtonSquareOld.js +44 -62
- package/dist/components/IconFont/IconFont.js +27 -48
- package/dist/components/IconFont/IconFont.stories.js +5 -11
- package/dist/components/InputAutocomplete/InputAutocomplete.css +6 -0
- package/dist/components/InputAutocomplete/InputAutocomplete.js +184 -260
- package/dist/components/InputAutocomplete/InputAutocomplete.stories.js +5 -11
- package/dist/components/InputAutocomplete/InputAutocompleteOld.js +43 -62
- package/dist/components/InputPassword/InputPassword.css +0 -6
- package/dist/components/InputPassword/InputPassword.js +58 -73
- package/dist/components/InputPassword/InputPassword.stories.js +5 -11
- package/dist/components/InputText/InputText.css +86 -78
- package/dist/components/InputText/InputText.js +207 -211
- package/dist/components/InputText/InputText.stories.js +11 -11
- package/dist/components/InputText/InputTextOld.js +48 -74
- package/dist/components/InputTextArea/DesignInputTextArea.stories.js +38 -51
- package/dist/components/InputTextArea/InputTextArea.js +84 -93
- package/dist/components/InputTextArea/InputTextArea.stories.js +5 -12
- package/dist/components/LoadingSection/LoadingSection.js +44 -51
- package/dist/components/LoadingSection/LoadingSection.stories.js +5 -11
- package/dist/components/MenuItem/DesignMenuItem.stories.js +20 -34
- package/dist/components/MenuItem/MenuItem.css +7 -2
- package/dist/components/MenuItem/MenuItem.js +100 -113
- package/dist/components/MenuItem/MenuItem.stories.js +6 -15
- package/dist/components/MenuItem/MenuItemOld.js +40 -56
- package/dist/components/MenuLateralLeft/MenuLateralLeft.css +24 -0
- package/dist/components/MenuLateralLeft/MenuLateralLeft.js +123 -160
- package/dist/components/MenuLateralLeft/MenuLateralLeft.stories.js +5 -12
- package/dist/components/MenuLateralRight/MenuLateralRight.css +2 -2
- package/dist/components/MenuLateralRight/MenuLateralRight.js +73 -77
- package/dist/components/MenuLateralRight/MenuLateralRight.stories.js +5 -12
- package/dist/components/Modal/DesignModal.stories.js +15 -30
- package/dist/components/Modal/Modal.css +35 -15
- package/dist/components/Modal/Modal.js +154 -145
- package/dist/components/Modal/Modal.stories.js +7 -16
- package/dist/components/Modal/ModalOld.js +73 -90
- package/dist/components/PaginationFooter/DesignPaginationFooter.stories.js +4 -10
- package/dist/components/PaginationFooter/PaginationFooter.css +10 -0
- package/dist/components/PaginationFooter/PaginationFooter.js +99 -91
- package/dist/components/PaginationFooter/PaginationFooter.stories.js +5 -12
- package/dist/components/RadioButton/Radio.css +19 -18
- package/dist/components/RadioButton/Radio.js +65 -83
- package/dist/components/RadioButton/Radio.stories.js +27 -36
- package/dist/components/RadioButton/RadioOld.js +23 -39
- package/dist/components/Ripple/DesignRipple.js +25 -41
- package/dist/components/Ripple/Ripple.stories.js +5 -11
- package/dist/components/Scrollbar/DesignScrollbar.js +5 -10
- package/dist/components/Scrollbar/Scrollbar.js +37 -56
- package/dist/components/Scrollbar/Scrollbar.stories.js +5 -12
- package/dist/components/SelectInput/DesignSelectInput.js +22 -45
- package/dist/components/SelectInput/SelectInput.js +101 -155
- package/dist/components/SelectInput/SelectInput.stories.js +6 -15
- package/dist/components/SelectInput/SelectInputOld.js +52 -81
- package/dist/components/Slider/DesignSlider.js +8 -14
- package/dist/components/Slider/Slider.css +57 -37
- package/dist/components/Slider/Slider.js +85 -84
- package/dist/components/Slider/Slider.stories.js +5 -12
- package/dist/components/Spacing/Spacing.js +38 -45
- package/dist/components/Spacing/Spacing.stories.js +5 -11
- package/dist/components/Stars/DesignStars.js +17 -30
- package/dist/components/Stars/Stars.css +55 -104
- package/dist/components/Stars/Stars.js +89 -73
- package/dist/components/Stars/Stars.stories.js +5 -12
- package/dist/components/Stepper/DesignStepper.stories.js +16 -30
- package/dist/components/Stepper/Stepper.css +46 -10
- package/dist/components/Stepper/Stepper.js +118 -134
- package/dist/components/Stepper/Stepper.stories.js +5 -12
- package/dist/components/Table/DesignTable.stories.js +200 -211
- package/dist/components/Table/Table.css +33 -2
- package/dist/components/Table/Table.js +30 -38
- package/dist/components/Table/Table.stories.js +5 -12
- package/dist/components/Table/TableBody.js +22 -34
- package/dist/components/Table/TableCell.js +71 -61
- package/dist/components/Table/TableContainer.js +22 -34
- package/dist/components/Table/TableHead.js +22 -34
- package/dist/components/Table/TableOld.js +52 -84
- package/dist/components/Table/TableRow.js +33 -37
- package/dist/components/Table/TableSortLabel.js +42 -52
- package/dist/components/Tabs/DesignTabs.js +14 -28
- package/dist/components/Tabs/Tabs.css +30 -11
- package/dist/components/Tabs/Tabs.js +151 -137
- package/dist/components/Tabs/Tabs.stories.js +5 -12
- package/dist/components/Tabs/TabsOld.js +28 -42
- package/dist/components/Tag/DesignTags.stories.js +24 -39
- package/dist/components/Tag/Tag.css +61 -42
- package/dist/components/Tag/Tag.js +93 -91
- package/dist/components/Tag/Tag.stories.js +5 -12
- package/dist/components/TextInput/TextInput.js +38 -54
- package/dist/components/TextInput/TextInput.stories.js +5 -11
- package/dist/components/ThemeProvider/Colors.js +2 -2
- package/dist/components/ThemeProvider/CouncilboxThemeContext.js +7 -10
- package/dist/components/ThemeProvider/ThemeProvider.js +34 -52
- package/dist/components/Timeline/DesignTimeline.stories.js +4 -10
- package/dist/components/Timeline/Timeline.js +66 -46
- package/dist/components/Timeline/Timeline.stories.js +5 -12
- package/dist/components/Toggle/Toggle.css +10 -0
- package/dist/components/Toggle/Toggle.js +115 -98
- package/dist/components/Toggle/Toggle.stories.js +10 -11
- package/dist/components/Tooltip/DesignTooltip.stories.js +10 -16
- package/dist/components/Tooltip/Tooltip.css +17 -1
- package/dist/components/Tooltip/Tooltip.js +190 -366
- package/dist/components/Tooltip/Tooltip.stories.js +5 -12
- package/dist/components/Typography/Typography.css +57 -6
- package/dist/components/Typography/Typography.js +44 -97
- package/dist/components/Typography/Typography.stories.js +5 -11
- package/dist/components/Typography/TypographyOld.js +29 -42
- package/dist/index.js +2 -6
- package/dist/reportWebVitals.js +8 -14
- package/dist/storybook.test.js +2 -4
- package/dist/styles/colorConsts.css +4 -4
- package/dist/styles/main.css +16 -0
- package/dist/styles/stylesheet.js +10 -22
- package/dist/testing/TestAutocomplete.js +74 -97
- package/dist/testing/TestComponents.js +5 -10
- package/dist/testing/TestDropdown.js +33 -41
- package/dist/utils/autoDetectScroll.js +12 -35
- package/dist/utils/index.js +37 -63
- package/dist/utils/useFallbackId.js +19 -0
- package/package.json +5 -2
|
@@ -1,132 +1,132 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
7
|
+
exports["default"] = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
9
|
require("./DrawerPanel.css");
|
|
11
|
-
|
|
12
10
|
var _reactDom = require("react-dom");
|
|
13
|
-
|
|
14
11
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
|
-
|
|
16
12
|
var _Tabs = _interopRequireDefault(require("../Tabs/Tabs"));
|
|
17
|
-
|
|
18
13
|
var _ButtonBasic = _interopRequireDefault(require("../ButtonBasic/ButtonBasic"));
|
|
19
|
-
|
|
20
14
|
var _Typography = _interopRequireDefault(require("../Typography/Typography"));
|
|
21
|
-
|
|
22
15
|
var _IconButton = _interopRequireDefault(require("../IconButton/IconButton"));
|
|
23
|
-
|
|
24
16
|
var _useDynamicStyles2 = _interopRequireDefault(require("../../HOCs/useDynamicStyles"));
|
|
25
|
-
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
function _extends() { _extends = Object.assign
|
|
31
|
-
|
|
32
|
-
function
|
|
33
|
-
|
|
34
|
-
function
|
|
35
|
-
|
|
36
|
-
function
|
|
37
|
-
|
|
38
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
39
|
-
|
|
17
|
+
var _useFallbackId = _interopRequireDefault(require("../../utils/useFallbackId"));
|
|
18
|
+
var _useOverlay2 = _interopRequireDefault(require("../../HOCs/useOverlay"));
|
|
19
|
+
var _useA11yGuard2 = require("../../HOCs/useA11yGuard");
|
|
20
|
+
var _excluded = ["title", "id", "fullScreen", "sizeContainer", "buttonAccept", "successAction", "open", "requestClose", "loadingAction", "acceptAction", "bodyText", "bodyStyle", "hideAccept", "classNameDialog", "PaperProps", "widthModal", "isMobile", "tabs", "onChange", "titleStyles", "subTitle", "subTitleStyles", "endIcon", "propsButton", "style", "styles", "sx", "prefixClass", "direction", "variantTabs", "disableBackdropClick", "moreButton", "moreButtonInit", "aria-label"];
|
|
21
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
22
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) { ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } } return n; }, _extends.apply(null, arguments); }
|
|
23
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
25
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
26
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
27
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
28
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
40
29
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
41
|
-
|
|
42
|
-
function
|
|
43
|
-
|
|
44
|
-
function
|
|
45
|
-
|
|
46
|
-
function
|
|
47
|
-
|
|
48
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
49
|
-
|
|
50
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
51
|
-
|
|
52
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
53
|
-
|
|
30
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
31
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) { n[e] = r[e]; } return n; }
|
|
32
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) { ; } } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
33
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
34
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) { o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } } return i; }
|
|
35
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) { if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } } return t; }
|
|
54
36
|
var DrawerPanel = function DrawerPanel(_ref) {
|
|
55
37
|
var title = _ref.title,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
var _useDynamicStyles = (0, _useDynamicStyles2
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
38
|
+
_ref$id = _ref.id,
|
|
39
|
+
id = _ref$id === void 0 ? 'panel-confirm' : _ref$id,
|
|
40
|
+
fullScreen = _ref.fullScreen,
|
|
41
|
+
sizeContainer = _ref.sizeContainer,
|
|
42
|
+
buttonAccept = _ref.buttonAccept,
|
|
43
|
+
_ref$successAction = _ref.successAction,
|
|
44
|
+
successAction = _ref$successAction === void 0 ? false : _ref$successAction,
|
|
45
|
+
open = _ref.open,
|
|
46
|
+
requestClose = _ref.requestClose,
|
|
47
|
+
loadingAction = _ref.loadingAction,
|
|
48
|
+
acceptAction = _ref.acceptAction,
|
|
49
|
+
bodyText = _ref.bodyText,
|
|
50
|
+
_ref$bodyStyle = _ref.bodyStyle,
|
|
51
|
+
bodyStyle = _ref$bodyStyle === void 0 ? {} : _ref$bodyStyle,
|
|
52
|
+
hideAccept = _ref.hideAccept,
|
|
53
|
+
classNameDialog = _ref.classNameDialog,
|
|
54
|
+
PaperProps = _ref.PaperProps,
|
|
55
|
+
widthModal = _ref.widthModal,
|
|
56
|
+
isMobile = _ref.isMobile,
|
|
57
|
+
_ref$tabs = _ref.tabs,
|
|
58
|
+
tabs = _ref$tabs === void 0 ? [] : _ref$tabs,
|
|
59
|
+
_onChange = _ref.onChange,
|
|
60
|
+
titleStyles = _ref.titleStyles,
|
|
61
|
+
subTitle = _ref.subTitle,
|
|
62
|
+
subTitleStyles = _ref.subTitleStyles,
|
|
63
|
+
endIcon = _ref.endIcon,
|
|
64
|
+
propsButton = _ref.propsButton,
|
|
65
|
+
style = _ref.style,
|
|
66
|
+
styles = _ref.styles,
|
|
67
|
+
sx = _ref.sx,
|
|
68
|
+
propPrefixClass = _ref.prefixClass,
|
|
69
|
+
direction = _ref.direction,
|
|
70
|
+
variantTabs = _ref.variantTabs,
|
|
71
|
+
disableBackdropClick = _ref.disableBackdropClick,
|
|
72
|
+
moreButton = _ref.moreButton,
|
|
73
|
+
moreButtonInit = _ref.moreButtonInit,
|
|
74
|
+
ariaLabel = _ref['aria-label'],
|
|
75
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
76
|
+
var _useDynamicStyles = (0, _useDynamicStyles2["default"])(sx),
|
|
77
|
+
stylesInLine = _useDynamicStyles.stylesInLine,
|
|
78
|
+
dynamicPrefixClass = _useDynamicStyles.prefixClass;
|
|
98
79
|
var prefixClass = propPrefixClass || dynamicPrefixClass;
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
80
|
+
var _React$useState = _react["default"].useState(false),
|
|
81
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
82
|
+
isOpen = _React$useState2[0],
|
|
83
|
+
setIsOpen = _React$useState2[1];
|
|
84
|
+
var _React$useState3 = _react["default"].useState(false),
|
|
85
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
86
|
+
isClosing = _React$useState4[0],
|
|
87
|
+
setIsClosing = _React$useState4[1];
|
|
88
|
+
var _React$useState5 = _react["default"].useState(false),
|
|
89
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
90
|
+
isOpenRender = _React$useState6[0],
|
|
91
|
+
setIsOpenRender = _React$useState6[1];
|
|
92
|
+
var _useA11yGuard = (0, _useA11yGuard2.useA11yGuard)(),
|
|
93
|
+
requireAccessibleText = _useA11yGuard.requireAccessibleText;
|
|
94
|
+
requireAccessibleText(title || ariaLabel, {
|
|
95
|
+
component: 'DrawerPanel',
|
|
96
|
+
prop: '"title", "aria-label"',
|
|
97
|
+
hint: 'Un panel desplegable (dialog) debe contar con un título o etiqueta de accesibilidad para identificarse adecuadamente al abrirse.',
|
|
98
|
+
receivedProps: {
|
|
99
|
+
title: title,
|
|
100
|
+
ariaLabel: ariaLabel,
|
|
101
|
+
open: open,
|
|
102
|
+
id: id
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
var drawerRef = _react["default"].useRef(null);
|
|
106
|
+
var containerRef = _react["default"].useRef(null);
|
|
107
|
+
var fallbackId = (0, _useFallbackId["default"])('cbx-drawerPanel-id');
|
|
108
|
+
var drawerId = id || fallbackId;
|
|
109
|
+
var bodyId = "".concat(drawerId, "-body");
|
|
110
|
+
var titleId = "".concat(drawerId, "-title");
|
|
115
111
|
var closeDrawerPanel = function closeDrawerPanel(e) {
|
|
116
112
|
if (requestClose) {
|
|
117
113
|
requestClose(e);
|
|
118
114
|
}
|
|
119
115
|
};
|
|
120
|
-
|
|
116
|
+
var _useOverlay = (0, _useOverlay2["default"])({
|
|
117
|
+
open: open,
|
|
118
|
+
containerRef: containerRef,
|
|
119
|
+
contentRef: drawerRef,
|
|
120
|
+
onEscape: closeDrawerPanel
|
|
121
|
+
}),
|
|
122
|
+
handleKeyDown = _useOverlay.handleKeyDown;
|
|
121
123
|
var handleAccept = function handleAccept(e) {
|
|
122
124
|
if (acceptAction) {
|
|
123
125
|
acceptAction(e);
|
|
124
126
|
}
|
|
125
127
|
};
|
|
126
|
-
|
|
127
|
-
_react.default.useEffect(function () {
|
|
128
|
+
_react["default"].useEffect(function () {
|
|
128
129
|
var timeout;
|
|
129
|
-
|
|
130
130
|
if (open) {
|
|
131
131
|
setIsOpenRender(true);
|
|
132
132
|
timeout = setTimeout(function () {
|
|
@@ -140,42 +140,51 @@ var DrawerPanel = function DrawerPanel(_ref) {
|
|
|
140
140
|
setIsClosing(false);
|
|
141
141
|
}, 300);
|
|
142
142
|
}
|
|
143
|
-
|
|
144
143
|
return function () {
|
|
145
144
|
return clearTimeout(timeout);
|
|
146
145
|
};
|
|
147
146
|
}, [open]);
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
id:
|
|
147
|
+
return isOpenRender && /*#__PURE__*/(0, _reactDom.createPortal)(/*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
148
|
+
ref: containerRef,
|
|
149
|
+
id: drawerId,
|
|
151
150
|
className: prefixClass("".concat(classNameDialog, " cbx-drawerPanel-container")),
|
|
152
151
|
style: _objectSpread(_objectSpread(_objectSpread({}, styles), style), stylesInLine)
|
|
153
|
-
}, props), /*#__PURE__*/_react
|
|
152
|
+
}, props), /*#__PURE__*/_react["default"].createElement("div", {
|
|
153
|
+
ref: drawerRef,
|
|
154
|
+
role: "dialog",
|
|
155
|
+
"aria-modal": "true",
|
|
156
|
+
"aria-labelledby": title ? titleId : undefined,
|
|
157
|
+
"aria-describedby": bodyText ? bodyId : undefined,
|
|
158
|
+
tabIndex: -1,
|
|
159
|
+
onKeyDown: handleKeyDown,
|
|
154
160
|
className: "".concat(prefixClass('cbx-drawerPanel-block'), " ").concat(direction === 'left' ? prefixClass('cbx-drawerPanel-block-left') : '', " ").concat(isOpen && !isClosing ? prefixClass('cbx-drawerPanel-block-open') : ''),
|
|
155
161
|
style: {
|
|
156
162
|
width: isMobile || fullScreen ? '100%' : sizeContainer === 'SM' ? '40%' : '80%',
|
|
157
163
|
maxWidth: !isMobile && !fullScreen && '75rem'
|
|
158
164
|
}
|
|
159
|
-
}, /*#__PURE__*/_react
|
|
165
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
160
166
|
className: prefixClass('cbx-drawerPanel-header')
|
|
161
|
-
}, /*#__PURE__*/_react
|
|
167
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
162
168
|
className: prefixClass('cbx-drawerPanel-requestClose')
|
|
163
|
-
}, !!requestClose && /*#__PURE__*/_react
|
|
169
|
+
}, !!requestClose && /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
164
170
|
onClick: function onClick(e) {
|
|
165
171
|
return closeDrawerPanel(e);
|
|
166
172
|
},
|
|
167
|
-
icon: /*#__PURE__*/_react
|
|
173
|
+
icon: /*#__PURE__*/_react["default"].createElement("i", {
|
|
168
174
|
style: {
|
|
169
175
|
color: 'white',
|
|
170
176
|
fontSize: '1.71429rem'
|
|
171
177
|
},
|
|
178
|
+
"aria-hidden": "true",
|
|
172
179
|
className: 'ri-close-line'
|
|
173
180
|
}),
|
|
174
|
-
"aria-label": 'Close
|
|
181
|
+
"aria-label": ariaLabel || 'Close panel',
|
|
175
182
|
prefixClass: prefixClass
|
|
176
|
-
})), /*#__PURE__*/_react
|
|
183
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
177
184
|
className: prefixClass('cbx-drawerPanel-title')
|
|
178
|
-
}, !!title && /*#__PURE__*/_react
|
|
185
|
+
}, !!title && /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
186
|
+
id: titleId,
|
|
187
|
+
component: "h1",
|
|
179
188
|
variant: "M",
|
|
180
189
|
color: 'white',
|
|
181
190
|
className: prefixClass('cbx-drawerPanel-typography'),
|
|
@@ -184,7 +193,7 @@ var DrawerPanel = function DrawerPanel(_ref) {
|
|
|
184
193
|
fontSize: '1.125rem'
|
|
185
194
|
}, titleStyles),
|
|
186
195
|
prefixClass: prefixClass
|
|
187
|
-
}, title, !!subTitle && /*#__PURE__*/_react
|
|
196
|
+
}, title, !!subTitle && /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
188
197
|
variant: "M",
|
|
189
198
|
color: 'white',
|
|
190
199
|
styles: _objectSpread({
|
|
@@ -193,11 +202,11 @@ var DrawerPanel = function DrawerPanel(_ref) {
|
|
|
193
202
|
}, subTitleStyles),
|
|
194
203
|
component: 'span',
|
|
195
204
|
prefixClass: prefixClass
|
|
196
|
-
}, subTitle))), /*#__PURE__*/_react
|
|
205
|
+
}, subTitle))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
197
206
|
className: prefixClass('cbx-drawerPanel-buttonAccept')
|
|
198
|
-
}, moreButtonInit && /*#__PURE__*/_react
|
|
207
|
+
}, moreButtonInit && /*#__PURE__*/_react["default"].createElement("div", {
|
|
199
208
|
className: prefixClass('cbx-drawerPanel-moreButtonInit')
|
|
200
|
-
}, moreButtonInit), !hideAccept && !!buttonAccept && /*#__PURE__*/_react
|
|
209
|
+
}, moreButtonInit), !hideAccept && !!buttonAccept && /*#__PURE__*/_react["default"].createElement(_ButtonBasic["default"], _extends({
|
|
201
210
|
text: buttonAccept,
|
|
202
211
|
id: "".concat(id, "-button-accept"),
|
|
203
212
|
loading: loadingAction,
|
|
@@ -206,13 +215,13 @@ var DrawerPanel = function DrawerPanel(_ref) {
|
|
|
206
215
|
variant: 'secondaryDark',
|
|
207
216
|
endIcon: endIcon,
|
|
208
217
|
prefixClass: prefixClass
|
|
209
|
-
}, propsButton))), moreButton && /*#__PURE__*/_react
|
|
218
|
+
}, propsButton))), moreButton && /*#__PURE__*/_react["default"].createElement("div", {
|
|
210
219
|
className: prefixClass('cbx-drawerPanel-moreButton')
|
|
211
|
-
}, moreButton)), /*#__PURE__*/_react
|
|
220
|
+
}, moreButton)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
212
221
|
className: prefixClass('cbx-drawerPanel-tabs-container')
|
|
213
|
-
}, tabs.length > 0 && /*#__PURE__*/_react
|
|
222
|
+
}, tabs.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
214
223
|
className: prefixClass(isMobile ? 'cbx-drawerPanel-tabs-block-mobile' : 'cbx-drawerPanel-tabs-block')
|
|
215
|
-
}, /*#__PURE__*/_react
|
|
224
|
+
}, /*#__PURE__*/_react["default"].createElement(_Tabs["default"], {
|
|
216
225
|
onChange: function onChange(index, e) {
|
|
217
226
|
return _onChange(e, index);
|
|
218
227
|
},
|
|
@@ -223,44 +232,46 @@ var DrawerPanel = function DrawerPanel(_ref) {
|
|
|
223
232
|
variant: variantTabs || 'scrollable',
|
|
224
233
|
indicatorColor: "secondary",
|
|
225
234
|
prefixClass: prefixClass
|
|
226
|
-
}))), /*#__PURE__*/_react
|
|
235
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
236
|
+
id: bodyText ? bodyId : undefined,
|
|
227
237
|
className: prefixClass('cbx-drawerPanel-tabs-bodyText'),
|
|
228
238
|
style: _objectSpread({}, bodyStyle)
|
|
229
|
-
}, bodyText)), /*#__PURE__*/_react
|
|
239
|
+
}, bodyText)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
240
|
+
role: "presentation",
|
|
230
241
|
className: "".concat(prefixClass('cbx-drawerPanel-backdrop'), " ").concat(isOpen && !isClosing ? prefixClass('cbx-drawerPanel-backdrop-open') : ''),
|
|
231
242
|
onClick: function onClick(e) {
|
|
232
243
|
if (!disableBackdropClick) {
|
|
233
244
|
closeDrawerPanel(e);
|
|
234
245
|
}
|
|
235
|
-
}
|
|
246
|
+
},
|
|
247
|
+
"aria-hidden": "true"
|
|
236
248
|
})), document.body);
|
|
237
249
|
};
|
|
238
|
-
|
|
239
250
|
DrawerPanel.propTypes = {
|
|
240
|
-
open: _propTypes
|
|
241
|
-
title: _propTypes
|
|
242
|
-
id: _propTypes
|
|
243
|
-
fullScreen: _propTypes
|
|
244
|
-
sizeContainer: _propTypes
|
|
245
|
-
buttonAccept: _propTypes
|
|
246
|
-
successAction: _propTypes
|
|
247
|
-
requestClose: _propTypes
|
|
248
|
-
loadingAction: _propTypes
|
|
249
|
-
acceptAction: _propTypes
|
|
250
|
-
bodyText: _propTypes
|
|
251
|
-
bodyStyle: _propTypes
|
|
252
|
-
hideAccept: _propTypes
|
|
253
|
-
classNameDialog: _propTypes
|
|
254
|
-
PaperProps: _propTypes
|
|
255
|
-
widthModal: _propTypes
|
|
256
|
-
isMobile: _propTypes
|
|
257
|
-
tabs: _propTypes
|
|
258
|
-
onChange: _propTypes
|
|
259
|
-
titleStyles: _propTypes
|
|
251
|
+
open: _propTypes["default"].bool,
|
|
252
|
+
title: _propTypes["default"].string,
|
|
253
|
+
id: _propTypes["default"].string,
|
|
254
|
+
fullScreen: _propTypes["default"].bool,
|
|
255
|
+
sizeContainer: _propTypes["default"].string,
|
|
256
|
+
buttonAccept: _propTypes["default"].string,
|
|
257
|
+
successAction: _propTypes["default"].bool,
|
|
258
|
+
requestClose: _propTypes["default"].func,
|
|
259
|
+
loadingAction: _propTypes["default"].bool,
|
|
260
|
+
acceptAction: _propTypes["default"].func,
|
|
261
|
+
bodyText: _propTypes["default"].any,
|
|
262
|
+
bodyStyle: _propTypes["default"].object,
|
|
263
|
+
hideAccept: _propTypes["default"].bool,
|
|
264
|
+
classNameDialog: _propTypes["default"].string,
|
|
265
|
+
PaperProps: _propTypes["default"].object,
|
|
266
|
+
widthModal: _propTypes["default"].object,
|
|
267
|
+
isMobile: _propTypes["default"].bool,
|
|
268
|
+
tabs: _propTypes["default"].array,
|
|
269
|
+
onChange: _propTypes["default"].func,
|
|
270
|
+
titleStyles: _propTypes["default"].object
|
|
260
271
|
};
|
|
261
272
|
DrawerPanel.defaultProps = {
|
|
262
273
|
open: true,
|
|
263
|
-
title: '
|
|
274
|
+
title: '',
|
|
264
275
|
id: '',
|
|
265
276
|
fullScreen: false,
|
|
266
277
|
sizeContainer: '',
|
|
@@ -281,4 +292,4 @@ DrawerPanel.defaultProps = {
|
|
|
281
292
|
titleStyles: undefined
|
|
282
293
|
};
|
|
283
294
|
var _default = DrawerPanel;
|
|
284
|
-
exports
|
|
295
|
+
exports["default"] = _default;
|
|
@@ -3,19 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
6
|
+
exports["default"] = exports.DesignDrawerPanelTemplate = void 0;
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _DrawerPanel = _interopRequireDefault(require("./DrawerPanel"));
|
|
11
|
-
|
|
12
9
|
var _DesignDrawerPanel = _interopRequireDefault(require("./DesignDrawerPanel"));
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
16
11
|
var _default = {
|
|
17
12
|
title: 'Components/DrawerPanel',
|
|
18
|
-
component: _DrawerPanel
|
|
13
|
+
component: _DrawerPanel["default"],
|
|
19
14
|
argTypes: {
|
|
20
15
|
sizeContainer: {
|
|
21
16
|
options: ['LG', 'SM'],
|
|
@@ -25,6 +20,11 @@ var _default = {
|
|
|
25
20
|
}
|
|
26
21
|
},
|
|
27
22
|
parameters: {
|
|
23
|
+
docs: {
|
|
24
|
+
description: {
|
|
25
|
+
component: "\n## DrawerPanel\n\nComponente de panel emergente o deslizante que despliega contenido superpuesto a la interfaz mediante un portal en el DOM. Soporta pesta\xF1as internas, acciones principales y gesti\xF3n del foco de navegaci\xF3n.\n\nEl componente implementa el patr\xF3n modal WAI-ARIA para asegurar una experiencia accesible mediante teclado y lectores de pantalla.\n\n## Accesibilidad\n\n### Estructura sem\xE1ntica y rol de di\xE1logo\n\n- El contenedor modal asigna expl\xEDcitamente el rol `role=\"dialog\"` y la propiedad `aria-modal=\"true\"`.\n- Informa a las tecnolog\xEDas de asistencia que el foco de interacci\xF3n queda confinado dentro del panel mientras permanece abierto.\n- La ventana se renderiza din\xE1micamente mediante un portal (`createPortal`) al final de `document.body` para evitar interferencias de orden en el \xE1rbol DOM.\n\n### Nombre accesible y descripci\xF3n\n\n- **T\xEDtulo del panel (`aria-labelledby`)**:\n - Si se proporciona un valor en la propiedad `title`, el contenedor del di\xE1logo se vincula autom\xE1ticamente mediante `aria-labelledby` con el identificador \xFAnico del elemento de t\xEDtulo (`titleId`).\n- **Descripci\xF3n del contenido (`aria-describedby`)**:\n - Si existe un texto principal en `bodyText`, el panel asocia su contenido mediante `aria-describedby` con el identificador del bloque del cuerpo (`bodyId`).\n\n### Control de accesibilidad mediante `useA11yGuard`\n\n- Integra la guardia `useA11yGuard` para garantizar que el panel no carezca de nombre accesible.\n- Exige la presencia obligatoria de `title` o de un atributo de accesibilidad expl\xEDcito (`aria-label` o `aria-labelledby`).\n- En caso de no incluir una etiqueta identificativa, la guardia lanza una excepci\xF3n descriptiva en modo desarrollo.\n\n### Gesti\xF3n del foco y navegaci\xF3n por teclado (`useOverlay`)\n\n- El gancho personalizado `useOverlay` gestiona el comportamiento de interacci\xF3n mientras el panel est\xE1 activo:\n - Captura y asigna el foco al contenedor del di\xE1logo al abrirse (`tabIndex={-1}`).\n - Permite cerrar el panel de forma accesible al presionar la tecla **Escape** (invocando la funci\xF3n `requestClose`).\n\n### Controles internos e iconograf\xEDa\n\n- **Bot\xF3n de cierre**:\n - Renderiza un bot\xF3n interactivo (`IconButton`) marcado expl\xEDcitamente con su etiqueta accesible mediante `aria-label` (por defecto con valor din\xE1mico desde `ariaLabel` o el texto fallback \"Close panel\").\n - El icono visual de cierre incluye el atributo `aria-hidden=\"true\"` para evitar redundancias.\n- **Fondo oscuro (*Backdrop*)**:\n - El elemento visual de fondo posee el rol interpretativo `role=\"presentation\"` y el atributo `aria-hidden=\"true\"`, excluy\xE9ndolo del \xE1rbol accesible.\n\n## Recomendaciones de uso\n\n- Proporcionar siempre un t\xEDtulo claro e identificativo en la propiedad `title`. En caso de paneles puramente visuales sin encabezado, proporcionar obligatoriamente un atributo `aria-label`.\n- Asegurar que todo el contenido interactivo situado dentro del `bodyText` mantenga un orden l\xF3gico de tabulaci\xF3n.\n- Verificar que la acci\xF3n desencadenada al presionar la tecla **Escape** o el bot\xF3n de cierre devuelva el foco de navegaci\xF3n al elemento que origin\xF3 la apertura del panel.\n\n## Consideraciones\n\nEl componente gestiona internamente la captura de eventos de teclado, la asociaci\xF3n sem\xE1ntica del t\xEDtulo y la inclusi\xF3n del marcado ARIA del modal.\nNo es necesario a\xF1adir atributos de di\xE1logo adicionales salvo personalizaciones espec\xEDficas en los elementos hijos contenidos dentro del panel.\n\t\t\t"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
28
|
storybookCodePanel: {
|
|
29
29
|
disabled: false,
|
|
30
30
|
files: [{
|
|
@@ -39,12 +39,10 @@ var _default = {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
-
exports
|
|
43
|
-
|
|
42
|
+
exports["default"] = _default;
|
|
44
43
|
var TemplateDrawerPanel = function TemplateDrawerPanel(args) {
|
|
45
|
-
return /*#__PURE__*/_react
|
|
44
|
+
return /*#__PURE__*/_react["default"].createElement(_DesignDrawerPanel["default"], args);
|
|
46
45
|
};
|
|
47
|
-
|
|
48
46
|
TemplateDrawerPanel.displayName = "TemplateDrawerPanel";
|
|
49
47
|
var DesignDrawerPanelTemplate = TemplateDrawerPanel.bind({});
|
|
50
48
|
exports.DesignDrawerPanelTemplate = DesignDrawerPanelTemplate;
|