@erpsquad/common 1.8.41 → 1.8.43
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/@types/alltypes.d.ts +3 -0
- package/dist/@types/common.d.ts +1 -0
- package/dist/@types/createPalette.d.ts +47 -0
- package/dist/@types/index.d.ts +5 -0
- package/dist/@types/page.d.ts +4 -0
- package/dist/@types/pagination-model.d.ts +4 -0
- package/dist/_virtual/index/index.esm2.js +4 -2
- package/dist/_virtual/index/index.esm2.js.map +1 -1
- package/dist/_virtual/index/index.esm3.js +2 -4
- package/dist/_virtual/index/index.esm3.js.map +1 -1
- package/dist/_virtual/index/index2.js +1 -1
- package/dist/_virtual/index/index3.js +1 -1
- package/dist/api-client/api.accounting/api-types.d.ts +15883 -0
- package/dist/api-client/api.drive/api-types.d.ts +696 -0
- package/dist/api-client/api.inventory/api-types.d.ts +6110 -0
- package/dist/api-client/api.inventory/api.d.ts +2 -5
- package/dist/api-client/api.manufacturing/api-types.d.ts +10066 -0
- package/dist/api-client/api.manufacturing/api.d.ts +102 -15
- package/dist/api-client/api.purchase/api-types.d.ts +6715 -0
- package/dist/api-client/api.purchase/api.d.ts +2 -3
- package/dist/api-client/api.rbac/api-types.d.ts +1753 -0
- package/dist/api-client/api.rental/api-types.d.ts +15666 -0
- package/dist/api-client/api.sales/api-types.d.ts +8258 -0
- package/dist/api-client/api.system-feature/api-types.d.ts +2875 -0
- package/dist/api-client/api.system-feature/api.d.ts +2 -0
- package/dist/api-client/api.user/api-types.d.ts +95 -0
- package/dist/assets/common-component/index.d.ts +1 -0
- package/dist/assets/dynamic-svg-icon/dynamic-svg-icon.d.ts +8 -0
- package/dist/assets/dynamic-svg-icon/index.d.ts +2 -0
- package/dist/assets/images.d.ts +208 -0
- package/dist/assets/index.d.ts +5 -0
- package/dist/assets/view-modal/calendar-icon.d.ts +2 -0
- package/dist/assets/view-modal/chart-icon.d.ts +2 -0
- package/dist/assets/view-modal/gantt-icon.d.ts +2 -0
- package/dist/assets/view-modal/grid-icon.d.ts +2 -0
- package/dist/assets/view-modal/index.d.ts +12 -0
- package/dist/assets/view-modal/kanban-icon.d.ts +2 -0
- package/dist/assets/view-modal/table-icon.d.ts +2 -0
- package/dist/components/Dashboard/dashboard-card.d.ts +7 -0
- package/dist/components/Dashboard/dashboard-header.d.ts +7 -0
- package/dist/components/Dashboard/index.d.ts +4 -0
- package/dist/components/accordion/accordion.d.ts +9 -0
- package/dist/components/accordion/index.d.ts +2 -0
- package/dist/components/action-bar/action-bar/index.esm.js +2 -2
- package/dist/components/action-bar/action-bar/index.js +11 -11
- package/dist/components/action-bar/action-bar.d.ts +48 -0
- package/dist/components/action-bar/index.d.ts +2 -0
- package/dist/components/activity-tag/activity-tag.d.ts +3 -0
- package/dist/components/activity-tag/index.d.ts +2 -0
- package/dist/components/activityArea/activityArea.d.ts +3 -0
- package/dist/components/activityArea/index.d.ts +2 -0
- package/dist/components/activityLog/activity-log.d.ts +3 -0
- package/dist/components/activityLog/index.d.ts +2 -0
- package/dist/components/alert/alert.d.ts +4 -0
- package/dist/components/alert/index.d.ts +2 -0
- package/dist/components/appbar/appbar.d.ts +3 -0
- package/dist/components/appbar/index.d.ts +2 -0
- package/dist/components/approval-wrapper/approval-wrapper/index.esm.js +1 -1
- package/dist/components/approval-wrapper/approval-wrapper/index.esm.js.map +1 -1
- package/dist/components/approval-wrapper/approval-wrapper/index.js +4 -4
- package/dist/components/approval-wrapper/approval-wrapper/index.js.map +1 -1
- package/dist/components/approval-wrapper/approval-wrapper.d.ts +2 -0
- package/dist/components/approval-wrapper/index.d.ts +2 -0
- package/dist/components/avatar/avatar.d.ts +3 -0
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/board/board.d.ts +19 -0
- package/dist/components/board/columnHeader.d.ts +2 -0
- package/dist/components/board/index.d.ts +4 -0
- package/dist/components/bread-crumb/bread-crumb.d.ts +13 -0
- package/dist/components/bread-crumb/index.d.ts +2 -0
- package/dist/components/button/button.d.ts +4 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/calculation-summary/calculation-summary.d.ts +11 -0
- package/dist/components/calculation-summary/components/discount-summary.d.ts +13 -0
- package/dist/components/calculation-summary/components/index.d.ts +10 -0
- package/dist/components/calculation-summary/components/items-summary.d.ts +10 -0
- package/dist/components/calculation-summary/components/subtotal-summary.d.ts +10 -0
- package/dist/components/calculation-summary/components/taxes-and-charges-summary.d.ts +14 -0
- package/dist/components/calculation-summary/components/total-summary.d.ts +10 -0
- package/dist/components/calculation-summary/index.d.ts +3 -0
- package/dist/components/calendar/calendar.d.ts +3 -0
- package/dist/components/calendar/index.d.ts +2 -0
- package/dist/components/card-wrapper/card-wrapper.d.ts +7 -0
- package/dist/components/card-wrapper/index.d.ts +2 -0
- package/dist/components/change-user-password-modal/change-user-password-modal/index.esm.js +2 -2
- package/dist/components/change-user-password-modal/change-user-password-modal/index.js +3 -3
- package/dist/components/change-user-password-modal/change-user-password-modal.d.ts +6 -0
- package/dist/components/change-user-password-modal/index.d.ts +2 -0
- package/dist/components/charts/ChartLegends.d.ts +7 -0
- package/dist/components/charts/areaLinerChart.d.ts +18 -0
- package/dist/components/charts/bar-chart/bar-chart.d.ts +15 -0
- package/dist/components/charts/bar-chart/index.d.ts +2 -0
- package/dist/components/charts/barChart/barChart.d.ts +19 -0
- package/dist/components/charts/barChart/index.d.ts +2 -0
- package/dist/components/charts/barLineChart/barLinechart.d.ts +29 -0
- package/dist/components/charts/barLineChart/index.d.ts +2 -0
- package/dist/components/charts/donut-chart/donut-chart.d.ts +21 -0
- package/dist/components/charts/donut-chart/index.d.ts +2 -0
- package/dist/components/charts/donutChart/DonutChart.d.ts +21 -0
- package/dist/components/charts/donutChart/index.d.ts +2 -0
- package/dist/components/charts/groupBarChart/GroupBarChart.d.ts +9 -0
- package/dist/components/charts/groupBarChart/index.d.ts +2 -0
- package/dist/components/charts/index.d.ts +12 -0
- package/dist/components/charts/line-chart/area-line-chart.d.ts +15 -0
- package/dist/components/charts/line-chart/area-lineChart/index.esm.js +2 -2
- package/dist/components/charts/line-chart/area-lineChart/index.esm.js.map +1 -1
- package/dist/components/charts/line-chart/area-lineChart/index.js.map +1 -1
- package/dist/components/charts/line-chart/area-lineChart.d.ts +15 -0
- package/dist/components/charts/line-chart/index.d.ts +6 -0
- package/dist/components/charts/line-chart/line-chart.d.ts +14 -0
- package/dist/components/charts/multiLineChart/index.d.ts +2 -0
- package/dist/components/charts/multiLineChart/multi-line-chart.d.ts +20 -0
- package/dist/components/checkbox/checkbox.d.ts +4 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/chip/chip.d.ts +10 -0
- package/dist/components/chip/index.d.ts +2 -0
- package/dist/components/chip-generator/chip-generator.d.ts +27 -0
- package/dist/components/chip-generator/index.d.ts +2 -0
- package/dist/components/color-picker-input/color-picker-input.d.ts +7 -0
- package/dist/components/color-picker-input/index.d.ts +2 -0
- package/dist/components/confirm-modal/confirm-modal.d.ts +21 -0
- package/dist/components/confirm-modal/index.d.ts +3 -0
- package/dist/components/country-select/country-select.d.ts +6 -0
- package/dist/components/country-select/index.d.ts +2 -0
- package/dist/components/custom-snackbar/custom-snackbar.d.ts +10 -0
- package/dist/components/custom-snackbar/index.d.ts +2 -0
- package/dist/components/custom-toggle-switch/custom-toggle-switch.d.ts +10 -0
- package/dist/components/custom-toggle-switch/index.d.ts +2 -0
- package/dist/components/date-picker/date-picker.d.ts +20 -0
- package/dist/components/date-picker/index.d.ts +2 -0
- package/dist/components/date-range-picker/date-range-picker.d.ts +3 -0
- package/dist/components/date-range-picker/index.d.ts +2 -0
- package/dist/components/date-time-picker/date-time-picker.d.ts +20 -0
- package/dist/components/date-time-picker/index.d.ts +2 -0
- package/dist/components/dropdown-button/dropdown-button.d.ts +24 -0
- package/dist/components/dropdown-button/index.d.ts +2 -0
- package/dist/components/dynamic-layout-wrapper/dynamic-layout-wrapper/index.esm.js +107 -1
- package/dist/components/dynamic-layout-wrapper/dynamic-layout-wrapper/index.esm.js.map +1 -1
- package/dist/components/dynamic-layout-wrapper/dynamic-layout-wrapper/index.js +7 -4
- package/dist/components/dynamic-layout-wrapper/dynamic-layout-wrapper/index.js.map +1 -1
- package/dist/components/dynamic-layout-wrapper/dynamic-layout-wrapper.d.ts +67 -0
- package/dist/components/dynamic-layout-wrapper/index.d.ts +2 -0
- package/dist/components/dynamic-modal.d.ts +9 -0
- package/dist/components/editor/custom-editor.d.ts +9 -0
- package/dist/components/editor/index.d.ts +2 -0
- package/dist/components/entity-view-wrapper/entity-view-wrapper.d.ts +26 -0
- package/dist/components/entity-view-wrapper/index.d.ts +2 -0
- package/dist/components/examples/FlexibleReduxExample/index.esm.js +154 -0
- package/dist/components/examples/FlexibleReduxExample/index.esm.js.map +1 -0
- package/dist/components/examples/FlexibleReduxExample/index.js +19 -0
- package/dist/components/examples/FlexibleReduxExample/index.js.map +1 -0
- package/dist/components/examples/FlexibleReduxExample.d.ts +8 -0
- package/dist/components/examples/index.d.ts +2 -0
- package/dist/components/expandable-summary-wrapper/expandable-summary-wrapper.d.ts +18 -0
- package/dist/components/expandable-summary-wrapper/index.d.ts +2 -0
- package/dist/components/fallback/fallback.d.ts +9 -0
- package/dist/components/fallback/index.d.ts +2 -0
- package/dist/components/filter/components/add-filter.d.ts +4 -0
- package/dist/components/filter/components/add-group.d.ts +4 -0
- package/dist/components/filter/components/combinator-select.d.ts +2 -0
- package/dist/components/filter/components/delete-group.d.ts +4 -0
- package/dist/components/filter/components/field-select.d.ts +4 -0
- package/dist/components/filter/components/index.d.ts +16 -0
- package/dist/components/filter/components/operator-select.d.ts +4 -0
- package/dist/components/filter/components/remove-action.d.ts +4 -0
- package/dist/components/filter/components/value-editor.d.ts +4 -0
- package/dist/components/filter/fields.d.ts +5 -0
- package/dist/components/filter/filter/index.esm.js +2 -2
- package/dist/components/filter/filter/index.js +7 -7
- package/dist/components/filter/filter.d.ts +21 -0
- package/dist/components/filter/index.d.ts +4 -0
- package/dist/components/footer/footer.d.ts +21 -0
- package/dist/components/footer/index.d.ts +2 -0
- package/dist/components/footer/index.esm.js +71 -0
- package/dist/components/footer/index.esm.js.map +1 -0
- package/dist/components/footer/index.js +7 -0
- package/dist/components/footer/index.js.map +1 -0
- package/dist/components/footer.d.ts +4 -0
- package/dist/components/form-control/form-builder/element-controller/index.esm.js +96 -0
- package/dist/components/form-control/form-builder/element-controller/index.esm.js.map +1 -0
- package/dist/components/form-control/form-builder/element-controller/index.js +7 -0
- package/dist/components/form-control/form-builder/element-controller/index.js.map +1 -0
- package/dist/components/form-control/form-builder/element-controller.d.ts +14 -0
- package/dist/components/form-control/form-builder/form-builder-element/button.d.ts +16 -0
- package/dist/components/form-control/form-builder/form-builder-element/checkbox.d.ts +20 -0
- package/dist/components/form-control/form-builder/form-builder-element/chip-or-placeholder.d.ts +13 -0
- package/dist/components/form-control/form-builder/form-builder-element/date-range-picker.d.ts +24 -0
- package/dist/components/form-control/form-builder/form-builder-element/date-time.d.ts +26 -0
- package/dist/components/form-control/form-builder/form-builder-element/date.d.ts +21 -0
- package/dist/components/form-control/form-builder/form-builder-element/dynamic-currency-input.d.ts +30 -0
- package/dist/components/form-control/form-builder/form-builder-element/dynamic-element-hoc.d.ts +19 -0
- package/dist/components/form-control/form-builder/form-builder-element/dynamic-input-select.d.ts +29 -0
- package/dist/components/form-control/form-builder/form-builder-element/dynamic-select.d.ts +50 -0
- package/dist/components/form-control/form-builder/form-builder-element/dynamic-tags-input.d.ts +24 -0
- package/dist/components/form-control/form-builder/form-builder-element/dynamic-text-editor.d.ts +11 -0
- package/dist/components/form-control/form-builder/form-builder-element/index.d.ts +46 -0
- package/dist/components/form-control/form-builder/form-builder-element/info.d.ts +20 -0
- package/dist/components/form-control/form-builder/form-builder-element/location-add-modal/index.d.ts +2 -0
- package/dist/components/form-control/form-builder/form-builder-element/location-add-modal/location-add-modal.d.ts +11 -0
- package/dist/components/form-control/form-builder/form-builder-element/media.d.ts +4 -0
- package/dist/components/form-control/form-builder/form-builder-element/phone.d.ts +3 -0
- package/dist/components/form-control/form-builder/form-builder-element/radio-button.d.ts +23 -0
- package/dist/components/form-control/form-builder/form-builder-element/section.d.ts +21 -0
- package/dist/components/form-control/form-builder/form-builder-element/select-configuration.d.ts +14 -0
- package/dist/components/form-control/form-builder/form-builder-element/select.d.ts +4 -0
- package/dist/components/form-control/form-builder/form-builder-element/table/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/table/index.js +4 -4
- package/dist/components/form-control/form-builder/form-builder-element/table/index.js.map +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/table.d.ts +30 -0
- package/dist/components/form-control/form-builder/form-builder-element/text.d.ts +4 -0
- package/dist/components/form-control/form-builder/form-builder-element/time.d.ts +4 -0
- package/dist/components/form-control/form-builder/form-builder-element/toggle-button.d.ts +17 -0
- package/dist/components/form-control/form-builder/index.d.ts +3 -0
- package/dist/components/form-control/form-parser/data/index.esm.js +80 -0
- package/dist/components/form-control/form-parser/data/index.esm.js.map +1 -0
- package/dist/components/form-control/form-parser/data/index.js +2 -0
- package/dist/components/form-control/form-parser/data/index.js.map +1 -0
- package/dist/components/form-control/form-parser/data.d.ts +44 -0
- package/dist/components/form-control/form-parser/form-parser.d.ts +3 -0
- package/dist/components/form-control/form-parser/form-section.d.ts +65 -0
- package/dist/components/form-control/form-parser/form-switcher.d.ts +2 -0
- package/dist/components/form-control/form-parser/index.d.ts +8 -0
- package/dist/components/form-control/index.d.ts +2 -0
- package/dist/components/form-header/form-header.d.ts +14 -0
- package/dist/components/form-header/index.d.ts +2 -0
- package/dist/components/gantt/gantt.d.ts +10 -0
- package/dist/components/gantt/index.d.ts +2 -0
- package/dist/components/grid/custom-grid-card/custom-grid-card/index.esm.js +1 -1
- package/dist/components/grid/custom-grid-card/custom-grid-card/index.js +4 -4
- package/dist/components/grid/custom-grid-card/custom-grid-card.d.ts +14 -0
- package/dist/components/grid/custom-grid-card/index.d.ts +2 -0
- package/dist/components/grid/grid-card/grid-card.d.ts +1 -0
- package/dist/components/grid/grid-card/index.d.ts +2 -0
- package/dist/components/grid/grid-wrapper/grid-wrapper.d.ts +8 -0
- package/dist/components/grid/grid-wrapper/index.d.ts +2 -0
- package/dist/components/grid/index.d.ts +3 -0
- package/dist/components/grid-fallback/grid-fallback.d.ts +9 -0
- package/dist/components/grid-fallback/index.d.ts +2 -0
- package/dist/components/header/components/index.d.ts +1 -0
- package/dist/components/header/components/notification-menu/index.d.ts +2 -0
- package/dist/components/header/components/notification-menu/notification-menu/index.esm.js +1 -1
- package/dist/components/header/components/notification-menu/notification-menu/index.js +28 -28
- package/dist/components/header/components/notification-menu/notification-menu.d.ts +2 -0
- package/dist/components/header/header/index.esm.js +1 -1
- package/dist/components/header/header/index.js +11 -11
- package/dist/components/header/header-enhanced/index.esm.js +405 -0
- package/dist/components/header/header-enhanced/index.esm.js.map +1 -0
- package/dist/components/header/header-enhanced/index.js +33 -0
- package/dist/components/header/header-enhanced/index.js.map +1 -0
- package/dist/components/header/header-enhanced.d.ts +19 -0
- package/dist/components/header/header.d.ts +4 -0
- package/dist/components/header/index.d.ts +6 -0
- package/dist/components/header/redux/actionCreator.d.ts +3 -0
- package/dist/components/header/redux/index.d.ts +5 -0
- package/dist/components/header/redux/reducer/index.esm.js +6 -1
- package/dist/components/header/redux/reducer/index.esm.js.map +1 -1
- package/dist/components/header/redux/reducer/index.js +1 -1
- package/dist/components/header/redux/reducer/index.js.map +1 -1
- package/dist/components/header/redux/reducer.d.ts +73 -0
- package/dist/components/header/redux/state.d.ts +14 -0
- package/dist/components/header copy/index.esm.js +131 -0
- package/dist/components/header copy/index.esm.js.map +1 -0
- package/dist/components/header copy/index.js +11 -0
- package/dist/components/header copy/index.js.map +1 -0
- package/dist/components/header copy.d.ts +4 -0
- package/dist/components/header-card/header-card.d.ts +9 -0
- package/dist/components/header-card/index.d.ts +2 -0
- package/dist/components/hr-line/hr-line.d.ts +3 -0
- package/dist/components/hr-line/index.d.ts +2 -0
- package/dist/components/icons/action-arrow.d.ts +4 -0
- package/dist/components/icons/action.d.ts +4 -0
- package/dist/components/icons/add-circle.d.ts +4 -0
- package/dist/components/icons/arrow-bidirectional.d.ts +4 -0
- package/dist/components/icons/arrow-circle-down.d.ts +4 -0
- package/dist/components/icons/arrow-down-three.d.ts +4 -0
- package/dist/components/icons/arrow-down-two.d.ts +4 -0
- package/dist/components/icons/arrow-down.d.ts +4 -0
- package/dist/components/icons/arrow-up-down.d.ts +4 -0
- package/dist/components/icons/arrow-up-two.d.ts +4 -0
- package/dist/components/icons/assignments.d.ts +4 -0
- package/dist/components/icons/blank-circle.d.ts +4 -0
- package/dist/components/icons/block-filled.d.ts +6 -0
- package/dist/components/icons/calendar-add.d.ts +4 -0
- package/dist/components/icons/calendar.d.ts +4 -0
- package/dist/components/icons/check-box.d.ts +3 -0
- package/dist/components/icons/checkbox-square.d.ts +4 -0
- package/dist/components/icons/circular-arrow-setting.d.ts +6 -0
- package/dist/components/icons/clock.d.ts +4 -0
- package/dist/components/icons/close.d.ts +6 -0
- package/dist/components/icons/coin-outline.d.ts +4 -0
- package/dist/components/icons/copy.d.ts +4 -0
- package/dist/components/icons/coupon/index.esm.js +29 -0
- package/dist/components/icons/coupon/index.esm.js.map +1 -0
- package/dist/components/icons/coupon/index.js +7 -0
- package/dist/components/icons/coupon/index.js.map +1 -0
- package/dist/components/icons/coupon.d.ts +4 -0
- package/dist/components/icons/criteria.d.ts +4 -0
- package/dist/components/icons/cross-hire.d.ts +6 -0
- package/dist/components/icons/cross.d.ts +4 -0
- package/dist/components/icons/custom-styled-icon.d.ts +6 -0
- package/dist/components/icons/dashboard.d.ts +4 -0
- package/dist/components/icons/document-download.d.ts +4 -0
- package/dist/components/icons/document.d.ts +4 -0
- package/dist/components/icons/dollar-circle-filled.d.ts +6 -0
- package/dist/components/icons/dollar-circle.d.ts +4 -0
- package/dist/components/icons/edit.d.ts +4 -0
- package/dist/components/icons/email.d.ts +4 -0
- package/dist/components/icons/export.d.ts +6 -0
- package/dist/components/icons/eye-off.d.ts +4 -0
- package/dist/components/icons/eye-plus-circle.d.ts +6 -0
- package/dist/components/icons/eye.d.ts +4 -0
- package/dist/components/icons/filled-circle.d.ts +4 -0
- package/dist/components/icons/filter-remove.d.ts +4 -0
- package/dist/components/icons/filter.d.ts +4 -0
- package/dist/components/icons/folder-save.d.ts +4 -0
- package/dist/components/icons/grid.d.ts +4 -0
- package/dist/components/icons/hashtag.d.ts +4 -0
- package/dist/components/icons/image.d.ts +4 -0
- package/dist/components/icons/import.d.ts +4 -0
- package/dist/components/icons/index.d.ts +177 -0
- package/dist/components/icons/info-circle.d.ts +4 -0
- package/dist/components/icons/info.d.ts +6 -0
- package/dist/components/icons/link-horizontal.d.ts +4 -0
- package/dist/components/icons/link.d.ts +4 -0
- package/dist/components/icons/location.d.ts +4 -0
- package/dist/components/icons/lowest-lead-time.d.ts +4 -0
- package/dist/components/icons/lowest-min-qty.d.ts +4 -0
- package/dist/components/icons/lowest-price.d.ts +4 -0
- package/dist/components/icons/more.d.ts +4 -0
- package/dist/components/icons/notification.d.ts +4 -0
- package/dist/components/icons/paper-clip.d.ts +4 -0
- package/dist/components/icons/paragraph.d.ts +4 -0
- package/dist/components/icons/payment-request.d.ts +6 -0
- package/dist/components/icons/phone.d.ts +4 -0
- package/dist/components/icons/printer.d.ts +4 -0
- package/dist/components/icons/process-calendar.d.ts +4 -0
- package/dist/components/icons/promotion.d.ts +6 -0
- package/dist/components/icons/radio-button.d.ts +4 -0
- package/dist/components/icons/receipt-filled.d.ts +6 -0
- package/dist/components/icons/receipt-outline.d.ts +4 -0
- package/dist/components/icons/receipt.d.ts +6 -0
- package/dist/components/icons/rectangle-filled.d.ts +4 -0
- package/dist/components/icons/rectangle.d.ts +4 -0
- package/dist/components/icons/refresh-icon.d.ts +4 -0
- package/dist/components/icons/replace.d.ts +4 -0
- package/dist/components/icons/save.d.ts +6 -0
- package/dist/components/icons/search-status.d.ts +4 -0
- package/dist/components/icons/search.d.ts +4 -0
- package/dist/components/icons/settings-fallback/index.esm.js +1 -1
- package/dist/components/icons/settings-fallback/index.js +2 -2
- package/dist/components/icons/settings-fallback/index.js.map +1 -1
- package/dist/components/icons/settings-fallback.d.ts +7 -0
- package/dist/components/icons/share.d.ts +4 -0
- package/dist/components/icons/sort-arrow-icon/index.esm.js +4 -4
- package/dist/components/icons/sort-arrow-icon/index.esm.js.map +1 -1
- package/dist/components/icons/sort-arrow-icon/index.js +1 -1
- package/dist/components/icons/sort-arrow-icon/index.js.map +1 -1
- package/dist/components/icons/sort-arrow-icon.d.ts +4 -0
- package/dist/components/icons/stacked-layer.d.ts +6 -0
- package/dist/components/icons/start-filled.d.ts +6 -0
- package/dist/components/icons/three-dot-icon.d.ts +4 -0
- package/dist/components/icons/tick-circle-filled.d.ts +6 -0
- package/dist/components/icons/tick-circle.d.ts +4 -0
- package/dist/components/icons/tick-octagon.d.ts +4 -0
- package/dist/components/icons/tick.d.ts +4 -0
- package/dist/components/icons/toggle-switch.d.ts +4 -0
- package/dist/components/icons/trash.d.ts +4 -0
- package/dist/components/icons/wave.d.ts +6 -0
- package/dist/components/icons/with-out-tick-octagon.d.ts +4 -0
- package/dist/components/icons/work-centre.d.ts +6 -0
- package/dist/components/index.d.ts +112 -277
- package/dist/components/index.esm.js +444 -603
- package/dist/components/index.esm.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/info-card/index.d.ts +2 -0
- package/dist/components/info-card/info-card.d.ts +9 -0
- package/dist/components/inventory-reports-title-bar/component/index.d.ts +2 -0
- package/dist/components/inventory-reports-title-bar/component/reportFilter/index.esm.js +400 -0
- package/dist/components/inventory-reports-title-bar/component/reportFilter/index.esm.js.map +1 -0
- package/dist/components/inventory-reports-title-bar/component/reportFilter/index.js +41 -0
- package/dist/components/inventory-reports-title-bar/component/reportFilter/index.js.map +1 -0
- package/dist/components/inventory-reports-title-bar/component/reportFilter.d.ts +10 -0
- package/dist/components/inventory-reports-title-bar/index.d.ts +5 -0
- package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar.d.ts +43 -0
- package/dist/components/inventory-reports-title-bar/redux/actionCreator.d.ts +11 -0
- package/dist/components/inventory-reports-title-bar/redux/index.d.ts +5 -0
- package/dist/components/inventory-reports-title-bar/redux/reducer/index.esm.js +2 -0
- package/dist/components/inventory-reports-title-bar/redux/reducer/index.esm.js.map +1 -1
- package/dist/components/inventory-reports-title-bar/redux/reducer/index.js +1 -1
- package/dist/components/inventory-reports-title-bar/redux/reducer/index.js.map +1 -1
- package/dist/components/inventory-reports-title-bar/redux/reducer.d.ts +3 -0
- package/dist/components/inventory-reports-title-bar/redux/state.d.ts +12 -0
- package/dist/components/inventory-reports-title-bar/report-buttons/index.d.ts +2 -0
- package/dist/components/inventory-reports-title-bar/report-buttons/report-buttons/index.esm.js.map +1 -1
- package/dist/components/inventory-reports-title-bar/report-buttons/report-buttons/index.js.map +1 -1
- package/dist/components/inventory-reports-title-bar/report-buttons/report-buttons.d.ts +27 -0
- package/dist/components/label-value/index.d.ts +2 -0
- package/dist/components/label-value/label-value.d.ts +6 -0
- package/dist/components/list/index.d.ts +2 -0
- package/dist/components/list/list.d.ts +2 -0
- package/dist/components/listing/index.d.ts +3 -0
- package/dist/components/listing/listing/index.esm.js +5 -5
- package/dist/components/listing/listing/index.esm.js.map +1 -1
- package/dist/components/listing/listing/index.js +5 -5
- package/dist/components/listing/listing/index.js.map +1 -1
- package/dist/components/listing/listing.d.ts +5 -0
- package/dist/components/listing/types.d.ts +57 -0
- package/dist/components/loader.d.ts +2 -0
- package/dist/components/loaders/erp-loader.d.ts +4 -0
- package/dist/components/loaders/form-loader.d.ts +4 -0
- package/dist/components/loaders/index.d.ts +8 -0
- package/dist/components/loaders/modal-loader.d.ts +4 -0
- package/dist/components/loaders/page-loader.d.ts +4 -0
- package/dist/components/location-select.d.ts +19 -0
- package/dist/components/material-editable-table/aggregation-fns/index.d.ts +13 -0
- package/dist/components/material-editable-table/components/default-aggregation.d.ts +9 -0
- package/dist/components/material-editable-table/components/header-cell.d.ts +5 -0
- package/dist/components/material-editable-table/components/index.d.ts +8 -0
- package/dist/components/material-editable-table/components/inline-edit-fields.d.ts +17 -0
- package/dist/components/material-editable-table/components/number-aggregation.d.ts +9 -0
- package/dist/components/material-editable-table/index.d.ts +4 -0
- package/dist/components/material-editable-table/material-editable-table/index.esm.js +1 -1
- package/dist/components/material-editable-table/material-editable-table/index.js +2 -2
- package/dist/components/material-editable-table/material-editable-table.d.ts +40 -0
- package/dist/components/material-table/aggregation-fns/index.d.ts +13 -0
- package/dist/components/material-table/components/default-aggregation.d.ts +9 -0
- package/dist/components/material-table/components/header-cell.d.ts +5 -0
- package/dist/components/material-table/components/index.d.ts +8 -0
- package/dist/components/material-table/components/inline-edit-fields.d.ts +17 -0
- package/dist/components/material-table/components/number-aggregation.d.ts +9 -0
- package/dist/components/material-table/index.d.ts +4 -0
- package/dist/components/material-table/material-table/index.esm.js +4 -3
- package/dist/components/material-table/material-table/index.esm.js.map +1 -1
- package/dist/components/material-table/material-table/index.js +5 -5
- package/dist/components/material-table/material-table/index.js.map +1 -1
- package/dist/components/material-table/material-table.d.ts +81 -0
- package/dist/components/menu/index.d.ts +2 -0
- package/dist/components/menu/menu.d.ts +4 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/modal.d.ts +4 -0
- package/dist/components/module-button/index.d.ts +2 -0
- package/dist/components/module-button/module-button.d.ts +2 -0
- package/dist/components/mulitline/index.d.ts +2 -0
- package/dist/components/mulitline/multiline.d.ts +11 -0
- package/dist/components/multi-select/index.d.ts +2 -0
- package/dist/components/multi-select/multi-select.d.ts +30 -0
- package/dist/components/page-navigator/components/add-page-modal.d.ts +11 -0
- package/dist/components/page-navigator/components/add-page.d.ts +9 -0
- package/dist/components/page-navigator/components/index.d.ts +10 -0
- package/dist/components/page-navigator/components/page-action.d.ts +14 -0
- package/dist/components/page-navigator/components/shared-page-modal.d.ts +9 -0
- package/dist/components/page-navigator/components/shared-page-view.d.ts +2 -0
- package/dist/components/page-navigator/index.d.ts +3 -0
- package/dist/components/page-navigator/page-navigator.d.ts +15 -0
- package/dist/components/pagination/index.d.ts +2 -0
- package/dist/components/pagination/pagination.d.ts +9 -0
- package/dist/components/parties-modal/index.d.ts +4 -0
- package/dist/components/parties-modal/parties-modal/index.esm.js +1 -1
- package/dist/components/parties-modal/parties-modal/index.js +13 -13
- package/dist/components/parties-modal/parties-modal/index.js.map +1 -1
- package/dist/components/parties-modal/parties-modal.d.ts +10 -0
- package/dist/components/parties-modal/utils/constant.d.ts +42 -0
- package/dist/components/parties-modal/utils/index.d.ts +1 -0
- package/dist/components/parties-modal/validator.d.ts +6 -0
- package/dist/components/phone-input/index.d.ts +2 -0
- package/dist/components/phone-input/phone-input.d.ts +19 -0
- package/dist/components/protected-route/index.esm.js +20 -0
- package/dist/components/protected-route/index.esm.js.map +1 -1
- package/dist/components/protected-route/index.js +2 -2
- package/dist/components/protected-route/index.js.map +1 -1
- package/dist/components/protected-route.d.ts +56 -0
- package/dist/components/providers/ERPUIProvider.d.ts +41 -0
- package/dist/components/providers/index.d.ts +2 -0
- package/dist/components/quick-approval-modal/index.d.ts +2 -0
- package/dist/components/quick-approval-modal/quick-approval-modal.d.ts +13 -0
- package/dist/components/radio/index.d.ts +2 -0
- package/dist/components/radio/radio.d.ts +4 -0
- package/dist/components/reports/dynamic-report/dynamic-report.d.ts +21 -0
- package/dist/components/reports/dynamic-report/dynamic-rows.d.ts +20 -0
- package/dist/components/reports/dynamic-report/index.d.ts +3 -0
- package/dist/components/reports/index.d.ts +1 -0
- package/dist/components/reports-title-bar/index.d.ts +4 -0
- package/dist/components/reports-title-bar/redux/actionCreator.d.ts +1 -0
- package/dist/components/reports-title-bar/redux/index.d.ts +5 -0
- package/dist/components/reports-title-bar/redux/reducer/index.esm.js +2 -0
- package/dist/components/reports-title-bar/redux/reducer/index.esm.js.map +1 -1
- package/dist/components/reports-title-bar/redux/reducer/index.js +1 -1
- package/dist/components/reports-title-bar/redux/reducer/index.js.map +1 -1
- package/dist/components/reports-title-bar/redux/reducer.d.ts +3 -0
- package/dist/components/reports-title-bar/redux/state.d.ts +8 -0
- package/dist/components/reports-title-bar/report-buttons/index.d.ts +2 -0
- package/dist/components/reports-title-bar/report-buttons/report-buttons.d.ts +26 -0
- package/dist/components/reports-title-bar/reports-title-bar/index.esm.js +1 -1
- package/dist/components/reports-title-bar/reports-title-bar/index.js +8 -8
- package/dist/components/reports-title-bar/reports-title-bar.d.ts +30 -0
- package/dist/components/reset-password-modal/index.d.ts +2 -0
- package/dist/components/reset-password-modal/reset-password-modal.d.ts +5 -0
- package/dist/components/rfq-response/index.d.ts +2 -0
- package/dist/components/rfq-response/item-response-details/index.esm.js +1 -1
- package/dist/components/rfq-response/item-response-details/index.js +1 -1
- package/dist/components/rfq-response/item-response-details/index.js.map +1 -1
- package/dist/components/rfq-response/item-response-details.d.ts +1 -0
- package/dist/components/save-filter-modal/index.d.ts +2 -0
- package/dist/components/save-filter-modal/save-filter-modal.d.ts +8 -0
- package/dist/components/schedule-report/index.d.ts +6 -0
- package/dist/components/schedule-report/schedule-report/index.esm.js +2 -2
- package/dist/components/schedule-report/schedule-report/index.js +5 -5
- package/dist/components/schedule-report/schedule-report/index.js.map +1 -1
- package/dist/components/schedule-report/schedule-report-modal.d.ts +17 -0
- package/dist/components/schedule-report/schedule-report.d.ts +6 -0
- package/dist/components/schedule-report/utils/common/index.esm.js +1 -1
- package/dist/components/schedule-report/utils/common.d.ts +9 -0
- package/dist/components/schedule-report/utils/constant.d.ts +29 -0
- package/dist/components/schedule-report/utils/index.d.ts +3 -0
- package/dist/components/schedule-report/utils/type.d.ts +31 -0
- package/dist/components/schedule-report/validator.d.ts +13 -0
- package/dist/components/search-bar/index.d.ts +2 -0
- package/dist/components/search-bar/search-bar.d.ts +14 -0
- package/dist/components/searchable-select.d.ts +49 -0
- package/dist/components/select/controller/chip-or-placeholder.d.ts +10 -0
- package/dist/components/select/controller/controller-select.d.ts +33 -0
- package/dist/components/select/controller/index.d.ts +4 -0
- package/dist/components/select/index.d.ts +5 -0
- package/dist/components/select/select-search.d.ts +4 -0
- package/dist/components/select/select.d.ts +3 -0
- package/dist/components/share-modal/index.d.ts +5 -0
- package/dist/components/share-modal/redux/actionCreator.d.ts +2 -0
- package/dist/components/share-modal/redux/index.d.ts +5 -0
- package/dist/components/share-modal/redux/reducer/index.esm.js +2 -0
- package/dist/components/share-modal/redux/reducer/index.esm.js.map +1 -1
- package/dist/components/share-modal/redux/reducer/index.js +1 -1
- package/dist/components/share-modal/redux/reducer/index.js.map +1 -1
- package/dist/components/share-modal/redux/reducer.d.ts +21 -0
- package/dist/components/share-modal/redux/state.d.ts +8 -0
- package/dist/components/share-modal/share-modal-enhanced/index.esm.js +287 -0
- package/dist/components/share-modal/share-modal-enhanced/index.esm.js.map +1 -0
- package/dist/components/share-modal/share-modal-enhanced/index.js +24 -0
- package/dist/components/share-modal/share-modal-enhanced/index.js.map +1 -0
- package/dist/components/share-modal/share-modal-enhanced.d.ts +19 -0
- package/dist/components/share-modal/share-modal.d.ts +13 -0
- package/dist/components/sidebar/index.d.ts +2 -0
- package/dist/components/sidebar/sidebar/index.esm.js +2 -2
- package/dist/components/sidebar/sidebar/index.js +9 -9
- package/dist/components/sidebar/sidebar.d.ts +23 -0
- package/dist/components/snackbar/index.d.ts +2 -0
- package/dist/components/snackbar/snackbar.d.ts +4 -0
- package/dist/components/sub-header-doc/index.d.ts +2 -0
- package/dist/components/sub-header-doc/sub-header-doc.d.ts +3 -0
- package/dist/components/switches/android-12-switch.d.ts +2 -0
- package/dist/components/switches/index.d.ts +2 -0
- package/dist/components/tab-bar-ui/index.d.ts +2 -0
- package/dist/components/tab-bar-ui/tab-bar-ui.d.ts +20 -0
- package/dist/components/tabs/index.d.ts +2 -0
- package/dist/components/tabs/tabs.d.ts +24 -0
- package/dist/components/text-area/index.d.ts +2 -0
- package/dist/components/text-area/text-area.d.ts +9 -0
- package/dist/components/text-field/index.d.ts +2 -0
- package/dist/components/text-field/text-field.d.ts +3 -0
- package/dist/components/time-picker/index.d.ts +2 -0
- package/dist/components/time-picker/time-picker.d.ts +16 -0
- package/dist/components/time-range-picker/index.d.ts +2 -0
- package/dist/components/time-range-picker/time-range-picker.d.ts +10 -0
- package/dist/components/title-dropdown-button/index.d.ts +2 -0
- package/dist/components/title-dropdown-button/title-dropdown-button.d.ts +15 -0
- package/dist/components/toast/index.d.ts +2 -0
- package/dist/components/toast/toast.d.ts +9 -0
- package/dist/components/toggle/index.d.ts +2 -0
- package/dist/components/toggle/toggle.d.ts +7 -0
- package/dist/components/toggle-switch/index.d.ts +2 -0
- package/dist/components/toggle-switch/toggle-switch.d.ts +10 -0
- package/dist/components/tooltip/Tooltip.d.ts +4 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/typography/index.d.ts +2 -0
- package/dist/components/typography/typography.d.ts +8 -0
- package/dist/components/upload/file-confirmation.d.ts +12 -0
- package/dist/components/upload/index.d.ts +4 -0
- package/dist/components/upload/upload.d.ts +15 -0
- package/dist/components/upload-excel/file-confirmation.d.ts +11 -0
- package/dist/components/upload-excel/index.d.ts +4 -0
- package/dist/components/upload-excel/upload-excel/index.esm.js +1 -1
- package/dist/components/upload-excel/upload-excel/index.js +5 -5
- package/dist/components/upload-excel/upload-excel.d.ts +16 -0
- package/dist/components/upload-media/index.d.ts +2 -0
- package/dist/components/upload-media/upload-media.d.ts +16 -0
- package/dist/components/user-dropdown/index.d.ts +2 -0
- package/dist/components/user-dropdown/user-dropdown.d.ts +12 -0
- package/dist/components/value-field/index.d.ts +2 -0
- package/dist/components/value-field/value-field.d.ts +8 -0
- package/dist/components/view-modal/index.d.ts +2 -0
- package/dist/components/view-modal/view-modal.d.ts +13 -0
- package/dist/config/index.d.ts +43 -0
- package/dist/constants/action-bar.d.ts +9 -0
- package/dist/constants/all-language.d.ts +6 -0
- package/dist/constants/auth.d.ts +5 -0
- package/dist/constants/common.d.ts +1 -0
- package/dist/constants/defaultColumns.d.ts +109 -0
- package/dist/constants/index.d.ts +15 -15
- package/dist/constants/index.esm.js +104 -10
- package/dist/constants/index.esm.js.map +1 -1
- package/dist/constants/index.js +1 -1
- package/dist/constants/lang/ar.d.ts +1448 -0
- package/dist/constants/lang/en.d.ts +10645 -0
- package/dist/constants/lang/es.d.ts +142 -0
- package/dist/constants/lang/index.d.ts +6 -0
- package/dist/constants/modules.d.ts +2 -0
- package/dist/constants/mui.constants.d.ts +2 -0
- package/dist/constants/pathnames/index.d.ts +13 -0
- package/dist/constants/pathnames/pathname.accounting.d.ts +165 -0
- package/dist/constants/pathnames/pathname.crm.d.ts +203 -0
- package/dist/constants/pathnames/pathname.d.ts +25 -0
- package/dist/constants/pathnames/pathname.document.d.ts +10 -0
- package/dist/constants/pathnames/pathname.hrms.d.ts +5 -0
- package/dist/constants/pathnames/pathname.inventory.d.ts +154 -0
- package/dist/constants/pathnames/pathname.manufacturing/index.esm.js +6 -0
- package/dist/constants/pathnames/pathname.manufacturing/index.esm.js.map +1 -1
- package/dist/constants/pathnames/pathname.manufacturing/index.js +1 -1
- package/dist/constants/pathnames/pathname.manufacturing/index.js.map +1 -1
- package/dist/constants/pathnames/pathname.manufacturing.d.ts +387 -0
- package/dist/constants/pathnames/pathname.office.d.ts +5 -0
- package/dist/constants/pathnames/pathname.procurement.d.ts +150 -0
- package/dist/constants/pathnames/pathname.project.d.ts +5 -0
- package/dist/constants/pathnames/pathname.quotes.d.ts +5 -0
- package/dist/constants/pathnames/pathname.rental/index.esm.js +12 -1
- package/dist/constants/pathnames/pathname.rental/index.esm.js.map +1 -1
- package/dist/constants/pathnames/pathname.rental/index.js +1 -1
- package/dist/constants/pathnames/pathname.rental/index.js.map +1 -1
- package/dist/constants/pathnames/pathname.rental.d.ts +43 -0
- package/dist/constants/pathnames/pathname.user.d.ts +20 -0
- package/dist/constants/resource-lang.d.ts +12240 -0
- package/dist/constants/route-page-map.d.ts +10 -0
- package/dist/constants/status.d.ts +4 -0
- package/dist/contexts/AuthContext/index.esm.js +1 -1
- package/dist/contexts/AuthContext/index.esm.js.map +1 -1
- package/dist/contexts/AuthContext/index.js +1 -1
- package/dist/contexts/AuthContext/index.js.map +1 -1
- package/dist/contexts/AuthContext.d.ts +69 -0
- package/dist/contexts/index.d.ts +5 -16
- package/dist/contexts/index.esm.js +2 -2
- package/dist/contexts/index.js +1 -1
- package/dist/contexts/languageContext.d.ts +24 -0
- package/dist/contexts/page-context.d.ts +72 -0
- package/dist/contexts/permission-context.d.ts +14 -0
- package/dist/hooks/apiHelper/index.esm.js +1 -1
- package/dist/hooks/apiHelper/index.esm.js.map +1 -1
- package/dist/hooks/apiHelper/index.js +1 -1
- package/dist/hooks/apiHelper/index.js.map +1 -1
- package/dist/hooks/apiHelper.d.ts +12 -0
- package/dist/hooks/common.d.ts +41 -0
- package/dist/hooks/index.d.ts +16 -26
- package/dist/hooks/index.esm.js +25 -18
- package/dist/hooks/index.esm.js.map +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-deep-memo.d.ts +2 -0
- package/dist/hooks/use-material-calculations/index.esm.js +0 -8
- package/dist/hooks/use-material-calculations/index.esm.js.map +1 -1
- package/dist/hooks/use-material-calculations/index.js +1 -1
- package/dist/hooks/use-material-calculations/index.js.map +1 -1
- package/dist/hooks/use-material-calculations.d.ts +81 -0
- package/dist/hooks/use-translations.d.ts +3 -0
- package/dist/hooks/useCheckSkuAndName.d.ts +7 -0
- package/dist/hooks/useDataFetcher/index.esm.js +3 -2
- package/dist/hooks/useDataFetcher/index.esm.js.map +1 -1
- package/dist/hooks/useDataFetcher/index.js +1 -1
- package/dist/hooks/useDataFetcher/index.js.map +1 -1
- package/dist/hooks/useDataFetcher.d.ts +25 -0
- package/dist/hooks/useLanguageFallback/index.esm.js +0 -5
- package/dist/hooks/useLanguageFallback/index.esm.js.map +1 -1
- package/dist/hooks/useLanguageFallback/index.js +1 -1
- package/dist/hooks/useLanguageFallback/index.js.map +1 -1
- package/dist/hooks/useLanguageFallback.d.ts +67 -0
- package/dist/hooks/useLocationFilter/index.esm.js +0 -5
- package/dist/hooks/useLocationFilter/index.esm.js.map +1 -1
- package/dist/hooks/useLocationFilter/index.js +1 -1
- package/dist/hooks/useLocationFilter/index.js.map +1 -1
- package/dist/hooks/useLocationFilter.d.ts +43 -0
- package/dist/hooks/useReduxIntegration/index.esm.js +39 -0
- package/dist/hooks/useReduxIntegration/index.esm.js.map +1 -0
- package/dist/hooks/useReduxIntegration/index.js +2 -0
- package/dist/hooks/useReduxIntegration/index.js.map +1 -0
- package/dist/hooks/useReduxIntegration.d.ts +9 -0
- package/dist/icons/index.d.ts +177 -94
- package/dist/icons/index.esm.js +80 -76
- package/dist/icons/index.esm.js.map +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/index.d.ts +190 -1
- package/dist/index.esm.js +640 -747
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/layout/fullScreen/fullScreen.d.ts +1 -0
- package/dist/layout/fullScreen/index.d.ts +2 -0
- package/dist/layout/index.d.ts +2 -3
- package/dist/layout/index.esm.js +1 -1
- package/dist/layout/index.js +1 -1
- package/dist/layout/sidebarScreen/index.d.ts +2 -0
- package/dist/layout/sidebarScreen/sidebarScreen.d.ts +7 -0
- package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.esm.js +1 -1
- package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.js +1 -1
- package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.esm.js +1 -1
- package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.js +1 -1
- package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.esm.js +2 -3
- package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.js +1 -1
- package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.js.map +1 -1
- package/dist/node_modules/@mui/material/NativeSelect/nativeSelectClasses/index.esm.js +1 -1
- package/dist/node_modules/@mui/material/NativeSelect/nativeSelectClasses/index.js +1 -1
- package/dist/node_modules/@mui/material/NativeSelect/nativeSelectClasses/index.js.map +1 -1
- package/dist/node_modules/@mui/material/OutlinedInput/outlinedInputClasses/index.esm.js +1 -1
- package/dist/node_modules/@mui/material/OutlinedInput/outlinedInputClasses/index.js +1 -1
- package/dist/node_modules/@mui/material/Popover/Popover/index.esm.js +1 -1
- package/dist/node_modules/@mui/material/Popover/Popover/index.js +1 -1
- package/dist/node_modules/@mui/material/Snackbar/Snackbar/index.esm.js +1 -1
- package/dist/node_modules/@mui/material/Snackbar/Snackbar/index.js +1 -1
- package/dist/node_modules/@mui/material/Tabs/Tabs/index.esm.js +1 -1
- package/dist/node_modules/@mui/material/Tabs/Tabs/index.js +1 -1
- package/dist/node_modules/@mui/system/esm/Container/createContainer/index.esm.js +1 -1
- package/dist/node_modules/@mui/system/esm/Container/createContainer/index.js +1 -1
- package/dist/node_modules/@mui/system/esm/Stack/createStack/index.esm.js +1 -1
- package/dist/node_modules/@mui/system/esm/Stack/createStack/index.js +2 -2
- package/dist/node_modules/d3-axis/src/axis/index.esm.js +1 -5
- package/dist/node_modules/d3-axis/src/axis/index.esm.js.map +1 -1
- package/dist/node_modules/d3-axis/src/axis/index.js +1 -1
- package/dist/node_modules/d3-axis/src/axis/index.js.map +1 -1
- package/dist/node_modules/notistack/notistack.esm/index.esm.js +0 -3
- package/dist/node_modules/notistack/notistack.esm/index.esm.js.map +1 -1
- package/dist/node_modules/notistack/notistack.esm/index.js +1 -1
- package/dist/node_modules/notistack/notistack.esm/index.js.map +1 -1
- package/dist/node_modules/prop-types/checkPropTypes/index.esm.js +49 -56
- package/dist/node_modules/prop-types/checkPropTypes/index.esm.js.map +1 -1
- package/dist/node_modules/prop-types/checkPropTypes/index.js +1 -1
- package/dist/node_modules/prop-types/checkPropTypes/index.js.map +1 -1
- package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.esm.js +2 -2
- package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.esm.js.map +1 -1
- package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.js +1 -1
- package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.js.map +1 -1
- package/dist/redux/actionCreator.d.ts +7 -0
- package/dist/redux/apiConfig.d.ts +18 -0
- package/dist/redux/hooks/index.esm.js +1 -1
- package/dist/redux/hooks.d.ts +7 -0
- package/dist/redux/index.d.ts +8 -13
- package/dist/redux/index.esm.js +14 -30
- package/dist/redux/index.esm.js.map +1 -1
- package/dist/redux/index.js +1 -1
- package/dist/redux/module-reducer.d.ts +9 -0
- package/dist/redux/slices/headerSlice.d.ts +24 -0
- package/dist/redux/slices/index.d.ts +8 -0
- package/dist/redux/slices/inventoryReportsTitleBarSlice/index.esm.js +0 -6
- package/dist/redux/slices/inventoryReportsTitleBarSlice/index.esm.js.map +1 -1
- package/dist/redux/slices/inventoryReportsTitleBarSlice/index.js +1 -1
- package/dist/redux/slices/inventoryReportsTitleBarSlice/index.js.map +1 -1
- package/dist/redux/slices/inventoryReportsTitleBarSlice.d.ts +45 -0
- package/dist/redux/slices/reportsTitleBarSlice/index.esm.js +1 -7
- package/dist/redux/slices/reportsTitleBarSlice/index.esm.js.map +1 -1
- package/dist/redux/slices/reportsTitleBarSlice/index.js +1 -1
- package/dist/redux/slices/reportsTitleBarSlice/index.js.map +1 -1
- package/dist/redux/slices/reportsTitleBarSlice.d.ts +21 -0
- package/dist/redux/slices/shareSlice/index.esm.js +1 -3
- package/dist/redux/slices/shareSlice/index.esm.js.map +1 -1
- package/dist/redux/slices/shareSlice/index.js +1 -1
- package/dist/redux/slices/shareSlice/index.js.map +1 -1
- package/dist/redux/slices/shareSlice.d.ts +26 -0
- package/dist/redux/toolkit.d.ts +1 -0
- package/dist/redux/types.d.ts +66 -0
- package/dist/server.d.ts +8 -0
- package/dist/src/@types/index.d.ts +5 -0
- package/dist/src/assets/common-component/index.d.ts +1 -0
- package/dist/src/assets/dynamic-svg-icon/index.d.ts +2 -0
- package/dist/src/assets/index.d.ts +5 -0
- package/dist/src/assets/view-modal/index.d.ts +12 -0
- package/dist/src/components/Dashboard/index.d.ts +4 -0
- package/dist/src/components/accordion/index.d.ts +2 -0
- package/dist/src/components/action-bar/index.d.ts +2 -0
- package/dist/src/components/activity-tag/index.d.ts +2 -0
- package/dist/src/components/activityArea/index.d.ts +2 -0
- package/dist/src/components/activityLog/index.d.ts +2 -0
- package/dist/src/components/alert/index.d.ts +2 -0
- package/dist/src/components/appbar/index.d.ts +2 -0
- package/dist/src/components/approval-wrapper/index.d.ts +2 -0
- package/dist/src/components/avatar/index.d.ts +2 -0
- package/dist/src/components/board/index.d.ts +4 -0
- package/dist/src/components/bread-crumb/index.d.ts +2 -0
- package/dist/src/components/button/index.d.ts +2 -0
- package/dist/src/components/calculation-summary/components/index.d.ts +10 -0
- package/dist/src/components/calculation-summary/index.d.ts +3 -0
- package/dist/src/components/calendar/index.d.ts +2 -0
- package/dist/src/components/card-wrapper/index.d.ts +2 -0
- package/dist/src/components/change-user-password-modal/index.d.ts +2 -0
- package/dist/src/components/charts/bar-chart/index.d.ts +2 -0
- package/dist/src/components/charts/barChart/index.d.ts +2 -0
- package/dist/src/components/charts/barLineChart/index.d.ts +2 -0
- package/dist/src/components/charts/donut-chart/index.d.ts +2 -0
- package/dist/src/components/charts/donutChart/index.d.ts +2 -0
- package/dist/src/components/charts/groupBarChart/index.d.ts +2 -0
- package/dist/src/components/charts/index.d.ts +12 -0
- package/dist/src/components/charts/line-chart/area-lineChart.d.ts +2 -2
- package/dist/src/components/charts/line-chart/index.d.ts +6 -0
- package/dist/src/components/charts/multiLineChart/index.d.ts +2 -0
- package/dist/src/components/checkbox/index.d.ts +2 -0
- package/dist/src/components/chip/index.d.ts +2 -0
- package/dist/src/components/chip-generator/index.d.ts +2 -0
- package/dist/src/components/color-picker-input/index.d.ts +2 -0
- package/dist/src/components/confirm-modal/index.d.ts +3 -0
- package/dist/src/components/country-select/index.d.ts +2 -0
- package/dist/src/components/custom-snackbar/index.d.ts +2 -0
- package/dist/src/components/custom-toggle-switch/index.d.ts +2 -0
- package/dist/src/components/date-picker/index.d.ts +2 -0
- package/dist/src/components/date-range-picker/index.d.ts +2 -0
- package/dist/src/components/date-time-picker/index.d.ts +2 -0
- package/dist/src/components/dropdown-button/index.d.ts +2 -0
- package/dist/src/components/dynamic-layout-wrapper/index.d.ts +2 -0
- package/dist/src/components/editor/index.d.ts +2 -0
- package/dist/src/components/entity-view-wrapper/index.d.ts +2 -0
- package/dist/src/components/examples/index.d.ts +2 -0
- package/dist/src/components/expandable-summary-wrapper/index.d.ts +2 -0
- package/dist/src/components/fallback/index.d.ts +2 -0
- package/dist/src/components/filter/components/index.d.ts +16 -0
- package/dist/src/components/filter/index.d.ts +4 -0
- package/dist/src/components/footer/index.d.ts +2 -0
- package/dist/src/components/form-control/form-builder/form-builder-element/index.d.ts +25 -5
- package/dist/src/components/form-control/form-builder/form-builder-element/location-add-modal/index.d.ts +2 -0
- package/dist/src/components/form-control/form-builder/index.d.ts +3 -0
- package/dist/src/components/form-control/form-parser/index.d.ts +8 -0
- package/dist/src/components/form-control/index.d.ts +2 -2
- package/dist/src/components/form-header/index.d.ts +2 -0
- package/dist/src/components/gantt/index.d.ts +2 -0
- package/dist/src/components/grid/custom-grid-card/index.d.ts +2 -0
- package/dist/src/components/grid/grid-card/index.d.ts +2 -0
- package/dist/src/components/grid/grid-wrapper/index.d.ts +2 -0
- package/dist/src/components/grid/index.d.ts +3 -0
- package/dist/src/components/grid-fallback/index.d.ts +2 -0
- package/dist/src/components/header/components/index.d.ts +1 -0
- package/dist/src/components/header/components/notification-menu/index.d.ts +2 -0
- package/dist/src/components/header/index.d.ts +6 -0
- package/dist/src/components/header/redux/index.d.ts +5 -0
- package/dist/src/components/header-card/index.d.ts +2 -0
- package/dist/src/components/hr-line/index.d.ts +2 -0
- package/dist/src/components/icons/index.d.ts +163 -80
- package/dist/src/components/icons/sort-arrow-icon.d.ts +2 -2
- package/dist/src/components/index.d.ts +106 -123
- package/dist/src/components/info-card/index.d.ts +2 -0
- package/dist/src/components/inventory-reports-title-bar/component/index.d.ts +2 -0
- package/dist/src/components/inventory-reports-title-bar/index.d.ts +5 -0
- package/dist/src/components/inventory-reports-title-bar/redux/index.d.ts +5 -0
- package/dist/src/components/inventory-reports-title-bar/report-buttons/index.d.ts +2 -0
- package/dist/src/components/label-value/index.d.ts +2 -0
- package/dist/src/components/list/index.d.ts +2 -0
- package/dist/src/components/listing/index.d.ts +2 -2
- package/dist/src/components/loaders/index.d.ts +5 -1
- package/dist/src/components/material-editable-table/components/index.d.ts +8 -0
- package/dist/src/components/material-editable-table/index.d.ts +4 -0
- package/dist/src/components/material-table/components/index.d.ts +8 -0
- package/dist/src/components/material-table/index.d.ts +4 -0
- package/dist/src/components/material-table/material-table.d.ts +1 -1
- package/dist/src/components/menu/index.d.ts +2 -0
- package/dist/src/components/modal/index.d.ts +2 -0
- package/dist/src/components/module-button/index.d.ts +2 -0
- package/dist/src/components/mulitline/index.d.ts +2 -0
- package/dist/src/components/multi-select/index.d.ts +2 -0
- package/dist/src/components/page-navigator/components/index.d.ts +10 -0
- package/dist/src/components/page-navigator/index.d.ts +3 -0
- package/dist/src/components/pagination/index.d.ts +2 -0
- package/dist/src/components/parties-modal/index.d.ts +4 -0
- package/dist/src/components/parties-modal/utils/index.d.ts +1 -0
- package/dist/src/components/phone-input/index.d.ts +2 -0
- package/dist/src/components/providers/index.d.ts +2 -1
- package/dist/src/components/quick-approval-modal/index.d.ts +2 -0
- package/dist/src/components/radio/index.d.ts +2 -0
- package/dist/src/components/reports/dynamic-report/index.d.ts +3 -0
- package/dist/src/components/reports/index.d.ts +1 -0
- package/dist/src/components/reports-title-bar/index.d.ts +4 -0
- package/dist/src/components/reports-title-bar/redux/index.d.ts +5 -0
- package/dist/src/components/reports-title-bar/report-buttons/index.d.ts +2 -0
- package/dist/src/components/reset-password-modal/index.d.ts +2 -0
- package/dist/src/components/rfq-response/index.d.ts +2 -0
- package/dist/src/components/save-filter-modal/index.d.ts +2 -0
- package/dist/src/components/schedule-report/index.d.ts +6 -0
- package/dist/src/components/schedule-report/utils/index.d.ts +3 -0
- package/dist/src/components/search-bar/index.d.ts +2 -0
- package/dist/src/components/select/controller/index.d.ts +4 -0
- package/dist/src/components/select/index.d.ts +5 -0
- package/dist/src/components/share-modal/index.d.ts +5 -0
- package/dist/src/components/share-modal/redux/index.d.ts +5 -0
- package/dist/src/components/sidebar/index.d.ts +2 -0
- package/dist/src/components/snackbar/index.d.ts +2 -0
- package/dist/src/components/sub-header-doc/index.d.ts +2 -0
- package/dist/src/components/switches/index.d.ts +2 -0
- package/dist/src/components/tab-bar-ui/index.d.ts +2 -0
- package/dist/src/components/tabs/index.d.ts +2 -0
- package/dist/src/components/text-area/index.d.ts +2 -0
- package/dist/src/components/text-field/index.d.ts +2 -0
- package/dist/src/components/time-picker/index.d.ts +2 -0
- package/dist/src/components/time-range-picker/index.d.ts +2 -0
- package/dist/src/components/title-dropdown-button/index.d.ts +2 -0
- package/dist/src/components/toast/index.d.ts +2 -0
- package/dist/src/components/toggle/index.d.ts +2 -0
- package/dist/src/components/toggle-switch/index.d.ts +2 -0
- package/dist/src/components/tooltip/index.d.ts +2 -0
- package/dist/src/components/typography/index.d.ts +2 -0
- package/dist/src/components/upload/index.d.ts +4 -0
- package/dist/src/components/upload-excel/index.d.ts +4 -0
- package/dist/src/components/upload-media/index.d.ts +2 -0
- package/dist/src/components/user-dropdown/index.d.ts +2 -0
- package/dist/src/components/value-field/index.d.ts +2 -0
- package/dist/src/components/view-modal/index.d.ts +2 -0
- package/dist/src/constants/index.d.ts +5 -3
- package/dist/src/constants/lang/index.d.ts +6 -0
- package/dist/src/constants/pathnames/index.d.ts +13 -554
- package/dist/src/contexts/index.d.ts +5 -5
- package/dist/src/hooks/apiHelper.d.ts +1 -1
- package/dist/src/hooks/index.d.ts +15 -13
- package/dist/src/hooks/useDataFetcher.d.ts +2 -2
- package/dist/src/layout/fullScreen/index.d.ts +2 -0
- package/dist/src/layout/index.d.ts +2 -2
- package/dist/src/layout/sidebarScreen/index.d.ts +2 -0
- package/dist/src/redux/index.d.ts +5 -6
- package/dist/src/redux/slices/index.d.ts +8 -10
- package/dist/src/styles/index.d.ts +1 -2
- package/dist/src/theme/index.d.ts +7 -3
- package/dist/src/theme/types/index.d.ts +1 -0
- package/dist/src/utils/index.d.ts +12 -10
- package/dist/src/views/afterAuth/dashboard/index.d.ts +3 -0
- package/dist/src/views/afterAuth/dashboard/redux/index.d.ts +5 -0
- package/dist/src/views/afterAuth/index.d.ts +2 -0
- package/dist/src/views/afterAuth/page-view/index.d.ts +4 -0
- package/dist/src/views/afterAuth/page-view/redux/index.d.ts +5 -0
- package/dist/src/views/afterAuth/page-view/utils/index.d.ts +2 -0
- package/dist/src/views/beforeAuth/change-password/index.d.ts +1 -0
- package/dist/src/views/beforeAuth/components/activity-tag-data/index.d.ts +1 -0
- package/dist/src/views/beforeAuth/components/calendar-data/index.d.ts +1 -0
- package/dist/src/views/beforeAuth/components/drive-dashboard-data/index.d.ts +1 -0
- package/dist/src/views/beforeAuth/components/gantt-data/index.d.ts +2 -0
- package/dist/src/views/beforeAuth/components/grid-data/index.d.ts +2 -0
- package/dist/src/views/beforeAuth/components/index.d.ts +13 -2
- package/dist/src/views/beforeAuth/components/kanbann-content/index.d.ts +1 -0
- package/dist/src/views/beforeAuth/components/list-content/index.d.ts +2 -0
- package/dist/src/views/beforeAuth/components/multiline-data/index.d.ts +1 -0
- package/dist/src/views/beforeAuth/components/share-modal-data/index.d.ts +1 -0
- package/dist/src/views/beforeAuth/components/shared-pages-data/index.d.ts +1 -0
- package/dist/src/views/beforeAuth/components/tabs-data/index.d.ts +1 -0
- package/dist/src/views/beforeAuth/components/user-dashboard-data/index.d.ts +1 -0
- package/dist/src/views/beforeAuth/components/user-dropdown-data/index.d.ts +1 -0
- package/dist/src/views/beforeAuth/forgot-password/index.d.ts +1 -0
- package/dist/src/views/beforeAuth/index.d.ts +6 -0
- package/dist/src/views/beforeAuth/landing/index.d.ts +2 -0
- package/dist/src/views/beforeAuth/reset-password/index.d.ts +1 -0
- package/dist/src/views/form-builder/element-edit-forms/index.d.ts +7 -0
- package/dist/src/views/form-builder/index.d.ts +7 -31
- package/dist/src/views/form-builder/redux/index.d.ts +5 -0
- package/dist/src/views/form-builder/utils/index.d.ts +1 -2
- package/dist/src/views/index.d.ts +7 -2
- package/dist/src/views/template-editor/add-template/index.d.ts +1 -0
- package/dist/src/views/template-editor/company-selection-modal/index.d.ts +1 -0
- package/dist/src/views/template-editor/components/controllers/index.d.ts +18 -0
- package/dist/src/views/template-editor/components/index.d.ts +7 -9
- package/dist/src/views/template-editor/edit-section-modal/index.d.ts +1 -0
- package/dist/src/views/template-editor/index.d.ts +10 -10
- package/dist/src/views/template-editor/template-modal/index.d.ts +3 -1
- package/dist/src/views/template-editor/template-name-modal/index.d.ts +1 -0
- package/dist/src/views/template-editor/types/index.d.ts +1 -1
- package/dist/src/views/template-editor/utils/index.d.ts +3 -3
- package/dist/style.css +67 -87
- package/dist/styles/index.d.ts +1 -1
- package/dist/styles/index.esm.js +4 -89
- package/dist/styles/index.esm.js.map +1 -1
- package/dist/styles/index.js +1 -1
- package/dist/styles/themes/index/index.esm.js +78 -0
- package/dist/styles/themes/index/index.esm.js.map +1 -0
- package/dist/styles/themes/index/index.js +2 -0
- package/dist/styles/themes/index/index.js.map +1 -0
- package/dist/styles/themes/index.d.ts +21 -0
- package/dist/theme/color.d.ts +38 -0
- package/dist/theme/index.d.ts +7 -5
- package/dist/theme/index.esm.js +12 -5
- package/dist/theme/index.esm.js.map +1 -1
- package/dist/theme/index.js +1 -1
- package/dist/theme/theme-impl/index.esm.js +1 -1
- package/dist/theme/theme-impl.d.ts +24 -0
- package/dist/theme/themeSelector.d.ts +15 -0
- package/dist/theme/themeWrapper.d.ts +10 -0
- package/dist/theme/types/extendMUIPalette.d.ts +47 -0
- package/dist/theme/types/index.d.ts +1 -0
- package/dist/theme/typography/index.esm.js +113 -0
- package/dist/theme/typography/index.esm.js.map +1 -0
- package/dist/theme/typography/index.js +2 -0
- package/dist/theme/typography/index.js.map +1 -0
- package/dist/theme/typography.d.ts +88 -0
- package/dist/types/index.d.ts +1 -21
- package/dist/utils/api.d.ts +662 -0
- package/dist/utils/calculation.d.ts +13 -0
- package/dist/utils/color.d.ts +21 -0
- package/dist/utils/common-utility.d.ts +224 -0
- package/dist/utils/common.d.ts +237 -0
- package/dist/utils/constant.d.ts +18 -0
- package/dist/utils/country.d.ts +1 -0
- package/dist/utils/date-range.d.ts +31 -0
- package/dist/utils/dateFormat/index.esm.js +7 -0
- package/dist/utils/dateFormat/index.esm.js.map +1 -1
- package/dist/utils/dateFormat/index.js +1 -1
- package/dist/utils/dateFormat/index.js.map +1 -1
- package/dist/utils/dateFormat.d.ts +11 -0
- package/dist/utils/dateValidation.d.ts +84 -0
- package/dist/utils/deformat-text.d.ts +2 -0
- package/dist/utils/export-filters.d.ts +2 -0
- package/dist/utils/fileSize.d.ts +2 -0
- package/dist/utils/form-builder-conversion.d.ts +2 -0
- package/dist/utils/form-builder-deconversion.d.ts +45 -0
- package/dist/utils/format-text.d.ts +4 -0
- package/dist/utils/i18n/index.esm.js +37 -0
- package/dist/utils/i18n/index.esm.js.map +1 -0
- package/dist/utils/i18n/index.js +2 -0
- package/dist/utils/i18n/index.js.map +1 -0
- package/dist/utils/i18n.d.ts +3 -0
- package/dist/utils/index.d.ts +34 -35
- package/dist/utils/index.esm.js +18 -73
- package/dist/utils/index.esm.js.map +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/language.d.ts +1 -0
- package/dist/utils/menu-filter.d.ts +70 -0
- package/dist/utils/metaComponent/index.esm.js +27 -0
- package/dist/utils/metaComponent/index.esm.js.map +1 -0
- package/dist/utils/metaComponent/index.js +6 -0
- package/dist/utils/metaComponent/index.js.map +1 -0
- package/dist/utils/metaComponent.d.ts +14 -0
- package/dist/utils/migration-utils.d.ts +7 -0
- package/dist/utils/navigation-utils.d.ts +24 -0
- package/dist/utils/route-utils.d.ts +4 -0
- package/dist/utils/server.d.ts +5 -0
- package/dist/utils/setup.d.ts +1 -0
- package/dist/utils/translations.d.ts +1 -0
- package/dist/views/404/index.esm.js +31 -0
- package/dist/views/404/index.esm.js.map +1 -0
- package/dist/views/404/index.js +6 -0
- package/dist/views/404/index.js.map +1 -0
- package/dist/views/404.d.ts +7 -0
- package/dist/views/afterAuth/dashboard/dashboard/index.esm.js +76 -0
- package/dist/views/afterAuth/dashboard/dashboard/index.esm.js.map +1 -0
- package/dist/views/afterAuth/dashboard/dashboard/index.js +8 -0
- package/dist/views/afterAuth/dashboard/dashboard/index.js.map +1 -0
- package/dist/views/afterAuth/dashboard/dashboard.d.ts +2 -0
- package/dist/views/afterAuth/dashboard/index.d.ts +3 -0
- package/dist/views/afterAuth/dashboard/redux/actionCreator.d.ts +6 -0
- package/dist/views/afterAuth/dashboard/redux/index.d.ts +5 -0
- package/dist/views/afterAuth/dashboard/redux/reducer/index.esm.js +0 -6
- package/dist/views/afterAuth/dashboard/redux/reducer/index.esm.js.map +1 -1
- package/dist/views/afterAuth/dashboard/redux/reducer/index.js +1 -1
- package/dist/views/afterAuth/dashboard/redux/reducer/index.js.map +1 -1
- package/dist/views/afterAuth/dashboard/redux/reducer.d.ts +3508 -0
- package/dist/views/afterAuth/dashboard/redux/state.d.ts +499 -0
- package/dist/views/afterAuth/index.d.ts +2 -0
- package/dist/views/afterAuth/page-view/index.d.ts +4 -0
- package/dist/views/afterAuth/page-view/page-view/index.esm.js +100 -0
- package/dist/views/afterAuth/page-view/page-view/index.esm.js.map +1 -0
- package/dist/views/afterAuth/page-view/page-view/index.js +6 -0
- package/dist/views/afterAuth/page-view/page-view/index.js.map +1 -0
- package/dist/views/afterAuth/page-view/page-view.d.ts +2 -0
- package/dist/views/afterAuth/page-view/redux/actionCreator/index.esm.js +13 -0
- package/dist/views/afterAuth/page-view/redux/actionCreator/index.esm.js.map +1 -0
- package/dist/views/afterAuth/page-view/redux/actionCreator/index.js +2 -0
- package/dist/views/afterAuth/page-view/redux/actionCreator/index.js.map +1 -0
- package/dist/views/afterAuth/page-view/redux/actionCreator.d.ts +1 -0
- package/dist/views/afterAuth/page-view/redux/index.d.ts +5 -0
- package/dist/views/afterAuth/page-view/redux/reducer/index.esm.js +63 -0
- package/dist/views/afterAuth/page-view/redux/reducer/index.esm.js.map +1 -0
- package/dist/views/afterAuth/page-view/redux/reducer/index.js +2 -0
- package/dist/views/afterAuth/page-view/redux/reducer/index.js.map +1 -0
- package/dist/views/afterAuth/page-view/redux/reducer.d.ts +273 -0
- package/dist/views/afterAuth/page-view/redux/state/index.esm.js +31 -0
- package/dist/views/afterAuth/page-view/redux/state/index.esm.js.map +1 -0
- package/dist/views/afterAuth/page-view/redux/state/index.js +2 -0
- package/dist/views/afterAuth/page-view/redux/state/index.js.map +1 -0
- package/dist/views/afterAuth/page-view/redux/state.d.ts +33 -0
- package/dist/views/afterAuth/page-view/utils/default-data/index.esm.js +137 -0
- package/dist/views/afterAuth/page-view/utils/default-data/index.esm.js.map +1 -0
- package/dist/views/afterAuth/page-view/utils/default-data/index.js +2 -0
- package/dist/views/afterAuth/page-view/utils/default-data/index.js.map +1 -0
- package/dist/views/afterAuth/page-view/utils/default-data.d.ts +16 -0
- package/dist/views/afterAuth/page-view/utils/index.d.ts +2 -0
- package/dist/views/afterAuth/page-view/utils/local-data/index.esm.js +137 -0
- package/dist/views/afterAuth/page-view/utils/local-data/index.esm.js.map +1 -0
- package/dist/views/afterAuth/page-view/utils/local-data/index.js +2 -0
- package/dist/views/afterAuth/page-view/utils/local-data/index.js.map +1 -0
- package/dist/views/afterAuth/page-view/utils/local-data.d.ts +16 -0
- package/dist/views/beforeAuth/change-password/change-password/index.esm.js +182 -0
- package/dist/views/beforeAuth/change-password/change-password/index.esm.js.map +1 -0
- package/dist/views/beforeAuth/change-password/change-password/index.js +17 -0
- package/dist/views/beforeAuth/change-password/change-password/index.js.map +1 -0
- package/dist/views/beforeAuth/change-password/change-password.d.ts +1 -0
- package/dist/views/beforeAuth/change-password/index.d.ts +1 -0
- package/dist/views/beforeAuth/components/activity-tag-data/activity-tag-data.d.ts +11 -0
- package/dist/views/beforeAuth/components/activity-tag-data/index.d.ts +1 -0
- package/dist/views/beforeAuth/components/calendar-data/calendar-data.d.ts +18 -0
- package/dist/views/beforeAuth/components/calendar-data/index.d.ts +1 -0
- package/dist/views/beforeAuth/components/drive-dashboard-data/drive-dashboard-data.d.ts +147 -0
- package/dist/views/beforeAuth/components/drive-dashboard-data/index.d.ts +1 -0
- package/dist/views/beforeAuth/components/gantt-data/gantt-data.d.ts +4 -0
- package/dist/views/beforeAuth/components/gantt-data/index.d.ts +2 -0
- package/dist/views/beforeAuth/components/grid-data/grid-data.d.ts +8 -0
- package/dist/views/beforeAuth/components/grid-data/index.d.ts +2 -0
- package/dist/views/beforeAuth/components/index.d.ts +13 -0
- package/dist/views/beforeAuth/components/kanbann-content/index.d.ts +1 -0
- package/dist/views/beforeAuth/components/kanbann-content/kanbann-raw.d.ts +11 -0
- package/dist/views/beforeAuth/components/list-content/column-raw.d.ts +38 -0
- package/dist/views/beforeAuth/components/list-content/index.d.ts +2 -0
- package/dist/views/beforeAuth/components/list-content/list-data.d.ts +11 -0
- package/dist/views/beforeAuth/components/multiline-data/index.d.ts +1 -0
- package/dist/views/beforeAuth/components/multiline-data/multiline-data.d.ts +5 -0
- package/dist/views/beforeAuth/components/share-modal-data/index.d.ts +1 -0
- package/dist/views/beforeAuth/components/share-modal-data/share-modal-data.d.ts +6 -0
- package/dist/views/beforeAuth/components/shared-pages-data/index.d.ts +1 -0
- package/dist/views/beforeAuth/components/shared-pages-data/shared-pages-data.d.ts +7 -0
- package/dist/views/beforeAuth/components/tabs-data/index.d.ts +1 -0
- package/dist/views/beforeAuth/components/tabs-data/tabs-data.d.ts +5 -0
- package/dist/views/beforeAuth/components/user-dashboard-data/index.d.ts +1 -0
- package/dist/views/beforeAuth/components/user-dashboard-data/user-dashboard-data.d.ts +157 -0
- package/dist/views/beforeAuth/components/user-dropdown-data/index.d.ts +1 -0
- package/dist/views/beforeAuth/components/user-dropdown-data/user-dropdown-data.d.ts +6 -0
- package/dist/views/beforeAuth/forgot-password/forgot-password/index.esm.js +177 -0
- package/dist/views/beforeAuth/forgot-password/forgot-password/index.esm.js.map +1 -0
- package/dist/views/beforeAuth/forgot-password/forgot-password/index.js +16 -0
- package/dist/views/beforeAuth/forgot-password/forgot-password/index.js.map +1 -0
- package/dist/views/beforeAuth/forgot-password/forgot-password.d.ts +1 -0
- package/dist/views/beforeAuth/forgot-password/index.d.ts +1 -0
- package/dist/views/beforeAuth/index.d.ts +6 -0
- package/dist/views/beforeAuth/landing/index.d.ts +2 -0
- package/dist/views/beforeAuth/landing/landing/index.esm.js +35 -0
- package/dist/views/beforeAuth/landing/landing/index.esm.js.map +1 -0
- package/dist/views/beforeAuth/landing/landing/index.js +8 -0
- package/dist/views/beforeAuth/landing/landing/index.js.map +1 -0
- package/dist/views/beforeAuth/landing/landing.d.ts +3 -0
- package/dist/views/beforeAuth/login/index/index.esm.js +209 -0
- package/dist/views/beforeAuth/login/index/index.esm.js.map +1 -0
- package/dist/views/beforeAuth/login/index/index.js +20 -0
- package/dist/views/beforeAuth/login/index/index.js.map +1 -0
- package/dist/views/beforeAuth/login/index.d.ts +2 -0
- package/dist/views/beforeAuth/reset-password/index.d.ts +1 -0
- package/dist/views/beforeAuth/reset-password/reset-password/index.esm.js +34 -0
- package/dist/views/beforeAuth/reset-password/reset-password/index.esm.js.map +1 -0
- package/dist/views/beforeAuth/reset-password/reset-password/index.js +2 -0
- package/dist/views/beforeAuth/reset-password/reset-password/index.js.map +1 -0
- package/dist/views/beforeAuth/reset-password/reset-password.d.ts +1 -0
- package/dist/views/form-builder/custom-form/index.esm.js +2 -2
- package/dist/views/form-builder/custom-form/index.js +10 -10
- package/dist/views/form-builder/custom-form.d.ts +7 -0
- package/dist/views/form-builder/element-edit-forms/checkbox.d.ts +3 -0
- package/dist/views/form-builder/element-edit-forms/column-width.d.ts +3 -0
- package/dist/views/form-builder/element-edit-forms/field-select.d.ts +4 -0
- package/dist/views/form-builder/element-edit-forms/index.d.ts +14 -0
- package/dist/views/form-builder/element-edit-forms/section.d.ts +3 -0
- package/dist/views/form-builder/element-edit-forms/select/index.esm.js +1 -1
- package/dist/views/form-builder/element-edit-forms/select/index.js +8 -8
- package/dist/views/form-builder/element-edit-forms/select.d.ts +33 -0
- package/dist/views/form-builder/element-edit-forms/table-form.d.ts +13 -0
- package/dist/views/form-builder/element-edit-forms/text.d.ts +12 -0
- package/dist/views/form-builder/field_properties.d.ts +99 -0
- package/dist/views/form-builder/form-fields.d.ts +46 -0
- package/dist/views/form-builder/index.d.ts +9 -0
- package/dist/views/form-builder/redux/actionCreator/index.esm.js +1 -1
- package/dist/views/form-builder/redux/actionCreator.d.ts +5 -0
- package/dist/views/form-builder/redux/index.d.ts +5 -0
- package/dist/views/form-builder/redux/reducer/index.esm.js +6 -1
- package/dist/views/form-builder/redux/reducer/index.esm.js.map +1 -1
- package/dist/views/form-builder/redux/reducer/index.js +1 -1
- package/dist/views/form-builder/redux/reducer/index.js.map +1 -1
- package/dist/views/form-builder/redux/state.d.ts +27 -0
- package/dist/views/form-builder/types.d.ts +2 -0
- package/dist/views/form-builder/utils/common.d.ts +66 -0
- package/dist/views/form-builder/utils/index.d.ts +1 -0
- package/dist/views/index.d.ts +8 -1
- package/dist/views/index.esm.js +139 -65
- package/dist/views/index.esm.js.map +1 -1
- package/dist/views/index.js +1 -1
- package/dist/views/privateRoute/index.esm.js +14 -0
- package/dist/views/privateRoute/index.esm.js.map +1 -0
- package/dist/views/privateRoute/index.js +2 -0
- package/dist/views/privateRoute/index.js.map +1 -0
- package/dist/views/privateRoute.d.ts +2 -0
- package/dist/views/template-editor/add-template/add-template.d.ts +4 -0
- package/dist/views/template-editor/add-template/index.d.ts +2 -0
- package/dist/views/template-editor/company-selection-modal/company-selection-modal.d.ts +14 -0
- package/dist/views/template-editor/company-selection-modal/index.d.ts +2 -0
- package/dist/views/template-editor/components/EditorCanvas.d.ts +22 -0
- package/dist/views/template-editor/components/EditorHeader/index.esm.js +1 -1
- package/dist/views/template-editor/components/EditorHeader/index.js +3 -3
- package/dist/views/template-editor/components/EditorHeader.d.ts +18 -0
- package/dist/views/template-editor/components/EditorSection/index.esm.js +1 -1
- package/dist/views/template-editor/components/EditorSection/index.js +3 -3
- package/dist/views/template-editor/components/EditorSection.d.ts +20 -0
- package/dist/views/template-editor/components/EditorSidebar.d.ts +2 -0
- package/dist/views/template-editor/components/SectionFlowEditor.d.ts +9 -0
- package/dist/views/template-editor/components/SectionFormatPanel/index.esm.js +1 -1
- package/dist/views/template-editor/components/SectionFormatPanel/index.js +3 -3
- package/dist/views/template-editor/components/SectionFormatPanel.d.ts +46 -0
- package/dist/views/template-editor/components/controllers/AlignmentControl.d.ts +7 -0
- package/dist/views/template-editor/components/controllers/ButtonControls.d.ts +8 -0
- package/dist/views/template-editor/components/controllers/CodeControls.d.ts +8 -0
- package/dist/views/template-editor/components/controllers/DividerControls.d.ts +8 -0
- package/dist/views/template-editor/components/controllers/ImageControls.d.ts +8 -0
- package/dist/views/template-editor/components/controllers/SignatureControls.d.ts +8 -0
- package/dist/views/template-editor/components/controllers/TableControls/index.esm.js +1 -1
- package/dist/views/template-editor/components/controllers/TableControls/index.js +56 -56
- package/dist/views/template-editor/components/controllers/TableControls.d.ts +36 -0
- package/dist/views/template-editor/components/controllers/TextControls.d.ts +21 -0
- package/dist/views/template-editor/components/controllers/border-control.d.ts +13 -0
- package/dist/views/template-editor/components/controllers/index.d.ts +18 -0
- package/dist/views/template-editor/components/index.d.ts +13 -0
- package/dist/views/template-editor/edit-section-modal/edit-section-modal.d.ts +16 -0
- package/dist/views/template-editor/edit-section-modal/index.d.ts +2 -0
- package/dist/views/template-editor/index.d.ts +11 -0
- package/dist/views/template-editor/routes.d.ts +4 -0
- package/dist/views/template-editor/template-modal/html-thumbnail-preview.d.ts +17 -0
- package/dist/views/template-editor/template-modal/index.d.ts +4 -0
- package/dist/views/template-editor/template-modal/template-modal.d.ts +8 -0
- package/dist/views/template-editor/template-name-modal/index.d.ts +2 -0
- package/dist/views/template-editor/template-name-modal/template-name-modal.d.ts +15 -0
- package/dist/views/template-editor/templates/index.esm.js +1 -1
- package/dist/views/template-editor/templates/index.js +3 -3
- package/dist/views/template-editor/templates/index.js.map +1 -1
- package/dist/views/template-editor/templates.d.ts +4 -0
- package/dist/views/template-editor/types/editor.d.ts +32 -0
- package/dist/views/template-editor/types/index.d.ts +1 -0
- package/dist/views/template-editor/utils/common.d.ts +17 -0
- package/dist/views/template-editor/utils/constant.d.ts +136 -0
- package/dist/views/template-editor/utils/default-data/index.esm.js +33 -0
- package/dist/views/template-editor/utils/default-data/index.esm.js.map +1 -0
- package/dist/views/template-editor/utils/default-data/index.js +2 -0
- package/dist/views/template-editor/utils/default-data/index.js.map +1 -0
- package/dist/views/template-editor/utils/default-data.d.ts +7 -0
- package/dist/views/template-editor/utils/index.d.ts +5 -0
- package/dist/views/template-editor/utils/style-extractor.d.ts +11 -0
- package/dist/views/template-editor/utils/types.d.ts +33 -0
- package/dist/vite-env.d.ts +24 -0
- package/package.json +2 -2
- package/src/styles/index.d.ts +1 -0
- package/src/styles/index.ts +1 -146
- package/dist/_virtual/ArrowBack/index.esm.js +0 -5
- package/dist/_virtual/ArrowBack/index.esm.js.map +0 -1
- package/dist/_virtual/ArrowBack/index.js +0 -2
- package/dist/_virtual/ArrowBack/index.js.map +0 -1
- package/dist/_virtual/ArrowForward/index.esm.js +0 -5
- package/dist/_virtual/ArrowForward/index.esm.js.map +0 -1
- package/dist/_virtual/ArrowForward/index.js +0 -2
- package/dist/_virtual/ArrowForward/index.js.map +0 -1
- package/dist/_virtual/IndeterminateCheckBox/index.esm.js +0 -5
- package/dist/_virtual/IndeterminateCheckBox/index.esm.js.map +0 -1
- package/dist/_virtual/IndeterminateCheckBox/index.js +0 -2
- package/dist/_virtual/IndeterminateCheckBox/index.js.map +0 -1
- package/dist/_virtual/NorthEast/index.esm.js +0 -5
- package/dist/_virtual/NorthEast/index.esm.js.map +0 -1
- package/dist/_virtual/NorthEast/index.js +0 -2
- package/dist/_virtual/NorthEast/index.js.map +0 -1
- package/dist/_virtual/Visibility/index.esm.js +0 -5
- package/dist/_virtual/Visibility/index.esm.js.map +0 -1
- package/dist/_virtual/Visibility/index.js +0 -2
- package/dist/_virtual/Visibility/index.js.map +0 -1
- package/dist/components/activity-tag/activity-tag/index.esm.js +0 -154
- package/dist/components/activity-tag/activity-tag/index.esm.js.map +0 -1
- package/dist/components/activity-tag/activity-tag/index.js +0 -15
- package/dist/components/activity-tag/activity-tag/index.js.map +0 -1
- package/dist/components/activityLog/activity-log/index.esm.js +0 -104
- package/dist/components/activityLog/activity-log/index.esm.js.map +0 -1
- package/dist/components/activityLog/activity-log/index.js +0 -14
- package/dist/components/activityLog/activity-log/index.js.map +0 -1
- package/dist/components/button/button.scss/index.esm.js +0 -2
- package/dist/components/button/button.scss/index.esm.js.map +0 -1
- package/dist/components/button/button.scss/index.js +0 -2
- package/dist/components/button/button.scss/index.js.map +0 -1
- package/dist/components/charts/bar-chart/bar-chart/index.esm.js +0 -85
- package/dist/components/charts/bar-chart/bar-chart/index.esm.js.map +0 -1
- package/dist/components/charts/bar-chart/bar-chart/index.js +0 -2
- package/dist/components/charts/bar-chart/bar-chart/index.js.map +0 -1
- package/dist/components/charts/barChart/barChart/index.esm.js +0 -147
- package/dist/components/charts/barChart/barChart/index.esm.js.map +0 -1
- package/dist/components/charts/barChart/barChart/index.js +0 -2
- package/dist/components/charts/barChart/barChart/index.js.map +0 -1
- package/dist/components/charts/donut-chart/donut-chart/index.esm.js +0 -85
- package/dist/components/charts/donut-chart/donut-chart/index.esm.js.map +0 -1
- package/dist/components/charts/donut-chart/donut-chart/index.js +0 -6
- package/dist/components/charts/donut-chart/donut-chart/index.js.map +0 -1
- package/dist/components/charts/donutChart/DonutChart/index.esm.js +0 -96
- package/dist/components/charts/donutChart/DonutChart/index.esm.js.map +0 -1
- package/dist/components/charts/donutChart/DonutChart/index.js +0 -5
- package/dist/components/charts/donutChart/DonutChart/index.js.map +0 -1
- package/dist/components/charts/line-chart/area-line-chart/index.esm.js +0 -40
- package/dist/components/charts/line-chart/area-line-chart/index.esm.js.map +0 -1
- package/dist/components/charts/line-chart/area-line-chart/index.js +0 -2
- package/dist/components/charts/line-chart/area-line-chart/index.js.map +0 -1
- package/dist/components/grid/grid-card/grid-card.scss/index.esm.js +0 -2
- package/dist/components/grid/grid-card/grid-card.scss/index.esm.js.map +0 -1
- package/dist/components/grid/grid-card/grid-card.scss/index.js +0 -2
- package/dist/components/grid/grid-card/grid-card.scss/index.js.map +0 -1
- package/dist/components/list/list.scss/index.esm.js +0 -2
- package/dist/components/list/list.scss/index.esm.js.map +0 -1
- package/dist/components/list/list.scss/index.js +0 -2
- package/dist/components/list/list.scss/index.js.map +0 -1
- package/dist/node_modules/@mui/icons-material/ArrowBack/index.esm.js +0 -18
- package/dist/node_modules/@mui/icons-material/ArrowBack/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/icons-material/ArrowBack/index.js +0 -2
- package/dist/node_modules/@mui/icons-material/ArrowBack/index.js.map +0 -1
- package/dist/node_modules/@mui/icons-material/ArrowForward/index.esm.js +0 -18
- package/dist/node_modules/@mui/icons-material/ArrowForward/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/icons-material/ArrowForward/index.js +0 -2
- package/dist/node_modules/@mui/icons-material/ArrowForward/index.js.map +0 -1
- package/dist/node_modules/@mui/icons-material/IndeterminateCheckBox/index.esm.js +0 -18
- package/dist/node_modules/@mui/icons-material/IndeterminateCheckBox/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/icons-material/IndeterminateCheckBox/index.js +0 -2
- package/dist/node_modules/@mui/icons-material/IndeterminateCheckBox/index.js.map +0 -1
- package/dist/node_modules/@mui/icons-material/NorthEast/index.esm.js +0 -18
- package/dist/node_modules/@mui/icons-material/NorthEast/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/icons-material/NorthEast/index.js +0 -2
- package/dist/node_modules/@mui/icons-material/NorthEast/index.js.map +0 -1
- package/dist/node_modules/@mui/icons-material/Visibility/index.esm.js +0 -18
- package/dist/node_modules/@mui/icons-material/Visibility/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/icons-material/Visibility/index.js +0 -2
- package/dist/node_modules/@mui/icons-material/Visibility/index.js.map +0 -1
- package/dist/node_modules/@mui/lab/Timeline/Timeline/index.esm.js +0 -95
- package/dist/node_modules/@mui/lab/Timeline/Timeline/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/lab/Timeline/Timeline/index.js +0 -3
- package/dist/node_modules/@mui/lab/Timeline/Timeline/index.js.map +0 -1
- package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.esm.js +0 -10
- package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.js +0 -2
- package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.js.map +0 -1
- package/dist/node_modules/@mui/lab/Timeline/timelineClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/lab/Timeline/timelineClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/lab/Timeline/timelineClasses/index.js +0 -2
- package/dist/node_modules/@mui/lab/Timeline/timelineClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.esm.js +0 -76
- package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.js +0 -3
- package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineConnector/timelineConnectorClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/lab/TimelineConnector/timelineConnectorClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineConnector/timelineConnectorClasses/index.js +0 -2
- package/dist/node_modules/@mui/lab/TimelineConnector/timelineConnectorClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.esm.js +0 -91
- package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.js +0 -3
- package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineContent/timelineContentClasses/index.esm.js +0 -11
- package/dist/node_modules/@mui/lab/TimelineContent/timelineContentClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineContent/timelineContentClasses/index.js +0 -2
- package/dist/node_modules/@mui/lab/TimelineContent/timelineContentClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.esm.js +0 -118
- package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.js +0 -3
- package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineDot/timelineDotClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/lab/TimelineDot/timelineDotClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineDot/timelineDotClasses/index.js +0 -2
- package/dist/node_modules/@mui/lab/TimelineDot/timelineDotClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.esm.js +0 -128
- package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.js +0 -3
- package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineItem/timelineItemClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/lab/TimelineItem/timelineItemClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineItem/timelineItemClasses/index.js +0 -2
- package/dist/node_modules/@mui/lab/TimelineItem/timelineItemClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineOppositeContent/timelineOppositeContentClasses/index.esm.js +0 -6
- package/dist/node_modules/@mui/lab/TimelineOppositeContent/timelineOppositeContentClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineOppositeContent/timelineOppositeContentClasses/index.js +0 -2
- package/dist/node_modules/@mui/lab/TimelineOppositeContent/timelineOppositeContentClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.esm.js +0 -73
- package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.js +0 -3
- package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineSeparator/timelineSeparatorClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/lab/TimelineSeparator/timelineSeparatorClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineSeparator/timelineSeparatorClasses/index.js +0 -2
- package/dist/node_modules/@mui/lab/TimelineSeparator/timelineSeparatorClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/lab/internal/convertTimelinePositionToClass/index.esm.js +0 -8
- package/dist/node_modules/@mui/lab/internal/convertTimelinePositionToClass/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/lab/internal/convertTimelinePositionToClass/index.js +0 -2
- package/dist/node_modules/@mui/lab/internal/convertTimelinePositionToClass/index.js.map +0 -1
- package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.esm.js +0 -95
- package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.js +0 -3
- package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.js.map +0 -1
- package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.esm.js +0 -201
- package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.js +0 -3
- package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.js.map +0 -1
- package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.esm.js +0 -11
- package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.esm.js +0 -125
- package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.js +0 -4
- package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.js.map +0 -1
- package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.esm.js +0 -170
- package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.js +0 -3
- package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.js.map +0 -1
- package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.esm.js +0 -11
- package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.esm.js +0 -120
- package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.js +0 -3
- package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.js.map +0 -1
- package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.esm.js +0 -11
- package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/CardActions/CardActions/index.esm.js +0 -92
- package/dist/node_modules/@mui/material/CardActions/CardActions/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/CardActions/CardActions/index.js +0 -3
- package/dist/node_modules/@mui/material/CardActions/CardActions/index.js.map +0 -1
- package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.esm.js +0 -196
- package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.js +0 -2
- package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.js.map +0 -1
- package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.esm.js +0 -11
- package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.esm.js +0 -76
- package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.js +0 -3
- package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.js.map +0 -1
- package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Fab/Fab/index.esm.js +0 -231
- package/dist/node_modules/@mui/material/Fab/Fab/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Fab/Fab/index.js +0 -3
- package/dist/node_modules/@mui/material/Fab/Fab/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Fab/fabClasses/index.esm.js +0 -11
- package/dist/node_modules/@mui/material/Fab/fabClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Fab/fabClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/Fab/fabClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Hidden/Hidden/index.esm.js +0 -135
- package/dist/node_modules/@mui/material/Hidden/Hidden/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Hidden/Hidden/index.js +0 -2
- package/dist/node_modules/@mui/material/Hidden/Hidden/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.esm.js +0 -176
- package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.js +0 -3
- package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.esm.js +0 -119
- package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.js +0 -2
- package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Hidden/withWidth/index.esm.js +0 -92
- package/dist/node_modules/@mui/material/Hidden/withWidth/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Hidden/withWidth/index.js +0 -2
- package/dist/node_modules/@mui/material/Hidden/withWidth/index.js.map +0 -1
- package/dist/node_modules/@mui/material/ImageList/ImageList/index.esm.js +0 -156
- package/dist/node_modules/@mui/material/ImageList/ImageList/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/ImageList/ImageList/index.js +0 -3
- package/dist/node_modules/@mui/material/ImageList/ImageList/index.js.map +0 -1
- package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.js +0 -2
- package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.js.map +0 -1
- package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.esm.js +0 -173
- package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.js +0 -3
- package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.js.map +0 -1
- package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.esm.js +0 -11
- package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.esm.js +0 -222
- package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.js +0 -3
- package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.js.map +0 -1
- package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.esm.js +0 -216
- package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.js +0 -3
- package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.js.map +0 -1
- package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.esm.js +0 -126
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.js +0 -3
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.js.map +0 -1
- package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.esm.js +0 -55
- package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.js +0 -2
- package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Rating/Rating/index.esm.js +0 -638
- package/dist/node_modules/@mui/material/Rating/Rating/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Rating/Rating/index.js +0 -7
- package/dist/node_modules/@mui/material/Rating/Rating/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Rating/ratingClasses/index.esm.js +0 -11
- package/dist/node_modules/@mui/material/Rating/ratingClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Rating/ratingClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/Rating/ratingClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.esm.js +0 -105
- package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.js +0 -3
- package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.js.map +0 -1
- package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.esm.js +0 -453
- package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.js +0 -4
- package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.js.map +0 -1
- package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.esm.js +0 -11
- package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.esm.js +0 -245
- package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.js +0 -2
- package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.js.map +0 -1
- package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.esm.js +0 -11
- package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.esm.js +0 -137
- package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.js +0 -4
- package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.js.map +0 -1
- package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.esm.js +0 -11
- package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Step/Step/index.esm.js +0 -169
- package/dist/node_modules/@mui/material/Step/Step/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Step/Step/index.js +0 -3
- package/dist/node_modules/@mui/material/Step/Step/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Step/StepContext/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/Step/StepContext/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Step/StepContext/index.js +0 -2
- package/dist/node_modules/@mui/material/Step/StepContext/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Step/stepClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/Step/stepClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Step/stepClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/Step/stepClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/StepButton/StepButton/index.esm.js +0 -132
- package/dist/node_modules/@mui/material/StepButton/StepButton/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/StepButton/StepButton/index.js +0 -3
- package/dist/node_modules/@mui/material/StepButton/StepButton/index.js.map +0 -1
- package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.esm.js +0 -11
- package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.esm.js +0 -136
- package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.js +0 -3
- package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.js.map +0 -1
- package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/StepContent/StepContent/index.esm.js +0 -152
- package/dist/node_modules/@mui/material/StepContent/StepContent/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/StepContent/StepContent/index.js +0 -2
- package/dist/node_modules/@mui/material/StepContent/StepContent/index.js.map +0 -1
- package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.esm.js +0 -161
- package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.js +0 -2
- package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.js.map +0 -1
- package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.esm.js +0 -11
- package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.esm.js +0 -239
- package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.js +0 -3
- package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.js.map +0 -1
- package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.esm.js +0 -11
- package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Stepper/Stepper/index.esm.js +0 -155
- package/dist/node_modules/@mui/material/Stepper/Stepper/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Stepper/Stepper/index.js +0 -3
- package/dist/node_modules/@mui/material/Stepper/Stepper/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Stepper/StepperContext/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/Stepper/StepperContext/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Stepper/StepperContext/index.js +0 -2
- package/dist/node_modules/@mui/material/Stepper/StepperContext/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.esm.js +0 -82
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.js +0 -3
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.js.map +0 -1
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.esm.js +0 -538
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.js +0 -2
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.js.map +0 -1
- package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.esm.js +0 -443
- package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.js +0 -3
- package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.js.map +0 -1
- package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.esm.js +0 -179
- package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.js +0 -3
- package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.js.map +0 -1
- package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.esm.js +0 -11
- package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Zoom/Zoom/index.esm.js +0 -196
- package/dist/node_modules/@mui/material/Zoom/Zoom/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Zoom/Zoom/index.js +0 -3
- package/dist/node_modules/@mui/material/Zoom/Zoom/index.js.map +0 -1
- package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.esm.js +0 -9
- package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.js +0 -2
- package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.js.map +0 -1
- package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.esm.js +0 -9
- package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.js +0 -2
- package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.js.map +0 -1
- package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.esm.js +0 -9
- package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.js +0 -2
- package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.js.map +0 -1
- package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.esm.js +0 -9
- package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.js +0 -2
- package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.js.map +0 -1
- package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.esm.js +0 -9
- package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.js +0 -2
- package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.js.map +0 -1
- package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.esm.js +0 -51
- package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.js +0 -2
- package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.js.map +0 -1
- package/dist/node_modules/d3-shape/src/arc/index.esm.js +0 -134
- package/dist/node_modules/d3-shape/src/arc/index.esm.js.map +0 -1
- package/dist/node_modules/d3-shape/src/arc/index.js +0 -2
- package/dist/node_modules/d3-shape/src/arc/index.js.map +0 -1
- package/dist/node_modules/d3-shape/src/descending/index.esm.js +0 -7
- package/dist/node_modules/d3-shape/src/descending/index.esm.js.map +0 -1
- package/dist/node_modules/d3-shape/src/descending/index.js +0 -2
- package/dist/node_modules/d3-shape/src/descending/index.js.map +0 -1
- package/dist/node_modules/d3-shape/src/identity/index.esm.js +0 -7
- package/dist/node_modules/d3-shape/src/identity/index.esm.js.map +0 -1
- package/dist/node_modules/d3-shape/src/identity/index.js +0 -2
- package/dist/node_modules/d3-shape/src/identity/index.js.map +0 -1
- package/dist/node_modules/d3-shape/src/math/index.esm.js +0 -33
- package/dist/node_modules/d3-shape/src/math/index.esm.js.map +0 -1
- package/dist/node_modules/d3-shape/src/math/index.js +0 -2
- package/dist/node_modules/d3-shape/src/math/index.js.map +0 -1
- package/dist/node_modules/d3-shape/src/pie/index.esm.js +0 -56
- package/dist/node_modules/d3-shape/src/pie/index.esm.js.map +0 -1
- package/dist/node_modules/d3-shape/src/pie/index.js +0 -2
- package/dist/node_modules/d3-shape/src/pie/index.js.map +0 -1
- package/dist/src/components/form-control/form-builder/form-builder-element/number-input.d.ts +0 -0
- package/dist/src/views/afterAuth/accounting.d.ts +0 -4
- package/dist/src/views/afterAuth/crm.d.ts +0 -4
- package/dist/src/views/afterAuth/document.d.ts +0 -4
- package/dist/src/views/afterAuth/hrms.d.ts +0 -4
- package/dist/src/views/afterAuth/inventory.d.ts +0 -4
- package/dist/src/views/afterAuth/manufacturing.d.ts +0 -4
- package/dist/src/views/afterAuth/office.d.ts +0 -4
- package/dist/src/views/afterAuth/procurement.d.ts +0 -4
- package/dist/src/views/afterAuth/project.d.ts +0 -4
- package/dist/src/views/afterAuth/purchase.d.ts +0 -4
- package/dist/src/views/afterAuth/quotes.d.ts +0 -4
- package/dist/src/views/afterAuth/rental.d.ts +0 -4
- package/dist/src/views/afterAuth/user.d.ts +0 -4
- package/dist/src/views/beforeAuth/components/user-profile-data/user-profile-data.d.ts +0 -9
- package/dist/styles/sass/_mixins.scss/index.esm.js +0 -2
- package/dist/styles/sass/_mixins.scss/index.esm.js.map +0 -1
- package/dist/styles/sass/_mixins.scss/index.js +0 -2
- package/dist/styles/sass/_mixins.scss/index.js.map +0 -1
- package/dist/styles/sass/_variables.scss/index.esm.js +0 -2
- package/dist/styles/sass/_variables.scss/index.esm.js.map +0 -1
- package/dist/styles/sass/_variables.scss/index.js +0 -2
- package/dist/styles/sass/_variables.scss/index.js.map +0 -1
- package/dist/views/beforeAuth/components/index/index.esm.js +0 -1144
- package/dist/views/beforeAuth/components/index/index.esm.js.map +0 -1
- package/dist/views/beforeAuth/components/index/index.js +0 -206
- package/dist/views/beforeAuth/components/index/index.js.map +0 -1
- package/dist/views/beforeAuth/login/index.scss/index.esm.js +0 -2
- package/dist/views/beforeAuth/login/index.scss/index.esm.js.map +0 -1
- package/dist/views/beforeAuth/login/index.scss/index.js +0 -2
- package/dist/views/beforeAuth/login/index.scss/index.js.map +0 -1
- package/dist/views/form-builder/index/index.esm.js +0 -32
- package/dist/views/form-builder/index/index.esm.js.map +0 -1
- package/dist/views/form-builder/index/index.js +0 -2
- package/dist/views/form-builder/index/index.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/activityLog/activity-log.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Box } from '@mui/material';\nimport Timeline from '@mui/lab/Timeline';\nimport TimelineItem from '@mui/lab/TimelineItem';\nimport TimelineSeparator from '@mui/lab/TimelineSeparator';\nimport TimelineConnector from '@mui/lab/TimelineConnector';\nimport TimelineContent from '@mui/lab/TimelineContent';\nimport TimelineDot from '@mui/lab/TimelineDot';\nimport './activity-log.scss';\nimport Typography from '../typography/typography';\nimport dayjs from 'dayjs';\nimport formatText from '../../utils/format-text';\nimport { useTranslation } from 'react-i18next';\n\nexport const ActivityTag = (props: any) => {\n\tconst { t } = useTranslation();\n\tconst { data } = props;\n\n\tconst formatDateTime = (date: Date): string => {\n\t\tconst formattedDate = dayjs(date).format('DD MMM, YYYY');\n\t\tconst formattedTime = dayjs(date).format('HH:mm');\n\t\treturn `${formattedDate} • ${formattedTime}`;\n\t};\n\n\tconst actions = {\n\t\tview: t('common.viewed_text'),\n\t\tdelete: t('common.deleted_text'),\n\t\tcreate: t('common.created_text'),\n\t\tupdate: t('common.updated_text')\n\t};\n\treturn (\n\t\t// <Box position='relative'>\n\t\t<Box>\n\t\t\t<Timeline className='Timeline'>\n\t\t\t\t<Box\n\t\t\t\t\tsx={{\n\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\tflexDirection: 'column',\n\t\t\t\t\t\tgap: 2,\n\t\t\t\t\t\tpadding: '16px'\n\t\t\t\t\t}}\n\t\t\t\t\tclassName='box-class'>\n\t\t\t\t\t<Typography type='s3' weight='medium' color='theme.secondary.800'>\n\t\t\t\t\t\t{t('common.activities_label')}\n\t\t\t\t\t</Typography>\n\t\t\t\t\t<Box\n\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\theight: 400,\n\t\t\t\t\t\t\toverflowY: 'auto',\n\t\t\t\t\t\t\tgap: 1.5,\n\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\tflexDirection: 'column'\n\t\t\t\t\t\t}}>\n\t\t\t\t\t\t{data?.map((item: any, index: number) => (\n\t\t\t\t\t\t\t<div className='Timeline--Activity'>\n\t\t\t\t\t\t\t\t<TimelineItem key={index}>\n\t\t\t\t\t\t\t\t\t<TimelineSeparator>\n\t\t\t\t\t\t\t\t\t\t<TimelineDot\n\t\t\t\t\t\t\t\t\t\t\tcolor='primary'\n\t\t\t\t\t\t\t\t\t\t\tsx={{ backgroundColor: '#D3D3D4' }}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t{data.length - 1 !== index && <TimelineConnector />}\n\t\t\t\t\t\t\t\t\t</TimelineSeparator>\n\t\t\t\t\t\t\t\t\t<TimelineContent className='Timeline--Content'>\n\t\t\t\t\t\t\t\t\t\t<Typography\n\t\t\t\t\t\t\t\t\t\t\ttype='s5'\n\t\t\t\t\t\t\t\t\t\t\tcolor='theme.secondary.800'\n\t\t\t\t\t\t\t\t\t\t\tclassName='Timeline--ActivityLogItem'>\n\t\t\t\t\t\t\t\t\t\t\t<b>{formatText(item.username)}</b> {actions[item.action]}{' '}\n\t\t\t\t\t\t\t\t\t\t\t<b>{formatText(item.resource?.replace('_', ' '))}</b>\n\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t\t<Typography\n\t\t\t\t\t\t\t\t\t\t\ttype='s5'\n\t\t\t\t\t\t\t\t\t\t\tcolor='theme.secondary.800'\n\t\t\t\t\t\t\t\t\t\t\tclassName='Timeline--ActivityLogItem'>\n\t\t\t\t\t\t\t\t\t\t\t{formatDateTime(item?.created_at)}\n\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t</TimelineContent>\n\t\t\t\t\t\t\t\t</TimelineItem>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</Box>\n\t\t\t\t</Box>\n\t\t\t</Timeline>\n\t\t</Box>\n\t\t// </Box>\n\t);\n};\n\nexport default ActivityTag;\n"],"names":["ActivityTag","props","t","useTranslation","data","actions","view","delete","create","update","jsx","Box","children","Timeline","className","jsxs","sx","display","flexDirection","gap","padding","Typography","type","weight","color","height","overflowY","map","item","index","date","TimelineItem","TimelineSeparator","TimelineDot","backgroundColor","length","TimelineConnector","TimelineContent","formatText","username","action","_a","resource","replace","created_at","dayjs","format"],"mappings":"m7BAeO,MAAMA,EAAeC,IAC3B,MAAMC,EAAEA,GAAMC,oBACRC,KAAEA,GAASH,EAQXI,EAAU,CACfC,KAAMJ,EAAE,sBACRK,OAAQL,EAAE,uBACVM,OAAQN,EAAE,uBACVO,OAAQP,EAAE;;AAEX,OAECQ,MAACC,EAAAA,QAAA,CACAC,wBAAAF,EAAAA,IAACG,E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,OAAO,mBAmChBjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useRef, useMemo, useEffect } from "react";
|
|
3
|
-
import band from "../../../../node_modules/d3-scale/src/band/index.esm.js";
|
|
4
|
-
import linear from "../../../../node_modules/d3-scale/src/linear/index.esm.js";
|
|
5
|
-
import select from "../../../../node_modules/d3-selection/src/select/index.esm.js";
|
|
6
|
-
import { axisBottom, axisLeft } from "../../../../node_modules/d3-axis/src/axis/index.esm.js";
|
|
7
|
-
const formatNumber = (num) => {
|
|
8
|
-
if (num >= 1e9) return (num / 1e9).toFixed(1) + "B";
|
|
9
|
-
if (num >= 1e6) return (num / 1e6).toFixed(1) + "M";
|
|
10
|
-
if (num >= 1e3) return (num / 1e3).toFixed(1) + "K";
|
|
11
|
-
return num;
|
|
12
|
-
};
|
|
13
|
-
const BarChart = ({
|
|
14
|
-
data,
|
|
15
|
-
numOfLines = 5,
|
|
16
|
-
width = 500,
|
|
17
|
-
height = 300,
|
|
18
|
-
line = false
|
|
19
|
-
}) => {
|
|
20
|
-
const svgRef = useRef(null);
|
|
21
|
-
const maxValue = useMemo(() => {
|
|
22
|
-
return Math.max(...data.map((d) => d.value));
|
|
23
|
-
}, [data]);
|
|
24
|
-
const yAxisMaxValue = useMemo(() => {
|
|
25
|
-
return maxValue * 1.25;
|
|
26
|
-
}, [maxValue]);
|
|
27
|
-
const yAxisTicks = useMemo(() => {
|
|
28
|
-
const ticks = [];
|
|
29
|
-
const interval = yAxisMaxValue / numOfLines;
|
|
30
|
-
for (let i = 0; i <= numOfLines; i++) {
|
|
31
|
-
ticks.push(interval * i);
|
|
32
|
-
}
|
|
33
|
-
return ticks;
|
|
34
|
-
}, [yAxisMaxValue, numOfLines]);
|
|
35
|
-
useEffect(() => {
|
|
36
|
-
if (!svgRef.current) return;
|
|
37
|
-
const svg = select(svgRef.current);
|
|
38
|
-
svg.selectAll("*").remove();
|
|
39
|
-
const margin = { top: 20, right: 20, bottom: 70, left: 40 };
|
|
40
|
-
const barWidth = width - margin.left - margin.right;
|
|
41
|
-
const barHeight = height - margin.top - margin.bottom;
|
|
42
|
-
const mousemove = (event, d) => {
|
|
43
|
-
var _a, _b;
|
|
44
|
-
let xPosition = event.offsetX + margin.left - 25;
|
|
45
|
-
const yPosition = event.offsetY + margin.top - 40;
|
|
46
|
-
const tooltipWidth = (_b = (_a = tooltip.node()) == null ? void 0 : _a.getBoundingClientRect()) == null ? void 0 : _b.width;
|
|
47
|
-
const rightOffset = tooltipWidth ? xPosition + tooltipWidth : xPosition;
|
|
48
|
-
if (rightOffset > width) {
|
|
49
|
-
xPosition = Math.floor(
|
|
50
|
-
tooltipWidth ? xPosition - tooltipWidth - 20 : xPosition - 20
|
|
51
|
-
);
|
|
52
|
-
}
|
|
53
|
-
const text = `${d.label} - ${d.value}`;
|
|
54
|
-
tooltip.attr("x", xPosition).attr("y", yPosition).style("opacity", 9).style("height", text.length >= 16 ? 50 : 35);
|
|
55
|
-
tooltipText.html(text);
|
|
56
|
-
};
|
|
57
|
-
const mouseleave = () => {
|
|
58
|
-
tooltip.style("opacity", 0);
|
|
59
|
-
};
|
|
60
|
-
const x = band().domain(data.map((d) => d.label)).range([0, barWidth]).padding(0.1);
|
|
61
|
-
const y = linear().domain([0, yAxisMaxValue]).range([barHeight, 0]);
|
|
62
|
-
const chart = svg.append("g").attr("transform", `translate(${margin.left},${margin.top})`);
|
|
63
|
-
if (line) {
|
|
64
|
-
yAxisTicks.slice(1).forEach((tick) => {
|
|
65
|
-
chart.append("line").attr("class", "dotted-line").attr("x1", 0).attr("y1", y(tick)).attr("x2", barWidth).attr("y2", y(tick)).style("stroke", "gray").style("stroke-dasharray", "3,3").style("opacity", 1);
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
chart.selectAll(".bar").data(data).enter().append("rect").attr("class", "bar").attr("x", (d) => x(d.label)).attr("y", (d) => y(d.value)).attr("width", x.bandwidth()).attr("height", (d) => barHeight - y(d.value)).style("fill", "#357AF6").style("opacity", "1").on("mousemove", mousemove).on("mouseleave", mouseleave);
|
|
69
|
-
const xAxis = chart.append("g").attr("class", "x-axis").attr("transform", `translate(0, ${barHeight})`).call(axisBottom(x));
|
|
70
|
-
xAxis.selectAll(".tick line").remove();
|
|
71
|
-
const yAxis = chart.append("g").attr("class", "y-axis").call(
|
|
72
|
-
axisLeft(y).tickValues(yAxisTicks).tickFormat((d) => {
|
|
73
|
-
return formatNumber(d);
|
|
74
|
-
}).tickSizeOuter(0)
|
|
75
|
-
);
|
|
76
|
-
yAxis.selectAll(".tick line").remove();
|
|
77
|
-
const tooltip = svg.append("foreignObject").attr("class", "tooltip").attr("width", 120).attr("height", 20).style("opacity", 0).style("position", "absolute").style("background-color", "white").style("border", "none").style("box-shadow", "0rem 0rem 0.469rem 0rem rgba(0, 0, 0, 0.15)").style("border-radius", "0.313rem").style("padding", "0.625rem").style("font-size", "0.75rem");
|
|
78
|
-
const tooltipText = tooltip.append("xhtml:div").style("font-size", "0.75rem").style("color", "black");
|
|
79
|
-
}, [data, height, width, line, yAxisMaxValue, yAxisTicks]);
|
|
80
|
-
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("svg", { ref: svgRef, width, height }) });
|
|
81
|
-
};
|
|
82
|
-
export {
|
|
83
|
-
BarChart as default
|
|
84
|
-
};
|
|
85
|
-
//# sourceMappingURL=index.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../../../../../src/components/charts/bar-chart/bar-chart.tsx"],"sourcesContent":["import React, { useRef, useEffect, useMemo } from \"react\";\nimport * as d3 from \"d3\";\n\ninterface DataPoint {\n label: string;\n value: number;\n}\n\ninterface BarChartProps {\n data: DataPoint[];\n numOfLines?: number;\n width?: number;\n height?: number;\n line?: boolean;\n}\n\nconst formatNumber = (num: number) => {\n if (num >= 1e9) return (num / 1e9).toFixed(1) + \"B\";\n if (num >= 1e6) return (num / 1e6).toFixed(1) + \"M\";\n if (num >= 1e3) return (num / 1e3).toFixed(1) + \"K\";\n return num;\n};\n\nconst BarChart: React.FC<BarChartProps> = ({\n data,\n numOfLines = 5,\n width = 500,\n height = 300,\n line = false,\n}) => {\n const svgRef = useRef<SVGSVGElement>(null);\n\n const maxValue = useMemo(() => {\n return Math.max(...data.map((d) => d.value));\n }, [data]);\n\n const yAxisMaxValue = useMemo(() => {\n return maxValue * 1.25;\n }, [maxValue]);\n\n const yAxisTicks = useMemo(() => {\n const ticks = [];\n const interval = yAxisMaxValue / numOfLines;\n for (let i = 0; i <= numOfLines; i++) {\n ticks.push(interval * i);\n }\n return ticks;\n }, [yAxisMaxValue, numOfLines]);\n\n useEffect(() => {\n if (!svgRef.current) return;\n\n const svg = d3.select(svgRef.current);\n\n svg.selectAll(\"*\").remove();\n\n const margin = { top: 20, right: 20, bottom: 70, left: 40 };\n const barWidth = width - margin.left - margin.right;\n const barHeight = height - margin.top - margin.bottom;\n\n const mousemove = (event: MouseEvent, d: DataPoint) => {\n let xPosition = event.offsetX + margin.left - 25;\n const yPosition = event.offsetY + margin.top - 40;\n const tooltipWidth = tooltip.node()?.getBoundingClientRect()?.width;\n const rightOffset = tooltipWidth ? xPosition + tooltipWidth : xPosition;\n if (rightOffset > width) {\n xPosition = Math.floor(\n tooltipWidth ? xPosition - tooltipWidth - 20 : xPosition - 20,\n );\n }\n\n const text = `${d.label} - ${d.value}`;\n tooltip\n .attr(\"x\", xPosition)\n .attr(\"y\", yPosition)\n .style(\"opacity\", 9)\n .style(\"height\", text.length >= 16 ? 50 : 35);\n\n tooltipText.html(text);\n };\n\n const mouseleave = () => {\n tooltip.style(\"opacity\", 0);\n };\n\n const x = d3\n .scaleBand()\n .domain(data.map((d) => d.label))\n .range([0, barWidth])\n .padding(0.1);\n\n const y = d3.scaleLinear().domain([0, yAxisMaxValue]).range([barHeight, 0]);\n\n const chart = svg\n .append(\"g\")\n .attr(\"transform\", `translate(${margin.left},${margin.top})`);\n\n if (line) {\n yAxisTicks.slice(1).forEach((tick) => {\n chart\n .append(\"line\")\n .attr(\"class\", \"dotted-line\")\n .attr(\"x1\", 0)\n .attr(\"y1\", y(tick))\n .attr(\"x2\", barWidth)\n .attr(\"y2\", y(tick))\n .style(\"stroke\", \"gray\")\n .style(\"stroke-dasharray\", \"3,3\")\n .style(\"opacity\", 1);\n });\n }\n\n chart\n .selectAll(\".bar\")\n .data(data)\n .enter()\n .append(\"rect\")\n .attr(\"class\", \"bar\")\n //@ts-expect-error not applicable\n .attr(\"x\", (d: any) => x(d.label))\n .attr(\"y\", (d: any) => y(d.value))\n .attr(\"width\", x.bandwidth())\n .attr(\"height\", (d: any) => barHeight - y(d.value))\n .style(\"fill\", \"#357AF6\")\n .style(\"opacity\", \"1\")\n .on(\"mousemove\", mousemove)\n .on(\"mouseleave\", mouseleave);\n\n const xAxis = chart\n .append(\"g\")\n .attr(\"class\", \"x-axis\")\n .attr(\"transform\", `translate(0, ${barHeight})`)\n .call(d3.axisBottom(x) as any);\n\n xAxis.selectAll(\".tick line\").remove();\n\n const yAxis = chart\n .append(\"g\")\n .attr(\"class\", \"y-axis\")\n .call(\n d3\n .axisLeft(y)\n .tickValues(yAxisTicks)\n //@ts-expect-error not applicable\n .tickFormat((d: any) => {\n return formatNumber(d);\n })\n .tickSizeOuter(0) as any,\n );\n\n yAxis.selectAll(\".tick line\").remove();\n\n const tooltip = svg\n .append(\"foreignObject\")\n .attr(\"class\", \"tooltip\")\n .attr(\"width\", 120)\n .attr(\"height\", 20)\n .style(\"opacity\", 0)\n .style(\"position\", \"absolute\")\n .style(\"background-color\", \"white\")\n .style(\"border\", \"none\")\n .style(\"box-shadow\", \"0rem 0rem 0.469rem 0rem rgba(0, 0, 0, 0.15)\")\n .style(\"border-radius\", \"0.313rem\")\n .style(\"padding\", \"0.625rem\")\n .style(\"font-size\", \"0.75rem\");\n\n const tooltipText = tooltip\n .append(\"xhtml:div\")\n .style(\"font-size\", \"0.75rem\")\n .style(\"color\", \"black\");\n }, [data, height, width, line, yAxisMaxValue, yAxisTicks]);\n\n return (\n <>\n <svg ref={svgRef} width={width} height={height}></svg>\n </>\n );\n};\n\nexport default BarChart;\n"],"names":["d3.select","d3.scaleBand","d3.scaleLinear","d3.axisBottom","d3.axisLeft"],"mappings":";;;;;;AAgBA,MAAM,eAAe,CAAC,QAAgB;AACpC,MAAI,OAAO,IAAK,SAAQ,MAAM,KAAK,QAAQ,CAAC,IAAI;AAChD,MAAI,OAAO,IAAK,SAAQ,MAAM,KAAK,QAAQ,CAAC,IAAI;AAChD,MAAI,OAAO,IAAK,SAAQ,MAAM,KAAK,QAAQ,CAAC,IAAI;AAChD,SAAO;AACT;AAEA,MAAM,WAAoC,CAAC;AAAA,EACzC;AAAA,EACA,aAAa;AAAA,EACb,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,OAAO;AACT,MAAM;AACJ,QAAM,SAAS,OAAsB,IAAI;AAEzC,QAAM,WAAW,QAAQ,MAAM;AAC7B,WAAO,KAAK,IAAI,GAAG,KAAK,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC;AAAA,EAC7C,GAAG,CAAC,IAAI,CAAC;AAET,QAAM,gBAAgB,QAAQ,MAAM;AAClC,WAAO,WAAW;AAAA,EACpB,GAAG,CAAC,QAAQ,CAAC;AAEb,QAAM,aAAa,QAAQ,MAAM;AAC/B,UAAM,QAAQ,CAAA;AACd,UAAM,WAAW,gBAAgB;AACjC,aAAS,IAAI,GAAG,KAAK,YAAY,KAAK;AACpC,YAAM,KAAK,WAAW,CAAC;AAAA,IACzB;AACA,WAAO;AAAA,EACT,GAAG,CAAC,eAAe,UAAU,CAAC;AAE9B,YAAU,MAAM;A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E,EACjB,MAAM,WAAW,CAAC,EAClB,MAAM,YAAY,UAAU,EAC5B,MAAM,oBAAoB,OAAO,EACjC,MAAM,UAAU,MAAM,EACtB,MAAM,cAAc,6CAA6C,EACjE,MAAM,iBAAiB,UAAU,EACjC,MAAM,WAAW,UAAU,EAC3B,MAAM,aAAa,SAAS;AAE/B,UAAM,cAAc,QACjB,OAAO,WAAW,EAClB,MAAM,aAAa,SAAS,EAC5B,MAAM,SAAS,OAAO;AAAA,EAC3B,GAAG,CAAC,MAAM,QAAQ,OAAO,MAAM,eAAe,UAAU,CAAC;AAEzD,yCAEI,UAAA,oBAAC,OAAA,EAAI,KAAK,QAAQ,OAAc,QAAgB,EAAA,CAClD;AAEJ;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),r=require("../../../../node_modules/d3-scale/src/band/index.js"),a=require("../../../../node_modules/d3-scale/src/linear/index.js"),s=require("../../../../node_modules/d3-selection/src/select/index.js"),l=require("../../../../node_modules/d3-axis/src/axis/index.js");exports.default=({data:o,numOfLines:i=5,width:n=500,height:d=300,line:c=!1})=>{const u=t.useRef(null),m=t.useMemo(()=>Math.max(...o.map(e=>e.value)),[o]),y=t.useMemo(()=>1.25*m,[m]),p=t.useMemo(()=>{const e=[],t=y/i;for(let r=0;r<=i;r++)e.push(t*r);return e},[y,i]);return t.useEffect(()=>{if(!u.current)return;const e=s.default(u.current);e.selectAll("*").remove();const t=n-40-20,i=d-20-70,m=r.default().domain(o.map(e=>e.label)).range([0,t]).padding(.1),h=a.default().domain([0,y]).range([i,0]),x=e.append("g").attr("transform","translate(40,20)");c&&p.slice(1).forEach(e=>{x.append("line").attr("class","dotted-line").attr("x1",0).attr("y1",h(e)).attr("x2",t).attr("y2",h(e)).style("stroke","gray").style("stroke-dasharray","3,3").style("opacity",1)}),x.selectAll(".bar").data(o).enter().append("rect").attr("class","bar").attr("x",e=>m(e.label)).attr("y",e=>h(e.value)).attr("width",m.bandwidth()).attr("height",e=>i-h(e.value)).style("fill","#357AF6").style("opacity","1").on("mousemove",(e,t)=>{var r,a;let s=e.offsetX+40-25;const l=e.offsetY+20-40,o=null==(a=null==(r=f.node())?void 0:r.getBoundingClientRect())?void 0:a.width;(o?s+o:s)>n&&(s=Math.floor(o?s-o-20:s-20));const i=`${t.label} - ${t.value}`;f.attr("x",s).attr("y",l).style("opacity",9).style("height",i.length>=16?50:35),g.html(i)}).on("mouseleave",()=>{f.style("opacity",0)}),x.append("g").attr("class","x-axis").attr("transform",`translate(0, ${i})`).call(l.axisBottom(m)).selectAll(".tick line").remove(),x.append("g").attr("class","y-axis").call(l.axisLeft(h).tickValues(p).tickFormat(e=>{return(t=e)>=1e9?(t/1e9).toFixed(1)+"B":t>=1e6?(t/1e6).toFixed(1)+"M":t>=1e3?(t/1e3).toFixed(1)+"K":t;var t}).tickSizeOuter(0)).selectAll(".tick line").remove();const f=e.append("foreignObject").attr("class","tooltip").attr("width",120).attr("height",20).style("opacity",0).style("position","absolute").style("background-color","white").style("border","none").style("box-shadow","0rem 0rem 0.469rem 0rem rgba(0, 0, 0, 0.15)").style("border-radius","0.313rem").style("padding","0.625rem").style("font-size","0.75rem"),g=f.append("xhtml:div").style("font-size","0.75rem").style("color","black")},[o,d,n,c,y,p]),/* @__PURE__ */e.jsx(e.Fragment,{children:/* @__PURE__ */e.jsx("svg",{ref:u,width:n,height:d})})};
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/charts/bar-chart/bar-chart.tsx"],"sourcesContent":["import React, { useRef, useEffect, useMemo } from \"react\";\nimport * as d3 from \"d3\";\n\ninterface DataPoint {\n label: string;\n value: number;\n}\n\ninterface BarChartProps {\n data: DataPoint[];\n numOfLines?: number;\n width?: number;\n height?: number;\n line?: boolean;\n}\n\nconst formatNumber = (num: number) => {\n if (num >= 1e9) return (num / 1e9).toFixed(1) + \"B\";\n if (num >= 1e6) return (num / 1e6).toFixed(1) + \"M\";\n if (num >= 1e3) return (num / 1e3).toFixed(1) + \"K\";\n return num;\n};\n\nconst BarChart: React.FC<BarChartProps> = ({\n data,\n numOfLines = 5,\n width = 500,\n height = 300,\n line = false,\n}) => {\n const svgRef = useRef<SVGSVGElement>(null);\n\n const maxValue = useMemo(() => {\n return Math.max(...data.map((d) => d.value));\n }, [data]);\n\n const yAxisMaxValue = useMemo(() => {\n return maxValue * 1.25;\n }, [maxValue]);\n\n const yAxisTicks = useMemo(() => {\n const ticks = [];\n const interval = yAxisMaxValue / numOfLines;\n for (let i = 0; i <= numOfLines; i++) {\n ticks.push(interval * i);\n }\n return ticks;\n }, [yAxisMaxValue, numOfLines]);\n\n useEffect(() => {\n if (!svgRef.current) return;\n\n const svg = d3.select(svgRef.current);\n\n svg.selectAll(\"*\").remove();\n\n const margin = { top: 20, right: 20, bottom: 70, left: 40 };\n const barWidth = width - margin.left - margin.right;\n const barHeight = height - margin.top - margin.bottom;\n\n const mousemove = (event: MouseEvent, d: DataPoint) => {\n let xPosition = event.offsetX + margin.left - 25;\n const yPosition = event.offsetY + margin.top - 40;\n const tooltipWidth = tooltip.node()?.getBoundingClientRect()?.width;\n const rightOffset = tooltipWidth ? xPosition + tooltipWidth : xPosition;\n if (rightOffset > width) {\n xPosition = Math.floor(\n tooltipWidth ? xPosition - tooltipWidth - 20 : xPosition - 20,\n );\n }\n\n const text = `${d.label} - ${d.value}`;\n tooltip\n .attr(\"x\", xPosition)\n .attr(\"y\", yPosition)\n .style(\"opacity\", 9)\n .style(\"height\", text.length >= 16 ? 50 : 35);\n\n tooltipText.html(text);\n };\n\n const mouseleave = () => {\n tooltip.style(\"opacity\", 0);\n };\n\n const x = d3\n .scaleBand()\n .domain(data.map((d) => d.label))\n .range([0, barWidth])\n .padding(0.1);\n\n const y = d3.scaleLinear().domain([0, yAxisMaxValue]).range([barHeight, 0]);\n\n const chart = svg\n .append(\"g\")\n .attr(\"transform\", `translate(${margin.left},${margin.top})`);\n\n if (line) {\n yAxisTicks.slice(1).forEach((tick) => {\n chart\n .append(\"line\")\n .attr(\"class\", \"dotted-line\")\n .attr(\"x1\", 0)\n .attr(\"y1\", y(tick))\n .attr(\"x2\", barWidth)\n .attr(\"y2\", y(tick))\n .style(\"stroke\", \"gray\")\n .style(\"stroke-dasharray\", \"3,3\")\n .style(\"opacity\", 1);\n });\n }\n\n chart\n .selectAll(\".bar\")\n .data(data)\n .enter()\n .append(\"rect\")\n .attr(\"class\", \"bar\")\n //@ts-expect-error not applicable\n .attr(\"x\", (d: any) => x(d.label))\n .attr(\"y\", (d: any) => y(d.value))\n .attr(\"width\", x.bandwidth())\n .attr(\"height\", (d: any) => barHeight - y(d.value))\n .style(\"fill\", \"#357AF6\")\n .style(\"opacity\", \"1\")\n .on(\"mousemove\", mousemove)\n .on(\"mouseleave\", mouseleave);\n\n const xAxis = chart\n .append(\"g\")\n .attr(\"class\", \"x-axis\")\n .attr(\"transform\", `translate(0, ${barHeight})`)\n .call(d3.axisBottom(x) as any);\n\n xAxis.selectAll(\".tick line\").remove();\n\n const yAxis = chart\n .append(\"g\")\n .attr(\"class\", \"y-axis\")\n .call(\n d3\n .axisLeft(y)\n .tickValues(yAxisTicks)\n //@ts-expect-error not applicable\n .tickFormat((d: any) => {\n return formatNumber(d);\n })\n .tickSizeOuter(0) as any,\n );\n\n yAxis.selectAll(\".tick line\").remove();\n\n const tooltip = svg\n .append(\"foreignObject\")\n .attr(\"class\", \"tooltip\")\n .attr(\"width\", 120)\n .attr(\"height\", 20)\n .style(\"opacity\", 0)\n .style(\"position\", \"absolute\")\n .style(\"background-color\", \"white\")\n .style(\"border\", \"none\")\n .style(\"box-shadow\", \"0rem 0rem 0.469rem 0rem rgba(0, 0, 0, 0.15)\")\n .style(\"border-radius\", \"0.313rem\")\n .style(\"padding\", \"0.625rem\")\n .style(\"font-size\", \"0.75rem\");\n\n const tooltipText = tooltip\n .append(\"xhtml:div\")\n .style(\"font-size\", \"0.75rem\")\n .style(\"color\", \"black\");\n }, [data, height, width, line, yAxisMaxValue, yAxisTicks]);\n\n return (\n <>\n <svg ref={svgRef} width={width} height={height}></svg>\n </>\n );\n};\n\nexport default BarChart;\n"],"names":["data","numOfLines","width","height","line","svgRef","useRef","maxValue","useMemo","Math","max","map","d","value","yAxisMaxValue","yAxisTicks","ticks","interval","i","push","useEffect","current","svg","d3.select","selectAll","remove","barWidth","barHeight","x","d3.scaleBand","domain","label","range","padding","y","d3.scaleLinear","chart","append","attr","slice","forEach","tick","style","enter","bandwidth","on","event","xPosition","offsetX","yPosition","offsetY","tooltipWidth","_b","_a","tooltip","node","getBoundingClientRect","floor","text","length","tooltipText","html","call","d3.axisBottom","d3.axisLeft","tickValues","tickFormat","num","toFixed","tickSizeOuter","children","jsx","ref"],"mappings":"qZAuB0C,EACxCA,OACAC,aAAa,EACbC,QAAQ,IACRC,SAAS,IACTC,QAAO,MAEP,MAAMC,EAASC,EAAAA,OAAsB,MAE/BC,EAAWC,EAAAA,QAAQ,IAChBC,KAAKC,OAAOV,EAAKW,IAAKC,GAAMA,EAAEC,QACpC,CAACb,IAEEc,EAAgBN,EAAAA,QAAQ,IACV,KAAXD,EACN,CAACA,IAEEQ,EAAaP,EAAAA,QAAQ,KACzB,MAAMQ,EAAQ,GACRC,EAAWH,EAAgBb,EACjC,IAAA,IAASiB,EAAI,EAAGA,GAAKjB,EAAYiB,IAC/BF,EAAMG,KAAKF,EAAWC,GAExB,OAAOF,GACN,CAACF,EAAeb,IA6HnB,OA3HAmB,EAAAA,UAAU,KACR,IAAKf,EAAOgB,QAAS,OAErB,MAAMC,EAAMC,EAAAA,QAAUlB,EAAOgB,SAE7BC,EAAIE,UAAU,KAAKC,SAEnB,MACMC,EAAWxB,EADsC,GAAtB,GAE3ByB,EAAYxB,EAFI,GAAuB,GA6BvCyB,EAAIC,EAAAA,UAEPC,OAAO9B,EAAKW,IAAKC,GAAMA,EAA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jBS,EAAQZ,MAAM,UAAW,KA8CbN,EACXC,OAAO,KACPC,KAAK,QAAS,UACdA,KAAK,YAAa,gBAAgBX,MAClCmC,KAAKC,EAAAA,WAAcnC,IAEhBJ,UAAU,cAAcC,SAEhBW,EACXC,OAAO,KACPC,KAAK,QAAS,UACdwB,KACCE,EAAAA,SACY9B,GACT+B,WAAWlD,GAEXmD,WAAYtD,IACX,OAjIUuD,EAiIUvD,IAhInB,KAAauD,EAAM,KAAKC,QAAQ,GAAK,IAC5CD,GAAO,KAAaA,EAAM,KAAKC,QAAQ,GAAK,IAC5CD,GAAO,KAAaA,EAAM,KAAKC,QAAQ,GAAK,IACzCD,EAJY,IAACA,IAmIXE,cAAc,IAGf7C,UAAU,cAAcC,SAE9B,MAAM6B,EAAUhC,EACbe,OAAO,iBACPC,KAAK,QAAS,WACdA,KAAK,QAAS,KACdA,KAAK,SAAU,IACfI,MAAM,UAAW,GACjBA,MAAM,WAAY,YAClBA,MAAM,mBAAoB,SAC1BA,MAAM,SAAU,QAChBA,MAAM,aAAc,+CACpBA,MAAM,gBAAiB,YACvBA,MAAM,UAAW,YACjBA,MAAM,YAAa,WAEhBkB,EAAcN,EACjBjB,OAAO,aACPK,MAAM,YAAa,WACnBA,MAAM,QAAS,UACjB,CAAC1C,EAAMG,EAAQD,EAAOE,EAAMU,EAAeC,qCAI1CuD,wBAAAC,EAAAA,IAAC,MAAA,CAAIC,IAAKnE,EAAQH,QAAcC"}
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useRef, useState, useMemo, useEffect } from "react";
|
|
3
|
-
import band from "../../../../node_modules/d3-scale/src/band/index.esm.js";
|
|
4
|
-
import linear from "../../../../node_modules/d3-scale/src/linear/index.esm.js";
|
|
5
|
-
import select from "../../../../node_modules/d3-selection/src/select/index.esm.js";
|
|
6
|
-
import { axisTop, axisBottom, axisLeft } from "../../../../node_modules/d3-axis/src/axis/index.esm.js";
|
|
7
|
-
import { format } from "../../../../node_modules/d3-format/src/defaultLocale/index.esm.js";
|
|
8
|
-
const formatNumber = (num, symbol, labelType) => {
|
|
9
|
-
if (labelType === "inPercent") {
|
|
10
|
-
return `${format(".0%")(num / 100)}`;
|
|
11
|
-
} else if (labelType === "inValue") {
|
|
12
|
-
return `${symbol || ""} ${format(".2s")(num).replace("k", "K")}`;
|
|
13
|
-
}
|
|
14
|
-
return num.toString();
|
|
15
|
-
};
|
|
16
|
-
function wrapText(textSelection, width) {
|
|
17
|
-
textSelection.each(function() {
|
|
18
|
-
const text = select(this);
|
|
19
|
-
const originalText = text.text();
|
|
20
|
-
if (originalText.length <= 8) {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
if (originalText.length > 12) {
|
|
24
|
-
text.text(originalText.substring(0, 10) + "...");
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
const words = originalText.split(/\s+/).reverse();
|
|
28
|
-
let word;
|
|
29
|
-
let line = [];
|
|
30
|
-
let lineNumber = 0;
|
|
31
|
-
const lineHeight = 1.1;
|
|
32
|
-
const y = text.attr("y");
|
|
33
|
-
const dy = parseFloat(text.attr("dy")) || 0;
|
|
34
|
-
let tspan = text.text(null).append("tspan").attr("x", 0).attr("y", y).attr("dy", `${dy}em`);
|
|
35
|
-
while (word = words.pop()) {
|
|
36
|
-
line.push(word);
|
|
37
|
-
tspan.text(line.join(" "));
|
|
38
|
-
if (tspan.node() && tspan.node().getComputedTextLength() > width) {
|
|
39
|
-
line.pop();
|
|
40
|
-
tspan.text(line.join(" "));
|
|
41
|
-
line = [word];
|
|
42
|
-
tspan = text.append("tspan").attr("x", 0).attr("y", y).attr("dy", `${++lineNumber * lineHeight + dy}em`).text(word);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
const BarChart = ({
|
|
48
|
-
data,
|
|
49
|
-
numOfLines = 5,
|
|
50
|
-
initialWidth = 500,
|
|
51
|
-
height = 400,
|
|
52
|
-
line = false,
|
|
53
|
-
yAxisLabelType = "inValue",
|
|
54
|
-
currency,
|
|
55
|
-
customLabelFormatter
|
|
56
|
-
}) => {
|
|
57
|
-
const svgRef = useRef(null);
|
|
58
|
-
const wrapperRef = useRef(null);
|
|
59
|
-
const [containerWidth, setContainerWidth] = useState(initialWidth);
|
|
60
|
-
const maxValue = useMemo(() => Math.max(...data.map((d) => d.value)), [data]);
|
|
61
|
-
const yAxisMaxValue = useMemo(() => maxValue * 1.25, [maxValue]);
|
|
62
|
-
const yAxisTicks = useMemo(() => {
|
|
63
|
-
const ticks = [];
|
|
64
|
-
const interval = yAxisMaxValue / numOfLines;
|
|
65
|
-
for (let i = 0; i <= numOfLines; i++) {
|
|
66
|
-
ticks.push(interval * i);
|
|
67
|
-
}
|
|
68
|
-
return ticks;
|
|
69
|
-
}, [yAxisMaxValue, numOfLines]);
|
|
70
|
-
const needsHorizontalScroll = data.length > 12;
|
|
71
|
-
const minGroupWidth = 120;
|
|
72
|
-
const calculatedChartWidth = needsHorizontalScroll ? Math.max(data.length * minGroupWidth, containerWidth) : containerWidth;
|
|
73
|
-
useEffect(() => {
|
|
74
|
-
const wrapper = wrapperRef.current;
|
|
75
|
-
const resizeObserver = new ResizeObserver((entries) => {
|
|
76
|
-
if (entries[0]) {
|
|
77
|
-
const newWidth = entries[0].contentRect.width;
|
|
78
|
-
setContainerWidth(newWidth);
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
if (wrapper) {
|
|
82
|
-
resizeObserver.observe(wrapper);
|
|
83
|
-
}
|
|
84
|
-
return () => {
|
|
85
|
-
if (wrapper) {
|
|
86
|
-
resizeObserver.unobserve(wrapper);
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
}, []);
|
|
90
|
-
useEffect(() => {
|
|
91
|
-
if (containerWidth === 0) return;
|
|
92
|
-
const svg = select(svgRef.current);
|
|
93
|
-
svg.selectAll("*").remove();
|
|
94
|
-
const maxLabelWidth = 80;
|
|
95
|
-
const dynamicLeftMargin = Math.max(60, maxLabelWidth + 30);
|
|
96
|
-
const margin = { top: 20, right: 20, bottom: 25, left: dynamicLeftMargin };
|
|
97
|
-
const barWidth = calculatedChartWidth - margin.left - margin.right;
|
|
98
|
-
const barHeight = maxValue ? height - margin.top - margin.bottom : 0;
|
|
99
|
-
const x = band().domain(data.map((d) => d.label)).range([0, barWidth]).padding(0.5);
|
|
100
|
-
const y = linear().domain([0, yAxisMaxValue]).range([barHeight, 0]);
|
|
101
|
-
const chart = svg.append("g").attr("transform", `translate(${margin.left},${maxValue ? margin.top : height - 50})`);
|
|
102
|
-
if (line) {
|
|
103
|
-
yAxisTicks.slice(1).forEach((tick) => {
|
|
104
|
-
chart.append("line").attr("class", "dotted-line").attr("x1", 0).attr("y1", y(tick)).attr("x2", barWidth).attr("y2", y(tick)).style("stroke", "#D3D3D4").style("stroke-dasharray", "3,3").style("opacity", 1);
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
chart.selectAll(".bar").data(data).enter().append("rect").attr("rx", 5).attr("ry", 5).attr("class", "bar").attr("x", (d) => x(d.label)).attr("y", (d) => y(d.value)).attr("width", x.bandwidth()).attr("height", (d) => barHeight - y(d.value)).style("fill", (d) => d.color);
|
|
108
|
-
const xAxis = chart.append("g").attr("class", "x-axis").attr("transform", `translate(0, ${barHeight})`).call(axisTop(x).tickPadding(10)).call(axisBottom(x).tickPadding(5));
|
|
109
|
-
xAxis.selectAll(".tick line").remove();
|
|
110
|
-
xAxis.selectAll(".tick text").call(wrapText, 80);
|
|
111
|
-
const availableHeight = barHeight;
|
|
112
|
-
const minTickSpacing = 30;
|
|
113
|
-
const maxOptimalTicks = Math.floor(availableHeight / minTickSpacing);
|
|
114
|
-
const optimalNumTicks = Math.min(numOfLines, maxOptimalTicks, 8);
|
|
115
|
-
const optimalTicks = [];
|
|
116
|
-
const optimalInterval = yAxisMaxValue / optimalNumTicks;
|
|
117
|
-
for (let i = 0; i <= optimalNumTicks; i++) {
|
|
118
|
-
optimalTicks.push(optimalInterval * i);
|
|
119
|
-
}
|
|
120
|
-
const yAxis = chart.append("g").attr("class", "y-axis").call(
|
|
121
|
-
axisLeft(y).tickValues(optimalTicks).tickFormat(
|
|
122
|
-
(d) => customLabelFormatter ? customLabelFormatter(d) : formatNumber(d, currency, yAxisLabelType)
|
|
123
|
-
).tickSizeOuter(0).tickPadding(8)
|
|
124
|
-
// Add padding between ticks and labels
|
|
125
|
-
);
|
|
126
|
-
yAxis.selectAll(".tick line").remove();
|
|
127
|
-
yAxis.select(".domain").attr("stroke", "none");
|
|
128
|
-
xAxis.select(".domain").attr("stroke", "none");
|
|
129
|
-
yAxis.selectAll(".tick text").style("font-size", "11px").style("fill", "#666").style("font-family", "Inter, system-ui, Avenir, Helvetica, Arial, sans-serif").style("text-anchor", "end");
|
|
130
|
-
}, [data, containerWidth, height, line, yAxisMaxValue, yAxisTicks, currency, yAxisLabelType, customLabelFormatter, calculatedChartWidth]);
|
|
131
|
-
return /* @__PURE__ */ jsx(
|
|
132
|
-
"div",
|
|
133
|
-
{
|
|
134
|
-
ref: wrapperRef,
|
|
135
|
-
style: {
|
|
136
|
-
width: "100%",
|
|
137
|
-
overflowX: needsHorizontalScroll ? "auto" : "hidden",
|
|
138
|
-
overflowY: "hidden"
|
|
139
|
-
},
|
|
140
|
-
children: /* @__PURE__ */ jsx("svg", { ref: svgRef, width: calculatedChartWidth, height, viewBox: `0 0 ${calculatedChartWidth} ${height}` })
|
|
141
|
-
}
|
|
142
|
-
);
|
|
143
|
-
};
|
|
144
|
-
export {
|
|
145
|
-
BarChart as default
|
|
146
|
-
};
|
|
147
|
-
//# sourceMappingURL=index.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../../../../../src/components/charts/barChart/barChart.tsx"],"sourcesContent":["import React, { useRef, useEffect, useMemo, useState } from \"react\";\nimport * as d3 from \"d3\";\n\ninterface DataPoint {\n label: string;\n value: number;\n}\n\ninterface BarChartProps {\n data: DataPoint[];\n numOfLines?: number;\n initialWidth?: number;\n height?: any;\n line?: boolean;\n chartBarWidth?: number;\n yAxisLabelType?: 'inPercent' | 'inValue' | 'custom';\n customLabelFormatter?: (value: number) => string;\n currency: string\n}\n\nconst formatNumber = (num: number, symbol: string, labelType: string) => {\n if (labelType === 'inPercent') {\n return `${d3.format(\".0%\")(num / 100)}`;\n } else if (labelType === 'inValue') {\n return `${symbol || ''} ${d3.format(\".2s\")(num).replace('k', 'K')}`;\n }\n return num.toString();\n};\n\nfunction wrapText(textSelection: any, width: number) {\n textSelection.each(function (this: any) {\n const text = d3.select(this);\n const originalText = text.text();\n \n if (originalText.length <= 8) {\n return;\n }\n \n if (originalText.length > 12) {\n text.text(originalText.substring(0, 10) + '...');\n return;\n }\n \n const words = originalText.split(/\\s+/).reverse();\n let word;\n let line: string[] = [];\n let lineNumber = 0;\n const lineHeight = 1.1; // ems\n const y = text.attr(\"y\");\n const dy = parseFloat(text.attr(\"dy\")) || 0;\n \n let tspan = text\n .text(null)\n .append(\"tspan\")\n .attr(\"x\", 0)\n .attr(\"y\", y)\n .attr(\"dy\", `${dy}em`);\n \n while ((word = words.pop())) {\n line.push(word);\n tspan.text(line.join(\" \"));\n if (tspan.node() && tspan.node()!.getComputedTextLength() > width) {\n line.pop();\n tspan.text(line.join(\" \"));\n line = [word];\n tspan = text\n .append(\"tspan\")\n .attr(\"x\", 0)\n .attr(\"y\", y)\n .attr(\"dy\", `${++lineNumber * lineHeight + dy}em`)\n .text(word);\n }\n }\n });\n }\n \nconst BarChart: React.FC<BarChartProps> = ({\n data,\n numOfLines = 5,\n initialWidth = 500,\n height = 400,\n line = false,\n yAxisLabelType = 'inValue',\n currency,\n customLabelFormatter,\n}) => {\n const svgRef = useRef<SVGSVGElement>(null);\n const wrapperRef = useRef<HTMLDivElement>(null);\n const [containerWidth, setContainerWidth] = useState(initialWidth);\n\n const maxValue = useMemo(() => Math.max(...data.map((d) => d.value)), [data]);\n\n const yAxisMaxValue = useMemo(() => maxValue * 1.25, [maxValue]);\n\n const yAxisTicks = useMemo(() => {\n const ticks = [];\n const interval = yAxisMaxValue / numOfLines;\n for (let i = 0; i <= numOfLines; i++) {\n ticks.push(interval * i);\n }\n return ticks;\n }, [yAxisMaxValue, numOfLines]);\n\n\n const needsHorizontalScroll = data.length > 12;\n const minGroupWidth = 120; \n const calculatedChartWidth = needsHorizontalScroll \n ? Math.max(data.length * minGroupWidth, containerWidth)\n : containerWidth;\n\n // ResizeObserver to make the chart responsive\n\n useEffect(() => {\n const wrapper = wrapperRef.current;\n\n const resizeObserver = new ResizeObserver((entries) => {\n if (entries[0]) {\n const newWidth = entries[0].contentRect.width;\n setContainerWidth(newWidth);\n }\n });\n\n if (wrapper) {\n resizeObserver.observe(wrapper);\n }\n \n return () => {\n if (wrapper) {\n resizeObserver.unobserve(wrapper);\n }\n };\n }, []);\n useEffect(() => {\n if (containerWidth === 0) return;\n\n const svg = d3.select(svgRef.current);\n\n svg.selectAll(\"*\").remove();\n\n // Calculate dynamic left margin based on label length (accounting for wrapping)\n // const sampleLabel = customLabelFormatter \n // ? customLabelFormatter(yAxisMaxValue)\n // : formatNumber(yAxisMaxValue, currency, yAxisLabelType);\n const maxLabelWidth = 80; // Maximum width for wrapped labels\n const dynamicLeftMargin = Math.max(60, maxLabelWidth + 30);\n \n const margin = { top: 20, right: 20, bottom: 25, left: dynamicLeftMargin };\n const barWidth = calculatedChartWidth - margin.left - margin.right;\n const barHeight = maxValue ? height - margin.top - margin.bottom : 0;\n\n const x = d3\n .scaleBand()\n .domain(data.map((d) => d.label))\n .range([0, barWidth])\n .padding(0.5);\n\n const y = d3.scaleLinear().domain([0, yAxisMaxValue]).range([barHeight, 0]);\n\n \n const chart = svg\n .append(\"g\")\n .attr(\"transform\", `translate(${margin.left},${maxValue?margin.top:height-50})`);\n \n if (line) {\n yAxisTicks.slice(1).forEach((tick) => {\n chart\n .append(\"line\")\n .attr(\"class\", \"dotted-line\")\n .attr(\"x1\", 0)\n .attr(\"y1\", y(tick))\n .attr(\"x2\", barWidth)\n .attr(\"y2\", y(tick))\n .style(\"stroke\", \"#D3D3D4\")\n .style(\"stroke-dasharray\", \"3,3\")\n .style(\"opacity\", 1);\n });\n }\n\n chart\n .selectAll(\".bar\")\n .data(data)\n .enter()\n .append(\"rect\")\n .attr(\"rx\", 5)\n .attr(\"ry\", 5)\n .attr(\"class\", \"bar\")\n .attr(\"x\", (d: any) => x(d.label))\n .attr(\"y\", (d: any) => y(d.value))\n .attr(\"width\", x.bandwidth())\n .attr(\"height\", (d: any) => barHeight - y(d.value))\n .style(\"fill\", (d: any) => d.color);\n\n const xAxis = chart\n .append(\"g\")\n .attr(\"class\", \"x-axis\")\n .attr(\"transform\", `translate(0, ${barHeight})`)\n .call(d3.axisTop(x).tickPadding(10) as any)\n .call(d3.axisBottom(x).tickPadding(5) as any)\n // .call(d3.axisLeft(x).tickPadding(5) as any)\n\n xAxis.selectAll(\".tick line\").remove();\n xAxis.selectAll(\".tick text\").call(wrapText,80); \n\n // Calculate optimal number of ticks to prevent overlap\n const availableHeight = barHeight;\n const minTickSpacing = 30; // Minimum pixels between ticks\n const maxOptimalTicks = Math.floor(availableHeight / minTickSpacing);\n const optimalNumTicks = Math.min(numOfLines, maxOptimalTicks, 8);\n \n // Generate optimal tick values\n const optimalTicks = [];\n const optimalInterval = yAxisMaxValue / optimalNumTicks;\n for (let i = 0; i <= optimalNumTicks; i++) {\n optimalTicks.push(optimalInterval * i);\n }\n\n const yAxis = chart\n .append(\"g\")\n .attr(\"class\", \"y-axis\")\n .call(\n d3.axisLeft(y)\n .tickValues(optimalTicks)\n .tickFormat((d: any) =>\n customLabelFormatter\n ? customLabelFormatter(d)\n : formatNumber(d, currency, yAxisLabelType)\n )\n .tickSizeOuter(0)\n .tickPadding(8) as any, // Add padding between ticks and labels\n );\n\n yAxis.selectAll(\".tick line\").remove();\n yAxis.select(\".domain\").attr(\"stroke\", \"none\");\n xAxis.select(\".domain\").attr(\"stroke\", \"none\");\n \n // Style y-axis labels for better readability and apply text wrapping\n yAxis.selectAll(\".tick text\")\n .style(\"font-size\", \"11px\")\n .style(\"fill\", \"#666\")\n .style(\"font-family\", \"Inter, system-ui, Avenir, Helvetica, Arial, sans-serif\")\n .style(\"text-anchor\", \"end\")\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [data, containerWidth, height, line, yAxisMaxValue, yAxisTicks, currency, yAxisLabelType, customLabelFormatter, calculatedChartWidth]);\n\n return (\n <div ref={wrapperRef} \n style={{ \n width: '100%', \n overflowX: needsHorizontalScroll ? 'auto' : 'hidden',\n overflowY: 'hidden'\n }}>\n <svg ref={svgRef} width={calculatedChartWidth} height={height} viewBox={`0 0 ${calculatedChartWidth} ${height}`} />\n </div>\n );\n};\n\nexport default BarChart;\n"],"names":["d3.format","d3.select","d3.scaleBand","d3.scaleLinear","d3.axisTop","d3.axisBottom","d3.axisLeft"],"mappings":";;;;;;;AAoBA,MAAM,eAAe,CAAC,KAAa,QAAgB,cAAsB;AACrE,MAAI,cAAc,aAAa;AAC3B,WAAO,GAAGA,OAAU,KAAK,EAAE,MAAM,GAAG,CAAC;AAAA,EACzC,WAAW,cAAc,WAAW;AAChC,WAAO,GAAG,UAAU,EAAE,IAAIA,OAAU,KAAK,EAAE,GAAG,EAAE,QAAQ,KAAK,GAAG,CAAC;AAAA,EACrE;AACA,SAAO,IAAI,SAAA;AACf;AAEA,SAAS,SAAS,eAAoB,OAAe;AACjD,gBAAc,KAAK,WAAqB;AACtC,UAAM,OAAOC,OAAU,IAAI;AAC3B,UAAM,eAAe,KAAK,KAAA;AAE1B,QAAI,aAAa,UAAU,GAAG;AAC5B;AAAA,IACF;AAEA,QAAI,aAAa,SAAS,IAAI;AAC5B,WAAK,KAAK,aAAa,UAAU,GAAG,EAAE,IAAI,KAAK;AAC/C;AAAA,IACF;AAEA,UAAM,QAAQ,aAAa,MAAM,KAAK,EAAE,QAAA;AACxC,QAAI;AACJ,QAAI,OA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require("../../../../node_modules/d3-scale/src/band/index.js"),a=require("../../../../node_modules/d3-scale/src/linear/index.js"),s=require("../../../../node_modules/d3-selection/src/select/index.js"),n=require("../../../../node_modules/d3-axis/src/axis/index.js"),l=require("../../../../node_modules/d3-format/src/defaultLocale/index.js");function i(e,t){e.each(function(){const e=s.default(this),r=e.text();if(r.length<=8)return;if(r.length>12)return void e.text(r.substring(0,10)+"...");const a=r.split(/\s+/).reverse();let n,l=[],i=0;const o=e.attr("y"),c=parseFloat(e.attr("dy"))||0;let d=e.text(null).append("tspan").attr("x",0).attr("y",o).attr("dy",`${c}em`);for(;n=a.pop();)l.push(n),d.text(l.join(" ")),d.node()&&d.node().getComputedTextLength()>t&&(l.pop(),d.text(l.join(" ")),l=[n],d=e.append("tspan").attr("x",0).attr("y",o).attr("dy",`${1.1*++i+c}em`).text(n))})}exports.default=({data:o,numOfLines:c=5,initialWidth:d=500,height:u=400,line:f=!1,yAxisLabelType:x="inValue",currency:m,customLabelFormatter:p})=>{const h=t.useRef(null),y=t.useRef(null),[g,v]=t.useState(d),k=t.useMemo(()=>Math.max(...o.map(e=>e.value)),[o]),b=t.useMemo(()=>1.25*k,[k]),j=t.useMemo(()=>{const e=[],t=b/c;for(let r=0;r<=c;r++)e.push(t*r);return e},[b,c]),$=o.length>12,w=$?Math.max(120*o.length,g):g;return t.useEffect(()=>{const e=y.current,t=new ResizeObserver(e=>{if(e[0]){const t=e[0].contentRect.width;v(t)}});return e&&t.observe(e),()=>{e&&t.unobserve(e)}},[]),t.useEffect(()=>{if(0===g)return;const e=s.default(h.current);e.selectAll("*").remove();const t=Math.max(60,110),d=w-t-20,y=k?u-20-25:0,v=r.default().domain(o.map(e=>e.label)).range([0,d]).padding(.5),$=a.default().domain([0,b]).range([y,0]),A=e.append("g").attr("transform",`translate(${t},${k?20:u-50})`);f&&j.slice(1).forEach(e=>{A.append("line").attr("class","dotted-line").attr("x1",0).attr("y1",$(e)).attr("x2",d).attr("y2",$(e)).style("stroke","#D3D3D4").style("stroke-dasharray","3,3").style("opacity",1)}),A.selectAll(".bar").data(o).enter().append("rect").attr("rx",5).attr("ry",5).attr("class","bar").attr("x",e=>v(e.label)).attr("y",e=>$(e.value)).attr("width",v.bandwidth()).attr("height",e=>y-$(e.value)).style("fill",e=>e.color);const M=A.append("g").attr("class","x-axis").attr("transform",`translate(0, ${y})`).call(n.axisTop(v).tickPadding(10)).call(n.axisBottom(v).tickPadding(5));M.selectAll(".tick line").remove(),M.selectAll(".tick text").call(i,80);const q=y,_=Math.floor(q/30),L=Math.min(c,_,8),P=[],O=b/L;for(let r=0;r<=L;r++)P.push(O*r);const R=A.append("g").attr("class","y-axis").call(n.axisLeft($).tickValues(P).tickFormat(e=>{return p?p(e):(t=e,r=m,"inPercent"===(a=x)?`${l.format(".0%")(t/100)}`:"inValue"===a?`${r||""} ${l.format(".2s")(t).replace("k","K")}`:t.toString());var t,r,a}).tickSizeOuter(0).tickPadding(8));R.selectAll(".tick line").remove(),R.select(".domain").attr("stroke","none"),M.select(".domain").attr("stroke","none"),R.selectAll(".tick text").style("font-size","11px").style("fill","#666").style("font-family","Inter, system-ui, Avenir, Helvetica, Arial, sans-serif").style("text-anchor","end")},[o,g,u,f,b,j,m,x,p,w]),/* @__PURE__ */e.jsx("div",{ref:y,style:{width:"100%",overflowX:$?"auto":"hidden",overflowY:"hidden"},children:/* @__PURE__ */e.jsx("svg",{ref:h,width:w,height:u,viewBox:`0 0 ${w} ${u}`})})};
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/charts/barChart/barChart.tsx"],"sourcesContent":["import React, { useRef, useEffect, useMemo, useState } from \"react\";\nimport * as d3 from \"d3\";\n\ninterface DataPoint {\n label: string;\n value: number;\n}\n\ninterface BarChartProps {\n data: DataPoint[];\n numOfLines?: number;\n initialWidth?: number;\n height?: any;\n line?: boolean;\n chartBarWidth?: number;\n yAxisLabelType?: 'inPercent' | 'inValue' | 'custom';\n customLabelFormatter?: (value: number) => string;\n currency: string\n}\n\nconst formatNumber = (num: number, symbol: string, labelType: string) => {\n if (labelType === 'inPercent') {\n return `${d3.format(\".0%\")(num / 100)}`;\n } else if (labelType === 'inValue') {\n return `${symbol || ''} ${d3.format(\".2s\")(num).replace('k', 'K')}`;\n }\n return num.toString();\n};\n\nfunction wrapText(textSelection: any, width: number) {\n textSelection.each(function (this: any) {\n const text = d3.select(this);\n const originalText = text.text();\n \n if (originalText.length <= 8) {\n return;\n }\n \n if (originalText.length > 12) {\n text.text(originalText.substring(0, 10) + '...');\n return;\n }\n \n const words = originalText.split(/\\s+/).reverse();\n let word;\n let line: string[] = [];\n let lineNumber = 0;\n const lineHeight = 1.1; // ems\n const y = text.attr(\"y\");\n const dy = parseFloat(text.attr(\"dy\")) || 0;\n \n let tspan = text\n .text(null)\n .append(\"tspan\")\n .attr(\"x\", 0)\n .attr(\"y\", y)\n .attr(\"dy\", `${dy}em`);\n \n while ((word = words.pop())) {\n line.push(word);\n tspan.text(line.join(\" \"));\n if (tspan.node() && tspan.node()!.getComputedTextLength() > width) {\n line.pop();\n tspan.text(line.join(\" \"));\n line = [word];\n tspan = text\n .append(\"tspan\")\n .attr(\"x\", 0)\n .attr(\"y\", y)\n .attr(\"dy\", `${++lineNumber * lineHeight + dy}em`)\n .text(word);\n }\n }\n });\n }\n \nconst BarChart: React.FC<BarChartProps> = ({\n data,\n numOfLines = 5,\n initialWidth = 500,\n height = 400,\n line = false,\n yAxisLabelType = 'inValue',\n currency,\n customLabelFormatter,\n}) => {\n const svgRef = useRef<SVGSVGElement>(null);\n const wrapperRef = useRef<HTMLDivElement>(null);\n const [containerWidth, setContainerWidth] = useState(initialWidth);\n\n const maxValue = useMemo(() => Math.max(...data.map((d) => d.value)), [data]);\n\n const yAxisMaxValue = useMemo(() => maxValue * 1.25, [maxValue]);\n\n const yAxisTicks = useMemo(() => {\n const ticks = [];\n const interval = yAxisMaxValue / numOfLines;\n for (let i = 0; i <= numOfLines; i++) {\n ticks.push(interval * i);\n }\n return ticks;\n }, [yAxisMaxValue, numOfLines]);\n\n\n const needsHorizontalScroll = data.length > 12;\n const minGroupWidth = 120; \n const calculatedChartWidth = needsHorizontalScroll \n ? Math.max(data.length * minGroupWidth, containerWidth)\n : containerWidth;\n\n // ResizeObserver to make the chart responsive\n\n useEffect(() => {\n const wrapper = wrapperRef.current;\n\n const resizeObserver = new ResizeObserver((entries) => {\n if (entries[0]) {\n const newWidth = entries[0].contentRect.width;\n setContainerWidth(newWidth);\n }\n });\n\n if (wrapper) {\n resizeObserver.observe(wrapper);\n }\n \n return () => {\n if (wrapper) {\n resizeObserver.unobserve(wrapper);\n }\n };\n }, []);\n useEffect(() => {\n if (containerWidth === 0) return;\n\n const svg = d3.select(svgRef.current);\n\n svg.selectAll(\"*\").remove();\n\n // Calculate dynamic left margin based on label length (accounting for wrapping)\n // const sampleLabel = customLabelFormatter \n // ? customLabelFormatter(yAxisMaxValue)\n // : formatNumber(yAxisMaxValue, currency, yAxisLabelType);\n const maxLabelWidth = 80; // Maximum width for wrapped labels\n const dynamicLeftMargin = Math.max(60, maxLabelWidth + 30);\n \n const margin = { top: 20, right: 20, bottom: 25, left: dynamicLeftMargin };\n const barWidth = calculatedChartWidth - margin.left - margin.right;\n const barHeight = maxValue ? height - margin.top - margin.bottom : 0;\n\n const x = d3\n .scaleBand()\n .domain(data.map((d) => d.label))\n .range([0, barWidth])\n .padding(0.5);\n\n const y = d3.scaleLinear().domain([0, yAxisMaxValue]).range([barHeight, 0]);\n\n \n const chart = svg\n .append(\"g\")\n .attr(\"transform\", `translate(${margin.left},${maxValue?margin.top:height-50})`);\n \n if (line) {\n yAxisTicks.slice(1).forEach((tick) => {\n chart\n .append(\"line\")\n .attr(\"class\", \"dotted-line\")\n .attr(\"x1\", 0)\n .attr(\"y1\", y(tick))\n .attr(\"x2\", barWidth)\n .attr(\"y2\", y(tick))\n .style(\"stroke\", \"#D3D3D4\")\n .style(\"stroke-dasharray\", \"3,3\")\n .style(\"opacity\", 1);\n });\n }\n\n chart\n .selectAll(\".bar\")\n .data(data)\n .enter()\n .append(\"rect\")\n .attr(\"rx\", 5)\n .attr(\"ry\", 5)\n .attr(\"class\", \"bar\")\n .attr(\"x\", (d: any) => x(d.label))\n .attr(\"y\", (d: any) => y(d.value))\n .attr(\"width\", x.bandwidth())\n .attr(\"height\", (d: any) => barHeight - y(d.value))\n .style(\"fill\", (d: any) => d.color);\n\n const xAxis = chart\n .append(\"g\")\n .attr(\"class\", \"x-axis\")\n .attr(\"transform\", `translate(0, ${barHeight})`)\n .call(d3.axisTop(x).tickPadding(10) as any)\n .call(d3.axisBottom(x).tickPadding(5) as any)\n // .call(d3.axisLeft(x).tickPadding(5) as any)\n\n xAxis.selectAll(\".tick line\").remove();\n xAxis.selectAll(\".tick text\").call(wrapText,80); \n\n // Calculate optimal number of ticks to prevent overlap\n const availableHeight = barHeight;\n const minTickSpacing = 30; // Minimum pixels between ticks\n const maxOptimalTicks = Math.floor(availableHeight / minTickSpacing);\n const optimalNumTicks = Math.min(numOfLines, maxOptimalTicks, 8);\n \n // Generate optimal tick values\n const optimalTicks = [];\n const optimalInterval = yAxisMaxValue / optimalNumTicks;\n for (let i = 0; i <= optimalNumTicks; i++) {\n optimalTicks.push(optimalInterval * i);\n }\n\n const yAxis = chart\n .append(\"g\")\n .attr(\"class\", \"y-axis\")\n .call(\n d3.axisLeft(y)\n .tickValues(optimalTicks)\n .tickFormat((d: any) =>\n customLabelFormatter\n ? customLabelFormatter(d)\n : formatNumber(d, currency, yAxisLabelType)\n )\n .tickSizeOuter(0)\n .tickPadding(8) as any, // Add padding between ticks and labels\n );\n\n yAxis.selectAll(\".tick line\").remove();\n yAxis.select(\".domain\").attr(\"stroke\", \"none\");\n xAxis.select(\".domain\").attr(\"stroke\", \"none\");\n \n // Style y-axis labels for better readability and apply text wrapping\n yAxis.selectAll(\".tick text\")\n .style(\"font-size\", \"11px\")\n .style(\"fill\", \"#666\")\n .style(\"font-family\", \"Inter, system-ui, Avenir, Helvetica, Arial, sans-serif\")\n .style(\"text-anchor\", \"end\")\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [data, containerWidth, height, line, yAxisMaxValue, yAxisTicks, currency, yAxisLabelType, customLabelFormatter, calculatedChartWidth]);\n\n return (\n <div ref={wrapperRef} \n style={{ \n width: '100%', \n overflowX: needsHorizontalScroll ? 'auto' : 'hidden',\n overflowY: 'hidden'\n }}>\n <svg ref={svgRef} width={calculatedChartWidth} height={height} viewBox={`0 0 ${calculatedChartWidth} ${height}`} />\n </div>\n );\n};\n\nexport default BarChart;\n"],"names":["wrapText","textSelection","width","each","text","d3.select","this","originalText","length","substring","words","split","reverse","word","line","lineNumber","y","attr","dy","parseFloat","tspan","append","pop","push","join","node","getComputedTextLength","data","numOfLines","initialWidth","height","yAxisLabelType","currency","customLabelFormatter","svgRef","useRef","wrapperRef","containerWidth","setContainerWidth","useState","maxValue","useMemo","Math","max","map","d","value","yAxisMaxValue","yAxisTicks","ticks","interval","i","needsHorizontalScroll","calculatedChartWidth","useEffect","wrapper","current","resizeObserver","ResizeObserver","entries","newWidth","contentRect","observe","unobserve","svg","selectAll","remove","margin","maxLabelWidth","barWidth","barHeight","x","d3.scaleBand","domain","label","range","padding","d3.scaleLinear","chart","slice","forEach","tick","style","enter","bandwidth","color","xAxis","call","d3.axisTop","tickPadding","d3.axisBottom","availableHeight","maxOptimalTicks","floor","optimalNumTicks","min","optimalTicks","optimalInterval","yAxis","d3.axisLeft","tickValues","tickFormat","num","symbol","labelType","d3.format","replace","toString","tickSizeOuter","select","jsx","ref","overflowX","overflowY","children","viewBox"],"mappings":"gdA6BA,SAASA,EAASC,EAAoBC,GAClCD,EAAcE,KAAK,WACjB,MAAMC,EAAOC,EAAAA,QAAUC,MACjBC,EAAeH,EAAKA,OAE1B,GAAIG,EAAaC,QAAU,EACzB,OAGF,GAAID,EAAaC,OAAS,GAExB,YADAJ,EAAKA,KAAKG,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a,QACnBA,MAAM,OAAQ,QACdA,MAAM,cAAe,0DACrBA,MAAM,cAAe,QAE3B,CAACvD,EAAMU,EAAgBP,EAAQhB,EAAMiC,EAAeC,EAAYhB,EAAUD,EAAgBE,EAAsBoB,mBAG/GyD,EAAAA,IAAC,MAAA,CAAIC,IAAK3E,EACV8C,MAAO,CACHhF,MAAO,OACP8G,UAAW5D,EAAwB,OAAS,SAC5C6D,UAAW,UAEXC,wBAAAJ,EAAAA,IAAC,MAAA,CAAIC,IAAK7E,EAAQhC,MAAOmD,EAAsBvB,SAAgBqF,QAAS,OAAO9D,KAAwBvB"}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useRef, useEffect } from "react";
|
|
3
|
-
/* empty css */
|
|
4
|
-
import { Typography } from "../../../typography/typography/index.esm.js";
|
|
5
|
-
import select from "../../../../node_modules/d3-selection/src/select/index.esm.js";
|
|
6
|
-
import pie from "../../../../node_modules/d3-shape/src/pie/index.esm.js";
|
|
7
|
-
import arc from "../../../../node_modules/d3-shape/src/arc/index.esm.js";
|
|
8
|
-
const defaultColors = [
|
|
9
|
-
"#5BCE97",
|
|
10
|
-
"#B3D8E2",
|
|
11
|
-
"#F5F6F5",
|
|
12
|
-
"#AE6B9E",
|
|
13
|
-
"#CBD49A",
|
|
14
|
-
"#EEE0B3"
|
|
15
|
-
];
|
|
16
|
-
const getSingleNumberFromString = (str) => {
|
|
17
|
-
if (typeof str === "number") {
|
|
18
|
-
return str;
|
|
19
|
-
}
|
|
20
|
-
const match = (str == null ? void 0 : str.match(/\d.+/)) || null;
|
|
21
|
-
return match ? Number(match[0]) : 0;
|
|
22
|
-
};
|
|
23
|
-
const DonutChart = ({
|
|
24
|
-
data,
|
|
25
|
-
height = 140,
|
|
26
|
-
width = 140,
|
|
27
|
-
isUserDashbord,
|
|
28
|
-
legend = true,
|
|
29
|
-
direction = "horizontal",
|
|
30
|
-
totalUsers,
|
|
31
|
-
total = isUserDashbord ? totalUsers : "2.4 GB",
|
|
32
|
-
colors = defaultColors,
|
|
33
|
-
titleProps = {},
|
|
34
|
-
valueProps = {}
|
|
35
|
-
}) => {
|
|
36
|
-
const svgRef = useRef(null);
|
|
37
|
-
useEffect(() => {
|
|
38
|
-
if (!svgRef.current) return;
|
|
39
|
-
const svg = select(svgRef.current);
|
|
40
|
-
svg.selectAll("*").remove();
|
|
41
|
-
const margin = 6;
|
|
42
|
-
const outerRadius = Math.min(width, height) / 2 - margin;
|
|
43
|
-
const innerRadius = Math.min(width, height) / 2 - margin * 2;
|
|
44
|
-
const g = svg.append("g").attr("transform", `translate(${width / 2}, ${height / 2})`);
|
|
45
|
-
const pie$1 = pie().value((d) => getSingleNumberFromString(d.value));
|
|
46
|
-
const path = arc().outerRadius(outerRadius).innerRadius(innerRadius);
|
|
47
|
-
const pies = g.selectAll(".arc").data(pie$1(data)).enter().append("g").attr("class", "arc");
|
|
48
|
-
pies.append("path").attr("d", path).attr("fill", (d, i) => {
|
|
49
|
-
return colors[i % colors.length];
|
|
50
|
-
});
|
|
51
|
-
g.append("text").attr("text-anchor", "middle").attr("font-size", "18px").attr("font-weight", "600").attr("alignment-baseline", `central`).html(total);
|
|
52
|
-
}, [colors, data, height, total, width]);
|
|
53
|
-
if (!legend) {
|
|
54
|
-
return /* @__PURE__ */ jsx("svg", { ref: svgRef, width, height });
|
|
55
|
-
}
|
|
56
|
-
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("div", { className: `donut-chart-container ${direction}`, children: [
|
|
57
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("svg", { ref: svgRef, width, height }) }),
|
|
58
|
-
/* @__PURE__ */ jsx("div", { className: "donut-chart-legend", children: data && data.map((d, i) => {
|
|
59
|
-
return /* @__PURE__ */ jsxs(
|
|
60
|
-
"div",
|
|
61
|
-
{
|
|
62
|
-
className: "legend",
|
|
63
|
-
style: { borderLeft: `0.188rem solid ${colors[i]}` },
|
|
64
|
-
children: [
|
|
65
|
-
/* @__PURE__ */ jsx("div", { className: "legend-title", children: /* @__PURE__ */ jsx(Typography, { type: "s5", color: "theme.secondary.800", ...titleProps, children: d.label }) }),
|
|
66
|
-
/* @__PURE__ */ jsx("div", { className: "legend-value", children: /* @__PURE__ */ jsx(
|
|
67
|
-
Typography,
|
|
68
|
-
{
|
|
69
|
-
type: "s5",
|
|
70
|
-
weight: "medium",
|
|
71
|
-
color: "theme.secondary.1000",
|
|
72
|
-
children: /* @__PURE__ */ jsx(Typography, { type: "s5", color: "theme.secondary.1000", weight: "bold", ...valueProps, children: d.value })
|
|
73
|
-
}
|
|
74
|
-
) })
|
|
75
|
-
]
|
|
76
|
-
},
|
|
77
|
-
d.label
|
|
78
|
-
);
|
|
79
|
-
}) })
|
|
80
|
-
] }) });
|
|
81
|
-
};
|
|
82
|
-
export {
|
|
83
|
-
DonutChart as default
|
|
84
|
-
};
|
|
85
|
-
//# sourceMappingURL=index.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../../../../../src/components/charts/donut-chart/donut-chart.tsx"],"sourcesContent":["import React, { useRef, useEffect } from \"react\";\nimport * as d3 from \"d3\";\nimport \"./donut-chart.scss\";\nimport Typography from \"../../typography/typography\";\n\ninterface DataPoint {\n label: string;\n value: number;\n}\n\ninterface DonutChartProps {\n data: DataPoint[];\n width?: number;\n height?: number;\n legend?: boolean;\n direction?: \"vertical\" | \"horizontal\";\n total?: string;\n colors ?:Array<string>;\n titleProps?:any\n valueProps?:any \n isUserDashbord ?: boolean \n totalUsers ? : any \n}\n\nconst defaultColors = [\n \"#5BCE97\",\n \"#B3D8E2\",\n \"#F5F6F5\",\n \"#AE6B9E\",\n \"#CBD49A\",\n \"#EEE0B3\",\n];\n\nconst getSingleNumberFromString = (str) => {\n if (typeof str === \"number\") {\n return str;\n }\n const match = str?.match(/\\d.+/) || null;\n return match ? Number(match[0]) : 0;\n};\n\nconst DonutChart: React.FC<DonutChartProps> = ({\n\tdata,\n\theight = 140,\n\twidth = 140,\n isUserDashbord , \n\tlegend = true,\n\tdirection = 'horizontal' ,\n totalUsers , \n\ttotal = isUserDashbord ? totalUsers : \"2.4 GB\",\n colors = defaultColors,\n titleProps={},\n valueProps={}, \n\n}) => {\n const svgRef = useRef<SVGSVGElement>(null);\n\n useEffect(() => {\n if (!svgRef.current) return;\n\n const svg = d3.select(svgRef.current);\n\n svg.selectAll(\"*\").remove();\n\n const margin = 6;\n\n const outerRadius = Math.min(width, height) / 2 - margin;\n const innerRadius = Math.min(width, height) / 2 - margin * 2;\n\n const g = svg\n .append(\"g\")\n .attr(\"transform\", `translate(${width / 2}, ${height / 2})`);\n //@ts-expect-error not applicable\n const pie = d3\n .pie()\n .value((d: DataPoint) => getSingleNumberFromString(d.value));\n\n const path = d3.arc().outerRadius(outerRadius).innerRadius(innerRadius);\n\n const pies = g\n .selectAll(\".arc\")\n //@ts-expect-error not applicable\n .data(pie(data))\n .enter()\n .append(\"g\")\n .attr(\"class\", \"arc\");\n\n pies\n .append(\"path\")\n //@ts-expect-error not applicable\n .attr(\"d\", path)\n //@ts-expect-error not applicable\n .attr(\"fill\", (d: DataPoint, i: number) => {\n return colors[i % colors.length]});\n\n\n // const words = total.split(' '); // Split the text into words\n // const lineHeight = 22; // Define the line height\n // const maxCharsPerLine = 15; // Define the maximum number of characters per line\n\n // let currentLine = '';\n // let lineNumber = 0;\n\n // const textElement =\n g.append(\"text\")\n .attr(\"text-anchor\", \"middle\")\n .attr(\"font-size\", \"18px\")\n .attr(\"font-weight\", \"600\")\n .attr(\"alignment-baseline\", `central`)\n .html(total);\n // .text(total);\n\n // words.forEach((word) => {\n // \tconst tempLine = currentLine + word + ' ';\n\n // \t// Check if the line exceeds the max character count\n // \tif (tempLine.length > maxCharsPerLine && currentLine.length > 0) {\n // \t\ttextElement\n // \t\t\t.append('tspan')\n // \t\t\t.attr('x', 0)\n // \t\t\t.attr('y', lineHeight * lineNumber)\n // \t\t\t.text(currentLine.trim());\n\n // \t\tcurrentLine = word + ' ';\n // \t\tlineNumber++;\n // \t} else {\n // \t\tcurrentLine = tempLine;\n // \t}\n // });\n\n // // Add the last line\n // textElement\n // \t.append('tspan')\n // \t.attr('x', 0)\n // \t.attr('y', lineHeight * lineNumber)\n // \t.text(currentLine.trim());\n }, [colors, data, height, total, width]);\n\n if (!legend) {\n return <svg ref={svgRef} width={width} height={height}></svg>;\n }\n\n return (\n <>\n <div className={`donut-chart-container ${direction}`}>\n <div>\n <svg ref={svgRef} width={width} height={height}></svg>\n </div>\n <div className=\"donut-chart-legend\">\n {data && data.map((d: DataPoint, i: number) => {\n return (\n <div\n className=\"legend\"\n key={d.label}\n style={{ borderLeft: `0.188rem solid ${colors[i]}` }}\n >\n <div className=\"legend-title\">\n <Typography type=\"s5\" color=\"theme.secondary.800\" {...titleProps}>\n {d.label}\n </Typography>\n </div>\n <div className=\"legend-value\">\n <Typography\n type=\"s5\"\n weight=\"medium\"\n color=\"theme.secondary.1000\"\n >\n <Typography type=\"s5\" color=\"theme.secondary.1000\" weight=\"bold\" {...valueProps}>\n {d.value}\n </Typography>\n </Typography>\n </div>\n </div>\n );\n })}\n </div>\n </div>\n </>\n );\n};\n\nexport default DonutChart;\n"],"names":["d3.select","pie","d3.pie","d3.arc"],"mappings":";;;;;;;AAwBA,MAAM,gBAAgB;AAAA,EACpB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEA,MAAM,4BAA4B,CAAC,QAAQ;AACzC,MAAI,OAAO,QAAQ,UAAU;AAC3B,WAAO;AAAA,EACT;AACA,QAAM,SAAQ,2BAAK,MAAM,YAAW;AACpC,SAAO,QAAQ,OAAO,MAAM,CAAC,CAAC,IAAI;AACpC;AAEA,MAAM,aAAwC,CAAC;AAAA,EAC9C;AAAA,EACA,SAAS;AAAA,EACT,QAAQ;AAAA,EACP;AAAA,EACD,SAAS;AAAA,EACT,YA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I,WAAW,yBAAyB,SAAS,IAChD,UAAA;AAAA,IAAA,oBAAC,SACC,UAAA,oBAAC,OAAA,EAAI,KAAK,QAAQ,OAAc,QAAgB,EAAA,CAClD;AAAA,IACA,oBAAC,SAAI,WAAU,sBACZ,kBAAQ,KAAK,IAAI,CAAC,GAAc,MAAc;AAC7C,aACE;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,WAAU;AAAA,UAEV,OAAO,EAAE,YAAY,kBAAkB,OAAO,CAAC,CAAC,GAAA;AAAA,UAEhD,UAAA;AAAA,YAAA,oBAAC,OAAA,EAAI,WAAU,gBACf,UAAA,oBAAC,YAAA,EAAW,MAAK,MAAK,OAAM,uBAAuB,GAAG,YACnD,UAAA,EAAE,OACL,GACE;AAAA,YACF,oBAAC,OAAA,EAAI,WAAU,gBACb,UAAA;AAAA,cAAC;AAAA,cAAA;AAAA,gBACC,MAAK;AAAA,gBACL,QAAO;AAAA,gBACP,OAAM;AAAA,gBAEN,UAAA,oBAAC,YAAA,EAAW,MAAK,MAAK,OAAM,wBAAuB,QAAO,QAAQ,GAAG,YAClE,UAAA,EAAE,MAAA,CACL;AAAA,cAAA;AAAA,YAAA,EACF,CACF;AAAA,UAAA;AAAA,QAAA;AAAA,QAlBK,EAAE;AAAA,MAAA;AAAA,IAqBb,CAAC,EAAA,CACH;AAAA,EAAA,EAAA,CACF,EAAA,CACF;AAEJ;"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react");;/* empty css */var r=,/* empty css */s=,/* empty css */a=,/* empty css */l=;/* empty css */const n=["#5BCE97","#B3D8E2","#F5F6F5","#AE6B9E","#CBD49A","#EEE0B3"];exports.default=({data:d,height:i=140,width:o=140,isUserDashbord:c,legend:h=!0,direction:u="horizontal",totalUsers:p,total:m=(c?p:"2.4 GB"),colors:g=n,titleProps:x={},valueProps:j={}})=>{const y=t.useRef(null);return t.useEffect(()=>{if(!y.current)return;const e=s.default(y.current);e.selectAll("*").remove();const t=Math.min(o,i)/2-6,r=Math.min(o,i)/2-12,n=e.append("g").attr("transform",`translate(${o/2}, ${i/2})`),c=a.default().value(e=>(e=>{if("number"==typeof e)return e;const t=(null==e?void 0:e.match(/\d.+/))||null;return t?Number(t[0]):0})(e.value)),h=l.default().outerRadius(t).innerRadius(r);n.selectAll(".arc").data(c(d)).enter().append("g").attr("class","arc").append("path").attr("d",h).attr("fill",(e,t)=>g[t%g.length]),n.append("text").attr("text-anchor","middle").attr("font-size","18px").attr("font-weight","600").attr("alignment-baseline","central").html(m)},[g,d,i,m,o]),h?/* @__PURE__ */e.jsx(e.Fragment,{children:/* @__PURE__ */e.jsxs("div",{className:`donut-chart-container ${u}`,children:[
|
|
2
|
-
/* @__PURE__ */e.jsx("div",{children:/* @__PURE__ */e.jsx("svg",{ref:y,width:o,height:i})}),
|
|
3
|
-
/* @__PURE__ */e.jsx("div",{className:"donut-chart-legend",children:d&&d.map((t,s)=>/* @__PURE__ */e.jsxs("div",{className:"legend",style:{borderLeft:`0.188rem solid ${g[s]}`},children:[
|
|
4
|
-
/* @__PURE__ */e.jsx("div",{className:"legend-title",children:/* @__PURE__ */e.jsx(r.Typography,{type:"s5",color:"theme.secondary.800",...x,children:t.label})}),
|
|
5
|
-
/* @__PURE__ */e.jsx("div",{className:"legend-value",children:/* @__PURE__ */e.jsx(r.Typography,{type:"s5",weight:"medium",color:"theme.secondary.1000",children:/* @__PURE__ */e.jsx(r.Typography,{type:"s5",color:"theme.secondary.1000",weight:"bold",...j,children:t.value})})})]},t.label))})]})}):/* @__PURE__ */e.jsx("svg",{ref:y,width:o,height:i})};
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/charts/donut-chart/donut-chart.tsx"],"sourcesContent":["import React, { useRef, useEffect } from \"react\";\nimport * as d3 from \"d3\";\nimport \"./donut-chart.scss\";\nimport Typography from \"../../typography/typography\";\n\ninterface DataPoint {\n label: string;\n value: number;\n}\n\ninterface DonutChartProps {\n data: DataPoint[];\n width?: number;\n height?: number;\n legend?: boolean;\n direction?: \"vertical\" | \"horizontal\";\n total?: string;\n colors ?:Array<string>;\n titleProps?:any\n valueProps?:any \n isUserDashbord ?: boolean \n totalUsers ? : any \n}\n\nconst defaultColors = [\n \"#5BCE97\",\n \"#B3D8E2\",\n \"#F5F6F5\",\n \"#AE6B9E\",\n \"#CBD49A\",\n \"#EEE0B3\",\n];\n\nconst getSingleNumberFromString = (str) => {\n if (typeof str === \"number\") {\n return str;\n }\n const match = str?.match(/\\d.+/) || null;\n return match ? Number(match[0]) : 0;\n};\n\nconst DonutChart: React.FC<DonutChartProps> = ({\n\tdata,\n\theight = 140,\n\twidth = 140,\n isUserDashbord , \n\tlegend = true,\n\tdirection = 'horizontal' ,\n totalUsers , \n\ttotal = isUserDashbord ? totalUsers : \"2.4 GB\",\n colors = defaultColors,\n titleProps={},\n valueProps={}, \n\n}) => {\n const svgRef = useRef<SVGSVGElement>(null);\n\n useEffect(() => {\n if (!svgRef.current) return;\n\n const svg = d3.select(svgRef.current);\n\n svg.selectAll(\"*\").remove();\n\n const margin = 6;\n\n const outerRadius = Math.min(width, height) / 2 - margin;\n const innerRadius = Math.min(width, height) / 2 - margin * 2;\n\n const g = svg\n .append(\"g\")\n .attr(\"transform\", `translate(${width / 2}, ${height / 2})`);\n //@ts-expect-error not applicable\n const pie = d3\n .pie()\n .value((d: DataPoint) => getSingleNumberFromString(d.value));\n\n const path = d3.arc().outerRadius(outerRadius).innerRadius(innerRadius);\n\n const pies = g\n .selectAll(\".arc\")\n //@ts-expect-error not applicable\n .data(pie(data))\n .enter()\n .append(\"g\")\n .attr(\"class\", \"arc\");\n\n pies\n .append(\"path\")\n //@ts-expect-error not applicable\n .attr(\"d\", path)\n //@ts-expect-error not applicable\n .attr(\"fill\", (d: DataPoint, i: number) => {\n return colors[i % colors.length]});\n\n\n // const words = total.split(' '); // Split the text into words\n // const lineHeight = 22; // Define the line height\n // const maxCharsPerLine = 15; // Define the maximum number of characters per line\n\n // let currentLine = '';\n // let lineNumber = 0;\n\n // const textElement =\n g.append(\"text\")\n .attr(\"text-anchor\", \"middle\")\n .attr(\"font-size\", \"18px\")\n .attr(\"font-weight\", \"600\")\n .attr(\"alignment-baseline\", `central`)\n .html(total);\n // .text(total);\n\n // words.forEach((word) => {\n // \tconst tempLine = currentLine + word + ' ';\n\n // \t// Check if the line exceeds the max character count\n // \tif (tempLine.length > maxCharsPerLine && currentLine.length > 0) {\n // \t\ttextElement\n // \t\t\t.append('tspan')\n // \t\t\t.attr('x', 0)\n // \t\t\t.attr('y', lineHeight * lineNumber)\n // \t\t\t.text(currentLine.trim());\n\n // \t\tcurrentLine = word + ' ';\n // \t\tlineNumber++;\n // \t} else {\n // \t\tcurrentLine = tempLine;\n // \t}\n // });\n\n // // Add the last line\n // textElement\n // \t.append('tspan')\n // \t.attr('x', 0)\n // \t.attr('y', lineHeight * lineNumber)\n // \t.text(currentLine.trim());\n }, [colors, data, height, total, width]);\n\n if (!legend) {\n return <svg ref={svgRef} width={width} height={height}></svg>;\n }\n\n return (\n <>\n <div className={`donut-chart-container ${direction}`}>\n <div>\n <svg ref={svgRef} width={width} height={height}></svg>\n </div>\n <div className=\"donut-chart-legend\">\n {data && data.map((d: DataPoint, i: number) => {\n return (\n <div\n className=\"legend\"\n key={d.label}\n style={{ borderLeft: `0.188rem solid ${colors[i]}` }}\n >\n <div className=\"legend-title\">\n <Typography type=\"s5\" color=\"theme.secondary.800\" {...titleProps}>\n {d.label}\n </Typography>\n </div>\n <div className=\"legend-value\">\n <Typography\n type=\"s5\"\n weight=\"medium\"\n color=\"theme.secondary.1000\"\n >\n <Typography type=\"s5\" color=\"theme.secondary.1000\" weight=\"bold\" {...valueProps}>\n {d.value}\n </Typography>\n </Typography>\n </div>\n </div>\n );\n })}\n </div>\n </div>\n </>\n );\n};\n\nexport default DonutChart;\n"],"names":["defaultColors","data","height","width","isUserDashbord","legend","direction","totalUsers","total","colors","titleProps","valueProps","svgRef","useRef","useEffect","current","svg","d3.select","selectAll","remove","outerRadius","Math","min","innerRadius","margin","g","append","attr","pie","d3.pie","value","d","str","match","Number","getSingleNumberFromString","path","d3.arc","enter","i","length","html","children","jsxs","className","jsx","ref","map","style","borderLeft","Typography","type","color","label","weight"],"mappings":"kaAwBA,MAAMA,EAAgB,CACpB,UACA,UACA,UACA,UACA,UACA,2BAW4C,EAC7CC,OACAC,SAAS,IACTC,QAAQ,IACPC,iBACDC,UAAS,EACTC,YAAY,aACXC,aACDC,SAASJ,EAAiBG,EAAa,UACtCE,SAAST,EACTU,aAAW,CAAA,EACXC,aAAW,CAAA,MAGX,MAAMC,EAASC,EAAAA,OAAsB,MAmFrC,OAjFAC,EAAAA,UAAU,KACR,IAAKF,EAAOG,QAAS,OAErB,MAAMC,EAAMC,EAAAA,QAAUL,EAAOG,SAE7BC,EAAIE,UAAU,KAAKC,SAEnB,MAEMC,EAAcC,KAAKC,IAAInB,EAAOD,GAAU,EAF/B,EAGTqB,EAAcF,KAAKC,IAAInB,EAAOD,GAAU,EAAIsB,GAE5CC,EAAIT,EACPU,OAAO,KACPC,KAAK,YAAa,aAAaxB,EAAQ,MAAMD,EAAS,MAEnD0B,EAAMC,EAAAA,UAETC,MAAOC,GA1CoB,CAACC,IACjC,GAAmB,iBAARA,EACT,OAAOA,EAET,MAAMC,GAAQ,MAAAD,OAAA,EAAAA,EAAKC,MAAM,UAAW,KACpC,OAAOA,EAAQC,OAAOD,EAAM,IAAM,GAqCLE,CAA0BJ,EAAED,QAEjDM,EAAOC,EAAAA,UAASjB,YAAYA,GAAaG,YAAYA,GAE9CE,EACVP,UAAU,QAEVjB,KAAK2B,EAAI3B,IACTqC,QACAZ,OAAO,KACPC,KAAK,QAAS,OAGdD,OAAO,QAEPC,KAAK,IAAKS,GAEVT,KAAK,OAAQ,CAACI,EAAcQ,IACpB9B,EAAO8B,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