@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,909 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
var _typeof3 = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7
|
+
value: true
|
|
8
|
+
});
|
|
9
|
+
exports.withPageContext = exports["default"] = void 0;
|
|
10
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
|
+
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
12
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
13
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
14
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
16
|
+
var _navigation = require("next/navigation");
|
|
17
|
+
var _isEqual = _interopRequireDefault(require("lodash-es/isEqual"));
|
|
18
|
+
var _cloneDeep = _interopRequireDefault(require("lodash-es/cloneDeep"));
|
|
19
|
+
var _merge = _interopRequireDefault(require("lodash-es/merge"));
|
|
20
|
+
var _compare = _interopRequireDefault(require("../core/util/compare"));
|
|
21
|
+
var _WidgetProvider = require("@wavemaker-ai/react-runtime/context/WidgetProvider");
|
|
22
|
+
var _spinner = require("@wavemaker-ai/react-runtime/components/basic/spinner");
|
|
23
|
+
var _appVariablesStore = require("@wavemaker-ai/react-runtime/core/appVariablesStore");
|
|
24
|
+
var _store = require("@wavemaker-ai/react-runtime/store");
|
|
25
|
+
var _AppContext = require("@wavemaker-ai/react-runtime/context/AppContext");
|
|
26
|
+
var _useAccess2 = _interopRequireDefault(require("@wavemaker-ai/react-runtime/hooks/useAccess"));
|
|
27
|
+
var _authSlice = require("@wavemaker-ai/react-runtime/store/slices/authSlice");
|
|
28
|
+
var _types = require("@wavemaker-ai/react-runtime/types");
|
|
29
|
+
var _proxyService = require("@wavemaker-ai/react-runtime/core/proxy-service");
|
|
30
|
+
var _helper = require("@wavemaker-ai/react-runtime/higherOrder/helper");
|
|
31
|
+
var _toast = require("@wavemaker-ai/react-runtime/actions/toast.service");
|
|
32
|
+
var _appstore = _interopRequireDefault(require("@wavemaker-ai/react-runtime/core/appstore"));
|
|
33
|
+
var _scriptRegistry = require("@wavemaker-ai/react-runtime/core/script-registry");
|
|
34
|
+
var _formatters = _interopRequireDefault(require("../core/formatters"));
|
|
35
|
+
var _AppContext2 = require("../context/AppContext");
|
|
36
|
+
var _pageParamsUtil = require("../utils/page-params-util");
|
|
37
|
+
var _AppSpinnerProvider = require("../context/AppSpinnerProvider");
|
|
38
|
+
var _get = _interopRequireDefault(require("lodash-es/get"));
|
|
39
|
+
var _events = require("../core/constants/events");
|
|
40
|
+
var _libErrorSkipper = require("../utils/lib-error-skipper");
|
|
41
|
+
var _viewport = require("../store/viewport.service");
|
|
42
|
+
var _util = require("../core/util");
|
|
43
|
+
var _utils = require("../core/util/utils");
|
|
44
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof3(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
45
|
+
var __jsx = _react["default"].createElement;
|
|
46
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
47
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
48
|
+
var withPageContext = exports.withPageContext = function withPageContext(WrappedComponent, addPageScript, getVariables, componentInfo, prefabInfo) {
|
|
49
|
+
var PageContextComponent = function PageContextComponent(props) {
|
|
50
|
+
var _useAppSpinner, _info$appConfig;
|
|
51
|
+
var dispatch = (0, _store.useAppDispatch)();
|
|
52
|
+
var _ref = (_useAppSpinner = (0, _AppSpinnerProvider.useAppSpinner)()) !== null && _useAppSpinner !== void 0 ? _useAppSpinner : {},
|
|
53
|
+
show = _ref.show,
|
|
54
|
+
hide = _ref.hide;
|
|
55
|
+
var i18n = (0, _store.useAppSelector)(function (state) {
|
|
56
|
+
return state.i18n;
|
|
57
|
+
});
|
|
58
|
+
var info = (0, _store.useAppSelector)(function (state) {
|
|
59
|
+
return state.info;
|
|
60
|
+
});
|
|
61
|
+
var pageParams = (0, _navigation.useSearchParams)();
|
|
62
|
+
// Get app context if available (when used within BaseApp)
|
|
63
|
+
var appContext = (0, _AppContext.useAppContext)();
|
|
64
|
+
var appProxy = (0, _AppContext2.useAppProxy)();
|
|
65
|
+
|
|
66
|
+
// Use optimized access hook instead of useAccess
|
|
67
|
+
var _useAccess = (0, _useAccess2["default"])({
|
|
68
|
+
componentName: (componentInfo === null || componentInfo === void 0 ? void 0 : componentInfo.componentName) || "Main",
|
|
69
|
+
type: (componentInfo === null || componentInfo === void 0 ? void 0 : componentInfo.componentType) || "PAGE"
|
|
70
|
+
}),
|
|
71
|
+
hasAccess = _useAccess.hasAccess,
|
|
72
|
+
accessLoading = _useAccess.loading,
|
|
73
|
+
accessError = _useAccess.error;
|
|
74
|
+
|
|
75
|
+
// Get security status for debugging
|
|
76
|
+
var isSecurityEnabled = (0, _store.useAppSelector)(function (state) {
|
|
77
|
+
var _state$auth$securityC;
|
|
78
|
+
return (_state$auth$securityC = state.auth.securityConfig) === null || _state$auth$securityC === void 0 ? void 0 : _state$auth$securityC.isSecurityEnabled;
|
|
79
|
+
});
|
|
80
|
+
var securityConfig = (0, _store.useAppSelector)(function (state) {
|
|
81
|
+
return state.auth.securityConfig;
|
|
82
|
+
});
|
|
83
|
+
var isAuthenticated = (0, _store.useAppSelector)(function (state) {
|
|
84
|
+
var _state$auth$loggedInU;
|
|
85
|
+
return (_state$auth$loggedInU = state.auth.loggedInUser) === null || _state$auth$loggedInU === void 0 ? void 0 : _state$auth$loggedInU.isAuthenticated;
|
|
86
|
+
});
|
|
87
|
+
var loggedInUser = (0, _store.useAppSelector)(function (state) {
|
|
88
|
+
return state.auth.loggedInUser;
|
|
89
|
+
});
|
|
90
|
+
var appConfig = (0, _store.useAppSelector)(function (state) {
|
|
91
|
+
return state.info.appConfig;
|
|
92
|
+
});
|
|
93
|
+
var pendingAccordionExpansion = (0, _store.useAppSelector)(function (state) {
|
|
94
|
+
return state.navigation.pendingAccordionExpansion;
|
|
95
|
+
});
|
|
96
|
+
var pendingTabSelection = (0, _store.useAppSelector)(function (state) {
|
|
97
|
+
return state.navigation.pendingTabSelection;
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
// Initialization state management
|
|
101
|
+
var _useState = (0, _react.useState)(false),
|
|
102
|
+
isInitialized = _useState[0],
|
|
103
|
+
setIsInitialized = _useState[1];
|
|
104
|
+
var _useState2 = (0, _react.useState)(false),
|
|
105
|
+
startupComplete = _useState2[0],
|
|
106
|
+
setStartupComplete = _useState2[1];
|
|
107
|
+
var _useState3 = (0, _react.useState)(false),
|
|
108
|
+
isLayoutReady = _useState3[0],
|
|
109
|
+
setIsLayoutReady = _useState3[1];
|
|
110
|
+
|
|
111
|
+
// Refs for managing component lifecycle
|
|
112
|
+
var redirectHandledRef = (0, _react.useRef)(false);
|
|
113
|
+
var subscriptionsRef = (0, _react.useRef)([]);
|
|
114
|
+
var pendingStartupOpsRef = (0, _react.useRef)(new Set());
|
|
115
|
+
var startUpVariableLoadedRef = (0, _react.useRef)(false);
|
|
116
|
+
var pageProxyRef = (0, _react.useRef)(null);
|
|
117
|
+
var urlTabProcessedRef = (0, _react.useRef)(false); // Track if URL tab parameter has been processed
|
|
118
|
+
var isInitializingRef = (0, _react.useRef)(false);
|
|
119
|
+
var isMountedRef = (0, _react.useRef)(true);
|
|
120
|
+
var appVarSubscriptionsDoneRef = (0, _react.useRef)(false);
|
|
121
|
+
var subscribedVariableNamesRef = (0, _react.useRef)(new Set());
|
|
122
|
+
var overriddenPropsRegistryRef = (0, _react.useRef)(null);
|
|
123
|
+
var onStartupCompletedRef = (0, _react.useRef)(false);
|
|
124
|
+
var _useState4 = (0, _react.useState)(false),
|
|
125
|
+
isPageReady = _useState4[0],
|
|
126
|
+
setIsPageReady = _useState4[1];
|
|
127
|
+
var pageReady = (0, _react.useCallback)(function () {
|
|
128
|
+
setIsPageReady(true);
|
|
129
|
+
}, []);
|
|
130
|
+
|
|
131
|
+
// Initial page context state
|
|
132
|
+
var _useState5 = (0, _react.useState)(_objectSpread(_objectSpread(_objectSpread(_objectSpread({
|
|
133
|
+
Widgets: {},
|
|
134
|
+
Variables: {},
|
|
135
|
+
Actions: {},
|
|
136
|
+
onReady: function onReady() {},
|
|
137
|
+
serviceDefinitions: (0, _cloneDeep["default"])((prefabInfo === null || prefabInfo === void 0 ? void 0 : prefabInfo.serviceDefs) || (appContext === null || appContext === void 0 ? void 0 : appContext.serviceDefinitions) || {}),
|
|
138
|
+
pageParams: props.pageParams || {},
|
|
139
|
+
baseUrl: (prefabInfo === null || prefabInfo === void 0 ? void 0 : prefabInfo.baseUrl) || (info === null || info === void 0 || (_info$appConfig = info.appConfig) === null || _info$appConfig === void 0 ? void 0 : _info$appConfig.url) || "",
|
|
140
|
+
appConfig: appContext === null || appContext === void 0 ? void 0 : appContext.appConfig,
|
|
141
|
+
notification: {},
|
|
142
|
+
toaster: _toast.toastService,
|
|
143
|
+
onContentReady: onContentReady,
|
|
144
|
+
onChange: updateWidgetState,
|
|
145
|
+
pageReady: pageReady,
|
|
146
|
+
App: {},
|
|
147
|
+
eval: appContext === null || appContext === void 0 ? void 0 : appContext.eval,
|
|
148
|
+
appLocale: (componentInfo === null || componentInfo === void 0 ? void 0 : componentInfo.appLocale) || i18n.appLocale || {},
|
|
149
|
+
localeFormats: {
|
|
150
|
+
date: i18n.dateFormat,
|
|
151
|
+
time: i18n.timeFormat,
|
|
152
|
+
currency: i18n.currencyCode
|
|
153
|
+
}
|
|
154
|
+
}, prefabInfo), props), componentInfo), {}, {
|
|
155
|
+
executeStartup: executeStartup,
|
|
156
|
+
formatters: _formatters["default"],
|
|
157
|
+
Viewport: _viewport.viewportService.getViewport(),
|
|
158
|
+
formatMessage: _util.formatMessage,
|
|
159
|
+
overriddenPropsRegistryRef: overriddenPropsRegistryRef.current,
|
|
160
|
+
layoutReady: layoutReady,
|
|
161
|
+
activePageName: componentInfo === null || componentInfo === void 0 ? void 0 : componentInfo.componentName
|
|
162
|
+
})),
|
|
163
|
+
pageContext = _useState5[0],
|
|
164
|
+
setPageContext = _useState5[1];
|
|
165
|
+
// Enhanced initial app config that inherits from app context if available
|
|
166
|
+
var initialAppConfig = (0, _react.useMemo)(function () {
|
|
167
|
+
return appContext;
|
|
168
|
+
}, [appContext]);
|
|
169
|
+
|
|
170
|
+
// Compute a stable key from partial param values for dependency tracking
|
|
171
|
+
var partialParamValuesKey = (0, _pageParamsUtil.computePartialParamKey)(componentInfo === null || componentInfo === void 0 ? void 0 : componentInfo.componentType, props.params, props);
|
|
172
|
+
var authLoggedInUser = (0, _store.useAppSelector)(function (state) {
|
|
173
|
+
return state.auth.loggedInUser;
|
|
174
|
+
});
|
|
175
|
+
(0, _react.useEffect)(function () {
|
|
176
|
+
if (!pageProxyRef.current) return;
|
|
177
|
+
pageProxyRef.current.appConfig.loggedInUser = authLoggedInUser;
|
|
178
|
+
setPageContext(function (prev) {
|
|
179
|
+
return _objectSpread(_objectSpread({}, prev), {}, {
|
|
180
|
+
appConfig: _objectSpread(_objectSpread({}, prev.appConfig), {}, {
|
|
181
|
+
loggedInUser: authLoggedInUser
|
|
182
|
+
})
|
|
183
|
+
});
|
|
184
|
+
});
|
|
185
|
+
}, [authLoggedInUser]);
|
|
186
|
+
(0, _react.useEffect)(function () {
|
|
187
|
+
pageContext.serviceDefinitions = (0, _cloneDeep["default"])((prefabInfo === null || prefabInfo === void 0 ? void 0 : prefabInfo.serviceDefs) || (appContext === null || appContext === void 0 ? void 0 : appContext.serviceDefinitions) || {});
|
|
188
|
+
setPageContext(function (prev) {
|
|
189
|
+
return _objectSpread(_objectSpread({}, prev), {}, {
|
|
190
|
+
serviceDefinitions: (0, _cloneDeep["default"])((prefabInfo === null || prefabInfo === void 0 ? void 0 : prefabInfo.serviceDefs) || (appContext === null || appContext === void 0 ? void 0 : appContext.serviceDefinitions) || {})
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
}, [appContext === null || appContext === void 0 ? void 0 : appContext.serviceDefinitions, prefabInfo === null || prefabInfo === void 0 ? void 0 : prefabInfo.serviceDefs]);
|
|
194
|
+
// Subscribe for partial params changes - sync prop values to pageParams
|
|
195
|
+
(0, _react.useEffect)(function () {
|
|
196
|
+
if ((componentInfo === null || componentInfo === void 0 ? void 0 : componentInfo.componentType) !== "PARTIAL" || !pageProxyRef.current) {
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
var paramValues = (0, _pageParamsUtil.extractPartialParamValues)(props.params || [], props);
|
|
200
|
+
|
|
201
|
+
// Update pageParams for each param key when prop values change
|
|
202
|
+
Object.entries(paramValues).forEach(function (_ref2) {
|
|
203
|
+
var _pageProxyRef$current;
|
|
204
|
+
var _ref3 = (0, _slicedToArray2["default"])(_ref2, 2),
|
|
205
|
+
key = _ref3[0],
|
|
206
|
+
newValue = _ref3[1];
|
|
207
|
+
if (!(0, _isEqual["default"])((_pageProxyRef$current = pageProxyRef.current.pageParams) === null || _pageProxyRef$current === void 0 ? void 0 : _pageProxyRef$current[key], newValue)) {
|
|
208
|
+
if (!pageProxyRef.current.pageParams) {
|
|
209
|
+
pageProxyRef.current.pageParams = {};
|
|
210
|
+
}
|
|
211
|
+
pageProxyRef.current.pageParams[key] = newValue;
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
}, [partialParamValuesKey]);
|
|
215
|
+
|
|
216
|
+
// Handle redirect to login if authentication is required
|
|
217
|
+
(0, _react.useEffect)(function () {
|
|
218
|
+
var _appConfig$pages;
|
|
219
|
+
if ((componentInfo === null || componentInfo === void 0 ? void 0 : componentInfo.componentType) !== "PAGE" || redirectHandledRef.current || accessLoading || !isSecurityEnabled) {
|
|
220
|
+
return;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
// Check if page requires authentication
|
|
224
|
+
var pageConfig = appConfig === null || appConfig === void 0 || (_appConfig$pages = appConfig.pages) === null || _appConfig$pages === void 0 ? void 0 : _appConfig$pages.find(function (p) {
|
|
225
|
+
var _componentInfo$compon;
|
|
226
|
+
return p.name.toLowerCase() === (componentInfo === null || componentInfo === void 0 || (_componentInfo$compon = componentInfo.componentName) === null || _componentInfo$compon === void 0 ? void 0 : _componentInfo$compon.toLowerCase());
|
|
227
|
+
});
|
|
228
|
+
|
|
229
|
+
// Redirect to login if page requires authentication and user is not authenticated
|
|
230
|
+
var requiresAuth = (pageConfig === null || pageConfig === void 0 ? void 0 : pageConfig.permission) === "Authenticated" || (pageConfig === null || pageConfig === void 0 ? void 0 : pageConfig.permission) === "Role";
|
|
231
|
+
if (requiresAuth && !isAuthenticated) {
|
|
232
|
+
redirectHandledRef.current = true;
|
|
233
|
+
dispatch((0, _authSlice.redirectToLogin)({
|
|
234
|
+
redirectTo: componentInfo === null || componentInfo === void 0 ? void 0 : componentInfo.componentName,
|
|
235
|
+
securityConfig: securityConfig
|
|
236
|
+
}));
|
|
237
|
+
}
|
|
238
|
+
}, [accessLoading, isSecurityEnabled, isAuthenticated, appConfig, componentInfo === null || componentInfo === void 0 ? void 0 : componentInfo.componentType, componentInfo === null || componentInfo === void 0 ? void 0 : componentInfo.componentName, dispatch, securityConfig]);
|
|
239
|
+
|
|
240
|
+
// Check if we should proceed with initialization
|
|
241
|
+
var shouldInitialize = (0, _react.useMemo)(function () {
|
|
242
|
+
// Wait for app to be ready (if app context exists)
|
|
243
|
+
if (appContext && !appContext.isAppReady) {
|
|
244
|
+
return false;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
// Wait for access check to complete
|
|
248
|
+
if (accessLoading) {
|
|
249
|
+
return false;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
// Don't initialize if no access
|
|
253
|
+
if (!hasAccess && isSecurityEnabled) {
|
|
254
|
+
if (isAuthenticated) {
|
|
255
|
+
var _pageContext$appLocal;
|
|
256
|
+
appContext === null || appContext === void 0 || appContext.notifyApp((pageContext === null || pageContext === void 0 || (_pageContext$appLocal = pageContext.appLocale) === null || _pageContext$appLocal === void 0 || (_pageContext$appLocal = _pageContext$appLocal.LABELS) === null || _pageContext$appLocal === void 0 ? void 0 : _pageContext$appLocal.ACCESS_DENIED) || "Access Denied", "Error");
|
|
257
|
+
}
|
|
258
|
+
return false;
|
|
259
|
+
}
|
|
260
|
+
return true;
|
|
261
|
+
}, [appContext === null || appContext === void 0 ? void 0 : appContext.isAppReady, accessLoading, hasAccess, isSecurityEnabled, isAuthenticated]);
|
|
262
|
+
|
|
263
|
+
// Update page context with app variables when app context changes
|
|
264
|
+
(0, _react.useEffect)(function () {
|
|
265
|
+
if (!(appContext !== null && appContext !== void 0 && appContext.isAppReady) || !pageProxyRef.current) {
|
|
266
|
+
return;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
// Update page context with app variables without triggering re-initialization
|
|
270
|
+
setPageContext(function (prev) {
|
|
271
|
+
var updatedVariables = _objectSpread(_objectSpread({}, prev.Variables), appContext.Variables || {});
|
|
272
|
+
var updatedActions = _objectSpread(_objectSpread({}, prev.Actions), appContext.Actions || {});
|
|
273
|
+
|
|
274
|
+
// Update proxy with the same object references
|
|
275
|
+
pageProxyRef.current.Variables = updatedVariables;
|
|
276
|
+
pageProxyRef.current.Actions = updatedActions;
|
|
277
|
+
return _objectSpread(_objectSpread({}, prev), {}, {
|
|
278
|
+
App: _objectSpread(_objectSpread({}, prev.App), {}, {
|
|
279
|
+
Variables: appContext.Variables || {},
|
|
280
|
+
Actions: appContext.Actions || {}
|
|
281
|
+
}),
|
|
282
|
+
Variables: updatedVariables,
|
|
283
|
+
Actions: updatedActions
|
|
284
|
+
});
|
|
285
|
+
});
|
|
286
|
+
}, [appContext === null || appContext === void 0 ? void 0 : appContext.isAppReady, appContext === null || appContext === void 0 ? void 0 : appContext.Variables, appContext === null || appContext === void 0 ? void 0 : appContext.Actions]);
|
|
287
|
+
|
|
288
|
+
// Main initialization effect - runs only when conditions are met
|
|
289
|
+
(0, _react.useEffect)(function () {
|
|
290
|
+
// Early returns for non-initialization cases
|
|
291
|
+
if (!shouldInitialize || isInitialized || isInitializingRef.current || !isMountedRef.current) {
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
// Set initialization flag
|
|
296
|
+
isInitializingRef.current = true;
|
|
297
|
+
var initializeComponent = /*#__PURE__*/function () {
|
|
298
|
+
var _ref4 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
299
|
+
var pageProxy, pageVariables, appVariables, APP_VARIABLES, _mergeVariablesAndAct, Variables, Actions, urlParams, newParams, localeFormats, _pageName;
|
|
300
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
301
|
+
while (1) switch (_context.prev = _context.next) {
|
|
302
|
+
case 0:
|
|
303
|
+
try {
|
|
304
|
+
// Create overridden props registry
|
|
305
|
+
overriddenPropsRegistryRef.current = (0, _scriptRegistry.createOverriddenPropsRegistry)();
|
|
306
|
+
// Create page proxy
|
|
307
|
+
pageProxy = (0, _proxyService.createStateProxy)(pageContext, [], setPageContext, overriddenPropsRegistryRef.current);
|
|
308
|
+
pageProxyRef.current = pageProxy;
|
|
309
|
+
|
|
310
|
+
// Initialize variables and actions
|
|
311
|
+
pageVariables = getVariables(pageProxy); // Handle app variables based on app context availability
|
|
312
|
+
appVariables = {
|
|
313
|
+
Variables: {},
|
|
314
|
+
Actions: {}
|
|
315
|
+
};
|
|
316
|
+
if (appContext !== null && appContext !== void 0 && appContext.isAppReady) {
|
|
317
|
+
// If app context is available and ready, use app variables directly
|
|
318
|
+
appVariables = {
|
|
319
|
+
Variables: appContext.Variables || {},
|
|
320
|
+
Actions: appContext.Actions || {}
|
|
321
|
+
};
|
|
322
|
+
} else {
|
|
323
|
+
// Fallback to traditional app variable initialization
|
|
324
|
+
// @ts-ignore
|
|
325
|
+
APP_VARIABLES = _appstore["default"].get("AppConfig").appVariables;
|
|
326
|
+
appVariables = APP_VARIABLES ? (0, _appVariablesStore.getAppVariablesInstance)(pageProxy, APP_VARIABLES) : {
|
|
327
|
+
Variables: {},
|
|
328
|
+
Actions: {}
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
_mergeVariablesAndAct = (0, _helper.mergeVariablesAndActions)(pageVariables, appVariables), Variables = _mergeVariablesAndAct.Variables, Actions = _mergeVariablesAndAct.Actions; // Compute page params from URL and include partial params when applicable
|
|
332
|
+
urlParams = Object.fromEntries(pageParams.entries());
|
|
333
|
+
newParams = (0, _pageParamsUtil.computeMergedPageParams)(urlParams, {
|
|
334
|
+
componentType: componentInfo === null || componentInfo === void 0 ? void 0 : componentInfo.componentType,
|
|
335
|
+
props: props
|
|
336
|
+
});
|
|
337
|
+
appProxy.appLocale = i18n.appLocale || {};
|
|
338
|
+
localeFormats = {
|
|
339
|
+
date: i18n.dateFormat,
|
|
340
|
+
time: i18n.timeFormat,
|
|
341
|
+
currency: i18n.currencyCode
|
|
342
|
+
};
|
|
343
|
+
appProxy.localeFormats = localeFormats;
|
|
344
|
+
pageProxy.localeFormats = localeFormats;
|
|
345
|
+
|
|
346
|
+
// Update proxy with merged variables and actions
|
|
347
|
+
pageProxy.Variables = Variables;
|
|
348
|
+
pageProxy.Actions = Actions;
|
|
349
|
+
pageProxy.pageParams = _objectSpread({}, newParams);
|
|
350
|
+
pageProxy.pageReady = pageReady;
|
|
351
|
+
pageProxy.App = _objectSpread(_objectSpread({}, appProxy), initialAppConfig);
|
|
352
|
+
pageProxy.selectedLocale = i18n.selectedLocale || "en";
|
|
353
|
+
pageProxy.overriddenPropsRegistry = overriddenPropsRegistryRef.current;
|
|
354
|
+
|
|
355
|
+
// Setup variable event handlers
|
|
356
|
+
setupVariableSubscriptions(pageVariables.Variables);
|
|
357
|
+
if ((componentInfo === null || componentInfo === void 0 ? void 0 : componentInfo.componentType) === "PAGE" && appProxy) {
|
|
358
|
+
_pageName = componentInfo === null || componentInfo === void 0 ? void 0 : componentInfo.componentName;
|
|
359
|
+
appProxy.updateActivePage(_pageName);
|
|
360
|
+
appProxy.activePage = pageProxy;
|
|
361
|
+
appProxy.activePageName = _pageName;
|
|
362
|
+
appProxy.Widgets = (0, _utils.mergeProxies)(appProxy.Widgets, pageProxy.Widgets);
|
|
363
|
+
} else if ((componentInfo === null || componentInfo === void 0 ? void 0 : componentInfo.componentName) === "Common" && (componentInfo === null || componentInfo === void 0 ? void 0 : componentInfo.componentType) === "PARTIAL" && appProxy) {
|
|
364
|
+
appProxy.Widgets = (0, _utils.mergeProxies)(appProxy.Widgets, pageProxy.Widgets);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
// Initialize page script
|
|
368
|
+
addPageScript(appProxy, pageProxy);
|
|
369
|
+
|
|
370
|
+
// Gaurd for unsupported third party functionality
|
|
371
|
+
(0, _libErrorSkipper.wrapWithThirdPartyErrorGuard)(pageProxy, appContext, (componentInfo === null || componentInfo === void 0 ? void 0 : componentInfo.componentName) || "Prefab");
|
|
372
|
+
|
|
373
|
+
// Setup global wm object for pages
|
|
374
|
+
if ((componentInfo === null || componentInfo === void 0 ? void 0 : componentInfo.componentType) === "PAGE") {
|
|
375
|
+
global.wm = appProxy ? _objectSpread(_objectSpread({}, pageProxy), {}, {
|
|
376
|
+
App: appProxy
|
|
377
|
+
}) : pageProxy;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
// Mark as initialized
|
|
381
|
+
setIsInitialized(true);
|
|
382
|
+
} catch (error) {
|
|
383
|
+
console.error("Error during component initialization:", error);
|
|
384
|
+
// Still mark as initialized to prevent hanging
|
|
385
|
+
setIsInitialized(true);
|
|
386
|
+
} finally {
|
|
387
|
+
isInitializingRef.current = false;
|
|
388
|
+
}
|
|
389
|
+
case 1:
|
|
390
|
+
case "end":
|
|
391
|
+
return _context.stop();
|
|
392
|
+
}
|
|
393
|
+
}, _callee);
|
|
394
|
+
}));
|
|
395
|
+
return function initializeComponent() {
|
|
396
|
+
return _ref4.apply(this, arguments);
|
|
397
|
+
};
|
|
398
|
+
}();
|
|
399
|
+
initializeComponent();
|
|
400
|
+
|
|
401
|
+
// Cleanup function
|
|
402
|
+
return function () {
|
|
403
|
+
var _overriddenPropsRegis;
|
|
404
|
+
// Cancel all pending page operations
|
|
405
|
+
if (pageProxyRef.current) {
|
|
406
|
+
var _ref5 = getVariables(pageProxyRef.current) || {},
|
|
407
|
+
_ref5$Variables = _ref5.Variables,
|
|
408
|
+
Variables = _ref5$Variables === void 0 ? {} : _ref5$Variables,
|
|
409
|
+
_ref5$Actions = _ref5.Actions,
|
|
410
|
+
Actions = _ref5$Actions === void 0 ? {} : _ref5$Actions;
|
|
411
|
+
|
|
412
|
+
// Cancel page variables
|
|
413
|
+
Object.values(Variables).forEach(function (variable) {
|
|
414
|
+
if (variable !== null && variable !== void 0 && variable.cancel && typeof variable.cancel === "function") {
|
|
415
|
+
try {
|
|
416
|
+
variable.cancel();
|
|
417
|
+
} catch (error) {
|
|
418
|
+
console.warn("Failed to cancel page variable:", error);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
});
|
|
422
|
+
|
|
423
|
+
// Cancel page actions
|
|
424
|
+
Object.values(Actions).forEach(function (action) {
|
|
425
|
+
if (action !== null && action !== void 0 && action.cancel && typeof action.cancel === "function") {
|
|
426
|
+
try {
|
|
427
|
+
action.cancel();
|
|
428
|
+
} catch (error) {
|
|
429
|
+
console.warn("Failed to cancel page timer action:", error);
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
});
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
// Clear pending startup operations
|
|
436
|
+
pendingStartupOpsRef.current.clear();
|
|
437
|
+
(_overriddenPropsRegis = overriddenPropsRegistryRef.current) === null || _overriddenPropsRegis === void 0 || _overriddenPropsRegis.clear();
|
|
438
|
+
// clearOverriddenProps();
|
|
439
|
+
|
|
440
|
+
// Unsubscribe from events
|
|
441
|
+
subscriptionsRef.current.forEach(function (_ref6) {
|
|
442
|
+
var variable = _ref6.variable,
|
|
443
|
+
event = _ref6.event,
|
|
444
|
+
handler = _ref6.handler;
|
|
445
|
+
if (variable !== null && variable !== void 0 && variable.unsubscribe) {
|
|
446
|
+
try {
|
|
447
|
+
variable.unsubscribe(event, handler);
|
|
448
|
+
} catch (error) {
|
|
449
|
+
console.warn("Failed to unsubscribe from ".concat(event, ":"), error);
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
});
|
|
453
|
+
subscriptionsRef.current = [];
|
|
454
|
+
};
|
|
455
|
+
}, [shouldInitialize]); // Only depend on shouldInitialize
|
|
456
|
+
|
|
457
|
+
// Subscribe to app-level variables when app becomes ready
|
|
458
|
+
// This MUST happen before executeStartAppOperations() is called (via executeStartup)
|
|
459
|
+
// so that widgets can receive loading state updates when app variables are invoked
|
|
460
|
+
(0, _react.useEffect)(function () {
|
|
461
|
+
if (!(appContext !== null && appContext !== void 0 && appContext.isAppReady) || !pageProxyRef.current || appVarSubscriptionsDoneRef.current) {
|
|
462
|
+
return;
|
|
463
|
+
}
|
|
464
|
+
try {
|
|
465
|
+
var _ref7 = getVariables(pageProxyRef.current) || {
|
|
466
|
+
Variables: {}
|
|
467
|
+
},
|
|
468
|
+
_ref7$Variables = _ref7.Variables,
|
|
469
|
+
pageVars = _ref7$Variables === void 0 ? {} : _ref7$Variables;
|
|
470
|
+
var pageVarNames = new Set(Object.keys(pageVars || {}));
|
|
471
|
+
subscribeAppVariablesIfNeeded(appContext.Variables || {}, pageVarNames);
|
|
472
|
+
appVarSubscriptionsDoneRef.current = true;
|
|
473
|
+
} catch (e) {
|
|
474
|
+
// no-op
|
|
475
|
+
}
|
|
476
|
+
}, [appContext === null || appContext === void 0 ? void 0 : appContext.isAppReady]);
|
|
477
|
+
|
|
478
|
+
// Prefab state sync
|
|
479
|
+
(0, _react.useEffect)(function () {
|
|
480
|
+
if (prefabInfo && (componentInfo === null || componentInfo === void 0 ? void 0 : componentInfo.componentType) === "PREFAB") {
|
|
481
|
+
var handlePrefabStateRefresh = function handlePrefabStateRefresh(data) {
|
|
482
|
+
var proxy = pageProxyRef.current;
|
|
483
|
+
Object.keys(data).forEach(function (key) {
|
|
484
|
+
var _data$key$newValue;
|
|
485
|
+
var propKey = data[key].key;
|
|
486
|
+
var newValue = (_data$key$newValue = data[key].newValue) !== null && _data$key$newValue !== void 0 ? _data$key$newValue : data[key].oldValue;
|
|
487
|
+
if (newValue && (0, _typeof2["default"])(newValue) === "object") {
|
|
488
|
+
newValue = (0, _cloneDeep["default"])(newValue);
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
// Call onPropertyChange if available
|
|
492
|
+
if (proxy && proxy.onPropertyChange) {
|
|
493
|
+
proxy[propKey] = newValue;
|
|
494
|
+
proxy.onPropertyChange(propKey, newValue, data[key].oldValue);
|
|
495
|
+
}
|
|
496
|
+
});
|
|
497
|
+
};
|
|
498
|
+
_events.EVENTEMITTER_METHODS.PREFAB_STATE_SYNC_ON(prefabInfo === null || prefabInfo === void 0 ? void 0 : prefabInfo.name, handlePrefabStateRefresh);
|
|
499
|
+
return function () {
|
|
500
|
+
_events.EVENTEMITTER_METHODS.PREFAB_STATE_SYNC_OFF(prefabInfo === null || prefabInfo === void 0 ? void 0 : prefabInfo.name, handlePrefabStateRefresh);
|
|
501
|
+
};
|
|
502
|
+
}
|
|
503
|
+
}, [prefabInfo, componentInfo === null || componentInfo === void 0 ? void 0 : componentInfo.componentType]);
|
|
504
|
+
|
|
505
|
+
// Setup variable subscriptions
|
|
506
|
+
var setupVariableSubscriptions = function setupVariableSubscriptions(variables) {
|
|
507
|
+
var handleVariableEvent = function handleVariableEvent(variableName, event, variable) {
|
|
508
|
+
// not required because while unmounting page,variables invocation get cancelled and state update will not happen
|
|
509
|
+
|
|
510
|
+
var updateState = variable;
|
|
511
|
+
updateState.loading = event === _types.VariableEvents.BEFORE_INVOKE;
|
|
512
|
+
updateState.error = event === _types.VariableEvents.ERROR ? variable : null;
|
|
513
|
+
if ((0, _get["default"])(variable, "spinnerContext") === "page") {
|
|
514
|
+
if (updateState.loading) {
|
|
515
|
+
var message = (0, _get["default"])(variable, "spinnerMessage");
|
|
516
|
+
show(message);
|
|
517
|
+
} else {
|
|
518
|
+
hide();
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
setPageContext(function (prev) {
|
|
522
|
+
return _objectSpread(_objectSpread({}, prev), {}, {
|
|
523
|
+
Variables: _objectSpread(_objectSpread({}, prev.Variables), {}, (0, _defineProperty2["default"])({}, variableName, updateState))
|
|
524
|
+
});
|
|
525
|
+
});
|
|
526
|
+
if (event === _types.VariableEvents.AFTER_INVOKE) {
|
|
527
|
+
pendingStartupOpsRef.current["delete"](variableName);
|
|
528
|
+
}
|
|
529
|
+
};
|
|
530
|
+
|
|
531
|
+
// Set up subscriptions (avoid duplicates by name)
|
|
532
|
+
Object.entries(variables).forEach(function (_ref8) {
|
|
533
|
+
var _ref9 = (0, _slicedToArray2["default"])(_ref8, 2),
|
|
534
|
+
name = _ref9[0],
|
|
535
|
+
variable = _ref9[1];
|
|
536
|
+
if (subscribedVariableNamesRef.current.has(name)) {
|
|
537
|
+
return;
|
|
538
|
+
}
|
|
539
|
+
Object.values(_types.VariableEvents).forEach(function (event) {
|
|
540
|
+
var handler = function handler() {
|
|
541
|
+
return handleVariableEvent(name, event, variable);
|
|
542
|
+
};
|
|
543
|
+
if (variable && typeof variable.subscribe === "function") {
|
|
544
|
+
variable.subscribe(event, handler);
|
|
545
|
+
subscriptionsRef.current.push({
|
|
546
|
+
variable: variable,
|
|
547
|
+
event: event,
|
|
548
|
+
handler: handler
|
|
549
|
+
});
|
|
550
|
+
}
|
|
551
|
+
});
|
|
552
|
+
subscribedVariableNamesRef.current.add(name);
|
|
553
|
+
});
|
|
554
|
+
};
|
|
555
|
+
|
|
556
|
+
// Subscribe to app-level variables that are not shadowed by page variables
|
|
557
|
+
var subscribeAppVariablesIfNeeded = function subscribeAppVariablesIfNeeded(appVars, pageVarNames) {
|
|
558
|
+
var appVarsOnly = {};
|
|
559
|
+
Object.entries(appVars || {}).forEach(function (_ref0) {
|
|
560
|
+
var _ref1 = (0, _slicedToArray2["default"])(_ref0, 2),
|
|
561
|
+
name = _ref1[0],
|
|
562
|
+
variable = _ref1[1];
|
|
563
|
+
if (!pageVarNames.has(name) && !subscribedVariableNamesRef.current.has(name)) {
|
|
564
|
+
appVarsOnly[name] = variable;
|
|
565
|
+
}
|
|
566
|
+
});
|
|
567
|
+
if (Object.keys(appVarsOnly).length) {
|
|
568
|
+
setupVariableSubscriptions(appVarsOnly);
|
|
569
|
+
}
|
|
570
|
+
};
|
|
571
|
+
|
|
572
|
+
// Execute startup operations
|
|
573
|
+
var executeStartupOperations = /*#__PURE__*/function () {
|
|
574
|
+
var _ref10 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(Variables, Actions) {
|
|
575
|
+
var _ref11, _ref11$startUpActions, startUpActions, _ref11$startUpVariabl, startUpVariables, variablePromises;
|
|
576
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
577
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
578
|
+
case 0:
|
|
579
|
+
_ref11 = componentInfo || {}, _ref11$startUpActions = _ref11.startUpActions, startUpActions = _ref11$startUpActions === void 0 ? [] : _ref11$startUpActions, _ref11$startUpVariabl = _ref11.startUpVariables, startUpVariables = _ref11$startUpVariabl === void 0 ? [] : _ref11$startUpVariabl; // Track startup operations
|
|
580
|
+
startUpVariables.forEach(function (name) {
|
|
581
|
+
return pendingStartupOpsRef.current.add(name);
|
|
582
|
+
});
|
|
583
|
+
startUpActions.forEach(function (name) {
|
|
584
|
+
return pendingStartupOpsRef.current.add(name);
|
|
585
|
+
});
|
|
586
|
+
|
|
587
|
+
// If no startup operations, mark as complete immediately
|
|
588
|
+
if (!(startUpActions.length === 0 && startUpVariables.length === 0)) {
|
|
589
|
+
_context2.next = 5;
|
|
590
|
+
break;
|
|
591
|
+
}
|
|
592
|
+
return _context2.abrupt("return");
|
|
593
|
+
case 5:
|
|
594
|
+
_context2.prev = 5;
|
|
595
|
+
// Execute startup actions
|
|
596
|
+
startUpActions.forEach(function (actionName) {
|
|
597
|
+
var _Actions$actionName;
|
|
598
|
+
if ((_Actions$actionName = Actions[actionName]) !== null && _Actions$actionName !== void 0 && _Actions$actionName.invoke) {
|
|
599
|
+
Actions[actionName].invoke();
|
|
600
|
+
}
|
|
601
|
+
pendingStartupOpsRef.current["delete"](String(actionName));
|
|
602
|
+
});
|
|
603
|
+
|
|
604
|
+
// Execute startup variables
|
|
605
|
+
variablePromises = startUpVariables.map(function (varName) {
|
|
606
|
+
var _Variables$varName;
|
|
607
|
+
if ((_Variables$varName = Variables[varName]) !== null && _Variables$varName !== void 0 && _Variables$varName.invoke) {
|
|
608
|
+
return Variables[varName].invoke()["catch"](function (error) {
|
|
609
|
+
console.log("Error invoking ".concat(varName, ":"), error);
|
|
610
|
+
return null;
|
|
611
|
+
});
|
|
612
|
+
}
|
|
613
|
+
return Promise.resolve();
|
|
614
|
+
});
|
|
615
|
+
_context2.next = 10;
|
|
616
|
+
return Promise.allSettled(variablePromises);
|
|
617
|
+
case 10:
|
|
618
|
+
startUpVariableLoadedRef.current = true;
|
|
619
|
+
pendingStartupOpsRef.current.clear();
|
|
620
|
+
setTimeout(function () {
|
|
621
|
+
if ((componentInfo === null || componentInfo === void 0 ? void 0 : componentInfo.componentType) === "PAGE") {
|
|
622
|
+
appContext === null || appContext === void 0 || appContext.notify("page-variables-data-loaded", {
|
|
623
|
+
pageName: componentInfo === null || componentInfo === void 0 ? void 0 : componentInfo.componentName
|
|
624
|
+
});
|
|
625
|
+
}
|
|
626
|
+
}, 0);
|
|
627
|
+
_context2.next = 18;
|
|
628
|
+
break;
|
|
629
|
+
case 15:
|
|
630
|
+
_context2.prev = 15;
|
|
631
|
+
_context2.t0 = _context2["catch"](5);
|
|
632
|
+
console.error("Error during startup operations:", _context2.t0);
|
|
633
|
+
case 18:
|
|
634
|
+
case "end":
|
|
635
|
+
return _context2.stop();
|
|
636
|
+
}
|
|
637
|
+
}, _callee2, null, [[5, 15]]);
|
|
638
|
+
}));
|
|
639
|
+
return function executeStartupOperations(_x, _x2) {
|
|
640
|
+
return _ref10.apply(this, arguments);
|
|
641
|
+
};
|
|
642
|
+
}();
|
|
643
|
+
function layoutReady() {
|
|
644
|
+
setIsLayoutReady(true);
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
// Widget state update function
|
|
648
|
+
function updateWidgetState(widgetName, newProps) {
|
|
649
|
+
if (!widgetName || !newProps || Object.keys(newProps).length === 0) return;
|
|
650
|
+
if ((0, _compare["default"])(pageContext.Widgets[widgetName], newProps)) return;
|
|
651
|
+
var registry = overriddenPropsRegistryRef.current;
|
|
652
|
+
if (registry) {
|
|
653
|
+
Object.keys(newProps).forEach(function (key) {
|
|
654
|
+
if (newProps[key] !== undefined) {
|
|
655
|
+
registry.trackInternalUpdate(widgetName, key, newProps[key]);
|
|
656
|
+
}
|
|
657
|
+
});
|
|
658
|
+
}
|
|
659
|
+
setPageContext(function (prev) {
|
|
660
|
+
return _objectSpread(_objectSpread({}, prev), {}, {
|
|
661
|
+
Widgets: _objectSpread(_objectSpread({}, prev.Widgets), {}, (0, _defineProperty2["default"])({}, widgetName, _objectSpread(_objectSpread({}, prev.Widgets[widgetName]), newProps)))
|
|
662
|
+
});
|
|
663
|
+
});
|
|
664
|
+
|
|
665
|
+
// Suspend tracking to prevent internal state updates from being tracked as script overrides
|
|
666
|
+
(0, _scriptRegistry.withSuspendedTracking)(overriddenPropsRegistryRef.current, function () {
|
|
667
|
+
Object.keys(newProps).forEach(function (key) {
|
|
668
|
+
var _pageContext$Widgets$;
|
|
669
|
+
if (!(0, _isEqual["default"])((_pageContext$Widgets$ = pageContext.Widgets[widgetName]) === null || _pageContext$Widgets$ === void 0 ? void 0 : _pageContext$Widgets$[key], newProps === null || newProps === void 0 ? void 0 : newProps[key]) && (newProps === null || newProps === void 0 ? void 0 : newProps[key]) !== undefined) {
|
|
670
|
+
var _pageProxyRef$current2;
|
|
671
|
+
if ((_pageProxyRef$current2 = pageProxyRef.current) !== null && _pageProxyRef$current2 !== void 0 && (_pageProxyRef$current2 = _pageProxyRef$current2.Widgets) !== null && _pageProxyRef$current2 !== void 0 && _pageProxyRef$current2[widgetName]) {
|
|
672
|
+
pageProxyRef.current.Widgets[widgetName][key] = newProps[key];
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
});
|
|
676
|
+
});
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
// Content ready callback
|
|
680
|
+
function onContentReady() {
|
|
681
|
+
return _onContentReady.apply(this, arguments);
|
|
682
|
+
}
|
|
683
|
+
function _onContentReady() {
|
|
684
|
+
_onContentReady = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4() {
|
|
685
|
+
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
686
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
687
|
+
case 0:
|
|
688
|
+
if (!pageContext.onReady) {
|
|
689
|
+
_context4.next = 3;
|
|
690
|
+
break;
|
|
691
|
+
}
|
|
692
|
+
_context4.next = 3;
|
|
693
|
+
return pageContext.onReady();
|
|
694
|
+
case 3:
|
|
695
|
+
if (appContext !== null && appContext !== void 0 && appContext.onPageReady && pageContext.componentType === "PAGE") {
|
|
696
|
+
appContext.onPageReady(pageContext.componentName, pageProxyRef.current, undefined);
|
|
697
|
+
}
|
|
698
|
+
return _context4.abrupt("return", Promise.resolve());
|
|
699
|
+
case 5:
|
|
700
|
+
case "end":
|
|
701
|
+
return _context4.stop();
|
|
702
|
+
}
|
|
703
|
+
}, _callee4);
|
|
704
|
+
}));
|
|
705
|
+
return _onContentReady.apply(this, arguments);
|
|
706
|
+
}
|
|
707
|
+
function executeStartup() {
|
|
708
|
+
return _executeStartup.apply(this, arguments);
|
|
709
|
+
}
|
|
710
|
+
function _executeStartup() {
|
|
711
|
+
_executeStartup = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5() {
|
|
712
|
+
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
713
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
714
|
+
case 0:
|
|
715
|
+
_context5.next = 2;
|
|
716
|
+
return appContext === null || appContext === void 0 ? void 0 : appContext.executeStartAppOperations();
|
|
717
|
+
case 2:
|
|
718
|
+
case "end":
|
|
719
|
+
return _context5.stop();
|
|
720
|
+
}
|
|
721
|
+
}, _callee5);
|
|
722
|
+
}));
|
|
723
|
+
return _executeStartup.apply(this, arguments);
|
|
724
|
+
}
|
|
725
|
+
function executePageStartup() {
|
|
726
|
+
return _executePageStartup.apply(this, arguments);
|
|
727
|
+
} // Update pageContext.appLocale when i18n.appLocale changes
|
|
728
|
+
function _executePageStartup() {
|
|
729
|
+
_executePageStartup = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee6() {
|
|
730
|
+
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
|
731
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
732
|
+
case 0:
|
|
733
|
+
_context6.next = 2;
|
|
734
|
+
return executeStartupOperations(pageContext.Variables, pageContext.Actions);
|
|
735
|
+
case 2:
|
|
736
|
+
case "end":
|
|
737
|
+
return _context6.stop();
|
|
738
|
+
}
|
|
739
|
+
}, _callee6);
|
|
740
|
+
}));
|
|
741
|
+
return _executePageStartup.apply(this, arguments);
|
|
742
|
+
}
|
|
743
|
+
(0, _react.useEffect)(function () {
|
|
744
|
+
var newAppLocale = (0, _merge["default"])({}, i18n.appLocale || {}, (prefabInfo === null || prefabInfo === void 0 ? void 0 : prefabInfo.appLocale) || {});
|
|
745
|
+
if (!(0, _isEqual["default"])(pageContext.appLocale, newAppLocale)) {
|
|
746
|
+
var _pageProxyRef$current3;
|
|
747
|
+
setPageContext(function (prev) {
|
|
748
|
+
return _objectSpread(_objectSpread({}, prev), {}, {
|
|
749
|
+
appLocale: newAppLocale
|
|
750
|
+
});
|
|
751
|
+
});
|
|
752
|
+
if ((_pageProxyRef$current3 = pageProxyRef.current) !== null && _pageProxyRef$current3 !== void 0 && _pageProxyRef$current3.App) {
|
|
753
|
+
pageProxyRef.current.App.appLocale = newAppLocale;
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
}, [i18n.appLocale]);
|
|
757
|
+
(0, _react.useEffect)(function () {
|
|
758
|
+
var localeFormats = {
|
|
759
|
+
date: i18n.dateFormat,
|
|
760
|
+
time: i18n.timeFormat,
|
|
761
|
+
currency: i18n.currencyCode
|
|
762
|
+
};
|
|
763
|
+
setPageContext(function (prev) {
|
|
764
|
+
return _objectSpread(_objectSpread({}, prev), {}, {
|
|
765
|
+
localeFormats: localeFormats
|
|
766
|
+
});
|
|
767
|
+
});
|
|
768
|
+
if (pageProxyRef.current) {
|
|
769
|
+
pageProxyRef.current.localeFormats = localeFormats;
|
|
770
|
+
if (pageProxyRef.current.App) {
|
|
771
|
+
pageProxyRef.current.App.localeFormats = localeFormats;
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
}, [i18n.dateFormat, i18n.timeFormat, i18n.currencyCode]);
|
|
775
|
+
var pageName = (appProxy === null || appProxy === void 0 ? void 0 : appProxy.activePageName) || "";
|
|
776
|
+
(0, _react.useEffect)(function () {
|
|
777
|
+
if ((componentInfo === null || componentInfo === void 0 ? void 0 : componentInfo.componentType) === "PARTIAL" && pageName) {
|
|
778
|
+
// update the app active page name
|
|
779
|
+
setPageContext(function (prev) {
|
|
780
|
+
return _objectSpread(_objectSpread({}, prev), {}, {
|
|
781
|
+
App: _objectSpread(_objectSpread({}, prev.App), {}, {
|
|
782
|
+
activePageName: pageName
|
|
783
|
+
})
|
|
784
|
+
});
|
|
785
|
+
});
|
|
786
|
+
}
|
|
787
|
+
}, [pageName]);
|
|
788
|
+
|
|
789
|
+
// Execute startup when both conditions are met:
|
|
790
|
+
// 1. Page is initialized (context ready)
|
|
791
|
+
// 2. Page component has called pageReady() after widgets have rendered and subscribed
|
|
792
|
+
(0, _react.useEffect)(function () {
|
|
793
|
+
if (isInitialized && isPageReady && isMountedRef.current && !onStartupCompletedRef.current && pageProxyRef.current) {
|
|
794
|
+
var runStartup = /*#__PURE__*/function () {
|
|
795
|
+
var _ref12 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3() {
|
|
796
|
+
var tabNameFromUrl, tabNameToSelect;
|
|
797
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
798
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
799
|
+
case 0:
|
|
800
|
+
if (isMountedRef.current) {
|
|
801
|
+
_context3.next = 2;
|
|
802
|
+
break;
|
|
803
|
+
}
|
|
804
|
+
return _context3.abrupt("return");
|
|
805
|
+
case 2:
|
|
806
|
+
if (!(securityConfig !== null && securityConfig !== void 0 && securityConfig.authenticated && appProxy !== null && appProxy !== void 0 && appProxy.executeSessionFailureRequests)) {
|
|
807
|
+
_context3.next = 5;
|
|
808
|
+
break;
|
|
809
|
+
}
|
|
810
|
+
_context3.next = 5;
|
|
811
|
+
return appProxy.executeSessionFailureRequests();
|
|
812
|
+
case 5:
|
|
813
|
+
_context3.next = 7;
|
|
814
|
+
return executeStartup();
|
|
815
|
+
case 7:
|
|
816
|
+
_context3.next = 9;
|
|
817
|
+
return onContentReady();
|
|
818
|
+
case 9:
|
|
819
|
+
_context3.next = 11;
|
|
820
|
+
return executePageStartup();
|
|
821
|
+
case 11:
|
|
822
|
+
onStartupCompletedRef.current = true;
|
|
823
|
+
// Handle pending accordion expansion from navigation using Redux
|
|
824
|
+
if (pendingAccordionExpansion) {
|
|
825
|
+
(0, _helper.accordionExpansionHandler)(pageProxyRef, pendingAccordionExpansion, dispatch);
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
// Handle tab selection from URL query parameter or Redux
|
|
829
|
+
// URL parameter is only processed once on initial page load
|
|
830
|
+
// Redux state is used for programmatic navigation
|
|
831
|
+
tabNameFromUrl = !urlTabProcessedRef.current ? pageParams === null || pageParams === void 0 ? void 0 : pageParams.get("tabName") : null;
|
|
832
|
+
tabNameToSelect = tabNameFromUrl || pendingTabSelection;
|
|
833
|
+
if (tabNameToSelect) {
|
|
834
|
+
(0, _helper.tabSelectionHandler)(pageProxyRef, tabNameToSelect, dispatch);
|
|
835
|
+
}
|
|
836
|
+
case 16:
|
|
837
|
+
case "end":
|
|
838
|
+
return _context3.stop();
|
|
839
|
+
}
|
|
840
|
+
}, _callee3);
|
|
841
|
+
}));
|
|
842
|
+
return function runStartup() {
|
|
843
|
+
return _ref12.apply(this, arguments);
|
|
844
|
+
};
|
|
845
|
+
}();
|
|
846
|
+
runStartup();
|
|
847
|
+
}
|
|
848
|
+
}, [isInitialized, isPageReady]);
|
|
849
|
+
// Call onContentReady when startup operations are complete
|
|
850
|
+
(0, _react.useEffect)(function () {
|
|
851
|
+
if (startupComplete && (pageContext.type === "PAGE" ? isLayoutReady : true)) {
|
|
852
|
+
onContentReady();
|
|
853
|
+
}
|
|
854
|
+
}, [startupComplete, isLayoutReady]);
|
|
855
|
+
(0, _react.useEffect)(function () {
|
|
856
|
+
isMountedRef.current = true;
|
|
857
|
+
return function () {
|
|
858
|
+
isMountedRef.current = false;
|
|
859
|
+
// Cleanup viewport service when component unmounts
|
|
860
|
+
_viewport.viewportService.destroy();
|
|
861
|
+
};
|
|
862
|
+
}, []);
|
|
863
|
+
|
|
864
|
+
// Handle access denied case
|
|
865
|
+
if (!accessLoading && !hasAccess && !(componentInfo !== null && componentInfo !== void 0 && componentInfo.isPartOfPrefab)) {
|
|
866
|
+
return null;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
// Handle access error case
|
|
870
|
+
if (accessError && !accessLoading) {
|
|
871
|
+
console.error("Access check failed for ".concat(componentInfo === null || componentInfo === void 0 ? void 0 : componentInfo.componentName, ":"), accessError);
|
|
872
|
+
return null;
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
// Show loading spinner while checking access or app is not ready
|
|
876
|
+
if (accessLoading || appContext && !appContext.isAppReady || !isInitialized) {
|
|
877
|
+
return __jsx(_spinner.WmSpinner, {
|
|
878
|
+
name: "page",
|
|
879
|
+
caption: "",
|
|
880
|
+
listener: {}
|
|
881
|
+
});
|
|
882
|
+
}
|
|
883
|
+
if (appContext !== null && appContext !== void 0 && appContext.autoUpdateVariables && onStartupCompletedRef.current) {
|
|
884
|
+
var appVariables = appContext.Variables;
|
|
885
|
+
appContext.autoUpdateVariables.forEach(function (value) {
|
|
886
|
+
var _appVariables$value, _appVariables$value2;
|
|
887
|
+
((_appVariables$value = appVariables[value]) === null || _appVariables$value === void 0 ? void 0 : _appVariables$value.invokeOnParamChange) && ((_appVariables$value2 = appVariables[value]) === null || _appVariables$value2 === void 0 ? void 0 : _appVariables$value2.invokeOnParamChange());
|
|
888
|
+
});
|
|
889
|
+
}
|
|
890
|
+
if (pageContext.autoUpdateVariables && onStartupCompletedRef.current) {
|
|
891
|
+
var pageVariables = pageContext.Variables;
|
|
892
|
+
componentInfo === null || componentInfo === void 0 || componentInfo.autoUpdateVariables.forEach(function (value) {
|
|
893
|
+
var _pageVariables$value, _pageVariables$value$;
|
|
894
|
+
(_pageVariables$value = pageVariables[value]) === null || _pageVariables$value === void 0 || (_pageVariables$value$ = _pageVariables$value.invokeOnParamChange) === null || _pageVariables$value$ === void 0 || _pageVariables$value$.call(_pageVariables$value);
|
|
895
|
+
});
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
// Render the component
|
|
899
|
+
return __jsx(_WidgetProvider.WidgetProvider, {
|
|
900
|
+
value: {
|
|
901
|
+
value: pageContext,
|
|
902
|
+
proxy: pageProxyRef.current
|
|
903
|
+
}
|
|
904
|
+
}, __jsx(WrappedComponent, props));
|
|
905
|
+
};
|
|
906
|
+
PageContextComponent.displayName = "WithPageContext(".concat(WrappedComponent.displayName || WrappedComponent.name || "Component", ")");
|
|
907
|
+
return PageContextComponent;
|
|
908
|
+
};
|
|
909
|
+
var _default = exports["default"] = withPageContext;
|