@pega/lists-core 8.0.0-build.27.14
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/LICENSE +185 -0
- package/README.md +80 -0
- package/SECURITY.md +11 -0
- package/lib/index.d.ts +13 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +14 -0
- package/lib/index.js.map +1 -0
- package/lib/src/core/RsCore.d.ts +37 -0
- package/lib/src/core/RsCore.d.ts.map +1 -0
- package/lib/src/core/RsCore.js +48 -0
- package/lib/src/core/RsCore.js.map +1 -0
- package/lib/src/core/RsInternal.d.ts +85 -0
- package/lib/src/core/RsInternal.d.ts.map +1 -0
- package/lib/src/core/RsInternal.js +104 -0
- package/lib/src/core/RsInternal.js.map +1 -0
- package/lib/src/core/RsProps.d.ts +52 -0
- package/lib/src/core/RsProps.d.ts.map +1 -0
- package/lib/src/core/RsProps.js +47 -0
- package/lib/src/core/RsProps.js.map +1 -0
- package/lib/src/core/RsStore.d.ts +62 -0
- package/lib/src/core/RsStore.d.ts.map +1 -0
- package/lib/src/core/RsStore.js +59 -0
- package/lib/src/core/RsStore.js.map +1 -0
- package/lib/src/core/StateResolver.d.ts +45 -0
- package/lib/src/core/StateResolver.d.ts.map +1 -0
- package/lib/src/core/StateResolver.js +276 -0
- package/lib/src/core/StateResolver.js.map +1 -0
- package/lib/src/core/a11y/BaseA11y.d.ts +161 -0
- package/lib/src/core/a11y/BaseA11y.d.ts.map +1 -0
- package/lib/src/core/a11y/BaseA11y.js +549 -0
- package/lib/src/core/a11y/BaseA11y.js.map +1 -0
- package/lib/src/core/actions/actionConstants.d.ts +77 -0
- package/lib/src/core/actions/actionConstants.d.ts.map +1 -0
- package/lib/src/core/actions/actionConstants.js +79 -0
- package/lib/src/core/actions/actionConstants.js.map +1 -0
- package/lib/src/core/actions/actions.d.ts +400 -0
- package/lib/src/core/actions/actions.d.ts.map +1 -0
- package/lib/src/core/actions/actions.js +537 -0
- package/lib/src/core/actions/actions.js.map +1 -0
- package/lib/src/core/actions/actions.types.d.ts +504 -0
- package/lib/src/core/actions/actions.types.d.ts.map +1 -0
- package/lib/src/core/actions/actions.types.js +5 -0
- package/lib/src/core/actions/actions.types.js.map +1 -0
- package/lib/src/core/config/config.d.ts +9 -0
- package/lib/src/core/config/config.d.ts.map +1 -0
- package/lib/src/core/config/config.js +93 -0
- package/lib/src/core/config/config.js.map +1 -0
- package/lib/src/core/config/filterConfig.d.ts +123 -0
- package/lib/src/core/config/filterConfig.d.ts.map +1 -0
- package/lib/src/core/config/filterConfig.js +238 -0
- package/lib/src/core/config/filterConfig.js.map +1 -0
- package/lib/src/core/constants.d.ts +146 -0
- package/lib/src/core/constants.d.ts.map +1 -0
- package/lib/src/core/constants.js +124 -0
- package/lib/src/core/constants.js.map +1 -0
- package/lib/src/core/features/featureFactory.d.ts +52 -0
- package/lib/src/core/features/featureFactory.d.ts.map +1 -0
- package/lib/src/core/features/featureFactory.js +118 -0
- package/lib/src/core/features/featureFactory.js.map +1 -0
- package/lib/src/core/features/uIFeatures/afterRender/animation.d.ts +24 -0
- package/lib/src/core/features/uIFeatures/afterRender/animation.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/afterRender/animation.js +157 -0
- package/lib/src/core/features/uIFeatures/afterRender/animation.js.map +1 -0
- package/lib/src/core/features/uIFeatures/afterRender/columnSizing/autoSize.d.ts +29 -0
- package/lib/src/core/features/uIFeatures/afterRender/columnSizing/autoSize.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/afterRender/columnSizing/autoSize.js +114 -0
- package/lib/src/core/features/uIFeatures/afterRender/columnSizing/autoSize.js.map +1 -0
- package/lib/src/core/features/uIFeatures/afterRender/columnSizing/index.d.ts +38 -0
- package/lib/src/core/features/uIFeatures/afterRender/columnSizing/index.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/afterRender/columnSizing/index.js +157 -0
- package/lib/src/core/features/uIFeatures/afterRender/columnSizing/index.js.map +1 -0
- package/lib/src/core/features/uIFeatures/afterRender/customizeParentContainer/index.d.ts +16 -0
- package/lib/src/core/features/uIFeatures/afterRender/customizeParentContainer/index.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/afterRender/customizeParentContainer/index.js +32 -0
- package/lib/src/core/features/uIFeatures/afterRender/customizeParentContainer/index.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/adjustHeight.d.ts +25 -0
- package/lib/src/core/features/uIFeatures/beforeRender/adjustHeight.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/adjustHeight.js +139 -0
- package/lib/src/core/features/uIFeatures/beforeRender/adjustHeight.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/adjustHeightToFitRecords.d.ts +18 -0
- package/lib/src/core/features/uIFeatures/beforeRender/adjustHeightToFitRecords.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/adjustHeightToFitRecords.js +46 -0
- package/lib/src/core/features/uIFeatures/beforeRender/adjustHeightToFitRecords.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/adjustMaxHeight.d.ts +13 -0
- package/lib/src/core/features/uIFeatures/beforeRender/adjustMaxHeight.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/adjustMaxHeight.js +38 -0
- package/lib/src/core/features/uIFeatures/beforeRender/adjustMaxHeight.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/aggregation.d.ts +11 -0
- package/lib/src/core/features/uIFeatures/beforeRender/aggregation.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/aggregation.js +48 -0
- package/lib/src/core/features/uIFeatures/beforeRender/aggregation.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/animation.d.ts +25 -0
- package/lib/src/core/features/uIFeatures/beforeRender/animation.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/animation.js +106 -0
- package/lib/src/core/features/uIFeatures/beforeRender/animation.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/busyIndicator.d.ts +18 -0
- package/lib/src/core/features/uIFeatures/beforeRender/busyIndicator.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/busyIndicator.js +56 -0
- package/lib/src/core/features/uIFeatures/beforeRender/busyIndicator.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/changePersonalisation.d.ts +7 -0
- package/lib/src/core/features/uIFeatures/beforeRender/changePersonalisation.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/changePersonalisation.js +34 -0
- package/lib/src/core/features/uIFeatures/beforeRender/changePersonalisation.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnAlias.d.ts +10 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnAlias.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnAlias.js +72 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnAlias.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnDisplayMode.d.ts +9 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnDisplayMode.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnDisplayMode.js +26 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnDisplayMode.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnFormatter.d.ts +9 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnFormatter.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnFormatter.js +29 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnFormatter.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnOrder.d.ts +11 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnOrder.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnOrder.js +38 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnOrder.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnReOrder.d.ts +11 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnReOrder.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnReOrder.js +199 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnReOrder.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnSizing/index.d.ts +5 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnSizing/index.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnSizing/index.js +29 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnSizing/index.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnSizing/resize.d.ts +14 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnSizing/resize.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnSizing/resize.js +118 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnSizing/resize.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnSort.d.ts +8 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnSort.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnSort.js +25 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnSort.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnToggle.d.ts +9 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnToggle.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnToggle.js +26 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnToggle.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnVisualOrder.d.ts +12 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnVisualOrder.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnVisualOrder.js +57 -0
- package/lib/src/core/features/uIFeatures/beforeRender/columnVisualOrder.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/conditionalStyleFormat.d.ts +9 -0
- package/lib/src/core/features/uIFeatures/beforeRender/conditionalStyleFormat.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/conditionalStyleFormat.js +36 -0
- package/lib/src/core/features/uIFeatures/beforeRender/conditionalStyleFormat.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/customColumn.d.ts +9 -0
- package/lib/src/core/features/uIFeatures/beforeRender/customColumn.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/customColumn.js +70 -0
- package/lib/src/core/features/uIFeatures/beforeRender/customColumn.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/edit.d.ts +12 -0
- package/lib/src/core/features/uIFeatures/beforeRender/edit.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/edit.js +94 -0
- package/lib/src/core/features/uIFeatures/beforeRender/edit.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/errorColumn.d.ts +9 -0
- package/lib/src/core/features/uIFeatures/beforeRender/errorColumn.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/errorColumn.js +26 -0
- package/lib/src/core/features/uIFeatures/beforeRender/errorColumn.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/filter.d.ts +10 -0
- package/lib/src/core/features/uIFeatures/beforeRender/filter.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/filter.js +36 -0
- package/lib/src/core/features/uIFeatures/beforeRender/filter.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/freeze.d.ts +15 -0
- package/lib/src/core/features/uIFeatures/beforeRender/freeze.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/freeze.js +119 -0
- package/lib/src/core/features/uIFeatures/beforeRender/freeze.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/grouping.d.ts +38 -0
- package/lib/src/core/features/uIFeatures/beforeRender/grouping.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/grouping.js +451 -0
- package/lib/src/core/features/uIFeatures/beforeRender/grouping.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/groupsorting.d.ts +7 -0
- package/lib/src/core/features/uIFeatures/beforeRender/groupsorting.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/groupsorting.js +36 -0
- package/lib/src/core/features/uIFeatures/beforeRender/groupsorting.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/moveListRecords.d.ts +7 -0
- package/lib/src/core/features/uIFeatures/beforeRender/moveListRecords.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/moveListRecords.js +76 -0
- package/lib/src/core/features/uIFeatures/beforeRender/moveListRecords.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/personalization.d.ts +16 -0
- package/lib/src/core/features/uIFeatures/beforeRender/personalization.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/personalization.js +306 -0
- package/lib/src/core/features/uIFeatures/beforeRender/personalization.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/prepareColumns.d.ts +7 -0
- package/lib/src/core/features/uIFeatures/beforeRender/prepareColumns.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/prepareColumns.js +59 -0
- package/lib/src/core/features/uIFeatures/beforeRender/prepareColumns.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/prepareRows.d.ts +7 -0
- package/lib/src/core/features/uIFeatures/beforeRender/prepareRows.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/prepareRows.js +30 -0
- package/lib/src/core/features/uIFeatures/beforeRender/prepareRows.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/refresh.d.ts +15 -0
- package/lib/src/core/features/uIFeatures/beforeRender/refresh.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/refresh.js +40 -0
- package/lib/src/core/features/uIFeatures/beforeRender/refresh.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/renderHeader.d.ts +7 -0
- package/lib/src/core/features/uIFeatures/beforeRender/renderHeader.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/renderHeader.js +21 -0
- package/lib/src/core/features/uIFeatures/beforeRender/renderHeader.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/resetFetch.d.ts +7 -0
- package/lib/src/core/features/uIFeatures/beforeRender/resetFetch.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/resetFetch.js +55 -0
- package/lib/src/core/features/uIFeatures/beforeRender/resetFetch.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/resizeGroupedDragDropColumn.d.ts +7 -0
- package/lib/src/core/features/uIFeatures/beforeRender/resizeGroupedDragDropColumn.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/resizeGroupedDragDropColumn.js +24 -0
- package/lib/src/core/features/uIFeatures/beforeRender/resizeGroupedDragDropColumn.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/rowDragDrop.d.ts +9 -0
- package/lib/src/core/features/uIFeatures/beforeRender/rowDragDrop.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/rowDragDrop.js +232 -0
- package/lib/src/core/features/uIFeatures/beforeRender/rowDragDrop.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/rowHeight.d.ts +7 -0
- package/lib/src/core/features/uIFeatures/beforeRender/rowHeight.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/rowHeight.js +18 -0
- package/lib/src/core/features/uIFeatures/beforeRender/rowHeight.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/rowSelect.d.ts +23 -0
- package/lib/src/core/features/uIFeatures/beforeRender/rowSelect.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/rowSelect.js +135 -0
- package/lib/src/core/features/uIFeatures/beforeRender/rowSelect.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/scrollToTop.d.ts +14 -0
- package/lib/src/core/features/uIFeatures/beforeRender/scrollToTop.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/scrollToTop.js +36 -0
- package/lib/src/core/features/uIFeatures/beforeRender/scrollToTop.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/stateHydration.d.ts +19 -0
- package/lib/src/core/features/uIFeatures/beforeRender/stateHydration.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/stateHydration.js +157 -0
- package/lib/src/core/features/uIFeatures/beforeRender/stateHydration.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/stateSanitization.d.ts +29 -0
- package/lib/src/core/features/uIFeatures/beforeRender/stateSanitization.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/stateSanitization.js +214 -0
- package/lib/src/core/features/uIFeatures/beforeRender/stateSanitization.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/toggleHeaderIcons.d.ts +11 -0
- package/lib/src/core/features/uIFeatures/beforeRender/toggleHeaderIcons.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/toggleHeaderIcons.js +26 -0
- package/lib/src/core/features/uIFeatures/beforeRender/toggleHeaderIcons.js.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/toggleSelectAllCheckbox.d.ts +12 -0
- package/lib/src/core/features/uIFeatures/beforeRender/toggleSelectAllCheckbox.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/beforeRender/toggleSelectAllCheckbox.js +51 -0
- package/lib/src/core/features/uIFeatures/beforeRender/toggleSelectAllCheckbox.js.map +1 -0
- package/lib/src/core/features/uIFeatures/index.d.ts +55 -0
- package/lib/src/core/features/uIFeatures/index.d.ts.map +1 -0
- package/lib/src/core/features/uIFeatures/index.js +95 -0
- package/lib/src/core/features/uIFeatures/index.js.map +1 -0
- package/lib/src/core/generators/ColumnGenerator.d.ts +349 -0
- package/lib/src/core/generators/ColumnGenerator.d.ts.map +1 -0
- package/lib/src/core/generators/ColumnGenerator.js +725 -0
- package/lib/src/core/generators/ColumnGenerator.js.map +1 -0
- package/lib/src/core/generators/ColumnGenerator.types.d.ts +149 -0
- package/lib/src/core/generators/ColumnGenerator.types.d.ts.map +1 -0
- package/lib/src/core/generators/ColumnGenerator.types.js +2 -0
- package/lib/src/core/generators/ColumnGenerator.types.js.map +1 -0
- package/lib/src/core/generators/GroupGenerator.d.ts +59 -0
- package/lib/src/core/generators/GroupGenerator.d.ts.map +1 -0
- package/lib/src/core/generators/GroupGenerator.js +64 -0
- package/lib/src/core/generators/GroupGenerator.js.map +1 -0
- package/lib/src/core/generators/RowGenerator.d.ts +97 -0
- package/lib/src/core/generators/RowGenerator.d.ts.map +1 -0
- package/lib/src/core/generators/RowGenerator.js +285 -0
- package/lib/src/core/generators/RowGenerator.js.map +1 -0
- package/lib/src/core/generators/RowGenerator.types.d.ts +95 -0
- package/lib/src/core/generators/RowGenerator.types.d.ts.map +1 -0
- package/lib/src/core/generators/RowGenerator.types.js +2 -0
- package/lib/src/core/generators/RowGenerator.types.js.map +1 -0
- package/lib/src/core/generators/ViewGenerator.d.ts +280 -0
- package/lib/src/core/generators/ViewGenerator.d.ts.map +1 -0
- package/lib/src/core/generators/ViewGenerator.js +585 -0
- package/lib/src/core/generators/ViewGenerator.js.map +1 -0
- package/lib/src/core/generators/ViewGenerator.types.d.ts +180 -0
- package/lib/src/core/generators/ViewGenerator.types.d.ts.map +1 -0
- package/lib/src/core/generators/ViewGenerator.types.js +2 -0
- package/lib/src/core/generators/ViewGenerator.types.js.map +1 -0
- package/lib/src/core/generators/__tests__/viewUtilityMockSetup.d.ts +69 -0
- package/lib/src/core/generators/__tests__/viewUtilityMockSetup.d.ts.map +1 -0
- package/lib/src/core/generators/__tests__/viewUtilityMockSetup.js +16 -0
- package/lib/src/core/generators/__tests__/viewUtilityMockSetup.js.map +1 -0
- package/lib/src/core/generators/viewUtilityMethods.d.ts +316 -0
- package/lib/src/core/generators/viewUtilityMethods.d.ts.map +1 -0
- package/lib/src/core/generators/viewUtilityMethods.js +542 -0
- package/lib/src/core/generators/viewUtilityMethods.js.map +1 -0
- package/lib/src/core/index.d.ts +7 -0
- package/lib/src/core/index.d.ts.map +1 -0
- package/lib/src/core/index.js +80 -0
- package/lib/src/core/index.js.map +1 -0
- package/lib/src/core/pubSub/events.d.ts +6 -0
- package/lib/src/core/pubSub/events.d.ts.map +1 -0
- package/lib/src/core/pubSub/events.js +6 -0
- package/lib/src/core/pubSub/events.js.map +1 -0
- package/lib/src/core/pubSub/index.d.ts +7 -0
- package/lib/src/core/pubSub/index.d.ts.map +1 -0
- package/lib/src/core/pubSub/index.js +35 -0
- package/lib/src/core/pubSub/index.js.map +1 -0
- package/lib/src/core/reducers/aggregation.d.ts +5 -0
- package/lib/src/core/reducers/aggregation.d.ts.map +1 -0
- package/lib/src/core/reducers/aggregation.js +35 -0
- package/lib/src/core/reducers/aggregation.js.map +1 -0
- package/lib/src/core/reducers/bootstrap.d.ts +5 -0
- package/lib/src/core/reducers/bootstrap.d.ts.map +1 -0
- package/lib/src/core/reducers/bootstrap.js +12 -0
- package/lib/src/core/reducers/bootstrap.js.map +1 -0
- package/lib/src/core/reducers/columnAlias.d.ts +5 -0
- package/lib/src/core/reducers/columnAlias.d.ts.map +1 -0
- package/lib/src/core/reducers/columnAlias.js +28 -0
- package/lib/src/core/reducers/columnAlias.js.map +1 -0
- package/lib/src/core/reducers/conditionalStyleFormat.d.ts +5 -0
- package/lib/src/core/reducers/conditionalStyleFormat.d.ts.map +1 -0
- package/lib/src/core/reducers/conditionalStyleFormat.js +13 -0
- package/lib/src/core/reducers/conditionalStyleFormat.js.map +1 -0
- package/lib/src/core/reducers/customColumn.d.ts +5 -0
- package/lib/src/core/reducers/customColumn.d.ts.map +1 -0
- package/lib/src/core/reducers/customColumn.js +40 -0
- package/lib/src/core/reducers/customColumn.js.map +1 -0
- package/lib/src/core/reducers/dragDrop.d.ts +6 -0
- package/lib/src/core/reducers/dragDrop.d.ts.map +1 -0
- package/lib/src/core/reducers/dragDrop.js +100 -0
- package/lib/src/core/reducers/dragDrop.js.map +1 -0
- package/lib/src/core/reducers/edit.d.ts +5 -0
- package/lib/src/core/reducers/edit.d.ts.map +1 -0
- package/lib/src/core/reducers/edit.js +65 -0
- package/lib/src/core/reducers/edit.js.map +1 -0
- package/lib/src/core/reducers/error.d.ts +69 -0
- package/lib/src/core/reducers/error.d.ts.map +1 -0
- package/lib/src/core/reducers/error.js +21 -0
- package/lib/src/core/reducers/error.js.map +1 -0
- package/lib/src/core/reducers/externalState.d.ts +5 -0
- package/lib/src/core/reducers/externalState.d.ts.map +1 -0
- package/lib/src/core/reducers/externalState.js +20 -0
- package/lib/src/core/reducers/externalState.js.map +1 -0
- package/lib/src/core/reducers/filter.d.ts +5 -0
- package/lib/src/core/reducers/filter.d.ts.map +1 -0
- package/lib/src/core/reducers/filter.js +29 -0
- package/lib/src/core/reducers/filter.js.map +1 -0
- package/lib/src/core/reducers/forceUpdate.d.ts +5 -0
- package/lib/src/core/reducers/forceUpdate.d.ts.map +1 -0
- package/lib/src/core/reducers/forceUpdate.js +25 -0
- package/lib/src/core/reducers/forceUpdate.js.map +1 -0
- package/lib/src/core/reducers/freeze.d.ts +5 -0
- package/lib/src/core/reducers/freeze.d.ts.map +1 -0
- package/lib/src/core/reducers/freeze.js +36 -0
- package/lib/src/core/reducers/freeze.js.map +1 -0
- package/lib/src/core/reducers/grouping.d.ts +5 -0
- package/lib/src/core/reducers/grouping.d.ts.map +1 -0
- package/lib/src/core/reducers/grouping.js +142 -0
- package/lib/src/core/reducers/grouping.js.map +1 -0
- package/lib/src/core/reducers/index.d.ts +5 -0
- package/lib/src/core/reducers/index.d.ts.map +1 -0
- package/lib/src/core/reducers/index.js +77 -0
- package/lib/src/core/reducers/index.js.map +1 -0
- package/lib/src/core/reducers/moveRecords.d.ts +5 -0
- package/lib/src/core/reducers/moveRecords.d.ts.map +1 -0
- package/lib/src/core/reducers/moveRecords.js +10 -0
- package/lib/src/core/reducers/moveRecords.js.map +1 -0
- package/lib/src/core/reducers/notificationsReducer.d.ts +4 -0
- package/lib/src/core/reducers/notificationsReducer.d.ts.map +1 -0
- package/lib/src/core/reducers/notificationsReducer.js +49 -0
- package/lib/src/core/reducers/notificationsReducer.js.map +1 -0
- package/lib/src/core/reducers/paginations.d.ts +5 -0
- package/lib/src/core/reducers/paginations.d.ts.map +1 -0
- package/lib/src/core/reducers/paginations.js +19 -0
- package/lib/src/core/reducers/paginations.js.map +1 -0
- package/lib/src/core/reducers/personalizationDirtyReducer.d.ts +5 -0
- package/lib/src/core/reducers/personalizationDirtyReducer.d.ts.map +1 -0
- package/lib/src/core/reducers/personalizationDirtyReducer.js +46 -0
- package/lib/src/core/reducers/personalizationDirtyReducer.js.map +1 -0
- package/lib/src/core/reducers/personalizationReducer.d.ts +5 -0
- package/lib/src/core/reducers/personalizationReducer.d.ts.map +1 -0
- package/lib/src/core/reducers/personalizationReducer.js +238 -0
- package/lib/src/core/reducers/personalizationReducer.js.map +1 -0
- package/lib/src/core/reducers/refresh.d.ts +5 -0
- package/lib/src/core/reducers/refresh.d.ts.map +1 -0
- package/lib/src/core/reducers/refresh.js +16 -0
- package/lib/src/core/reducers/refresh.js.map +1 -0
- package/lib/src/core/reducers/renderFormatter.d.ts +5 -0
- package/lib/src/core/reducers/renderFormatter.d.ts.map +1 -0
- package/lib/src/core/reducers/renderFormatter.js +22 -0
- package/lib/src/core/reducers/renderFormatter.js.map +1 -0
- package/lib/src/core/reducers/resize.d.ts +5 -0
- package/lib/src/core/reducers/resize.d.ts.map +1 -0
- package/lib/src/core/reducers/resize.js +32 -0
- package/lib/src/core/reducers/resize.js.map +1 -0
- package/lib/src/core/reducers/rowSelect.d.ts +5 -0
- package/lib/src/core/reducers/rowSelect.d.ts.map +1 -0
- package/lib/src/core/reducers/rowSelect.js +86 -0
- package/lib/src/core/reducers/rowSelect.js.map +1 -0
- package/lib/src/core/reducers/sanitize.d.ts +5 -0
- package/lib/src/core/reducers/sanitize.d.ts.map +1 -0
- package/lib/src/core/reducers/sanitize.js +21 -0
- package/lib/src/core/reducers/sanitize.js.map +1 -0
- package/lib/src/core/reducers/search.d.ts +5 -0
- package/lib/src/core/reducers/search.d.ts.map +1 -0
- package/lib/src/core/reducers/search.js +13 -0
- package/lib/src/core/reducers/search.js.map +1 -0
- package/lib/src/core/reducers/showHeaderIcons.d.ts +5 -0
- package/lib/src/core/reducers/showHeaderIcons.d.ts.map +1 -0
- package/lib/src/core/reducers/showHeaderIcons.js +13 -0
- package/lib/src/core/reducers/showHeaderIcons.js.map +1 -0
- package/lib/src/core/reducers/smallScreen.d.ts +5 -0
- package/lib/src/core/reducers/smallScreen.d.ts.map +1 -0
- package/lib/src/core/reducers/smallScreen.js +22 -0
- package/lib/src/core/reducers/smallScreen.js.map +1 -0
- package/lib/src/core/reducers/sort.d.ts +5 -0
- package/lib/src/core/reducers/sort.d.ts.map +1 -0
- package/lib/src/core/reducers/sort.js +71 -0
- package/lib/src/core/reducers/sort.js.map +1 -0
- package/lib/src/core/reducers/versioning/index.d.ts +16 -0
- package/lib/src/core/reducers/versioning/index.d.ts.map +1 -0
- package/lib/src/core/reducers/versioning/index.js +46 -0
- package/lib/src/core/reducers/versioning/index.js.map +1 -0
- package/lib/src/core/reducers/versioning/v1.d.ts +136 -0
- package/lib/src/core/reducers/versioning/v1.d.ts.map +1 -0
- package/lib/src/core/reducers/versioning/v1.js +156 -0
- package/lib/src/core/reducers/versioning/v1.js.map +1 -0
- package/lib/src/core/reducers/visibility.d.ts +5 -0
- package/lib/src/core/reducers/visibility.d.ts.map +1 -0
- package/lib/src/core/reducers/visibility.js +49 -0
- package/lib/src/core/reducers/visibility.js.map +1 -0
- package/lib/src/core/test/junitMocks.d.ts +756 -0
- package/lib/src/core/test/junitMocks.d.ts.map +1 -0
- package/lib/src/core/test/junitMocks.js +2923 -0
- package/lib/src/core/test/junitMocks.js.map +1 -0
- package/lib/src/core/test/samples/a11ySample.d.ts +8 -0
- package/lib/src/core/test/samples/a11ySample.d.ts.map +1 -0
- package/lib/src/core/test/samples/a11ySample.js +1131 -0
- package/lib/src/core/test/samples/a11ySample.js.map +1 -0
- package/lib/src/core/test/samples/a11ySampleWithLoaders.d.ts +8 -0
- package/lib/src/core/test/samples/a11ySampleWithLoaders.d.ts.map +1 -0
- package/lib/src/core/test/samples/a11ySampleWithLoaders.js +1134 -0
- package/lib/src/core/test/samples/a11ySampleWithLoaders.js.map +1 -0
- package/lib/src/core/test/samples/utils.d.ts +2 -0
- package/lib/src/core/test/samples/utils.d.ts.map +1 -0
- package/lib/src/core/test/samples/utils.js +9 -0
- package/lib/src/core/test/samples/utils.js.map +1 -0
- package/lib/src/core/test/utils/rowDragDropUtils.d.ts +20 -0
- package/lib/src/core/test/utils/rowDragDropUtils.d.ts.map +1 -0
- package/lib/src/core/test/utils/rowDragDropUtils.js +98 -0
- package/lib/src/core/test/utils/rowDragDropUtils.js.map +1 -0
- package/lib/src/core/utils/condition-utils.d.ts +15 -0
- package/lib/src/core/utils/condition-utils.d.ts.map +1 -0
- package/lib/src/core/utils/condition-utils.js +114 -0
- package/lib/src/core/utils/condition-utils.js.map +1 -0
- package/lib/src/core/utils/util.d.ts +380 -0
- package/lib/src/core/utils/util.d.ts.map +1 -0
- package/lib/src/core/utils/util.js +912 -0
- package/lib/src/core/utils/util.js.map +1 -0
- package/lib/src/core/utils/util.types.d.ts +43 -0
- package/lib/src/core/utils/util.types.d.ts.map +1 -0
- package/lib/src/core/utils/util.types.js +2 -0
- package/lib/src/core/utils/util.types.js.map +1 -0
- package/lib/types/ApiContext.types.d.ts +392 -0
- package/lib/types/ApiContext.types.d.ts.map +1 -0
- package/lib/types/ApiContext.types.js +2 -0
- package/lib/types/ApiContext.types.js.map +1 -0
- package/lib/types/Meta.types.d.ts +705 -0
- package/lib/types/Meta.types.d.ts.map +1 -0
- package/lib/types/Meta.types.js +37 -0
- package/lib/types/Meta.types.js.map +1 -0
- package/lib/types/RsCoreBootArgs.types.d.ts +103 -0
- package/lib/types/RsCoreBootArgs.types.d.ts.map +1 -0
- package/lib/types/RsCoreBootArgs.types.js +2 -0
- package/lib/types/RsCoreBootArgs.types.js.map +1 -0
- package/lib/types/State.types.d.ts +374 -0
- package/lib/types/State.types.d.ts.map +1 -0
- package/lib/types/State.types.js +5 -0
- package/lib/types/State.types.js.map +1 -0
- package/lib/types.d.ts +30 -0
- package/lib/types.d.ts.map +1 -0
- package/lib/types.js +2 -0
- package/lib/types.js.map +1 -0
- package/package.json +30 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Meta.types.d.ts","sourceRoot":"","sources":["../../types/Meta.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iFAAiF,CAAC;AACpH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gEAAgE,CAAC;AAErG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,KAAK,GAAG,MAAM,qCAAqC,CAAC;AAC3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AAIzE,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAS,MAAM,eAAe,CAAC;AAI3E,MAAM,WAAW,SAAS;IACxB,0DAA0D;IAC1D,IAAI,EAAE,MAAM,CAAC;IACb,qDAAqD;IACrD,EAAE,EAAE,MAAM,CAAC;IACX;;;;;OAKG;IACH,OAAO,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;CAChE;AAGD,UAAU,QAAQ;IAChB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,iBAAiB;IACzB,EAAE,EAAE,MAAM,CAAC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0,0 +1,37 @@
|
|
|
1
|
+
const CellAlign = {
|
|
2
|
+
LEFT: 'left',
|
|
3
|
+
RIGHT: 'right',
|
|
4
|
+
CENTER: 'center'
|
|
5
|
+
};
|
|
6
|
+
export const FieldType = {
|
|
7
|
+
TEXT: 'text',
|
|
8
|
+
NUMBER: 'number',
|
|
9
|
+
BOOLEAN: 'boolean',
|
|
10
|
+
DATE_TIME: 'datetime',
|
|
11
|
+
DATE: 'date',
|
|
12
|
+
TIME: 'time',
|
|
13
|
+
DATE_TIMELINE: 'Date',
|
|
14
|
+
DATE_ONLY: 'Date only',
|
|
15
|
+
URL: 'URL',
|
|
16
|
+
ACTION_FIELD_TYPE: 'action',
|
|
17
|
+
CUSTOM: 'custom',
|
|
18
|
+
CURRENCY: 'currency'
|
|
19
|
+
};
|
|
20
|
+
export const ROW_DENSITY = {
|
|
21
|
+
SHORT: '1',
|
|
22
|
+
MEDIUM: '2',
|
|
23
|
+
TALL: '3',
|
|
24
|
+
FULL_CONTENT: '4'
|
|
25
|
+
};
|
|
26
|
+
export const REPEATING_STRUCTURE_TEMPLATES = {
|
|
27
|
+
TABLE: 'Table',
|
|
28
|
+
GALLERY: 'Gallery',
|
|
29
|
+
TIMELINE: 'Timeline',
|
|
30
|
+
MAP: 'Map'
|
|
31
|
+
};
|
|
32
|
+
const SELECTION_MODE = {
|
|
33
|
+
SINGLE: 'single',
|
|
34
|
+
MULTI: 'multi',
|
|
35
|
+
MULTI_ON_HOVER: 'multi_on_hover'
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=Meta.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Meta.types.js","sourceRoot":"","sources":["../../types/Meta.types.ts"],"names":[],"mappings":"AAoDA,MAAM,SAAS,GAAG;IAChB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;CACR,CAAC;AAEX,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,UAAU;IACrB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,aAAa,EAAE,MAAM;IACrB,SAAS,EAAE,WAAW;IACtB,GAAG,EAAE,KAAK;IACV,iBAAiB,EAAE,QAAQ;IAC3B,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAqPX,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,KAAK,EAAE,GAAG;IACV,MAAM,EAAE,GAAG;IACX,IAAI,EAAE,GAAG;IACT,YAAY,EAAE,GAAG;CACT,CAAC;AAOX,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,GAAG,EAAE,KAAK;CACF,CAAC;AAEX,MAAM,cAAc,GAAG;IACrB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,cAAc,EAAE,gBAAgB;CACxB,CAAC","sourcesContent":["import type { Condition, DateFunctionsByType } from '@pega/cosmos-react-condition-builder';\nimport type { DateFunction } from '@pega/cosmos-react-condition-builder/lib/components/ConditionBuilder/core/types';\nimport type { OmitStrict } from '@pega/cosmos-react-core';\nimport type { ActivityObject } from '@pega/cosmos-react-work/lib/components/Timeline/Timeline.types';\n\nimport type { FilterConfig } from '../src/core/config/filterConfig';\nimport type Row from '../src/core/generators/RowGenerator';\nimport type { RowData } from '../src/core/generators/RowGenerator.types';\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\nimport type { ApiContext } from './ApiContext.types';\nimport type { AggregationType, SortDirection, State } from './State.types';\nimport type RsCoreBootArgs from './RsCoreBootArgs.types';\n/* eslint-enable @typescript-eslint/no-unused-vars */\n\nexport interface RowAction {\n /** A label to be displayed to end user for this action */\n text: string;\n /** An identifier to uniquely identify this action */\n id: string;\n /**\n * @param {RowData} rowContext - RowData where this row action is triggered.\n * @param refreshRow - A callback which can be used to trigger refreshRow\n * which will trigger 'fetchRowData' api of {@link ApiContext} to fetch latest data for a row, after action is completed.\n * @return {void} - void\n */\n onClick: (rowContext: RowData, refreshRow: () => void) => void;\n}\n\n// Meta and it's type START\ninterface Category {\n label: string;\n}\n\ninterface ContextMenuOption {\n id: string;\n icon?: string;\n label: string;\n show?: boolean;\n disabled?: boolean;\n onClick?: (target: HTMLElement) => void;\n}\n\nexport interface HierarchicalInfo {\n parentId?: string;\n materializedPathId?: string;\n targetId?: string;\n sortById?: string;\n columnId?: string;\n mode?: string;\n}\n\nconst CellAlign = {\n LEFT: 'left',\n RIGHT: 'right',\n CENTER: 'center'\n} as const;\n\nexport const FieldType = {\n TEXT: 'text',\n NUMBER: 'number',\n BOOLEAN: 'boolean',\n DATE_TIME: 'datetime',\n DATE: 'date',\n TIME: 'time',\n DATE_TIMELINE: 'Date',\n DATE_ONLY: 'Date only',\n URL: 'URL',\n ACTION_FIELD_TYPE: 'action',\n CUSTOM: 'custom',\n CURRENCY: 'currency'\n} as const;\n\nexport interface StyleFormat {\n /** A unique identifier for the style format. */\n id: string;\n /** The display name of the style format. */\n label: string;\n /** A collection of style properties that defines how the format will be applied. */\n config: {\n /** Background color to be applied.\n * Supports standard CSS color formats like below:\n * - Named colors: `'red'`, `'blue'`, `'green'`, `'yellow'`, `'black'`, `'white'`, etc.\n * - Hex codes: `'#RRGGBB'`, `'#RGB'`, `'#RRGGBBAA'`, `'#RGBA'`\n * - RGB: `'rgb(255, 0, 0)'`\n * - RGBA: `'rgba(255, 0, 0, 0.5)'`\n */\n backgroundColor: string;\n /**\n * Foreground (text) color to be applied.\n * Supports standard CSS color formats like below:\n * - Named colors: `'red'`, `'blue'`, `'green'`, `'yellow'`, `'black'`, `'white'`, etc.\n * - Hex codes: `'#RRGGBB'`, `'#RGB'`, `'#RRGGBBAA'`, `'#RGBA'`\n * - RGB: `'rgb(255, 0, 0)'`\n * - RGBA: `'rgba(255, 0, 0, 0.5)'`\n *\n * Optional\n */\n foregroundColor?: string;\n /**\n * An icon used as a visual indicator of the applied format.\n * Optional.\n */\n icon?: {\n /** The name of icon. */\n name: string;\n /** The color of icon.\n * Supports standard CSS color formats like below:\n * - Named colors: `'red'`, `'blue'`, `'green'`, `'yellow'`, `'black'`, `'white'`, etc.\n * - Hex codes: `'#RRGGBB'`, `'#RGB'`, `'#RRGGBBAA'`, `'#RGBA'`\n * - RGB: `'rgb(255, 0, 0)'`\n * - RGBA: `'rgba(255, 0, 0, 0.5)'`\n */\n color: string;\n };\n };\n}\n\n// For now, conditionalFormatting is exposed for fields only. In future, for rows the fieldName can be made optional.\nexport interface ConditionalStyleFormat {\n /** The condition that determines whether this style format should be applied. */\n condition: Condition;\n /** The ID of the style format, sourced from {@link RsCoreBootArgs.styleFormats}, that will be applied if the condition is met. */\n styleFormatId: StyleFormat['id'];\n /** The {@link FieldDef.name name of the fieldDef} to which this style format is applied. */\n fieldName: FieldDef['name'];\n}\n\nexport interface FieldDef {\n /** Actual field name in data */\n name: string;\n /** The type of the field will be used to derive cell renderer from {@link RsProps.renderFactory} */\n type: (typeof FieldType)[keyof typeof FieldType];\n /** Persistent ID of the field, typically the same as the name */\n id: string;\n /** A display name of that field */\n label: string;\n /**\n * Represents the category hierarchy of a field, if the field is nested within a parent property. The format should be an array of objects\n * where each index represents a level of the category hierarchy.\n * This structure is used to display the hierarchy of the field wherever necessary.\n * @example\n * ```json\n * [{label: 'categoryName'}]\n * ```\n */\n category?: Category[];\n /** Show {@link category} in header label. The header will be displayed in format {categoryName}.{label} where categoryName will be all the category's labels combined with .(dot) notation */\n showCategoryInHeaderLabel?: boolean;\n /** Defines Field whose value needs to be shown as HelperText e.g tooltip: 'pzDescription' field value for pyID field */\n tooltip?: string;\n /** Enable/Disable tooltip on column */\n showTooltip?: boolean;\n /** Width of the field in px */\n width?: number;\n /** Maximum width of the field in px */\n maxWidth?: number;\n /** Minimum width in pixels, field width cannot be resized below this threshold\n * @default 90\n */\n minWidth?: number;\n /** Allow filtering on this field\n * @default true\n */\n filter?: boolean;\n /** Filter popup presents a pick list to choose values from\n * @default false\n */\n filterPickList?: boolean;\n /** Allow sorting on this field\n * @default true\n */\n sort?: boolean;\n /** Allows sorting on load. If this property is present, then sortPriority is mandatory */\n sortDirection?: (typeof SortDirection)[keyof typeof SortDirection];\n /** Sets the priority on filed for multi sorting(1 takes highest precedence). Allows sorting on load. If this property is present, then sortDirection is mandatory */\n sortPriority?: number;\n /** Allow grouping on this field\n * @default true\n */\n grouping?: boolean;\n /** To set group order of the current field def */\n groupOrder?: number;\n /** To auto apply grouping on this field */\n grouped?: boolean;\n /** Choose date function {@link DateFunction} to group by when `grouped` is enabled for date/time field. Fallbacks to grouping by equality if undefined. */\n groupedDateFunction?: DateFunction;\n /** Allow resizing on this field\n * @default true\n */\n resize?: boolean;\n /** Allow reordering on this field\n * @default true\n */\n reorderFields?: boolean;\n /** Allow freezing of this field\n * @default true\n */\n freeze?: boolean;\n /** This field will resize to available excess width if set to true. Only first field definition will be honoured if configured on multiple fields. */\n fillAvailableSpace?: boolean;\n /** An asterisk will be added in the table header cell right after the label signifying it is required. */\n required?: boolean;\n /** Allow show/hide of this field\n * @default true\n */\n toggle?: boolean;\n /** Field shows in the view by default. Can be set to false to toggle it in later */\n show?: boolean;\n /** Show/hide field level Header action menu\n * @default true\n */\n showMenu?: boolean;\n /** Allow aggregation on this field\n * @default true\n */\n aggregation?: boolean;\n /** Allow combining of this field with other field\n * @default true\n */\n combineColumn?: boolean;\n /** Allow customizing column label and apply formatting\n * @default true\n */\n customizeColumn?: boolean;\n /** Disable context menu at cells of this field if set to true. Context menu is shown on right mouse click in the cell\n * @default false\n */\n noContextMenu?: boolean;\n /** This property extends options provided on right click in a cell context.\n * The default one's that the Repeating structures provide out of the box\n * are 'Copy Text', 'Paste Text' and 'Filter by this' */\n contextMenuOptions?: ContextMenuOption[];\n /** Name of a custom component that is made available through the render factory. Check section on cellRenderer */\n cellRenderer?: string;\n /** Format on the basis of this field data should be formatted. The formatter should be present in {@link RsCoreBootArgs.renderFormatterTypeMap renderFormatterTypeMap}. */\n formatter?: string;\n /** To enable autosize on this field.\n * @default true\n */\n autosize?: boolean;\n // TODO: Remove this parentPath field. Consumer should handle the corresponding logic.\n /** If a field is of type pageList, parentpath should contain the path of the parent to traverse the field. */\n parentPath?: string;\n // TODO: Remove this isPageListField field. Consumer should handle the corresponding logic.\n /** Set if the field is of type pageList */\n isPageListField?: boolean;\n /** Enable 'Hierarchical' display mode on column if hierarchicalInfo exists. */\n hierarchicalInfo?: HierarchicalInfo;\n /** Align cell to left/right/center. Values accepted: 'left', 'right', 'center' */\n cellAlign?: (typeof CellAlign)[keyof typeof CellAlign];\n /** Column name label in group header will be hidden when set to 'true'\n * @default false\n */\n hideGroupColumnNameLabel?: boolean;\n // TODO this is exposed to consumer but is not being considered. Check this.\n /** Filter options for various field type\n * @example\n * [\n {\n value: 'Equals',\n key: 'equals'\n },\n {\n value: 'Not equals',\n key: 'notEquals'\n },\n {\n value: 'After',\n key: 'greaterThan'\n },\n {\n value: 'Before',\n key: 'lessThan'\n },\n {\n value: 'On or after',\n key: 'greaterThanEquals'\n },\n {\n value: 'On or before',\n key: 'lessThanEquals'\n }\n ]\n */\n filterParams?: {\n value: string;\n key: string;\n }[];\n /** To enable inline editing for a field. */\n editable?: boolean;\n /** A read only extra info related to field can be preserved in meta.\\\n * This will never be manipulated by repeating structure, it will be passed as it is to {@link FieldDef.cellRenderer cellRenderer} as props as it is. */\n meta?: { [key: string | number | symbol]: any };\n /** A read only extra info related to field can be preserved in this.\\\n * This will never be manipulated by repeating structure, it will be passed as it is to {@link FieldDef.cellRenderer cellRenderer} as props as it is. */\n customObject?: { [key: string | number | symbol]: any };\n /** Indicates if the field is used as rowHeader for A11y of the row */\n isRowHeader?: boolean;\n /**\n * @private\n * This is for internal purpose only. Value for this will not be considered.\n *\n * A unique idHash.\n */\n idHash?: number;\n /** Indicates if this field is aggregated. If set to true, then first option from {@link Meta.aggregationType} will be picked as aggregation type for this field. */\n aggregated?: boolean;\n /** An array of conditional formats applied to the fieldDef.\n * @property {Condition} condition - The condition that determines whether the format should be applied.\n * @property {ConditionalStyleFormat} styleFormat - The {@link StyleFormat.id style format id} from `field` {@link RsCoreBootArgs.styleFormats styleFormats} applied to the cell if the condition evaluates to true.\n *\n * **Note**: *If the data satisfies multiple conditional style formats, the first matching conditional format will be used.*\n * */\n conditionalStyleFormats?: OmitStrict<ConditionalStyleFormat, 'fieldName'>[];\n}\nexport const ROW_DENSITY = {\n SHORT: '1',\n MEDIUM: '2',\n TALL: '3',\n FULL_CONTENT: '4'\n} as const;\n\ntype DisplayDensity = {\n id: (typeof ROW_DENSITY)[keyof typeof ROW_DENSITY];\n name: string;\n};\n\nexport const REPEATING_STRUCTURE_TEMPLATES = {\n TABLE: 'Table',\n GALLERY: 'Gallery',\n TIMELINE: 'Timeline',\n MAP: 'Map'\n} as const;\n\nconst SELECTION_MODE = {\n SINGLE: 'single',\n MULTI: 'multi',\n MULTI_ON_HOVER: 'multi_on_hover'\n} as const;\n\ntype TimelineFieldDef = Partial<Pick<FieldDef, 'name' | 'label' | 'type' | 'meta'>>;\n\ntype DisplayFeature = {\n filter?: boolean;\n grouping?: boolean;\n sort?: boolean;\n};\n\n/** Meta input to RS */\nexport interface Meta {\n /** Metadata for fields */\n fieldDefs: FieldDef[];\n /** itemKey for data identification */\n itemKey: string;\n /** Preset id of the current preset/personalization. This will be used to uniquely identify the preset on which the current view is dervied from */\n id: string;\n /** Preset name of the current preset/personalization. This will be displayed to end user */\n name: string;\n /** Array of fields(extra) that should be included in the query prepared for different api's in {@link ApiContext}.\n * `lists-client-api` package implicitly appends this in `select` field while preparing the query.\n */\n patchQueryFields?: string[];\n /** Array denoting sort operation order.\n *\n * @default\n * ```json\n * ['asc', 'desc', null]\n * ```\n */\n sortOrder?: (string | null)[];\n /**\n * A collection of row density options that users can select to adjust the height of rows based on the chosen density.\n *\n * @default\n * ```json\n * [\n * { \"name\": \"Short\", \"id\": \"1\" },\n * { \"name\": \"Medium\", \"id\": \"2\" },\n * { \"name\": \"Tall\", \"id\": \"3\" },\n * { \"name\": \"Full content\", \"id\": \"4\" }\n * ]\n * ```\n */\n displayDensity?: DisplayDensity[];\n /**\n * Configuration for the height of the view.\n *\n * @default\n * ```json\n * {\n * minHeight: 600\n * }\n * ```\n */\n height?: {\n /** The minimum height in pixels for the view or 'auto' */\n minHeight?: number | 'auto';\n /** Specifies an HTML element or a string query selector to which the view's height will be adjusted. If this property is used, the `height` property will be ignored */\n fitHeightToElement?: HTMLElement | string;\n /** Specifies an explicit height in pixels for the view. If set, the `fitHeightToElement` property will be ignored. */\n height?: number;\n /** A height adjustment value in pixels or 'deltaAdjustment' */\n deltaAdjustment?: number | 'deltaAdjustment';\n /** If true, the height will be adjusted responsively on window resize, but only if `fitHeightToElement` is provided. */\n autoSize?: boolean;\n /** The maximum height for the view, specified in pixels or as a CSS variable (e.g., `--view-height`) */\n maxHeight?: number | string;\n };\n /** Allow show/hide of fields\n *\n * @default true\n */\n toggleFieldVisibility?: boolean;\n /** Allow grouping on fields\n *\n * @default true\n */\n grouping?: boolean;\n /** Determines the view of a Repeating Structure\n *\n * @default 'Table'\n */\n template?: (typeof REPEATING_STRUCTURE_TEMPLATES)[keyof typeof REPEATING_STRUCTURE_TEMPLATES];\n /** Allow editing on fields and if enabled then row actions are also enabled.\n *\n * @default false\n */\n editing?: boolean;\n /** Allow deleting of rows.\n */\n deleting?: boolean;\n /** Allow personalization views\n * @default true\n */\n personalization?: boolean;\n /** Enable app default personalization options in Toolbar action menu.\n * If a personalization is set as App Default then that will be used as default personalization in repeating structures.\n * @default false\n * */\n enableAppDefault?: boolean;\n /**\n * Name to be shown for non personalized view.\n * @default 'Initial view'\n */\n nonPersonalizationViewName?: string;\n /** Allow field (column) reordering through a drag and drop action.\n * @default true\n */\n reorderFields?: boolean;\n /** Allow row reordering through a drag and drop action.\n * @default false\n */\n reorderItems?: boolean;\n /**\n * Allow to add a column for drag handle\n * @default false\n * @deprecated Use {@link rowReorderField}\n */\n dragHandle?: boolean;\n /**\n * Enables row reorder column. By default if enabled, it will be visible. To override the default behavior set show as false.\n */\n rowReorderField?: {\n show: boolean;\n };\n /**\n * Brings in a search widget to allow searching across all text type fields.\n * @default true\n */\n globalSearch?: boolean;\n /** Display toolbar on the view.\n * @default true\n */\n toolbar?: boolean;\n /** Display count in toolbar.\n * @default true\n */\n showCount?: boolean;\n /**\n * Row density id value from the \"displayDensity\" options prop above.\n * @default {@link ROW_DENSITY.SHORT}\n */\n defaultRowHeight?: (typeof ROW_DENSITY)[keyof typeof ROW_DENSITY];\n /**\n * Renders the 'Bulk actions' button in the table toolbar, which gets enabled on row selection.\n * @default false\n */\n allowBulkActions?: boolean;\n /**\n * Denotes the page size being passed in the case of rest backed data page\n * #JSDOC\n */\n pageSize?: number;\n /** Enables date-functions like MONTHS/WEEKS/... during Grouping and Filtering. ([Object structure](https://git.pega.io/projects/PS/repos/cosmos/browse/packages/cosmos-condition-builder/src/components/ConditionBuilder/ConditionBuilder.types.ts?until=dfcf607851276bfeb877e9fb2c8f55d4396fd8b7&untilPath=packages%2Fcosmos-condition-builder%2Fsrc%2Fcomponents%2FConditionBuilder%2FConditionBuilder.types.ts#79-85)) */\n dateFunctions?: DateFunctionsByType;\n /** Enabled Relative Dates, such as \"Last 7 days\" (Or) \"Current Year\", in filtering for the DateTime or Date_Only values\".\n * @default false\n */\n relativeDates?: boolean;\n /** Display footer on the view.\n * @default true\n */\n footer?: boolean;\n /**\n * Templates for dynamic fields (or) columns which are used to combine two columns with a template.\n * @default\n * ```json\n * [\n * { name: 'Comma separated', value: 'comma',selected: true },\n * { name: 'Space separated', value: 'space' },\n * { name: 'Multi line', value: 'multiline' },\n * { name: 'Forward slash', value: 'forwardslash' }\n * ]\n * ```\n */\n dynamicFieldTemplates?: {\n name: string;\n value: string;\n selected?: boolean;\n }[];\n /** Repeating Structure Title\n * @default '<label not set>'\n */\n title?: string;\n /** Repeating Structure Icon\n * @default 'picture'\n */\n icon?: string;\n /** Display Header Bar\n * @default false\n */\n headerBar?: boolean;\n /**\n * Display Respective Header Icons at field labels based on type\n * @default false\n */\n showHeaderIcons?: boolean;\n /** Indicates if freezing is allowed on Fields. */\n freezeFields?: boolean;\n /**\n * list of available static actions for an editable table with following properties\n * @example\n * ```json\n * [\n * {\n * text: 'Open in a new tab',\n * id: 'row-new-tab',\n * onClick: () => {}\n * }\n * ]\n * ```\n * @default\n * []\n */\n rowActions?: RowAction[];\n /** Decides type of row selection mode (radio for single/ checkbox for multi) possible values : single / multi / multi-on-hover */\n selectionMode?: (typeof SELECTION_MODE)[keyof typeof SELECTION_MODE];\n /** Displays select-all checkbox if selectionMode is multi-on-hover and the records count is not greater than threshold */\n selectionCountThreshold?: number;\n /** To Disable/Enable selection of rows */\n disableSelectionOnLoad?: boolean;\n /** To show asterisk(*) symbol on table header in case of Data Reference/Embedded views. (Note: This works perfectly if the personalization is off.) */\n requiredOnLoad?: boolean;\n /**\n * List of available static actions at table level (shown in toolbar/ headerbar) with following properties\n * [{ text: 'Add', tooltip: 'Add story', id: 'Add', onClick: () => {}}]\n */\n toolbarActions?: {\n text: string;\n id: string;\n onClick: () => void;\n tooltip: string;\n }[];\n /** Allow row reordering through a drag and drop action.\n * default value: false\n */\n moveListRecords?: boolean;\n /**\n * Action to support manual Refresh from consumer of Repeating structure. Whenever Repeating structure is notified with Refresh action It will show a banner by consuming this action info.\n Structure : {message: To show specific message on banner related to refresh notification, action : { text: Action button text, onClick: Function to be executed on click of action that will perform refresh of data based on consumer apiContext logic}}\n @example {message: 'New records have been added',action: { text: 'Click to refresh.', onClick: () => apiContext.refreshData() }}\n */\n refreshAction?: {\n message: string;\n action: { text: string; onClick: () => void };\n };\n /** The height of repeating structure is calculated on this parameter if provided. */\n numberOfRows?: number;\n /** Display views of repeating structures with full or condensed toolbar.\n * @default false\n * Default shows full toolbar.\n */\n basicMode?: boolean;\n /** Timezone which is passed to formatter\n * @default 'America/New_York'\n */\n timezone?: string;\n /** Locale which is passed to formatter function\n * @default 'en-US'\n */\n locale?: string;\n timelineFields?: {\n /** Timeline template title for display */\n title?: TimelineFieldDef;\n /** Timeline template date for display */\n date?: TimelineFieldDef;\n /** Timeline template status for display */\n status?: TimelineFieldDef & { getCustomContent?: (row: Row) => ActivityObject['status'] };\n /** Timeline template icon for display */\n icon?: TimelineFieldDef;\n /** Timeline template content for display */\n content?: TimelineFieldDef;\n };\n /** Map template field ids for display */\n mapFieldIds?: {\n /** Map template location field id for display */\n location?: FieldDef['id'];\n /** Map template label field id for display */\n label?: FieldDef['id'];\n /** Map template content field id for display */\n content?: FieldDef['id'];\n };\n /** A unique key for injectable filters component.\n * This key will be sent to {@link RsCoreBootArgs.renderFactory renderFactory} as 'type' to get a renderer for the external filters.\n * The renderer will be shown between Repeating structures body and repeating structures toolbar.\n * This key should be used in {@link State.externalState externalState} to populate state related to externalFilters.\n */\n externalFilters?: string;\n /** This key is used to show the 'Import Data' action in the repeating structures toolbar. It will only work for Launchpad.\n * On click, it will call {@link ApiContext.importCSVData importCSVData} open a modal allowing the user to upload a file.\n */\n showImportDataOption?: boolean;\n /** This key is used to show 'Export to Excel' action in repeating structure toolbar.\n * On click of it, {@link ApiContext.exportData exportData} api is called to export repeating structures data into excel file. */\n showExportToExcelOption?: boolean;\n /** This key is used to show 'Export to CSV' action in repeating structure toolbar.\n * On click of it, {@link ApiContext.exportDataToCSV exportDataToCSV} api is called to export repeating structures data into CSV file. */\n showExportToCSVOption?: boolean;\n /** To enable 'Freeze columns' action in toolbar action menu. This action triggers freezing of columns.This toolbar action considers {@link FieldDef.freeze freeze} key in FieldDef too.\n * @default true\n */\n enableFreezeColumns?: boolean;\n /** To enable 'Auto size columns' action in toolbar action menu. This action triggers auto size of columns.\n * @default true\n */\n autoSizeColumns?: boolean;\n /** To enable 'Reset column widths' action in toolbar action menu. This action triggers reset of columns width to its default state.\n * @default true\n */\n resetColumnWidths?: boolean;\n /** To enable 'Row density' action in toolbar action menu. This action triggers a popover menu item to select row density.This toolbar action considers {@link Meta.displayDensity displayDensity} key in Meta too.\n * @default true\n */\n rowDensity?: boolean;\n /** To show/hide filter,sort,group action buttons from end user.\\\n * **Note**: Above features will still work, it is just not available to end user to trigger.\n * @default\n * ```json\n * {\n * filter: true,\n * grouping: true,\n * sort: true\n * }\n * ```\n */\n displayFeatures?: DisplayFeature;\n /** Enables error column. The column will be visible when dataErrors are present in {@link State.errors errors}.\n * @default false\n * @deprecated Use {@link rowErrorField}\n */\n showErrorField?: boolean;\n /**\n * Enables error column. By default if enabled, it will be hidden. To override the default behavior set show as true.\n * The column will be visible when dataErrors are present in {@link State.errors errors}.\n */\n rowErrorField?: {\n show: boolean;\n };\n /** Id of the custom renderer that should be used to display customized columns cells. */\n customFieldRenderer?: string;\n /** Id of the custom renderer that should be used to display header cells. */\n customHeaderRenderer?: string;\n /**\n * @private\n * This is for internal purpose only. Value for this will not be considered.\n *\n * The default config of the FieldDef. This is used to normalize each {@link FieldDef} properties with its default value.\n */\n defaultFieldDef?: OmitStrict<FieldDef, 'name' | 'type' | 'id' | 'label'>;\n /**\n * @private\n * This is for internal purpose only. Value for this will not be considered.\n *\n * A set of comparator map used for filter operation on columns. */\n comparatorMap?: FilterConfig['comparatorMap'];\n /**\n * @private\n * This is for internal purpose only. Value for this will not be considered.\n *\n * Indicates if editing is enabled on Repeating structures.\n */\n editable?: boolean;\n /** A set of aggregation options available for a column on which the data can be aggregated.\n *\n * @default\n * ```json\n * {\n * number: ['Sum', 'Min', 'Max', 'Avg']\n * }\n * ```\n */\n aggregateOptions?: {\n [fieldType: string]: AggregationType[];\n };\n /** An optional change action that will be called whenever the personalization is switched. */\n personalizationChangeAction?: () => void;\n /** Predefined filters that will be applied on load of repeating structures. */\n filterExpression?: Condition;\n}\n"]}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import type { RowData } from '../src/core/generators/RowGenerator.types';
|
|
2
|
+
import type { ApiContext } from './ApiContext.types';
|
|
3
|
+
import type { FieldDef, StyleFormat, Meta } from './Meta.types';
|
|
4
|
+
import type { State } from './State.types';
|
|
5
|
+
export type ExternalStore = {
|
|
6
|
+
/** A state communication api to communicate latest state of repeating structure core to it's consumer. */
|
|
7
|
+
dispatch: (rsState: State) => void;
|
|
8
|
+
};
|
|
9
|
+
export type RenderFactoryWithProps = {
|
|
10
|
+
props: {
|
|
11
|
+
[key: string]: string | boolean | number | Date | Function | object;
|
|
12
|
+
} | null | undefined;
|
|
13
|
+
component: Function | null | undefined;
|
|
14
|
+
};
|
|
15
|
+
/** Options passed to formatter to convey locale, timezone, translate etc */
|
|
16
|
+
export interface FormatterOption {
|
|
17
|
+
/** Locale to be used for the formatter - jp_JP, fr_FR, en_US etc */
|
|
18
|
+
locale: string;
|
|
19
|
+
/** Current timezone to be considered for formatting values */
|
|
20
|
+
timezone: string;
|
|
21
|
+
/** Row data */
|
|
22
|
+
rowData: RowData[];
|
|
23
|
+
/** Field definition of the column */
|
|
24
|
+
fieldDef: FieldDef;
|
|
25
|
+
/** Translate function to translate strings */
|
|
26
|
+
translate: (label: string) => string;
|
|
27
|
+
}
|
|
28
|
+
export interface Formatters {
|
|
29
|
+
/** Formatter function mapping for different data types */
|
|
30
|
+
[key: string]: (inputValue: string, options: FormatterOption) => string;
|
|
31
|
+
}
|
|
32
|
+
/** Interface denoting render formatter structure */
|
|
33
|
+
export interface RenderFormatterType {
|
|
34
|
+
/** Label of the render formatter */
|
|
35
|
+
label: string;
|
|
36
|
+
/** Value of the render formatter */
|
|
37
|
+
value: string;
|
|
38
|
+
}
|
|
39
|
+
/** Map of the render formatters */
|
|
40
|
+
export interface RenderFormatterTypeMap {
|
|
41
|
+
[key: string]: RenderFormatterType[];
|
|
42
|
+
}
|
|
43
|
+
/** This property extends options provided in toolbar */
|
|
44
|
+
export interface ToolBarOptions {
|
|
45
|
+
/** Unique identifier for a toolbar action */
|
|
46
|
+
id: string;
|
|
47
|
+
/** Icon for the visual representation of the toolbar action */
|
|
48
|
+
icon?: any;
|
|
49
|
+
/** Label association with the action */
|
|
50
|
+
label: string;
|
|
51
|
+
/** Boolean to toggle the visibility */
|
|
52
|
+
show?: boolean;
|
|
53
|
+
/** Function to be executed upon clicking of the action */
|
|
54
|
+
onClick?: (e: Event) => void;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* This function is invoked when an item/entry is clicked.
|
|
58
|
+
* The corresponding item data is passed into the function on invocation
|
|
59
|
+
* @param data : RowData
|
|
60
|
+
* @returns void
|
|
61
|
+
*/
|
|
62
|
+
export type OnRowClickAction = (data: RowData) => void;
|
|
63
|
+
export default interface RsCoreBootArgs {
|
|
64
|
+
/** A meta data object to provide definition of repeating structure */
|
|
65
|
+
meta: Meta;
|
|
66
|
+
/** A set of api's provided to repeating structure core to establish communication b/w repeating structure and its consumer (e.g. providing data to repeating structure) */
|
|
67
|
+
apiContext: ApiContext;
|
|
68
|
+
/** A state communication api to communicate latest state of repeating structure core to it's consumer. */
|
|
69
|
+
dispatch: (rsState: State) => void;
|
|
70
|
+
/** To provide multiple variants of metadata of repeating structures. If multiple variations is provided make sure the first variation should be part of {@link meta} key and rest all should be fed to presets. */
|
|
71
|
+
presets: Meta[];
|
|
72
|
+
/**
|
|
73
|
+
* An initial state that can be provided to repeating structure to load repeating structure instance with that state.
|
|
74
|
+
* **Note**: If {@link Meta.personalization personalization} in meta is set to true then persistedInfo will be ignored.
|
|
75
|
+
*/
|
|
76
|
+
persistedInfo?: State;
|
|
77
|
+
/** A debug mode will print logs in console for the action dispatched by RsCore and the state derived after consumption of it. */
|
|
78
|
+
mode?: 'info' | 'debug' | 'normal';
|
|
79
|
+
/**
|
|
80
|
+
* This should be a factory function that returns component or component definition for specified type.
|
|
81
|
+
* @param type It is equal to value of {@link FieldDef.cellRenderer cellRenderer}(if added in fieldDefs of that column).
|
|
82
|
+
* @param field It is metadata which contains info configured for that column.
|
|
83
|
+
* @returns It should return a component definition (or an object that contains component definition).
|
|
84
|
+
* This component definition will be used by RepeatingStructures to render a cell with the component provided by renderFactory.
|
|
85
|
+
* If component definition is not provided from render factory or renderFactory is not provided to Repeating structures then cell will be rendered directly with value derived for the cell or the formatted value(if {@link formatters} are provided for that column)
|
|
86
|
+
*/
|
|
87
|
+
renderFactory?: (type: string, field?: FieldDef) => Pick<RenderFactoryWithProps, 'component'> | RenderFactoryWithProps;
|
|
88
|
+
/** A map of formatters that will be displayed to consumer to format a fieldDef in repeating structure */
|
|
89
|
+
renderFormatterTypeMap?: RenderFormatterTypeMap;
|
|
90
|
+
/** An object of formatter functions which formats the raw value. */
|
|
91
|
+
formatters?: Formatters;
|
|
92
|
+
/** A collection of style formats that can be applied for styling the data. */
|
|
93
|
+
styleFormats?: StyleFormat[];
|
|
94
|
+
/** A list of all the toolbar actions to be displayed at the top of a repeating structure */
|
|
95
|
+
toolBarOptions?: ToolBarOptions[];
|
|
96
|
+
/**
|
|
97
|
+
* This function is provided as ui props in row generator to attach it as click handler to a row in repeating structure
|
|
98
|
+
* @param {RowData} data - current row data
|
|
99
|
+
* @returns {void} void
|
|
100
|
+
*/
|
|
101
|
+
onRowClickAction?: OnRowClickAction;
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=RsCoreBootArgs.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RsCoreBootArgs.types.d.ts","sourceRoot":"","sources":["../../types/RsCoreBootArgs.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AAEzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,MAAM,aAAa,GAAG;IAC1B,0GAA0G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C,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf,0DAA0D;IAC1D,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;CAC9B;AAED;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;AAEvD,MAAM,CAAC,OAAO,WAAW,cAAc;IACrC,sEAAsE;IACtE,IAAI,EAAE,IAAI,CAAC;IACX,2KAA2K;IAC3K,UAAU,EAAE,UAAU,CAAC;IACvB,0GAA0G;IAC1G,QAAQ,EAAE,CAAC,OAAO,EAAE,KAAK,KAAK,IAAI,CAAC;IACnC,mNAAmN;IACnN,OAAO,EAAE,IAAI,EAAE,CAAC;IAChB;;;OAGG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC;IACtB,iIAAiI;IACjI,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;IACnC;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,CACd,IAAI,EAAE,MAAM,EACZ,KAAK,CAAC,EAAE,QAAQ,KACb,IAAI,CAAC,sBAAsB,EAAE,WAAW,CAAC,GAAG,sBAAsB,CAAC;IACxE,yGAAyG;IACzG,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;IAChD,oEAAoE;IACpE,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,8EAA8E;IAC9E,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,4FAA4F;IAC5F,cAAc,CAAC,EAAE,cAAc,EAAE,CAAC;IAClC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RsCoreBootArgs.types.js","sourceRoot":"","sources":["../../types/RsCoreBootArgs.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { RowData } from '../src/core/generators/RowGenerator.types';\n\nimport type { ApiContext } from './ApiContext.types';\nimport type { FieldDef, StyleFormat, Meta } from './Meta.types';\nimport type { State } from './State.types';\n\nexport type ExternalStore = {\n /** A state communication api to communicate latest state of repeating structure core to it's consumer. */\n dispatch: (rsState: State) => void;\n};\n\nexport type RenderFactoryWithProps = {\n props: { [key: string]: string | boolean | number | Date | Function | object } | null | undefined;\n component: Function | null | undefined;\n};\n\n/** Options passed to formatter to convey locale, timezone, translate etc */\nexport interface FormatterOption {\n /** Locale to be used for the formatter - jp_JP, fr_FR, en_US etc */\n locale: string;\n\n /** Current timezone to be considered for formatting values */\n timezone: string;\n\n /** Row data */\n rowData: RowData[];\n\n /** Field definition of the column */\n fieldDef: FieldDef;\n\n /** Translate function to translate strings */\n translate: (label: string) => string;\n}\n\nexport interface Formatters {\n /** Formatter function mapping for different data types */\n [key: string]: (inputValue: string, options: FormatterOption) => string;\n}\n\n/** Interface denoting render formatter structure */\nexport interface RenderFormatterType {\n /** Label of the render formatter */\n label: string;\n\n /** Value of the render formatter */\n value: string;\n}\n/** Map of the render formatters */\nexport interface RenderFormatterTypeMap {\n [key: string]: RenderFormatterType[];\n}\n\n/** This property extends options provided in toolbar */\nexport interface ToolBarOptions {\n /** Unique identifier for a toolbar action */\n id: string;\n\n /** Icon for the visual representation of the toolbar action */\n icon?: any;\n\n /** Label association with the action */\n label: string;\n\n /** Boolean to toggle the visibility */\n show?: boolean;\n\n /** Function to be executed upon clicking of the action */\n onClick?: (e: Event) => void;\n}\n\n/**\n * This function is invoked when an item/entry is clicked.\n * The corresponding item data is passed into the function on invocation\n * @param data : RowData\n * @returns void\n */\nexport type OnRowClickAction = (data: RowData) => void;\n\nexport default interface RsCoreBootArgs {\n /** A meta data object to provide definition of repeating structure */\n meta: Meta;\n /** A set of api's provided to repeating structure core to establish communication b/w repeating structure and its consumer (e.g. providing data to repeating structure) */\n apiContext: ApiContext;\n /** A state communication api to communicate latest state of repeating structure core to it's consumer. */\n dispatch: (rsState: State) => void;\n /** To provide multiple variants of metadata of repeating structures. If multiple variations is provided make sure the first variation should be part of {@link meta} key and rest all should be fed to presets. */\n presets: Meta[];\n /**\n * An initial state that can be provided to repeating structure to load repeating structure instance with that state.\n * **Note**: If {@link Meta.personalization personalization} in meta is set to true then persistedInfo will be ignored.\n */\n persistedInfo?: State;\n /** A debug mode will print logs in console for the action dispatched by RsCore and the state derived after consumption of it. */\n mode?: 'info' | 'debug' | 'normal';\n /**\n * This should be a factory function that returns component or component definition for specified type.\n * @param type It is equal to value of {@link FieldDef.cellRenderer cellRenderer}(if added in fieldDefs of that column).\n * @param field It is metadata which contains info configured for that column.\n * @returns It should return a component definition (or an object that contains component definition).\n * This component definition will be used by RepeatingStructures to render a cell with the component provided by renderFactory.\n * If component definition is not provided from render factory or renderFactory is not provided to Repeating structures then cell will be rendered directly with value derived for the cell or the formatted value(if {@link formatters} are provided for that column)\n */\n renderFactory?: (\n type: string,\n field?: FieldDef\n ) => Pick<RenderFactoryWithProps, 'component'> | RenderFactoryWithProps;\n /** A map of formatters that will be displayed to consumer to format a fieldDef in repeating structure */\n renderFormatterTypeMap?: RenderFormatterTypeMap;\n /** An object of formatter functions which formats the raw value. */\n formatters?: Formatters;\n /** A collection of style formats that can be applied for styling the data. */\n styleFormats?: StyleFormat[];\n /** A list of all the toolbar actions to be displayed at the top of a repeating structure */\n toolBarOptions?: ToolBarOptions[];\n /**\n * This function is provided as ui props in row generator to attach it as click handler to a row in repeating structure\n * @param {RowData} data - current row data\n * @returns {void} void\n */\n onRowClickAction?: OnRowClickAction;\n}\n"]}
|
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
import type { OmitStrict } from '@pega/cosmos-react-core';
|
|
2
|
+
import type { Condition, LeafCondition } from '@pega/cosmos-react-condition-builder';
|
|
3
|
+
import type { DateFunction } from '@pega/cosmos-react-condition-builder/lib/components/ConditionBuilder/core/types';
|
|
4
|
+
import type { personalizationProps } from '../src/core/reducers/personalizationReducer';
|
|
5
|
+
import type { RowData } from '../src/core/generators/RowGenerator.types';
|
|
6
|
+
import type { ROW_DENSITY, HierarchicalInfo, ConditionalStyleFormat } from './Meta.types';
|
|
7
|
+
/** Custom functions ungrouped type */
|
|
8
|
+
type Ungrouped = {
|
|
9
|
+
/**
|
|
10
|
+
* Ungrouped mode
|
|
11
|
+
* 'aggregate' - Aggregate remaining groups as others group
|
|
12
|
+
*/
|
|
13
|
+
mode: 'aggregate';
|
|
14
|
+
/** Others group label */
|
|
15
|
+
label: string;
|
|
16
|
+
} | {
|
|
17
|
+
/** 'exclude' - Exclude remaining values */
|
|
18
|
+
mode: 'exclude';
|
|
19
|
+
};
|
|
20
|
+
/** Boundaries for range grouping */
|
|
21
|
+
export type RangeBoundaries = 'include-lower-only' | 'include-upper-only' | 'include-both' | 'exclude-both';
|
|
22
|
+
/** Rhs type for range grouping to support boundaries */
|
|
23
|
+
interface RangeGroupingRhs<T extends number | string> {
|
|
24
|
+
rhs: {
|
|
25
|
+
value: T;
|
|
26
|
+
} | {
|
|
27
|
+
start: T;
|
|
28
|
+
end: T;
|
|
29
|
+
boundaries: RangeBoundaries;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
/** Modified leaf condition for Range grouping */
|
|
33
|
+
type RangeGroupingLeafCondition<T extends number | string> = OmitStrict<LeafCondition, 'rhs'> & RangeGroupingRhs<T>;
|
|
34
|
+
/** Aggregation types */
|
|
35
|
+
export type AggregationType = 'Sum' | 'Min' | 'Max' | 'Avg';
|
|
36
|
+
/** Aggregation state on the Table */
|
|
37
|
+
export type Aggregation = {
|
|
38
|
+
/** Column ID */
|
|
39
|
+
columnId: string;
|
|
40
|
+
/** Aggregation type */
|
|
41
|
+
type: AggregationType;
|
|
42
|
+
};
|
|
43
|
+
/** Custom grouping types */
|
|
44
|
+
export type CustomFunctions = 'TEXT_GROUPING' | 'RANGE_GROUPING';
|
|
45
|
+
/** Custom text grouping details applied on column */
|
|
46
|
+
export type TextGrouping = {
|
|
47
|
+
/** Custom function name */
|
|
48
|
+
type: 'TEXT_GROUPING';
|
|
49
|
+
/** Randomly generated unique id to distinguish separate custom functions on same field */
|
|
50
|
+
id: string;
|
|
51
|
+
/** Custom groups information */
|
|
52
|
+
groups: {
|
|
53
|
+
/** Group label */
|
|
54
|
+
label: string;
|
|
55
|
+
/** Group condition */
|
|
56
|
+
condition: LeafCondition;
|
|
57
|
+
}[];
|
|
58
|
+
/** Ungrouped information */
|
|
59
|
+
ungrouped: Ungrouped;
|
|
60
|
+
};
|
|
61
|
+
/** Custom range grouping details applied on column */
|
|
62
|
+
export type RangeGrouping = {
|
|
63
|
+
/** Custom function name */
|
|
64
|
+
type: 'RANGE_GROUPING';
|
|
65
|
+
/** Randomly generated unique id to distinguish separate custom functions on same field */
|
|
66
|
+
id: string;
|
|
67
|
+
/** Custom groups information */
|
|
68
|
+
groups: {
|
|
69
|
+
/** Group label */
|
|
70
|
+
label: string;
|
|
71
|
+
/** Group condition */
|
|
72
|
+
condition: RangeGroupingLeafCondition<number>;
|
|
73
|
+
}[];
|
|
74
|
+
/** Ungrouped information */
|
|
75
|
+
ungrouped: Ungrouped;
|
|
76
|
+
};
|
|
77
|
+
/** Custom interval grouping details applied on column */
|
|
78
|
+
export type IntervalGrouping = {
|
|
79
|
+
/** Custom function name */
|
|
80
|
+
type: 'INTERVAL_GROUPING';
|
|
81
|
+
/** Randomly generated unique id to distinguish separate custom functions on same field */
|
|
82
|
+
id: string;
|
|
83
|
+
/** interval */
|
|
84
|
+
interval: number;
|
|
85
|
+
/** boundaries */
|
|
86
|
+
boundaries: 'include-lower-only' | 'include-upper-only';
|
|
87
|
+
};
|
|
88
|
+
export declare const SortDirection: {
|
|
89
|
+
readonly ASC: "asc";
|
|
90
|
+
readonly DESC: "desc";
|
|
91
|
+
};
|
|
92
|
+
/** Group configuration on Table state */
|
|
93
|
+
export interface Group {
|
|
94
|
+
/** Column ID */
|
|
95
|
+
columnId: string;
|
|
96
|
+
/** Date function if grouping by a date part */
|
|
97
|
+
dateFunction?: DateFunction;
|
|
98
|
+
/** Custom function if applied on Text/Number column */
|
|
99
|
+
customFunction?: TextGrouping | RangeGrouping | IntervalGrouping;
|
|
100
|
+
/** Sort order of the grouped column. */
|
|
101
|
+
order: (typeof SortDirection)[keyof typeof SortDirection];
|
|
102
|
+
/** Current group level, starts with 0 for 1st level of grouping. */
|
|
103
|
+
level: number;
|
|
104
|
+
}
|
|
105
|
+
/** Sort configuration on Table state */
|
|
106
|
+
export interface Sort {
|
|
107
|
+
/** Column ID */
|
|
108
|
+
columnId: string;
|
|
109
|
+
/** Sort order */
|
|
110
|
+
order: (typeof SortDirection)[keyof typeof SortDirection];
|
|
111
|
+
/** Used to indicate the sequence in multi-sort */
|
|
112
|
+
sequence: number;
|
|
113
|
+
}
|
|
114
|
+
/** Group filter from the Table state */
|
|
115
|
+
export interface GroupFilter {
|
|
116
|
+
/** Start-index used for pagination */
|
|
117
|
+
groupFrom: number;
|
|
118
|
+
/** End-index used for pagination */
|
|
119
|
+
groupTo: number;
|
|
120
|
+
/**
|
|
121
|
+
* List of filters in the current branch of groupFilters.
|
|
122
|
+
* Each entry in the object corresponds to a single node in the given group's hierarchy
|
|
123
|
+
* groupBy can be in one of two patterns - `${columnId}`, `${columnId}||${dateFunction}`.
|
|
124
|
+
* Use getGroupFromKey from lists to safely split it.
|
|
125
|
+
*/
|
|
126
|
+
filters: {
|
|
127
|
+
[groupBy: string]: string | number;
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
export interface PersonalizationInfo {
|
|
131
|
+
name: string;
|
|
132
|
+
personalizationState: State;
|
|
133
|
+
isDefaultPreset?: boolean;
|
|
134
|
+
isPreset?: boolean;
|
|
135
|
+
title?: string;
|
|
136
|
+
template?: string;
|
|
137
|
+
markAsDefault?: boolean;
|
|
138
|
+
}
|
|
139
|
+
export interface Personalization {
|
|
140
|
+
allPersonalizations: {
|
|
141
|
+
[personalizationkey: string]: PersonalizationInfo;
|
|
142
|
+
};
|
|
143
|
+
defaultPersonalization: string;
|
|
144
|
+
active: string;
|
|
145
|
+
dirty?: boolean;
|
|
146
|
+
previousDefaultPersonalization?: string;
|
|
147
|
+
lastDeletedPersonalization?: PersonalizationInfo;
|
|
148
|
+
}
|
|
149
|
+
export interface Child extends CustomField {
|
|
150
|
+
fieldIds: string[];
|
|
151
|
+
children: Child[];
|
|
152
|
+
templateName: string;
|
|
153
|
+
}
|
|
154
|
+
/** This interface is the old implementation of custom fields which is required for state versioning reducer. */
|
|
155
|
+
interface OldCustomField {
|
|
156
|
+
children?: Child[];
|
|
157
|
+
templateName?: string;
|
|
158
|
+
}
|
|
159
|
+
export type CustomField = {
|
|
160
|
+
/**
|
|
161
|
+
* An array which contains the 2 join column id details and merge template details(a tuple of length 1 and type string) for those 2 columns
|
|
162
|
+
* Column Merge templates:
|
|
163
|
+
* - comma
|
|
164
|
+
* - space
|
|
165
|
+
* - multiline
|
|
166
|
+
* - forwardslash
|
|
167
|
+
*/
|
|
168
|
+
expression: (string | [string])[];
|
|
169
|
+
/** A unique id to identify the new column resulted from merging of 2 columns. */
|
|
170
|
+
id: string;
|
|
171
|
+
/** Label for the new column */
|
|
172
|
+
label: string;
|
|
173
|
+
/** Primary column id which is used to derive the {@link FieldDef FieldDefinition} of new column */
|
|
174
|
+
primaryColumnId: string;
|
|
175
|
+
} & OldCustomField;
|
|
176
|
+
export interface DataError {
|
|
177
|
+
/** itemKey of the row that has error */
|
|
178
|
+
[itemKeyValue: string | number]: {
|
|
179
|
+
/** error message for the row */
|
|
180
|
+
message: string;
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
export interface Errors {
|
|
184
|
+
/** errors related to row data */
|
|
185
|
+
dataErrors: DataError;
|
|
186
|
+
}
|
|
187
|
+
export type ResponsiveBreakpoint = {
|
|
188
|
+
[breakpoint in 'xs' | 'sm' | 'md' | 'lg' | 'xl']?: boolean;
|
|
189
|
+
};
|
|
190
|
+
export interface EditChangeSet {
|
|
191
|
+
/** Value of the itemKey {@link Meta. itemKey itemKey} of the row under which cell is edited. */
|
|
192
|
+
[itemKey: string]: {
|
|
193
|
+
/** {@link FieldDef.name name} of the field that is edited. */
|
|
194
|
+
[fieldName: string]: {
|
|
195
|
+
/** Updated cell value after edit. */
|
|
196
|
+
value: string | number | boolean | Date;
|
|
197
|
+
/** Current status of the edit process. 'pending' | 'inProgress' */
|
|
198
|
+
status: string;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
export interface Notification {
|
|
203
|
+
content: string;
|
|
204
|
+
id?: string;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* groupBy - field id of the column on which group is toggled.
|
|
208
|
+
* value(2D array) - The path of the group which is toggled.
|
|
209
|
+
* @example - Consider 3 columns Priority, Severity, Status and all are grouped.
|
|
210
|
+
* Expanding the first and second nested group header fully starting from Priority -> Severity -> Status will result in:
|
|
211
|
+
* {
|
|
212
|
+
* 'Priority': [['85 P'], ['95P']],
|
|
213
|
+
* 'Severity': [['85P', 'Low severity'], ['95P', 'Low severity']],
|
|
214
|
+
* 'Status': [['85P', 'Low severity', 'Pending'],['95P', 'Low severity', 'Pending']]
|
|
215
|
+
* }
|
|
216
|
+
*/
|
|
217
|
+
export interface GroupToggle {
|
|
218
|
+
[groupBy: string]: (string | number | boolean | Date)[][];
|
|
219
|
+
}
|
|
220
|
+
export interface RowSelectionChangeSet {
|
|
221
|
+
[key: string]: {
|
|
222
|
+
data: RowData;
|
|
223
|
+
status: string;
|
|
224
|
+
selected: boolean;
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
export interface EditInfo {
|
|
228
|
+
rowId?: string;
|
|
229
|
+
colId?: string;
|
|
230
|
+
}
|
|
231
|
+
export interface State {
|
|
232
|
+
/** Current order of the columns in the form of array of {@link FieldDef.id fieldDef id} */
|
|
233
|
+
colOrder?: string[];
|
|
234
|
+
/** Current widths of the columns in the form of array of fieldDef id and its current width */
|
|
235
|
+
columnWidths?: {
|
|
236
|
+
[key: string]: number;
|
|
237
|
+
};
|
|
238
|
+
/** Current frozen columns represented by array of fieldDef id */
|
|
239
|
+
freezeColumns?: string[];
|
|
240
|
+
/** Current hidden columns represented by array of fieldDef id */
|
|
241
|
+
hiddenColumns?: string[];
|
|
242
|
+
/** id value from displayDensity table meta configuration property */
|
|
243
|
+
selectedHeightOption?: (typeof ROW_DENSITY)[keyof typeof ROW_DENSITY];
|
|
244
|
+
/** Filter configuration in the ConditionBuilder format */
|
|
245
|
+
filterExpression?: Condition;
|
|
246
|
+
/** Aggregation configuration */
|
|
247
|
+
aggregationInfo?: Aggregation[];
|
|
248
|
+
/** Grouping configuration */
|
|
249
|
+
groups?: Group[];
|
|
250
|
+
/** Sorting configuration */
|
|
251
|
+
sortingOrder?: Sort[];
|
|
252
|
+
/** Search configuration */
|
|
253
|
+
search?: {
|
|
254
|
+
/** Search text */
|
|
255
|
+
query: string;
|
|
256
|
+
/** Fields to search in */
|
|
257
|
+
fields: string[];
|
|
258
|
+
};
|
|
259
|
+
/** Group filters applied when fetching data-rows */
|
|
260
|
+
groupFilters?: GroupFilter[];
|
|
261
|
+
/** Pagination applied when fetching data-rows */
|
|
262
|
+
paginationOptions?: {
|
|
263
|
+
[virtualizerId: string]: {
|
|
264
|
+
startIndex: number;
|
|
265
|
+
endIndex: number;
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
/** An object of features that needs to be forced triggered on next dispatch cycle of Repeating structures. */
|
|
269
|
+
forceUpdateFeatures?: {
|
|
270
|
+
/** Force re-render the Repeating structures on next dispatch */
|
|
271
|
+
forceRenderOnNextRun?: boolean;
|
|
272
|
+
/** Force re-calculate width of fields of the Repeating structures on next dispatch. */
|
|
273
|
+
forceCalculateAutoWidth?: boolean;
|
|
274
|
+
/** Force re-fetch selectedRows by calling {@link ApiContext.getSelectedRows getSelectedRows} apiContext. */
|
|
275
|
+
updateSelectedRows?: number;
|
|
276
|
+
};
|
|
277
|
+
/** An array of selected rows identified by value of {@link Meta.itemKey itemkey} for that rows */
|
|
278
|
+
selectedRows?: string[];
|
|
279
|
+
/** Repeating Structure {@link Meta.template templates} */
|
|
280
|
+
template?: string;
|
|
281
|
+
/**
|
|
282
|
+
* Preset identifier through which the current preset/personalized view is derived.
|
|
283
|
+
* For default preset or personalization dervied from default preset the value is equal to 'nonPersonalizationViewKey'
|
|
284
|
+
*/
|
|
285
|
+
presetId?: string;
|
|
286
|
+
/** Version of the state */
|
|
287
|
+
version?: string;
|
|
288
|
+
/** Personalization state of repeating structure */
|
|
289
|
+
personalization?: Personalization;
|
|
290
|
+
/** An array of custom fields generated using joining the columns */
|
|
291
|
+
customFields?: CustomField[];
|
|
292
|
+
/**
|
|
293
|
+
* This key holds the state of the external component within RS state.
|
|
294
|
+
* This state is never manipulated by Repeating structures. This key is personalizable. Currently it contains state related to {@link Meta.externalFilters}
|
|
295
|
+
*/
|
|
296
|
+
externalState?: {
|
|
297
|
+
[key: string]: object;
|
|
298
|
+
};
|
|
299
|
+
/**
|
|
300
|
+
* This holds formatter info for a given column id.
|
|
301
|
+
* key - {@link FieldDef.id columnId}
|
|
302
|
+
* value - Formatter name
|
|
303
|
+
*/
|
|
304
|
+
renderFormatter?: {
|
|
305
|
+
[key: string]: string;
|
|
306
|
+
};
|
|
307
|
+
/** It contains the alias for the column. Key is {@link FieldDef.id id} of the column, value is the alias name given to that column. */
|
|
308
|
+
columnAlias?: {
|
|
309
|
+
[key: string]: string;
|
|
310
|
+
};
|
|
311
|
+
/** Hierarchical groups info */
|
|
312
|
+
hierarchicalGroup?: HierarchicalInfo;
|
|
313
|
+
/** Groups are expanded or closed. */
|
|
314
|
+
allGroupsExpanded?: boolean;
|
|
315
|
+
/** If refresh is pending to be triggered. This will be set to true if consumer has {@link UtilityCallbacks.dispatchAction dispatched} an action of type 'NOTIFY_DATA_REFRESH' to RS. */
|
|
316
|
+
pendingRefresh?: number;
|
|
317
|
+
/** Stores the errors */
|
|
318
|
+
errors?: Errors;
|
|
319
|
+
/** {@link FieldDef.id Id} of the field for which filter is going to be deleted. */
|
|
320
|
+
clearColFilter?: string | null;
|
|
321
|
+
/** A 2D array that contains the expand/collapse info of groups
|
|
322
|
+
* * @example - Consider 3 columns Priority, Severity, Status and all are grouped.
|
|
323
|
+
* Expanding the first and second nested group header fully starting from Priority -> Severity -> Status will result in:
|
|
324
|
+
* {
|
|
325
|
+
* 'Priority': [['85 P'], ['95P']],
|
|
326
|
+
* 'Severity': [['85P', 'Low severity'], ['95P', 'Low severity']],
|
|
327
|
+
* 'Status': [['85P', 'Low severity', 'Pending'],['95P', 'Low severity', 'Pending']]
|
|
328
|
+
* }
|
|
329
|
+
*/
|
|
330
|
+
groupToggle?: GroupToggle;
|
|
331
|
+
/** Indicates if the header icon needs to be shown for header cells. */
|
|
332
|
+
showHeaderIcons?: boolean;
|
|
333
|
+
/** The current set of notifications on repeating structures. */
|
|
334
|
+
notifications?: Notification[];
|
|
335
|
+
/** Temporary change set for the selection of rows till the time the selected rows are not communicated to ApiContext via {@link ApiContext.setSelectedRows setSelectedRows}. */
|
|
336
|
+
rowSelectionChangeSet?: RowSelectionChangeSet;
|
|
337
|
+
/** The edit information of the cells. */
|
|
338
|
+
editInfo?: EditInfo;
|
|
339
|
+
/** Indicates the repeating structures is bootstraped. */
|
|
340
|
+
bootstrap?: boolean;
|
|
341
|
+
/** Triggers refresh on repeating structures. */
|
|
342
|
+
refresh?: number;
|
|
343
|
+
/** Indicates to show select all checkbox in repeating structures. */
|
|
344
|
+
showSelectAllCheckbox?: boolean;
|
|
345
|
+
/** Indicates to show confirmation action in repeating structures. */
|
|
346
|
+
showConfirmationAction?: boolean;
|
|
347
|
+
/** Stores the itemkey of the row which is being moved in drag drop operations. */
|
|
348
|
+
sourceKey?: string;
|
|
349
|
+
/** Stores the itemkey of the row on which the dragged row is dropped in drag drop operations. */
|
|
350
|
+
destinationKey?: string;
|
|
351
|
+
/** Set of features which should be skipped when running the queued action. */
|
|
352
|
+
featuresToAvoid?: string[];
|
|
353
|
+
/** Temporary change set information for edited row till the time data is not submitted to {@link ApiContext} */
|
|
354
|
+
changeSet?: EditChangeSet;
|
|
355
|
+
/** Stores the repeating structures body height. */
|
|
356
|
+
tableHeight?: number | string;
|
|
357
|
+
/** Stores the responsive breakpoints of DOM container */
|
|
358
|
+
responsive?: ResponsiveBreakpoint;
|
|
359
|
+
/**
|
|
360
|
+
* Array of conditional style formats.
|
|
361
|
+
*
|
|
362
|
+
* When set, make sure the following conditions must be met:
|
|
363
|
+
* - The available {@link RsCoreBootArgs.styleFormats styleFormats} must be passed to repeating structures as a prop.
|
|
364
|
+
* - The `styleFormatId` referenced in conditional style formats within {@link State.conditionalStyleFormats state} must belong to one of the {@link RsCoreBootArgs.styleFormats styleFormats}.
|
|
365
|
+
* - The {@link ApiContext.evaluateCondition evaluateCondition} API is optional. If the RS consumer wants to evaluate the condition itself, this API should be provided; otherwise, it is optional.
|
|
366
|
+
*
|
|
367
|
+
* **Note**: *For a given fieldName, if the data satisfies multiple conditional style formats, the first matching conditional format will be used.*
|
|
368
|
+
*/
|
|
369
|
+
conditionalStyleFormats?: ConditionalStyleFormat[];
|
|
370
|
+
}
|
|
371
|
+
export interface PersonalizedState extends Pick<State, (typeof personalizationProps)[number]> {
|
|
372
|
+
}
|
|
373
|
+
export {};
|
|
374
|
+
//# sourceMappingURL=State.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"State.types.d.ts","sourceRoot":"","sources":["../../types/State.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iFAAiF,CAAC;AAEpH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACxF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AAIzE,OAAO,KAAK,EACV,WAAW,EACX,gBAAgB,EAKhB,sBA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