@erpsquad/common 1.8.42 → 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.esm10.js +3 -3
- package/dist/_virtual/index/index.esm11.js +3 -3
- package/dist/_virtual/index/index.esm4.js +1 -1
- package/dist/_virtual/index/index.esm5.js +3 -3
- package/dist/_virtual/index/index.esm6.js +3 -3
- package/dist/_virtual/index/index.esm7.js +3 -3
- package/dist/_virtual/index/index.esm8.js +3 -3
- package/dist/_virtual/index/index.esm9.js +3 -3
- package/dist/_virtual/index/index10.js +1 -1
- package/dist/_virtual/index/index11.js +1 -1
- package/dist/_virtual/index/index4.js +1 -1
- package/dist/_virtual/index/index5.js +1 -1
- package/dist/_virtual/index/index6.js +1 -1
- package/dist/_virtual/index/index7.js +1 -1
- package/dist/_virtual/index/index8.js +1 -1
- package/dist/_virtual/index/index9.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.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.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.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.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.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.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.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.d.ts +4 -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.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.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.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.d.ts +2 -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.d.ts +73 -0
- package/dist/components/header/redux/state.d.ts +14 -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.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.d.ts +7 -0
- package/dist/components/icons/share.d.ts +4 -0
- 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/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.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.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.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.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.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.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.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.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.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.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.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-modal.d.ts +17 -0
- package/dist/components/schedule-report/schedule-report.d.ts +6 -0
- 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.d.ts +21 -0
- package/dist/components/share-modal/redux/state.d.ts +8 -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.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.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/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.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.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.d.ts +69 -0
- 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.d.ts +12 -0
- package/dist/hooks/common.d.ts +41 -0
- package/dist/hooks/use-deep-memo.d.ts +2 -0
- 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.d.ts +25 -0
- package/dist/hooks/useLanguageFallback.d.ts +67 -0
- package/dist/hooks/useLocationFilter.d.ts +43 -0
- package/dist/hooks/useReduxIntegration.d.ts +9 -0
- package/dist/index.d.ts +190 -1
- package/dist/layout/fullScreen/fullScreen.d.ts +1 -0
- package/dist/layout/fullScreen/index.d.ts +2 -0
- package/dist/layout/sidebarScreen/index.d.ts +2 -0
- package/dist/layout/sidebarScreen/sidebarScreen.d.ts +7 -0
- package/dist/node_modules/@mui/system/colorManipulator/index.esm.js +2 -2
- package/dist/node_modules/@mui/system/colorManipulator/index.js +1 -1
- package/dist/node_modules/@mui/system/colorManipulator/index.js.map +1 -1
- package/dist/node_modules/@mui/system/createStyled/index.esm.js +6 -6
- package/dist/node_modules/@mui/system/createStyled/index.js +1 -1
- package/dist/node_modules/@mui/system/createStyled/index.js.map +1 -1
- package/dist/node_modules/@mui/system/useThemeWithoutDefault/index.esm.js +1 -1
- package/dist/node_modules/@mui/system/useThemeWithoutDefault/index.js +1 -1
- package/dist/redux/actionCreator.d.ts +7 -0
- package/dist/redux/apiConfig.d.ts +18 -0
- package/dist/redux/hooks.d.ts +7 -0
- 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.d.ts +45 -0
- package/dist/redux/slices/reportsTitleBarSlice.d.ts +21 -0
- 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/style.css +72 -72
- package/dist/styles/index.d.ts +1 -1
- package/dist/styles/themes/index.d.ts +21 -0
- package/dist/theme/color.d.ts +38 -0
- 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.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.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.d.ts +3 -0
- package/dist/utils/language.d.ts +1 -0
- package/dist/utils/menu-filter.d.ts +70 -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.d.ts +7 -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.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.d.ts +2 -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.d.ts +273 -0
- package/dist/views/afterAuth/page-view/redux/state.d.ts +33 -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.d.ts +16 -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.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.d.ts +3 -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.d.ts +1 -0
- 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.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.d.ts +5 -0
- package/dist/views/form-builder/redux/index.d.ts +5 -0
- 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/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.d.ts +18 -0
- 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.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.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.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.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 +1 -1
- package/src/styles/index.d.ts +1 -0
- package/dist/src/components/form-control/form-builder/form-builder-element/number-input.d.ts +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface Color {
|
|
2
|
+
100: string;
|
|
3
|
+
200: string;
|
|
4
|
+
300: string;
|
|
5
|
+
400: string;
|
|
6
|
+
500: string;
|
|
7
|
+
600: string;
|
|
8
|
+
700: string;
|
|
9
|
+
800: string;
|
|
10
|
+
900: string;
|
|
11
|
+
1000: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const primaryGreen: Color;
|
|
14
|
+
export declare const green: Color;
|
|
15
|
+
export declare const lightGreen: Color;
|
|
16
|
+
export declare const olive: Color;
|
|
17
|
+
export declare const magenta: Color;
|
|
18
|
+
export declare const blue: Color;
|
|
19
|
+
export declare const neutral: Color;
|
|
20
|
+
export declare const red: Color;
|
|
21
|
+
export declare const error: Color;
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { MaterialTableColumnProps, TypeBooleanLabels } from '../components/material-table/material-table';
|
|
3
|
+
import { TFunction } from 'i18next';
|
|
4
|
+
import { MRT_Row, MRT_RowData } from 'material-react-table';
|
|
5
|
+
|
|
6
|
+
export declare const getFileNamesFromUrlsAsLink: (fileUrls: string | string[], mode?: string) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const getFileNamesFromUrls: (fileUrls: string[]) => import("react/jsx-runtime").JSX.Element[];
|
|
8
|
+
export type CurrencySymbolFn = (row: MRT_Row<MRT_RowData>) => string;
|
|
9
|
+
export type StatusClassesFn = (row: MRT_Row<MRT_RowData>) => string;
|
|
10
|
+
export type RedirectionLinkFn = (row: MRT_Row<MRT_RowData>) => string;
|
|
11
|
+
export interface ITransformTableColumns {
|
|
12
|
+
columns: MaterialTableColumnProps[];
|
|
13
|
+
currencySymbol?: string | CurrencySymbolFn;
|
|
14
|
+
translationFn?: TFunction<'translation', undefined>;
|
|
15
|
+
enableFooter?: boolean;
|
|
16
|
+
redirectionLink?: string | RedirectionLinkFn;
|
|
17
|
+
redirectionLinkState?: (row: MRT_Row<MRT_RowData>) => void;
|
|
18
|
+
redirectionPathWithId?: string;
|
|
19
|
+
idField?: string;
|
|
20
|
+
customizeValue?: (row: MRT_Row<MRT_RowData>, columnAccessorKey?: string, value?: any) => any;
|
|
21
|
+
statusClasses?: string | StatusClassesFn;
|
|
22
|
+
rows: any[];
|
|
23
|
+
currencyFormat?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export declare const transformTableColumns: ({ columns, currencySymbol, translationFn, enableFooter, redirectionLink, redirectionLinkState, redirectionPathWithId, idField, statusClasses, rows, customizeValue, currencyFormat }: ITransformTableColumns) => {
|
|
26
|
+
Footer: ({ column }: {
|
|
27
|
+
column: any;
|
|
28
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
header: string;
|
|
30
|
+
Cell: ({ renderedCellValue, row }: any) => any;
|
|
31
|
+
visible?: boolean;
|
|
32
|
+
type?: string;
|
|
33
|
+
showDefaultCurrency?: boolean;
|
|
34
|
+
valueGet?: string;
|
|
35
|
+
custom_class?: string;
|
|
36
|
+
typeArrayAccessorKey?: string;
|
|
37
|
+
typeBooleanLabels?: TypeBooleanLabels;
|
|
38
|
+
editVariant?: import('material-react-table').MRT_ColumnDef<MRT_RowData>["editVariant"] | ("number" | "time" | "image" | "checkbox" | "date" | "file" | "date_time" | "phone");
|
|
39
|
+
editProperties?: {
|
|
40
|
+
field_name?: string;
|
|
41
|
+
valueKey?: string;
|
|
42
|
+
placeholder?: string;
|
|
43
|
+
dateFormat?: string;
|
|
44
|
+
validations?: any[];
|
|
45
|
+
is_multiple?: boolean;
|
|
46
|
+
is_multiline?: boolean;
|
|
47
|
+
disable?: boolean | ((row: any, virtualRow?: any) => boolean);
|
|
48
|
+
};
|
|
49
|
+
redirectionPathWithId?: string;
|
|
50
|
+
idField?: string;
|
|
51
|
+
meta?: import('@tanstack/table-core').ColumnMeta<MRT_RowData, unknown>;
|
|
52
|
+
columns?: import('material-react-table').MRT_ColumnDef<MRT_RowData, unknown>[];
|
|
53
|
+
accessorKey?: string | (string & {});
|
|
54
|
+
footer?: string;
|
|
55
|
+
id?: import('material-react-table').LiteralUnion<string, string>;
|
|
56
|
+
Edit?: (props: {
|
|
57
|
+
cell: import('material-react-table').MRT_Cell<MRT_RowData, unknown>;
|
|
58
|
+
column: import('material-react-table').MRT_Column<MRT_RowData, unknown>;
|
|
59
|
+
row: MRT_Row<MRT_RowData>;
|
|
60
|
+
table: import('material-react-table').MRT_TableInstance<MRT_RowData>;
|
|
61
|
+
}) => React.ReactNode;
|
|
62
|
+
Filter?: (props: {
|
|
63
|
+
column: import('material-react-table').MRT_Column<MRT_RowData, unknown>;
|
|
64
|
+
header: import('material-react-table').MRT_Header<MRT_RowData>;
|
|
65
|
+
rangeFilterIndex?: number;
|
|
66
|
+
table: import('material-react-table').MRT_TableInstance<MRT_RowData>;
|
|
67
|
+
}) => React.ReactNode;
|
|
68
|
+
size?: number;
|
|
69
|
+
aggregationFn?: import('material-react-table').MRT_AggregationFn<MRT_RowData> | import('material-react-table').MRT_AggregationFn<MRT_RowData>[];
|
|
70
|
+
filterFn?: import('material-react-table').MRT_FilterFn<MRT_RowData>;
|
|
71
|
+
sortingFn?: import('material-react-table').MRT_SortingFn<MRT_RowData>;
|
|
72
|
+
getUniqueValues?: import('@tanstack/table-core').AccessorFn<MRT_RowData, unknown[]>;
|
|
73
|
+
enableHiding?: boolean;
|
|
74
|
+
enablePinning?: boolean;
|
|
75
|
+
enableColumnFilter?: boolean;
|
|
76
|
+
enableGlobalFilter?: boolean;
|
|
77
|
+
enableMultiSort?: boolean;
|
|
78
|
+
enableSorting?: boolean;
|
|
79
|
+
invertSorting?: boolean;
|
|
80
|
+
sortDescFirst?: boolean;
|
|
81
|
+
sortUndefined?: false | -1 | 1 | "first" | "last";
|
|
82
|
+
enableGrouping?: boolean;
|
|
83
|
+
getGroupingValue?: (row: MRT_RowData) => any;
|
|
84
|
+
enableResizing?: boolean;
|
|
85
|
+
maxSize?: number;
|
|
86
|
+
minSize?: number;
|
|
87
|
+
accessorFn?: (originalRow: MRT_RowData) => unknown;
|
|
88
|
+
AggregatedCell?: (props: {
|
|
89
|
+
cell: import('material-react-table').MRT_Cell<MRT_RowData, unknown>;
|
|
90
|
+
column: import('material-react-table').MRT_Column<MRT_RowData, unknown>;
|
|
91
|
+
row: MRT_Row<MRT_RowData>;
|
|
92
|
+
table: import('material-react-table').MRT_TableInstance<MRT_RowData>;
|
|
93
|
+
staticColumnIndex?: number;
|
|
94
|
+
staticRowIndex?: number;
|
|
95
|
+
}) => React.ReactNode;
|
|
96
|
+
GroupedCell?: (props: {
|
|
97
|
+
cell: import('material-react-table').MRT_Cell<MRT_RowData, unknown>;
|
|
98
|
+
column: import('material-react-table').MRT_Column<MRT_RowData, unknown>;
|
|
99
|
+
row: MRT_Row<MRT_RowData>;
|
|
100
|
+
table: import('material-react-table').MRT_TableInstance<MRT_RowData>;
|
|
101
|
+
staticColumnIndex?: number;
|
|
102
|
+
staticRowIndex?: number;
|
|
103
|
+
}) => React.ReactNode;
|
|
104
|
+
Header?: React.ReactNode | ((props: {
|
|
105
|
+
column: import('material-react-table').MRT_Column<MRT_RowData, unknown>;
|
|
106
|
+
header: import('material-react-table').MRT_Header<MRT_RowData>;
|
|
107
|
+
table: import('material-react-table').MRT_TableInstance<MRT_RowData>;
|
|
108
|
+
}) => React.ReactNode);
|
|
109
|
+
PlaceholderCell?: (props: {
|
|
110
|
+
cell: import('material-react-table').MRT_Cell<MRT_RowData, unknown>;
|
|
111
|
+
column: import('material-react-table').MRT_Column<MRT_RowData, unknown>;
|
|
112
|
+
row: MRT_Row<MRT_RowData>;
|
|
113
|
+
table: import('material-react-table').MRT_TableInstance<MRT_RowData>;
|
|
114
|
+
}) => React.ReactNode;
|
|
115
|
+
columnDefType?: "data" | "display" | "group";
|
|
116
|
+
columnFilterModeOptions?: Array<import('material-react-table').LiteralUnion<string & import('material-react-table').MRT_FilterOption>> | null;
|
|
117
|
+
editSelectOptions?: import('material-react-table').DropdownOption[] | ((props: {
|
|
118
|
+
cell: import('material-react-table').MRT_Cell<MRT_RowData, unknown>;
|
|
119
|
+
column: import('material-react-table').MRT_Column<MRT_RowData, unknown>;
|
|
120
|
+
row: MRT_Row<MRT_RowData>;
|
|
121
|
+
table: import('material-react-table').MRT_TableInstance<MRT_RowData>;
|
|
122
|
+
}) => import('material-react-table').DropdownOption[]);
|
|
123
|
+
enableClickToCopy?: boolean | "context-menu" | ((cell: import('material-react-table').MRT_Cell<MRT_RowData, unknown>) => "context-menu" | boolean);
|
|
124
|
+
enableColumnActions?: boolean;
|
|
125
|
+
enableColumnDragging?: boolean;
|
|
126
|
+
enableColumnFilterModes?: boolean;
|
|
127
|
+
enableColumnOrdering?: boolean;
|
|
128
|
+
enableEditing?: boolean | ((row: MRT_Row<MRT_RowData>) => boolean);
|
|
129
|
+
enableFilterMatchHighlighting?: boolean;
|
|
130
|
+
filterSelectOptions?: import('material-react-table').DropdownOption[];
|
|
131
|
+
filterVariant?: "autocomplete" | "checkbox" | "date" | "date-range" | "datetime" | "datetime-range" | "multi-select" | "range" | "range-slider" | "select" | "text" | "time" | "time-range";
|
|
132
|
+
grow?: boolean | number;
|
|
133
|
+
muiColumnActionsButtonProps?: import('@mui/material').IconButtonProps | ((props: {
|
|
134
|
+
column: import('material-react-table').MRT_Column<MRT_RowData, unknown>;
|
|
135
|
+
table: import('material-react-table').MRT_TableInstance<MRT_RowData>;
|
|
136
|
+
}) => import('@mui/material').IconButtonProps);
|
|
137
|
+
muiColumnDragHandleProps?: import('@mui/material').IconButtonProps | ((props: {
|
|
138
|
+
column: import('material-react-table').MRT_Column<MRT_RowData, unknown>;
|
|
139
|
+
table: import('material-react-table').MRT_TableInstance<MRT_RowData>;
|
|
140
|
+
}) => import('@mui/material').IconButtonProps);
|
|
141
|
+
muiCopyButtonProps?: import('@mui/material').ButtonProps | ((props: {
|
|
142
|
+
cell: import('material-react-table').MRT_Cell<MRT_RowData, unknown>;
|
|
143
|
+
column: import('material-react-table').MRT_Column<MRT_RowData, unknown>;
|
|
144
|
+
row: MRT_Row<MRT_RowData>;
|
|
145
|
+
table: import('material-react-table').MRT_TableInstance<MRT_RowData>;
|
|
146
|
+
}) => import('@mui/material').ButtonProps);
|
|
147
|
+
muiEditTextFieldProps?: import('@mui/material').TextFieldProps | ((props: {
|
|
148
|
+
cell: import('material-react-table').MRT_Cell<MRT_RowData, unknown>;
|
|
149
|
+
column: import('material-react-table').MRT_Column<MRT_RowData, unknown>;
|
|
150
|
+
row: MRT_Row<MRT_RowData>;
|
|
151
|
+
table: import('material-react-table').MRT_TableInstance<MRT_RowData>;
|
|
152
|
+
}) => import('@mui/material').TextFieldProps);
|
|
153
|
+
muiFilterAutocompleteProps?: import('@mui/material').AutocompleteProps<any, any, any, any, "div"> | ((props: {
|
|
154
|
+
column: import('material-react-table').MRT_Column<MRT_RowData, unknown>;
|
|
155
|
+
table: import('material-react-table').MRT_TableInstance<MRT_RowData>;
|
|
156
|
+
}) => import('@mui/material').AutocompleteProps<any, any, any, any>);
|
|
157
|
+
muiFilterCheckboxProps?: import('@mui/material').CheckboxProps | ((props: {
|
|
158
|
+
column: import('material-react-table').MRT_Column<MRT_RowData, unknown>;
|
|
159
|
+
table: import('material-react-table').MRT_TableInstance<MRT_RowData>;
|
|
160
|
+
}) => import('@mui/material').CheckboxProps);
|
|
161
|
+
muiFilterDatePickerProps?: import('@mui/x-date-pickers').DatePickerProps<never> | ((props: {
|
|
162
|
+
column: import('material-react-table').MRT_Column<MRT_RowData, unknown>;
|
|
163
|
+
rangeFilterIndex?: number;
|
|
164
|
+
table: import('material-react-table').MRT_TableInstance<MRT_RowData>;
|
|
165
|
+
}) => import('@mui/x-date-pickers').DatePickerProps<never>);
|
|
166
|
+
muiFilterDateTimePickerProps?: import('@mui/x-date-pickers').DateTimePickerProps<never> | ((props: {
|
|
167
|
+
column: import('material-react-table').MRT_Column<MRT_RowData, unknown>;
|
|
168
|
+
rangeFilterIndex?: number;
|
|
169
|
+
table: import('material-react-table').MRT_TableInstance<MRT_RowData>;
|
|
170
|
+
}) => import('@mui/x-date-pickers').DateTimePickerProps<never>);
|
|
171
|
+
muiFilterSliderProps?: import('@mui/material').SliderProps | ((props: {
|
|
172
|
+
column: import('material-react-table').MRT_Column<MRT_RowData, unknown>;
|
|
173
|
+
table: import('material-react-table').MRT_TableInstance<MRT_RowData>;
|
|
174
|
+
}) => import('@mui/material').SliderProps);
|
|
175
|
+
muiFilterTextFieldProps?: import('@mui/material').TextFieldProps | ((props: {
|
|
176
|
+
column: import('material-react-table').MRT_Column<MRT_RowData, unknown>;
|
|
177
|
+
rangeFilterIndex?: number;
|
|
178
|
+
table: import('material-react-table').MRT_TableInstance<MRT_RowData>;
|
|
179
|
+
}) => import('@mui/material').TextFieldProps);
|
|
180
|
+
muiFilterTimePickerProps?: import('@mui/x-date-pickers').TimePickerProps<never> | ((props: {
|
|
181
|
+
column: import('material-react-table').MRT_Column<MRT_RowData, unknown>;
|
|
182
|
+
rangeFilterIndex?: number;
|
|
183
|
+
table: import('material-react-table').MRT_TableInstance<MRT_RowData>;
|
|
184
|
+
}) => import('@mui/x-date-pickers').TimePickerProps<never>);
|
|
185
|
+
muiTableBodyCellProps?: import('@mui/material').TableCellProps | ((props: {
|
|
186
|
+
cell: import('material-react-table').MRT_Cell<MRT_RowData, unknown>;
|
|
187
|
+
column: import('material-react-table').MRT_Column<MRT_RowData, unknown>;
|
|
188
|
+
row: MRT_Row<MRT_RowData>;
|
|
189
|
+
table: import('material-react-table').MRT_TableInstance<MRT_RowData>;
|
|
190
|
+
}) => import('@mui/material').TableCellProps);
|
|
191
|
+
muiTableFooterCellProps?: import('@mui/material').TableCellProps | ((props: {
|
|
192
|
+
column: import('material-react-table').MRT_Column<MRT_RowData, unknown>;
|
|
193
|
+
table: import('material-react-table').MRT_TableInstance<MRT_RowData>;
|
|
194
|
+
}) => import('@mui/material').TableCellProps);
|
|
195
|
+
muiTableHeadCellProps?: import('@mui/material').TableCellProps | ((props: {
|
|
196
|
+
column: import('material-react-table').MRT_Column<MRT_RowData, unknown>;
|
|
197
|
+
table: import('material-react-table').MRT_TableInstance<MRT_RowData>;
|
|
198
|
+
}) => import('@mui/material').TableCellProps);
|
|
199
|
+
renderCellActionMenuItems?: (props: {
|
|
200
|
+
cell: import('material-react-table').MRT_Cell<MRT_RowData, unknown>;
|
|
201
|
+
closeMenu: () => void;
|
|
202
|
+
column: import('material-react-table').MRT_Column<MRT_RowData, unknown>;
|
|
203
|
+
internalMenuItems: React.ReactNode[];
|
|
204
|
+
row: MRT_Row<MRT_RowData>;
|
|
205
|
+
staticColumnIndex?: number;
|
|
206
|
+
staticRowIndex?: number;
|
|
207
|
+
table: import('material-react-table').MRT_TableInstance<MRT_RowData>;
|
|
208
|
+
}) => React.ReactNode[];
|
|
209
|
+
renderColumnActionsMenuItems?: (props: {
|
|
210
|
+
closeMenu: () => void;
|
|
211
|
+
column: import('material-react-table').MRT_Column<MRT_RowData, unknown>;
|
|
212
|
+
internalColumnMenuItems: React.ReactNode[];
|
|
213
|
+
table: import('material-react-table').MRT_TableInstance<MRT_RowData>;
|
|
214
|
+
}) => React.ReactNode[];
|
|
215
|
+
renderColumnFilterModeMenuItems?: (props: {
|
|
216
|
+
column: import('material-react-table').MRT_Column<MRT_RowData, unknown>;
|
|
217
|
+
internalFilterOptions: import('material-react-table').MRT_InternalFilterOption[];
|
|
218
|
+
onSelectFilterMode: (filterMode: import('material-react-table').MRT_FilterOption) => void;
|
|
219
|
+
table: import('material-react-table').MRT_TableInstance<MRT_RowData>;
|
|
220
|
+
}) => React.ReactNode[];
|
|
221
|
+
visibleInShowHideMenu?: boolean;
|
|
222
|
+
}[];
|
|
223
|
+
export declare const renderEmptyRowsFallback: (text: string) => import("react/jsx-runtime").JSX.Element;
|
|
224
|
+
export declare const renderValueField: (label: string, value: any, t: any, formatFn?: (val: any) => string) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { default as dayjs } from 'dayjs';
|
|
2
|
+
import { FieldDisableConfig } from './constant';
|
|
3
|
+
|
|
4
|
+
export declare const isJsonParse: (jsonString?: string) => any;
|
|
5
|
+
export declare const generateRandomId: (concatString?: string) => {
|
|
6
|
+
uniqueStringId: string;
|
|
7
|
+
uniqueNumberId: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const generateAndFormatStringFromObj: (obj?: any, keysInOrder?: string[]) => string;
|
|
10
|
+
export declare const generateFields: (fieldsConfig: any) => any;
|
|
11
|
+
export declare const generateQueryString: (rule: any) => string;
|
|
12
|
+
export declare const getOperatorLabel: (rule: any, filterFields: any[]) => string;
|
|
13
|
+
export declare const formatAmount: (amount?: number | string, format?: string, position?: "after" | "before", symbol?: string) => string;
|
|
14
|
+
export declare const filterCoaByCompanyIdOrNull: (allCoa: any[], { companyId }: {
|
|
15
|
+
companyId?: number | string | null | any[];
|
|
16
|
+
}) => any[];
|
|
17
|
+
export declare const validateDiscountValidity: (date: any, discountDueDateBasedOn: any, discountValidity: any) => boolean;
|
|
18
|
+
export declare const postImportSheet: (request: any, moduleName: string) => Promise<any>;
|
|
19
|
+
export declare const getExcelTemplateGenerateTemplate: (request: any) => Promise<Response>;
|
|
20
|
+
export declare const getExcelExportTemplate: (request: any) => Promise<Response>;
|
|
21
|
+
export declare const removeIdStaticIdsFromMongoObject: (data: any) => any;
|
|
22
|
+
export interface UploadOptions {
|
|
23
|
+
onProgress?: (progress: ProgressInfo) => void;
|
|
24
|
+
chunkSize?: number;
|
|
25
|
+
retryAttempts?: number;
|
|
26
|
+
retryDelay?: number;
|
|
27
|
+
}
|
|
28
|
+
export interface ProgressInfo {
|
|
29
|
+
fileName: string;
|
|
30
|
+
progress: number;
|
|
31
|
+
bytesUploaded: number;
|
|
32
|
+
totalBytes: number;
|
|
33
|
+
fileIndex?: number;
|
|
34
|
+
totalFiles?: number;
|
|
35
|
+
}
|
|
36
|
+
export interface FileUploadResponse {
|
|
37
|
+
data: {
|
|
38
|
+
preSignedData: {
|
|
39
|
+
uploadId: string;
|
|
40
|
+
fileName: string;
|
|
41
|
+
preSignedUrls: Array<{
|
|
42
|
+
partNumber: number;
|
|
43
|
+
presignedUrl: string;
|
|
44
|
+
}>;
|
|
45
|
+
location?: string;
|
|
46
|
+
presignedUrl?: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export interface CompleteUploadResponse {
|
|
51
|
+
data: {
|
|
52
|
+
location: string;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export interface UploadPart {
|
|
56
|
+
partNumber: number;
|
|
57
|
+
etag: string;
|
|
58
|
+
}
|
|
59
|
+
export declare const handleRegularUpload: (files: File[], controller: AbortController, module: string, options?: UploadOptions) => Promise<string[]>;
|
|
60
|
+
/**
|
|
61
|
+
* Main upload function - handles file validation and orchestrates the upload process
|
|
62
|
+
* @param files - Single file or array of files to upload
|
|
63
|
+
* @param module - Module name for the upload endpoint (default: "sales")
|
|
64
|
+
* @param options - Optional upload configuration
|
|
65
|
+
* @returns Promise<string[]> - Array of uploaded file locations
|
|
66
|
+
*/
|
|
67
|
+
export declare const uploadFiles: (files: any, module?: string, options?: UploadOptions) => Promise<string[]>;
|
|
68
|
+
export declare const formatDateForPayload: (date: any) => string;
|
|
69
|
+
export declare const formatTimeForPayload: (date: any) => string;
|
|
70
|
+
export declare const formatDateTimeForPayload: (date: any) => string;
|
|
71
|
+
export declare function isJSONString(str: string | undefined): any;
|
|
72
|
+
export declare const getErrorMessage: (error?: any) => any;
|
|
73
|
+
export declare const InvoiceStatus: {
|
|
74
|
+
Approved: string;
|
|
75
|
+
Rejected: string;
|
|
76
|
+
};
|
|
77
|
+
export declare const defaultCurrencySymbol: () => string;
|
|
78
|
+
export declare const defaultCurrencyFormat: () => string;
|
|
79
|
+
export declare const defaultCompany: () => number;
|
|
80
|
+
export declare function omitDataKeys<T>(obj: T, extra?: Array<string>): T;
|
|
81
|
+
export interface DataObject {
|
|
82
|
+
[key: string]: any;
|
|
83
|
+
}
|
|
84
|
+
export interface LabelValueObject extends DataObject {
|
|
85
|
+
label: string;
|
|
86
|
+
value: string | number | null;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* A global function to process an array of objects and return formatted label-value pairs.
|
|
90
|
+
*
|
|
91
|
+
* @param {Array<T>} dataArray - The array of objects to be processed.
|
|
92
|
+
* @param {Array<T>} fallbackArray - The fallback array if dataArray is empty.
|
|
93
|
+
* @param {Array<keyof T | string>} labelKeys - The keys to be concatenated for the label.
|
|
94
|
+
* @param {keyof T | string} valueKey - The key to be used for the value.
|
|
95
|
+
* @param {Function} [labelFormatter] - Optional custom formatter for label.
|
|
96
|
+
* @returns {Array<LabelValueObject>} - The processed array of label-value objects.
|
|
97
|
+
*/
|
|
98
|
+
export declare const getLabelValuePairs: <T extends DataObject>(dataArray: T[], fallbackArray: T[], labelKeys: (keyof T | string)[], valueKey: keyof T | string, labelFormatter?: (item: T) => string) => LabelValueObject[];
|
|
99
|
+
export declare function formatEmptyDataToNull<T>(obj: T): T;
|
|
100
|
+
export declare function downloadFile(fileUrl: string, fileName?: string): void;
|
|
101
|
+
export declare const downloadDoc: ({ api, raw }: {
|
|
102
|
+
api: string;
|
|
103
|
+
fileName: string;
|
|
104
|
+
raw: any;
|
|
105
|
+
}) => Promise<void>;
|
|
106
|
+
export declare function formatResponseDatesToDayJS<T>(obj: T): T;
|
|
107
|
+
export declare const toFixedWithNumbers: (num: number) => string | number;
|
|
108
|
+
export declare const findById: (arr: Array<any>, id: any) => any;
|
|
109
|
+
export declare const getTaxAmountFromMultipleTaxCodes: (amount: number, taxCodes?: any[], detail?: boolean) => number | {
|
|
110
|
+
id: any;
|
|
111
|
+
name: any;
|
|
112
|
+
rate: any;
|
|
113
|
+
tax_amount: number;
|
|
114
|
+
}[];
|
|
115
|
+
export declare const getTaxAmountDataFromMultipleTaxCodes: (grossAmount: number, netAmount: number, taxCodes?: any[], detail?: boolean) => {
|
|
116
|
+
id: any;
|
|
117
|
+
name: any;
|
|
118
|
+
rate: any;
|
|
119
|
+
tax_amount: number;
|
|
120
|
+
}[] | {
|
|
121
|
+
amount: number;
|
|
122
|
+
rate: number;
|
|
123
|
+
};
|
|
124
|
+
export declare const calculateAmountData: (quantity: number, rate: number, discount_rate: number | null, discounted_items: any, taxCodes?: any[]) => {
|
|
125
|
+
grossAmount: number;
|
|
126
|
+
taxAmount: any;
|
|
127
|
+
taxRate: any;
|
|
128
|
+
discountAmount: number;
|
|
129
|
+
netAmount: number;
|
|
130
|
+
totalAmount: number;
|
|
131
|
+
};
|
|
132
|
+
export type AnyObject = Record<string, any>;
|
|
133
|
+
export declare const hasValue: (object: AnyObject, skipFields?: string[]) => boolean;
|
|
134
|
+
export declare const formatAmountWithCurrency: (amount: number, currencySymbol?: string) => string;
|
|
135
|
+
export declare const formatAmountWithCurrencyData: (amount: number, currencySymbol?: string) => string;
|
|
136
|
+
export type ManageItemsOptions = {
|
|
137
|
+
key: string;
|
|
138
|
+
action: "add" | "update" | "delete";
|
|
139
|
+
value: any;
|
|
140
|
+
items: any[];
|
|
141
|
+
itemIndex: number;
|
|
142
|
+
};
|
|
143
|
+
export declare const manageItems: ({ key, action, value, items, itemIndex }: ManageItemsOptions) => any[];
|
|
144
|
+
export declare function getPartyName(party: Record<any, any> | null | undefined): string;
|
|
145
|
+
export declare const partyEmailIds: (json: any) => string;
|
|
146
|
+
export declare function formatResponseOnlyDatesToDayJS<T>(obj: T): T;
|
|
147
|
+
export declare const fetchExchageRate: (id: string, type?: string) => Promise<{
|
|
148
|
+
exchange_rate: any;
|
|
149
|
+
reverse_rate: any;
|
|
150
|
+
}>;
|
|
151
|
+
export declare const showSnackBar: (error: any) => void;
|
|
152
|
+
export declare const fetchCompanyLocations: (companyId: number) => Promise<any>;
|
|
153
|
+
export declare const fetchItems: (itemId: number, attributes?: string) => Promise<any>;
|
|
154
|
+
export declare const getOptionsData: (key: string, id: number, select?: any, isArray?: boolean) => Promise<any>;
|
|
155
|
+
export declare const fetchOptions: (key: string, filters: any, select?: any, isArray?: boolean) => Promise<any>;
|
|
156
|
+
export declare const createdOnAndBy: (data: any) => string;
|
|
157
|
+
/**
|
|
158
|
+
* Returns the full name of an object based on the provided keys.
|
|
159
|
+
* The object is expected to have the keys as its properties.
|
|
160
|
+
* If the object is empty, returns a default value.
|
|
161
|
+
* @param {Record<string, any>} obj - The object to process
|
|
162
|
+
* @param {string[]} keys - The keys to use for forming the name
|
|
163
|
+
* @returns {string} The full name of the object
|
|
164
|
+
*/
|
|
165
|
+
export declare const getName: (obj: Record<string, any>, keys: string[]) => string;
|
|
166
|
+
export declare const getToken: () => {
|
|
167
|
+
"x-token": string;
|
|
168
|
+
"x-timezone": number;
|
|
169
|
+
};
|
|
170
|
+
export declare const checkForDuplicate: (payload: any) => Promise<any>;
|
|
171
|
+
export declare const partyDuplicateCheck: (activeTab: number | string, fValues: Record<string, any>, defaultValues?: Record<string, any>) => Promise<string | null>;
|
|
172
|
+
export declare const displayPhone: (data: Record<string, any>) => any;
|
|
173
|
+
export declare const getPartyDependentData: (id: number, options?: any) => Promise<{
|
|
174
|
+
addresses: any[];
|
|
175
|
+
contacts: any[];
|
|
176
|
+
currencies: any;
|
|
177
|
+
currencyIds: any;
|
|
178
|
+
companies: any;
|
|
179
|
+
companyIds: any;
|
|
180
|
+
paymentTerm: any;
|
|
181
|
+
defaultShipping: any;
|
|
182
|
+
defaultBilling: any;
|
|
183
|
+
salesperson: any;
|
|
184
|
+
}>;
|
|
185
|
+
export interface PayloadMapping {
|
|
186
|
+
[key: string]: string | string[] | ((values: Record<string, any>) => any);
|
|
187
|
+
}
|
|
188
|
+
export declare const mapApiPayload: (payloadMapping: PayloadMapping, values: Record<string, any>) => Record<string, any>;
|
|
189
|
+
export declare const mapAsyncApiPayload: (payloadMapping: PayloadMapping, values: Record<string, any>) => Promise<Record<string, any>>;
|
|
190
|
+
export declare const isBetweenTheDates: (startDate: any, endDate: any) => boolean;
|
|
191
|
+
export declare const setRateBasedOnPriceRules: (salesPrice: any, priceRules: any, addedQuantity: any) => any;
|
|
192
|
+
export declare const uploadAttachments: (files: any) => Promise<string>;
|
|
193
|
+
export declare const addOrEditArray: (array: any[], data: any) => any[];
|
|
194
|
+
export declare const getAccessibleModules: (moduleNames?: string[]) => string[];
|
|
195
|
+
export declare const filterAccessibleModules: (menu: any, moduleNames?: string[]) => any;
|
|
196
|
+
export declare const checkDuplicateTracking: (data: any, typeOfTrcebility: string, trackRows: any[]) => {
|
|
197
|
+
isDuplicate: boolean;
|
|
198
|
+
errorMsg?: undefined;
|
|
199
|
+
} | {
|
|
200
|
+
isDuplicate: boolean;
|
|
201
|
+
errorMsg: any;
|
|
202
|
+
};
|
|
203
|
+
export declare function getNestedValue(obj: any, path: any): any;
|
|
204
|
+
export declare const calculatePeriods: (startDateTime: Date, endDateTime: Date, mode?: "Day" | "Week" | "Month" | "Calendar Month" | "Year" | "Hour") => string;
|
|
205
|
+
export declare const removeIdFromObject: (array: any) => any;
|
|
206
|
+
export declare const fetchRentalResponseItems: (filters: string) => Promise<any>;
|
|
207
|
+
export declare const fetchRfqItemsByIdForResponse: (filters: string) => Promise<any>;
|
|
208
|
+
export declare const appendConditionSafely: (original: string | undefined, newCondition: string) => string;
|
|
209
|
+
export declare const fetchAssemblyItemData: (itemId: number) => Promise<any>;
|
|
210
|
+
export declare const getFileName: (file: any) => string;
|
|
211
|
+
export declare const getFieldFilters: (fields: any[], fieldNames: string | string[]) => any;
|
|
212
|
+
export declare const getNextScheduleDate: (currentDate: any, billingCycle: any) => dayjs.Dayjs;
|
|
213
|
+
export declare const getCountryIdByName: (name: string) => Promise<any>;
|
|
214
|
+
export declare const getSlicedValue: (value: string, length: number) => string;
|
|
215
|
+
export declare const skuGenerator: ({ name, category, sequence }: {
|
|
216
|
+
name: string;
|
|
217
|
+
category: string;
|
|
218
|
+
sequence?: string;
|
|
219
|
+
}) => string;
|
|
220
|
+
export declare const checkSkuAndItemName: (payload: any) => Promise<any>;
|
|
221
|
+
export interface FormValues {
|
|
222
|
+
[key: string]: any;
|
|
223
|
+
}
|
|
224
|
+
export interface UpdateFieldsDisabledConfig {
|
|
225
|
+
data: any[];
|
|
226
|
+
materialCostingType: string;
|
|
227
|
+
formValues: FormValues;
|
|
228
|
+
fieldsConfig?: FieldDisableConfig;
|
|
229
|
+
isEditMode?: boolean;
|
|
230
|
+
isAddMode?: boolean;
|
|
231
|
+
alwaysDisabledFields?: string[];
|
|
232
|
+
editModeDisabledFields?: string[];
|
|
233
|
+
addModeDisabledFields?: string[];
|
|
234
|
+
}
|
|
235
|
+
export declare const updateFieldsDisabledState: ({ data, materialCostingType, formValues, fieldsConfig, isEditMode, isAddMode, alwaysDisabledFields, editModeDisabledFields, addModeDisabledFields }: UpdateFieldsDisabledConfig) => any[];
|
|
236
|
+
export declare const remainingMaterialCostingTypes: (type: string) => string[];
|
|
237
|
+
export declare const matchedMaterialCostingTypeLabel: (type: string) => string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MaterialTableColumnProps } from '../components/material-table/material-table';
|
|
2
|
+
|
|
3
|
+
export declare const SECTION_TYPES: {
|
|
4
|
+
DEFAULT: string;
|
|
5
|
+
FORM_SWITCH_SECTION: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const responseItemDetailsColumns: MaterialTableColumnProps[];
|
|
8
|
+
export declare const INVENTORY_MATERIAL_COSTING_TYPE_ARR: string[];
|
|
9
|
+
export declare const INVENTORY_MATERIAL_COSTING_TYPE_OPTIONS: {
|
|
10
|
+
label: string;
|
|
11
|
+
value: string;
|
|
12
|
+
}[];
|
|
13
|
+
export type FieldDisableConfig = Record<string, any>;
|
|
14
|
+
export declare const INVENTORY_FIELDS_TO_BE_DISABLED: FieldDisableConfig;
|
|
15
|
+
export declare const INVENTORY_ALWAYS_DISABLED_FIELDS: string[];
|
|
16
|
+
export declare const INVENTORY_ADD_MODE_DISABLED_FIELDS: string[];
|
|
17
|
+
export declare const INVENTORY_EDIT_MODE_DISABLED_FIELDS: string[];
|
|
18
|
+
export declare const INVENTORY_VARIANT_DISABLED_FIELDS: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getCountry: (code: string) => string;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Date range constants
|
|
3
|
+
*/
|
|
4
|
+
export declare const RANGE: {
|
|
5
|
+
readonly TODAY: "Today";
|
|
6
|
+
readonly YESTERDAY: "Yesterday";
|
|
7
|
+
readonly THIS_WEEK: "This Week";
|
|
8
|
+
readonly PREVIOUS_WEEK: "Previous Week";
|
|
9
|
+
readonly THIS_MONTH: "This Month";
|
|
10
|
+
readonly PREVIOUS_MONTH: "Previous Month";
|
|
11
|
+
readonly THIS_QUARTER: "This Quarter";
|
|
12
|
+
readonly PREVIOUS_QUARTER: "Previous Quarter";
|
|
13
|
+
readonly THIS_YEAR: "This Year";
|
|
14
|
+
readonly PREVIOUS_YEAR: "Previous Year";
|
|
15
|
+
readonly CUSTOM: "Custom";
|
|
16
|
+
};
|
|
17
|
+
export type DateRangeType = keyof typeof RANGE;
|
|
18
|
+
export interface HandleCompareDateRangeParams {
|
|
19
|
+
range: string;
|
|
20
|
+
from?: string;
|
|
21
|
+
to?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface DateRangeResult {
|
|
24
|
+
from: string;
|
|
25
|
+
to: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Calculate date range based on the range type
|
|
29
|
+
*/
|
|
30
|
+
export declare const handleCompareDateRange: (params: HandleCompareDateRangeParams) => Promise<DateRangeResult>;
|
|
31
|
+
export declare const handleCompareDateRangeSync: (params: HandleCompareDateRangeParams) => DateRangeResult;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as dayjs } from 'dayjs';
|
|
2
|
+
|
|
3
|
+
declare const dateFormat: (date: string) => string;
|
|
4
|
+
export declare const formatOnlyTime: (time: any, date?: any, format?: any) => string | dayjs.Dayjs;
|
|
5
|
+
export declare const formatDate: (date?: any, format?: any) => string;
|
|
6
|
+
export declare const formatDataTime: (date: string) => string;
|
|
7
|
+
export default dateFormat;
|
|
8
|
+
export declare const getMinutesFromTime: (timeString: any) => number;
|
|
9
|
+
export declare const getTimeFromMinutes: (minutes: any) => string;
|
|
10
|
+
export declare const UTCDateFormat: (date: string, format: any) => string;
|
|
11
|
+
export declare const formatUtcDate: (date?: any, format?: any) => string;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { default as dayjs } from 'dayjs';
|
|
2
|
+
import * as Yup from 'yup';
|
|
3
|
+
export interface DateValidationOptions {
|
|
4
|
+
allowPast?: boolean;
|
|
5
|
+
allowToday?: boolean;
|
|
6
|
+
allowFuture?: boolean;
|
|
7
|
+
requiredMessage?: string;
|
|
8
|
+
pastDateMessage?: string;
|
|
9
|
+
futureDateMessage?: string;
|
|
10
|
+
todayNotAllowedMessage?: string;
|
|
11
|
+
invalidDateMessage?: string;
|
|
12
|
+
checkTime?: boolean;
|
|
13
|
+
pastTimeMessage?: string;
|
|
14
|
+
}
|
|
15
|
+
declare const DEFAULT_MESSAGES: {
|
|
16
|
+
required: string;
|
|
17
|
+
invalidDate: string;
|
|
18
|
+
pastDate: string;
|
|
19
|
+
futureDate: string;
|
|
20
|
+
todayNotAllowed: string;
|
|
21
|
+
pastTime: string;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Global date validation function with full customization
|
|
25
|
+
* @param options Configuration options for date validation
|
|
26
|
+
* @returns Yup validation schema
|
|
27
|
+
*/
|
|
28
|
+
export declare const createDateValidation: (options?: DateValidationOptions) => Yup.MixedSchema<{}, Yup.AnyObject, undefined, "">;
|
|
29
|
+
/**
|
|
30
|
+
* Quick preset validation functions for common use cases
|
|
31
|
+
*/
|
|
32
|
+
export declare const dateValidation: (requiredMessage?: string, options?: DateValidationOptions) => Yup.MixedSchema<{}, Yup.AnyObject, undefined, "">;
|
|
33
|
+
export declare const futureDateValidation: (requiredMessage?: string) => Yup.MixedSchema<{}, Yup.AnyObject, undefined, "">;
|
|
34
|
+
export declare const anyDateValidation: (requiredMessage?: string) => Yup.MixedSchema<{}, Yup.AnyObject, undefined, "">;
|
|
35
|
+
export declare const pastDateValidation: (requiredMessage?: string) => Yup.MixedSchema<{}, Yup.AnyObject, undefined, "">;
|
|
36
|
+
export declare const dateTimeValidation: (requiredMessage?: string) => Yup.MixedSchema<{}, Yup.AnyObject, undefined, "">;
|
|
37
|
+
export declare const businessDateValidation: (requiredMessage?: string) => Yup.MixedSchema<{}, Yup.AnyObject, undefined, "">;
|
|
38
|
+
export declare const dateRangeValidation: (minDate: dayjs.Dayjs | Date | string, maxDate: dayjs.Dayjs | Date | string, requiredMessage?: string) => Yup.MixedSchema<{}, Yup.AnyObject, undefined, "">;
|
|
39
|
+
/**
|
|
40
|
+
* Utility function to create custom validation messages
|
|
41
|
+
*/
|
|
42
|
+
export declare const createCustomMessages: (overrides: Partial<typeof DEFAULT_MESSAGES>) => {
|
|
43
|
+
required: string;
|
|
44
|
+
invalidDate: string;
|
|
45
|
+
pastDate: string;
|
|
46
|
+
futureDate: string;
|
|
47
|
+
todayNotAllowed: string;
|
|
48
|
+
pastTime: string;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Helper function for conditional date validation
|
|
52
|
+
* Example: Date required only if another field has a specific value
|
|
53
|
+
*/
|
|
54
|
+
export declare const conditionalDateValidation: (condition: (formValues: any) => boolean, validationSchema: any) => Yup.MixedSchema<{}, Yup.AnyObject, undefined, "">;
|
|
55
|
+
export declare const COMMON_DATE_VALIDATIONS: {
|
|
56
|
+
rental: (msg?: string) => Yup.MixedSchema<{}, Yup.AnyObject, undefined, "">;
|
|
57
|
+
};
|
|
58
|
+
export {};
|
|
59
|
+
/**
|
|
60
|
+
* Usage Examples:
|
|
61
|
+
*
|
|
62
|
+
* // Basic usage with custom required message
|
|
63
|
+
* date: dateValidation('Please select a valid date')
|
|
64
|
+
*
|
|
65
|
+
* // Full customization
|
|
66
|
+
* date: createDateValidation({
|
|
67
|
+
* allowPast: false,
|
|
68
|
+
* allowToday: true,
|
|
69
|
+
* allowFuture: true,
|
|
70
|
+
* requiredMessage: 'Date is required',
|
|
71
|
+
* pastDateMessage: 'Cannot select past dates'
|
|
72
|
+
* })
|
|
73
|
+
*
|
|
74
|
+
* // Preset validations
|
|
75
|
+
* rentalDate: COMMON_DATE_VALIDATIONS.rental('Rental date is required')
|
|
76
|
+
* bookingDate: COMMON_DATE_VALIDATIONS.booking()
|
|
77
|
+
*
|
|
78
|
+
* // Date range
|
|
79
|
+
* eventDate: dateRangeValidation(
|
|
80
|
+
* dayjs().add(1, 'day'),
|
|
81
|
+
* dayjs().add(1, 'year'),
|
|
82
|
+
* 'Event date is required'
|
|
83
|
+
* )
|
|
84
|
+
*/
|