empower-container 0.1.24 → 0.1.27
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/MenuBar.js +9 -9
- package/dist/esm/MenuBar.js +9 -9
- package/dist/scss/elements/_button.scss +11 -1
- package/dist/scss/elements/_popover.scss +164 -1
- package/dist/scss/library/_information.scss +9 -0
- package/dist/scss/library/_menubar.scss +3 -2
- package/dist/scss/library/_select.scss +131 -151
- package/package.json +3 -1
package/dist/cjs/MenuBar.js
CHANGED
@@ -458,27 +458,27 @@ var MenuBar = function (_a) {
|
|
458
458
|
// Additional title on the modal
|
459
459
|
config && config.addedTitle ? ((0, jsx_runtime_1.jsx)("p", { children: config.addedTitle })) : null] })), (0, jsx_runtime_1.jsxs)("div", __assign({ className: "em-beltleft-cta" }, { children: [
|
460
460
|
// Main Button
|
461
|
-
mainButton && mainButton.show ? (mainButton.actions && mainButton.actions.constructor === Array && mainButton.actions.length > 0 ? ((0, jsx_runtime_1.jsx)(react_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: "em-dropdown" }, { children: [(0, jsx_runtime_1.jsxs)("a", __assign({ className: "em-button
|
461
|
+
mainButton && mainButton.show ? (mainButton.actions && mainButton.actions.constructor === Array && mainButton.actions.length > 0 ? ((0, jsx_runtime_1.jsx)(react_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: "em-dropdown" }, { children: [(0, jsx_runtime_1.jsxs)("a", __assign({ className: "em-button", id: "main-button", href: "#", onClick: function (event) { return popoverRequestHandler(event, 'main-button'); } }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: "belt-icon" }, { children: mainButton.icon ? mainButton.icon : '' })), (0, jsx_runtime_1.jsx)("span", { children: mainButton.label ? mainButton.label : 'File a Request' })] })), (0, jsx_runtime_1.jsx)(Select_1.Popover, __assign({ id: "mainButtonPopover", open: Boolean(mainButtonPopover), onClick: function (event) { return popoverRequestHandler(event, 'main-button'); }, className: Boolean(dropdownPopover) ? 'open-popover' : '' }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: "em-popover-list" }, { children: mainButton.actions.map(function (btn, idx) {
|
462
462
|
return (0, jsx_runtime_1.jsx)("a", __assign({ href: "#", onClick: function (event) { return actionRequestHandler(event, 'main-button', btn.action); } }, { children: btn.label }), idx);
|
463
463
|
}) })) }))] })) })) : mainButton.actions && mainButton.actions.constructor === Array && mainButton.actions.length === 1 ? (mainButton.actions.map(function (btn, idx) {
|
464
|
-
return ((0, jsx_runtime_1.jsxs)("a", __assign({ className: btn.class ? '
|
464
|
+
return ((0, jsx_runtime_1.jsxs)("a", __assign({ className: btn.class ? 'em-button ' + btn.class : 'em-button', href: "#", onClick: function (event) { return actionRequestHandler(event, 'main-button', btn.action); } }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: "belt-icon " }, { children: btn.icon ? btn.icon : '' })), (0, jsx_runtime_1.jsx)("span", { children: btn.label ? btn.label : '' })] }), idx));
|
465
465
|
})) : null) : null,
|
466
466
|
// Button Actions Configuration
|
467
467
|
button && button.show && button.show.constructor === Boolean &&
|
468
468
|
button.actions && button.actions.constructor === Array && button.actions.length > 0 ? (button.actions.map(function (btn, idx) {
|
469
|
-
return ((0, jsx_runtime_1.jsxs)("a", __assign({ className: btn.class ? btn.class : '
|
469
|
+
return ((0, jsx_runtime_1.jsxs)("a", __assign({ className: btn.class ? btn.class : ' em-button' + ' ' + (idx === 0 ? 'is-primary' : ''), href: "#", onClick: function (event) { return actionRequestHandler(event, 'button', btn.action); }, "data-testid": "menubar-button" }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: "belt-icon belt-buttons" }, { children: btn.icon ? btn.icon : '' })), (0, jsx_runtime_1.jsx)("span", __assign({ "data-testid": 'button-action-' + btn.action }, { children: btn.label ? btn.label : '' }))] }), idx));
|
470
470
|
})) : null,
|
471
471
|
// UndoButton Actions Configuration
|
472
472
|
undoButton && undoButton.show && !undoButton.isFooter &&
|
473
473
|
undoButton.actions && undoButton.actions.constructor === Array && undoButton.actions.length > 0 ? (undoButton.actions.map(function (btn, idx) {
|
474
|
-
return seconds > 0 || (btn.timer !== undefined) ? ((0, jsx_runtime_1.jsxs)("a", __assign({ className: btn.class ? btn.class : '
|
474
|
+
return seconds > 0 || (btn.timer !== undefined) ? ((0, jsx_runtime_1.jsxs)("a", __assign({ className: btn.class ? btn.class : 'em-button' + ' ' + (idx === 0 ? 'is-primary' : '') + (btn.disabled === true ? ' is-disabled' : ' em-button outline button-undo'), href: "#", "data-testid": "undo-button-".concat(btn.action) }, (btn.disabled === true ? { onClick: function (event) { event.preventDefault(); } } : { onClick: function (event) { return actionRequestHandler(event, 'undo-button', btn.action); } }), { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: "belt-icon" }, { children: btn.icon ? btn.icon : '' })), (0, jsx_runtime_1.jsx)("span", __assign({ "data-testid": "undo-button-text" }, { children: btn.label ? ("".concat(btn.label, " ").concat(btn.timer !== undefined && btn.timer.constructor === Number && seconds > 0 ? ("in ".concat(seconds, "s")) : '')) : '' }))] }), idx)) : null;
|
475
475
|
})) : null] }))] })), (0, jsx_runtime_1.jsxs)("div", __assign({ className: "em-belt-right" }, { children: [
|
476
476
|
// Dropdown Actions Configuration
|
477
|
-
dropdown && dropdown.show && dropdown.show.constructor === Boolean ? ((0, jsx_runtime_1.jsx)(react_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: "em-dropdown" }, { children: [dropdown.type === 'list' ? ((0, jsx_runtime_1.jsxs)("a", __assign({ className: "belt-dropdown", id: "add", href: "#", onClick: function (event) { return popoverRequestHandler(event, 'dropdown'); } }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: "icon-add" }, { children: dropdown.icon ? dropdown.icon : '' })), (0, jsx_runtime_1.jsx)("span", { children: dropdownTitle })] }))) : dropdown.type === 'date-picker-weekly' ? ((0, jsx_runtime_1.jsxs)("a", __assign({ id: "months", className: "belt-dropdown ".concat(Boolean(dropdownPopover) ? 'is-active' : ''), href: "#", onClick: function (event) { return popoverRequestHandler(event, 'dropdown'); } }, { children: [(0, jsx_runtime_1.jsx)("span", { children: dropdownTitle }), (0, jsx_runtime_1.jsx)("div", __assign({ className: "icon-arrowdown" }, { children: Asset_1.SVG_ARROWDOWN }))] }))) : dropdown.type === 'date-picker-monthly' ? ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("a", __assign({ id: "months", className: "belt-dropdown ".concat(Boolean(dropdownPopover) ? 'is-active' : ''), href: "#", onClick: function (event) { return popoverRequestHandler(event, 'dropdown'); } }, { children: [(0, jsx_runtime_1.jsx)("span", { children: dropdownTitle }), (0, jsx_runtime_1.jsx)("div", __assign({ className: "icon-arrowdown" }, { children: Asset_1.SVG_ARROWDOWN }))] })), dropdown.showPagination ? ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("a", __assign({ className: 'belt-prev' + isDisabledDropdownPagination('prev'), href: "#", onClick: function (event) { return dateMonthlyPickerHandler(event, 'prev-month'); } }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: "belt-icon" }, { children: Asset_1.SVG_ARROWLEFT })) })), (0, jsx_runtime_1.jsx)("a", __assign({ className: 'belt-next' + isDisabledDropdownPagination('next'), href: "#", onClick: function (event) { return dateMonthlyPickerHandler(event, 'next-month'); } }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: "belt-icon" }, { children: Asset_1.SVG_ARROWRIGHT })) }))] })) : null] })) : dropdown.type === 'date-picker-cutoff' ? (((0, jsx_runtime_1.jsx)("a", __assign({ className: "belt-dropdown", id: "add", href: "#", onClick: function (event) { return popoverRequestHandler(event, 'dropdown'); } }, { children: (0, jsx_runtime_1.jsx)("span", { children: dropdown.cutoffValue && dropdown.cutoffValue.label ? dropdown.cutoffValue.label : '' }) })))) : dropdown.type === 'button' ? ((0, jsx_runtime_1.jsxs)("a", __assign({ className: "belt-dropdown", id: "add", href: "#", onClick: function (event) { return actionRequestHandler(event, 'button', dropdown.action); } }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: "belt-icon" }, { children: dropdown.icon ? dropdown.icon : '' })), (0, jsx_runtime_1.jsx)("span", { children: dropdownTitle })] }))) : ((0, jsx_runtime_1.jsx)("a", __assign({ className: "belt-dropdown", id: "add", href: "#", onClick: function (event) { return popoverRequestHandler(event, 'dropdown'); } }, { children: (0, jsx_runtime_1.jsx)("span", { children: dropdownTitle }) }))), (0, jsx_runtime_1.jsx)(Select_1.Popover, __assign({ id: "dropdownPopover", className: Boolean(dropdownPopover) ? 'open-popover' : '', open: Boolean(dropdownPopover), onClick: function (event) { return popoverRequestHandler(event, 'dropdown'); } }, { children: dropdown.type === 'list' ? (dropdown.actions && dropdown.actions.constructor === Array && dropdown.actions.length > 0 ? ((0, jsx_runtime_1.jsx)("div", __assign({ className: "
|
477
|
+
dropdown && dropdown.show && dropdown.show.constructor === Boolean ? ((0, jsx_runtime_1.jsx)(react_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: "em-dropdown" }, { children: [dropdown.type === 'list' ? ((0, jsx_runtime_1.jsxs)("a", __assign({ className: "belt-dropdown", id: "add", href: "#", onClick: function (event) { return popoverRequestHandler(event, 'dropdown'); } }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: "icon-add" }, { children: dropdown.icon ? dropdown.icon : '' })), (0, jsx_runtime_1.jsx)("span", { children: dropdownTitle })] }))) : dropdown.type === 'date-picker-weekly' ? ((0, jsx_runtime_1.jsxs)("a", __assign({ id: "months", className: "belt-dropdown ".concat(Boolean(dropdownPopover) ? 'is-active' : ''), href: "#", onClick: function (event) { return popoverRequestHandler(event, 'dropdown'); } }, { children: [(0, jsx_runtime_1.jsx)("span", { children: dropdownTitle }), (0, jsx_runtime_1.jsx)("div", __assign({ className: "icon-arrowdown" }, { children: Asset_1.SVG_ARROWDOWN }))] }))) : dropdown.type === 'date-picker-monthly' ? ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("a", __assign({ id: "months", className: "belt-dropdown ".concat(Boolean(dropdownPopover) ? 'is-active' : ''), href: "#", onClick: function (event) { return popoverRequestHandler(event, 'dropdown'); } }, { children: [(0, jsx_runtime_1.jsx)("span", { children: dropdownTitle }), (0, jsx_runtime_1.jsx)("div", __assign({ className: "icon-arrowdown" }, { children: Asset_1.SVG_ARROWDOWN }))] })), dropdown.showPagination ? ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("a", __assign({ className: 'belt-prev' + isDisabledDropdownPagination('prev'), href: "#", onClick: function (event) { return dateMonthlyPickerHandler(event, 'prev-month'); } }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: "belt-icon" }, { children: Asset_1.SVG_ARROWLEFT })) })), (0, jsx_runtime_1.jsx)("a", __assign({ className: 'belt-next' + isDisabledDropdownPagination('next'), href: "#", onClick: function (event) { return dateMonthlyPickerHandler(event, 'next-month'); } }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: "belt-icon" }, { children: Asset_1.SVG_ARROWRIGHT })) }))] })) : null] })) : dropdown.type === 'date-picker-cutoff' ? (((0, jsx_runtime_1.jsx)("a", __assign({ className: "belt-dropdown", id: "add", href: "#", onClick: function (event) { return popoverRequestHandler(event, 'dropdown'); } }, { children: (0, jsx_runtime_1.jsx)("span", { children: dropdown.cutoffValue && dropdown.cutoffValue.label ? dropdown.cutoffValue.label : '' }) })))) : dropdown.type === 'button' ? ((0, jsx_runtime_1.jsxs)("a", __assign({ className: "belt-dropdown", id: "add", href: "#", onClick: function (event) { return actionRequestHandler(event, 'button', dropdown.action); } }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: "belt-icon" }, { children: dropdown.icon ? dropdown.icon : '' })), (0, jsx_runtime_1.jsx)("span", { children: dropdownTitle })] }))) : ((0, jsx_runtime_1.jsx)("a", __assign({ className: "belt-dropdown", id: "add", href: "#", onClick: function (event) { return popoverRequestHandler(event, 'dropdown'); } }, { children: (0, jsx_runtime_1.jsx)("span", { children: dropdownTitle }) }))), (0, jsx_runtime_1.jsx)(Select_1.Popover, __assign({ id: "dropdownPopover", className: Boolean(dropdownPopover) ? 'open-popover' : '', open: Boolean(dropdownPopover), onClick: function (event) { return popoverRequestHandler(event, 'dropdown'); } }, { children: dropdown.type === 'list' ? (dropdown.actions && dropdown.actions.constructor === Array && dropdown.actions.length > 0 ? ((0, jsx_runtime_1.jsx)("div", __assign({ className: "em-popover-list" }, { children: dropdown.actions.map(function (drpdwn, idx) {
|
478
478
|
return (0, jsx_runtime_1.jsx)("a", __assign({ href: "#", onClick: function (event) { return actionRequestHandler(event, 'dropdown', drpdwn.value); } }, { children: drpdwn.label }), idx);
|
479
|
-
}) }))) : null) : dropdown.type === 'date-picker-weekly' ? ((0, jsx_runtime_1.jsx)("div", __assign({ className: "
|
479
|
+
}) }))) : null) : dropdown.type === 'date-picker-weekly' ? ((0, jsx_runtime_1.jsx)("div", __assign({ className: "em-datepicker-weekly" }, { children: (0, jsx_runtime_1.jsx)(react_date_range_1.Calendar, { className: "dateRangePickerInput", onChange: function (event) { return onDatePickerChange(event, 'dropdown'); } }) }))) : dropdown.type === 'date-picker-monthly' ? ((0, jsx_runtime_1.jsxs)("div", __assign({ className: "em-popover-months" }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: "list-years" }, { children: [(0, jsx_runtime_1.jsx)("button", __assign({ onClick: function (event) { return dateMonthlyPickerHandler(event, 'prev'); } }, { children: Asset_1.SVG_ARROWLEFT })), (0, jsx_runtime_1.jsx)("div", { children: calendarYear }), (0, jsx_runtime_1.jsx)("button", __assign({ onClick: function (event) { return dateMonthlyPickerHandler(event, 'next'); } }, { children: Asset_1.SVG_ARROWRIGHT }))] })), (0, jsx_runtime_1.jsx)("div", __assign({ className: "list-months" }, { children: Constant_1.MONTH_LIST.map(function (action, idx) {
|
480
480
|
return dropdown.minYear && dropdown.minYear.toString() === calendarYear.toString() && minMonthIdx && minMonthIdx > idx ? ((0, jsx_runtime_1.jsx)("a", __assign({ href: "#", className: 'is-disabled', onClick: function (event) { event.preventDefault(); } }, { children: action.label }), idx)) : dropdown.maxYear && dropdown.maxYear.toString() === calendarYear.toString() && maxMonthIdx && maxMonthIdx < idx ? ((0, jsx_runtime_1.jsx)("a", __assign({ href: "#", className: 'is-disabled', onClick: function (event) { event.preventDefault(); } }, { children: action.label }), idx)) : ((0, jsx_runtime_1.jsx)("a", __assign({ className: dateMonthlyPickerIsSelected(action.label) ? 'is-selected' : '', href: "#", onClick: function (event) { return dateMonthlyPickerHandler(event, 'month-selection', action.value); } }, { children: action.label }), idx));
|
481
|
-
}) }))] }))) : dropdown.type === 'date-picker-cutoff' ? ((0, jsx_runtime_1.jsxs)("div", __assign({ className: "
|
481
|
+
}) }))] }))) : dropdown.type === 'date-picker-cutoff' ? ((0, jsx_runtime_1.jsxs)("div", __assign({ className: "em-popover-months" }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: "list-years" }, { children: [(0, jsx_runtime_1.jsx)("button", __assign({ onClick: function (event) { return dateMonthlyPickerHandler(event, 'prev'); } }, { children: (0, jsx_runtime_1.jsx)("img", { src: "/images/icons/icon-arrowleft-white.svg", alt: "" }) })), (0, jsx_runtime_1.jsx)("div", { children: calendarYear }), (0, jsx_runtime_1.jsx)("button", __assign({ onClick: function (event) { return dateMonthlyPickerHandler(event, 'next'); } }, { children: (0, jsx_runtime_1.jsx)("img", { src: "/images/icons/icon-arrowright-white.svg", alt: "" }) }))] })), (0, jsx_runtime_1.jsx)("div", __assign({ className: "list-months" }, { children: dropdown.cutoffDates !== null && dropdown.cutoffDates.length > 0 ? (dropdown.cutoffDates.map(function (action, idx) {
|
482
482
|
var classSelect;
|
483
483
|
if (JSON.stringify(action.label) === JSON.stringify(dropdown.cutoffValue.label)) {
|
484
484
|
if (dropdown.currentYear === calendarYear) {
|
@@ -497,7 +497,7 @@ var MenuBar = function (_a) {
|
|
497
497
|
+ ' - ' +
|
498
498
|
(pagination.page * pagination.perPage > pagination.total ?
|
499
499
|
(pagination.total ? pagination.total : pagination.counter) :
|
500
|
-
pagination.page * pagination.perPage), " of ", pagination.total ? pagination.total : 0] })), (0, jsx_runtime_1.jsx)(Select_1.Popover, __assign({ id: "paginationSummaryPopover", className: Boolean(dropdownPopover) ? 'open-popover' : '', open: Boolean(paginationSummaryPopover), onClick: function (event) { return popoverRequestHandler(event, 'pagination-summary'); } }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: "
|
500
|
+
pagination.page * pagination.perPage), " of ", pagination.total ? pagination.total : 0] })), (0, jsx_runtime_1.jsx)(Select_1.Popover, __assign({ id: "paginationSummaryPopover", className: Boolean(dropdownPopover) ? 'open-popover' : '', open: Boolean(paginationSummaryPopover), onClick: function (event) { return popoverRequestHandler(event, 'pagination-summary'); } }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: "em-popover-input" }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: 'e-field field field-input' + (paginationSummaryFormError.indexOf('perPageTemporaryValue') >= 0 ? ' is-invalid' : '') }, { children: [(0, jsx_runtime_1.jsx)("label", __assign({ className: 'e-input-label' }, { children: "SHOW" })), (0, jsx_runtime_1.jsx)(InputSelectionHandler_1.default, { config: {
|
501
501
|
id: 'paginationPerPage',
|
502
502
|
type: 'select',
|
503
503
|
placeholder: '-',
|
@@ -513,7 +513,7 @@ var MenuBar = function (_a) {
|
|
513
513
|
}, onChanged: function (event) { return handleChangeFormValue(event, 'go-to-page'); } }) }))] })), (0, jsx_runtime_1.jsx)("button", __assign({ className: "button-check", onClick: function (event) { return paginationRequestHandler(event, 'submit'); } }, { children: Asset_1.SVG_CHECK }))] })) }))] })) })) : null, (0, jsx_runtime_1.jsx)("a", __assign({ className: (pagination.page * pagination.perPage) > pagination.perPage ? 'belt-prev' : 'belt-prev is-disabled', href: "#" }, (((pagination.page * pagination.perPage) > pagination.perPage) ? { onClick: function (event) { return paginationRequestHandler(event, 'prev'); } } : { onClick: function (event) { event.preventDefault(); } }), { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: "belt-icon" }, { children: Asset_1.SVG_ARROWLEFT })) })), (0, jsx_runtime_1.jsx)("a", __assign({ className: pagination.total <= (pagination.page * pagination.perPage) ? 'belt-next is-disabled' : 'belt-next', href: "#" }, ((pagination.total <= (pagination.page * pagination.perPage)) ? { onClick: function (event) { event.preventDefault(); } } : { onClick: function (event) { return paginationRequestHandler(event, 'next'); } }), { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: "belt-icon" }, { children: Asset_1.SVG_ARROWRIGHT })) }))] })) : null,
|
514
514
|
// Pivot Configuration
|
515
515
|
pivot && pivot.show ? ((0, jsx_runtime_1.jsx)(react_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: "em-dropdown" }, { children: [(0, jsx_runtime_1.jsxs)("a", __assign({ id: "months", className: "belt-dropdown ", href: "#", onClick: function (event) { return popoverRequestHandler(event, 'pivot'); }, "data-testid": "menubar-pivot" }, { children: [(0, jsx_runtime_1.jsx)("span", { children: pivot.selected && pivot.actions &&
|
516
|
-
pivot.actions.constructor === Array && pivot.actions.length > 0 ? (pivot.actions.filter(function (item) { return (item.value === pivot.selected); }).length > 0 ? (pivot.actions.filter(function (item) { return (item.value === pivot.selected); })[0].label) : 'None') : 'None' }), (0, jsx_runtime_1.jsx)("div", __assign({ className: "icon-arrowdown" }, { children: Asset_1.SVG_ARROWDOWN }))] })), (0, jsx_runtime_1.jsx)(Select_1.Popover, __assign({ id: "pivotPopover", className: Boolean(dropdownPopover) ? 'open-popover' : '', open: Boolean(pivotPopover), onClick: function (event) { return popoverRequestHandler(event, 'pivot'); } }, { children: pivot.actions && pivot.actions.constructor === Array && pivot.actions.length > 0 ? ((0, jsx_runtime_1.jsx)("div", __assign({ className: "
|
516
|
+
pivot.actions.constructor === Array && pivot.actions.length > 0 ? (pivot.actions.filter(function (item) { return (item.value === pivot.selected); }).length > 0 ? (pivot.actions.filter(function (item) { return (item.value === pivot.selected); })[0].label) : 'None') : 'None' }), (0, jsx_runtime_1.jsx)("div", __assign({ className: "icon-arrowdown" }, { children: Asset_1.SVG_ARROWDOWN }))] })), (0, jsx_runtime_1.jsx)(Select_1.Popover, __assign({ id: "pivotPopover", className: Boolean(dropdownPopover) ? 'open-popover' : '', open: Boolean(pivotPopover), onClick: function (event) { return popoverRequestHandler(event, 'pivot'); } }, { children: pivot.actions && pivot.actions.constructor === Array && pivot.actions.length > 0 ? ((0, jsx_runtime_1.jsx)("div", __assign({ className: "em-popover-list" }, { children: pivot.actions.map(function (pvt, idx) {
|
517
517
|
return (0, jsx_runtime_1.jsx)("a", __assign({ href: "#", onClick: function (event) { return actionRequestHandler(event, 'pivot', pvt.value); } }, { children: pvt.label }), idx);
|
518
518
|
}) }))) : null }))] })) })) : null,
|
519
519
|
// Close Icon Configuration
|
package/dist/esm/MenuBar.js
CHANGED
@@ -453,27 +453,27 @@ var MenuBar = function (_a) {
|
|
453
453
|
// Additional title on the modal
|
454
454
|
config && config.addedTitle ? (_jsx("p", { children: config.addedTitle })) : null] })), _jsxs("div", __assign({ className: "em-beltleft-cta" }, { children: [
|
455
455
|
// Main Button
|
456
|
-
mainButton && mainButton.show ? (mainButton.actions && mainButton.actions.constructor === Array && mainButton.actions.length > 0 ? (_jsx(Fragment, { children: _jsxs("div", __assign({ className: "em-dropdown" }, { children: [_jsxs("a", __assign({ className: "em-button
|
456
|
+
mainButton && mainButton.show ? (mainButton.actions && mainButton.actions.constructor === Array && mainButton.actions.length > 0 ? (_jsx(Fragment, { children: _jsxs("div", __assign({ className: "em-dropdown" }, { children: [_jsxs("a", __assign({ className: "em-button", id: "main-button", href: "#", onClick: function (event) { return popoverRequestHandler(event, 'main-button'); } }, { children: [_jsx("div", __assign({ className: "belt-icon" }, { children: mainButton.icon ? mainButton.icon : '' })), _jsx("span", { children: mainButton.label ? mainButton.label : 'File a Request' })] })), _jsx(Popover, __assign({ id: "mainButtonPopover", open: Boolean(mainButtonPopover), onClick: function (event) { return popoverRequestHandler(event, 'main-button'); }, className: Boolean(dropdownPopover) ? 'open-popover' : '' }, { children: _jsx("div", __assign({ className: "em-popover-list" }, { children: mainButton.actions.map(function (btn, idx) {
|
457
457
|
return _jsx("a", __assign({ href: "#", onClick: function (event) { return actionRequestHandler(event, 'main-button', btn.action); } }, { children: btn.label }), idx);
|
458
458
|
}) })) }))] })) })) : mainButton.actions && mainButton.actions.constructor === Array && mainButton.actions.length === 1 ? (mainButton.actions.map(function (btn, idx) {
|
459
|
-
return (_jsxs("a", __assign({ className: btn.class ? '
|
459
|
+
return (_jsxs("a", __assign({ className: btn.class ? 'em-button ' + btn.class : 'em-button', href: "#", onClick: function (event) { return actionRequestHandler(event, 'main-button', btn.action); } }, { children: [_jsx("div", __assign({ className: "belt-icon " }, { children: btn.icon ? btn.icon : '' })), _jsx("span", { children: btn.label ? btn.label : '' })] }), idx));
|
460
460
|
})) : null) : null,
|
461
461
|
// Button Actions Configuration
|
462
462
|
button && button.show && button.show.constructor === Boolean &&
|
463
463
|
button.actions && button.actions.constructor === Array && button.actions.length > 0 ? (button.actions.map(function (btn, idx) {
|
464
|
-
return (_jsxs("a", __assign({ className: btn.class ? btn.class : '
|
464
|
+
return (_jsxs("a", __assign({ className: btn.class ? btn.class : ' em-button' + ' ' + (idx === 0 ? 'is-primary' : ''), href: "#", onClick: function (event) { return actionRequestHandler(event, 'button', btn.action); }, "data-testid": "menubar-button" }, { children: [_jsx("div", __assign({ className: "belt-icon belt-buttons" }, { children: btn.icon ? btn.icon : '' })), _jsx("span", __assign({ "data-testid": 'button-action-' + btn.action }, { children: btn.label ? btn.label : '' }))] }), idx));
|
465
465
|
})) : null,
|
466
466
|
// UndoButton Actions Configuration
|
467
467
|
undoButton && undoButton.show && !undoButton.isFooter &&
|
468
468
|
undoButton.actions && undoButton.actions.constructor === Array && undoButton.actions.length > 0 ? (undoButton.actions.map(function (btn, idx) {
|
469
|
-
return seconds > 0 || (btn.timer !== undefined) ? (_jsxs("a", __assign({ className: btn.class ? btn.class : '
|
469
|
+
return seconds > 0 || (btn.timer !== undefined) ? (_jsxs("a", __assign({ className: btn.class ? btn.class : 'em-button' + ' ' + (idx === 0 ? 'is-primary' : '') + (btn.disabled === true ? ' is-disabled' : ' em-button outline button-undo'), href: "#", "data-testid": "undo-button-".concat(btn.action) }, (btn.disabled === true ? { onClick: function (event) { event.preventDefault(); } } : { onClick: function (event) { return actionRequestHandler(event, 'undo-button', btn.action); } }), { children: [_jsx("div", __assign({ className: "belt-icon" }, { children: btn.icon ? btn.icon : '' })), _jsx("span", __assign({ "data-testid": "undo-button-text" }, { children: btn.label ? ("".concat(btn.label, " ").concat(btn.timer !== undefined && btn.timer.constructor === Number && seconds > 0 ? ("in ".concat(seconds, "s")) : '')) : '' }))] }), idx)) : null;
|
470
470
|
})) : null] }))] })), _jsxs("div", __assign({ className: "em-belt-right" }, { children: [
|
471
471
|
// Dropdown Actions Configuration
|
472
|
-
dropdown && dropdown.show && dropdown.show.constructor === Boolean ? (_jsx(Fragment, { children: _jsxs("div", __assign({ className: "em-dropdown" }, { children: [dropdown.type === 'list' ? (_jsxs("a", __assign({ className: "belt-dropdown", id: "add", href: "#", onClick: function (event) { return popoverRequestHandler(event, 'dropdown'); } }, { children: [_jsx("div", __assign({ className: "icon-add" }, { children: dropdown.icon ? dropdown.icon : '' })), _jsx("span", { children: dropdownTitle })] }))) : dropdown.type === 'date-picker-weekly' ? (_jsxs("a", __assign({ id: "months", className: "belt-dropdown ".concat(Boolean(dropdownPopover) ? 'is-active' : ''), href: "#", onClick: function (event) { return popoverRequestHandler(event, 'dropdown'); } }, { children: [_jsx("span", { children: dropdownTitle }), _jsx("div", __assign({ className: "icon-arrowdown" }, { children: SVG_ARROWDOWN }))] }))) : dropdown.type === 'date-picker-monthly' ? (_jsxs(Fragment, { children: [_jsxs("a", __assign({ id: "months", className: "belt-dropdown ".concat(Boolean(dropdownPopover) ? 'is-active' : ''), href: "#", onClick: function (event) { return popoverRequestHandler(event, 'dropdown'); } }, { children: [_jsx("span", { children: dropdownTitle }), _jsx("div", __assign({ className: "icon-arrowdown" }, { children: SVG_ARROWDOWN }))] })), dropdown.showPagination ? (_jsxs(Fragment, { children: [_jsx("a", __assign({ className: 'belt-prev' + isDisabledDropdownPagination('prev'), href: "#", onClick: function (event) { return dateMonthlyPickerHandler(event, 'prev-month'); } }, { children: _jsx("div", __assign({ className: "belt-icon" }, { children: SVG_ARROWLEFT })) })), _jsx("a", __assign({ className: 'belt-next' + isDisabledDropdownPagination('next'), href: "#", onClick: function (event) { return dateMonthlyPickerHandler(event, 'next-month'); } }, { children: _jsx("div", __assign({ className: "belt-icon" }, { children: SVG_ARROWRIGHT })) }))] })) : null] })) : dropdown.type === 'date-picker-cutoff' ? ((_jsx("a", __assign({ className: "belt-dropdown", id: "add", href: "#", onClick: function (event) { return popoverRequestHandler(event, 'dropdown'); } }, { children: _jsx("span", { children: dropdown.cutoffValue && dropdown.cutoffValue.label ? dropdown.cutoffValue.label : '' }) })))) : dropdown.type === 'button' ? (_jsxs("a", __assign({ className: "belt-dropdown", id: "add", href: "#", onClick: function (event) { return actionRequestHandler(event, 'button', dropdown.action); } }, { children: [_jsx("div", __assign({ className: "belt-icon" }, { children: dropdown.icon ? dropdown.icon : '' })), _jsx("span", { children: dropdownTitle })] }))) : (_jsx("a", __assign({ className: "belt-dropdown", id: "add", href: "#", onClick: function (event) { return popoverRequestHandler(event, 'dropdown'); } }, { children: _jsx("span", { children: dropdownTitle }) }))), _jsx(Popover, __assign({ id: "dropdownPopover", className: Boolean(dropdownPopover) ? 'open-popover' : '', open: Boolean(dropdownPopover), onClick: function (event) { return popoverRequestHandler(event, 'dropdown'); } }, { children: dropdown.type === 'list' ? (dropdown.actions && dropdown.actions.constructor === Array && dropdown.actions.length > 0 ? (_jsx("div", __assign({ className: "
|
472
|
+
dropdown && dropdown.show && dropdown.show.constructor === Boolean ? (_jsx(Fragment, { children: _jsxs("div", __assign({ className: "em-dropdown" }, { children: [dropdown.type === 'list' ? (_jsxs("a", __assign({ className: "belt-dropdown", id: "add", href: "#", onClick: function (event) { return popoverRequestHandler(event, 'dropdown'); } }, { children: [_jsx("div", __assign({ className: "icon-add" }, { children: dropdown.icon ? dropdown.icon : '' })), _jsx("span", { children: dropdownTitle })] }))) : dropdown.type === 'date-picker-weekly' ? (_jsxs("a", __assign({ id: "months", className: "belt-dropdown ".concat(Boolean(dropdownPopover) ? 'is-active' : ''), href: "#", onClick: function (event) { return popoverRequestHandler(event, 'dropdown'); } }, { children: [_jsx("span", { children: dropdownTitle }), _jsx("div", __assign({ className: "icon-arrowdown" }, { children: SVG_ARROWDOWN }))] }))) : dropdown.type === 'date-picker-monthly' ? (_jsxs(Fragment, { children: [_jsxs("a", __assign({ id: "months", className: "belt-dropdown ".concat(Boolean(dropdownPopover) ? 'is-active' : ''), href: "#", onClick: function (event) { return popoverRequestHandler(event, 'dropdown'); } }, { children: [_jsx("span", { children: dropdownTitle }), _jsx("div", __assign({ className: "icon-arrowdown" }, { children: SVG_ARROWDOWN }))] })), dropdown.showPagination ? (_jsxs(Fragment, { children: [_jsx("a", __assign({ className: 'belt-prev' + isDisabledDropdownPagination('prev'), href: "#", onClick: function (event) { return dateMonthlyPickerHandler(event, 'prev-month'); } }, { children: _jsx("div", __assign({ className: "belt-icon" }, { children: SVG_ARROWLEFT })) })), _jsx("a", __assign({ className: 'belt-next' + isDisabledDropdownPagination('next'), href: "#", onClick: function (event) { return dateMonthlyPickerHandler(event, 'next-month'); } }, { children: _jsx("div", __assign({ className: "belt-icon" }, { children: SVG_ARROWRIGHT })) }))] })) : null] })) : dropdown.type === 'date-picker-cutoff' ? ((_jsx("a", __assign({ className: "belt-dropdown", id: "add", href: "#", onClick: function (event) { return popoverRequestHandler(event, 'dropdown'); } }, { children: _jsx("span", { children: dropdown.cutoffValue && dropdown.cutoffValue.label ? dropdown.cutoffValue.label : '' }) })))) : dropdown.type === 'button' ? (_jsxs("a", __assign({ className: "belt-dropdown", id: "add", href: "#", onClick: function (event) { return actionRequestHandler(event, 'button', dropdown.action); } }, { children: [_jsx("div", __assign({ className: "belt-icon" }, { children: dropdown.icon ? dropdown.icon : '' })), _jsx("span", { children: dropdownTitle })] }))) : (_jsx("a", __assign({ className: "belt-dropdown", id: "add", href: "#", onClick: function (event) { return popoverRequestHandler(event, 'dropdown'); } }, { children: _jsx("span", { children: dropdownTitle }) }))), _jsx(Popover, __assign({ id: "dropdownPopover", className: Boolean(dropdownPopover) ? 'open-popover' : '', open: Boolean(dropdownPopover), onClick: function (event) { return popoverRequestHandler(event, 'dropdown'); } }, { children: dropdown.type === 'list' ? (dropdown.actions && dropdown.actions.constructor === Array && dropdown.actions.length > 0 ? (_jsx("div", __assign({ className: "em-popover-list" }, { children: dropdown.actions.map(function (drpdwn, idx) {
|
473
473
|
return _jsx("a", __assign({ href: "#", onClick: function (event) { return actionRequestHandler(event, 'dropdown', drpdwn.value); } }, { children: drpdwn.label }), idx);
|
474
|
-
}) }))) : null) : dropdown.type === 'date-picker-weekly' ? (_jsx("div", __assign({ className: "
|
474
|
+
}) }))) : null) : dropdown.type === 'date-picker-weekly' ? (_jsx("div", __assign({ className: "em-datepicker-weekly" }, { children: _jsx(Calendar, { className: "dateRangePickerInput", onChange: function (event) { return onDatePickerChange(event, 'dropdown'); } }) }))) : dropdown.type === 'date-picker-monthly' ? (_jsxs("div", __assign({ className: "em-popover-months" }, { children: [_jsxs("div", __assign({ className: "list-years" }, { children: [_jsx("button", __assign({ onClick: function (event) { return dateMonthlyPickerHandler(event, 'prev'); } }, { children: SVG_ARROWLEFT })), _jsx("div", { children: calendarYear }), _jsx("button", __assign({ onClick: function (event) { return dateMonthlyPickerHandler(event, 'next'); } }, { children: SVG_ARROWRIGHT }))] })), _jsx("div", __assign({ className: "list-months" }, { children: MONTH_LIST.map(function (action, idx) {
|
475
475
|
return dropdown.minYear && dropdown.minYear.toString() === calendarYear.toString() && minMonthIdx && minMonthIdx > idx ? (_jsx("a", __assign({ href: "#", className: 'is-disabled', onClick: function (event) { event.preventDefault(); } }, { children: action.label }), idx)) : dropdown.maxYear && dropdown.maxYear.toString() === calendarYear.toString() && maxMonthIdx && maxMonthIdx < idx ? (_jsx("a", __assign({ href: "#", className: 'is-disabled', onClick: function (event) { event.preventDefault(); } }, { children: action.label }), idx)) : (_jsx("a", __assign({ className: dateMonthlyPickerIsSelected(action.label) ? 'is-selected' : '', href: "#", onClick: function (event) { return dateMonthlyPickerHandler(event, 'month-selection', action.value); } }, { children: action.label }), idx));
|
476
|
-
}) }))] }))) : dropdown.type === 'date-picker-cutoff' ? (_jsxs("div", __assign({ className: "
|
476
|
+
}) }))] }))) : dropdown.type === 'date-picker-cutoff' ? (_jsxs("div", __assign({ className: "em-popover-months" }, { children: [_jsxs("div", __assign({ className: "list-years" }, { children: [_jsx("button", __assign({ onClick: function (event) { return dateMonthlyPickerHandler(event, 'prev'); } }, { children: _jsx("img", { src: "/images/icons/icon-arrowleft-white.svg", alt: "" }) })), _jsx("div", { children: calendarYear }), _jsx("button", __assign({ onClick: function (event) { return dateMonthlyPickerHandler(event, 'next'); } }, { children: _jsx("img", { src: "/images/icons/icon-arrowright-white.svg", alt: "" }) }))] })), _jsx("div", __assign({ className: "list-months" }, { children: dropdown.cutoffDates !== null && dropdown.cutoffDates.length > 0 ? (dropdown.cutoffDates.map(function (action, idx) {
|
477
477
|
var classSelect;
|
478
478
|
if (JSON.stringify(action.label) === JSON.stringify(dropdown.cutoffValue.label)) {
|
479
479
|
if (dropdown.currentYear === calendarYear) {
|
@@ -492,7 +492,7 @@ var MenuBar = function (_a) {
|
|
492
492
|
+ ' - ' +
|
493
493
|
(pagination.page * pagination.perPage > pagination.total ?
|
494
494
|
(pagination.total ? pagination.total : pagination.counter) :
|
495
|
-
pagination.page * pagination.perPage), " of ", pagination.total ? pagination.total : 0] })), _jsx(Popover, __assign({ id: "paginationSummaryPopover", className: Boolean(dropdownPopover) ? 'open-popover' : '', open: Boolean(paginationSummaryPopover), onClick: function (event) { return popoverRequestHandler(event, 'pagination-summary'); } }, { children: _jsxs("div", __assign({ className: "
|
495
|
+
pagination.page * pagination.perPage), " of ", pagination.total ? pagination.total : 0] })), _jsx(Popover, __assign({ id: "paginationSummaryPopover", className: Boolean(dropdownPopover) ? 'open-popover' : '', open: Boolean(paginationSummaryPopover), onClick: function (event) { return popoverRequestHandler(event, 'pagination-summary'); } }, { children: _jsxs("div", __assign({ className: "em-popover-input" }, { children: [_jsxs("div", __assign({ className: 'e-field field field-input' + (paginationSummaryFormError.indexOf('perPageTemporaryValue') >= 0 ? ' is-invalid' : '') }, { children: [_jsx("label", __assign({ className: 'e-input-label' }, { children: "SHOW" })), _jsx(Input, { config: {
|
496
496
|
id: 'paginationPerPage',
|
497
497
|
type: 'select',
|
498
498
|
placeholder: '-',
|
@@ -508,7 +508,7 @@ var MenuBar = function (_a) {
|
|
508
508
|
}, onChanged: function (event) { return handleChangeFormValue(event, 'go-to-page'); } }) }))] })), _jsx("button", __assign({ className: "button-check", onClick: function (event) { return paginationRequestHandler(event, 'submit'); } }, { children: SVG_CHECK }))] })) }))] })) })) : null, _jsx("a", __assign({ className: (pagination.page * pagination.perPage) > pagination.perPage ? 'belt-prev' : 'belt-prev is-disabled', href: "#" }, (((pagination.page * pagination.perPage) > pagination.perPage) ? { onClick: function (event) { return paginationRequestHandler(event, 'prev'); } } : { onClick: function (event) { event.preventDefault(); } }), { children: _jsx("div", __assign({ className: "belt-icon" }, { children: SVG_ARROWLEFT })) })), _jsx("a", __assign({ className: pagination.total <= (pagination.page * pagination.perPage) ? 'belt-next is-disabled' : 'belt-next', href: "#" }, ((pagination.total <= (pagination.page * pagination.perPage)) ? { onClick: function (event) { event.preventDefault(); } } : { onClick: function (event) { return paginationRequestHandler(event, 'next'); } }), { children: _jsx("div", __assign({ className: "belt-icon" }, { children: SVG_ARROWRIGHT })) }))] })) : null,
|
509
509
|
// Pivot Configuration
|
510
510
|
pivot && pivot.show ? (_jsx(Fragment, { children: _jsxs("div", __assign({ className: "em-dropdown" }, { children: [_jsxs("a", __assign({ id: "months", className: "belt-dropdown ", href: "#", onClick: function (event) { return popoverRequestHandler(event, 'pivot'); }, "data-testid": "menubar-pivot" }, { children: [_jsx("span", { children: pivot.selected && pivot.actions &&
|
511
|
-
pivot.actions.constructor === Array && pivot.actions.length > 0 ? (pivot.actions.filter(function (item) { return (item.value === pivot.selected); }).length > 0 ? (pivot.actions.filter(function (item) { return (item.value === pivot.selected); })[0].label) : 'None') : 'None' }), _jsx("div", __assign({ className: "icon-arrowdown" }, { children: SVG_ARROWDOWN }))] })), _jsx(Popover, __assign({ id: "pivotPopover", className: Boolean(dropdownPopover) ? 'open-popover' : '', open: Boolean(pivotPopover), onClick: function (event) { return popoverRequestHandler(event, 'pivot'); } }, { children: pivot.actions && pivot.actions.constructor === Array && pivot.actions.length > 0 ? (_jsx("div", __assign({ className: "
|
511
|
+
pivot.actions.constructor === Array && pivot.actions.length > 0 ? (pivot.actions.filter(function (item) { return (item.value === pivot.selected); }).length > 0 ? (pivot.actions.filter(function (item) { return (item.value === pivot.selected); })[0].label) : 'None') : 'None' }), _jsx("div", __assign({ className: "icon-arrowdown" }, { children: SVG_ARROWDOWN }))] })), _jsx(Popover, __assign({ id: "pivotPopover", className: Boolean(dropdownPopover) ? 'open-popover' : '', open: Boolean(pivotPopover), onClick: function (event) { return popoverRequestHandler(event, 'pivot'); } }, { children: pivot.actions && pivot.actions.constructor === Array && pivot.actions.length > 0 ? (_jsx("div", __assign({ className: "em-popover-list" }, { children: pivot.actions.map(function (pvt, idx) {
|
512
512
|
return _jsx("a", __assign({ href: "#", onClick: function (event) { return actionRequestHandler(event, 'pivot', pvt.value); } }, { children: pvt.label }), idx);
|
513
513
|
}) }))) : null }))] })) })) : null,
|
514
514
|
// Close Icon Configuration
|
@@ -1,4 +1,4 @@
|
|
1
|
-
.em-button{
|
1
|
+
.em-button {
|
2
2
|
display: inline-flex;
|
3
3
|
align-items: center;
|
4
4
|
justify-content: center;
|
@@ -104,6 +104,16 @@
|
|
104
104
|
}
|
105
105
|
}
|
106
106
|
}
|
107
|
+
|
108
|
+
&.delete {
|
109
|
+
color: $red;
|
110
|
+
box-shadow: inset 0 0 0 1px $red;
|
111
|
+
padding: 15px;
|
112
|
+
|
113
|
+
&:hover {
|
114
|
+
background-color: $red;
|
115
|
+
}
|
116
|
+
}
|
107
117
|
}
|
108
118
|
|
109
119
|
.em-text-link {
|
@@ -1,8 +1,171 @@
|
|
1
1
|
.em-popover {
|
2
|
+
position: absolute;
|
3
|
+
top: 50px;
|
4
|
+
margin-top: -2px;
|
5
|
+
font-size: 0.875rem;
|
6
|
+
color: $gray-dark;
|
7
|
+
z-index: 100;
|
8
|
+
display: flex;
|
9
|
+
width: auto;
|
2
10
|
background-color: $white;
|
3
11
|
border-top: 5px solid $blue-light4;
|
4
12
|
border-bottom-left-radius: $border-radius-md;
|
5
13
|
border-bottom-right-radius: $border-radius-md;
|
6
14
|
box-shadow: $shadow-popover;
|
7
15
|
max-width: 650px;
|
8
|
-
}
|
16
|
+
}
|
17
|
+
|
18
|
+
|
19
|
+
.em-datepicker-weekly {
|
20
|
+
.rdrCalendarWrapper {
|
21
|
+
display: flex;
|
22
|
+
flex-direction: column;
|
23
|
+
font-size: $text-sm;
|
24
|
+
box-shadow: $shadow-popover;
|
25
|
+
|
26
|
+
.rdrMonthAndYearWrapper {
|
27
|
+
width: 100%;
|
28
|
+
display: flex;
|
29
|
+
justify-content: space-between;
|
30
|
+
align-items: center;
|
31
|
+
background-color: #0f2473;
|
32
|
+
padding: 15px;
|
33
|
+
|
34
|
+
button {
|
35
|
+
border: none;
|
36
|
+
width: 50px;
|
37
|
+
height: 50px;
|
38
|
+
border-radius: 0;
|
39
|
+
background-color: transparent;
|
40
|
+
display: flex;
|
41
|
+
justify-content: center;
|
42
|
+
align-items: center;
|
43
|
+
border: none;
|
44
|
+
transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
|
45
|
+
cursor: pointer;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
.rdrMonthAndYearPickers {
|
50
|
+
display: flex;
|
51
|
+
|
52
|
+
select {
|
53
|
+
min-width: 100px;
|
54
|
+
color: $white;
|
55
|
+
font-size: $text-base;
|
56
|
+
height: 50px;
|
57
|
+
border-radius: 0;
|
58
|
+
border: none;
|
59
|
+
// background: url("https://storage.googleapis.com/empower-production-assets/images/icons/icon-arrowdown-white.svg") right center no-repeat;
|
60
|
+
background: transparent;
|
61
|
+
transition: $transition;
|
62
|
+
|
63
|
+
&:focus-visible {
|
64
|
+
outline: none;
|
65
|
+
}
|
66
|
+
|
67
|
+
&:hover {
|
68
|
+
background-color: transparentize(#091336, 0.5);
|
69
|
+
}
|
70
|
+
|
71
|
+
option {
|
72
|
+
padding: 10px;
|
73
|
+
background-color: $white;
|
74
|
+
color: #4A5568;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
.rdrNextPrevButton {
|
80
|
+
|
81
|
+
i {
|
82
|
+
height: 20px;
|
83
|
+
width: 20px;
|
84
|
+
border: 0;
|
85
|
+
margin: 0;
|
86
|
+
transition: $transition;
|
87
|
+
}
|
88
|
+
|
89
|
+
&.rdrPprevButton {
|
90
|
+
i {
|
91
|
+
background: url("https://storage.googleapis.com/empower-production-assets/images/icons/icon-arrowleft-white.svg") center center no-repeat;
|
92
|
+
}
|
93
|
+
|
94
|
+
&:hover {
|
95
|
+
i {
|
96
|
+
transform: translateX(-5px);
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
&.rdrNextButton {
|
102
|
+
i {
|
103
|
+
background: url("https://storage.googleapis.com/empower-production-assets/images/icons/icon-arrowright-white.svg") center center no-repeat;
|
104
|
+
}
|
105
|
+
|
106
|
+
&:hover {
|
107
|
+
i {
|
108
|
+
transform: translateX(5px);
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
}
|
113
|
+
|
114
|
+
.rdrWeekDays {
|
115
|
+
display: flex;
|
116
|
+
padding: 15px 15px 0;
|
117
|
+
}
|
118
|
+
|
119
|
+
.rdrWeekDay {
|
120
|
+
font-weight: 700;
|
121
|
+
padding: 1rem 0.25rem;
|
122
|
+
text-transform: uppercase;
|
123
|
+
color: #A0AEC0;
|
124
|
+
font-size: 0.875rem;
|
125
|
+
width: 50px;
|
126
|
+
text-align: center;
|
127
|
+
}
|
128
|
+
|
129
|
+
.rdrDay {
|
130
|
+
font-size: 0.875rem;
|
131
|
+
width: 50px;
|
132
|
+
text-align: center;
|
133
|
+
border: none;
|
134
|
+
background-color: transparent;
|
135
|
+
|
136
|
+
.rdrDayNumber {
|
137
|
+
span {
|
138
|
+
width: 50px;
|
139
|
+
height: 50px;
|
140
|
+
display: flex;
|
141
|
+
align-items: center;
|
142
|
+
justify-content: center;
|
143
|
+
cursor: pointer;
|
144
|
+
transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
|
145
|
+
color: $gray-dark;
|
146
|
+
|
147
|
+
&:hover {
|
148
|
+
background-color: #EDF2F7;
|
149
|
+
}
|
150
|
+
}
|
151
|
+
}
|
152
|
+
|
153
|
+
&.rdrDayPassive {
|
154
|
+
.rdrDayNumber > span{
|
155
|
+
cursor: default;
|
156
|
+
color: $gray-light3;
|
157
|
+
|
158
|
+
&:hover{
|
159
|
+
background-color: transparent;
|
160
|
+
}
|
161
|
+
}
|
162
|
+
}
|
163
|
+
}
|
164
|
+
|
165
|
+
.rdrDays {
|
166
|
+
display: flex;
|
167
|
+
flex-wrap: wrap;
|
168
|
+
padding: 0 15px 15px;
|
169
|
+
}
|
170
|
+
}
|
171
|
+
}
|
@@ -1,6 +1,10 @@
|
|
1
1
|
.em-belt-info {
|
2
2
|
position: relative;
|
3
3
|
|
4
|
+
.em-popover {
|
5
|
+
width: 650px;
|
6
|
+
}
|
7
|
+
|
4
8
|
.em-info-icon {
|
5
9
|
display: flex;
|
6
10
|
justify-content: center;
|
@@ -49,6 +53,11 @@
|
|
49
53
|
display: flex;
|
50
54
|
justify-content: space-between;
|
51
55
|
align-items: center;
|
56
|
+
|
57
|
+
h6 {
|
58
|
+
font-size: $text-sm;
|
59
|
+
text-transform: uppercase;
|
60
|
+
}
|
52
61
|
}
|
53
62
|
|
54
63
|
.em-popover-i-category {
|
@@ -7,6 +7,8 @@
|
|
7
7
|
|
8
8
|
.em-dropdown {
|
9
9
|
position: relative;
|
10
|
+
min-width: 100px;
|
11
|
+
white-space: nowrap;
|
10
12
|
}
|
11
13
|
|
12
14
|
.em-belt-left {
|
@@ -129,7 +131,7 @@
|
|
129
131
|
display: flex;
|
130
132
|
align-items: center;
|
131
133
|
justify-content: flex-end;
|
132
|
-
flex-wrap:
|
134
|
+
flex-wrap: nowrap;
|
133
135
|
|
134
136
|
> a, > div {
|
135
137
|
margin-left: 10px;
|
@@ -237,4 +239,3 @@
|
|
237
239
|
}
|
238
240
|
}
|
239
241
|
}
|
240
|
-
|
@@ -2,6 +2,19 @@
|
|
2
2
|
position: relative;
|
3
3
|
width: 100%;
|
4
4
|
|
5
|
+
option{
|
6
|
+
font-size: 0.875rem;
|
7
|
+
color: $gray-dark;
|
8
|
+
padding: 20px;
|
9
|
+
transition: $transition;
|
10
|
+
cursor: pointer;
|
11
|
+
|
12
|
+
&:hover{
|
13
|
+
background-color: $blue-light;
|
14
|
+
padding: 20px 18px 20px 22px;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
5
18
|
.em-input-field {
|
6
19
|
width: 100%;
|
7
20
|
}
|
@@ -57,181 +70,148 @@
|
|
57
70
|
z-index: 99;
|
58
71
|
}
|
59
72
|
|
60
|
-
.em-popover{
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
font-size:
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
cursor: pointer;
|
80
|
-
|
81
|
-
&:hover{
|
82
|
-
background-color: $blue-light;
|
83
|
-
padding: 20px 18px 20px 22px;
|
84
|
-
}
|
73
|
+
.em-popover-input{
|
74
|
+
display: flex;
|
75
|
+
padding: 20px;
|
76
|
+
|
77
|
+
.field {
|
78
|
+
margin: 0 15px 0 0;
|
79
|
+
width: 160px;
|
80
|
+
|
81
|
+
> label {
|
82
|
+
position: relative;
|
83
|
+
top: 0;
|
84
|
+
left: 0;
|
85
|
+
padding: 0;
|
86
|
+
margin-bottom: 5px;
|
87
|
+
display: inline-block;
|
88
|
+
font-size: .875rem;
|
89
|
+
font-weight: 700;
|
90
|
+
color: $gray-light3;
|
91
|
+
text-transform: uppercase;
|
85
92
|
}
|
86
93
|
}
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
94
|
+
|
95
|
+
button {
|
96
|
+
border: 0;
|
97
|
+
background: none;
|
98
|
+
height: 50px;
|
99
|
+
width: 50px;
|
100
|
+
display: inline-flex;
|
101
|
+
align-items: center;
|
102
|
+
justify-content: center;
|
103
|
+
cursor: pointer;
|
104
|
+
transition: $transition;
|
98
105
|
}
|
106
|
+
}
|
99
107
|
|
100
|
-
|
101
|
-
|
102
|
-
|
108
|
+
.em-popover-list {
|
109
|
+
display: block;
|
110
|
+
padding: 0;
|
103
111
|
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
112
|
+
a {
|
113
|
+
display: block;
|
114
|
+
font-weight: 700;
|
115
|
+
font-size: .875rem;
|
116
|
+
color: $gray-light4;
|
117
|
+
padding: 15px 20px;
|
118
|
+
min-height: 50px;
|
119
|
+
line-height: 20px;
|
120
|
+
text-decoration: none;
|
121
|
+
text-align: left;
|
122
|
+
border: none;
|
123
|
+
box-shadow: none;
|
124
|
+
transition: $transition;
|
125
|
+
margin-right: 0;
|
126
|
+
cursor: pointer;
|
127
|
+
|
128
|
+
&:hover {
|
129
|
+
background-color: $blue-light;
|
130
|
+
color: $gray-dark;
|
131
|
+
padding: 15px 18px 15px 22px;
|
132
|
+
box-shadow: none;
|
133
|
+
border: none;
|
120
134
|
}
|
135
|
+
}
|
136
|
+
}
|
137
|
+
|
138
|
+
.em-popover-months {
|
139
|
+
width: 300px;
|
140
|
+
padding: 0;
|
141
|
+
flex-direction: column;
|
142
|
+
|
143
|
+
.list-years {
|
144
|
+
background-color: $blue-dark;
|
145
|
+
display: flex;
|
146
|
+
justify-content: space-between;
|
147
|
+
margin-top: -1px;
|
148
|
+
width: 100%;
|
121
149
|
|
122
150
|
button {
|
123
|
-
|
124
|
-
|
125
|
-
height: 50px;
|
126
|
-
width: 50px;
|
127
|
-
display: inline-flex;
|
128
|
-
align-items: center;
|
129
|
-
justify-content: center;
|
151
|
+
background-color: transparent;
|
152
|
+
border: none;
|
130
153
|
cursor: pointer;
|
131
154
|
transition: $transition;
|
155
|
+
|
156
|
+
svg path {
|
157
|
+
fill: $white;
|
158
|
+
}
|
159
|
+
|
160
|
+
img {
|
161
|
+
transition: $transition;
|
162
|
+
|
163
|
+
&:hover {
|
164
|
+
background-color: transparentize($blue-dark1, 0.5);
|
165
|
+
}
|
166
|
+
|
167
|
+
&:focus {
|
168
|
+
outline: none;
|
169
|
+
}
|
170
|
+
}
|
171
|
+
}
|
172
|
+
|
173
|
+
> div {
|
174
|
+
color: $white;
|
175
|
+
font-size: 1.5rem;
|
176
|
+
padding: 15px;
|
132
177
|
}
|
133
178
|
}
|
134
179
|
|
135
|
-
.
|
136
|
-
display:
|
137
|
-
|
180
|
+
.list-months {
|
181
|
+
display: flex;
|
182
|
+
flex-wrap: wrap;
|
138
183
|
|
139
184
|
a {
|
140
|
-
|
185
|
+
width: 33.33%;
|
186
|
+
box-shadow: inset 1px 0 0 0 $blue-light1, inset 0 1px 0 0 $blue-light1;
|
187
|
+
padding: 15px;
|
188
|
+
color: $gray-light4;
|
189
|
+
text-align: center;
|
141
190
|
font-weight: 700;
|
142
191
|
font-size: .875rem;
|
143
|
-
color: $gray-light4;
|
144
|
-
padding: 15px 20px;
|
145
|
-
min-height: 50px;
|
146
|
-
line-height: 20px;
|
147
192
|
text-decoration: none;
|
148
|
-
text-align: left;
|
149
|
-
border: none;
|
150
|
-
box-shadow: none;
|
151
|
-
transition: $transition;
|
152
|
-
margin-right: 0;
|
153
|
-
cursor: pointer;
|
154
|
-
}
|
155
|
-
}
|
156
193
|
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
flex-direction: column;
|
161
|
-
|
162
|
-
.list-years {
|
163
|
-
background-color: $blue-dark;
|
164
|
-
display: flex;
|
165
|
-
justify-content: space-between;
|
166
|
-
margin-top: -1px;
|
167
|
-
width: 100%;
|
168
|
-
|
169
|
-
button {
|
170
|
-
background-color: transparent;
|
171
|
-
border: none;
|
172
|
-
cursor: pointer;
|
173
|
-
transition: $transition;
|
174
|
-
|
175
|
-
svg path {
|
176
|
-
fill: $white;
|
177
|
-
}
|
178
|
-
|
179
|
-
img {
|
180
|
-
transition: $transition;
|
181
|
-
|
182
|
-
&:hover {
|
183
|
-
background-color: transparentize($blue-dark1, 0.5);
|
184
|
-
}
|
185
|
-
|
186
|
-
&:focus {
|
187
|
-
outline: none;
|
188
|
-
}
|
189
|
-
}
|
190
|
-
}
|
191
|
-
|
192
|
-
> div {
|
193
|
-
color: $white;
|
194
|
-
font-size: 1.5rem;
|
195
|
-
padding: 15px;
|
194
|
+
&:hover {
|
195
|
+
background-color: $gray-light;
|
196
|
+
color: $gray-dark;
|
196
197
|
}
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
width: 33.33%;
|
205
|
-
box-shadow: inset 1px 0 0 0 $blue-light1, inset 0 1px 0 0 $blue-light1;
|
206
|
-
padding: 15px;
|
207
|
-
color: $gray-light4;
|
208
|
-
text-align: center;
|
209
|
-
font-weight: 700;
|
210
|
-
font-size: .875rem;
|
211
|
-
text-decoration: none;
|
212
|
-
|
213
|
-
&:hover {
|
214
|
-
background-color: $gray-light;
|
215
|
-
color: $gray-dark;
|
216
|
-
}
|
217
|
-
|
218
|
-
&.is-disabled{
|
198
|
+
|
199
|
+
&.is-disabled{
|
200
|
+
background-color: $gray-light;
|
201
|
+
color: $gray-light3;
|
202
|
+
cursor: initial;
|
203
|
+
|
204
|
+
&:hover{
|
219
205
|
background-color: $gray-light;
|
220
206
|
color: $gray-light3;
|
221
|
-
cursor: initial;
|
222
|
-
|
223
|
-
&:hover{
|
224
|
-
background-color: $gray-light;
|
225
|
-
color: $gray-light3;
|
226
|
-
}
|
227
|
-
}
|
228
|
-
|
229
|
-
&.is-selected{
|
230
|
-
background-color: $blue-dark1;
|
231
|
-
color: $white;
|
232
|
-
box-shadow: inset 1px 0 0 0 $blue-dark1, inset 0 1px 0 0 $blue-dark1;
|
233
207
|
}
|
234
208
|
}
|
209
|
+
|
210
|
+
&.is-selected{
|
211
|
+
background-color: $blue-dark1;
|
212
|
+
color: $white;
|
213
|
+
box-shadow: inset 1px 0 0 0 $blue-dark1, inset 0 1px 0 0 $blue-dark1;
|
214
|
+
}
|
235
215
|
}
|
236
216
|
}
|
237
217
|
}
|
package/package.json
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"name": "empower-container",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.27",
|
4
4
|
"private": false,
|
5
|
+
"homepage": "https://bitbucket.org/empowerteams/empower-container",
|
5
6
|
"main": "./dist/cjs/ndex.js",
|
6
7
|
"module": "./dist/esm/index.js",
|
7
8
|
"types": "./dist/esm/index.d.ts",
|
@@ -19,6 +20,7 @@
|
|
19
20
|
"react-dom": "^17.0.2",
|
20
21
|
"react-native": "^0.68.0",
|
21
22
|
"react-native-render-html": "^6.3.4",
|
23
|
+
"react-refresh": "^0.14.0",
|
22
24
|
"react-scripts": "5.0.0",
|
23
25
|
"sass": "^1.49.9",
|
24
26
|
"scss": "^0.2.4",
|