@dilicorp/ui 0.2.3 → 0.2.4-0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atoms/button.d.ts +1 -1
- package/dist/atoms/button.js +2 -14
- package/dist/atoms/checkbox.js +2 -14
- package/dist/atoms/col.d.ts +1 -2
- package/dist/atoms/col.js +2 -14
- package/dist/atoms/container.js +2 -14
- package/dist/atoms/icon.d.ts +2 -1
- package/dist/atoms/icon.js +3 -3
- package/dist/atoms/image.js +2 -13
- package/dist/atoms/input-datepicker.d.ts +1 -0
- package/dist/atoms/input-datepicker.js +2 -2
- package/dist/atoms/input-mask.d.ts +5 -0
- package/dist/atoms/input-mask.js +7 -0
- package/dist/atoms/input.d.ts +1 -1
- package/dist/atoms/input.js +2 -14
- package/dist/atoms/label.js +2 -14
- package/dist/atoms/link.js +3 -14
- package/dist/atoms/pluxee-icon/base-icon.js +1 -7
- package/dist/atoms/pluxee-icon/icon-card-slashed.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-card-slashed.js +12 -0
- package/dist/atoms/pluxee-icon/icon-circle.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-circle.js +6 -0
- package/dist/atoms/pluxee-icon/icon-clock.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-clock.js +7 -0
- package/dist/atoms/pluxee-icon/icon-cost-center.js +3 -3
- package/dist/atoms/pluxee-icon/icon-credit-management.js +5 -5
- package/dist/atoms/pluxee-icon/icon-download.js +2 -2
- package/dist/atoms/pluxee-icon/icon-eye-closed-outline.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-eye-closed-outline.js +10 -0
- package/dist/atoms/pluxee-icon/icon-identification.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-identification.js +10 -0
- package/dist/atoms/pluxee-icon/icon-negotiation.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-negotiation.js +6 -0
- package/dist/atoms/pluxee-icon/icon-play.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-play.js +6 -0
- package/dist/atoms/pluxee-icon/icon-qrcode.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-qrcode.js +17 -0
- package/dist/atoms/pluxee-icon/icon-update-limit.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-update-limit.js +8 -0
- package/dist/atoms/pluxee-icon/icon-user-group.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-user-group.js +6 -0
- package/dist/atoms/pluxee-icon/pluxee-icon.d.ts +8 -1
- package/dist/atoms/pluxee-icon/pluxee-icon.js +24 -3
- package/dist/atoms/radio.js +2 -14
- package/dist/atoms/row.js +1 -1
- package/dist/atoms/skeleton.js +1 -1
- package/dist/atoms/switcher.d.ts +7 -0
- package/dist/atoms/switcher.js +10 -0
- package/dist/atoms/typography.js +2 -14
- package/dist/components/accordion/accordion-body.d.ts +1 -1
- package/dist/components/accordion/accordion-body.js +1 -1
- package/dist/components/accordion/accordion-header.d.ts +1 -1
- package/dist/components/accordion/accordion-header.js +1 -1
- package/dist/components/accordion/accordion-item.d.ts +1 -1
- package/dist/components/accordion/accordion-item.js +1 -1
- package/dist/components/accordion/accordion.d.ts +1 -1
- package/dist/components/accordion/accordion.js +4 -4
- package/dist/components/alert-modal/alert-context-provider.d.ts +17 -0
- package/dist/components/alert-modal/alert-context-provider.js +18 -0
- package/dist/components/alert-modal/alert-modal-content.d.ts +8 -0
- package/dist/components/alert-modal/alert-modal-content.js +57 -0
- package/dist/components/alert-modal/alert-modal-provider.d.ts +7 -0
- package/dist/components/alert-modal/alert-modal-provider.js +12 -0
- package/dist/components/alert-modal/alert-modal-template.d.ts +5 -0
- package/dist/components/alert-modal/alert-modal-template.js +16 -0
- package/dist/components/alert-template/alert-provider.js +3 -15
- package/dist/components/alert-template/alert-template.d.ts +1 -1
- package/dist/components/form-builder/components/button.d.ts +1 -1
- package/dist/components/form-builder/components/button.js +3 -13
- package/dist/components/form-builder/components/checkbox.d.ts +1 -0
- package/dist/components/form-builder/components/checkbox.js +4 -3
- package/dist/components/form-builder/components/datepicker.js +2 -13
- package/dist/components/form-builder/components/dropzone.js +7 -3
- package/dist/components/form-builder/components/input-currency.js +4 -2
- package/dist/components/form-builder/components/input-mask.js +4 -2
- package/dist/components/form-builder/components/input-prefix-suffix.js +9 -7
- package/dist/components/form-builder/components/input.d.ts +1 -0
- package/dist/components/form-builder/components/input.js +32 -22
- package/dist/components/form-builder/components/password.js +2 -13
- package/dist/components/form-builder/components/radio.d.ts +1 -0
- package/dist/components/form-builder/components/radio.js +4 -3
- package/dist/components/form-builder/components/select.d.ts +2 -1
- package/dist/components/form-builder/components/select.js +2 -2
- package/dist/components/form-builder/form-builder-element.js +2 -13
- package/dist/components/form-builder/form-builder.d.ts +2 -2
- package/dist/components/form-builder/form-builder.js +8 -18
- package/dist/components/form-builder/form-builder.types.d.ts +2 -1
- package/dist/components/layout/authenticated-layout/authenticated-layout.d.ts +4 -0
- package/dist/components/layout/authenticated-layout/authenticated-layout.js +6 -6
- package/dist/components/layout/layout.d.ts +4 -0
- package/dist/components/layout/pluxee-logo/pluxee-logo-card.d.ts +8 -0
- package/dist/components/layout/pluxee-logo/pluxee-logo-card.js +14 -0
- package/dist/components/layout/pluxee-logo/pluxee-logo-inverted.d.ts +3 -0
- package/dist/components/layout/pluxee-logo/pluxee-logo-inverted.js +27 -0
- package/dist/components/multi-step/multi-step.d.ts +17 -0
- package/dist/components/multi-step/multi-step.js +41 -0
- package/dist/components/navbar/navbar.js +6 -3
- package/dist/components/page-create/page-create.d.ts +1 -1
- package/dist/components/page-create/page-create.js +2 -2
- package/dist/components/page-list/column-management-components/modal-config.js +2 -1
- package/dist/components/page-list/filter-components/button-filter-clear.js +1 -1
- package/dist/components/page-list/filter-components/filter-form.js +2 -2
- package/dist/components/page-list/filters/filter-async-select-group/filter-async-select.d.ts +29 -0
- package/dist/components/page-list/filters/filter-async-select-group/filter-async-select.js +28 -0
- package/dist/components/page-list/filters/filter-async-select-group/filter-group.d.ts +22 -0
- package/dist/components/page-list/filters/filter-async-select-group/filter-group.js +53 -0
- package/dist/components/page-list/filters/filter-async-select-group/index.d.ts +47 -0
- package/dist/components/page-list/filters/filter-async-select-group/index.js +6 -0
- package/dist/components/page-list/filters/filter-async-select.d.ts +29 -0
- package/dist/components/page-list/filters/filter-async-select.js +48 -0
- package/dist/components/page-list/filters/filter-datepicker.d.ts +4 -0
- package/dist/components/page-list/filters/filter-datepicker.js +5 -6
- package/dist/components/page-list/filters/filter-input.d.ts +4 -0
- package/dist/components/page-list/filters/filter-input.js +17 -23
- package/dist/components/page-list/filters/filter-select-group.d.ts +4 -0
- package/dist/components/page-list/filters/filter-select-group.js +5 -6
- package/dist/components/page-list/filters/filter-select.d.ts +4 -0
- package/dist/components/page-list/filters/filter-select.js +5 -6
- package/dist/components/page-list/filters/index.d.ts +2 -0
- package/dist/components/page-list/filters/index.js +2 -0
- package/dist/components/page-list/page-list-config/page-list-config-column-management.js +1 -1
- package/dist/components/page-list/page-list-config/page-list-config-dropdown.js +16 -4
- package/dist/components/page-list/page-list-filters.d.ts +7 -3
- package/dist/components/page-list/page-list-get-filters.d.ts +7 -2
- package/dist/components/page-list/page-list-get-filters.js +19 -9
- package/dist/components/page-list/page-list-header.d.ts +9 -0
- package/dist/components/page-list/page-list-header.js +5 -0
- package/dist/components/page-list/page-list.js +12 -6
- package/dist/components/page-show/page-show.d.ts +1 -1
- package/dist/components/page-show/page-show.js +3 -3
- package/dist/components/side-navigation-bar/side-navigation-bar-item.d.ts +1 -0
- package/dist/components/side-navigation-bar/side-navigation-bar-item.js +42 -28
- package/dist/components/side-navigation-bar/side-navigation-bar.js +10 -10
- package/dist/components/tabs/tabs.js +6 -2
- package/dist/css/style.min.css +2 -2
- package/dist/index.d.ts +13 -2
- package/dist/index.js +14 -2
- package/dist/molecules/card-summary/card-summary-body.d.ts +12 -0
- package/dist/molecules/card-summary/card-summary-body.js +9 -0
- package/dist/molecules/card-summary/card-summary-container.d.ts +14 -0
- package/dist/molecules/card-summary/card-summary-container.js +19 -0
- package/dist/molecules/card-summary/card-summary-footer.d.ts +15 -0
- package/dist/molecules/card-summary/card-summary-footer.js +11 -0
- package/dist/molecules/card-summary/card-summary-header.d.ts +12 -0
- package/dist/molecules/card-summary/card-summary-header.js +11 -0
- package/dist/molecules/card-summary/card-summary.d.ts +40 -0
- package/dist/molecules/card-summary/card-summary.js +10 -0
- package/dist/molecules/column-order/column-order.d.ts +3 -1
- package/dist/molecules/column-order/column-order.js +4 -1
- package/dist/molecules/dropdown/dropdown-item.js +6 -17
- package/dist/molecules/dropdown/dropdown.js +10 -7
- package/dist/molecules/modal/modal.d.ts +11 -0
- package/dist/molecules/modal/modal.js +15 -0
- package/dist/molecules/paginate.js +1 -1
- package/dist/molecules/panel/panel-container.d.ts +12 -0
- package/dist/molecules/panel/panel-container.js +9 -0
- package/dist/molecules/panel/panel-field.d.ts +12 -0
- package/dist/molecules/panel/panel-field.js +12 -0
- package/dist/molecules/panel/panel-group.d.ts +14 -0
- package/dist/molecules/panel/panel-group.js +9 -0
- package/dist/molecules/panel/panel.d.ts +31 -0
- package/dist/molecules/panel/panel.js +8 -0
- package/dist/molecules/player-video/modal-video.d.ts +24 -0
- package/dist/molecules/player-video/modal-video.js +18 -0
- package/dist/molecules/player-video/player-video.d.ts +31 -0
- package/dist/molecules/player-video/player-video.js +8 -0
- package/dist/molecules/player-video/thumb-video.d.ts +12 -0
- package/dist/molecules/player-video/thumb-video.js +11 -0
- package/dist/molecules/table-column-management.js +12 -6
- package/dist/molecules/table.d.ts +5 -0
- package/dist/molecules/table.js +18 -25
- package/dist/utils/object-helper.js +1 -1
- package/dist/utils/window-helper.js +8 -7
- package/package.json +2 -2
- package/.docker/build/Dockerfile +0 -18
- package/.docker/build/docker-entrypoint.sh +0 -2
- package/.docker/nginx/nginx.conf +0 -36
- package/.gitlab-ci.yml +0 -4
- package/.nvmrc +0 -1
- package/dist/atoms/button.d.ts.map +0 -1
- package/dist/atoms/checkbox.d.ts.map +0 -1
- package/dist/atoms/col.d.ts.map +0 -1
- package/dist/atoms/container.d.ts.map +0 -1
- package/dist/atoms/icon.d.ts.map +0 -1
- package/dist/atoms/image.d.ts.map +0 -1
- package/dist/atoms/input-datepicker.d.ts.map +0 -1
- package/dist/atoms/input.d.ts.map +0 -1
- package/dist/atoms/label.d.ts.map +0 -1
- package/dist/atoms/link.d.ts.map +0 -1
- package/dist/atoms/panel/panel-container.d.ts.map +0 -1
- package/dist/atoms/panel/panel-field.d.ts.map +0 -1
- package/dist/atoms/panel/panel-group.d.ts.map +0 -1
- package/dist/atoms/panel/panel.d.ts.map +0 -1
- package/dist/atoms/pluxee-icon/base-icon.d.ts.map +0 -1
- package/dist/atoms/pluxee-icon/icon-car.d.ts.map +0 -1
- package/dist/atoms/pluxee-icon/icon-checklist.d.ts.map +0 -1
- package/dist/atoms/pluxee-icon/icon-chevron-down.d.ts.map +0 -1
- package/dist/atoms/pluxee-icon/icon-cost-center.d.ts.map +0 -1
- package/dist/atoms/pluxee-icon/icon-credit-card.d.ts.map +0 -1
- package/dist/atoms/pluxee-icon/icon-credit-management.d.ts.map +0 -1
- package/dist/atoms/pluxee-icon/icon-curve-chart.d.ts.map +0 -1
- package/dist/atoms/pluxee-icon/icon-delete.d.ts.map +0 -1
- package/dist/atoms/pluxee-icon/icon-double-chevron-left.d.ts.map +0 -1
- package/dist/atoms/pluxee-icon/icon-double-chevron-right.d.ts.map +0 -1
- package/dist/atoms/pluxee-icon/icon-download.d.ts.map +0 -1
- package/dist/atoms/pluxee-icon/icon-employee-group.d.ts.map +0 -1
- package/dist/atoms/pluxee-icon/icon-expenses.d.ts.map +0 -1
- package/dist/atoms/pluxee-icon/icon-eye-open-outline.d.ts.map +0 -1
- package/dist/atoms/pluxee-icon/icon-file.d.ts.map +0 -1
- package/dist/atoms/pluxee-icon/icon-fuel.d.ts.map +0 -1
- package/dist/atoms/pluxee-icon/icon-history.d.ts.map +0 -1
- package/dist/atoms/pluxee-icon/icon-home.d.ts.map +0 -1
- package/dist/atoms/pluxee-icon/icon-lock.d.ts.map +0 -1
- package/dist/atoms/pluxee-icon/icon-logout.d.ts.map +0 -1
- package/dist/atoms/pluxee-icon/icon-pen.d.ts.map +0 -1
- package/dist/atoms/pluxee-icon/icon-plus.d.ts.map +0 -1
- package/dist/atoms/pluxee-icon/icon-search.d.ts.map +0 -1
- package/dist/atoms/pluxee-icon/icon-settings.d.ts.map +0 -1
- package/dist/atoms/pluxee-icon/icon-unlock.d.ts.map +0 -1
- package/dist/atoms/pluxee-icon/icon-upload.d.ts.map +0 -1
- package/dist/atoms/pluxee-icon/icon-wheel.d.ts.map +0 -1
- package/dist/atoms/pluxee-icon/pluxee-icon.d.ts.map +0 -1
- package/dist/atoms/radio.d.ts.map +0 -1
- package/dist/atoms/row.d.ts.map +0 -1
- package/dist/atoms/separator.d.ts.map +0 -1
- package/dist/atoms/skeleton.d.ts.map +0 -1
- package/dist/atoms/spinner.d.ts.map +0 -1
- package/dist/atoms/typography.d.ts.map +0 -1
- package/dist/components/accordion/accordion-body.d.ts.map +0 -1
- package/dist/components/accordion/accordion-header.d.ts.map +0 -1
- package/dist/components/accordion/accordion-item.d.ts.map +0 -1
- package/dist/components/accordion/accordion.d.ts.map +0 -1
- package/dist/components/alert-template/alert-provider.d.ts.map +0 -1
- package/dist/components/alert-template/alert-template.d.ts.map +0 -1
- package/dist/components/form-builder/_partials/form-group.d.ts.map +0 -1
- package/dist/components/form-builder/components/button.d.ts.map +0 -1
- package/dist/components/form-builder/components/checkbox.d.ts.map +0 -1
- package/dist/components/form-builder/components/datepicker.d.ts.map +0 -1
- package/dist/components/form-builder/components/dropzone.d.ts.map +0 -1
- package/dist/components/form-builder/components/input-currency.d.ts.map +0 -1
- package/dist/components/form-builder/components/input-mask.d.ts.map +0 -1
- package/dist/components/form-builder/components/input-prefix-suffix.d.ts.map +0 -1
- package/dist/components/form-builder/components/input.d.ts.map +0 -1
- package/dist/components/form-builder/components/password.d.ts.map +0 -1
- package/dist/components/form-builder/components/radio.d.ts.map +0 -1
- package/dist/components/form-builder/components/select.d.ts.map +0 -1
- package/dist/components/form-builder/form-builder-components-list.d.ts.map +0 -1
- package/dist/components/form-builder/form-builder-element.d.ts.map +0 -1
- package/dist/components/form-builder/form-builder.d.ts.map +0 -1
- package/dist/components/form-builder/form-builder.types.d.ts.map +0 -1
- package/dist/components/form-builder/utils/form-builder-helper.d.ts.map +0 -1
- package/dist/components/form-builder/utils/form-builder-item-helper.d.ts.map +0 -1
- package/dist/components/layout/authenticated-layout/authenticated-layout.d.ts.map +0 -1
- package/dist/components/layout/footer/footer-container.d.ts.map +0 -1
- package/dist/components/layout/footer/footer-label.d.ts.map +0 -1
- package/dist/components/layout/layout-content/layout-content.d.ts.map +0 -1
- package/dist/components/layout/layout-main/layout-main.d.ts.map +0 -1
- package/dist/components/layout/layout.d.ts.map +0 -1
- package/dist/components/layout/pluxee-logo/pluxee-logo.d.ts.map +0 -1
- package/dist/components/modal/modal.d.ts.map +0 -1
- package/dist/components/navbar/navbar.d.ts.map +0 -1
- package/dist/components/page-create/page-create.d.ts.map +0 -1
- package/dist/components/page-list/column-management-components/container-drag-drop.d.ts.map +0 -1
- package/dist/components/page-list/column-management-components/item-drag-drop.d.ts.map +0 -1
- package/dist/components/page-list/column-management-components/modal-config.d.ts.map +0 -1
- package/dist/components/page-list/filter-components/button-filter-clear.d.ts.map +0 -1
- package/dist/components/page-list/filter-components/button-filter.d.ts.map +0 -1
- package/dist/components/page-list/filter-components/button-filters.d.ts.map +0 -1
- package/dist/components/page-list/filter-components/filter-form.d.ts.map +0 -1
- package/dist/components/page-list/filters/filter-datepicker.d.ts.map +0 -1
- package/dist/components/page-list/filters/filter-input.d.ts.map +0 -1
- package/dist/components/page-list/filters/filter-select-group.d.ts.map +0 -1
- package/dist/components/page-list/filters/filter-select.d.ts.map +0 -1
- package/dist/components/page-list/filters/index.d.ts.map +0 -1
- package/dist/components/page-list/page-list-config/index.d.ts.map +0 -1
- package/dist/components/page-list/page-list-config/page-list-config-column-management.d.ts.map +0 -1
- package/dist/components/page-list/page-list-config/page-list-config-dropdown.d.ts.map +0 -1
- package/dist/components/page-list/page-list-config/page-list-config-limit.d.ts.map +0 -1
- package/dist/components/page-list/page-list-filters.d.ts.map +0 -1
- package/dist/components/page-list/page-list-get-filters.d.ts.map +0 -1
- package/dist/components/page-list/page-list.d.ts.map +0 -1
- package/dist/components/page-show/page-show.d.ts.map +0 -1
- package/dist/components/side-navigation-bar/side-navigation-bar-item.d.ts.map +0 -1
- package/dist/components/side-navigation-bar/side-navigation-bar.d.ts.map +0 -1
- package/dist/components/tabs/tab-list.d.ts.map +0 -1
- package/dist/components/tabs/tab-panel.d.ts.map +0 -1
- package/dist/components/tabs/tab.d.ts.map +0 -1
- package/dist/components/tabs/tabs.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/molecules/alert.d.ts.map +0 -1
- package/dist/molecules/breadcrumb.d.ts.map +0 -1
- package/dist/molecules/card.d.ts.map +0 -1
- package/dist/molecules/column-order/column-order.d.ts.map +0 -1
- package/dist/molecules/dropdown/dropdown-item.d.ts.map +0 -1
- package/dist/molecules/dropdown/dropdown.d.ts.map +0 -1
- package/dist/molecules/field.d.ts.map +0 -1
- package/dist/molecules/paginate.d.ts.map +0 -1
- package/dist/molecules/table-column-management.d.ts.map +0 -1
- package/dist/molecules/table.d.ts.map +0 -1
- package/dist/utils/date-helper.d.ts.map +0 -1
- package/dist/utils/number-helper.d.ts.map +0 -1
- package/dist/utils/object-helper.d.ts.map +0 -1
- package/dist/utils/storage-helper.d.ts.map +0 -1
- package/dist/utils/string-helper.d.ts.map +0 -1
- package/dist/utils/uri-helper.d.ts.map +0 -1
- package/dist/utils/uuid-helper.d.ts.map +0 -1
- package/dist/utils/validations-helper.d.ts.map +0 -1
- package/dist/utils/validations.d.ts.map +0 -1
- package/dist/utils/window-helper.d.ts.map +0 -1
- package/dist/utils/yup-helper.d.ts.map +0 -1
- package/tsconfig.json +0 -28
|
@@ -16,27 +16,33 @@ export const PageList = (props) => {
|
|
|
16
16
|
const totalRecords = (meta === null || meta === void 0 ? void 0 : meta.to) ? (meta.to - meta.from) + 1 : 0;
|
|
17
17
|
const history = useLocation();
|
|
18
18
|
const search = uriHelper.parse(history.search);
|
|
19
|
+
const header = Array.isArray(children) ? children.find(child => { var _a; return typeof child.type !== 'string' && ((_a = child.type) === null || _a === void 0 ? void 0 : _a.displayName) === 'PageListHeader'; }) : null;
|
|
19
20
|
const filterList = Array.isArray(children) ? children.find(child => { var _a; return typeof child.type !== 'string' && ((_a = child.type) === null || _a === void 0 ? void 0 : _a.displayName) === 'PageListFilters'; }) : null;
|
|
20
21
|
const configList = Array.isArray(children) ? children.find(child => { var _a; return typeof child.type !== 'string' && ((_a = child.type) === null || _a === void 0 ? void 0 : _a.displayName) === 'PageListConfigDropdown'; }) : null;
|
|
21
|
-
const restList = Array.isArray(children) ? children === null || children === void 0 ? void 0 : children.filter(child => child !== filterList && child !== configList) : children;
|
|
22
|
+
const restList = Array.isArray(children) ? children === null || children === void 0 ? void 0 : children.filter(child => child !== filterList && child !== configList && child !== header) : children;
|
|
22
23
|
if (loading) {
|
|
23
24
|
return (React.createElement("div", { className: "my-5" },
|
|
24
25
|
React.createElement(Spinner, null)));
|
|
25
26
|
}
|
|
27
|
+
const showTitleContainer = Boolean(title) ||
|
|
28
|
+
Boolean(extraButtonsInline.length) ||
|
|
29
|
+
Boolean(addButton) ||
|
|
30
|
+
Boolean((Array.isArray(extraButtons) ? extraButtons : extraButtons.items).length);
|
|
26
31
|
return (React.createElement(React.Fragment, null,
|
|
27
|
-
React.createElement(Row, { className: "page-title-container mb-3" },
|
|
28
|
-
title && (React.createElement(Col,
|
|
32
|
+
showTitleContainer && (React.createElement(Row, { className: "page-title-container mb-3" },
|
|
33
|
+
title && (React.createElement(Col, { className: "d-flex align-items-center" },
|
|
29
34
|
React.createElement(Typography, { className: "mb-0", variant: "h4", tag: "h1" }, title))),
|
|
30
35
|
React.createElement(Col, { className: "ms-auto" },
|
|
31
36
|
React.createElement("div", { className: "extra-buttons-container" },
|
|
32
37
|
Boolean(extraButtonsInline.length) &&
|
|
33
|
-
extraButtonsInline.map((item, index) => (React.createElement(Button,
|
|
38
|
+
extraButtonsInline.map((item, index) => (React.createElement(Button, { outline: true, key: `export-button-${index}`, ...item },
|
|
34
39
|
item.label,
|
|
35
|
-
item.icon && React.createElement(Icon,
|
|
40
|
+
item.icon && React.createElement(Icon, { ...item.icon })))),
|
|
36
41
|
Boolean(addButton) && (React.createElement(Button, { tag: Link, href: addButton === null || addButton === void 0 ? void 0 : addButton.uri }, addButton === null || addButton === void 0 ? void 0 :
|
|
37
42
|
addButton.label,
|
|
38
43
|
React.createElement(Icon, { icon: "fa-plus", pluxee: true, className: "ms-1" }))),
|
|
39
|
-
Boolean((Array.isArray(extraButtons) ? extraButtons : extraButtons.items).length) && (React.createElement(Dropdown, { outline: true, color: "primary", align: "right", label: Array.isArray(extraButtons) ? React.createElement(Icon, { icon: "faEllipsisH" }) : extraButtons.label, items: Array.isArray(extraButtons) ? extraButtons : extraButtons.items }))))),
|
|
44
|
+
Boolean((Array.isArray(extraButtons) ? extraButtons : extraButtons.items).length) && (React.createElement(Dropdown, { outline: true, color: "primary", align: "right", label: Array.isArray(extraButtons) ? React.createElement(Icon, { icon: "faEllipsisH" }) : extraButtons.label, items: Array.isArray(extraButtons) ? extraButtons : extraButtons.items })))))),
|
|
45
|
+
Boolean(header) && header,
|
|
40
46
|
!!customizeFilter && customizeFilter,
|
|
41
47
|
!customizeFilter && filterList && (React.createElement(PageListGetFilters, { filterList: filterList, search: search, filter: filter, key: JSON.stringify(history) }, configList)),
|
|
42
48
|
React.createElement("div", null, restList),
|
|
@@ -21,6 +21,6 @@ export declare type PageShowProps = {
|
|
|
21
21
|
};
|
|
22
22
|
extraButtonsInline?: ExtraButtonsInlineProps[];
|
|
23
23
|
};
|
|
24
|
-
export declare const PageShow:
|
|
24
|
+
export declare const PageShow: (props: PageShowProps) => JSX.Element;
|
|
25
25
|
export {};
|
|
26
26
|
//# sourceMappingURL=page-show.d.ts.map
|
|
@@ -6,14 +6,14 @@ export const PageShow = (props) => {
|
|
|
6
6
|
return React.createElement(Spinner, null);
|
|
7
7
|
return (React.createElement("div", null,
|
|
8
8
|
React.createElement(Row, { className: "page-title-container mb-3" },
|
|
9
|
-
React.createElement(Col,
|
|
9
|
+
React.createElement(Col, { className: "d-flex align-items-center" },
|
|
10
10
|
React.createElement(Typography, { variant: "h4", tag: "h1", subTitle: subTitle }, title)),
|
|
11
11
|
React.createElement(Col, { className: "ms-auto" },
|
|
12
12
|
React.createElement("div", { className: "extra-buttons-container" },
|
|
13
13
|
Boolean(extraButtonsInline.length) &&
|
|
14
|
-
extraButtonsInline.map((item, index) => (React.createElement(Button,
|
|
14
|
+
extraButtonsInline.map((item, index) => (React.createElement(Button, { outline: true, key: `export-button-${index}`, ...item },
|
|
15
15
|
item.label,
|
|
16
|
-
item.icon && React.createElement(Icon,
|
|
16
|
+
item.icon && React.createElement(Icon, { ...item.icon })))),
|
|
17
17
|
Boolean((Array.isArray(extraButtons) ? extraButtons : extraButtons.items).length) && (React.createElement(Dropdown, { outline: true, color: "secondary", align: "right", label: Array.isArray(extraButtons) ? React.createElement(Icon, { icon: "faEllipsisH" }) : extraButtons.label, items: Array.isArray(extraButtons) ? extraButtons : extraButtons.items })),
|
|
18
18
|
Boolean(backButton) && (React.createElement(Button, { tag: Link, href: backButton === null || backButton === void 0 ? void 0 : backButton.uri, color: "primary", outline: true },
|
|
19
19
|
React.createElement(Icon, { icon: "faAngleLeft", className: "me-1" }), backButton === null || backButton === void 0 ? void 0 :
|
|
@@ -8,6 +8,7 @@ export declare type SideNavigationBarItemProps = LinkProps & {
|
|
|
8
8
|
items?: SideNavigationBarItemProps[];
|
|
9
9
|
dataLink?: boolean;
|
|
10
10
|
pathname?: string;
|
|
11
|
+
iconSize?: 'lg' | 'md' | 'sm';
|
|
11
12
|
};
|
|
12
13
|
export declare const SideNavigationBarItem: React.FC<SideNavigationBarItemProps>;
|
|
13
14
|
//# sourceMappingURL=side-navigation-bar-item.d.ts.map
|
|
@@ -1,38 +1,52 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
1
|
import React, { useState } from 'react';
|
|
13
2
|
import { Icon } from '../../atoms/icon';
|
|
14
3
|
import { Link } from '../../index';
|
|
15
|
-
const InnerItem = ({ icon, pluxee, label, dataLink }) => {
|
|
4
|
+
const InnerItem = ({ icon, iconSize = 'md', pluxee, label, dataLink }) => {
|
|
16
5
|
return (React.createElement(React.Fragment, null,
|
|
17
|
-
icon && React.createElement(Icon, { icon: icon, pluxee: pluxee }),
|
|
18
|
-
React.createElement("span", { className: "link-name", "data-link": `${dataLink ? 'link' : 'container'}` }, label)));
|
|
6
|
+
icon && React.createElement(Icon, { title: label, icon: icon, pluxee: pluxee, size: iconSize }),
|
|
7
|
+
React.createElement("span", { title: label, style: { ...(iconSize === 'sm' && { fontSize: 12 }) }, className: "link-name", "data-link": `${dataLink ? 'link' : 'container'}` }, label)));
|
|
19
8
|
};
|
|
20
9
|
export const SideNavigationBarItem = (props) => {
|
|
21
10
|
var _a;
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const sanitizedHref = (attrs === null || attrs === void 0 ? void 0 : attrs.href) ? (_a = attrs === null || attrs === void 0 ? void 0 : attrs.href) === null || _a === void 0 ? void 0 : _a.split('?')[0] : '';
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
|
|
11
|
+
const [submenuOpen, setSubmenuOpen] = useState(false);
|
|
12
|
+
const { className = '', items, index, pathname = '', ...attrs } = props;
|
|
13
|
+
const sanitizedHref = ((attrs === null || attrs === void 0 ? void 0 : attrs.href) ? (_a = attrs === null || attrs === void 0 ? void 0 : attrs.href) === null || _a === void 0 ? void 0 : _a.split('?')[0] : '/').split('/')[1];
|
|
14
|
+
const sanitizedPath = pathname === null || pathname === void 0 ? void 0 : pathname.split('/')[1];
|
|
15
|
+
const isHomePage = ((attrs === null || attrs === void 0 ? void 0 : attrs.href) === '/' && pathname === '/');
|
|
16
|
+
const isPathActive = sanitizedHref && (sanitizedPath === null || sanitizedPath === void 0 ? void 0 : sanitizedPath.includes(sanitizedHref));
|
|
17
|
+
const activeClass = (isHomePage || isPathActive) && !className.includes('subitem') ? ' active' : '';
|
|
18
|
+
const itemclass = items && items.length > 0 ? ' submenu-li' : ' link-li';
|
|
19
|
+
const submenuActive = items && items.some(item => {
|
|
20
|
+
var _a, _b;
|
|
21
|
+
const linkpath = ((item === null || item === void 0 ? void 0 : item.href) ? (_a = item === null || item === void 0 ? void 0 : item.href) === null || _a === void 0 ? void 0 : _a.split('?')[0] : '/').split('/').slice(-1)[0];
|
|
22
|
+
return (_b = pathname === null || pathname === void 0 ? void 0 : pathname.split('/')) === null || _b === void 0 ? void 0 : _b.some(sub => sub === linkpath);
|
|
23
|
+
})
|
|
24
|
+
? ' active'
|
|
25
|
+
: '';
|
|
26
|
+
const handleSubmenuClick = () => {
|
|
27
|
+
const sidebar = document.querySelector('.sidebar');
|
|
28
|
+
if (!sidebar.className.includes('active') && !sidebar.className.includes('mobile')) {
|
|
29
|
+
const btn = document.querySelector('.btn-sidebar');
|
|
30
|
+
btn === null || btn === void 0 ? void 0 : btn.click();
|
|
31
|
+
setSubmenuOpen(true);
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
setSubmenuOpen(prev => !prev);
|
|
35
|
+
};
|
|
36
|
+
return (React.createElement("li", { className: `${className}${activeClass}${itemclass}${submenuActive}` }, items
|
|
29
37
|
? React.createElement("div", { className: "sub-menu-container" },
|
|
30
|
-
React.createElement("div", { className:
|
|
38
|
+
React.createElement("div", { onClick: handleSubmenuClick, className: `sub-menu${submenuOpen ? ' open' : ''}` },
|
|
31
39
|
React.createElement("div", null,
|
|
32
|
-
React.createElement(InnerItem,
|
|
33
|
-
React.createElement(Icon, { icon: "fa-
|
|
34
|
-
|
|
35
|
-
React.createElement("ul", { className: "sub-menu-list" }, items.map((item, i) =>
|
|
36
|
-
|
|
37
|
-
|
|
40
|
+
React.createElement(InnerItem, { ...props })),
|
|
41
|
+
React.createElement(Icon, { pluxee: true, icon: "fa-chevron-down" })),
|
|
42
|
+
items && React.createElement(React.Fragment, null,
|
|
43
|
+
React.createElement("ul", { className: "sub-menu-list" }, items.map((item, i) => {
|
|
44
|
+
var _a;
|
|
45
|
+
const firstpath = pathname === null || pathname === void 0 ? void 0 : pathname.split('/')[1];
|
|
46
|
+
const linkpath = ((item === null || item === void 0 ? void 0 : item.href) ? (_a = item === null || item === void 0 ? void 0 : item.href) === null || _a === void 0 ? void 0 : _a.split('?')[0] : '/').split('/')[1];
|
|
47
|
+
const itemclass = Boolean(linkpath) && firstpath === linkpath ? 'subitem active' : 'subitem';
|
|
48
|
+
return (React.createElement(SideNavigationBarItem, { key: `side-navigation-bar-item-${index}-${i}`, iconSize: "sm", pathname: pathname, className: itemclass, ...{ ...item, index: i }, icon: "fa-circle", pluxee: true }));
|
|
49
|
+
}))))
|
|
50
|
+
: React.createElement(Link, { ...attrs },
|
|
51
|
+
React.createElement(InnerItem, { ...props, dataLink: true }))));
|
|
38
52
|
};
|
|
@@ -7,11 +7,11 @@ import { useLocation } from 'react-router-dom';
|
|
|
7
7
|
const STORAGE_NAME = 'SIDEBAR_ACTIVE';
|
|
8
8
|
export const SideNavigationBar = memo((props) => {
|
|
9
9
|
const { logout, items = [], active = true, menuLabel = 'Menu' } = props;
|
|
10
|
+
const navlist = useRef(null);
|
|
11
|
+
const { pathname, search } = useLocation();
|
|
10
12
|
const activeStorage = storageHelper.get(STORAGE_NAME);
|
|
11
13
|
const showActive = activeStorage ? activeStorage === '1' : active;
|
|
12
14
|
storageHelper.set(STORAGE_NAME, showActive ? '1' : '0');
|
|
13
|
-
const navlist = useRef(null);
|
|
14
|
-
const { pathname, search } = useLocation();
|
|
15
15
|
const uri = `${pathname}${search}`;
|
|
16
16
|
useEffect(() => {
|
|
17
17
|
const btnMobile = document.querySelector('.btn-sidebar-mobile');
|
|
@@ -49,14 +49,14 @@ export const SideNavigationBar = memo((props) => {
|
|
|
49
49
|
React.createElement(Icon, { icon: "fa-double-chevron-right", pluxee: true }),
|
|
50
50
|
" ",
|
|
51
51
|
React.createElement("span", { className: "link-name" }, menuLabel))),
|
|
52
|
-
items.map((item, index) => (React.createElement(SideNavigationBarItem,
|
|
53
|
-
!!(logout === null || logout === void 0 ? void 0 : logout.href) && (React.createElement(SideNavigationBarItem,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
52
|
+
items.map((item, index) => (React.createElement(SideNavigationBarItem, { pluxee: true, pathname: pathname, key: `side-navigation-bar-item-${index}`, ...{ ...item, index } }))),
|
|
53
|
+
!!(logout === null || logout === void 0 ? void 0 : logout.href) && (React.createElement(SideNavigationBarItem, { pathname: pathname, ...{
|
|
54
|
+
className: 'link-logout',
|
|
55
|
+
icon: 'fa-logout',
|
|
56
|
+
pluxee: true,
|
|
57
|
+
label: logout.label || 'Logout',
|
|
58
|
+
href: logout.href
|
|
59
|
+
} })))),
|
|
60
60
|
React.createElement("div", { className: "side-bar-mobile-overlay" }),
|
|
61
61
|
React.createElement("button", { id: "btn-side-bar-mobile-toogle", type: "button", className: "btn btn-sidebar-mobile" },
|
|
62
62
|
React.createElement(Icon, { icon: "fa-double-chevron-left", pluxee: true }),
|
|
@@ -18,13 +18,17 @@ export const Tabs = ({ children }) => {
|
|
|
18
18
|
const getParams = (tab) => {
|
|
19
19
|
return ({
|
|
20
20
|
active: getActive(tab),
|
|
21
|
-
href: uriHelper.stringify(
|
|
21
|
+
href: uriHelper.stringify({
|
|
22
|
+
...params,
|
|
23
|
+
...(params.page && { page: 1 }),
|
|
24
|
+
tab
|
|
25
|
+
})
|
|
22
26
|
});
|
|
23
27
|
};
|
|
24
28
|
return (React.createElement("div", { className: "tabs" },
|
|
25
29
|
React.createElement(TabList, null, (_a = tabList.props.children) === null || _a === void 0 ? void 0 : _a.map((child, index) => {
|
|
26
30
|
var _a;
|
|
27
|
-
return (React.createElement(Tab,
|
|
31
|
+
return (React.createElement(Tab, { key: `tab-child-${index}`, ...getParams(index) }, (_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.children));
|
|
28
32
|
})),
|
|
29
33
|
tabPanels.filter(item => item).map((child, index) => {
|
|
30
34
|
var _a;
|