@wavemaker-ai/react-runtime 1.0.0-rc.309
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/actions/base-action.d.ts +7 -0
- package/actions/base-action.js +30 -0
- package/actions/login-action.d.ts +11 -0
- package/actions/login-action.js +54 -0
- package/actions/logout-action.d.ts +10 -0
- package/actions/logout-action.js +39 -0
- package/actions/navigation-action.d.ts +35 -0
- package/actions/navigation-action.js +381 -0
- package/actions/notification-action.d.ts +20 -0
- package/actions/notification-action.js +164 -0
- package/actions/timer-action.d.ts +27 -0
- package/actions/timer-action.js +162 -0
- package/actions/toast-provider.d.ts +12 -0
- package/actions/toast-provider.js +111 -0
- package/actions/toast.d.ts +7 -0
- package/actions/toast.js +117 -0
- package/actions/toast.service.d.ts +17 -0
- package/actions/toast.service.js +93 -0
- package/actions/types/index.d.ts +26 -0
- package/actions/types/index.js +11 -0
- package/components/advanced/carousel/index.d.ts +72 -0
- package/components/advanced/carousel/index.js +467 -0
- package/components/advanced/carousel/props.d.ts +40 -0
- package/components/advanced/carousel/props.js +5 -0
- package/components/advanced/carousel/template.d.ts +72 -0
- package/components/advanced/carousel/template.js +83 -0
- package/components/advanced/login/index.d.ts +75 -0
- package/components/advanced/login/index.js +317 -0
- package/components/advanced/login/props.d.ts +41 -0
- package/components/advanced/login/props.js +5 -0
- package/components/advanced/marquee/index.d.ts +68 -0
- package/components/advanced/marquee/index.js +169 -0
- package/components/advanced/marquee/props.d.ts +32 -0
- package/components/advanced/marquee/props.js +5 -0
- package/components/basic/anchor/index.d.ts +83 -0
- package/components/basic/anchor/index.js +255 -0
- package/components/basic/anchor/props.d.ts +76 -0
- package/components/basic/anchor/props.js +5 -0
- package/components/basic/audio/index.d.ts +72 -0
- package/components/basic/audio/index.js +73 -0
- package/components/basic/audio/props.d.ts +48 -0
- package/components/basic/audio/props.js +5 -0
- package/components/basic/html/index.d.ts +69 -0
- package/components/basic/html/index.js +224 -0
- package/components/basic/html/props.d.ts +32 -0
- package/components/basic/html/props.js +5 -0
- package/components/basic/html/utils.d.ts +4 -0
- package/components/basic/html/utils.js +36 -0
- package/components/basic/icon/index.d.ts +71 -0
- package/components/basic/icon/index.js +93 -0
- package/components/basic/icon/props.d.ts +46 -0
- package/components/basic/icon/props.js +5 -0
- package/components/basic/iframe/iframe.utils.d.ts +2 -0
- package/components/basic/iframe/iframe.utils.js +17 -0
- package/components/basic/iframe/index.d.ts +67 -0
- package/components/basic/iframe/index.js +111 -0
- package/components/basic/iframe/props.d.ts +27 -0
- package/components/basic/iframe/props.js +5 -0
- package/components/basic/label/index.d.ts +72 -0
- package/components/basic/label/index.js +145 -0
- package/components/basic/label/props.d.ts +54 -0
- package/components/basic/label/props.js +5 -0
- package/components/basic/message/index.d.ts +18 -0
- package/components/basic/message/index.js +146 -0
- package/components/basic/message/props.d.ts +51 -0
- package/components/basic/message/props.js +5 -0
- package/components/basic/picture/index.d.ts +75 -0
- package/components/basic/picture/index.js +131 -0
- package/components/basic/picture/props.d.ts +57 -0
- package/components/basic/picture/props.js +5 -0
- package/components/basic/progress-bar/index.d.ts +73 -0
- package/components/basic/progress-bar/index.js +183 -0
- package/components/basic/progress-bar/props.d.ts +66 -0
- package/components/basic/progress-bar/props.js +41 -0
- package/components/basic/progress-circle/index.d.ts +78 -0
- package/components/basic/progress-circle/index.js +197 -0
- package/components/basic/progress-circle/props.d.ts +80 -0
- package/components/basic/progress-circle/props.js +39 -0
- package/components/basic/richtexteditor/index.d.ts +143 -0
- package/components/basic/richtexteditor/index.js +513 -0
- package/components/basic/richtexteditor/props.d.ts +89 -0
- package/components/basic/richtexteditor/props.js +5 -0
- package/components/basic/search/index.d.ts +178 -0
- package/components/basic/search/index.js +1257 -0
- package/components/basic/search/props.d.ts +233 -0
- package/components/basic/search/props.js +5 -0
- package/components/basic/search/providers.d.ts +53 -0
- package/components/basic/search/providers.js +415 -0
- package/components/basic/spinner/index.d.ts +74 -0
- package/components/basic/spinner/index.js +205 -0
- package/components/basic/spinner/props.d.ts +63 -0
- package/components/basic/spinner/props.js +27 -0
- package/components/basic/tile/index.d.ts +68 -0
- package/components/basic/tile/index.js +104 -0
- package/components/basic/tile/props.d.ts +11 -0
- package/components/basic/tile/props.js +5 -0
- package/components/basic/tree/Components/TreeNodeComponent.d.ts +4 -0
- package/components/basic/tree/Components/TreeNodeComponent.js +174 -0
- package/components/basic/tree/hooks/useTreePartialNodeApi.d.ts +17 -0
- package/components/basic/tree/hooks/useTreePartialNodeApi.js +157 -0
- package/components/basic/tree/index.d.ts +83 -0
- package/components/basic/tree/index.js +529 -0
- package/components/basic/tree/props.d.ts +127 -0
- package/components/basic/tree/props.js +5 -0
- package/components/basic/tree/utils.d.ts +39 -0
- package/components/basic/tree/utils.js +272 -0
- package/components/basic/video/index.d.ts +79 -0
- package/components/basic/video/index.js +108 -0
- package/components/basic/video/props.d.ts +77 -0
- package/components/basic/video/props.js +5 -0
- package/components/chart/index.d.ts +129 -0
- package/components/chart/index.js +58 -0
- package/components/chart/props.d.ts +188 -0
- package/components/chart/props.js +81 -0
- package/components/chart/src/ChartRenderer.d.ts +14 -0
- package/components/chart/src/ChartRenderer.js +226 -0
- package/components/chart/src/chart.d.ts +4 -0
- package/components/chart/src/chart.js +284 -0
- package/components/chart/src/chartStyles.generated.d.ts +7 -0
- package/components/chart/src/chartStyles.generated.js +14 -0
- package/components/chart/src/chartUtils.d.ts +26 -0
- package/components/chart/src/chartUtils.js +461 -0
- package/components/chart/src/constants.d.ts +28 -0
- package/components/chart/src/constants.js +139 -0
- package/components/chart/src/css.d.js +1 -0
- package/components/chart/src/d3Setup.d.ts +11 -0
- package/components/chart/src/d3Setup.js +37 -0
- package/components/chart/src/dataUtils.d.ts +79 -0
- package/components/chart/src/dataUtils.js +612 -0
- package/components/chart/src/formatUtils.d.ts +5 -0
- package/components/chart/src/formatUtils.js +63 -0
- package/components/chart/src/index.d.ts +3 -0
- package/components/chart/src/index.js +25 -0
- package/components/chart/src/nvd3Source.generated.d.ts +6 -0
- package/components/chart/src/nvd3Source.generated.js +13 -0
- package/components/chart/src/pieDonutResponsiveLayout.d.ts +30 -0
- package/components/chart/src/pieDonutResponsiveLayout.js +155 -0
- package/components/chart/src/types.d.ts +115 -0
- package/components/chart/src/types.js +5 -0
- package/components/common/AppSpinner.d.ts +9 -0
- package/components/common/AppSpinner.js +36 -0
- package/components/common/app-spinner.d.ts +5 -0
- package/components/common/app-spinner.js +26 -0
- package/components/common/index.d.ts +1 -0
- package/components/common/index.js +12 -0
- package/components/constants.d.ts +1135 -0
- package/components/constants.js +1211 -0
- package/components/container/accordion/accordion-pane/index.d.ts +81 -0
- package/components/container/accordion/accordion-pane/index.js +126 -0
- package/components/container/accordion/accordion-pane/props.d.ts +88 -0
- package/components/container/accordion/accordion-pane/props.js +24 -0
- package/components/container/accordion/index.d.ts +76 -0
- package/components/container/accordion/index.js +254 -0
- package/components/container/accordion/props.d.ts +57 -0
- package/components/container/accordion/props.js +21 -0
- package/components/container/index.d.ts +84 -0
- package/components/container/index.js +178 -0
- package/components/container/layout-grid/grid-column/index.d.ts +70 -0
- package/components/container/layout-grid/grid-column/index.js +45 -0
- package/components/container/layout-grid/grid-column/props.d.ts +27 -0
- package/components/container/layout-grid/grid-column/props.js +5 -0
- package/components/container/layout-grid/grid-row/index.d.ts +66 -0
- package/components/container/layout-grid/grid-row/index.js +31 -0
- package/components/container/layout-grid/grid-row/props.d.ts +6 -0
- package/components/container/layout-grid/grid-row/props.js +5 -0
- package/components/container/layout-grid/index.d.ts +68 -0
- package/components/container/layout-grid/index.js +40 -0
- package/components/container/layout-grid/props.d.ts +6 -0
- package/components/container/layout-grid/props.js +5 -0
- package/components/container/linear-layout/index.d.ts +67 -0
- package/components/container/linear-layout/index.js +83 -0
- package/components/container/linear-layout/linear-layout-item/index.d.ts +64 -0
- package/components/container/linear-layout/linear-layout-item/index.js +54 -0
- package/components/container/linear-layout/linear-layout-item/props.d.ts +14 -0
- package/components/container/linear-layout/linear-layout-item/props.js +5 -0
- package/components/container/linear-layout/props.d.ts +41 -0
- package/components/container/linear-layout/props.js +5 -0
- package/components/container/panel/components/panel-content/index.d.ts +8 -0
- package/components/container/panel/components/panel-content/index.js +18 -0
- package/components/container/panel/components/panel-header/index.d.ts +4 -0
- package/components/container/panel/components/panel-header/index.js +149 -0
- package/components/container/panel/components/panel-header/props.d.ts +50 -0
- package/components/container/panel/components/panel-header/props.js +5 -0
- package/components/container/panel/hooks.d.ts +22 -0
- package/components/container/panel/hooks.js +144 -0
- package/components/container/panel/index.d.ts +118 -0
- package/components/container/panel/index.js +307 -0
- package/components/container/panel/props.d.ts +158 -0
- package/components/container/panel/props.js +5 -0
- package/components/container/props.d.ts +72 -0
- package/components/container/props.js +5 -0
- package/components/container/repeat-template/index.d.ts +82 -0
- package/components/container/repeat-template/index.js +45 -0
- package/components/container/repeat-template/props.d.ts +6 -0
- package/components/container/repeat-template/props.js +5 -0
- package/components/container/tabs/index.d.ts +84 -0
- package/components/container/tabs/index.js +556 -0
- package/components/container/tabs/props.d.ts +104 -0
- package/components/container/tabs/props.js +40 -0
- package/components/container/tabs/tab-pane/index.d.ts +91 -0
- package/components/container/tabs/tab-pane/index.js +131 -0
- package/components/container/tabs/tab-pane/props.d.ts +84 -0
- package/components/container/tabs/tab-pane/props.js +5 -0
- package/components/container/tabs/utils.d.ts +17 -0
- package/components/container/tabs/utils.js +51 -0
- package/components/container/wizard/WizardContext.d.ts +4 -0
- package/components/container/wizard/WizardContext.js +16 -0
- package/components/container/wizard/components/StepComponents.d.ts +16 -0
- package/components/container/wizard/components/StepComponents.js +101 -0
- package/components/container/wizard/components/WizardStep.d.ts +5 -0
- package/components/container/wizard/components/WizardStep.js +96 -0
- package/components/container/wizard/index.d.ts +166 -0
- package/components/container/wizard/index.js +967 -0
- package/components/container/wizard/props.d.ts +281 -0
- package/components/container/wizard/props.js +5 -0
- package/components/container/wizard/utils.d.ts +12 -0
- package/components/container/wizard/utils.js +178 -0
- package/components/container/wizard/wizard-action/index.d.ts +18 -0
- package/components/container/wizard/wizard-action/index.js +97 -0
- package/components/container/wizard/wizard-step/index.d.ts +63 -0
- package/components/container/wizard/wizard-step/index.js +124 -0
- package/components/data/card/card-actions/index.d.ts +67 -0
- package/components/data/card/card-actions/index.js +32 -0
- package/components/data/card/card-content/index.d.ts +67 -0
- package/components/data/card/card-content/index.js +38 -0
- package/components/data/card/card-footer/index.d.ts +67 -0
- package/components/data/card/card-footer/index.js +32 -0
- package/components/data/card/index.d.ts +89 -0
- package/components/data/card/index.js +247 -0
- package/components/data/card/props.d.ts +131 -0
- package/components/data/card/props.js +5 -0
- package/components/data/form/base-form/constant.d.ts +33 -0
- package/components/data/form/base-form/constant.js +39 -0
- package/components/data/form/base-form/hooks/index.d.ts +7 -0
- package/components/data/form/base-form/hooks/index.js +77 -0
- package/components/data/form/base-form/hooks/useFormDataSync.d.ts +16 -0
- package/components/data/form/base-form/hooks/useFormDataSync.js +238 -0
- package/components/data/form/base-form/hooks/useFormOperations.d.ts +13 -0
- package/components/data/form/base-form/hooks/useFormOperations.js +175 -0
- package/components/data/form/base-form/hooks/useFormSubmission.d.ts +11 -0
- package/components/data/form/base-form/hooks/useFormSubmission.js +291 -0
- package/components/data/form/base-form/hooks/useFormValidation.d.ts +11 -0
- package/components/data/form/base-form/hooks/useFormValidation.js +176 -0
- package/components/data/form/base-form/hooks/useParentFormRelationship.d.ts +12 -0
- package/components/data/form/base-form/hooks/useParentFormRelationship.js +127 -0
- package/components/data/form/base-form/index.d.ts +3 -0
- package/components/data/form/base-form/index.js +802 -0
- package/components/data/form/base-form/props.d.ts +297 -0
- package/components/data/form/base-form/props.js +180 -0
- package/components/data/form/base-form/utils.d.ts +75 -0
- package/components/data/form/base-form/utils.js +411 -0
- package/components/data/form/dynamic-fields/constant.d.ts +1 -0
- package/components/data/form/dynamic-fields/constant.js +53 -0
- package/components/data/form/dynamic-fields/index.d.ts +2 -0
- package/components/data/form/dynamic-fields/index.js +167 -0
- package/components/data/form/dynamic-fields/props.d.ts +70 -0
- package/components/data/form/dynamic-fields/props.js +5 -0
- package/components/data/form/dynamic-fields/utils.d.ts +46 -0
- package/components/data/form/dynamic-fields/utils.js +272 -0
- package/components/data/form/form-action/index.d.ts +137 -0
- package/components/data/form/form-action/index.js +94 -0
- package/components/data/form/form-body/index.d.ts +5 -0
- package/components/data/form/form-body/index.js +28 -0
- package/components/data/form/form-context.d.ts +91 -0
- package/components/data/form/form-context.js +65 -0
- package/components/data/form/form-controller/hooks/index.d.ts +7 -0
- package/components/data/form/form-controller/hooks/index.js +132 -0
- package/components/data/form/form-controller/props.d.ts +139 -0
- package/components/data/form/form-controller/props.js +19 -0
- package/components/data/form/form-controller/utils.d.ts +5 -0
- package/components/data/form/form-controller/utils.js +135 -0
- package/components/data/form/form-controller/validation-contrustor.d.ts +3 -0
- package/components/data/form/form-controller/validation-contrustor.js +573 -0
- package/components/data/form/form-controller/withFormController.d.ts +3 -0
- package/components/data/form/form-controller/withFormController.js +309 -0
- package/components/data/form/form-dynamic-section/index.d.ts +5 -0
- package/components/data/form/form-dynamic-section/index.js +46 -0
- package/components/data/form/form-dynamic-section/props.d.ts +5 -0
- package/components/data/form/form-dynamic-section/props.js +5 -0
- package/components/data/form/form-field/base-field.d.ts +3 -0
- package/components/data/form/form-field/base-field.js +172 -0
- package/components/data/form/form-field/index.d.ts +14 -0
- package/components/data/form/form-field/index.js +87 -0
- package/components/data/form/form-field/props.d.ts +206 -0
- package/components/data/form/form-field/props.js +5 -0
- package/components/data/form/form-footer/index.d.ts +6 -0
- package/components/data/form/form-footer/index.js +27 -0
- package/components/data/form/form-header/index.d.ts +12 -0
- package/components/data/form/form-header/index.js +61 -0
- package/components/data/form/index.d.ts +4 -0
- package/components/data/form/index.js +76 -0
- package/components/data/form/props.d.ts +130 -0
- package/components/data/form/props.js +5 -0
- package/components/data/list/components/GroupHeader.d.ts +6 -0
- package/components/data/list/components/GroupHeader.js +35 -0
- package/components/data/list/components/GroupedListItems.d.ts +6 -0
- package/components/data/list/components/GroupedListItems.js +108 -0
- package/components/data/list/components/ListContainer.d.ts +6 -0
- package/components/data/list/components/ListContainer.js +27 -0
- package/components/data/list/components/ListDND.d.ts +39 -0
- package/components/data/list/components/ListDND.js +246 -0
- package/components/data/list/components/ListHeader.d.ts +7 -0
- package/components/data/list/components/ListHeader.js +50 -0
- package/components/data/list/components/ListItem.d.ts +18 -0
- package/components/data/list/components/ListItem.js +166 -0
- package/components/data/list/components/ListItemWithTemplate.d.ts +6 -0
- package/components/data/list/components/ListItemWithTemplate.js +113 -0
- package/components/data/list/components/ListItems.d.ts +7 -0
- package/components/data/list/components/ListItems.js +231 -0
- package/components/data/list/components/ListPagination.d.ts +7 -0
- package/components/data/list/components/ListPagination.js +183 -0
- package/components/data/list/components/LoadMoreButton.d.ts +6 -0
- package/components/data/list/components/LoadMoreButton.js +35 -0
- package/components/data/list/components/NoDataMessage.d.ts +6 -0
- package/components/data/list/components/NoDataMessage.js +22 -0
- package/components/data/list/components/StandardListItems.d.ts +6 -0
- package/components/data/list/components/StandardListItems.js +88 -0
- package/components/data/list/components/index.d.ts +12 -0
- package/components/data/list/components/index.js +119 -0
- package/components/data/list/components/props.d.ts +245 -0
- package/components/data/list/components/props.js +5 -0
- package/components/data/list/hooks/index.d.ts +11 -0
- package/components/data/list/hooks/index.js +75 -0
- package/components/data/list/hooks/props.d.ts +89 -0
- package/components/data/list/hooks/props.js +5 -0
- package/components/data/list/hooks/useCurrentPageItems.d.ts +6 -0
- package/components/data/list/hooks/useCurrentPageItems.js +48 -0
- package/components/data/list/hooks/useGroupedData.d.ts +9 -0
- package/components/data/list/hooks/useGroupedData.js +37 -0
- package/components/data/list/hooks/useListData.d.ts +9 -0
- package/components/data/list/hooks/useListData.js +60 -0
- package/components/data/list/hooks/useListEffects.d.ts +67 -0
- package/components/data/list/hooks/useListEffects.js +355 -0
- package/components/data/list/hooks/useListEventHandlers.d.ts +9 -0
- package/components/data/list/hooks/useListEventHandlers.js +323 -0
- package/components/data/list/hooks/useListPagination.d.ts +8 -0
- package/components/data/list/hooks/useListPagination.js +163 -0
- package/components/data/list/hooks/useListState.d.ts +28 -0
- package/components/data/list/hooks/useListState.js +114 -0
- package/components/data/list/hooks/useListStateManager.d.ts +26 -0
- package/components/data/list/hooks/useListStateManager.js +195 -0
- package/components/data/list/hooks/usePaginatedGroupedData.d.ts +6 -0
- package/components/data/list/hooks/usePaginatedGroupedData.js +134 -0
- package/components/data/list/index.d.ts +174 -0
- package/components/data/list/index.js +691 -0
- package/components/data/list/props.d.ts +405 -0
- package/components/data/list/props.js +5 -0
- package/components/data/list/templates/media-template.d.ts +2 -0
- package/components/data/list/templates/media-template.js +50 -0
- package/components/data/list/utils/constants.d.ts +52 -0
- package/components/data/list/utils/constants.js +82 -0
- package/components/data/list/utils/list-helpers.d.ts +41 -0
- package/components/data/list/utils/list-helpers.js +187 -0
- package/components/data/list/utils/list-widget-methods.d.ts +4 -0
- package/components/data/list/utils/list-widget-methods.js +159 -0
- package/components/data/list/utils/widget-instance-utils.d.ts +33 -0
- package/components/data/list/utils/widget-instance-utils.js +83 -0
- package/components/data/live-filter/index.d.ts +15 -0
- package/components/data/live-filter/index.js +304 -0
- package/components/data/live-filter/props.d.ts +96 -0
- package/components/data/live-filter/props.js +16 -0
- package/components/data/live-form/index.d.ts +15 -0
- package/components/data/live-form/index.js +143 -0
- package/components/data/live-form/props.d.ts +50 -0
- package/components/data/live-form/props.js +20 -0
- package/components/data/pagination/components/BasicPagination.d.ts +3 -0
- package/components/data/pagination/components/BasicPagination.js +133 -0
- package/components/data/pagination/components/ClassicPagination.d.ts +3 -0
- package/components/data/pagination/components/ClassicPagination.js +191 -0
- package/components/data/pagination/components/InlinePagination.d.ts +11 -0
- package/components/data/pagination/components/InlinePagination.js +99 -0
- package/components/data/pagination/components/LoadingComponent.d.ts +3 -0
- package/components/data/pagination/components/LoadingComponent.js +31 -0
- package/components/data/pagination/components/PageSizeSelector.d.ts +3 -0
- package/components/data/pagination/components/PageSizeSelector.js +188 -0
- package/components/data/pagination/components/PagerNavigation.d.ts +3 -0
- package/components/data/pagination/components/PagerNavigation.js +105 -0
- package/components/data/pagination/components/TotalRecords.d.ts +3 -0
- package/components/data/pagination/components/TotalRecords.js +48 -0
- package/components/data/pagination/components/index.d.ts +6 -0
- package/components/data/pagination/components/index.js +47 -0
- package/components/data/pagination/components/props.d.ts +54 -0
- package/components/data/pagination/components/props.js +5 -0
- package/components/data/pagination/hooks/index.d.ts +2 -0
- package/components/data/pagination/hooks/index.js +19 -0
- package/components/data/pagination/hooks/props.d.ts +232 -0
- package/components/data/pagination/hooks/props.js +5 -0
- package/components/data/pagination/hooks/useNavigationSize.d.ts +5 -0
- package/components/data/pagination/hooks/useNavigationSize.js +44 -0
- package/components/data/pagination/hooks/usePagination.d.ts +35 -0
- package/components/data/pagination/hooks/usePagination.js +1095 -0
- package/components/data/pagination/index.d.ts +13 -0
- package/components/data/pagination/index.js +454 -0
- package/components/data/table/components/AddNewRow.d.ts +3 -0
- package/components/data/table/components/AddNewRow.js +194 -0
- package/components/data/table/components/EditableCell.d.ts +4 -0
- package/components/data/table/components/EditableCell.js +92 -0
- package/components/data/table/components/FieldValidationError.d.ts +4 -0
- package/components/data/table/components/FieldValidationError.js +24 -0
- package/components/data/table/components/RowCells.d.ts +29 -0
- package/components/data/table/components/RowCells.js +81 -0
- package/components/data/table/components/RowExpansionButton.d.ts +4 -0
- package/components/data/table/components/RowExpansionButton.js +74 -0
- package/components/data/table/components/SummaryCell.d.ts +3 -0
- package/components/data/table/components/SummaryCell.js +111 -0
- package/components/data/table/components/SummaryRow.d.ts +3 -0
- package/components/data/table/components/SummaryRow.js +54 -0
- package/components/data/table/components/SummaryRowFooter.d.ts +3 -0
- package/components/data/table/components/SummaryRowFooter.js +46 -0
- package/components/data/table/components/TableBody.d.ts +3 -0
- package/components/data/table/components/TableBody.js +278 -0
- package/components/data/table/components/TableDataRow.d.ts +27 -0
- package/components/data/table/components/TableDataRow.js +119 -0
- package/components/data/table/components/TableFilters.d.ts +24 -0
- package/components/data/table/components/TableFilters.js +429 -0
- package/components/data/table/components/TableFooterActions.d.ts +3 -0
- package/components/data/table/components/TableFooterActions.js +48 -0
- package/components/data/table/components/TableHeader.d.ts +3 -0
- package/components/data/table/components/TableHeader.js +450 -0
- package/components/data/table/components/TablePanelHeading.d.ts +3 -0
- package/components/data/table/components/TablePanelHeading.js +202 -0
- package/components/data/table/components/index.d.ts +12 -0
- package/components/data/table/components/index.js +95 -0
- package/components/data/table/hooks/index.d.ts +19 -0
- package/components/data/table/hooks/index.js +231 -0
- package/components/data/table/hooks/use-edited-rows.d.ts +16 -0
- package/components/data/table/hooks/use-edited-rows.js +141 -0
- package/components/data/table/hooks/useCellState.d.ts +10 -0
- package/components/data/table/hooks/useCellState.js +110 -0
- package/components/data/table/hooks/useCustomExpressionColumns.d.ts +16 -0
- package/components/data/table/hooks/useCustomExpressionColumns.js +88 -0
- package/components/data/table/hooks/useDynamicColumns.d.ts +34 -0
- package/components/data/table/hooks/useDynamicColumns.js +105 -0
- package/components/data/table/hooks/useEditingState.d.ts +5 -0
- package/components/data/table/hooks/useEditingState.js +47 -0
- package/components/data/table/hooks/useFormWidget.d.ts +2 -0
- package/components/data/table/hooks/useFormWidget.js +190 -0
- package/components/data/table/hooks/usePaginationState.d.ts +6 -0
- package/components/data/table/hooks/usePaginationState.js +81 -0
- package/components/data/table/hooks/usePanelStructure.d.ts +2 -0
- package/components/data/table/hooks/usePanelStructure.js +43 -0
- package/components/data/table/hooks/useResponsiveColumns.d.ts +84 -0
- package/components/data/table/hooks/useResponsiveColumns.js +34 -0
- package/components/data/table/hooks/useRowExpansion.d.ts +5 -0
- package/components/data/table/hooks/useRowExpansion.js +140 -0
- package/components/data/table/hooks/useRowHandlers.d.ts +5 -0
- package/components/data/table/hooks/useRowHandlers.js +72 -0
- package/components/data/table/hooks/useRowSelection.d.ts +2 -0
- package/components/data/table/hooks/useRowSelection.js +428 -0
- package/components/data/table/hooks/useServerSideSorting.d.ts +26 -0
- package/components/data/table/hooks/useServerSideSorting.js +203 -0
- package/components/data/table/hooks/useTableColumns.d.ts +2 -0
- package/components/data/table/hooks/useTableColumns.js +360 -0
- package/components/data/table/hooks/useTableData.d.ts +2 -0
- package/components/data/table/hooks/useTableData.js +199 -0
- package/components/data/table/hooks/useTableEdit.d.ts +4 -0
- package/components/data/table/hooks/useTableEdit.js +651 -0
- package/components/data/table/hooks/useTableEffects.d.ts +25 -0
- package/components/data/table/hooks/useTableEffects.js +157 -0
- package/components/data/table/hooks/useTableFilter.d.ts +26 -0
- package/components/data/table/hooks/useTableFilter.js +389 -0
- package/components/data/table/hooks/useTableInitialization.d.ts +5 -0
- package/components/data/table/hooks/useTableInitialization.js +105 -0
- package/components/data/table/hooks/useTableState.d.ts +2 -0
- package/components/data/table/hooks/useTableState.js +75 -0
- package/components/data/table/hooks/useTableStateManager.d.ts +38 -0
- package/components/data/table/hooks/useTableStateManager.js +633 -0
- package/components/data/table/index.d.ts +287 -0
- package/components/data/table/index.js +1830 -0
- package/components/data/table/live-table/index.d.ts +75 -0
- package/components/data/table/live-table/index.js +283 -0
- package/components/data/table/props.d.ts +1368 -0
- package/components/data/table/props.js +5 -0
- package/components/data/table/table-action/index.d.ts +65 -0
- package/components/data/table/table-action/index.js +94 -0
- package/components/data/table/table-column/index.d.ts +65 -0
- package/components/data/table/table-column/index.js +44 -0
- package/components/data/table/table-group/index.d.ts +13 -0
- package/components/data/table/table-group/index.js +26 -0
- package/components/data/table/table-row/index.d.ts +65 -0
- package/components/data/table/table-row/index.js +58 -0
- package/components/data/table/table-row-action/index.d.ts +69 -0
- package/components/data/table/table-row-action/index.js +95 -0
- package/components/data/table/utils/buildSelectionColumns.d.ts +3 -0
- package/components/data/table/utils/buildSelectionColumns.js +161 -0
- package/components/data/table/utils/columnBuilder.d.ts +35 -0
- package/components/data/table/utils/columnBuilder.js +225 -0
- package/components/data/table/utils/columnProxy.d.ts +21 -0
- package/components/data/table/utils/columnProxy.js +117 -0
- package/components/data/table/utils/columnWidthDistribution.d.ts +22 -0
- package/components/data/table/utils/columnWidthDistribution.js +98 -0
- package/components/data/table/utils/constants.d.ts +52 -0
- package/components/data/table/utils/constants.js +84 -0
- package/components/data/table/utils/crud-handlers.d.ts +11 -0
- package/components/data/table/utils/crud-handlers.js +523 -0
- package/components/data/table/utils/dynamic-columns.d.ts +38 -0
- package/components/data/table/utils/dynamic-columns.js +222 -0
- package/components/data/table/utils/groupHeaderUtils.d.ts +18 -0
- package/components/data/table/utils/groupHeaderUtils.js +102 -0
- package/components/data/table/utils/index.d.ts +101 -0
- package/components/data/table/utils/index.js +849 -0
- package/components/data/table/utils/renderDisplayCell.d.ts +11 -0
- package/components/data/table/utils/renderDisplayCell.js +183 -0
- package/components/data/table/utils/script-page-size-broadcast.d.ts +2 -0
- package/components/data/table/utils/script-page-size-broadcast.js +45 -0
- package/components/data/table/utils/selectionUtils.d.ts +37 -0
- package/components/data/table/utils/selectionUtils.js +165 -0
- package/components/data/table/utils/table-helpers.d.ts +62 -0
- package/components/data/table/utils/table-helpers.js +100 -0
- package/components/data/table/utils/validation.d.ts +13 -0
- package/components/data/table/utils/validation.js +125 -0
- package/components/data/types.d.ts +104 -0
- package/components/data/types.js +113 -0
- package/components/data/utils/field-data-utils.d.ts +7 -0
- package/components/data/utils/field-data-utils.js +66 -0
- package/components/data/utils/filter-field-util.d.ts +13 -0
- package/components/data/utils/filter-field-util.js +81 -0
- package/components/data/utils/index.d.ts +90 -0
- package/components/data/utils/index.js +216 -0
- package/components/dialogs/alert-dialog/index.d.ts +158 -0
- package/components/dialogs/alert-dialog/index.js +90 -0
- package/components/dialogs/alert-dialog/props.d.ts +43 -0
- package/components/dialogs/alert-dialog/props.js +5 -0
- package/components/dialogs/confirm-dialog/index.d.ts +160 -0
- package/components/dialogs/confirm-dialog/index.js +115 -0
- package/components/dialogs/confirm-dialog/props.d.ts +47 -0
- package/components/dialogs/confirm-dialog/props.js +5 -0
- package/components/dialogs/dialog/index.d.ts +170 -0
- package/components/dialogs/dialog/index.js +73 -0
- package/components/dialogs/dialog/props.d.ts +66 -0
- package/components/dialogs/dialog/props.js +5 -0
- package/components/dialogs/dialog-actions/index.d.ts +67 -0
- package/components/dialogs/dialog-actions/index.js +28 -0
- package/components/dialogs/dialog-actions/props.d.ts +14 -0
- package/components/dialogs/dialog-actions/props.js +5 -0
- package/components/dialogs/dialog-body/index.d.ts +66 -0
- package/components/dialogs/dialog-body/index.js +32 -0
- package/components/dialogs/dialog-body/props.d.ts +15 -0
- package/components/dialogs/dialog-body/props.js +5 -0
- package/components/dialogs/dialog-content/index.d.ts +69 -0
- package/components/dialogs/dialog-content/index.js +43 -0
- package/components/dialogs/dialog-content/props.d.ts +27 -0
- package/components/dialogs/dialog-content/props.js +5 -0
- package/components/dialogs/dialog-header/index.d.ts +84 -0
- package/components/dialogs/dialog-header/index.js +104 -0
- package/components/dialogs/dialog-header/props.d.ts +73 -0
- package/components/dialogs/dialog-header/props.js +5 -0
- package/components/dialogs/iframe-dialog/index.d.ts +178 -0
- package/components/dialogs/iframe-dialog/index.js +131 -0
- package/components/dialogs/iframe-dialog/props.d.ts +83 -0
- package/components/dialogs/iframe-dialog/props.js +5 -0
- package/components/dialogs/index.d.ts +4 -0
- package/components/dialogs/index.js +139 -0
- package/components/dialogs/login-dialog/index.d.ts +163 -0
- package/components/dialogs/login-dialog/index.js +370 -0
- package/components/dialogs/login-dialog/props.d.ts +98 -0
- package/components/dialogs/login-dialog/props.js +5 -0
- package/components/dialogs/page-dialog/index.d.ts +162 -0
- package/components/dialogs/page-dialog/index.js +105 -0
- package/components/dialogs/page-dialog/props.d.ts +59 -0
- package/components/dialogs/page-dialog/props.js +5 -0
- package/components/dialogs/props.d.ts +41 -0
- package/components/dialogs/props.js +5 -0
- package/components/dialogs/withDialogWrapper.d.ts +59 -0
- package/components/dialogs/withDialogWrapper.js +124 -0
- package/components/form/button/index.d.ts +77 -0
- package/components/form/button/index.js +255 -0
- package/components/form/button/props.d.ts +71 -0
- package/components/form/button/props.js +5 -0
- package/components/form/button-group/index.d.ts +69 -0
- package/components/form/button-group/index.js +74 -0
- package/components/form/button-group/props.d.ts +24 -0
- package/components/form/button-group/props.js +5 -0
- package/components/input/calendar/index.d.ts +130 -0
- package/components/input/calendar/index.js +566 -0
- package/components/input/calendar/props.d.ts +105 -0
- package/components/input/calendar/props.js +5 -0
- package/components/input/calendar/utils.d.ts +51 -0
- package/components/input/calendar/utils.js +336 -0
- package/components/input/chips/SortableChip/index.d.ts +4 -0
- package/components/input/chips/SortableChip/index.js +115 -0
- package/components/input/chips/SortableChip/props.d.ts +16 -0
- package/components/input/chips/SortableChip/props.js +5 -0
- package/components/input/chips/index.d.ts +224 -0
- package/components/input/chips/index.js +583 -0
- package/components/input/chips/props.d.ts +232 -0
- package/components/input/chips/props.js +5 -0
- package/components/input/chips/utils.d.ts +22 -0
- package/components/input/chips/utils.js +292 -0
- package/components/input/color-picker/index.d.ts +151 -0
- package/components/input/color-picker/index.js +689 -0
- package/components/input/color-picker/props.d.ts +131 -0
- package/components/input/color-picker/props.js +5 -0
- package/components/input/composite/index.d.ts +69 -0
- package/components/input/composite/index.js +147 -0
- package/components/input/composite/props.d.ts +23 -0
- package/components/input/composite/props.js +5 -0
- package/components/input/currency/index.d.ts +175 -0
- package/components/input/currency/index.js +265 -0
- package/components/input/currency/props.d.ts +154 -0
- package/components/input/currency/props.js +5 -0
- package/components/input/default/checkbox/index.d.ts +150 -0
- package/components/input/default/checkbox/index.js +253 -0
- package/components/input/default/checkbox/props.d.ts +78 -0
- package/components/input/default/checkbox/props.js +5 -0
- package/components/input/default/checkboxset/index.d.ts +191 -0
- package/components/input/default/checkboxset/index.js +478 -0
- package/components/input/default/checkboxset/props.d.ts +199 -0
- package/components/input/default/checkboxset/props.js +5 -0
- package/components/input/default/checkboxset/utils.d.ts +2 -0
- package/components/input/default/checkboxset/utils.js +30 -0
- package/components/input/default/radioset/index.d.ts +182 -0
- package/components/input/default/radioset/index.js +364 -0
- package/components/input/default/radioset/props.d.ts +172 -0
- package/components/input/default/radioset/props.js +5 -0
- package/components/input/default/switch/index.d.ts +174 -0
- package/components/input/default/switch/index.js +519 -0
- package/components/input/default/switch/prop.d.ts +153 -0
- package/components/input/default/switch/prop.js +5 -0
- package/components/input/epoch/date/components/DatePickerPopover.d.ts +4 -0
- package/components/input/epoch/date/components/DatePickerPopover.js +218 -0
- package/components/input/epoch/date/index.d.ts +86 -0
- package/components/input/epoch/date/index.js +606 -0
- package/components/input/epoch/date/props.d.ts +274 -0
- package/components/input/epoch/date/props.js +5 -0
- package/components/input/epoch/date/styled.d.ts +3 -0
- package/components/input/epoch/date/styled.js +70 -0
- package/components/input/epoch/date/utils.d.ts +20 -0
- package/components/input/epoch/date/utils.js +201 -0
- package/components/input/epoch/datetime/index.d.ts +86 -0
- package/components/input/epoch/datetime/index.js +717 -0
- package/components/input/epoch/datetime/props.d.ts +212 -0
- package/components/input/epoch/datetime/props.js +5 -0
- package/components/input/epoch/datetime/utils.d.ts +20 -0
- package/components/input/epoch/datetime/utils.js +283 -0
- package/components/input/epoch/time/index.d.ts +86 -0
- package/components/input/epoch/time/index.js +478 -0
- package/components/input/epoch/time/props.d.ts +155 -0
- package/components/input/epoch/time/props.js +5 -0
- package/components/input/epoch/time/utils.d.ts +24 -0
- package/components/input/epoch/time/utils.js +240 -0
- package/components/input/fileupload/Utils.d.ts +14 -0
- package/components/input/fileupload/Utils.js +139 -0
- package/components/input/fileupload/components/ListItems.d.ts +11 -0
- package/components/input/fileupload/components/ListItems.js +135 -0
- package/components/input/fileupload/components/MultiUpload.d.ts +4 -0
- package/components/input/fileupload/components/MultiUpload.js +78 -0
- package/components/input/fileupload/components/SingleUpload.d.ts +4 -0
- package/components/input/fileupload/components/SingleUpload.js +58 -0
- package/components/input/fileupload/index.d.ts +92 -0
- package/components/input/fileupload/index.js +179 -0
- package/components/input/fileupload/props.d.ts +320 -0
- package/components/input/fileupload/props.js +5 -0
- package/components/input/fileupload/useFileUpload.d.ts +36 -0
- package/components/input/fileupload/useFileUpload.js +414 -0
- package/components/input/number/index.d.ts +164 -0
- package/components/input/number/index.js +406 -0
- package/components/input/number/props.d.ts +119 -0
- package/components/input/number/props.js +5 -0
- package/components/input/rating/index.d.ts +208 -0
- package/components/input/rating/index.js +461 -0
- package/components/input/rating/props.d.ts +195 -0
- package/components/input/rating/props.js +5 -0
- package/components/input/select/index.d.ts +173 -0
- package/components/input/select/index.js +492 -0
- package/components/input/select/props.d.ts +134 -0
- package/components/input/select/props.js +5 -0
- package/components/input/slider/index.d.ts +162 -0
- package/components/input/slider/index.js +337 -0
- package/components/input/slider/props.d.ts +101 -0
- package/components/input/slider/props.js +5 -0
- package/components/input/text/index.d.ts +177 -0
- package/components/input/text/index.js +499 -0
- package/components/input/text/props.d.ts +141 -0
- package/components/input/text/props.js +5 -0
- package/components/input/text/util.d.ts +42 -0
- package/components/input/text/util.js +334 -0
- package/components/input/textarea/index.d.ts +151 -0
- package/components/input/textarea/index.js +366 -0
- package/components/input/textarea/props.d.ts +85 -0
- package/components/input/textarea/props.js +5 -0
- package/components/input/upload/index.d.ts +142 -0
- package/components/input/upload/index.js +133 -0
- package/components/input/upload/props.d.ts +61 -0
- package/components/input/upload/props.js +5 -0
- package/components/input/util/index.d.ts +1 -0
- package/components/input/util/index.js +11 -0
- package/components/layout/footer/index.d.ts +15 -0
- package/components/layout/footer/index.js +37 -0
- package/components/layout/footer/props.d.ts +8 -0
- package/components/layout/footer/props.js +5 -0
- package/components/layout/header/index.d.ts +15 -0
- package/components/layout/header/index.js +40 -0
- package/components/layout/header/props.d.ts +8 -0
- package/components/layout/header/props.js +5 -0
- package/components/layout/leftnav/index.d.ts +15 -0
- package/components/layout/leftnav/index.js +54 -0
- package/components/layout/leftnav/props.d.ts +25 -0
- package/components/layout/leftnav/props.js +5 -0
- package/components/layout/rightnav/index.d.ts +15 -0
- package/components/layout/rightnav/index.js +38 -0
- package/components/layout/rightnav/props.d.ts +13 -0
- package/components/layout/rightnav/props.js +5 -0
- package/components/layout/topnav/index.d.ts +15 -0
- package/components/layout/topnav/index.js +40 -0
- package/components/layout/topnav/props.d.ts +8 -0
- package/components/layout/topnav/props.js +5 -0
- package/components/navbar/index.d.ts +70 -0
- package/components/navbar/index.js +101 -0
- package/components/navbar/nav/index.d.ts +90 -0
- package/components/navbar/nav/index.js +244 -0
- package/components/navbar/nav/props.d.ts +56 -0
- package/components/navbar/nav/props.js +5 -0
- package/components/navbar/nav-item/index.d.ts +63 -0
- package/components/navbar/nav-item/index.js +66 -0
- package/components/navbar/nav-item/props.d.ts +29 -0
- package/components/navbar/nav-item/props.js +5 -0
- package/components/navigation/breadcrumb/index.d.ts +66 -0
- package/components/navigation/breadcrumb/index.js +67 -0
- package/components/navigation/breadcrumb/props.d.ts +6 -0
- package/components/navigation/breadcrumb/props.js +5 -0
- package/components/navigation/menu/components/ListItems.d.ts +23 -0
- package/components/navigation/menu/components/ListItems.js +71 -0
- package/components/navigation/menu/constants.d.ts +53 -0
- package/components/navigation/menu/constants.js +102 -0
- package/components/navigation/menu/hooks/useHoverState.hook.d.ts +17 -0
- package/components/navigation/menu/hooks/useHoverState.hook.js +48 -0
- package/components/navigation/menu/hooks/useKeyboardMovements.hook.d.ts +12 -0
- package/components/navigation/menu/hooks/useKeyboardMovements.hook.js +37 -0
- package/components/navigation/menu/hooks/useTransformedDataset.hook.d.ts +5 -0
- package/components/navigation/menu/hooks/useTransformedDataset.hook.js +15 -0
- package/components/navigation/menu/index.d.ts +105 -0
- package/components/navigation/menu/index.js +1031 -0
- package/components/navigation/menu/props.d.ts +74 -0
- package/components/navigation/menu/props.js +5 -0
- package/components/navigation/menu/utils/action-task.d.ts +1 -0
- package/components/navigation/menu/utils/action-task.js +14 -0
- package/components/navigation/menu/utils/role-filter.d.ts +9 -0
- package/components/navigation/menu/utils/role-filter.js +76 -0
- package/components/navigation/popover/index.d.ts +97 -0
- package/components/navigation/popover/index.js +310 -0
- package/components/navigation/popover/props.d.ts +28 -0
- package/components/navigation/popover/props.js +13 -0
- package/components/page/content/index.d.ts +15 -0
- package/components/page/content/index.js +35 -0
- package/components/page/content/props.d.ts +6 -0
- package/components/page/content/props.js +5 -0
- package/components/page/error-boundary/index.d.ts +13 -0
- package/components/page/error-boundary/index.js +119 -0
- package/components/page/error-boundary/props.d.ts +30 -0
- package/components/page/error-boundary/props.js +5 -0
- package/components/page/index.d.ts +15 -0
- package/components/page/index.js +151 -0
- package/components/page/page-content/index.d.ts +15 -0
- package/components/page/page-content/index.js +34 -0
- package/components/page/page-content/props.d.ts +16 -0
- package/components/page/page-content/props.js +5 -0
- package/components/page/partial/index.d.ts +61 -0
- package/components/page/partial/index.js +46 -0
- package/components/page/partial/props.d.ts +6 -0
- package/components/page/partial/props.js +5 -0
- package/components/page/partial-container/index.d.ts +13 -0
- package/components/page/partial-container/index.js +112 -0
- package/components/page/partial-container/props.d.ts +38 -0
- package/components/page/partial-container/props.js +5 -0
- package/components/page/props.d.ts +33 -0
- package/components/page/props.js +5 -0
- package/components/page/toast-container/index.d.ts +13 -0
- package/components/page/toast-container/index.js +43 -0
- package/components/page/toast-container/props.d.ts +8 -0
- package/components/page/toast-container/props.js +5 -0
- package/components/prefab/container/index.d.ts +12 -0
- package/components/prefab/container/index.js +64 -0
- package/components/prefab/container/props.d.ts +23 -0
- package/components/prefab/container/props.js +5 -0
- package/components/prefab/index.d.ts +12 -0
- package/components/prefab/index.js +69 -0
- package/components/prefab/props.d.ts +18 -0
- package/components/prefab/props.js +5 -0
- package/context/AppContext.d.ts +9 -0
- package/context/AppContext.js +25 -0
- package/context/AppSpinnerProvider.d.ts +15 -0
- package/context/AppSpinnerProvider.js +43 -0
- package/context/LayoutProvider.d.ts +7 -0
- package/context/LayoutProvider.js +66 -0
- package/context/LocalizationProvider.d.ts +4 -0
- package/context/LocalizationProvider.js +80 -0
- package/context/PrefabContext.d.ts +15 -0
- package/context/PrefabContext.js +195 -0
- package/context/WidgetProvider.d.ts +19 -0
- package/context/WidgetProvider.js +274 -0
- package/core/app-config.js +1 -0
- package/core/app.service.d.ts +19 -0
- package/core/app.service.js +366 -0
- package/core/appVariablesStore.d.ts +5 -0
- package/core/appVariablesStore.js +23 -0
- package/core/appstore.d.ts +35 -0
- package/core/appstore.js +88 -0
- package/core/constants/currency-constant.d.ts +11 -0
- package/core/constants/currency-constant.js +1071 -0
- package/core/constants/events.d.ts +24 -0
- package/core/constants/events.js +63 -0
- package/core/constants/index.d.ts +10 -0
- package/core/constants/index.js +49 -0
- package/core/dialog.service.d.ts +31 -0
- package/core/dialog.service.js +75 -0
- package/core/event-notifier.d.ts +20 -0
- package/core/event-notifier.js +150 -0
- package/core/formatter/array-formatters.d.ts +4 -0
- package/core/formatter/array-formatters.js +33 -0
- package/core/formatter/date-formatters.d.ts +9 -0
- package/core/formatter/date-formatters.js +245 -0
- package/core/formatter/index.d.ts +19 -0
- package/core/formatter/index.js +133 -0
- package/core/formatter/number-formatters.d.ts +20 -0
- package/core/formatter/number-formatters.js +181 -0
- package/core/formatter/security-formatters.d.ts +25 -0
- package/core/formatter/security-formatters.js +321 -0
- package/core/formatter/string-formatters.d.ts +10 -0
- package/core/formatter/string-formatters.js +49 -0
- package/core/formatter/types.d.ts +33 -0
- package/core/formatter/types.js +18 -0
- package/core/formatters.d.ts +3 -0
- package/core/formatters.js +24 -0
- package/core/proxy-service.d.ts +6 -0
- package/core/proxy-service.js +571 -0
- package/core/script-registry.d.ts +23 -0
- package/core/script-registry.js +149 -0
- package/core/security.service.d.ts +12 -0
- package/core/security.service.js +11 -0
- package/core/util/compare.d.ts +1 -0
- package/core/util/compare.js +36 -0
- package/core/util/dom.d.ts +4 -0
- package/core/util/dom.js +107 -0
- package/core/util/index.d.ts +65 -0
- package/core/util/index.js +191 -0
- package/core/util/safe-is-equal.js +156 -0
- package/core/util/security.d.ts +64 -0
- package/core/util/security.js +183 -0
- package/core/util/utils.d.ts +34 -0
- package/core/util/utils.js +228 -0
- package/core/widget-observer.d.ts +3 -0
- package/core/widget-observer.js +98 -0
- package/higherOrder/BaseApp.d.ts +13 -0
- package/higherOrder/BaseApp.js +614 -0
- package/higherOrder/BaseAppProps.d.ts +37 -0
- package/higherOrder/BaseAppProps.js +5 -0
- package/higherOrder/BaseDateTime.d.ts +62 -0
- package/higherOrder/BaseDateTime.js +268 -0
- package/higherOrder/BasePage.d.ts +10 -0
- package/higherOrder/BasePage.js +909 -0
- package/higherOrder/BasePartial.d.ts +7 -0
- package/higherOrder/BasePartial.js +125 -0
- package/higherOrder/BasePrefab.d.ts +17 -0
- package/higherOrder/BasePrefab.js +234 -0
- package/higherOrder/DataNav.d.ts +53 -0
- package/higherOrder/DataNav.js +461 -0
- package/higherOrder/helper.d.ts +32 -0
- package/higherOrder/helper.js +81 -0
- package/higherOrder/props.d.ts +116 -0
- package/higherOrder/props.js +5 -0
- package/higherOrder/withBaseWrapper.d.ts +5 -0
- package/higherOrder/withBaseWrapper.js +218 -0
- package/higherOrder/withStandalone.d.ts +11 -0
- package/higherOrder/withStandalone.js +29 -0
- package/hooks/useAccess.d.ts +18 -0
- package/hooks/useAccess.js +321 -0
- package/hooks/useAppConfig.d.ts +3 -0
- package/hooks/useAppConfig.js +42 -0
- package/hooks/useAuth.d.ts +55 -0
- package/hooks/useAuth.js +568 -0
- package/hooks/useDataSourceSubscription.d.ts +15 -0
- package/hooks/useDataSourceSubscription.js +125 -0
- package/hooks/useDebounce.d.ts +21 -0
- package/hooks/useDebounce.js +76 -0
- package/hooks/useDeviceVisibility.d.ts +4 -0
- package/hooks/useDeviceVisibility.js +49 -0
- package/hooks/useHttp.d.ts +57 -0
- package/hooks/useHttp.js +531 -0
- package/libs/index.js +13 -0
- package/libs/prefab/index.js +20 -0
- package/mui-config/theme-provider.d.ts +3 -0
- package/mui-config/theme-provider.js +17 -0
- package/mui-config/theme.d.ts +2 -0
- package/mui-config/theme.js +364 -0
- package/package-lock.json +16455 -0
- package/package.json +135 -0
- package/providers/AppProviders.js +27 -0
- package/runtime-dynamic/App.d.ts +7 -0
- package/runtime-dynamic/App.js +144 -0
- package/runtime-dynamic/app-initializer.d.ts +15 -0
- package/runtime-dynamic/app-initializer.js +447 -0
- package/runtime-dynamic/components/ErrorBoundary.d.ts +18 -0
- package/runtime-dynamic/components/ErrorBoundary.js +93 -0
- package/runtime-dynamic/components/PageWrapper.d.ts +1 -0
- package/runtime-dynamic/components/PageWrapper.js +43 -0
- package/runtime-dynamic/components/PrefabPreview.d.ts +1 -0
- package/runtime-dynamic/components/PrefabPreview.js +84 -0
- package/runtime-dynamic/components/partial-content.d.ts +15 -0
- package/runtime-dynamic/components/partial-content.js +50 -0
- package/runtime-dynamic/components/prefab-content.d.ts +10 -0
- package/runtime-dynamic/components/prefab-content.js +31 -0
- package/runtime-dynamic/components/use-dynamic-component.d.ts +10 -0
- package/runtime-dynamic/components/use-dynamic-component.js +165 -0
- package/runtime-dynamic/factories/build-base-page-like-component.d.ts +8 -0
- package/runtime-dynamic/factories/build-base-page-like-component.js +59 -0
- package/runtime-dynamic/factories/prefab-factory.d.ts +3 -0
- package/runtime-dynamic/factories/prefab-factory.js +82 -0
- package/runtime-dynamic/factories/startup-info.d.ts +6 -0
- package/runtime-dynamic/factories/startup-info.js +28 -0
- package/runtime-dynamic/factories/utils.d.ts +23 -0
- package/runtime-dynamic/factories/utils.js +131 -0
- package/runtime-dynamic/index.d.ts +14 -0
- package/runtime-dynamic/index.js +191 -0
- package/runtime-dynamic/main.d.ts +2 -0
- package/runtime-dynamic/main.js +84 -0
- package/runtime-dynamic/preview-mode.d.ts +15 -0
- package/runtime-dynamic/preview-mode.js +31 -0
- package/runtime-dynamic/preview-navigation.d.ts +6 -0
- package/runtime-dynamic/preview-navigation.js +38 -0
- package/runtime-dynamic/preview-resource-base.d.ts +12 -0
- package/runtime-dynamic/preview-resource-base.js +65 -0
- package/runtime-dynamic/registry/component-registry.d.ts +3 -0
- package/runtime-dynamic/registry/component-registry.js +353 -0
- package/runtime-dynamic/registry/custom-widget-registry.d.ts +7 -0
- package/runtime-dynamic/registry/custom-widget-registry.js +18 -0
- package/runtime-dynamic/registry/index.d.ts +2 -0
- package/runtime-dynamic/registry/index.js +63 -0
- package/runtime-dynamic/registry/store.d.ts +9 -0
- package/runtime-dynamic/registry/store.js +26 -0
- package/runtime-dynamic/routes.d.ts +2 -0
- package/runtime-dynamic/routes.js +107 -0
- package/runtime-dynamic/services/app-extension-provider.d.ts +1 -0
- package/runtime-dynamic/services/app-extension-provider.js +45 -0
- package/runtime-dynamic/services/cache.d.ts +29 -0
- package/runtime-dynamic/services/cache.js +57 -0
- package/runtime-dynamic/services/component-ref-provider.d.ts +12 -0
- package/runtime-dynamic/services/component-ref-provider.js +149 -0
- package/runtime-dynamic/services/css-scoping.d.ts +2 -0
- package/runtime-dynamic/services/css-scoping.js +53 -0
- package/runtime-dynamic/services/fragment-url.d.ts +16 -0
- package/runtime-dynamic/services/fragment-url.js +74 -0
- package/runtime-dynamic/services/index.d.ts +10 -0
- package/runtime-dynamic/services/index.js +152 -0
- package/runtime-dynamic/services/markup-transpiler.d.ts +12 -0
- package/runtime-dynamic/services/markup-transpiler.js +250 -0
- package/runtime-dynamic/services/prefab-resources.d.ts +18 -0
- package/runtime-dynamic/services/prefab-resources.js +159 -0
- package/runtime-dynamic/services/resource-manager.d.ts +2 -0
- package/runtime-dynamic/services/resource-manager.js +66 -0
- package/runtime-dynamic/services/script-executor.d.ts +8 -0
- package/runtime-dynamic/services/script-executor.js +90 -0
- package/runtime-dynamic/services/variable-factory.d.ts +2 -0
- package/runtime-dynamic/services/variable-factory.js +260 -0
- package/runtime-dynamic/services/variable-registry.d.ts +12 -0
- package/runtime-dynamic/services/variable-registry.js +118 -0
- package/runtime-dynamic/services/variable-transpiler.d.ts +5 -0
- package/runtime-dynamic/services/variable-transpiler.js +159 -0
- package/runtime-dynamic/shims/next-image.d.ts +35 -0
- package/runtime-dynamic/shims/next-image.js +60 -0
- package/runtime-dynamic/shims/next-link.d.ts +25 -0
- package/runtime-dynamic/shims/next-link.js +33 -0
- package/runtime-dynamic/shims/next-navigation.d.ts +16 -0
- package/runtime-dynamic/shims/next-navigation.js +52 -0
- package/runtime-dynamic/utils/index.d.ts +9 -0
- package/runtime-dynamic/utils/index.js +40 -0
- package/store/bindActions/i18nActions.d.ts +7 -0
- package/store/bindActions/i18nActions.js +18 -0
- package/store/index.d.ts +18 -0
- package/store/index.js +40 -0
- package/store/middleware/navigationMiddleware.d.ts +10 -0
- package/store/middleware/navigationMiddleware.js +48 -0
- package/store/middleware/pendingTabNavigationIntentMiddleware.d.ts +6 -0
- package/store/middleware/pendingTabNavigationIntentMiddleware.js +25 -0
- package/store/slices/appConfigSlice.d.ts +21 -0
- package/store/slices/appConfigSlice.js +105 -0
- package/store/slices/authSlice.d.ts +54 -0
- package/store/slices/authSlice.js +526 -0
- package/store/slices/i18nSlice.d.ts +25 -0
- package/store/slices/i18nSlice.js +206 -0
- package/store/slices/navigationSlice.d.ts +7 -0
- package/store/slices/navigationSlice.js +35 -0
- package/store/viewport.service.d.ts +45 -0
- package/store/viewport.service.js +255 -0
- package/tsconfig.declaration.tsbuildinfo +1 -0
- package/types/global.d.js +3 -0
- package/types/index.d.ts +64 -0
- package/types/index.js +15 -0
- package/utils/attr.d.ts +1 -0
- package/utils/attr.js +92 -0
- package/utils/custom-expression/index.d.ts +43 -0
- package/utils/custom-expression/index.js +161 -0
- package/utils/custom-expression/parser.d.ts +15 -0
- package/utils/custom-expression/parser.js +208 -0
- package/utils/dataset-util.d.ts +31 -0
- package/utils/dataset-util.js +173 -0
- package/utils/eval-expression.js +32 -0
- package/utils/form-state.util.d.ts +62 -0
- package/utils/form-state.util.js +167 -0
- package/utils/form-utils.d.ts +84 -0
- package/utils/form-utils.js +232 -0
- package/utils/format-util.d.ts +25 -0
- package/utils/format-util.js +300 -0
- package/utils/layoutsize-util.d.ts +1 -0
- package/utils/layoutsize-util.js +57 -0
- package/utils/lib-error-skipper.d.ts +11 -0
- package/utils/lib-error-skipper.js +75 -0
- package/utils/page-params-util.d.ts +20 -0
- package/utils/page-params-util.js +56 -0
- package/utils/pending-tab-navigation-intent.d.ts +4 -0
- package/utils/pending-tab-navigation-intent.js +25 -0
- package/utils/resource-url.d.ts +1 -0
- package/utils/resource-url.js +27 -0
- package/utils/state-persistance.d.ts +27 -0
- package/utils/state-persistance.js +411 -0
- package/utils/style-utils.d.ts +28 -0
- package/utils/style-utils.js +92 -0
- package/utils/transformedDataset-utils.d.ts +67 -0
- package/utils/transformedDataset-utils.js +645 -0
- package/utils/widget-cleanup-util.d.ts +32 -0
- package/utils/widget-cleanup-util.js +109 -0
- package/utils/widgets.d.ts +3 -0
- package/utils/widgets.js +97 -0
- package/variables/base-variable.d.ts +61 -0
- package/variables/base-variable.js +180 -0
- package/variables/constants.d.ts +21 -0
- package/variables/constants.js +27 -0
- package/variables/crud-variable.d.ts +39 -0
- package/variables/crud-variable.js +227 -0
- package/variables/live-variable.d.ts +58 -0
- package/variables/live-variable.js +226 -0
- package/variables/metadata.service.d.ts +24 -0
- package/variables/metadata.service.js +122 -0
- package/variables/model-variable.d.ts +12 -0
- package/variables/model-variable.js +86 -0
- package/variables/service-variable.d.ts +41 -0
- package/variables/service-variable.js +356 -0
- package/wm-namespace.d.ts +11 -0
- package/wm-namespace.js +14 -0
|
@@ -0,0 +1,1368 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction, RefObject, CSSProperties, ReactElement, ReactNode, MouseEvent } from "react";
|
|
2
|
+
import { BaseProps, Prettify } from "@wavemaker-ai/react-runtime/higherOrder/props";
|
|
3
|
+
import { ButtonProps } from "@mui/material";
|
|
4
|
+
import { ColumnDef, Table } from "@tanstack/react-table";
|
|
5
|
+
import { IAlignment, INavigation } from "../list/props";
|
|
6
|
+
import { EditWidgetType } from "./utils";
|
|
7
|
+
import { StorageType } from "../../../utils/state-persistance";
|
|
8
|
+
import { LiveVariableConfig } from "@wavemaker-ai/react-runtime/variables/live-variable";
|
|
9
|
+
export type TableEditMode = "inline" | "dialog" | "form" | "quickedit" | "none";
|
|
10
|
+
export type TableActionPosition = "header" | "footer";
|
|
11
|
+
export type TableFormPosition = "top" | "bottom";
|
|
12
|
+
export type TablePanelSpacing = "normal" | "condensed";
|
|
13
|
+
export type ToastType = "Success" | "Error" | "Info" | "Warning";
|
|
14
|
+
export type TableFilterMode = "multicolumn" | "search";
|
|
15
|
+
/**
|
|
16
|
+
* Props for the Table component.
|
|
17
|
+
*/
|
|
18
|
+
export interface TableProps {
|
|
19
|
+
/**
|
|
20
|
+
* Mode for editing table data.
|
|
21
|
+
* @default "none"
|
|
22
|
+
*/
|
|
23
|
+
editmode?: TableEditMode;
|
|
24
|
+
/**
|
|
25
|
+
* Storage type for persisting table state.
|
|
26
|
+
*/
|
|
27
|
+
statehandler?: StorageType;
|
|
28
|
+
/**
|
|
29
|
+
* Whether to show the row index column.
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
showrowindex?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Whether to show the table header.
|
|
35
|
+
* @default true
|
|
36
|
+
*/
|
|
37
|
+
showheader?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Whether to enable sorting on columns.
|
|
40
|
+
* @default true
|
|
41
|
+
*/
|
|
42
|
+
enablesort?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* When true, clicking column header selects/deselects the column instead of sorting.
|
|
45
|
+
* @default false
|
|
46
|
+
*/
|
|
47
|
+
enablecolumnselection?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Whether to show navigation controls.
|
|
50
|
+
* @default true
|
|
51
|
+
*/
|
|
52
|
+
shownavigation?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Whether to show the total record count.
|
|
55
|
+
* @default false
|
|
56
|
+
*/
|
|
57
|
+
showrecordcount?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Whether to enable radio button selection.
|
|
60
|
+
* @default false
|
|
61
|
+
*/
|
|
62
|
+
radioselect?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Title for the radio selection column.
|
|
65
|
+
*/
|
|
66
|
+
radioselecttitle?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Accessible label for the radio selection column.
|
|
69
|
+
*/
|
|
70
|
+
radioselectarialabel?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Whether to enable multi-selection using checkboxes.
|
|
73
|
+
* @default false
|
|
74
|
+
*/
|
|
75
|
+
multiselect?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Title for the multi-selection column.
|
|
78
|
+
*/
|
|
79
|
+
multiselecttitle?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Accessible label for the multi-selection column.
|
|
82
|
+
*/
|
|
83
|
+
multiselectarialabel?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Whether to select the first row by default.
|
|
86
|
+
* @default false
|
|
87
|
+
*/
|
|
88
|
+
gridfirstrowselect?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* When true (default), clicking anywhere on row selects it. When false, only radio/checkbox column click selects.
|
|
91
|
+
* @default true
|
|
92
|
+
*/
|
|
93
|
+
isrowselectable?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Whether row expansion is enabled.
|
|
96
|
+
* @default false
|
|
97
|
+
*/
|
|
98
|
+
isrowexpansionenabled?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Position of the form when editing.
|
|
101
|
+
*/
|
|
102
|
+
formposition?: TableFormPosition;
|
|
103
|
+
/**
|
|
104
|
+
* CSS class to apply to rows.
|
|
105
|
+
*/
|
|
106
|
+
rowClass?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Spacing between table panels.
|
|
109
|
+
* @default "normal"
|
|
110
|
+
*/
|
|
111
|
+
spacing?: TablePanelSpacing;
|
|
112
|
+
/**
|
|
113
|
+
* Title of the table.
|
|
114
|
+
*/
|
|
115
|
+
title?: string;
|
|
116
|
+
/**
|
|
117
|
+
* Subheading text for the table.
|
|
118
|
+
*/
|
|
119
|
+
subheading?: string;
|
|
120
|
+
/**
|
|
121
|
+
* CSS class for the table icon.
|
|
122
|
+
*/
|
|
123
|
+
iconclass?: string;
|
|
124
|
+
/**
|
|
125
|
+
* The collection of data items to display in the table.
|
|
126
|
+
*/
|
|
127
|
+
dataset?: any[];
|
|
128
|
+
/**
|
|
129
|
+
* The type of navigation to use.
|
|
130
|
+
*/
|
|
131
|
+
navigation?: INavigation;
|
|
132
|
+
/**
|
|
133
|
+
* Whether the table is dynamic.
|
|
134
|
+
*/
|
|
135
|
+
isdynamictable?: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* Reference key for the table.
|
|
138
|
+
*/
|
|
139
|
+
table_reference?: string;
|
|
140
|
+
/**
|
|
141
|
+
* Name of the form associated with the table.
|
|
142
|
+
*/
|
|
143
|
+
formName?: string;
|
|
144
|
+
/**
|
|
145
|
+
* Name of the parent form.
|
|
146
|
+
*/
|
|
147
|
+
parentForm?: string;
|
|
148
|
+
/**
|
|
149
|
+
* Number of items per page.
|
|
150
|
+
* @default 10
|
|
151
|
+
*/
|
|
152
|
+
pagesize?: number;
|
|
153
|
+
/**
|
|
154
|
+
* Alignment of navigation controls.
|
|
155
|
+
*/
|
|
156
|
+
navigationalign?: IAlignment;
|
|
157
|
+
/**
|
|
158
|
+
* Maximum number of page links to show.
|
|
159
|
+
*/
|
|
160
|
+
maxsize?: number;
|
|
161
|
+
/**
|
|
162
|
+
* Whether to show first/last page links.
|
|
163
|
+
*/
|
|
164
|
+
boundarylinks?: boolean;
|
|
165
|
+
/**
|
|
166
|
+
* Whether to allow changing the page size.
|
|
167
|
+
*/
|
|
168
|
+
allowpagesizechange?: boolean;
|
|
169
|
+
/**
|
|
170
|
+
* Available options for page size.
|
|
171
|
+
*/
|
|
172
|
+
pagesizeoptions?: string;
|
|
173
|
+
/**
|
|
174
|
+
* Whether to load data on demand.
|
|
175
|
+
*/
|
|
176
|
+
onDemandLoad?: boolean;
|
|
177
|
+
/**
|
|
178
|
+
* Mode for filtering table data.
|
|
179
|
+
*/
|
|
180
|
+
filtermode?: TableFilterMode;
|
|
181
|
+
/**
|
|
182
|
+
* Label for the search box.
|
|
183
|
+
*/
|
|
184
|
+
searchlabel?: string;
|
|
185
|
+
/**
|
|
186
|
+
* Whether to filter data on every key press in the search box.
|
|
187
|
+
*/
|
|
188
|
+
filteronkeypress?: boolean;
|
|
189
|
+
/**
|
|
190
|
+
* Available formats for exporting data.
|
|
191
|
+
*/
|
|
192
|
+
exportformat?: any[];
|
|
193
|
+
/**
|
|
194
|
+
* Options for exporting data.
|
|
195
|
+
*/
|
|
196
|
+
exportOptions?: any[];
|
|
197
|
+
/**
|
|
198
|
+
* Maximum dataset size for export.
|
|
199
|
+
*/
|
|
200
|
+
exportdatasize?: number;
|
|
201
|
+
/**
|
|
202
|
+
* Callback fired before exporting data.
|
|
203
|
+
*/
|
|
204
|
+
onBeforeexport?: (data: any) => boolean | void;
|
|
205
|
+
/**
|
|
206
|
+
* Callback fired after exporting data.
|
|
207
|
+
*/
|
|
208
|
+
onAfterexport?: (data: any) => void;
|
|
209
|
+
/**
|
|
210
|
+
* Message to confirm record deletion.
|
|
211
|
+
*/
|
|
212
|
+
confirmdelete?: string;
|
|
213
|
+
/**
|
|
214
|
+
* Text for the delete confirm button.
|
|
215
|
+
*/
|
|
216
|
+
deleteoktext?: string;
|
|
217
|
+
/**
|
|
218
|
+
* Text for the delete cancel button.
|
|
219
|
+
*/
|
|
220
|
+
deletecanceltext?: string;
|
|
221
|
+
/**
|
|
222
|
+
* Error message to display.
|
|
223
|
+
*/
|
|
224
|
+
errormessage?: string;
|
|
225
|
+
/**
|
|
226
|
+
* Message to display when no data is available.
|
|
227
|
+
*/
|
|
228
|
+
nodatamessage?: string;
|
|
229
|
+
/**
|
|
230
|
+
* Message to display while loading data.
|
|
231
|
+
*/
|
|
232
|
+
loadingdatamsg?: string;
|
|
233
|
+
/**
|
|
234
|
+
* Message to display after successful record insertion.
|
|
235
|
+
*/
|
|
236
|
+
insertmessage?: string;
|
|
237
|
+
/**
|
|
238
|
+
* Message to display after successful record update.
|
|
239
|
+
*/
|
|
240
|
+
updatemessage?: string;
|
|
241
|
+
/**
|
|
242
|
+
* Message to display after successful record deletion.
|
|
243
|
+
*/
|
|
244
|
+
deletemessage?: string;
|
|
245
|
+
/**
|
|
246
|
+
* Message for on-demand loading button.
|
|
247
|
+
*/
|
|
248
|
+
ondemandmessage?: string;
|
|
249
|
+
/**
|
|
250
|
+
* Message for view-less button.
|
|
251
|
+
*/
|
|
252
|
+
viewlessmessage?: string;
|
|
253
|
+
/**
|
|
254
|
+
* Whether to show the view-less button.
|
|
255
|
+
*/
|
|
256
|
+
showviewlessbutton?: boolean;
|
|
257
|
+
/**
|
|
258
|
+
* Callback fired when a row is deleted.
|
|
259
|
+
*/
|
|
260
|
+
onRowDelete?: (deletedRowData: any, deletedRowIndex: number, updatedDataset: any[]) => void;
|
|
261
|
+
/**
|
|
262
|
+
* Callback fired when a row is updated.
|
|
263
|
+
*/
|
|
264
|
+
onRowUpdate?: (updatedRowData: any, rowIndex: number, updatedDataset: any[]) => void;
|
|
265
|
+
/**
|
|
266
|
+
* Callback fired when a row is clicked.
|
|
267
|
+
*/
|
|
268
|
+
onRowclick?: (event: any, widget: any, row: any) => void;
|
|
269
|
+
/**
|
|
270
|
+
* Callback fired before data is rendered.
|
|
271
|
+
*/
|
|
272
|
+
onBeforedatarender?: (widget: any, data: any, columns: any) => void;
|
|
273
|
+
/**
|
|
274
|
+
* Callback fired after data is rendered.
|
|
275
|
+
*/
|
|
276
|
+
onDatarender?: (widget: any, data: any) => void;
|
|
277
|
+
/**
|
|
278
|
+
* Callback fired when a column is selected.
|
|
279
|
+
*/
|
|
280
|
+
onColumnselect?: (event: React.MouseEvent, data: {
|
|
281
|
+
field: string;
|
|
282
|
+
colDef: any;
|
|
283
|
+
data: any[];
|
|
284
|
+
}) => void;
|
|
285
|
+
/**
|
|
286
|
+
* Callback fired when a column is deselected.
|
|
287
|
+
*/
|
|
288
|
+
onColumndeselect?: (event: React.MouseEvent, data: {
|
|
289
|
+
field: string;
|
|
290
|
+
colDef: any;
|
|
291
|
+
data: any[];
|
|
292
|
+
}) => void;
|
|
293
|
+
/**
|
|
294
|
+
* Callback fired when data is sorted.
|
|
295
|
+
*/
|
|
296
|
+
onSort?: (event: any, widget: any, data: any) => void;
|
|
297
|
+
/**
|
|
298
|
+
* Callback fired before a row is deleted.
|
|
299
|
+
*/
|
|
300
|
+
onBeforerowdelete?: (event: any, widget: any, row: any, options: any) => void | boolean | Promise<void | boolean>;
|
|
301
|
+
/**
|
|
302
|
+
* Callback fired before filtering data.
|
|
303
|
+
*/
|
|
304
|
+
onBeforefilter?: (widget: any, filterFields: any) => void | boolean | Promise<void | boolean>;
|
|
305
|
+
/**
|
|
306
|
+
* Callback fired when a header is clicked.
|
|
307
|
+
*/
|
|
308
|
+
onHeaderclick?: (event: any, widget: any, column: any) => void;
|
|
309
|
+
/**
|
|
310
|
+
* Callback fired when a row is selected.
|
|
311
|
+
*/
|
|
312
|
+
onRowselect?: (event: any, widget: any, row: any) => void;
|
|
313
|
+
/**
|
|
314
|
+
* Callback fired when a row is deselected.
|
|
315
|
+
*/
|
|
316
|
+
onRowdeselect?: (event: any, widget: any, row: any) => void;
|
|
317
|
+
/**
|
|
318
|
+
* Callback fired when a record is set.
|
|
319
|
+
*/
|
|
320
|
+
onSetrecord?: (event: React.SyntheticEvent, widget: unknown, data: any, pageInfo: any) => void;
|
|
321
|
+
/**
|
|
322
|
+
* Children components (columns, actions, etc.).
|
|
323
|
+
*/
|
|
324
|
+
children: ReactNode;
|
|
325
|
+
/**
|
|
326
|
+
* Callback fired when a row is inserted.
|
|
327
|
+
*/
|
|
328
|
+
onRowinsert?: (event: any, widget: any, data: any) => void;
|
|
329
|
+
/**
|
|
330
|
+
* Callback fired when a row is updated.
|
|
331
|
+
*/
|
|
332
|
+
onRowupdate?: (event: any, widget: any, data: any) => void;
|
|
333
|
+
/**
|
|
334
|
+
* Callback fired when a row is deleted.
|
|
335
|
+
*/
|
|
336
|
+
onRowdelete?: (event: any, widget: any, row: any) => void;
|
|
337
|
+
/**
|
|
338
|
+
* Data source for the table.
|
|
339
|
+
*/
|
|
340
|
+
datasource?: LiveVariableConfig;
|
|
341
|
+
/**
|
|
342
|
+
* Binding path for the dataset.
|
|
343
|
+
*/
|
|
344
|
+
binddataset?: string;
|
|
345
|
+
/**
|
|
346
|
+
* Callback fired on successful operation.
|
|
347
|
+
*/
|
|
348
|
+
onSuccess?: (operation: string, data: any) => void;
|
|
349
|
+
/**
|
|
350
|
+
* Callback fired on operation error.
|
|
351
|
+
*/
|
|
352
|
+
onError?: (event: any, widget: any, data: any, operation: string) => void;
|
|
353
|
+
customExpressionColumns?: Record<string, (rowData: any) => ReactNode>;
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* Combined props for the WmTable component, including base WaveMaker props.
|
|
357
|
+
*/
|
|
358
|
+
export type WmTableProps = Prettify<TableProps & BaseProps>;
|
|
359
|
+
/**
|
|
360
|
+
* Props for the Table Column component.
|
|
361
|
+
*/
|
|
362
|
+
export interface TableColumnProps {
|
|
363
|
+
/**
|
|
364
|
+
* Reference to the parent listener.
|
|
365
|
+
*/
|
|
366
|
+
listener: any;
|
|
367
|
+
/**
|
|
368
|
+
* Data binding path for the column.
|
|
369
|
+
*/
|
|
370
|
+
binding: string;
|
|
371
|
+
/**
|
|
372
|
+
* Field name of the data source.
|
|
373
|
+
*/
|
|
374
|
+
field: string;
|
|
375
|
+
/**
|
|
376
|
+
* Visible caption for the column header.
|
|
377
|
+
*/
|
|
378
|
+
caption: string;
|
|
379
|
+
/**
|
|
380
|
+
* CSS class to apply to the column.
|
|
381
|
+
*/
|
|
382
|
+
colClass?: string;
|
|
383
|
+
/**
|
|
384
|
+
* Display name of the column.
|
|
385
|
+
*/
|
|
386
|
+
displayName?: string;
|
|
387
|
+
/**
|
|
388
|
+
* Default widget type to use for rendering the column.
|
|
389
|
+
*/
|
|
390
|
+
widgetType: "label" | "button" | string;
|
|
391
|
+
/**
|
|
392
|
+
* Widget type to use when the row is in edit mode.
|
|
393
|
+
*/
|
|
394
|
+
editWidgetType?: EditWidgetType;
|
|
395
|
+
/**
|
|
396
|
+
* Whether to show or hide the column.
|
|
397
|
+
* @default true
|
|
398
|
+
*/
|
|
399
|
+
show?: boolean;
|
|
400
|
+
/**
|
|
401
|
+
* Whether to display on PC.
|
|
402
|
+
*/
|
|
403
|
+
pcdisplay?: boolean;
|
|
404
|
+
/**
|
|
405
|
+
* Whether to display on mobile devices.
|
|
406
|
+
*/
|
|
407
|
+
mobiledisplay?: boolean;
|
|
408
|
+
/**
|
|
409
|
+
* Whether to display on tablets.
|
|
410
|
+
*/
|
|
411
|
+
tabletdisplay?: boolean;
|
|
412
|
+
/**
|
|
413
|
+
* Index of the column in the table.
|
|
414
|
+
*/
|
|
415
|
+
index: number;
|
|
416
|
+
/**
|
|
417
|
+
* Index for header grouping.
|
|
418
|
+
*/
|
|
419
|
+
headerindex: string;
|
|
420
|
+
/**
|
|
421
|
+
* Whether the column is sortable.
|
|
422
|
+
*/
|
|
423
|
+
sortable?: boolean;
|
|
424
|
+
/**
|
|
425
|
+
* Field to sort by.
|
|
426
|
+
*/
|
|
427
|
+
sortby?: string;
|
|
428
|
+
/**
|
|
429
|
+
* Text alignment for the column content.
|
|
430
|
+
*/
|
|
431
|
+
textalignment?: IAlignment;
|
|
432
|
+
/**
|
|
433
|
+
* Background color for the column.
|
|
434
|
+
*/
|
|
435
|
+
backgroundcolor?: string;
|
|
436
|
+
/**
|
|
437
|
+
* Text color for the column.
|
|
438
|
+
*/
|
|
439
|
+
textcolor?: string;
|
|
440
|
+
/**
|
|
441
|
+
* Width of the column.
|
|
442
|
+
*/
|
|
443
|
+
width?: string;
|
|
444
|
+
/**
|
|
445
|
+
* CSS class to apply.
|
|
446
|
+
*/
|
|
447
|
+
className?: string;
|
|
448
|
+
/**
|
|
449
|
+
* CSS styles to apply.
|
|
450
|
+
*/
|
|
451
|
+
styles?: CSSProperties;
|
|
452
|
+
/**
|
|
453
|
+
* Whether the field is required.
|
|
454
|
+
*/
|
|
455
|
+
required?: boolean;
|
|
456
|
+
/**
|
|
457
|
+
* Default value for the field.
|
|
458
|
+
*/
|
|
459
|
+
defaultvalue?: string | number | boolean;
|
|
460
|
+
/**
|
|
461
|
+
* Whether the field is disabled.
|
|
462
|
+
*/
|
|
463
|
+
disabled?: boolean;
|
|
464
|
+
/**
|
|
465
|
+
* Placeholder text for the field.
|
|
466
|
+
*/
|
|
467
|
+
placeholder?: string;
|
|
468
|
+
/**
|
|
469
|
+
* Whether the field is read-only.
|
|
470
|
+
*/
|
|
471
|
+
readonly?: boolean;
|
|
472
|
+
/**
|
|
473
|
+
* Type of input for the edit widget.
|
|
474
|
+
*/
|
|
475
|
+
editinputtype?: "color" | "date" | "datetime-local" | "email" | "month" | "number" | "password" | "search" | "tel" | "text" | "time" | "url" | "week";
|
|
476
|
+
/**
|
|
477
|
+
* Position for row operations columns.
|
|
478
|
+
*/
|
|
479
|
+
rowactionsposition?: number;
|
|
480
|
+
/**
|
|
481
|
+
* Data type of the column.
|
|
482
|
+
*/
|
|
483
|
+
type?: string;
|
|
484
|
+
/**
|
|
485
|
+
* Underlying type of the column.
|
|
486
|
+
*/
|
|
487
|
+
columntype?: string;
|
|
488
|
+
/**
|
|
489
|
+
* Whether the column is searchable.
|
|
490
|
+
*/
|
|
491
|
+
searchable?: boolean;
|
|
492
|
+
/**
|
|
493
|
+
* Whether to show the column in filters.
|
|
494
|
+
*/
|
|
495
|
+
showinfilter?: boolean;
|
|
496
|
+
/**
|
|
497
|
+
* Children components.
|
|
498
|
+
*/
|
|
499
|
+
children?: ReactNode;
|
|
500
|
+
validationmessage?: string;
|
|
501
|
+
exportexpression?: string;
|
|
502
|
+
/**
|
|
503
|
+
* custome react element
|
|
504
|
+
*/
|
|
505
|
+
renderCellContent?: Function;
|
|
506
|
+
/**
|
|
507
|
+
* Callback fired on click.
|
|
508
|
+
*/
|
|
509
|
+
onClick?: ($event: any, widget: any, row: any) => void;
|
|
510
|
+
/**
|
|
511
|
+
* Callback fired on focus.
|
|
512
|
+
*/
|
|
513
|
+
onFocus?: ($event: any, widget: any, row: any) => void;
|
|
514
|
+
/**
|
|
515
|
+
* Callback fired on blur.
|
|
516
|
+
*/
|
|
517
|
+
onBlur?: ($event: any, widget: any, row: any) => void;
|
|
518
|
+
/**
|
|
519
|
+
* Callback fired on value change.
|
|
520
|
+
*/
|
|
521
|
+
onChange?: ($event: any, widget: any, row: any) => void;
|
|
522
|
+
/**
|
|
523
|
+
* Callback fired on key press.
|
|
524
|
+
*/
|
|
525
|
+
onKeypress?: ($event: any, widget: any, row: any) => void;
|
|
526
|
+
/**
|
|
527
|
+
* Callback fired on key down.
|
|
528
|
+
*/
|
|
529
|
+
onKeydown?: ($event: any, widget: any, row: any) => void;
|
|
530
|
+
/**
|
|
531
|
+
* Callback fired on key up.
|
|
532
|
+
*/
|
|
533
|
+
onKeyup?: ($event: any, widget: any, row: any) => void;
|
|
534
|
+
/**
|
|
535
|
+
* Callback fired on mouse enter.
|
|
536
|
+
*/
|
|
537
|
+
onMouseEnter?: ($event: any, widget: any, row: any) => void;
|
|
538
|
+
/**
|
|
539
|
+
* Callback fired on mouse leave.
|
|
540
|
+
*/
|
|
541
|
+
onMouseLeave?: ($event: any, widget: any, row: any) => void;
|
|
542
|
+
}
|
|
543
|
+
/**
|
|
544
|
+
* Combined props for the WmTableColumn component, including base WaveMaker props.
|
|
545
|
+
*/
|
|
546
|
+
export type WmTableColumnProps = Prettify<TableColumnProps & BaseProps>;
|
|
547
|
+
/**
|
|
548
|
+
* Props for the Table Action component.
|
|
549
|
+
*/
|
|
550
|
+
export interface TableActionProps {
|
|
551
|
+
/**
|
|
552
|
+
* Reference to the parent listener.
|
|
553
|
+
*/
|
|
554
|
+
listener: any;
|
|
555
|
+
/**
|
|
556
|
+
* Type of widget.
|
|
557
|
+
*/
|
|
558
|
+
widgetType: "button";
|
|
559
|
+
/**
|
|
560
|
+
* Unique key for the action.
|
|
561
|
+
*/
|
|
562
|
+
key: string;
|
|
563
|
+
/**
|
|
564
|
+
* Display name of the action.
|
|
565
|
+
*/
|
|
566
|
+
displayName: string;
|
|
567
|
+
/**
|
|
568
|
+
* CSS class for the icon.
|
|
569
|
+
*/
|
|
570
|
+
iconclass?: string;
|
|
571
|
+
/**
|
|
572
|
+
* Action to perform.
|
|
573
|
+
*/
|
|
574
|
+
action: string;
|
|
575
|
+
/**
|
|
576
|
+
* Position of the action in the table.
|
|
577
|
+
*/
|
|
578
|
+
position?: TableActionPosition | string;
|
|
579
|
+
/**
|
|
580
|
+
* Keyboard shortcut for the action.
|
|
581
|
+
*/
|
|
582
|
+
shortcutkey?: string;
|
|
583
|
+
/**
|
|
584
|
+
* Children components.
|
|
585
|
+
*/
|
|
586
|
+
children?: ReactNode;
|
|
587
|
+
/**
|
|
588
|
+
* Visual variant of the button.
|
|
589
|
+
*/
|
|
590
|
+
variant?: ButtonProps["variant"];
|
|
591
|
+
/**
|
|
592
|
+
* Color of the button.
|
|
593
|
+
*/
|
|
594
|
+
color?: ButtonProps["color"];
|
|
595
|
+
/**
|
|
596
|
+
* Tab index for keyboard navigation.
|
|
597
|
+
*/
|
|
598
|
+
tabindex?: number;
|
|
599
|
+
/**
|
|
600
|
+
* Whether the action is disabled.
|
|
601
|
+
*/
|
|
602
|
+
disabled?: boolean;
|
|
603
|
+
/**
|
|
604
|
+
* Tooltip title for the action.
|
|
605
|
+
*/
|
|
606
|
+
title?: string;
|
|
607
|
+
}
|
|
608
|
+
/**
|
|
609
|
+
* Combined props for the WmTableAction component, including base WaveMaker props.
|
|
610
|
+
*/
|
|
611
|
+
export type WmTableActionProps = Prettify<TableActionProps & BaseProps>;
|
|
612
|
+
/**
|
|
613
|
+
* Props for the Table Row Action component.
|
|
614
|
+
*/
|
|
615
|
+
export interface TableRowActionProps {
|
|
616
|
+
/**
|
|
617
|
+
* Reference to the parent listener.
|
|
618
|
+
*/
|
|
619
|
+
listener: any;
|
|
620
|
+
/**
|
|
621
|
+
* Unique key for the action.
|
|
622
|
+
*/
|
|
623
|
+
key: string;
|
|
624
|
+
/**
|
|
625
|
+
* Name of the action.
|
|
626
|
+
*/
|
|
627
|
+
name: string;
|
|
628
|
+
/**
|
|
629
|
+
* Display name of the action.
|
|
630
|
+
*/
|
|
631
|
+
displayName: string;
|
|
632
|
+
/**
|
|
633
|
+
* Tooltip title for the action.
|
|
634
|
+
*/
|
|
635
|
+
title: string;
|
|
636
|
+
/**
|
|
637
|
+
* CSS class for the icon.
|
|
638
|
+
*/
|
|
639
|
+
iconclass?: string;
|
|
640
|
+
/**
|
|
641
|
+
* Action to perform.
|
|
642
|
+
*/
|
|
643
|
+
action: string;
|
|
644
|
+
/**
|
|
645
|
+
* CSS class to apply.
|
|
646
|
+
*/
|
|
647
|
+
className?: string;
|
|
648
|
+
/**
|
|
649
|
+
* Whether to show or hide the action.
|
|
650
|
+
*/
|
|
651
|
+
show: boolean;
|
|
652
|
+
/**
|
|
653
|
+
* Row data associated with the action.
|
|
654
|
+
*/
|
|
655
|
+
row?: any;
|
|
656
|
+
/**
|
|
657
|
+
* Index of the row.
|
|
658
|
+
*/
|
|
659
|
+
rowIndex?: number;
|
|
660
|
+
/**
|
|
661
|
+
* Children components.
|
|
662
|
+
*/
|
|
663
|
+
children?: ReactNode;
|
|
664
|
+
/**
|
|
665
|
+
* Type of widget to render (e.g., "button", "anchor").
|
|
666
|
+
*/
|
|
667
|
+
widgettype?: string;
|
|
668
|
+
}
|
|
669
|
+
/**
|
|
670
|
+
* Combined props for the WmTableRowAction component, including base WaveMaker props.
|
|
671
|
+
*/
|
|
672
|
+
export type WmTableRowActionProps = Prettify<TableRowActionProps & BaseProps>;
|
|
673
|
+
/**
|
|
674
|
+
* Props for the Table Row Expansion component.
|
|
675
|
+
*/
|
|
676
|
+
export interface TableRowProps {
|
|
677
|
+
/**
|
|
678
|
+
* Reference to the parent listener.
|
|
679
|
+
*/
|
|
680
|
+
listener: any;
|
|
681
|
+
/**
|
|
682
|
+
* HTML content or partial name to show in the expanded area.
|
|
683
|
+
*/
|
|
684
|
+
content?: string;
|
|
685
|
+
/**
|
|
686
|
+
* Icon class to show when the row is collapsed.
|
|
687
|
+
*/
|
|
688
|
+
expandicon?: string;
|
|
689
|
+
/**
|
|
690
|
+
* Icon class to show when the row is expanded.
|
|
691
|
+
*/
|
|
692
|
+
collapseicon?: string;
|
|
693
|
+
/**
|
|
694
|
+
* Position of the expansion button.
|
|
695
|
+
*/
|
|
696
|
+
position?: number | string;
|
|
697
|
+
/**
|
|
698
|
+
* Whether to close other expanded rows when this one is expanded.
|
|
699
|
+
*/
|
|
700
|
+
closeothers?: boolean;
|
|
701
|
+
/**
|
|
702
|
+
* Type of widget to use for expansion.
|
|
703
|
+
*/
|
|
704
|
+
widgetType?: "button" | "anchor";
|
|
705
|
+
/**
|
|
706
|
+
* Display name for the expansion control.
|
|
707
|
+
*/
|
|
708
|
+
displayName?: string;
|
|
709
|
+
/**
|
|
710
|
+
* Tooltip title when collapsed.
|
|
711
|
+
*/
|
|
712
|
+
expandtitle?: string;
|
|
713
|
+
/**
|
|
714
|
+
* Tooltip title when expanded.
|
|
715
|
+
*/
|
|
716
|
+
collapsetitle?: string;
|
|
717
|
+
/**
|
|
718
|
+
* Whether to show or hide the expansion control.
|
|
719
|
+
*/
|
|
720
|
+
show?: boolean;
|
|
721
|
+
/**
|
|
722
|
+
* Whether the expansion control is disabled.
|
|
723
|
+
*/
|
|
724
|
+
disabled?: boolean;
|
|
725
|
+
/**
|
|
726
|
+
* Width of the expansion column.
|
|
727
|
+
*/
|
|
728
|
+
columnwidth?: string;
|
|
729
|
+
/**
|
|
730
|
+
* Unique name for the expansion control.
|
|
731
|
+
*/
|
|
732
|
+
name: string;
|
|
733
|
+
/**
|
|
734
|
+
* CSS class to apply.
|
|
735
|
+
*/
|
|
736
|
+
className?: string;
|
|
737
|
+
/**
|
|
738
|
+
* Rendering function for content.
|
|
739
|
+
*/
|
|
740
|
+
renderPartial?: (props: Record<string, any>, onLoad: () => void, currentItem: any) => ReactNode;
|
|
741
|
+
/**
|
|
742
|
+
* Children components.
|
|
743
|
+
*/
|
|
744
|
+
children?: ReactNode;
|
|
745
|
+
/**
|
|
746
|
+
* Callback fired before row expansion.
|
|
747
|
+
*/
|
|
748
|
+
onBeforerowexpand?: ($event: any, widget: any, row: any, $data: any) => void;
|
|
749
|
+
/**
|
|
750
|
+
* Callback fired after row expansion.
|
|
751
|
+
*/
|
|
752
|
+
onRowexpand?: ($event: any, widget: any, row: any, $data: any) => void;
|
|
753
|
+
/**
|
|
754
|
+
* Callback fired before row collapse.
|
|
755
|
+
*/
|
|
756
|
+
onBeforerowcollapse?: ($event: any, widget: any, row: any, $data: any) => void;
|
|
757
|
+
/**
|
|
758
|
+
* Callback fired after row collapse.
|
|
759
|
+
*/
|
|
760
|
+
onRowcollapse?: ($event: any, widget: any, row: any) => void;
|
|
761
|
+
}
|
|
762
|
+
/**
|
|
763
|
+
* Combined props for the WmTableRow component, including base WaveMaker props.
|
|
764
|
+
*/
|
|
765
|
+
export type WmTableRowProps = Prettify<TableRowProps & BaseProps>;
|
|
766
|
+
export interface TableBodyProps {
|
|
767
|
+
table: Table<any>;
|
|
768
|
+
columns: ColumnDef<any>[];
|
|
769
|
+
rowClass?: string;
|
|
770
|
+
formposition?: TableFormPosition;
|
|
771
|
+
renderAddNewRow: () => ReactElement | null;
|
|
772
|
+
onRowClick: (event: MouseEvent, rowData: any, rowId: string) => void;
|
|
773
|
+
isRowActive: (rowId: string, isSelected: boolean) => boolean;
|
|
774
|
+
isRowSelected: (rowId: string) => boolean;
|
|
775
|
+
nodatamessage?: string;
|
|
776
|
+
loadingdatamsg?: string;
|
|
777
|
+
isLoading?: boolean;
|
|
778
|
+
rowExpansionConfig?: WmTableRowProps | null;
|
|
779
|
+
expandedRows?: Set<string>;
|
|
780
|
+
toggleRowExpansion?: (rowId: string, rowData: any) => void;
|
|
781
|
+
isRowExpanded?: (rowId: string) => boolean;
|
|
782
|
+
rowsVersion?: number;
|
|
783
|
+
ColClassSignature?: string;
|
|
784
|
+
tableData?: any[];
|
|
785
|
+
activeRowIds?: string[];
|
|
786
|
+
editingRowId?: string | null;
|
|
787
|
+
selectedRowIds?: string[];
|
|
788
|
+
isAddingNewRow?: boolean;
|
|
789
|
+
registerRowDefInstance?: (rowId: string, instance: any, rowData?: any) => void;
|
|
790
|
+
customExpressionColumns?: Record<string, (rowData: any) => ReactNode>;
|
|
791
|
+
/** Bumps when custom-expression components are re-parsed (forces body cells to refresh). */
|
|
792
|
+
customColumnsRevision?: number;
|
|
793
|
+
/** Column proxy / table column definition generation counter. */
|
|
794
|
+
columnsVersion?: number;
|
|
795
|
+
}
|
|
796
|
+
export interface TableHeaderProps {
|
|
797
|
+
table: Table<any>;
|
|
798
|
+
enablesort: boolean;
|
|
799
|
+
enablecolumnselection?: boolean;
|
|
800
|
+
rowClass?: string;
|
|
801
|
+
rowExpansionConfig?: WmTableRowProps | null;
|
|
802
|
+
columnsVersion?: number;
|
|
803
|
+
filterMode?: TableFilterMode;
|
|
804
|
+
listener: any;
|
|
805
|
+
columnFilters?: Record<string, any>;
|
|
806
|
+
onColumnFilterChange?: (columnId: string, value: string, matchMode?: string) => void;
|
|
807
|
+
renderFormWidget: (fieldName: string, widgetType: string, value: any, onChange: (value: any) => void, additionalProps?: any) => React.ReactNode;
|
|
808
|
+
ColClassSignature?: string;
|
|
809
|
+
tableStructure?: any[];
|
|
810
|
+
sorting?: Array<{
|
|
811
|
+
id: string;
|
|
812
|
+
desc: boolean;
|
|
813
|
+
}>;
|
|
814
|
+
columnSizing?: Record<string, number>;
|
|
815
|
+
rowSelection?: Record<string, boolean>;
|
|
816
|
+
onColumnSelect?: (event: React.MouseEvent, columnId: string, colDef: any, columnData: any[]) => void;
|
|
817
|
+
onColumnDeselect?: (event: React.MouseEvent, columnId: string, colDef: any, columnData: any[]) => void;
|
|
818
|
+
onHeaderclick?: (event: any, widget: any, column: any) => void;
|
|
819
|
+
tableName?: string;
|
|
820
|
+
}
|
|
821
|
+
export interface RowExpansionButtonProps {
|
|
822
|
+
rowId: string;
|
|
823
|
+
rowData: any;
|
|
824
|
+
isExpanded: boolean;
|
|
825
|
+
onToggle: (rowId: string, rowData: any) => void;
|
|
826
|
+
config: WmTableRowProps;
|
|
827
|
+
}
|
|
828
|
+
export interface AddNewRowProps {
|
|
829
|
+
isAddingNewRow: boolean;
|
|
830
|
+
editMode: TableEditMode;
|
|
831
|
+
wmTableColumns: WmTableColumnProps[];
|
|
832
|
+
rowActions: WmTableRowActionProps[];
|
|
833
|
+
showrowindex: boolean;
|
|
834
|
+
radioselect?: boolean;
|
|
835
|
+
multiselect?: boolean;
|
|
836
|
+
sessionKey: number;
|
|
837
|
+
editingRowData: Record<string, any>;
|
|
838
|
+
renderEditableCell: (column: WmTableColumnProps, fieldName: string, widgetType: string, editValue: any, rowId: string) => ReactElement;
|
|
839
|
+
onKeyDown?: (e: KeyboardEvent, sourceRowId?: string) => void;
|
|
840
|
+
handleSave: () => void;
|
|
841
|
+
handleCancel: () => void;
|
|
842
|
+
listener?: any;
|
|
843
|
+
hasRowExpansion?: boolean;
|
|
844
|
+
expansionPosition?: number | string;
|
|
845
|
+
}
|
|
846
|
+
export interface EditableCellProps {
|
|
847
|
+
column: WmTableColumnProps;
|
|
848
|
+
rowData: any;
|
|
849
|
+
rowId: string;
|
|
850
|
+
fieldName: string;
|
|
851
|
+
widgetType: string;
|
|
852
|
+
editValue: any;
|
|
853
|
+
fieldValidationErrorsRef: RefObject<Record<string, boolean>>;
|
|
854
|
+
cellUpdateCallbacksRef: RefObject<Record<string, () => void>>;
|
|
855
|
+
fieldRefs: RefObject<Record<string, HTMLElement | null>>;
|
|
856
|
+
renderFormWidget: (name: string, type: string, value: any, onChange: (newValue: any) => void, props: any) => ReactElement;
|
|
857
|
+
updateFieldValue: (fieldName: string, newValue: any, rowId?: string) => void;
|
|
858
|
+
sessionKey?: number;
|
|
859
|
+
onKeyDown?: (e: KeyboardEvent, sourceRowId?: string) => void;
|
|
860
|
+
editMode?: TableEditMode;
|
|
861
|
+
validationmessage?: string;
|
|
862
|
+
}
|
|
863
|
+
export interface FieldValidationErrorProps {
|
|
864
|
+
showError: boolean;
|
|
865
|
+
title?: string;
|
|
866
|
+
}
|
|
867
|
+
export interface TableFooterActionsProps {
|
|
868
|
+
footerActions: any[];
|
|
869
|
+
spacing?: TablePanelSpacing;
|
|
870
|
+
isGridEditMode?: boolean;
|
|
871
|
+
isLoading?: boolean;
|
|
872
|
+
listener?: any;
|
|
873
|
+
}
|
|
874
|
+
export interface TablePanelHeadingProps {
|
|
875
|
+
title?: string;
|
|
876
|
+
subheading?: string;
|
|
877
|
+
iconclass?: string;
|
|
878
|
+
exportformat?: any[];
|
|
879
|
+
headerActions: any[];
|
|
880
|
+
spacing?: TablePanelSpacing;
|
|
881
|
+
isGridEditMode?: boolean;
|
|
882
|
+
isLoading?: boolean;
|
|
883
|
+
listener?: any;
|
|
884
|
+
datasource?: any;
|
|
885
|
+
columns?: WmTableColumnProps[];
|
|
886
|
+
sortInfo?: {
|
|
887
|
+
field: string;
|
|
888
|
+
direction: string;
|
|
889
|
+
};
|
|
890
|
+
filterInfo?: any[];
|
|
891
|
+
exportdatasize?: number;
|
|
892
|
+
onBeforeExport?: (data: any) => boolean | void;
|
|
893
|
+
}
|
|
894
|
+
export interface CellRendererContext {
|
|
895
|
+
column: WmTableColumnProps;
|
|
896
|
+
rowData: any;
|
|
897
|
+
listener?: any;
|
|
898
|
+
cellState?: CellStateReturn;
|
|
899
|
+
}
|
|
900
|
+
export interface CellProps {
|
|
901
|
+
fieldName: string;
|
|
902
|
+
value: any;
|
|
903
|
+
caption: string;
|
|
904
|
+
className: string;
|
|
905
|
+
iconclass: string;
|
|
906
|
+
onClick: (rowData: any) => void;
|
|
907
|
+
}
|
|
908
|
+
export interface ActionButtonConfig {
|
|
909
|
+
key: string;
|
|
910
|
+
name: string;
|
|
911
|
+
className: string;
|
|
912
|
+
dataActionKey: string;
|
|
913
|
+
displayName: string;
|
|
914
|
+
title: string;
|
|
915
|
+
iconclass: string;
|
|
916
|
+
action: string;
|
|
917
|
+
show: boolean;
|
|
918
|
+
widgettype: string;
|
|
919
|
+
}
|
|
920
|
+
export interface BuildSelectionColumnsProps {
|
|
921
|
+
useRadioSelect: boolean;
|
|
922
|
+
useMultiSelect: boolean;
|
|
923
|
+
selectedRowIds: string[];
|
|
924
|
+
handleRadioSelection: (rowId: string, rowData?: any) => void;
|
|
925
|
+
handleMultiSelection: (rowId: string, rowData: any, isSelected: boolean) => void;
|
|
926
|
+
handleSelectAll: (isSelected: boolean) => void;
|
|
927
|
+
internalDataset: any[];
|
|
928
|
+
radioselecttitle?: string;
|
|
929
|
+
radioselectarialabel?: string;
|
|
930
|
+
multiselecttitle?: string;
|
|
931
|
+
multiselectarialabel?: string;
|
|
932
|
+
tableName?: string;
|
|
933
|
+
}
|
|
934
|
+
export interface UseTableDataProps {
|
|
935
|
+
dataset?: any[];
|
|
936
|
+
onRowDelete?: (deletedRowData: any, deletedRowIndex: number, updatedDataset: any[]) => void;
|
|
937
|
+
deleteoktext?: string;
|
|
938
|
+
deletecanceltext?: string;
|
|
939
|
+
confirmdelete?: string;
|
|
940
|
+
deletemessage?: string;
|
|
941
|
+
errormessage?: string;
|
|
942
|
+
showToast?: (message: string, type: ToastType) => void;
|
|
943
|
+
datasource?: LiveVariableConfig;
|
|
944
|
+
binddataset?: string;
|
|
945
|
+
onSuccess?: (operation: string, data: any) => void;
|
|
946
|
+
onError?: (event: any, widget: any, data: any, operation: string) => void;
|
|
947
|
+
onRowdelete?: (event: any, widget: any, row: any) => void;
|
|
948
|
+
isServerSidePagination?: boolean;
|
|
949
|
+
listener?: any;
|
|
950
|
+
widgetName: string;
|
|
951
|
+
}
|
|
952
|
+
export interface UseTableDataReturn {
|
|
953
|
+
internalDataset: any[];
|
|
954
|
+
setInternalDataset: Dispatch<SetStateAction<any[]>>;
|
|
955
|
+
deleteRecord: (rowData: any, tableInstance?: any) => Promise<boolean>;
|
|
956
|
+
renderConfirmDialog: () => ReactElement | null;
|
|
957
|
+
}
|
|
958
|
+
export interface UseFormWidgetProps {
|
|
959
|
+
listener?: any;
|
|
960
|
+
}
|
|
961
|
+
export interface UseFormWidgetReturn {
|
|
962
|
+
renderFormWidget: (fieldName: string, widgetType: string, value: any, onFieldChange?: (newValue: any) => void, widgetProps?: {
|
|
963
|
+
required?: boolean;
|
|
964
|
+
disabled?: boolean;
|
|
965
|
+
placeholder?: string;
|
|
966
|
+
defaultvalue?: string | number | boolean;
|
|
967
|
+
sessionKey?: string | number;
|
|
968
|
+
}) => ReactElement;
|
|
969
|
+
}
|
|
970
|
+
export interface UseTableEditProps {
|
|
971
|
+
editMode?: TableEditMode;
|
|
972
|
+
internalDataset: any[];
|
|
973
|
+
setInternalDataset: Dispatch<SetStateAction<any[]>>;
|
|
974
|
+
wmTableColumns: WmTableColumnProps[];
|
|
975
|
+
listener?: any;
|
|
976
|
+
onRowUpdate?: (updatedRowData: any, rowIndex: number, updatedDataset: any[]) => void;
|
|
977
|
+
onNewRowAdded?: (newRecord: any) => void;
|
|
978
|
+
showToast?: (message: string, type: ToastType) => void;
|
|
979
|
+
onRowDelete?: (deletedRowData: any, deletedRowIndex: number, updatedDataset: any[]) => void;
|
|
980
|
+
showrowindex?: boolean;
|
|
981
|
+
radioselect?: boolean;
|
|
982
|
+
multiselect?: boolean;
|
|
983
|
+
rowActions?: any[];
|
|
984
|
+
formposition?: TableFormPosition;
|
|
985
|
+
insertmessage?: string;
|
|
986
|
+
updatemessage?: string;
|
|
987
|
+
errormessage?: string;
|
|
988
|
+
cellState?: CellStateReturn;
|
|
989
|
+
hasRowExpansion?: boolean;
|
|
990
|
+
expansionPosition?: number | string;
|
|
991
|
+
tableName: string;
|
|
992
|
+
datasource?: LiveVariableConfig;
|
|
993
|
+
binddataset?: string;
|
|
994
|
+
onSuccess?: (operation: string, data: any) => void;
|
|
995
|
+
onError?: (event: any, widget: any, data: any, operation: string) => void;
|
|
996
|
+
onRowdelete?: (event: any, widget: any, row: any) => void;
|
|
997
|
+
onRowinsert?: (event: any, widget: any, data: any) => void;
|
|
998
|
+
onRowupdate?: (event: any, widget: any, data: any) => void;
|
|
999
|
+
tableRef?: React.RefObject<any>;
|
|
1000
|
+
isServerSidePagination?: boolean;
|
|
1001
|
+
}
|
|
1002
|
+
export interface UseTableEditReturn {
|
|
1003
|
+
editingRowId: string | null;
|
|
1004
|
+
editingRowData: Record<string, any>;
|
|
1005
|
+
isRowEditing: (rowId: string) => boolean;
|
|
1006
|
+
startEditing: (rowData: any, rowId: string) => void;
|
|
1007
|
+
cancelEditing: () => void;
|
|
1008
|
+
saveEditing: () => void;
|
|
1009
|
+
updateFieldValue: (fieldName: string, newValue: any, rowId?: string) => void;
|
|
1010
|
+
renderEditableCell: (column: WmTableColumnProps, rowData: any, rowId: string) => ReactElement;
|
|
1011
|
+
handleRowClick: (rowData: any, rowId: string) => void;
|
|
1012
|
+
handleKeyDown: (e: React.KeyboardEvent, sourceRowId?: string) => void;
|
|
1013
|
+
fieldRefs: RefObject<Record<string, HTMLElement | null>>;
|
|
1014
|
+
isAddingNewRow: boolean;
|
|
1015
|
+
handleAddNewRowClick: () => void;
|
|
1016
|
+
renderAddNewRow: () => ReactElement | null;
|
|
1017
|
+
}
|
|
1018
|
+
export interface UseTableColumnsProps {
|
|
1019
|
+
wmTableColumns: WmTableColumnProps[];
|
|
1020
|
+
/** Bumps when column proxy / script mutates column props so TanStack defs rebuild */
|
|
1021
|
+
columnsVersion?: number;
|
|
1022
|
+
rowActions: WmTableRowActionProps[];
|
|
1023
|
+
listener?: any;
|
|
1024
|
+
deleteRecord: (rowData: any, tableInstance?: any) => Promise<boolean>;
|
|
1025
|
+
showrowindex?: boolean;
|
|
1026
|
+
editmode: TableEditMode;
|
|
1027
|
+
isDynamicTable?: boolean;
|
|
1028
|
+
renderEditableCell: (column: WmTableColumnProps, rowData: any, rowId: string) => ReactNode;
|
|
1029
|
+
isRowEditing: (rowId: string) => boolean;
|
|
1030
|
+
startEditing: (rowData: any, rowId: string) => void;
|
|
1031
|
+
cancelEditing: () => void;
|
|
1032
|
+
saveEditing: () => void;
|
|
1033
|
+
editingRowId: string | null;
|
|
1034
|
+
cellState?: CellStateReturn;
|
|
1035
|
+
isResizing?: boolean;
|
|
1036
|
+
handleRowClick?: (event: React.MouseEvent, rowData: any, rowId: string) => void;
|
|
1037
|
+
handleRadioSelection?: (rowId: string, rowData: any) => void;
|
|
1038
|
+
handleMultiSelection?: (rowId: string, rowData: any, checked: boolean) => void;
|
|
1039
|
+
useRadioSelect?: boolean;
|
|
1040
|
+
useMultiSelect?: boolean;
|
|
1041
|
+
isRowSelected?: (rowId: string) => boolean;
|
|
1042
|
+
}
|
|
1043
|
+
export interface UseTableColumnsReturn {
|
|
1044
|
+
columns: ColumnDef<any>[];
|
|
1045
|
+
wmTableColumns: WmTableColumnProps[];
|
|
1046
|
+
rowActions: WmTableRowActionProps[];
|
|
1047
|
+
}
|
|
1048
|
+
export interface UseTableActionsProps {
|
|
1049
|
+
children: ReactNode;
|
|
1050
|
+
listener?: any;
|
|
1051
|
+
onAddNewRowClick?: () => void;
|
|
1052
|
+
}
|
|
1053
|
+
export interface UseTableActionsReturn {
|
|
1054
|
+
tableActions: WmTableActionProps[];
|
|
1055
|
+
renderFooterActions: () => ReactElement | null;
|
|
1056
|
+
}
|
|
1057
|
+
export interface UsePanelStructureProps {
|
|
1058
|
+
title?: string;
|
|
1059
|
+
subheading?: string;
|
|
1060
|
+
iconclass?: string;
|
|
1061
|
+
exportformat?: any[];
|
|
1062
|
+
headerActions: any[];
|
|
1063
|
+
footerActions: any[];
|
|
1064
|
+
shownavigation: boolean;
|
|
1065
|
+
onDemandLoad: boolean;
|
|
1066
|
+
internalDataset: any[];
|
|
1067
|
+
pagesize: number;
|
|
1068
|
+
allowpagesizechange: boolean;
|
|
1069
|
+
datasource?: LiveVariableConfig;
|
|
1070
|
+
showrecordcount?: boolean;
|
|
1071
|
+
}
|
|
1072
|
+
export interface UsePanelStructureReturn {
|
|
1073
|
+
showPanelHeading: boolean;
|
|
1074
|
+
showPagination: boolean;
|
|
1075
|
+
}
|
|
1076
|
+
export interface UseRowSelectionProps {
|
|
1077
|
+
radioselect?: boolean;
|
|
1078
|
+
multiselect?: boolean;
|
|
1079
|
+
gridfirstrowselect?: boolean;
|
|
1080
|
+
internalDataset: any[];
|
|
1081
|
+
cellState: CellStateReturn;
|
|
1082
|
+
name: string;
|
|
1083
|
+
statehandler?: StorageType;
|
|
1084
|
+
initialActualPageSize?: number;
|
|
1085
|
+
getTableState?: () => {
|
|
1086
|
+
currentPage: number;
|
|
1087
|
+
currentPageSize: number;
|
|
1088
|
+
};
|
|
1089
|
+
onRowselect?: (event: any, widget: any, row: any) => void;
|
|
1090
|
+
onRowdeselect?: (event: any, widget: any, row: any) => void;
|
|
1091
|
+
listener?: any;
|
|
1092
|
+
navigation?: string;
|
|
1093
|
+
onSyncSelectedItems?: (selectedIds: string[]) => void;
|
|
1094
|
+
}
|
|
1095
|
+
export interface UseRowSelectionReturn {
|
|
1096
|
+
selectedRowIds: string[];
|
|
1097
|
+
useMultiSelect: boolean;
|
|
1098
|
+
useRadioSelect: boolean;
|
|
1099
|
+
handleRadioSelection: (rowId: string, rowData?: any) => void;
|
|
1100
|
+
handleMultiSelection: (rowId: string, rowData: any, isSelected: boolean) => void;
|
|
1101
|
+
handleSelectAll: (isSelected: boolean) => void;
|
|
1102
|
+
handleRowSelectionClick: (event: MouseEvent, rowId: string, rowData: any) => boolean;
|
|
1103
|
+
isRowSelected: (rowId: string) => boolean;
|
|
1104
|
+
isInteractiveElement: (event: MouseEvent) => boolean;
|
|
1105
|
+
}
|
|
1106
|
+
export interface UseTableStateProps {
|
|
1107
|
+
editMode?: TableEditMode;
|
|
1108
|
+
radioselect?: boolean;
|
|
1109
|
+
multiselect?: boolean;
|
|
1110
|
+
}
|
|
1111
|
+
export interface UseTableStateReturn {
|
|
1112
|
+
activeRowIds: string[] | [];
|
|
1113
|
+
setActiveRow: (rowIds: string | string[] | null) => void;
|
|
1114
|
+
clearActiveRow: () => void;
|
|
1115
|
+
handleRowActiveClick: (rowId: string, isSelectionHandled: boolean, isEditingOrAdding: boolean) => void;
|
|
1116
|
+
isRowActive: (rowId: string, isSelected: boolean) => boolean;
|
|
1117
|
+
}
|
|
1118
|
+
export interface SuccessHandlerOptions {
|
|
1119
|
+
showToast?: (message: string, type: ToastType) => void;
|
|
1120
|
+
onSuccess?: (operation: string, data: any) => void;
|
|
1121
|
+
onRowCallback?: (event: any, widget: any, data: any) => void;
|
|
1122
|
+
message?: string;
|
|
1123
|
+
widget?: any;
|
|
1124
|
+
}
|
|
1125
|
+
export interface DatasetUpdateOptions {
|
|
1126
|
+
setInternalDataset: (updater: (prevDataset: any[]) => any[]) => void;
|
|
1127
|
+
onNewRowAdded?: (newRecord: any) => void;
|
|
1128
|
+
onRowUpdate?: (updatedRowData: any, rowIndex: number, updatedDataset: any[]) => void;
|
|
1129
|
+
showToast?: (message: string, type: ToastType) => void;
|
|
1130
|
+
insertmessage?: string;
|
|
1131
|
+
updatemessage?: string;
|
|
1132
|
+
}
|
|
1133
|
+
export interface ServerOperationOptions {
|
|
1134
|
+
isNewRow: boolean;
|
|
1135
|
+
rowId: string | null;
|
|
1136
|
+
currentEditingData: Record<string, any>;
|
|
1137
|
+
wmTableColumns: any[];
|
|
1138
|
+
datasource?: LiveVariableConfig;
|
|
1139
|
+
binddataset?: string;
|
|
1140
|
+
setInternalDataset: (updater: (prevDataset: any[]) => any[]) => void;
|
|
1141
|
+
onNewRowAdded?: (newRecord: any) => void;
|
|
1142
|
+
onRowUpdate?: (updatedRowData: any, rowIndex: number, updatedDataset: any[]) => void;
|
|
1143
|
+
showToast?: (message: string, type: ToastType) => void;
|
|
1144
|
+
onSuccess?: (operation: string, data: any) => void;
|
|
1145
|
+
onError?: (event: any, widget: any, data: any, operation: string) => void;
|
|
1146
|
+
onRowinsert?: (event: any, widget: any, data: any) => void;
|
|
1147
|
+
onRowupdate?: (event: any, widget: any, data: any) => void;
|
|
1148
|
+
insertmessage?: string;
|
|
1149
|
+
updatemessage?: string;
|
|
1150
|
+
errormessage?: string;
|
|
1151
|
+
tableInstance?: any;
|
|
1152
|
+
isServerSidePagination?: boolean;
|
|
1153
|
+
listener?: any;
|
|
1154
|
+
widgetName: string;
|
|
1155
|
+
}
|
|
1156
|
+
export interface DeleteOperationOptions {
|
|
1157
|
+
rowData: any;
|
|
1158
|
+
tableInstance?: any;
|
|
1159
|
+
internalDataset: any[];
|
|
1160
|
+
setInternalDataset: (updater: (prevDataset: any[]) => any[]) => void;
|
|
1161
|
+
datasource?: LiveVariableConfig;
|
|
1162
|
+
binddataset?: string;
|
|
1163
|
+
onRowDelete?: (deletedRowData: any, deletedRowIndex: number, updatedDataset: any[]) => void;
|
|
1164
|
+
showToast?: (message: string, type: ToastType) => void;
|
|
1165
|
+
onSuccess?: (operation: string, data: any) => void;
|
|
1166
|
+
onError?: (event: any, widget: any, data: any, operation: string) => void;
|
|
1167
|
+
onRowdelete?: (event: any, widget: any, row: any) => void;
|
|
1168
|
+
deletemessage?: string;
|
|
1169
|
+
errormessage?: string;
|
|
1170
|
+
isServerSidePagination?: boolean;
|
|
1171
|
+
listener?: any;
|
|
1172
|
+
widgetName: string;
|
|
1173
|
+
}
|
|
1174
|
+
/**
|
|
1175
|
+
* Interface for the table state structure
|
|
1176
|
+
*/
|
|
1177
|
+
export interface TableState {
|
|
1178
|
+
cells?: Record<string, Record<string, any>>;
|
|
1179
|
+
selection?: {
|
|
1180
|
+
selectedRowIds?: string[];
|
|
1181
|
+
};
|
|
1182
|
+
[key: string]: any;
|
|
1183
|
+
}
|
|
1184
|
+
/**
|
|
1185
|
+
* Interface for the cell state hook return value
|
|
1186
|
+
*/
|
|
1187
|
+
export interface CellStateReturn {
|
|
1188
|
+
getValue: <T = any>(path: string | string[], defaultValue?: T) => T | undefined;
|
|
1189
|
+
setValue: <T = any>(path: string | string[], value: T) => void;
|
|
1190
|
+
updateState: (updates: Record<string, any> | ((currentState: TableState) => TableState)) => void;
|
|
1191
|
+
hasValue: (path: string | string[]) => boolean;
|
|
1192
|
+
removeValue: (path: string | string[]) => void;
|
|
1193
|
+
clearState: () => void;
|
|
1194
|
+
getState: () => TableState;
|
|
1195
|
+
setState: (state: TableState) => void;
|
|
1196
|
+
tableId: string;
|
|
1197
|
+
}
|
|
1198
|
+
export interface EditingStateConfig {
|
|
1199
|
+
showNewRowFormByDefault: boolean;
|
|
1200
|
+
startEditOnRowClick: boolean;
|
|
1201
|
+
hasKeyboardNavigation: boolean;
|
|
1202
|
+
cancelsAddNewRowOnEdit: boolean;
|
|
1203
|
+
}
|
|
1204
|
+
export interface UseEditingStateReturn {
|
|
1205
|
+
editingRowId: string | null;
|
|
1206
|
+
isAddingNewRow: boolean;
|
|
1207
|
+
sessionKey: number;
|
|
1208
|
+
editingRowDataRef: RefObject<Record<string, any>>;
|
|
1209
|
+
newRowDataRef: RefObject<Record<string, any>>;
|
|
1210
|
+
setEditingRowId: (id: string | null) => void;
|
|
1211
|
+
setIsAddingNewRow: (value: boolean) => void;
|
|
1212
|
+
incrementSessionKey: () => void;
|
|
1213
|
+
resetEditingData: () => void;
|
|
1214
|
+
isRowEditing: (rowId: string) => boolean;
|
|
1215
|
+
}
|
|
1216
|
+
export interface UseTableInitializationProps {
|
|
1217
|
+
internalDataset: any[];
|
|
1218
|
+
wmTableColumns: WmTableColumnProps[];
|
|
1219
|
+
cellState: CellStateReturn;
|
|
1220
|
+
gridfirstrowselect: boolean;
|
|
1221
|
+
useRadioSelect: boolean;
|
|
1222
|
+
useMultiSelect: boolean;
|
|
1223
|
+
setActiveRow: (rowIds: string | string[] | null) => void;
|
|
1224
|
+
selectedRowIds: string[];
|
|
1225
|
+
formName?: string;
|
|
1226
|
+
activeRowIds: string[];
|
|
1227
|
+
listener: any;
|
|
1228
|
+
editmode: TableEditMode;
|
|
1229
|
+
}
|
|
1230
|
+
export interface UseRowHandlersProps {
|
|
1231
|
+
editingRowId: string | null;
|
|
1232
|
+
isAddingNewRow: boolean;
|
|
1233
|
+
handleRowSelectionClick: UseRowSelectionReturn["handleRowSelectionClick"];
|
|
1234
|
+
handleTableEditRowClick: (rowData: any, rowId: string) => void;
|
|
1235
|
+
handleRowActiveClick: (rowId: string, isSelectionHandled: boolean, isEditingOrAdding: boolean) => void;
|
|
1236
|
+
onRowclick?: (event: any, widget: any, row: any) => void;
|
|
1237
|
+
useRadioSelect?: boolean;
|
|
1238
|
+
useMultiSelect?: boolean;
|
|
1239
|
+
isrowselectable?: boolean;
|
|
1240
|
+
listener?: any;
|
|
1241
|
+
name: string;
|
|
1242
|
+
}
|
|
1243
|
+
export interface UseRowHandlersReturn {
|
|
1244
|
+
handleRowClick: (event: MouseEvent, rowData: any, rowId: string) => void;
|
|
1245
|
+
}
|
|
1246
|
+
export interface PaginationState {
|
|
1247
|
+
pageIndex: number;
|
|
1248
|
+
pageSize: number;
|
|
1249
|
+
}
|
|
1250
|
+
export interface UsePaginationStateProps {
|
|
1251
|
+
initialPage: number;
|
|
1252
|
+
initialPageSize: number;
|
|
1253
|
+
editmode: string;
|
|
1254
|
+
internalDataset: any[];
|
|
1255
|
+
datasource?: LiveVariableConfig;
|
|
1256
|
+
isServerSidePagination: boolean;
|
|
1257
|
+
}
|
|
1258
|
+
export interface UsePaginationStateReturn {
|
|
1259
|
+
paginationState: PaginationState;
|
|
1260
|
+
setPaginationState: React.Dispatch<React.SetStateAction<PaginationState>>;
|
|
1261
|
+
handlePaginationChange: (event: any, widget: any, index: number) => void;
|
|
1262
|
+
handlePageSizeChange: (newPageSize: number) => void;
|
|
1263
|
+
}
|
|
1264
|
+
export interface UseRowExpansionProps {
|
|
1265
|
+
rowExpansionConfig: WmTableRowProps | null;
|
|
1266
|
+
internalDataset: any[];
|
|
1267
|
+
}
|
|
1268
|
+
export interface UseRowExpansionReturn {
|
|
1269
|
+
expandedRows: Set<string>;
|
|
1270
|
+
toggleRowExpansion: (rowId: string, rowData: any) => void;
|
|
1271
|
+
isRowExpanded: (rowId: string) => boolean;
|
|
1272
|
+
collapseAllRows: () => void;
|
|
1273
|
+
rowExpansionConfig: WmTableRowProps | null;
|
|
1274
|
+
registerRowDefInstance: (rowId: string, instance: any, rowData?: any) => void;
|
|
1275
|
+
rowDefInstances: Record<string, any>;
|
|
1276
|
+
}
|
|
1277
|
+
export interface FieldValidationState {
|
|
1278
|
+
fieldRefs: RefObject<Record<string, HTMLElement | null>>;
|
|
1279
|
+
fieldValidationErrors: RefObject<Record<string, boolean>>;
|
|
1280
|
+
cellUpdateCallbacks: RefObject<Record<string, () => void>>;
|
|
1281
|
+
}
|
|
1282
|
+
export interface ValidationResult {
|
|
1283
|
+
isValid: boolean;
|
|
1284
|
+
invalidElements: HTMLElement[];
|
|
1285
|
+
invalidFieldKeys?: string[];
|
|
1286
|
+
firstInvalidElement?: HTMLElement;
|
|
1287
|
+
}
|
|
1288
|
+
/**
|
|
1289
|
+
* Interface for summary row value with optional styling
|
|
1290
|
+
*/
|
|
1291
|
+
export interface SummaryRowValue {
|
|
1292
|
+
value?: string | number | React.ReactNode;
|
|
1293
|
+
class?: string;
|
|
1294
|
+
}
|
|
1295
|
+
/**
|
|
1296
|
+
* Type for summary row data - can be a simple value, styled object, or Promise
|
|
1297
|
+
*/
|
|
1298
|
+
export type SummaryRowDataType = string | number | SummaryRowValue | Promise<any>;
|
|
1299
|
+
/**
|
|
1300
|
+
* Interface for summary row definition (stores values by column key)
|
|
1301
|
+
*/
|
|
1302
|
+
export interface SummaryRowDef {
|
|
1303
|
+
[columnKey: string]: string | number | React.ReactNode;
|
|
1304
|
+
}
|
|
1305
|
+
/**
|
|
1306
|
+
* Interface for summary row definition with styling (stores objects by column key)
|
|
1307
|
+
*/
|
|
1308
|
+
export interface SummaryRowDefObject {
|
|
1309
|
+
[columnKey: string]: SummaryRowValue | string | number;
|
|
1310
|
+
}
|
|
1311
|
+
/**
|
|
1312
|
+
* Props for SummaryRowFooter component
|
|
1313
|
+
*/
|
|
1314
|
+
export interface SummaryRowFooterProps {
|
|
1315
|
+
summaryRowDefs: SummaryRowDef[];
|
|
1316
|
+
summaryRowDefObjects: SummaryRowDefObject[];
|
|
1317
|
+
columns: WmTableColumnProps[];
|
|
1318
|
+
tableName?: string;
|
|
1319
|
+
summaryRowColumnShow?: Record<number, Record<string, boolean>>;
|
|
1320
|
+
}
|
|
1321
|
+
/**
|
|
1322
|
+
* Props for SummaryRow component
|
|
1323
|
+
*/
|
|
1324
|
+
export interface SummaryRowProps {
|
|
1325
|
+
rowDef: SummaryRowDef;
|
|
1326
|
+
rowDefObject: SummaryRowDefObject;
|
|
1327
|
+
rowIndex: number;
|
|
1328
|
+
columns: WmTableColumnProps[];
|
|
1329
|
+
summaryRowColumnShow?: Record<number, Record<string, boolean>>;
|
|
1330
|
+
}
|
|
1331
|
+
/**
|
|
1332
|
+
* Props for SummaryCell component
|
|
1333
|
+
*/
|
|
1334
|
+
export interface SummaryCellProps {
|
|
1335
|
+
columnKey: string;
|
|
1336
|
+
column: WmTableColumnProps;
|
|
1337
|
+
rowDef: SummaryRowDef;
|
|
1338
|
+
rowDefObject: SummaryRowDefObject;
|
|
1339
|
+
colIndex: number;
|
|
1340
|
+
show: boolean;
|
|
1341
|
+
}
|
|
1342
|
+
export interface WmTableGroupProps {
|
|
1343
|
+
name: string;
|
|
1344
|
+
caption: string;
|
|
1345
|
+
textalignment?: "left" | "center" | "right";
|
|
1346
|
+
backgroundcolor?: string;
|
|
1347
|
+
class?: string;
|
|
1348
|
+
"col-class"?: string;
|
|
1349
|
+
styles?: React.CSSProperties;
|
|
1350
|
+
children: React.ReactNode;
|
|
1351
|
+
[key: string]: any;
|
|
1352
|
+
}
|
|
1353
|
+
/**
|
|
1354
|
+
* Header cell data for rendering
|
|
1355
|
+
*/
|
|
1356
|
+
export interface HeaderCellData {
|
|
1357
|
+
isGroup?: boolean;
|
|
1358
|
+
field: string;
|
|
1359
|
+
displayName: string;
|
|
1360
|
+
colspan?: number;
|
|
1361
|
+
rowspan?: number;
|
|
1362
|
+
textAlignment?: string;
|
|
1363
|
+
backgroundColor?: string;
|
|
1364
|
+
class?: string;
|
|
1365
|
+
colClass?: string;
|
|
1366
|
+
styles?: React.CSSProperties;
|
|
1367
|
+
column?: WmTableColumnProps;
|
|
1368
|
+
}
|