@pega/lists-react 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 +219 -0
- package/SECURITY.md +11 -0
- package/lib/Core/Components/A11y/RepeatingStructureA11y.d.ts +23 -0
- package/lib/Core/Components/A11y/RepeatingStructureA11y.d.ts.map +1 -0
- package/lib/Core/Components/A11y/RepeatingStructureA11y.js +30 -0
- package/lib/Core/Components/A11y/RepeatingStructureA11y.js.map +1 -0
- package/lib/Core/Components/AggregateMenu.d.ts +23 -0
- package/lib/Core/Components/AggregateMenu.d.ts.map +1 -0
- package/lib/Core/Components/AggregateMenu.js +73 -0
- package/lib/Core/Components/AggregateMenu.js.map +1 -0
- package/lib/Core/Components/AggregatorCell.d.ts +23 -0
- package/lib/Core/Components/AggregatorCell.d.ts.map +1 -0
- package/lib/Core/Components/AggregatorCell.js +29 -0
- package/lib/Core/Components/AggregatorCell.js.map +1 -0
- package/lib/Core/Components/ColumnResizer.d.ts +13 -0
- package/lib/Core/Components/ColumnResizer.d.ts.map +1 -0
- package/lib/Core/Components/ColumnResizer.js +12 -0
- package/lib/Core/Components/ColumnResizer.js.map +1 -0
- package/lib/Core/Components/ConfirmationModal.d.ts +27 -0
- package/lib/Core/Components/ConfirmationModal.d.ts.map +1 -0
- package/lib/Core/Components/ConfirmationModal.js +36 -0
- package/lib/Core/Components/ConfirmationModal.js.map +1 -0
- package/lib/Core/Components/ContextMenu/ContextMenuContainer.d.ts +17 -0
- package/lib/Core/Components/ContextMenu/ContextMenuContainer.d.ts.map +1 -0
- package/lib/Core/Components/ContextMenu/ContextMenuContainer.js +209 -0
- package/lib/Core/Components/ContextMenu/ContextMenuContainer.js.map +1 -0
- package/lib/Core/Components/ContextMenu/CopyPaste.d.ts +3 -0
- package/lib/Core/Components/ContextMenu/CopyPaste.d.ts.map +1 -0
- package/lib/Core/Components/ContextMenu/CopyPaste.js +22 -0
- package/lib/Core/Components/ContextMenu/CopyPaste.js.map +1 -0
- package/lib/Core/Components/ContextMenu/QuickFilter.d.ts +4 -0
- package/lib/Core/Components/ContextMenu/QuickFilter.d.ts.map +1 -0
- package/lib/Core/Components/ContextMenu/QuickFilter.js +82 -0
- package/lib/Core/Components/ContextMenu/QuickFilter.js.map +1 -0
- package/lib/Core/Components/DateValueDisplay.d.ts +13 -0
- package/lib/Core/Components/DateValueDisplay.d.ts.map +1 -0
- package/lib/Core/Components/DateValueDisplay.js +71 -0
- package/lib/Core/Components/DateValueDisplay.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/Badge.d.ts +14 -0
- package/lib/Core/Components/DefaultComponents/Badge.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/Badge.js +15 -0
- package/lib/Core/Components/DefaultComponents/Badge.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/CardItem.d.ts +3 -0
- package/lib/Core/Components/DefaultComponents/CardItem.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/CardItem.js +78 -0
- package/lib/Core/Components/DefaultComponents/CardItem.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/Cell.d.ts +15 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/Cell.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/Cell.js +18 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/Cell.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/CheckCross.d.ts +5 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/CheckCross.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/CheckCross.js +25 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/CheckCross.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/Comma.d.ts +13 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/Comma.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/Comma.js +11 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/Comma.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/CustomCellWrapper.d.ts +3 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/CustomCellWrapper.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/CustomCellWrapper.js +10 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/CustomCellWrapper.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/ForwardSlash.d.ts +13 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/ForwardSlash.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/ForwardSlash.js +11 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/ForwardSlash.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/MultiLine.d.ts +13 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/MultiLine.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/MultiLine.js +15 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/MultiLine.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/Space.d.ts +13 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/Space.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/Space.js +11 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/Space.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/index.d.ts +12 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/index.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/index.js +11 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/index.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/CustomCell.d.ts +18 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/CustomCell.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/CustomCell.js +51 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/CustomCell.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/DefaultTextRenderer.d.ts +13 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/DefaultTextRenderer.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/DefaultTextRenderer.js +25 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/DefaultTextRenderer.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/DateTime.d.ts +12 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/DateTime.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/DateTime.js +35 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/DateTime.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/Radio.d.ts +15 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/Radio.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/Radio.js +49 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/Radio.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/TextInput.d.ts +12 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/TextInput.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/TextInput.js +44 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/TextInput.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/index.d.ts +16 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/index.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/index.js +64 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/index.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/Link.d.ts +7 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/Link.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/Link.js +23 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/Link.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/Operator.d.ts +19 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/Operator.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/Operator.js +37 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/Operator.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/RichText.d.ts +17 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/RichText.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/RichText.js +50 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/RichText.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/RowActionMenu.d.ts +13 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/RowActionMenu.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/RowActionMenu.js +67 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/RowActionMenu.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/RowDragDropHandle.d.ts +11 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/RowDragDropHandle.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/RowDragDropHandle.js +11 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/RowDragDropHandle.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/RowError.d.ts +11 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/RowError.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/RowError.js +13 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/RowError.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/RowSelectHandle.d.ts +15 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/RowSelectHandle.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/RowSelectHandle.js +57 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/RowSelectHandle.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/index.d.ts +52 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/index.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/index.js +29 -0
- package/lib/Core/Components/DefaultComponents/CellRenderers/index.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/EmptyContainer.d.ts +3 -0
- package/lib/Core/Components/DefaultComponents/EmptyContainer.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/EmptyContainer.js +25 -0
- package/lib/Core/Components/DefaultComponents/EmptyContainer.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/Filter.d.ts +15 -0
- package/lib/Core/Components/DefaultComponents/Filter.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/Filter.js +18 -0
- package/lib/Core/Components/DefaultComponents/Filter.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/HeaderCell.d.ts +17 -0
- package/lib/Core/Components/DefaultComponents/HeaderCell.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/HeaderCell.js +21 -0
- package/lib/Core/Components/DefaultComponents/HeaderCell.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/LoadingIndicator.d.ts +3 -0
- package/lib/Core/Components/DefaultComponents/LoadingIndicator.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/LoadingIndicator.js +9 -0
- package/lib/Core/Components/DefaultComponents/LoadingIndicator.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/PersonalizationCreateEdit.d.ts +24 -0
- package/lib/Core/Components/DefaultComponents/PersonalizationCreateEdit.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/PersonalizationCreateEdit.js +102 -0
- package/lib/Core/Components/DefaultComponents/PersonalizationCreateEdit.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/PersonalizationDeleteConfirmation.d.ts +16 -0
- package/lib/Core/Components/DefaultComponents/PersonalizationDeleteConfirmation.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/PersonalizationDeleteConfirmation.js +26 -0
- package/lib/Core/Components/DefaultComponents/PersonalizationDeleteConfirmation.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/PersonalizationSelector.d.ts +25 -0
- package/lib/Core/Components/DefaultComponents/PersonalizationSelector.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/PersonalizationSelector.js +85 -0
- package/lib/Core/Components/DefaultComponents/PersonalizationSelector.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/PersonalizationUnsavedWarning.d.ts +16 -0
- package/lib/Core/Components/DefaultComponents/PersonalizationUnsavedWarning.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/PersonalizationUnsavedWarning.js +26 -0
- package/lib/Core/Components/DefaultComponents/PersonalizationUnsavedWarning.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/RowHeight.d.ts +13 -0
- package/lib/Core/Components/DefaultComponents/RowHeight.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/RowHeight.js +20 -0
- package/lib/Core/Components/DefaultComponents/RowHeight.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/SelectAllCheckbox.d.ts +15 -0
- package/lib/Core/Components/DefaultComponents/SelectAllCheckbox.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/SelectAllCheckbox.js +40 -0
- package/lib/Core/Components/DefaultComponents/SelectAllCheckbox.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/Sort.d.ts +15 -0
- package/lib/Core/Components/DefaultComponents/Sort.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/Sort.js +21 -0
- package/lib/Core/Components/DefaultComponents/Sort.js.map +1 -0
- package/lib/Core/Components/DefaultComponents/index.d.ts +96 -0
- package/lib/Core/Components/DefaultComponents/index.d.ts.map +1 -0
- package/lib/Core/Components/DefaultComponents/index.js +53 -0
- package/lib/Core/Components/DefaultComponents/index.js.map +1 -0
- package/lib/Core/Components/DynamicFieldConfiguration.d.ts +23 -0
- package/lib/Core/Components/DynamicFieldConfiguration.d.ts.map +1 -0
- package/lib/Core/Components/DynamicFieldConfiguration.js +92 -0
- package/lib/Core/Components/DynamicFieldConfiguration.js.map +1 -0
- package/lib/Core/Components/EmptyContainer.d.ts +5 -0
- package/lib/Core/Components/EmptyContainer.d.ts.map +1 -0
- package/lib/Core/Components/EmptyContainer.js +12 -0
- package/lib/Core/Components/EmptyContainer.js.map +1 -0
- package/lib/Core/Components/FieldTypeIcon.d.ts +13 -0
- package/lib/Core/Components/FieldTypeIcon.d.ts.map +1 -0
- package/lib/Core/Components/FieldTypeIcon.js +17 -0
- package/lib/Core/Components/FieldTypeIcon.js.map +1 -0
- package/lib/Core/Components/Filters/AdvanceFilter.d.ts +16 -0
- package/lib/Core/Components/Filters/AdvanceFilter.d.ts.map +1 -0
- package/lib/Core/Components/Filters/AdvanceFilter.js +29 -0
- package/lib/Core/Components/Filters/AdvanceFilter.js.map +1 -0
- package/lib/Core/Components/Filters/BooleanFilter.d.ts +17 -0
- package/lib/Core/Components/Filters/BooleanFilter.d.ts.map +1 -0
- package/lib/Core/Components/Filters/BooleanFilter.js +43 -0
- package/lib/Core/Components/Filters/BooleanFilter.js.map +1 -0
- package/lib/Core/Components/Filters/CommonFilter.d.ts +17 -0
- package/lib/Core/Components/Filters/CommonFilter.d.ts.map +1 -0
- package/lib/Core/Components/Filters/CommonFilter.js +67 -0
- package/lib/Core/Components/Filters/CommonFilter.js.map +1 -0
- package/lib/Core/Components/Filters/Filter.d.ts +18 -0
- package/lib/Core/Components/Filters/Filter.d.ts.map +1 -0
- package/lib/Core/Components/Filters/Filter.js +20 -0
- package/lib/Core/Components/Filters/Filter.js.map +1 -0
- package/lib/Core/Components/Filters/FilterMenu.d.ts +15 -0
- package/lib/Core/Components/Filters/FilterMenu.d.ts.map +1 -0
- package/lib/Core/Components/Filters/FilterMenu.js +32 -0
- package/lib/Core/Components/Filters/FilterMenu.js.map +1 -0
- package/lib/Core/Components/Filters/FilterType.d.ts +18 -0
- package/lib/Core/Components/Filters/FilterType.d.ts.map +1 -0
- package/lib/Core/Components/Filters/FilterType.js +35 -0
- package/lib/Core/Components/Filters/FilterType.js.map +1 -0
- package/lib/Core/Components/Filters/Hooks/useFilterSubmit.d.ts +5 -0
- package/lib/Core/Components/Filters/Hooks/useFilterSubmit.d.ts.map +1 -0
- package/lib/Core/Components/Filters/Hooks/useFilterSubmit.js +10 -0
- package/lib/Core/Components/Filters/Hooks/useFilterSubmit.js.map +1 -0
- package/lib/Core/Components/Filters/Hooks/useValidRhsTypes.d.ts +2 -0
- package/lib/Core/Components/Filters/Hooks/useValidRhsTypes.d.ts.map +1 -0
- package/lib/Core/Components/Filters/Hooks/useValidRhsTypes.js +14 -0
- package/lib/Core/Components/Filters/Hooks/useValidRhsTypes.js.map +1 -0
- package/lib/Core/Components/Filters/InputWrapper.d.ts +28 -0
- package/lib/Core/Components/Filters/InputWrapper.d.ts.map +1 -0
- package/lib/Core/Components/Filters/InputWrapper.js +40 -0
- package/lib/Core/Components/Filters/InputWrapper.js.map +1 -0
- package/lib/Core/Components/Filters/SelectFilter.d.ts +17 -0
- package/lib/Core/Components/Filters/SelectFilter.d.ts.map +1 -0
- package/lib/Core/Components/Filters/SelectFilter.js +116 -0
- package/lib/Core/Components/Filters/SelectFilter.js.map +1 -0
- package/lib/Core/Components/Filters/SimpleFilter.d.ts +17 -0
- package/lib/Core/Components/Filters/SimpleFilter.d.ts.map +1 -0
- package/lib/Core/Components/Filters/SimpleFilter.js +38 -0
- package/lib/Core/Components/Filters/SimpleFilter.js.map +1 -0
- package/lib/Core/Components/Filters/config.d.ts +75 -0
- package/lib/Core/Components/Filters/config.d.ts.map +1 -0
- package/lib/Core/Components/Filters/config.js +244 -0
- package/lib/Core/Components/Filters/config.js.map +1 -0
- package/lib/Core/Components/Filters/styles.d.ts +3 -0
- package/lib/Core/Components/Filters/styles.d.ts.map +1 -0
- package/lib/Core/Components/Filters/styles.js +30 -0
- package/lib/Core/Components/Filters/styles.js.map +1 -0
- package/lib/Core/Components/Footer.d.ts +13 -0
- package/lib/Core/Components/Footer.d.ts.map +1 -0
- package/lib/Core/Components/Footer.js +22 -0
- package/lib/Core/Components/Footer.js.map +1 -0
- package/lib/Core/Components/FooterAggregators.d.ts +16 -0
- package/lib/Core/Components/FooterAggregators.d.ts.map +1 -0
- package/lib/Core/Components/FooterAggregators.js +29 -0
- package/lib/Core/Components/FooterAggregators.js.map +1 -0
- package/lib/Core/Components/FreezeLine.d.ts +13 -0
- package/lib/Core/Components/FreezeLine.d.ts.map +1 -0
- package/lib/Core/Components/FreezeLine.js +13 -0
- package/lib/Core/Components/FreezeLine.js.map +1 -0
- package/lib/Core/Components/GroupRenderer.d.ts +15 -0
- package/lib/Core/Components/GroupRenderer.d.ts.map +1 -0
- package/lib/Core/Components/GroupRenderer.js +212 -0
- package/lib/Core/Components/GroupRenderer.js.map +1 -0
- package/lib/Core/Components/Grouping/GroupingMenu.d.ts +15 -0
- package/lib/Core/Components/Grouping/GroupingMenu.d.ts.map +1 -0
- package/lib/Core/Components/Grouping/GroupingMenu.js +66 -0
- package/lib/Core/Components/Grouping/GroupingMenu.js.map +1 -0
- package/lib/Core/Components/HeaderCell.d.ts +17 -0
- package/lib/Core/Components/HeaderCell.d.ts.map +1 -0
- package/lib/Core/Components/HeaderCell.js +30 -0
- package/lib/Core/Components/HeaderCell.js.map +1 -0
- package/lib/Core/Components/HeaderMenu/actions.d.ts +15 -0
- package/lib/Core/Components/HeaderMenu/actions.d.ts.map +1 -0
- package/lib/Core/Components/HeaderMenu/actions.js +211 -0
- package/lib/Core/Components/HeaderMenu/actions.js.map +1 -0
- package/lib/Core/Components/HeaderMenu/index.d.ts +23 -0
- package/lib/Core/Components/HeaderMenu/index.d.ts.map +1 -0
- package/lib/Core/Components/HeaderMenu/index.js +187 -0
- package/lib/Core/Components/HeaderMenu/index.js.map +1 -0
- package/lib/Core/Components/HierarchicalCell.d.ts +23 -0
- package/lib/Core/Components/HierarchicalCell.d.ts.map +1 -0
- package/lib/Core/Components/HierarchicalCell.js +30 -0
- package/lib/Core/Components/HierarchicalCell.js.map +1 -0
- package/lib/Core/Components/HierarchicalGroupFooters.d.ts +32 -0
- package/lib/Core/Components/HierarchicalGroupFooters.d.ts.map +1 -0
- package/lib/Core/Components/HierarchicalGroupFooters.js +58 -0
- package/lib/Core/Components/HierarchicalGroupFooters.js.map +1 -0
- package/lib/Core/Components/HierarchicalGroupRenderer.d.ts +31 -0
- package/lib/Core/Components/HierarchicalGroupRenderer.d.ts.map +1 -0
- package/lib/Core/Components/HierarchicalGroupRenderer.js +230 -0
- package/lib/Core/Components/HierarchicalGroupRenderer.js.map +1 -0
- package/lib/Core/Components/LoadingIndicator.d.ts +15 -0
- package/lib/Core/Components/LoadingIndicator.d.ts.map +1 -0
- package/lib/Core/Components/LoadingIndicator.js +15 -0
- package/lib/Core/Components/LoadingIndicator.js.map +1 -0
- package/lib/Core/Components/NotificationManager.d.ts +13 -0
- package/lib/Core/Components/NotificationManager.d.ts.map +1 -0
- package/lib/Core/Components/NotificationManager.js +44 -0
- package/lib/Core/Components/NotificationManager.js.map +1 -0
- package/lib/Core/Components/RFColumnConfigurator.d.ts +19 -0
- package/lib/Core/Components/RFColumnConfigurator.d.ts.map +1 -0
- package/lib/Core/Components/RFColumnConfigurator.js +90 -0
- package/lib/Core/Components/RFColumnConfigurator.js.map +1 -0
- package/lib/Core/Components/RSWrapper/HeaderBarGadget.d.ts +13 -0
- package/lib/Core/Components/RSWrapper/HeaderBarGadget.d.ts.map +1 -0
- package/lib/Core/Components/RSWrapper/HeaderBarGadget.js +52 -0
- package/lib/Core/Components/RSWrapper/HeaderBarGadget.js.map +1 -0
- package/lib/Core/Components/RSWrapper/Personalization.d.ts +13 -0
- package/lib/Core/Components/RSWrapper/Personalization.d.ts.map +1 -0
- package/lib/Core/Components/RSWrapper/Personalization.js +61 -0
- package/lib/Core/Components/RSWrapper/Personalization.js.map +1 -0
- package/lib/Core/Components/RSWrapper/__mocks__/uuid.d.ts +2 -0
- package/lib/Core/Components/RSWrapper/__mocks__/uuid.d.ts.map +1 -0
- package/lib/Core/Components/RSWrapper/__mocks__/uuid.js +4 -0
- package/lib/Core/Components/RSWrapper/__mocks__/uuid.js.map +1 -0
- package/lib/Core/Components/RSWrapper/index.d.ts +6 -0
- package/lib/Core/Components/RSWrapper/index.d.ts.map +1 -0
- package/lib/Core/Components/RSWrapper/index.js +83 -0
- package/lib/Core/Components/RSWrapper/index.js.map +1 -0
- package/lib/Core/Components/RenderingEngine/ComponentResolverFactory.d.ts +3 -0
- package/lib/Core/Components/RenderingEngine/ComponentResolverFactory.d.ts.map +1 -0
- package/lib/Core/Components/RenderingEngine/ComponentResolverFactory.js +65 -0
- package/lib/Core/Components/RenderingEngine/ComponentResolverFactory.js.map +1 -0
- package/lib/Core/Components/RenderingEngine/ErrorHandler.d.ts +2 -0
- package/lib/Core/Components/RenderingEngine/ErrorHandler.d.ts.map +1 -0
- package/lib/Core/Components/RenderingEngine/ErrorHandler.js +2 -0
- package/lib/Core/Components/RenderingEngine/ErrorHandler.js.map +1 -0
- package/lib/Core/Components/RenderingEngine/ExpresssionEvaluator.d.ts +2 -0
- package/lib/Core/Components/RenderingEngine/ExpresssionEvaluator.d.ts.map +1 -0
- package/lib/Core/Components/RenderingEngine/ExpresssionEvaluator.js +2 -0
- package/lib/Core/Components/RenderingEngine/ExpresssionEvaluator.js.map +1 -0
- package/lib/Core/Components/RenderingEngine/Flasher.d.ts +2 -0
- package/lib/Core/Components/RenderingEngine/Flasher.d.ts.map +1 -0
- package/lib/Core/Components/RenderingEngine/Flasher.js +2 -0
- package/lib/Core/Components/RenderingEngine/Flasher.js.map +1 -0
- package/lib/Core/Components/RenderingEngine/Formatter.d.ts +2 -0
- package/lib/Core/Components/RenderingEngine/Formatter.d.ts.map +1 -0
- package/lib/Core/Components/RenderingEngine/Formatter.js +24 -0
- package/lib/Core/Components/RenderingEngine/Formatter.js.map +1 -0
- package/lib/Core/Components/RenderingEngine/RenderCell.d.ts +16 -0
- package/lib/Core/Components/RenderingEngine/RenderCell.d.ts.map +1 -0
- package/lib/Core/Components/RenderingEngine/RenderCell.js +48 -0
- package/lib/Core/Components/RenderingEngine/RenderCell.js.map +1 -0
- package/lib/Core/Components/RenderingEngine/RenderView.d.ts +8 -0
- package/lib/Core/Components/RenderingEngine/RenderView.d.ts.map +1 -0
- package/lib/Core/Components/RenderingEngine/RenderView.js +25 -0
- package/lib/Core/Components/RenderingEngine/RenderView.js.map +1 -0
- package/lib/Core/Components/RenderingEngine/Util.d.ts +2 -0
- package/lib/Core/Components/RenderingEngine/Util.d.ts.map +1 -0
- package/lib/Core/Components/RenderingEngine/Util.js +36 -0
- package/lib/Core/Components/RenderingEngine/Util.js.map +1 -0
- package/lib/Core/Components/RenderingEngine/ValueRenderer.d.ts +14 -0
- package/lib/Core/Components/RenderingEngine/ValueRenderer.d.ts.map +1 -0
- package/lib/Core/Components/RenderingEngine/ValueRenderer.js +12 -0
- package/lib/Core/Components/RenderingEngine/ValueRenderer.js.map +1 -0
- package/lib/Core/Components/RenderingEngine/useHighlighter.d.ts +5 -0
- package/lib/Core/Components/RenderingEngine/useHighlighter.d.ts.map +1 -0
- package/lib/Core/Components/RenderingEngine/useHighlighter.js +52 -0
- package/lib/Core/Components/RenderingEngine/useHighlighter.js.map +1 -0
- package/lib/Core/Components/TestIdConstants.d.ts +15 -0
- package/lib/Core/Components/TestIdConstants.d.ts.map +1 -0
- package/lib/Core/Components/TestIdConstants.js +14 -0
- package/lib/Core/Components/TestIdConstants.js.map +1 -0
- package/lib/Core/Components/Toolbar/ActionsMenu.d.ts +15 -0
- package/lib/Core/Components/Toolbar/ActionsMenu.d.ts.map +1 -0
- package/lib/Core/Components/Toolbar/ActionsMenu.js +58 -0
- package/lib/Core/Components/Toolbar/ActionsMenu.js.map +1 -0
- package/lib/Core/Components/Toolbar/AdvanceToolbar.d.ts +14 -0
- package/lib/Core/Components/Toolbar/AdvanceToolbar.d.ts.map +1 -0
- package/lib/Core/Components/Toolbar/AdvanceToolbar.js +59 -0
- package/lib/Core/Components/Toolbar/AdvanceToolbar.js.map +1 -0
- package/lib/Core/Components/Toolbar/AnnounceRowsCount.d.ts +20 -0
- package/lib/Core/Components/Toolbar/AnnounceRowsCount.d.ts.map +1 -0
- package/lib/Core/Components/Toolbar/AnnounceRowsCount.js +14 -0
- package/lib/Core/Components/Toolbar/AnnounceRowsCount.js.map +1 -0
- package/lib/Core/Components/Toolbar/ColumnSelector.d.ts +35 -0
- package/lib/Core/Components/Toolbar/ColumnSelector.d.ts.map +1 -0
- package/lib/Core/Components/Toolbar/ColumnSelector.js +141 -0
- package/lib/Core/Components/Toolbar/ColumnSelector.js.map +1 -0
- package/lib/Core/Components/Toolbar/DebugInfo.d.ts +14 -0
- package/lib/Core/Components/Toolbar/DebugInfo.d.ts.map +1 -0
- package/lib/Core/Components/Toolbar/DebugInfo.js +48 -0
- package/lib/Core/Components/Toolbar/DebugInfo.js.map +1 -0
- package/lib/Core/Components/Toolbar/FieldSelector.d.ts +19 -0
- package/lib/Core/Components/Toolbar/FieldSelector.d.ts.map +1 -0
- package/lib/Core/Components/Toolbar/FieldSelector.js +53 -0
- package/lib/Core/Components/Toolbar/FieldSelector.js.map +1 -0
- package/lib/Core/Components/Toolbar/Grouping.types.d.ts +22 -0
- package/lib/Core/Components/Toolbar/Grouping.types.d.ts.map +1 -0
- package/lib/Core/Components/Toolbar/Grouping.types.js +2 -0
- package/lib/Core/Components/Toolbar/Grouping.types.js.map +1 -0
- package/lib/Core/Components/Toolbar/Map/MapToolbar.d.ts +9 -0
- package/lib/Core/Components/Toolbar/Map/MapToolbar.d.ts.map +1 -0
- package/lib/Core/Components/Toolbar/Map/MapToolbar.js +27 -0
- package/lib/Core/Components/Toolbar/Map/MapToolbar.js.map +1 -0
- package/lib/Core/Components/Toolbar/RefreshBanner.d.ts +15 -0
- package/lib/Core/Components/Toolbar/RefreshBanner.d.ts.map +1 -0
- package/lib/Core/Components/Toolbar/RefreshBanner.js +28 -0
- package/lib/Core/Components/Toolbar/RefreshBanner.js.map +1 -0
- package/lib/Core/Components/Toolbar/SimpleToolbar.d.ts +14 -0
- package/lib/Core/Components/Toolbar/SimpleToolbar.d.ts.map +1 -0
- package/lib/Core/Components/Toolbar/SimpleToolbar.js +22 -0
- package/lib/Core/Components/Toolbar/SimpleToolbar.js.map +1 -0
- package/lib/Core/Components/Toolbar/Timeline/TimelineToolbar.d.ts +8 -0
- package/lib/Core/Components/Toolbar/Timeline/TimelineToolbar.d.ts.map +1 -0
- package/lib/Core/Components/Toolbar/Timeline/TimelineToolbar.js +61 -0
- package/lib/Core/Components/Toolbar/Timeline/TimelineToolbar.js.map +1 -0
- package/lib/Core/Components/Toolbar/ToolbarActions.d.ts +20 -0
- package/lib/Core/Components/Toolbar/ToolbarActions.d.ts.map +1 -0
- package/lib/Core/Components/Toolbar/ToolbarActions.js +28 -0
- package/lib/Core/Components/Toolbar/ToolbarActions.js.map +1 -0
- package/lib/Core/Components/Toolbar/ValidateMessage.d.ts +17 -0
- package/lib/Core/Components/Toolbar/ValidateMessage.d.ts.map +1 -0
- package/lib/Core/Components/Toolbar/ValidateMessage.js +44 -0
- package/lib/Core/Components/Toolbar/ValidateMessage.js.map +1 -0
- package/lib/Core/Components/Toolbar/hooks/useAnnounceRowsCount.d.ts +3 -0
- package/lib/Core/Components/Toolbar/hooks/useAnnounceRowsCount.d.ts.map +1 -0
- package/lib/Core/Components/Toolbar/hooks/useAnnounceRowsCount.js +37 -0
- package/lib/Core/Components/Toolbar/hooks/useAnnounceRowsCount.js.map +1 -0
- package/lib/Core/Components/Toolbar/hooks/useFilter.d.ts +10 -0
- package/lib/Core/Components/Toolbar/hooks/useFilter.d.ts.map +1 -0
- package/lib/Core/Components/Toolbar/hooks/useFilter.js +43 -0
- package/lib/Core/Components/Toolbar/hooks/useFilter.js.map +1 -0
- package/lib/Core/Components/Toolbar/hooks/useFormControlProps.d.ts +5 -0
- package/lib/Core/Components/Toolbar/hooks/useFormControlProps.d.ts.map +1 -0
- package/lib/Core/Components/Toolbar/hooks/useFormControlProps.js +18 -0
- package/lib/Core/Components/Toolbar/hooks/useFormControlProps.js.map +1 -0
- package/lib/Core/Components/Toolbar/hooks/useGroup/DateFunctionSelector.d.ts +24 -0
- package/lib/Core/Components/Toolbar/hooks/useGroup/DateFunctionSelector.d.ts.map +1 -0
- package/lib/Core/Components/Toolbar/hooks/useGroup/DateFunctionSelector.js +58 -0
- package/lib/Core/Components/Toolbar/hooks/useGroup/DateFunctionSelector.js.map +1 -0
- package/lib/Core/Components/Toolbar/hooks/useGroup/GroupRenderer.d.ts +16 -0
- package/lib/Core/Components/Toolbar/hooks/useGroup/GroupRenderer.d.ts.map +1 -0
- package/lib/Core/Components/Toolbar/hooks/useGroup/GroupRenderer.js +110 -0
- package/lib/Core/Components/Toolbar/hooks/useGroup/GroupRenderer.js.map +1 -0
- package/lib/Core/Components/Toolbar/hooks/useGroup/useGroup.d.ts +11 -0
- package/lib/Core/Components/Toolbar/hooks/useGroup/useGroup.d.ts.map +1 -0
- package/lib/Core/Components/Toolbar/hooks/useGroup/useGroup.js +75 -0
- package/lib/Core/Components/Toolbar/hooks/useGroup/useGroup.js.map +1 -0
- package/lib/Core/Components/Toolbar/hooks/useGroup/utils.d.ts +11 -0
- package/lib/Core/Components/Toolbar/hooks/useGroup/utils.d.ts.map +1 -0
- package/lib/Core/Components/Toolbar/hooks/useGroup/utils.js +61 -0
- package/lib/Core/Components/Toolbar/hooks/useGroup/utils.js.map +1 -0
- package/lib/Core/Components/Toolbar/hooks/useMore.d.ts +9 -0
- package/lib/Core/Components/Toolbar/hooks/useMore.d.ts.map +1 -0
- package/lib/Core/Components/Toolbar/hooks/useMore.js +317 -0
- package/lib/Core/Components/Toolbar/hooks/useMore.js.map +1 -0
- package/lib/Core/Components/Toolbar/hooks/usePersonalization.d.ts +13 -0
- package/lib/Core/Components/Toolbar/hooks/usePersonalization.d.ts.map +1 -0
- package/lib/Core/Components/Toolbar/hooks/usePersonalization.js +17 -0
- package/lib/Core/Components/Toolbar/hooks/usePersonalization.js.map +1 -0
- package/lib/Core/Components/Toolbar/hooks/useRowFocus.d.ts +6 -0
- package/lib/Core/Components/Toolbar/hooks/useRowFocus.d.ts.map +1 -0
- package/lib/Core/Components/Toolbar/hooks/useRowFocus.js +13 -0
- package/lib/Core/Components/Toolbar/hooks/useRowFocus.js.map +1 -0
- package/lib/Core/Components/Toolbar/hooks/useSearch.d.ts +11 -0
- package/lib/Core/Components/Toolbar/hooks/useSearch.d.ts.map +1 -0
- package/lib/Core/Components/Toolbar/hooks/useSearch.js +38 -0
- package/lib/Core/Components/Toolbar/hooks/useSearch.js.map +1 -0
- package/lib/Core/Components/Toolbar/hooks/useSort/Row.d.ts +44 -0
- package/lib/Core/Components/Toolbar/hooks/useSort/Row.d.ts.map +1 -0
- package/lib/Core/Components/Toolbar/hooks/useSort/Row.js +54 -0
- package/lib/Core/Components/Toolbar/hooks/useSort/Row.js.map +1 -0
- package/lib/Core/Components/Toolbar/hooks/useSort/SortRenderer.d.ts +13 -0
- package/lib/Core/Components/Toolbar/hooks/useSort/SortRenderer.d.ts.map +1 -0
- package/lib/Core/Components/Toolbar/hooks/useSort/SortRenderer.js +81 -0
- package/lib/Core/Components/Toolbar/hooks/useSort/SortRenderer.js.map +1 -0
- package/lib/Core/Components/Toolbar/hooks/useSort/useSort.d.ts +11 -0
- package/lib/Core/Components/Toolbar/hooks/useSort/useSort.d.ts.map +1 -0
- package/lib/Core/Components/Toolbar/hooks/useSort/useSort.js +41 -0
- package/lib/Core/Components/Toolbar/hooks/useSort/useSort.js.map +1 -0
- package/lib/Core/Components/Toolbar/hooks/useSort/utils.d.ts +8 -0
- package/lib/Core/Components/Toolbar/hooks/useSort/utils.d.ts.map +1 -0
- package/lib/Core/Components/Toolbar/hooks/useSort/utils.js +19 -0
- package/lib/Core/Components/Toolbar/hooks/useSort/utils.js.map +1 -0
- package/lib/Core/Components/Toolbar/index.d.ts +14 -0
- package/lib/Core/Components/Toolbar/index.d.ts.map +1 -0
- package/lib/Core/Components/Toolbar/index.js +13 -0
- package/lib/Core/Components/Toolbar/index.js.map +1 -0
- package/lib/Core/Components/Toolbar/utils/getCount.d.ts +9 -0
- package/lib/Core/Components/Toolbar/utils/getCount.d.ts.map +1 -0
- package/lib/Core/Components/Toolbar/utils/getCount.js +22 -0
- package/lib/Core/Components/Toolbar/utils/getCount.js.map +1 -0
- package/lib/Core/Components/Toolbar/utils/utils.d.ts +51 -0
- package/lib/Core/Components/Toolbar/utils/utils.d.ts.map +1 -0
- package/lib/Core/Components/Toolbar/utils/utils.js +100 -0
- package/lib/Core/Components/Toolbar/utils/utils.js.map +1 -0
- package/lib/Core/Components/Virtualise/Pagination.d.ts +13 -0
- package/lib/Core/Components/Virtualise/Pagination.d.ts.map +1 -0
- package/lib/Core/Components/Virtualise/Pagination.js +228 -0
- package/lib/Core/Components/Virtualise/Pagination.js.map +1 -0
- package/lib/Core/Components/Virtualise/UseResizeObserver.d.ts +2 -0
- package/lib/Core/Components/Virtualise/UseResizeObserver.d.ts.map +1 -0
- package/lib/Core/Components/Virtualise/UseResizeObserver.js +18 -0
- package/lib/Core/Components/Virtualise/UseResizeObserver.js.map +1 -0
- package/lib/Core/Components/Virtualise/UseScroll.d.ts +3 -0
- package/lib/Core/Components/Virtualise/UseScroll.d.ts.map +1 -0
- package/lib/Core/Components/Virtualise/UseScroll.js +92 -0
- package/lib/Core/Components/Virtualise/UseScroll.js.map +1 -0
- package/lib/Core/Components/Virtualise/VirtualizeInfinite.d.ts +3 -0
- package/lib/Core/Components/Virtualise/VirtualizeInfinite.d.ts.map +1 -0
- package/lib/Core/Components/Virtualise/VirtualizeInfinite.js +328 -0
- package/lib/Core/Components/Virtualise/VirtualizeInfinite.js.map +1 -0
- package/lib/Core/Components/Virtualise/index.d.ts +3 -0
- package/lib/Core/Components/Virtualise/index.d.ts.map +1 -0
- package/lib/Core/Components/Virtualise/index.js +313 -0
- package/lib/Core/Components/Virtualise/index.js.map +1 -0
- package/lib/Core/Components/Virtualise/utility.d.ts +63 -0
- package/lib/Core/Components/Virtualise/utility.d.ts.map +1 -0
- package/lib/Core/Components/Virtualise/utility.js +209 -0
- package/lib/Core/Components/Virtualise/utility.js.map +1 -0
- package/lib/Core/Context/GlobalContext.d.ts +8 -0
- package/lib/Core/Context/GlobalContext.d.ts.map +1 -0
- package/lib/Core/Context/GlobalContext.js +7 -0
- package/lib/Core/Context/GlobalContext.js.map +1 -0
- package/lib/Core/Context/LocalizationContext.d.ts +13 -0
- package/lib/Core/Context/LocalizationContext.d.ts.map +1 -0
- package/lib/Core/Context/LocalizationContext.js +16 -0
- package/lib/Core/Context/LocalizationContext.js.map +1 -0
- package/lib/Core/Context/ToolbarContext.d.ts +8 -0
- package/lib/Core/Context/ToolbarContext.d.ts.map +1 -0
- package/lib/Core/Context/ToolbarContext.js +7 -0
- package/lib/Core/Context/ToolbarContext.js.map +1 -0
- package/lib/Core/Hooks/UseDebounce.d.ts +2 -0
- package/lib/Core/Hooks/UseDebounce.d.ts.map +1 -0
- package/lib/Core/Hooks/UseDebounce.js +15 -0
- package/lib/Core/Hooks/UseDebounce.js.map +1 -0
- package/lib/Core/Hooks/UseOuterEvent.d.ts +2 -0
- package/lib/Core/Hooks/UseOuterEvent.d.ts.map +1 -0
- package/lib/Core/Hooks/UseOuterEvent.js +30 -0
- package/lib/Core/Hooks/UseOuterEvent.js.map +1 -0
- package/lib/Core/Hooks/UseReactToProps.d.ts +2 -0
- package/lib/Core/Hooks/UseReactToProps.d.ts.map +1 -0
- package/lib/Core/Hooks/UseReactToProps.js +8 -0
- package/lib/Core/Hooks/UseReactToProps.js.map +1 -0
- package/lib/Core/Hooks/UseScrollAway.d.ts +2 -0
- package/lib/Core/Hooks/UseScrollAway.d.ts.map +1 -0
- package/lib/Core/Hooks/UseScrollAway.js +30 -0
- package/lib/Core/Hooks/UseScrollAway.js.map +1 -0
- package/lib/Core/Hooks/UseSelect.d.ts +2 -0
- package/lib/Core/Hooks/UseSelect.d.ts.map +1 -0
- package/lib/Core/Hooks/UseSelect.js +17 -0
- package/lib/Core/Hooks/UseSelect.js.map +1 -0
- package/lib/Core/Hooks/UseThrottle.d.ts +2 -0
- package/lib/Core/Hooks/UseThrottle.d.ts.map +1 -0
- package/lib/Core/Hooks/UseThrottle.js +14 -0
- package/lib/Core/Hooks/UseThrottle.js.map +1 -0
- package/lib/Core/Hooks/UseThunkReducer.d.ts +3 -0
- package/lib/Core/Hooks/UseThunkReducer.d.ts.map +1 -0
- package/lib/Core/Hooks/UseThunkReducer.js +15 -0
- package/lib/Core/Hooks/UseThunkReducer.js.map +1 -0
- package/lib/Core/Hooks/a11y/index.d.ts +3 -0
- package/lib/Core/Hooks/a11y/index.d.ts.map +1 -0
- package/lib/Core/Hooks/a11y/index.js +4 -0
- package/lib/Core/Hooks/a11y/index.js.map +1 -0
- package/lib/Core/Hooks/a11y/useAnnounceGroup.d.ts +3 -0
- package/lib/Core/Hooks/a11y/useAnnounceGroup.d.ts.map +1 -0
- package/lib/Core/Hooks/a11y/useAnnounceGroup.js +45 -0
- package/lib/Core/Hooks/a11y/useAnnounceGroup.js.map +1 -0
- package/lib/Core/Hooks/a11y/useKeyboardA11y.d.ts +16 -0
- package/lib/Core/Hooks/a11y/useKeyboardA11y.d.ts.map +1 -0
- package/lib/Core/Hooks/a11y/useKeyboardA11y.js +147 -0
- package/lib/Core/Hooks/a11y/useKeyboardA11y.js.map +1 -0
- package/lib/Core/Hooks/useConfirmationModal.d.ts +5 -0
- package/lib/Core/Hooks/useConfirmationModal.d.ts.map +1 -0
- package/lib/Core/Hooks/useConfirmationModal.js +42 -0
- package/lib/Core/Hooks/useConfirmationModal.js.map +1 -0
- package/lib/Core/Hooks/useDragDrop.d.ts +25 -0
- package/lib/Core/Hooks/useDragDrop.d.ts.map +1 -0
- package/lib/Core/Hooks/useDragDrop.js +217 -0
- package/lib/Core/Hooks/useDragDrop.js.map +1 -0
- package/lib/Core/Hooks/useRepeat.d.ts +18 -0
- package/lib/Core/Hooks/useRepeat.d.ts.map +1 -0
- package/lib/Core/Hooks/useRepeat.js +174 -0
- package/lib/Core/Hooks/useRepeat.js.map +1 -0
- package/lib/Core/Hooks/useSingleClick.d.ts +2 -0
- package/lib/Core/Hooks/useSingleClick.d.ts.map +1 -0
- package/lib/Core/Hooks/useSingleClick.js +17 -0
- package/lib/Core/Hooks/useSingleClick.js.map +1 -0
- package/lib/Core/Hooks/useSmallScreen.d.ts +4 -0
- package/lib/Core/Hooks/useSmallScreen.d.ts.map +1 -0
- package/lib/Core/Hooks/useSmallScreen.js +11 -0
- package/lib/Core/Hooks/useSmallScreen.js.map +1 -0
- package/lib/Core/Hooks/useTranslate.d.ts +2 -0
- package/lib/Core/Hooks/useTranslate.d.ts.map +1 -0
- package/lib/Core/Hooks/useTranslate.js +7 -0
- package/lib/Core/Hooks/useTranslate.js.map +1 -0
- package/lib/Core/Localization/defaultTranslations.d.ts +144 -0
- package/lib/Core/Localization/defaultTranslations.d.ts.map +1 -0
- package/lib/Core/Localization/defaultTranslations.js +145 -0
- package/lib/Core/Localization/defaultTranslations.js.map +1 -0
- package/lib/Core/Localization/translateCosmosLiteralsUtils.d.ts +6 -0
- package/lib/Core/Localization/translateCosmosLiteralsUtils.d.ts.map +1 -0
- package/lib/Core/Localization/translateCosmosLiteralsUtils.js +15 -0
- package/lib/Core/Localization/translateCosmosLiteralsUtils.js.map +1 -0
- package/lib/Core/Test/JUnitMocks.d.ts +1015 -0
- package/lib/Core/Test/JUnitMocks.d.ts.map +1 -0
- package/lib/Core/Test/JUnitMocks.js +619 -0
- package/lib/Core/Test/JUnitMocks.js.map +1 -0
- package/lib/Core/Test/TestUtils.d.ts +9 -0
- package/lib/Core/Test/TestUtils.d.ts.map +1 -0
- package/lib/Core/Test/TestUtils.js +25 -0
- package/lib/Core/Test/TestUtils.js.map +1 -0
- package/lib/Core/Utils/index.d.ts +19 -0
- package/lib/Core/Utils/index.d.ts.map +1 -0
- package/lib/Core/Utils/index.js +93 -0
- package/lib/Core/Utils/index.js.map +1 -0
- package/lib/Core/Views/Gallery/GalleryA11y.d.ts +13 -0
- package/lib/Core/Views/Gallery/GalleryA11y.d.ts.map +1 -0
- package/lib/Core/Views/Gallery/GalleryA11y.js +57 -0
- package/lib/Core/Views/Gallery/GalleryA11y.js.map +1 -0
- package/lib/Core/Views/Gallery/ItemWrapper.d.ts +19 -0
- package/lib/Core/Views/Gallery/ItemWrapper.d.ts.map +1 -0
- package/lib/Core/Views/Gallery/ItemWrapper.js +29 -0
- package/lib/Core/Views/Gallery/ItemWrapper.js.map +1 -0
- package/lib/Core/Views/Gallery/StyledGalleryContainer.d.ts +3 -0
- package/lib/Core/Views/Gallery/StyledGalleryContainer.d.ts.map +1 -0
- package/lib/Core/Views/Gallery/StyledGalleryContainer.js +60 -0
- package/lib/Core/Views/Gallery/StyledGalleryContainer.js.map +1 -0
- package/lib/Core/Views/Gallery/_tests_/Samples/GalleryA11ySample.d.ts +2 -0
- package/lib/Core/Views/Gallery/_tests_/Samples/GalleryA11ySample.d.ts.map +1 -0
- package/lib/Core/Views/Gallery/_tests_/Samples/GalleryA11ySample.js +8 -0
- package/lib/Core/Views/Gallery/_tests_/Samples/GalleryA11ySample.js.map +1 -0
- package/lib/Core/Views/Gallery/index.d.ts +13 -0
- package/lib/Core/Views/Gallery/index.d.ts.map +1 -0
- package/lib/Core/Views/Gallery/index.js +82 -0
- package/lib/Core/Views/Gallery/index.js.map +1 -0
- package/lib/Core/Views/Map/Map.styles.d.ts +12 -0
- package/lib/Core/Views/Map/Map.styles.d.ts.map +1 -0
- package/lib/Core/Views/Map/Map.styles.js +47 -0
- package/lib/Core/Views/Map/Map.styles.js.map +1 -0
- package/lib/Core/Views/Map/MapItem.d.ts +10 -0
- package/lib/Core/Views/Map/MapItem.d.ts.map +1 -0
- package/lib/Core/Views/Map/MapItem.js +12 -0
- package/lib/Core/Views/Map/MapItem.js.map +1 -0
- package/lib/Core/Views/Map/index.d.ts +7 -0
- package/lib/Core/Views/Map/index.d.ts.map +1 -0
- package/lib/Core/Views/Map/index.js +50 -0
- package/lib/Core/Views/Map/index.js.map +1 -0
- package/lib/Core/Views/Map/utils.d.ts +14 -0
- package/lib/Core/Views/Map/utils.d.ts.map +1 -0
- package/lib/Core/Views/Map/utils.js +31 -0
- package/lib/Core/Views/Map/utils.js.map +1 -0
- package/lib/Core/Views/Table/Body.d.ts +23 -0
- package/lib/Core/Views/Table/Body.d.ts.map +1 -0
- package/lib/Core/Views/Table/Body.js +44 -0
- package/lib/Core/Views/Table/Body.js.map +1 -0
- package/lib/Core/Views/Table/CellWrapper.d.ts +23 -0
- package/lib/Core/Views/Table/CellWrapper.d.ts.map +1 -0
- package/lib/Core/Views/Table/CellWrapper.js +75 -0
- package/lib/Core/Views/Table/CellWrapper.js.map +1 -0
- package/lib/Core/Views/Table/GroupingHeaderCell.d.ts +22 -0
- package/lib/Core/Views/Table/GroupingHeaderCell.d.ts.map +1 -0
- package/lib/Core/Views/Table/GroupingHeaderCell.js +26 -0
- package/lib/Core/Views/Table/GroupingHeaderCell.js.map +1 -0
- package/lib/Core/Views/Table/HeaderWrapper.d.ts +13 -0
- package/lib/Core/Views/Table/HeaderWrapper.d.ts.map +1 -0
- package/lib/Core/Views/Table/HeaderWrapper.js +33 -0
- package/lib/Core/Views/Table/HeaderWrapper.js.map +1 -0
- package/lib/Core/Views/Table/Headers.d.ts +3 -0
- package/lib/Core/Views/Table/Headers.d.ts.map +1 -0
- package/lib/Core/Views/Table/Headers.js +24 -0
- package/lib/Core/Views/Table/Headers.js.map +1 -0
- package/lib/Core/Views/Table/Row.d.ts +26 -0
- package/lib/Core/Views/Table/Row.d.ts.map +1 -0
- package/lib/Core/Views/Table/Row.js +24 -0
- package/lib/Core/Views/Table/Row.js.map +1 -0
- package/lib/Core/Views/Table/Samples/a11ySampleWithErrors.d.ts +8 -0
- package/lib/Core/Views/Table/Samples/a11ySampleWithErrors.d.ts.map +1 -0
- package/lib/Core/Views/Table/Samples/a11ySampleWithErrors.js +333 -0
- package/lib/Core/Views/Table/Samples/a11ySampleWithErrors.js.map +1 -0
- package/lib/Core/Views/Table/StyledTableContainer.d.ts +3 -0
- package/lib/Core/Views/Table/StyledTableContainer.d.ts.map +1 -0
- package/lib/Core/Views/Table/StyledTableContainer.js +861 -0
- package/lib/Core/Views/Table/StyledTableContainer.js.map +1 -0
- package/lib/Core/Views/Table/TableA11y.d.ts +48 -0
- package/lib/Core/Views/Table/TableA11y.d.ts.map +1 -0
- package/lib/Core/Views/Table/TableA11y.js +638 -0
- package/lib/Core/Views/Table/TableA11y.js.map +1 -0
- package/lib/Core/Views/Table/UseSort.d.ts +2 -0
- package/lib/Core/Views/Table/UseSort.d.ts.map +1 -0
- package/lib/Core/Views/Table/UseSort.js +37 -0
- package/lib/Core/Views/Table/UseSort.js.map +1 -0
- package/lib/Core/Views/Table/VirtualizeWrapper.d.ts +31 -0
- package/lib/Core/Views/Table/VirtualizeWrapper.d.ts.map +1 -0
- package/lib/Core/Views/Table/VirtualizeWrapper.js +39 -0
- package/lib/Core/Views/Table/VirtualizeWrapper.js.map +1 -0
- package/lib/Core/Views/Table/index.d.ts +13 -0
- package/lib/Core/Views/Table/index.d.ts.map +1 -0
- package/lib/Core/Views/Table/index.js +91 -0
- package/lib/Core/Views/Table/index.js.map +1 -0
- package/lib/Core/Views/Timeline/index.d.ts +7 -0
- package/lib/Core/Views/Timeline/index.d.ts.map +1 -0
- package/lib/Core/Views/Timeline/index.js +81 -0
- package/lib/Core/Views/Timeline/index.js.map +1 -0
- package/lib/Core/Views/Timeline/utility.d.ts +8 -0
- package/lib/Core/Views/Timeline/utility.d.ts.map +1 -0
- package/lib/Core/Views/Timeline/utility.js +120 -0
- package/lib/Core/Views/Timeline/utility.js.map +1 -0
- package/lib/Core/Views/rs-styles.d.ts +3 -0
- package/lib/Core/Views/rs-styles.d.ts.map +1 -0
- package/lib/Core/Views/rs-styles.js +10 -0
- package/lib/Core/Views/rs-styles.js.map +1 -0
- package/lib/Core/constants.d.ts +73 -0
- package/lib/Core/constants.d.ts.map +1 -0
- package/lib/Core/constants.js +86 -0
- package/lib/Core/constants.js.map +1 -0
- package/lib/Core/index.d.ts +5 -0
- package/lib/Core/index.d.ts.map +1 -0
- package/lib/Core/index.js +40 -0
- package/lib/Core/index.js.map +1 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +7 -0
- package/lib/index.js.map +1 -0
- package/lib/types.d.ts +231 -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 +51 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useHighlighter.d.ts","sourceRoot":"","sources":["../../../../Core/Components/RenderingEngine/useHighlighter.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,OAAO,UAAU,cAAc,CACpC,OAAO,EAAE,GAAG,EACZ,EAAE,aAAqB,EAAE,eAAuB,EAAE;;;CAAK,QA8CxD"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { useEffect } from 'react';
|
|
2
|
+
const SPECIAL_CHARS_REGEX = /(\[|\\|\^|\$|\.|\||\?|\*|\+|\(|\))/g;
|
|
3
|
+
function sanitizeRegex(regex) {
|
|
4
|
+
return regex?.replace(SPECIAL_CHARS_REGEX, '\\$1');
|
|
5
|
+
}
|
|
6
|
+
export default function useHighlighter(context, { caseSensitive = false, shouldHighlight = false } = {}) {
|
|
7
|
+
// Context is executional context and wont be available in asynchronous method.
|
|
8
|
+
// We have to keep reference of used objects in closure.
|
|
9
|
+
const getElement = context?.getElement;
|
|
10
|
+
const getSearchKeyword = context?.getSearchKeyword;
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
const flags = caseSensitive ? 'g' : 'gi';
|
|
13
|
+
const keyword = [sanitizeRegex(getSearchKeyword?.()?.trim())].filter((_) => _);
|
|
14
|
+
const keywordRegex = new RegExp(keyword[0], flags);
|
|
15
|
+
function highlight(element) {
|
|
16
|
+
if (!element?.textContent || !keywordRegex.test(element.textContent)) {
|
|
17
|
+
// in case there is no match
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
// Sort longer matches first to avoid
|
|
21
|
+
// highlighting keywords within keywords.
|
|
22
|
+
Array.from(element?.childNodes || []).forEach(child => {
|
|
23
|
+
keywordRegex.lastIndex = 0;
|
|
24
|
+
if (child.nodeType !== 3) {
|
|
25
|
+
// not a text node
|
|
26
|
+
if (child.nodeName !== 'SCRIPT' && child.nodeName !== 'STYLE') {
|
|
27
|
+
highlight(child);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
else if (child.textContent && keywordRegex.test(child.textContent)) {
|
|
31
|
+
const frag = document.createDocumentFragment();
|
|
32
|
+
let lastIdx = 0;
|
|
33
|
+
child.textContent.replace(keywordRegex, (match, idx) => {
|
|
34
|
+
const part = document.createTextNode(child.textContent.slice(lastIdx, idx));
|
|
35
|
+
const highlighted = document.createElement('mark');
|
|
36
|
+
highlighted.style.background = '#fffc65';
|
|
37
|
+
highlighted.textContent = match;
|
|
38
|
+
frag.appendChild(part);
|
|
39
|
+
frag.appendChild(highlighted);
|
|
40
|
+
lastIdx = idx + match.length;
|
|
41
|
+
});
|
|
42
|
+
const end = document.createTextNode(child.textContent.slice(lastIdx));
|
|
43
|
+
frag.appendChild(end);
|
|
44
|
+
child.parentNode?.replaceChild(frag, child);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
if (shouldHighlight && keyword.length)
|
|
49
|
+
highlight(getElement?.());
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=useHighlighter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useHighlighter.js","sourceRoot":"","sources":["../../../../Core/Components/RenderingEngine/useHighlighter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,mBAAmB,GAAG,qCAAqC,CAAC;AAClE,SAAS,aAAa,CAAC,KAAa;IAClC,OAAO,KAAK,EAAE,OAAO,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC;AACrD,CAAC;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CACpC,OAAY,EACZ,EAAE,aAAa,GAAG,KAAK,EAAE,eAAe,GAAG,KAAK,EAAE,GAAG,EAAE;IAEvD,+EAA+E;IAC/E,wDAAwD;IACxD,MAAM,UAAU,GAAG,OAAO,EAAE,UAAU,CAAC;IACvC,MAAM,gBAAgB,GAAG,OAAO,EAAE,gBAAgB,CAAC;IAEnD,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,KAAK,GAAG,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;QACzC,MAAM,OAAO,GAAG,CAAC,aAAa,CAAC,gBAAgB,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;QAEvF,MAAM,YAAY,GAAG,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;QACnD,SAAS,SAAS,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,CAAC,CAAC;wBAC9B,OAAO,GAAG,GAAG,GAAG,KAAK,CAAC,MAAM,CAAC;oBAC/B,CAAC,CAAC,CAAC;oBACH,MAAM,GAAG,GAAG,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;oBACtE,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;oBACtB,KAAK,CAAC,UAAU,EAAE,YAAY,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;gBAC9C,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC;QACD,IAAI,eAAe,IAAI,OAAO,CAAC,MAAM;YAAE,SAAS,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { useEffect } from 'react';\n\nconst SPECIAL_CHARS_REGEX = /(\\[|\\\\|\\^|\\$|\\.|\\||\\?|\\*|\\+|\\(|\\))/g;\nfunction sanitizeRegex(regex: string) {\n return regex?.replace(SPECIAL_CHARS_REGEX, '\\\\$1');\n}\n\nexport default function useHighlighter(\n context: any,\n { caseSensitive = false, shouldHighlight = false } = {}\n) {\n // Context is executional context and wont be available in asynchronous method.\n // We have to keep reference of used objects in closure.\n const getElement = context?.getElement;\n const getSearchKeyword = context?.getSearchKeyword;\n\n useEffect(() => {\n const flags = caseSensitive ? 'g' : 'gi';\n const keyword = [sanitizeRegex(getSearchKeyword?.()?.trim())].filter((_: string) => _);\n\n const keywordRegex = new RegExp(keyword[0], flags);\n function highlight(element: Node) {\n if (!element?.textContent || !keywordRegex.test(element.textContent)) {\n // in case there is no match\n return;\n }\n // Sort longer matches first to avoid\n // highlighting keywords within keywords.\n Array.from(element?.childNodes || []).forEach(child => {\n keywordRegex.lastIndex = 0;\n if (child.nodeType !== 3) {\n // not a text node\n if (child.nodeName !== 'SCRIPT' && child.nodeName !== 'STYLE') {\n highlight(child);\n }\n } else if (child.textContent && keywordRegex.test(child.textContent)) {\n const frag = document.createDocumentFragment();\n let lastIdx = 0;\n child.textContent.replace(keywordRegex, (match: string, idx: number): any => {\n const part = document.createTextNode(child.textContent!.slice(lastIdx, idx));\n const highlighted = document.createElement('mark');\n highlighted.style.background = '#fffc65';\n highlighted.textContent = match;\n frag.appendChild(part);\n frag.appendChild(highlighted);\n lastIdx = idx + match.length;\n });\n const end = document.createTextNode(child.textContent.slice(lastIdx));\n frag.appendChild(end);\n child.parentNode?.replaceChild(frag, child);\n }\n });\n }\n if (shouldHighlight && keyword.length) highlight(getElement?.());\n });\n}\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
let filterButton: string;
|
|
3
|
+
let groupButton: string;
|
|
4
|
+
let sortButton: string;
|
|
5
|
+
let moreOptionsButton: string;
|
|
6
|
+
let noRecords: string;
|
|
7
|
+
let aggregateDisplayValue: string;
|
|
8
|
+
let columnFilterIcon: string;
|
|
9
|
+
let groupHeader: string;
|
|
10
|
+
let groupHeaderCount: string;
|
|
11
|
+
let groupHeaderGroupBy: string;
|
|
12
|
+
let hierarchicalCell: string;
|
|
13
|
+
}
|
|
14
|
+
export default _default;
|
|
15
|
+
//# sourceMappingURL=TestIdConstants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TestIdConstants.d.ts","sourceRoot":"","sources":["../../../Core/Components/TestIdConstants.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
filterButton: 'repeat-filter-button',
|
|
3
|
+
groupButton: 'repeat-group-button',
|
|
4
|
+
sortButton: 'repeat-sort-button',
|
|
5
|
+
moreOptionsButton: 'repeat-more-options-button',
|
|
6
|
+
noRecords: 'repeat-no-records',
|
|
7
|
+
aggregateDisplayValue: 'aggregate-display-value',
|
|
8
|
+
columnFilterIcon: 'column-filter-icon',
|
|
9
|
+
groupHeader: 'group-header',
|
|
10
|
+
groupHeaderCount: 'group-header-count',
|
|
11
|
+
groupHeaderGroupBy: 'group-header-group-by',
|
|
12
|
+
hierarchicalCell: 'hierarchical-cell'
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=TestIdConstants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TestIdConstants.js","sourceRoot":"","sources":["../../../Core/Components/TestIdConstants.js"],"names":[],"mappings":"AAAA,eAAe;IACb,YAAY,EAAE,sBAAsB;IACpC,WAAW,EAAE,qBAAqB;IAClC,UAAU,EAAE,oBAAoB;IAChC,iBAAiB,EAAE,4BAA4B;IAC/C,SAAS,EAAE,mBAAmB;IAC9B,qBAAqB,EAAE,yBAAyB;IAChD,gBAAgB,EAAE,oBAAoB;IACtC,WAAW,EAAE,cAAc;IAC3B,gBAAgB,EAAE,oBAAoB;IACtC,kBAAkB,EAAE,uBAAuB;IAC3C,gBAAgB,EAAE,mBAAmB;CACtC,CAAC","sourcesContent":["export default {\n filterButton: 'repeat-filter-button',\n groupButton: 'repeat-group-button',\n sortButton: 'repeat-sort-button',\n moreOptionsButton: 'repeat-more-options-button',\n noRecords: 'repeat-no-records',\n aggregateDisplayValue: 'aggregate-display-value',\n columnFilterIcon: 'column-filter-icon',\n groupHeader: 'group-header',\n groupHeaderCount: 'group-header-count',\n groupHeaderGroupBy: 'group-header-group-by',\n hierarchicalCell: 'hierarchical-cell'\n};\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default ActionsMenu;
|
|
2
|
+
declare function ActionsMenu({ view, enableActionsMenu }: {
|
|
3
|
+
view: any;
|
|
4
|
+
enableActionsMenu: any;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare namespace ActionsMenu {
|
|
7
|
+
namespace propTypes {
|
|
8
|
+
let view: PropTypes.Validator<{
|
|
9
|
+
[x: string]: any;
|
|
10
|
+
}>;
|
|
11
|
+
let enableActionsMenu: PropTypes.Validator<boolean>;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
import PropTypes from 'prop-types';
|
|
15
|
+
//# sourceMappingURL=ActionsMenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionsMenu.d.ts","sourceRoot":"","sources":["../../../../Core/Components/Toolbar/ActionsMenu.jsx"],"names":[],"mappings":";AAOA;;;4CAoEC;;;;;;;;;sBA3EqB,YAAY"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { useState, useEffect } from 'react';
|
|
4
|
+
import { MenuButton } from '@pega/cosmos-react-core';
|
|
5
|
+
import useTranslate from '../../Hooks/useTranslate';
|
|
6
|
+
function ActionsMenu({ view, enableActionsMenu }) {
|
|
7
|
+
const { state: { selectedRows } } = view;
|
|
8
|
+
const [actions, setActions] = useState([]);
|
|
9
|
+
const [actionsFetched, setActionsFetched] = useState(false);
|
|
10
|
+
const [translate] = useTranslate();
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
setActions([]);
|
|
13
|
+
setActionsFetched(false);
|
|
14
|
+
}, [selectedRows]);
|
|
15
|
+
const fetchActions = () => {
|
|
16
|
+
if (!actionsFetched) {
|
|
17
|
+
view.type.fetchActions(selectedRows).then(response => {
|
|
18
|
+
const actionsArray = response.map(action => ({
|
|
19
|
+
...action,
|
|
20
|
+
primary: action.text,
|
|
21
|
+
onClick: () => {
|
|
22
|
+
// cb to refresh only selected rows
|
|
23
|
+
action.onClick(selectedRows, view.type.clearSelectionAndRefreshRows.bind(null, selectedRows));
|
|
24
|
+
}
|
|
25
|
+
}));
|
|
26
|
+
setActions(actionsArray);
|
|
27
|
+
setActionsFetched(true);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
// enableActionsMenu is false
|
|
32
|
+
let wrapperDivProps = {
|
|
33
|
+
'aria-label': translate('Select two or more items to enable bulk actions'),
|
|
34
|
+
role: 'button',
|
|
35
|
+
'aria-disabled': true,
|
|
36
|
+
tabIndex: 0
|
|
37
|
+
};
|
|
38
|
+
// enableActionsMenu is true
|
|
39
|
+
if (enableActionsMenu) {
|
|
40
|
+
wrapperDivProps = {
|
|
41
|
+
tabIndex: -1,
|
|
42
|
+
'aria-disabled': false
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
return (_jsx("div", { ...wrapperDivProps, children: _jsx(MenuButton, { menu: {
|
|
46
|
+
items: actions.flat(),
|
|
47
|
+
emptyText: translate('No actions available'),
|
|
48
|
+
loading: !actionsFetched
|
|
49
|
+
}, popover: {
|
|
50
|
+
portal: true
|
|
51
|
+
}, onClick: fetchActions, variant: 'secondary', text: translate('Bulk actions'), iconOnly: false, disabled: !enableActionsMenu }) }));
|
|
52
|
+
}
|
|
53
|
+
ActionsMenu.propTypes = {
|
|
54
|
+
view: PropTypes.objectOf(PropTypes.any).isRequired,
|
|
55
|
+
enableActionsMenu: PropTypes.bool.isRequired
|
|
56
|
+
};
|
|
57
|
+
export default ActionsMenu;
|
|
58
|
+
//# sourceMappingURL=ActionsMenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionsMenu.js","sourceRoot":"","sources":["../../../../Core/Components/Toolbar/ActionsMenu.jsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,YAAY,MAAM,0BAA0B,CAAC;AAEpD,SAAS,WAAW,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE;IAC9C,MAAM,EACJ,KAAK,EAAE,EAAE,YAAY,EAAE,EACxB,GAAG,IAAI,CAAC;IAET,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC3C,M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IACJ,CAAC;IAED,OAAO,CACL,iBAAS,eAAe,YACtB,KAAC,UAAU,IACT,IAAI,EAAE;gBACJ,KAAK,EAAE,OAAO,CAAC,IAAI,EAAE;gBACrB,SAAS,EAAE,SAAS,CAAC,sBAAsB,CAAC;gBAC5C,OAAO,EAAE,CAAC,cAAc;aACzB,EACD,OAAO,EAAE;gBACP,MAAM,EAAE,IAAI;aACb,EACD,OAAO,EAAE,YAAY,EACrB,OAAO,EAAC,WAAW,EACnB,IAAI,EAAE,SAAS,CAAC,cAAc,CAAC,EAC/B,QAAQ,EAAE,KAAK,EACf,QAAQ,EAAE,CAAC,iBAAiB,GAC5B,GACE,CACP,CAAC;AACJ,CAAC;AAED,WAAW,CAAC,SAAS,GAAG;IACtB,IAAI,EAAE,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,UAAU;IAClD,iBAAiB,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;CAC7C,CAAC;AAEF,eAAe,WAAW,CAAC","sourcesContent":["import PropTypes from 'prop-types';\nimport { useState, useEffect } from 'react';\n\nimport { MenuButton } from '@pega/cosmos-react-core';\n\nimport useTranslate from '../../Hooks/useTranslate';\n\nfunction ActionsMenu({ view, enableActionsMenu }) {\n const {\n state: { selectedRows }\n } = view;\n\n const [actions, setActions] = useState([]);\n const [actionsFetched, setActionsFetched] = useState(false);\n const [translate] = useTranslate();\n useEffect(() => {\n setActions([]);\n setActionsFetched(false);\n }, [selectedRows]);\n\n const fetchActions = () => {\n if (!actionsFetched) {\n view.type.fetchActions(selectedRows).then(response => {\n const actionsArray = response.map(action => ({\n ...action,\n primary: action.text,\n onClick: () => {\n // cb to refresh only selected rows\n action.onClick(\n selectedRows,\n view.type.clearSelectionAndRefreshRows.bind(null, selectedRows)\n );\n }\n }));\n setActions(actionsArray);\n setActionsFetched(true);\n });\n }\n };\n\n // enableActionsMenu is false\n let wrapperDivProps = {\n 'aria-label': translate('Select two or more items to enable bulk actions'),\n role: 'button',\n 'aria-disabled': true,\n tabIndex: 0\n };\n\n // enableActionsMenu is true\n if (enableActionsMenu) {\n wrapperDivProps = {\n tabIndex: -1,\n 'aria-disabled': false\n };\n }\n\n return (\n <div {...wrapperDivProps}>\n <MenuButton\n menu={{\n items: actions.flat(),\n emptyText: translate('No actions available'),\n loading: !actionsFetched\n }}\n popover={{\n portal: true\n }}\n onClick={fetchActions}\n variant='secondary'\n text={translate('Bulk actions')}\n iconOnly={false}\n disabled={!enableActionsMenu}\n />\n </div>\n );\n}\n\nActionsMenu.propTypes = {\n view: PropTypes.objectOf(PropTypes.any).isRequired,\n enableActionsMenu: PropTypes.bool.isRequired\n};\n\nexport default ActionsMenu;\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare function AdvanceToolbar({ view }: {
|
|
2
|
+
view: any;
|
|
3
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare namespace AdvanceToolbar {
|
|
5
|
+
namespace propTypes {
|
|
6
|
+
let view: PropTypes.Validator<{
|
|
7
|
+
[x: string]: any;
|
|
8
|
+
}>;
|
|
9
|
+
}
|
|
10
|
+
let defaultProps: {};
|
|
11
|
+
}
|
|
12
|
+
export default AdvanceToolbar;
|
|
13
|
+
import PropTypes from 'prop-types';
|
|
14
|
+
//# sourceMappingURL=AdvanceToolbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdvanceToolbar.d.ts","sourceRoot":"","sources":["../../../../Core/Components/Toolbar/AdvanceToolbar.jsx"],"names":[],"mappings":"AAsBA;;4CAwHC;;;;;;;;;;sBA9IqB,YAAY"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { ListToolbar } from '@pega/cosmos-react-core';
|
|
4
|
+
import { SELECTION_MODES } from '../../constants';
|
|
5
|
+
import ActionsMenu from './ActionsMenu';
|
|
6
|
+
import MapToolbar from './Map/MapToolbar';
|
|
7
|
+
import ToolbarActions from './ToolbarActions';
|
|
8
|
+
import TimelineToolbar from './Timeline/TimelineToolbar';
|
|
9
|
+
import useSearch from './hooks/useSearch';
|
|
10
|
+
import useFilter from './hooks/useFilter';
|
|
11
|
+
import usePersonalization from './hooks/usePersonalization';
|
|
12
|
+
import useMore from './hooks/useMore';
|
|
13
|
+
import useGroup from './hooks/useGroup/useGroup';
|
|
14
|
+
import useSort from './hooks/useSort/useSort';
|
|
15
|
+
import getCount from './utils/getCount';
|
|
16
|
+
import RefreshBanner from './RefreshBanner';
|
|
17
|
+
import AnnounceRowsCount from './AnnounceRowsCount';
|
|
18
|
+
import ValidateMessage from './ValidateMessage';
|
|
19
|
+
import useFormControlProps from './hooks/useFormControlProps';
|
|
20
|
+
export default function AdvanceToolbar({ view }) {
|
|
21
|
+
const { selectedRecordsCount, meta: { basicMode, selectionMode, title, toolbarActions, template, refreshAction, allowBulkActions, mapFieldIds } = {}, rows, state, getContext, isLoading, showCount } = view;
|
|
22
|
+
const { pendingRefresh } = state;
|
|
23
|
+
const { getRequiredDef } = getContext();
|
|
24
|
+
const { validatemessage } = getRequiredDef() || {};
|
|
25
|
+
const { viewSelector } = usePersonalization({ view });
|
|
26
|
+
const search = useSearch({ view });
|
|
27
|
+
const count = showCount ? getCount({ view }) : {};
|
|
28
|
+
const filter = useFilter({ view });
|
|
29
|
+
const group = useGroup({ view });
|
|
30
|
+
const sort = useSort({ view });
|
|
31
|
+
const { actions, actionsButtonRef, popover } = useMore({ view });
|
|
32
|
+
const enableActionsMenu = selectionMode === SELECTION_MODES.multi && selectedRecordsCount !== 0;
|
|
33
|
+
const formControlProps = useFormControlProps(view);
|
|
34
|
+
const additionalActions = (_jsxs(_Fragment, { children: [basicMode && (_jsx(ToolbarActions, { toolbarActions: toolbarActions?.filter(action => !action.id.startsWith('Add')) })), allowBulkActions && _jsx(ActionsMenu, { enableActionsMenu: enableActionsMenu, view: view })] }));
|
|
35
|
+
const createNewAction = toolbarActions?.find(action => action.id.startsWith('Add'));
|
|
36
|
+
const createNew = createNewAction && basicMode
|
|
37
|
+
? {
|
|
38
|
+
label: createNewAction?.text,
|
|
39
|
+
onClick: createNewAction.onClick
|
|
40
|
+
}
|
|
41
|
+
: undefined;
|
|
42
|
+
let Toolbar;
|
|
43
|
+
switch (template) {
|
|
44
|
+
case 'Timeline':
|
|
45
|
+
Toolbar = (_jsxs(_Fragment, { children: [_jsx(TimelineToolbar, { name: title, formControlProps: formControlProps, viewSelector: viewSelector, search: search, count: count, additionalActions: additionalActions, filter: filter, createNew: createNew, view: view, actions: actions, actionsButtonRef: actionsButtonRef }), popover] }));
|
|
46
|
+
break;
|
|
47
|
+
case 'Map':
|
|
48
|
+
Toolbar = (_jsx(MapToolbar, { locationFieldId: mapFieldIds?.location, name: title, formControlProps: formControlProps, rows: rows, count: count, createNew: createNew, additionalActions: additionalActions }));
|
|
49
|
+
break;
|
|
50
|
+
default:
|
|
51
|
+
Toolbar = (_jsxs(_Fragment, { children: [_jsx(ListToolbar, { name: title, formControlProps: formControlProps, viewSelector: viewSelector, search: search, count: count, additionalActions: additionalActions, filter: filter, group: group, sort: sort, actions: actions, actionsButtonRef: actionsButtonRef, createNew: createNew }), popover] }));
|
|
52
|
+
}
|
|
53
|
+
return (_jsxs(AnnounceRowsCount, { state: state, count: count, isLoading: isLoading, children: [_jsx(ValidateMessage, { message: validatemessage, children: Toolbar }), refreshAction && pendingRefresh && (_jsx(RefreshBanner, { pendingRefresh: pendingRefresh, view: view }))] }));
|
|
54
|
+
}
|
|
55
|
+
AdvanceToolbar.propTypes = {
|
|
56
|
+
view: PropTypes.objectOf(PropTypes.any).isRequired
|
|
57
|
+
};
|
|
58
|
+
AdvanceToolbar.defaultProps = {};
|
|
59
|
+
//# sourceMappingURL=AdvanceToolbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdvanceToolbar.js","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MAAC,iBAAiB,IAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,aACjE,KAAC,eAAe,IAAC,OAAO,EAAE,eAAe,YACtC,OAAO,GAEQ,EACjB,aAAa,IAAI,cAAc,IAAI,CAClC,KAAC,aAAa,IAAC,cAAc,EAAE,cAAc,EAAE,IAAI,EAAE,IAAI,GAAI,CAC9D,IACiB,CACrB,CAAC;AACJ,CAAC;AAED,cAAc,CAAC,SAAS,GAAG;IACzB,IAAI,EAAE,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,UAAU;CACnD,CAAC;AAEF,cAAc,CAAC,YAAY,GAAG,EAAE,CAAC","sourcesContent":["import PropTypes from 'prop-types';\n\nimport { ListToolbar } from '@pega/cosmos-react-core';\n\nimport { SELECTION_MODES } from '../../constants';\n\nimport ActionsMenu from './ActionsMenu';\nimport MapToolbar from './Map/MapToolbar';\nimport ToolbarActions from './ToolbarActions';\nimport TimelineToolbar from './Timeline/TimelineToolbar';\nimport useSearch from './hooks/useSearch';\nimport useFilter from './hooks/useFilter';\nimport usePersonalization from './hooks/usePersonalization';\nimport useMore from './hooks/useMore';\nimport useGroup from './hooks/useGroup/useGroup';\nimport useSort from './hooks/useSort/useSort';\nimport getCount from './utils/getCount';\nimport RefreshBanner from './RefreshBanner';\nimport AnnounceRowsCount from './AnnounceRowsCount';\nimport ValidateMessage from './ValidateMessage';\nimport useFormControlProps from './hooks/useFormControlProps';\n\nexport default function AdvanceToolbar({ view }) {\n const {\n selectedRecordsCount,\n meta: {\n basicMode,\n selectionMode,\n title,\n toolbarActions,\n template,\n refreshAction,\n allowBulkActions,\n mapFieldIds\n } = {},\n rows,\n state,\n getContext,\n isLoading,\n showCount\n } = view;\n const { pendingRefresh } = state;\n const { getRequiredDef } = getContext();\n const { validatemessage } = getRequiredDef() || {};\n const { viewSelector } = usePersonalization({ view });\n const search = useSearch({ view });\n const count = showCount ? getCount({ view }) : {};\n const filter = useFilter({ view });\n const group = useGroup({ view });\n const sort = useSort({ view });\n const { actions, actionsButtonRef, popover } = useMore({ view });\n const enableActionsMenu = selectionMode === SELECTION_MODES.multi && selectedRecordsCount !== 0;\n const formControlProps = useFormControlProps(view);\n\n const additionalActions = (\n <>\n {basicMode && (\n <ToolbarActions\n toolbarActions={toolbarActions?.filter(action => !action.id.startsWith('Add'))}\n />\n )}\n {allowBulkActions && <ActionsMenu enableActionsMenu={enableActionsMenu} view={view} />}\n </>\n );\n\n const createNewAction = toolbarActions?.find(action => action.id.startsWith('Add'));\n const createNew =\n createNewAction && basicMode\n ? {\n label: createNewAction?.text,\n onClick: createNewAction.onClick\n }\n : undefined;\n\n let Toolbar;\n switch (template) {\n case 'Timeline':\n Toolbar = (\n <>\n <TimelineToolbar\n name={title}\n formControlProps={formControlProps}\n viewSelector={viewSelector}\n search={search}\n count={count}\n additionalActions={additionalActions}\n filter={filter}\n createNew={createNew}\n view={view}\n actions={actions}\n actionsButtonRef={actionsButtonRef}\n />\n {popover}\n </>\n );\n break;\n case 'Map':\n Toolbar = (\n <MapToolbar\n locationFieldId={mapFieldIds?.location}\n name={title}\n formControlProps={formControlProps}\n rows={rows}\n count={count}\n createNew={createNew}\n additionalActions={additionalActions}\n />\n );\n break;\n default:\n Toolbar = (\n <>\n <ListToolbar\n name={title}\n formControlProps={formControlProps}\n viewSelector={viewSelector}\n search={search}\n count={count}\n additionalActions={additionalActions}\n filter={filter}\n group={group}\n sort={sort}\n actions={actions}\n actionsButtonRef={actionsButtonRef}\n createNew={createNew}\n />\n {popover}\n </>\n );\n }\n\n return (\n <AnnounceRowsCount state={state} count={count} isLoading={isLoading}>\n <ValidateMessage message={validatemessage}>\n {Toolbar}\n {/* FIXME: This implementation of error status should be considered temporary until an official, and properly accessible, spec is determined. */}\n </ValidateMessage>\n {refreshAction && pendingRefresh && (\n <RefreshBanner pendingRefresh={pendingRefresh} view={view} />\n )}\n </AnnounceRowsCount>\n );\n}\n\nAdvanceToolbar.propTypes = {\n view: PropTypes.objectOf(PropTypes.any).isRequired\n};\n\nAdvanceToolbar.defaultProps = {};\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export default AnnounceRowsCount;
|
|
2
|
+
declare function AnnounceRowsCount({ state, count, isLoading, children }: {
|
|
3
|
+
state: any;
|
|
4
|
+
count: any;
|
|
5
|
+
isLoading: any;
|
|
6
|
+
children: any;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare namespace AnnounceRowsCount {
|
|
9
|
+
namespace propTypes {
|
|
10
|
+
let state: PropTypes.Validator<{
|
|
11
|
+
[x: string]: any;
|
|
12
|
+
}>;
|
|
13
|
+
let count: PropTypes.Validator<{
|
|
14
|
+
[x: string]: any;
|
|
15
|
+
}>;
|
|
16
|
+
let children: PropTypes.Validator<object>;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
import PropTypes from 'prop-types';
|
|
20
|
+
//# sourceMappingURL=AnnounceRowsCount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnnounceRowsCount.d.ts","sourceRoot":"","sources":["../../../../Core/Components/Toolbar/AnnounceRowsCount.jsx"],"names":[],"mappings":";AAIA;;;;;4CAGC;;;;;;;;;;;;sBAPqB,YAAY"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import useAnnounceRowsCount from './hooks/useAnnounceRowsCount';
|
|
4
|
+
const AnnounceRowsCount = ({ state, count, isLoading, children }) => {
|
|
5
|
+
useAnnounceRowsCount(state, count, isLoading);
|
|
6
|
+
return _jsx(_Fragment, { children: children });
|
|
7
|
+
};
|
|
8
|
+
AnnounceRowsCount.propTypes = {
|
|
9
|
+
state: PropTypes.objectOf(PropTypes.any).isRequired,
|
|
10
|
+
count: PropTypes.objectOf(PropTypes.any).isRequired,
|
|
11
|
+
children: PropTypes.oneOfType([PropTypes.object, PropTypes.array]).isRequired
|
|
12
|
+
};
|
|
13
|
+
export default AnnounceRowsCount;
|
|
14
|
+
//# sourceMappingURL=AnnounceRowsCount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnnounceRowsCount.js","sourceRoot":"","sources":["../../../../Core/Components/Toolbar/AnnounceRowsCount.jsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,oBAAoB,MAAM,8BAA8B,CAAC;AAEhE,MAAM,iBAAiB,GAAG,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE;IAClE,oBAAoB,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;IAC9C,OAAO,4BAAG,QAAQ,GAAI,CAAC;AACzB,CAAC,CAAC;AAEF,iBAAiB,CAAC,SAAS,GAAG;IAC5B,KAAK,EAAE,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,UAAU;IACnD,KAAK,EAAE,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,UAAU;IACnD,QAAQ,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU;CAC9E,CAAC;AAEF,eAAe,iBAAiB,CAAC","sourcesContent":["import PropTypes from 'prop-types';\n\nimport useAnnounceRowsCount from './hooks/useAnnounceRowsCount';\n\nconst AnnounceRowsCount = ({ state, count, isLoading, children }) => {\n useAnnounceRowsCount(state, count, isLoading);\n return <>{children}</>;\n};\n\nAnnounceRowsCount.propTypes = {\n state: PropTypes.objectOf(PropTypes.any).isRequired,\n count: PropTypes.objectOf(PropTypes.any).isRequired,\n children: PropTypes.oneOfType([PropTypes.object, PropTypes.array]).isRequired\n};\n\nexport default AnnounceRowsCount;\n"]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export function getIconByFieldType(type: any): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
/**
|
|
3
|
+
* Transforms the columns array into array of columns grouped by category
|
|
4
|
+
* @param {Array} columns : ;
|
|
5
|
+
* @returns Arrays of columns nested by category
|
|
6
|
+
*/
|
|
7
|
+
export function transformData(columns: any[], action: any): any[];
|
|
8
|
+
export function ColumnSelectorControl(props: any): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export namespace ColumnSelectorControl {
|
|
10
|
+
namespace propTypes {
|
|
11
|
+
let data: PropTypes.Validator<(object | null | undefined)[]>;
|
|
12
|
+
let onSelect: PropTypes.Validator<(...args: any[]) => any>;
|
|
13
|
+
let forceShowPopup: PropTypes.Validator<boolean>;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export const colsVisibility: "Show/hide columns";
|
|
17
|
+
export const pinning: "Freeze columns";
|
|
18
|
+
declare const _default: import("react").MemoExoticComponent<typeof ColumnSelector>;
|
|
19
|
+
export default _default;
|
|
20
|
+
import PropTypes from 'prop-types';
|
|
21
|
+
declare function ColumnSelector({ dispatch, columns, action }: {
|
|
22
|
+
dispatch: any;
|
|
23
|
+
columns: any;
|
|
24
|
+
action: any;
|
|
25
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
declare namespace ColumnSelector {
|
|
27
|
+
export namespace propTypes_1 {
|
|
28
|
+
let dispatch: PropTypes.Validator<(...args: any[]) => any>;
|
|
29
|
+
let columns: PropTypes.Validator<(object | null | undefined)[]>;
|
|
30
|
+
let action: PropTypes.Validator<string>;
|
|
31
|
+
}
|
|
32
|
+
export { propTypes_1 as propTypes };
|
|
33
|
+
export let defaultProps: {};
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=ColumnSelector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColumnSelector.d.ts","sourceRoot":"","sources":["../../../../Core/Components/Toolbar/ColumnSelector.jsx"],"names":[],"mappings":"AAWA,uFAGC;AACD;;;;GAIG;AACH,kEA4DC;AAED,2FA8DC;;;;;;;;AAxID,iDAAkD;AAClD,uCAAwC;;;sBARlB,YAAY;AAuJlC;;;;4CAwBC"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { memo, useCallback, useEffect, useRef, useState, useMemo } from 'react';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import { Icon, SearchInput, Menu, menuHelpers, useElement } from '@pega/cosmos-react-core';
|
|
5
|
+
import useSelect from '../../Hooks/UseSelect';
|
|
6
|
+
import { allowToggle, getFieldIcon } from '../../Utils';
|
|
7
|
+
export const colsVisibility = 'Show/hide columns';
|
|
8
|
+
export const pinning = 'Freeze columns';
|
|
9
|
+
export function getIconByFieldType(type) {
|
|
10
|
+
const iconName = getFieldIcon(type);
|
|
11
|
+
return _jsx(Icon, { "data-test-id": iconName, "data-testid": iconName, name: iconName });
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Transforms the columns array into array of columns grouped by category
|
|
15
|
+
* @param {Array} columns : ;
|
|
16
|
+
* @returns Arrays of columns nested by category
|
|
17
|
+
*/
|
|
18
|
+
export function transformData(columns, action) {
|
|
19
|
+
const result = [];
|
|
20
|
+
if (!columns?.length)
|
|
21
|
+
return result;
|
|
22
|
+
const categoryObj = {};
|
|
23
|
+
const allowColumnToggle = allowToggle(columns[0].parent.getVisibleColumns());
|
|
24
|
+
columns
|
|
25
|
+
?.filter(c => c.field.toggle)
|
|
26
|
+
.forEach(column => {
|
|
27
|
+
const { field: { id, category = [], type }, label, hidden, frozen } = column;
|
|
28
|
+
const lastCategoryLabel = category.length ? category[category.length - 1].label : undefined;
|
|
29
|
+
let selectAction;
|
|
30
|
+
let disabled;
|
|
31
|
+
if (action === colsVisibility) {
|
|
32
|
+
selectAction = !hidden;
|
|
33
|
+
disabled = !allowColumnToggle && !hidden;
|
|
34
|
+
}
|
|
35
|
+
else if (action === pinning)
|
|
36
|
+
selectAction = frozen;
|
|
37
|
+
if (categoryObj[lastCategoryLabel])
|
|
38
|
+
categoryObj[lastCategoryLabel].items.push({
|
|
39
|
+
id,
|
|
40
|
+
primary: label,
|
|
41
|
+
label,
|
|
42
|
+
selected: selectAction,
|
|
43
|
+
type,
|
|
44
|
+
disabled
|
|
45
|
+
});
|
|
46
|
+
else {
|
|
47
|
+
categoryObj[lastCategoryLabel] = {
|
|
48
|
+
id: lastCategoryLabel,
|
|
49
|
+
label: lastCategoryLabel,
|
|
50
|
+
items: [
|
|
51
|
+
{
|
|
52
|
+
id,
|
|
53
|
+
primary: label,
|
|
54
|
+
selected: selectAction,
|
|
55
|
+
label,
|
|
56
|
+
type,
|
|
57
|
+
disabled
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
// Items with no category attribute are set in the root of returned array
|
|
64
|
+
if (categoryObj[undefined] && categoryObj[undefined].items) {
|
|
65
|
+
result.push(...categoryObj[undefined].items);
|
|
66
|
+
delete categoryObj[undefined];
|
|
67
|
+
}
|
|
68
|
+
const keys = Object.keys(categoryObj);
|
|
69
|
+
// Items with category attribute are grouped inside the nested category object
|
|
70
|
+
keys.forEach(key => {
|
|
71
|
+
result.push(categoryObj[key]);
|
|
72
|
+
});
|
|
73
|
+
return result;
|
|
74
|
+
}
|
|
75
|
+
export function ColumnSelectorControl(props) {
|
|
76
|
+
const { data, onSelect, forceShowPopup } = props;
|
|
77
|
+
const flatData = menuHelpers.flatten(data);
|
|
78
|
+
data.forEach(d => {
|
|
79
|
+
if (d.items)
|
|
80
|
+
d.items.forEach(item => {
|
|
81
|
+
item.visual = getIconByFieldType(item.type);
|
|
82
|
+
});
|
|
83
|
+
else {
|
|
84
|
+
d.visual = getIconByFieldType(d.type);
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
const selectedData = flatData.filter(o => o.selected).map(obj => obj.id);
|
|
88
|
+
const [visibleColumns, onChecked] = useSelect(selectedData);
|
|
89
|
+
const onChange = useCallback(id => onChecked(id), [onChecked]);
|
|
90
|
+
const [searchQuery, onSearch] = useState('');
|
|
91
|
+
const [searchEl, setSearchEl] = useElement(null);
|
|
92
|
+
const hasMountedRef = useRef(false);
|
|
93
|
+
const onSearchTriggered = useCallback(searchString => {
|
|
94
|
+
onSearch(searchString);
|
|
95
|
+
}, [onSearch]);
|
|
96
|
+
useEffect(() => {
|
|
97
|
+
if (forceShowPopup && searchEl)
|
|
98
|
+
searchEl.focus();
|
|
99
|
+
}, [forceShowPopup, searchEl]);
|
|
100
|
+
useEffect(() => {
|
|
101
|
+
if (hasMountedRef.current) {
|
|
102
|
+
const previousVisibleColumns = flatData.filter(o => o.selected).map(o => o.id);
|
|
103
|
+
const currentVisibleColumns = [...visibleColumns];
|
|
104
|
+
const toggledColumns = [
|
|
105
|
+
...currentVisibleColumns.filter(id => !previousVisibleColumns.includes(id)),
|
|
106
|
+
...previousVisibleColumns.filter(id => !visibleColumns.has(id))
|
|
107
|
+
];
|
|
108
|
+
onSelect(toggledColumns);
|
|
109
|
+
}
|
|
110
|
+
hasMountedRef.current = true;
|
|
111
|
+
}, [visibleColumns]);
|
|
112
|
+
const itemsToRender = searchQuery
|
|
113
|
+
? flatData.filter(item => item.label.toLowerCase().includes(searchQuery.toLowerCase()))
|
|
114
|
+
: data;
|
|
115
|
+
return (_jsx(Menu, { items: itemsToRender, mode: 'multi-select', onItemClick: onChange, role: 'listbox', focusControlEl: searchEl || undefined, header: _jsx(SearchInput, { value: searchQuery, onSearchChange: onSearchTriggered, ref: setSearchEl }) }));
|
|
116
|
+
}
|
|
117
|
+
ColumnSelectorControl.propTypes = {
|
|
118
|
+
data: PropTypes.arrayOf(PropTypes.object).isRequired,
|
|
119
|
+
onSelect: PropTypes.func.isRequired,
|
|
120
|
+
forceShowPopup: PropTypes.bool.isRequired
|
|
121
|
+
};
|
|
122
|
+
function ColumnSelector({ dispatch, columns, action }) {
|
|
123
|
+
const data = useMemo(() => transformData(columns, action), [columns, action]);
|
|
124
|
+
const [forceShowPopup, setForceShowPopup] = useState(true);
|
|
125
|
+
const onSelectHandler = useCallback(cols => {
|
|
126
|
+
if (columns.length > 100) {
|
|
127
|
+
setForceShowPopup(false);
|
|
128
|
+
}
|
|
129
|
+
if (cols.length > 0)
|
|
130
|
+
dispatch(cols);
|
|
131
|
+
}, [dispatch, columns.length]);
|
|
132
|
+
return (_jsx(_Fragment, { children: forceShowPopup && (_jsx(ColumnSelectorControl, { data: data, onSelect: onSelectHandler, forceShowPopup: forceShowPopup })) }));
|
|
133
|
+
}
|
|
134
|
+
ColumnSelector.propTypes = {
|
|
135
|
+
dispatch: PropTypes.func.isRequired,
|
|
136
|
+
columns: PropTypes.arrayOf(PropTypes.object).isRequired,
|
|
137
|
+
action: PropTypes.string.isRequired
|
|
138
|
+
};
|
|
139
|
+
ColumnSelector.defaultProps = {};
|
|
140
|
+
export default memo(ColumnSelector);
|
|
141
|
+
//# sourceMappingURL=ColumnSelector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColumnSelector.js","sourceRoot":"","sources":["../../../../Core/Components/Toolbar/ColumnSelector.jsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChF,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE3F,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAExD,MAAM,CAAC,MAAM,cAAc,GAAG,mBAAmB,CAAC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eAAe,IAAI,CAAC,cAAc,CAAC,CAAC","sourcesContent":["import { memo, useCallback, useEffect, useRef, useState, useMemo } from 'react';\nimport PropTypes from 'prop-types';\n\nimport { Icon, SearchInput, Menu, menuHelpers, useElement } from '@pega/cosmos-react-core';\n\nimport useSelect from '../../Hooks/UseSelect';\nimport { allowToggle, getFieldIcon } from '../../Utils';\n\nexport const colsVisibility = 'Show/hide columns';\nexport const pinning = 'Freeze columns';\n\nexport function getIconByFieldType(type) {\n const iconName = getFieldIcon(type);\n return <Icon data-test-id={iconName} data-testid={iconName} name={iconName} />;\n}\n/**\n * Transforms the columns array into array of columns grouped by category\n * @param {Array} columns : ;\n * @returns Arrays of columns nested by category\n */\nexport function transformData(columns, action) {\n const result = [];\n if (!columns?.length) return result;\n\n const categoryObj = {};\n const allowColumnToggle = allowToggle(columns[0].parent.getVisibleColumns());\n\n columns\n ?.filter(c => c.field.toggle)\n .forEach(column => {\n const {\n field: { id, category = [], type },\n label,\n hidden,\n frozen\n } = column;\n const lastCategoryLabel = category.length ? category[category.length - 1].label : undefined;\n let selectAction;\n let disabled;\n if (action === colsVisibility) {\n selectAction = !hidden;\n disabled = !allowColumnToggle && !hidden;\n } else if (action === pinning) selectAction = frozen;\n if (categoryObj[lastCategoryLabel])\n categoryObj[lastCategoryLabel].items.push({\n id,\n primary: label,\n label,\n selected: selectAction,\n type,\n disabled\n });\n else {\n categoryObj[lastCategoryLabel] = {\n id: lastCategoryLabel,\n label: lastCategoryLabel,\n items: [\n {\n id,\n primary: label,\n selected: selectAction,\n label,\n type,\n disabled\n }\n ]\n };\n }\n });\n // Items with no category attribute are set in the root of returned array\n if (categoryObj[undefined] && categoryObj[undefined].items) {\n result.push(...categoryObj[undefined].items);\n delete categoryObj[undefined];\n }\n const keys = Object.keys(categoryObj);\n // Items with category attribute are grouped inside the nested category object\n keys.forEach(key => {\n result.push(categoryObj[key]);\n });\n return result;\n}\n\nexport function ColumnSelectorControl(props) {\n const { data, onSelect, forceShowPopup } = props;\n const flatData = menuHelpers.flatten(data);\n\n data.forEach(d => {\n if (d.items)\n d.items.forEach(item => {\n item.visual = getIconByFieldType(item.type);\n });\n else {\n d.visual = getIconByFieldType(d.type);\n }\n });\n\n const selectedData = flatData.filter(o => o.selected).map(obj => obj.id);\n const [visibleColumns, onChecked] = useSelect(selectedData);\n const onChange = useCallback(id => onChecked(id), [onChecked]);\n const [searchQuery, onSearch] = useState('');\n const [searchEl, setSearchEl] = useElement(null);\n\n const hasMountedRef = useRef(false);\n\n const onSearchTriggered = useCallback(\n searchString => {\n onSearch(searchString);\n },\n [onSearch]\n );\n\n useEffect(() => {\n if (forceShowPopup && searchEl) searchEl.focus();\n }, [forceShowPopup, searchEl]);\n\n useEffect(() => {\n if (hasMountedRef.current) {\n const previousVisibleColumns = flatData.filter(o => o.selected).map(o => o.id);\n const currentVisibleColumns = [...visibleColumns];\n const toggledColumns = [\n ...currentVisibleColumns.filter(id => !previousVisibleColumns.includes(id)),\n ...previousVisibleColumns.filter(id => !visibleColumns.has(id))\n ];\n onSelect(toggledColumns);\n }\n hasMountedRef.current = true;\n }, [visibleColumns]);\n\n const itemsToRender = searchQuery\n ? flatData.filter(item => item.label.toLowerCase().includes(searchQuery.toLowerCase()))\n : data;\n\n return (\n <Menu\n items={itemsToRender}\n mode='multi-select'\n onItemClick={onChange}\n role='listbox'\n focusControlEl={searchEl || undefined}\n header={\n <SearchInput value={searchQuery} onSearchChange={onSearchTriggered} ref={setSearchEl} />\n }\n />\n );\n}\n\nColumnSelectorControl.propTypes = {\n data: PropTypes.arrayOf(PropTypes.object).isRequired,\n onSelect: PropTypes.func.isRequired,\n forceShowPopup: PropTypes.bool.isRequired\n};\n\nfunction ColumnSelector({ dispatch, columns, action }) {\n const data = useMemo(() => transformData(columns, action), [columns, action]);\n const [forceShowPopup, setForceShowPopup] = useState(true);\n const onSelectHandler = useCallback(\n cols => {\n if (columns.length > 100) {\n setForceShowPopup(false);\n }\n if (cols.length > 0) dispatch(cols);\n },\n [dispatch, columns.length]\n );\n\n return (\n <>\n {forceShowPopup && (\n <ColumnSelectorControl\n data={data}\n onSelect={onSelectHandler}\n forceShowPopup={forceShowPopup}\n />\n )}\n </>\n );\n}\n\nColumnSelector.propTypes = {\n dispatch: PropTypes.func.isRequired,\n columns: PropTypes.arrayOf(PropTypes.object).isRequired,\n action: PropTypes.string.isRequired\n};\n\nColumnSelector.defaultProps = {};\n\nexport default memo(ColumnSelector);\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: import("react").MemoExoticComponent<typeof DebugInfo>;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare function DebugInfo({ view }: {
|
|
4
|
+
view: any;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare namespace DebugInfo {
|
|
7
|
+
namespace propTypes {
|
|
8
|
+
let view: PropTypes.Validator<{
|
|
9
|
+
[x: string]: any;
|
|
10
|
+
}>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
import PropTypes from 'prop-types';
|
|
14
|
+
//# sourceMappingURL=DebugInfo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DebugInfo.d.ts","sourceRoot":"","sources":["../../../../Core/Components/Toolbar/DebugInfo.jsx"],"names":[],"mappings":";;AA0BA;;4CAiDC;;;;;;;;sBA1EqB,YAAY"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { memo, useRef, useEffect } from 'react';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import styled, { css } from 'styled-components';
|
|
5
|
+
import { Card, CardContent, CardHeader, FieldValueList, Text } from '@pega/cosmos-react-core';
|
|
6
|
+
import useTranslate from '../../Hooks/useTranslate';
|
|
7
|
+
import { debugInfoFields } from '../../constants';
|
|
8
|
+
const fieldsConfiguration = [
|
|
9
|
+
{ field: debugInfoFields.className, defaultLabel: 'Class' },
|
|
10
|
+
{ field: debugInfoFields.dataPage, defaultLabel: 'Data page' },
|
|
11
|
+
{ field: debugInfoFields.dataSource, defaultLabel: 'Data source' },
|
|
12
|
+
{ field: debugInfoFields.timeTaken, defaultLabel: 'Time taken' },
|
|
13
|
+
{ field: debugInfoFields.insightId, defaultLabel: 'Insight ID', hideIfNotAvailable: true }
|
|
14
|
+
];
|
|
15
|
+
const StyledDebugInfo = styled.div(() => {
|
|
16
|
+
return css `
|
|
17
|
+
.debug-record {
|
|
18
|
+
/* stylelint-disable unit-allowed-list */
|
|
19
|
+
padding: 5px;
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
22
|
+
});
|
|
23
|
+
function DebugInfo({ view }) {
|
|
24
|
+
const [translate] = useTranslate();
|
|
25
|
+
const debugInfoList = view.debugInfo.length === 0 ? [{}] : view.debugInfo;
|
|
26
|
+
const headingRef = useRef(null);
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
if (headingRef.current)
|
|
29
|
+
headingRef.current.focus();
|
|
30
|
+
}, []);
|
|
31
|
+
const formattedData = debugInfoList.map(debugInfoEntry => fieldsConfiguration.reduce((result, { field, defaultLabel, hideIfNotAvailable }) => {
|
|
32
|
+
if (hideIfNotAvailable && !debugInfoEntry[field]) {
|
|
33
|
+
return result;
|
|
34
|
+
}
|
|
35
|
+
result.push({
|
|
36
|
+
id: field,
|
|
37
|
+
name: translate(defaultLabel),
|
|
38
|
+
value: debugInfoEntry[field] ? (_jsx(Text, { variant: 'h5', "data-testid": `field-${field}`, children: debugInfoEntry[field] })) : undefined
|
|
39
|
+
});
|
|
40
|
+
return result;
|
|
41
|
+
}, []));
|
|
42
|
+
return (_jsx(StyledDebugInfo, { children: _jsxs(Card, { children: [_jsx(CardHeader, { children: _jsx(Text, { tabIndex: 0, ref: headingRef, variant: 'h2', children: translate('Query info') }) }), _jsx(CardContent, { children: formattedData.map((debugInfoEntry, index) => (_jsx(FieldValueList, { className: 'debug-record', variant: 'inline', fields: debugInfoEntry }, index))) })] }) }));
|
|
43
|
+
}
|
|
44
|
+
DebugInfo.propTypes = {
|
|
45
|
+
view: PropTypes.objectOf(PropTypes.any).isRequired
|
|
46
|
+
};
|
|
47
|
+
export default memo(DebugInfo);
|
|
48
|
+
//# sourceMappingURL=DebugInfo.js.map
|