@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,12 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export { Comma as comma };
|
|
3
|
+
export { Space as space };
|
|
4
|
+
export { MultiLine as multiline };
|
|
5
|
+
export { ForwardSlash as forwardslash };
|
|
6
|
+
}
|
|
7
|
+
export default _default;
|
|
8
|
+
import Comma from './Comma';
|
|
9
|
+
import Space from './Space';
|
|
10
|
+
import MultiLine from './MultiLine';
|
|
11
|
+
import ForwardSlash from './ForwardSlash';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/index.js"],"names":[],"mappings":";;;;;;;kBAAkB,SAAS;kBACT,SAAS;sBACL,aAAa;yBACV,gBAAgB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Comma from './Comma';
|
|
2
|
+
import Space from './Space';
|
|
3
|
+
import MultiLine from './MultiLine';
|
|
4
|
+
import ForwardSlash from './ForwardSlash';
|
|
5
|
+
export default {
|
|
6
|
+
comma: Comma,
|
|
7
|
+
space: Space,
|
|
8
|
+
multiline: MultiLine,
|
|
9
|
+
forwardslash: ForwardSlash
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/index.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C,eAAe;IACb,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE,KAAK;IACZ,SAAS,EAAE,SAAS;IACpB,YAAY,EAAE,YAAY;CAC3B,CAAC","sourcesContent":["import Comma from './Comma';\nimport Space from './Space';\nimport MultiLine from './MultiLine';\nimport ForwardSlash from './ForwardSlash';\n\nexport default {\n comma: Comma,\n space: Space,\n multiline: MultiLine,\n forwardslash: ForwardSlash\n};\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export default CustomCell;
|
|
2
|
+
declare function CustomCell({ getExpression, getParentContext, renderFactory, resolveViewComponent, getStyles }: {
|
|
3
|
+
getExpression: any;
|
|
4
|
+
getParentContext: any;
|
|
5
|
+
renderFactory: any;
|
|
6
|
+
resolveViewComponent: any;
|
|
7
|
+
getStyles: any;
|
|
8
|
+
}): any;
|
|
9
|
+
declare namespace CustomCell {
|
|
10
|
+
namespace propTypes {
|
|
11
|
+
let getExpression: PropTypes.Validator<(...args: any[]) => any>;
|
|
12
|
+
let getParentContext: PropTypes.Validator<(...args: any[]) => any>;
|
|
13
|
+
let renderFactory: PropTypes.Validator<(...args: any[]) => any>;
|
|
14
|
+
let resolveViewComponent: PropTypes.Validator<(...args: any[]) => any>;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
import PropTypes from 'prop-types';
|
|
18
|
+
//# sourceMappingURL=CustomCell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomCell.d.ts","sourceRoot":"","sources":["../../../../../Core/Components/DefaultComponents/CellRenderers/CustomCell.jsx"],"names":[],"mappings":";AAIA;;;;;;QA+DC;;;;;;;;;sBAnEqB,YAAY"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import RenderingEngine from '../../RenderingEngine/RenderCell';
|
|
4
|
+
function CustomCell({ getExpression, getParentContext, renderFactory, resolveViewComponent, getStyles }) {
|
|
5
|
+
const expression = getExpression();
|
|
6
|
+
const viewContext = getParentContext();
|
|
7
|
+
const stack = [];
|
|
8
|
+
const cell = expression?.reduce((acc, c, index) => {
|
|
9
|
+
if (Array.isArray(c)) {
|
|
10
|
+
const lastEntry = stack.pop();
|
|
11
|
+
const secondLastEntry = stack.pop();
|
|
12
|
+
let SecondComponent = lastEntry;
|
|
13
|
+
let FirstComponent = secondLastEntry;
|
|
14
|
+
if (typeof lastEntry === 'string') {
|
|
15
|
+
// eslint-disable-next-line react/no-unstable-nested-components
|
|
16
|
+
SecondComponent = props => (_jsx(RenderingEngine, { highlighter: true, ...viewContext.getRenderingEnginePropsById(lastEntry), ...props, context: { getStyles }, className: 'combined-cell-content' }));
|
|
17
|
+
}
|
|
18
|
+
if (typeof secondLastEntry === 'string') {
|
|
19
|
+
// eslint-disable-next-line react/no-unstable-nested-components
|
|
20
|
+
FirstComponent = props => (_jsx(RenderingEngine, { highlighter: true, ...viewContext.getRenderingEnginePropsById(secondLastEntry), ...props, context: { getStyles }, className: 'combined-cell-content' }));
|
|
21
|
+
}
|
|
22
|
+
stack.push(props => {
|
|
23
|
+
const firstComponentProps = typeof lastEntry === 'string' ? props : {};
|
|
24
|
+
const secondComponentProps = typeof secondLastEntry === 'string' ? props : {};
|
|
25
|
+
// TODO: getComponent how to get renderFactory for resolveViewComponent method
|
|
26
|
+
return resolveViewComponent(c[0], renderFactory, {
|
|
27
|
+
// eslint-disable-next-line react/no-unstable-nested-components
|
|
28
|
+
FirstComponent: () => _jsx(FirstComponent, { ...firstComponentProps }),
|
|
29
|
+
// eslint-disable-next-line react/no-unstable-nested-components
|
|
30
|
+
SecondComponent: () => _jsx(SecondComponent, { ...secondComponentProps }),
|
|
31
|
+
...viewContext
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
stack.push(c);
|
|
37
|
+
}
|
|
38
|
+
if (index === expression.length - 1)
|
|
39
|
+
return stack.pop();
|
|
40
|
+
return acc;
|
|
41
|
+
}, null);
|
|
42
|
+
return cell?.() ?? null;
|
|
43
|
+
}
|
|
44
|
+
CustomCell.propTypes = {
|
|
45
|
+
getExpression: PropTypes.func.isRequired,
|
|
46
|
+
getParentContext: PropTypes.func.isRequired,
|
|
47
|
+
renderFactory: PropTypes.func.isRequired,
|
|
48
|
+
resolveViewComponent: PropTypes.func.isRequired
|
|
49
|
+
};
|
|
50
|
+
export default CustomCell;
|
|
51
|
+
//# sourceMappingURL=CustomCell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomCell.js","sourceRoot":"","sources":["../../../../../Core/Components/DefaultComponents/CellRenderers/CustomCell.jsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,eAAe,MAAM,kCAAkC,CAAC;AAE/D,SAAS,UAAU,CAAC,EAClB,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,oBAAoB,EACpB,SAAS,EACV;IACC,MAAM,UAAU,GAAG,aAAa,EAAE,CAAC;IACnC,MAAM,WAAW,GAAG,gBAAgB,EAAE,CAAC;IACvC,MAAM,KAAK,GAAG,EAAE,CAAC;IACjB,MAAM,IAAI,GAAG,UAAU,EAAE,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE;QAChD,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;YACrB,MAAM,SAAS,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC;YAC9B,MAAM,eAAe,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC;YAEpC,IAAI,eAAe,GAAG,SAAS,CAAC;YAChC,IAAI,cAAc,GAAG,eAAe,CAAC;YAErC,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE,CAAC;gBAClC,+DAA+D;gBAC/D,eAAe,GAAG,KAAK,CAAC,EAAE,CAAC,CACzB,KAAC,eAAe,IACd,WAAW,WACP,WAAW,CAAC,2BAA2B,CAAC,SAAS,CAAC,KAClD,KAAK,EACT,OAAO,EAAE,EAAE,SAAS,EAAE,EACtB,SAAS,EAAC,uBAAuB,GACjC,CACH,CAAC;YACJ,CAAC;YAED,IAAI,OAAO,eAAe,KAAK,QAAQ,EAAE,CAAC;gBACxC,+DAA+D;gBAC/D,cAAc,GAAG,KAAK,CAAC,EAAE,CAAC,CACxB,KAAC,eAAe,IACd,WAAW,WACP,WAAW,CAAC,2BAA2B,CAAC,eAAe,CAAC,KACxD,KAAK,EACT,OAAO,EAAE,EAAE,SAAS,EAAE,EACtB,SAAS,EAAC,uBAAuB,GACjC,CACH,CAAC;YACJ,CAAC;YAED,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;gBACjB,MAAM,mBAAmB,GAAG,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvE,MAAM,oBAAoB,GAAG,OAAO,eAAe,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC9E,8EAA8E;gBAC9E,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE;oBAC/C,+DAA+D;oBAC/D,cAAc,EAAE,GAAG,EAAE,CAAC,KAAC,cAAc,OAAK,mBAAmB,GAAI;oBACjE,+DAA+D;oBAC/D,eAAe,EAAE,GAAG,EAAE,CAAC,KAAC,eAAe,OAAK,oBAAoB,GAAI;oBACpE,GAAG,WAAW;iBACf,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC;aAAM,CAAC;YACN,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAChB,CAAC;QACD,IAAI,KAAK,KAAK,UAAU,CAAC,MAAM,GAAG,CAAC;YAAE,OAAO,KAAK,CAAC,GAAG,EAAE,CAAC;QACxD,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,IAAI,CAAC,CAAC;IACT,OAAO,IAAI,EAAE,EAAE,IAAI,IAAI,CAAC;AAC1B,CAAC;AAED,UAAU,CAAC,SAAS,GAAG;IACrB,aAAa,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IACxC,gBAAgB,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IAC3C,aAAa,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IACxC,oBAAoB,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;CAChD,CAAC;AAEF,eAAe,UAAU,CAAC","sourcesContent":["import PropTypes from 'prop-types';\n\nimport RenderingEngine from '../../RenderingEngine/RenderCell';\n\nfunction CustomCell({\n getExpression,\n getParentContext,\n renderFactory,\n resolveViewComponent,\n getStyles\n}) {\n const expression = getExpression();\n const viewContext = getParentContext();\n const stack = [];\n const cell = expression?.reduce((acc, c, index) => {\n if (Array.isArray(c)) {\n const lastEntry = stack.pop();\n const secondLastEntry = stack.pop();\n\n let SecondComponent = lastEntry;\n let FirstComponent = secondLastEntry;\n\n if (typeof lastEntry === 'string') {\n // eslint-disable-next-line react/no-unstable-nested-components\n SecondComponent = props => (\n <RenderingEngine\n highlighter\n {...viewContext.getRenderingEnginePropsById(lastEntry)}\n {...props}\n context={{ getStyles }}\n className='combined-cell-content'\n />\n );\n }\n\n if (typeof secondLastEntry === 'string') {\n // eslint-disable-next-line react/no-unstable-nested-components\n FirstComponent = props => (\n <RenderingEngine\n highlighter\n {...viewContext.getRenderingEnginePropsById(secondLastEntry)}\n {...props}\n context={{ getStyles }}\n className='combined-cell-content'\n />\n );\n }\n\n stack.push(props => {\n const firstComponentProps = typeof lastEntry === 'string' ? props : {};\n const secondComponentProps = typeof secondLastEntry === 'string' ? props : {};\n // TODO: getComponent how to get renderFactory for resolveViewComponent method\n return resolveViewComponent(c[0], renderFactory, {\n // eslint-disable-next-line react/no-unstable-nested-components\n FirstComponent: () => <FirstComponent {...firstComponentProps} />,\n // eslint-disable-next-line react/no-unstable-nested-components\n SecondComponent: () => <SecondComponent {...secondComponentProps} />,\n ...viewContext\n });\n });\n } else {\n stack.push(c);\n }\n if (index === expression.length - 1) return stack.pop();\n return acc;\n }, null);\n return cell?.() ?? null;\n}\n\nCustomCell.propTypes = {\n getExpression: PropTypes.func.isRequired,\n getParentContext: PropTypes.func.isRequired,\n renderFactory: PropTypes.func.isRequired,\n resolveViewComponent: PropTypes.func.isRequired\n};\n\nexport default CustomCell;\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare function DefaultTextRenderer(props: any): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare namespace DefaultTextRenderer {
|
|
3
|
+
namespace propTypes {
|
|
4
|
+
let getField: PropTypes.Requireable<(...args: any[]) => any>;
|
|
5
|
+
}
|
|
6
|
+
namespace defaultProps {
|
|
7
|
+
export function getField_1(): void;
|
|
8
|
+
export { getField_1 as getField };
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export default DefaultTextRenderer;
|
|
12
|
+
import PropTypes from 'prop-types';
|
|
13
|
+
//# sourceMappingURL=DefaultTextRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultTextRenderer.d.ts","sourceRoot":"","sources":["../../../../../Core/Components/DefaultComponents/CellRenderers/DefaultTextRenderer.jsx"],"names":[],"mappings":"AAcA,0FAIC;;;;;;QAOW,mCAAQ;;;;;sBAzBE,YAAY"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import Cell from './Cell';
|
|
4
|
+
import Link from './Link';
|
|
5
|
+
import RichText from './RichText';
|
|
6
|
+
const defaultComponentsForTypes = {
|
|
7
|
+
TextInput: Cell,
|
|
8
|
+
TextArea: Cell,
|
|
9
|
+
Email: Link.Email,
|
|
10
|
+
Phone: Link.Phone,
|
|
11
|
+
URL: Link.URL,
|
|
12
|
+
RichText
|
|
13
|
+
};
|
|
14
|
+
export default function DefaultTextRenderer(props) {
|
|
15
|
+
const { getField } = props;
|
|
16
|
+
const Comp = defaultComponentsForTypes[getField()?.meta?.type] || Cell;
|
|
17
|
+
return _jsx(Comp, { ...props });
|
|
18
|
+
}
|
|
19
|
+
DefaultTextRenderer.propTypes = {
|
|
20
|
+
getField: PropTypes.func
|
|
21
|
+
};
|
|
22
|
+
DefaultTextRenderer.defaultProps = {
|
|
23
|
+
getField: () => { }
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=DefaultTextRenderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultTextRenderer.js","sourceRoot":"","sources":["../../../../../Core/Components/DefaultComponents/CellRenderers/DefaultTextRenderer.jsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC,MAAM,yBAAyB,GAAG;IAChC,SAAS,EAAE,IAAI;IACf,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,IAAI,CAAC,KAAK;IACjB,KAAK,EAAE,IAAI,CAAC,KAAK;IACjB,GAAG,EAAE,IAAI,CAAC,GAAG;IACb,QAAQ;CACT,CAAC;AACF,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK;IAC/C,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,MAAM,IAAI,GAAG,yBAAyB,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,CAAC;IACvE,OAAO,KAAC,IAAI,OAAK,KAAK,GAAI,CAAC;AAC7B,CAAC;AAED,mBAAmB,CAAC,SAAS,GAAG;IAC9B,QAAQ,EAAE,SAAS,CAAC,IAAI;CACzB,CAAC;AAEF,mBAAmB,CAAC,YAAY,GAAG;IACjC,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC;CACnB,CAAC","sourcesContent":["import PropTypes from 'prop-types';\n\nimport Cell from './Cell';\nimport Link from './Link';\nimport RichText from './RichText';\n\nconst defaultComponentsForTypes = {\n TextInput: Cell,\n TextArea: Cell,\n Email: Link.Email,\n Phone: Link.Phone,\n URL: Link.URL,\n RichText\n};\nexport default function DefaultTextRenderer(props) {\n const { getField } = props;\n const Comp = defaultComponentsForTypes[getField()?.meta?.type] || Cell;\n return <Comp {...props} />;\n}\n\nDefaultTextRenderer.propTypes = {\n getField: PropTypes.func\n};\n\nDefaultTextRenderer.defaultProps = {\n getField: () => {}\n};\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default DateTime;
|
|
2
|
+
declare function DateTime(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare namespace DateTime {
|
|
4
|
+
namespace propTypes {
|
|
5
|
+
let onCancel: PropTypes.Validator<(...args: any[]) => any>;
|
|
6
|
+
let onSubmit: PropTypes.Validator<(...args: any[]) => any>;
|
|
7
|
+
let getField: PropTypes.Validator<(...args: any[]) => any>;
|
|
8
|
+
let getValue: PropTypes.Validator<(...args: any[]) => any>;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
import PropTypes from 'prop-types';
|
|
12
|
+
//# sourceMappingURL=DateTime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateTime.d.ts","sourceRoot":"","sources":["../../../../../../Core/Components/DefaultComponents/CellRenderers/EditComponents/DateTime.jsx"],"names":[],"mappings":";AASA,+EAkCC;;;;;;;;;sBA1CqB,YAAY"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useRef, useEffect } from 'react';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import { Input } from '@pega/cosmos-react-core';
|
|
5
|
+
const styles = {
|
|
6
|
+
input: { width: '100%' }
|
|
7
|
+
};
|
|
8
|
+
function DateTime(props) {
|
|
9
|
+
const { getField, getValue } = props;
|
|
10
|
+
const { type } = getField();
|
|
11
|
+
const oldValue = getValue();
|
|
12
|
+
const [value, setValue] = useState(type === 'datetime' ? oldValue?.slice(0, -1) : oldValue);
|
|
13
|
+
const inputRef = useRef(null);
|
|
14
|
+
const onChange = event => setValue(event.target.value);
|
|
15
|
+
const onEscape = event => {
|
|
16
|
+
if (event.key === 'Escape') {
|
|
17
|
+
props.onCancel();
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
const onBlur = () => props.onSubmit({ oldValue, newValue: value });
|
|
21
|
+
useEffect(() => {
|
|
22
|
+
inputRef.current?.focus();
|
|
23
|
+
}, [inputRef]);
|
|
24
|
+
return (_jsx(Input, { ...props, type: type === 'datetime' ? 'datetime-local' : type, value: value, style: styles.input, ref: ref => {
|
|
25
|
+
inputRef.current = ref;
|
|
26
|
+
}, onChange: onChange, onBlur: onBlur, onKeyDown: onEscape }));
|
|
27
|
+
}
|
|
28
|
+
DateTime.propTypes = {
|
|
29
|
+
onCancel: PropTypes.func.isRequired,
|
|
30
|
+
onSubmit: PropTypes.func.isRequired,
|
|
31
|
+
getField: PropTypes.func.isRequired,
|
|
32
|
+
getValue: PropTypes.func.isRequired
|
|
33
|
+
};
|
|
34
|
+
export default DateTime;
|
|
35
|
+
//# sourceMappingURL=DateTime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateTime.js","sourceRoot":"","sources":["../../../../../../Core/Components/DefaultComponents/CellRenderers/EditComponents/DateTime.jsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAEhD,MAAM,MAAM,GAAG;IACb,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;CACzB,CAAC;AAEF,SAAS,QAAQ,CAAC,KAAK;IACrB,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IACrC,MAAM,EAAE,IAAI,EAAE,GAAG,QAAQ,EAAE,CAAC;IAC5B,MAAM,QAAQ,GAAG,QAAQ,EAAE,CAAC;IAC5B,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;IAC5F,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;IAE9B,MAAM,QAAQ,GAAG,KAAK,CAAC,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAEvD,MAAM,QAAQ,GAAG,KAAK,CAAC,EAAE;QACvB,IAAI,KAAK,CAAC,GAAG,KAAK,QAAQ,EAAE,CAAC;YAC3B,KAAK,CAAC,QAAQ,EAAE,CAAC;QACnB,CAAC;IACH,CAAC,CAAC;IAEF,MAAM,MAAM,GAAG,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;IACnE,SAAS,CAAC,GAAG,EAAE;QACb,QAAQ,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC;IAC5B,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,OAAO,CACL,KAAC,KAAK,OACA,KAAK,EACT,IAAI,EAAE,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,EACnD,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,GAAG,EAAE,GAAG,CAAC,EAAE;YACT,QAAQ,CAAC,OAAO,GAAG,GAAG,CAAC;QACzB,CAAC,EACD,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,QAAQ,GACnB,CACH,CAAC;AACJ,CAAC;AAED,QAAQ,CAAC,SAAS,GAAG;IACnB,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IACnC,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IACnC,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IACnC,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;CACpC,CAAC;AAEF,eAAe,QAAQ,CAAC","sourcesContent":["import { useState, useRef, useEffect } from 'react';\nimport PropTypes from 'prop-types';\n\nimport { Input } from '@pega/cosmos-react-core';\n\nconst styles = {\n input: { width: '100%' }\n};\n\nfunction DateTime(props) {\n const { getField, getValue } = props;\n const { type } = getField();\n const oldValue = getValue();\n const [value, setValue] = useState(type === 'datetime' ? oldValue?.slice(0, -1) : oldValue);\n const inputRef = useRef(null);\n\n const onChange = event => setValue(event.target.value);\n\n const onEscape = event => {\n if (event.key === 'Escape') {\n props.onCancel();\n }\n };\n\n const onBlur = () => props.onSubmit({ oldValue, newValue: value });\n useEffect(() => {\n inputRef.current?.focus();\n }, [inputRef]);\n\n return (\n <Input\n {...props}\n type={type === 'datetime' ? 'datetime-local' : type}\n value={value}\n style={styles.input}\n ref={ref => {\n inputRef.current = ref;\n }}\n onChange={onChange}\n onBlur={onBlur}\n onKeyDown={onEscape}\n />\n );\n}\n\nDateTime.propTypes = {\n onCancel: PropTypes.func.isRequired,\n onSubmit: PropTypes.func.isRequired,\n getField: PropTypes.func.isRequired,\n getValue: PropTypes.func.isRequired\n};\n\nexport default DateTime;\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default RadioGroup;
|
|
2
|
+
declare function RadioGroup(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare namespace RadioGroup {
|
|
4
|
+
namespace propTypes {
|
|
5
|
+
let onCancel: PropTypes.Validator<(...args: any[]) => any>;
|
|
6
|
+
let onSubmit: PropTypes.Validator<(...args: any[]) => any>;
|
|
7
|
+
let getField: PropTypes.Validator<(...args: any[]) => any>;
|
|
8
|
+
let getValue: PropTypes.Validator<(...args: any[]) => any>;
|
|
9
|
+
let getFormatter: PropTypes.Validator<(...args: any[]) => any>;
|
|
10
|
+
let renderFactory: PropTypes.Validator<(...args: any[]) => any>;
|
|
11
|
+
let resolveCellComponent: PropTypes.Validator<(...args: any[]) => any>;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
import PropTypes from 'prop-types';
|
|
15
|
+
//# sourceMappingURL=Radio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../../../../Core/Components/DefaultComponents/CellRenderers/EditComponents/Radio.jsx"],"names":[],"mappings":";AAQA,iFA+CC;;;;;;;;;;;;sBAtDqB,YAAY"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import styled from 'styled-components';
|
|
5
|
+
import { RadioButton, RadioCheckGroup } from '@pega/cosmos-react-core';
|
|
6
|
+
const StyledRadioGroup = styled.div ``;
|
|
7
|
+
function RadioGroup(props) {
|
|
8
|
+
const { getField, getValue, getFormatter, renderFactory, resolveCellComponent } = props;
|
|
9
|
+
const field = getField();
|
|
10
|
+
const { id } = field;
|
|
11
|
+
const oldValue = getValue();
|
|
12
|
+
const translatedValue = oldValue === 'null' || oldValue === '' || oldValue === null || typeof oldValue === 'undefined'
|
|
13
|
+
? 'Empty'
|
|
14
|
+
: oldValue;
|
|
15
|
+
const [value, setValue] = useState(translatedValue);
|
|
16
|
+
const radioOptions = field.type === 'boolean' ? [true, false, 'Empty'] : field.filterPickListOptions;
|
|
17
|
+
const onChange = event => {
|
|
18
|
+
setValue(event.target.id);
|
|
19
|
+
let newValue = event.target.id;
|
|
20
|
+
if (field.type === 'boolean') {
|
|
21
|
+
if (event.target.id === 'Empty')
|
|
22
|
+
newValue = null;
|
|
23
|
+
else
|
|
24
|
+
newValue = event.target.id === 'true';
|
|
25
|
+
}
|
|
26
|
+
props.onSubmit({ oldValue, newValue });
|
|
27
|
+
};
|
|
28
|
+
return (_jsx(StyledRadioGroup, { children: _jsx(RadioCheckGroup, { name: id, children: radioOptions.map(item => {
|
|
29
|
+
const checkedProp = {};
|
|
30
|
+
if (item === value)
|
|
31
|
+
checkedProp.defaultChecked = true;
|
|
32
|
+
return (_jsx(RadioButton, { id: `${item}`, name: `${item}`, onClick: onChange, label: resolveCellComponent('cellRenderer', renderFactory, {
|
|
33
|
+
...props,
|
|
34
|
+
getValue: () => item.toString(),
|
|
35
|
+
getFormattedValue: () => getFormatter?.()?.(item) || item.toString()
|
|
36
|
+
}), ...checkedProp }, `${item}`));
|
|
37
|
+
}) }) }));
|
|
38
|
+
}
|
|
39
|
+
RadioGroup.propTypes = {
|
|
40
|
+
onCancel: PropTypes.func.isRequired,
|
|
41
|
+
onSubmit: PropTypes.func.isRequired,
|
|
42
|
+
getField: PropTypes.func.isRequired,
|
|
43
|
+
getValue: PropTypes.func.isRequired,
|
|
44
|
+
getFormatter: PropTypes.func.isRequired,
|
|
45
|
+
renderFactory: PropTypes.func.isRequired,
|
|
46
|
+
resolveCellComponent: PropTypes.func.isRequired
|
|
47
|
+
};
|
|
48
|
+
export default RadioGroup;
|
|
49
|
+
//# sourceMappingURL=Radio.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Radio.js","sourceRoot":"","sources":["../../../../../../Core/Components/DefaultComponents/CellRenderers/EditComponents/Radio.jsx"],"names":[],"mappings":"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","sourcesContent":["import { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\nimport { RadioButton, RadioCheckGroup } from '@pega/cosmos-react-core';\n\nconst StyledRadioGroup = styled.div``;\n\nfunction RadioGroup(props) {\n const { getField, getValue, getFormatter, renderFactory, resolveCellComponent } = props;\n const field = getField();\n const { id } = field;\n const oldValue = getValue();\n const translatedValue =\n oldValue === 'null' || oldValue === '' || oldValue === null || typeof oldValue === 'undefined'\n ? 'Empty'\n : oldValue;\n const [value, setValue] = useState(translatedValue);\n const radioOptions =\n field.type === 'boolean' ? [true, false, 'Empty'] : field.filterPickListOptions;\n const onChange = event => {\n setValue(event.target.id);\n let newValue = event.target.id;\n if (field.type === 'boolean') {\n if (event.target.id === 'Empty') newValue = null;\n else newValue = event.target.id === 'true';\n }\n props.onSubmit({ oldValue, newValue });\n };\n\n return (\n <StyledRadioGroup>\n <RadioCheckGroup name={id}>\n {radioOptions.map(item => {\n const checkedProp = {};\n if (item === value) checkedProp.defaultChecked = true;\n\n return (\n <RadioButton\n key={`${item}`}\n id={`${item}`}\n name={`${item}`}\n onClick={onChange}\n label={resolveCellComponent('cellRenderer', renderFactory, {\n ...props,\n getValue: () => item.toString(),\n getFormattedValue: () => getFormatter?.()?.(item) || item.toString()\n })}\n {...checkedProp}\n />\n );\n })}\n </RadioCheckGroup>\n </StyledRadioGroup>\n );\n}\n\nRadioGroup.propTypes = {\n onCancel: PropTypes.func.isRequired,\n onSubmit: PropTypes.func.isRequired,\n getField: PropTypes.func.isRequired,\n getValue: PropTypes.func.isRequired,\n getFormatter: PropTypes.func.isRequired,\n renderFactory: PropTypes.func.isRequired,\n resolveCellComponent: PropTypes.func.isRequired\n};\n\nexport default RadioGroup;\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default TextInput;
|
|
2
|
+
declare function TextInput(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare namespace TextInput {
|
|
4
|
+
namespace propTypes {
|
|
5
|
+
let onCancel: PropTypes.Validator<(...args: any[]) => any>;
|
|
6
|
+
let onSubmit: PropTypes.Validator<(...args: any[]) => any>;
|
|
7
|
+
let getField: PropTypes.Validator<(...args: any[]) => any>;
|
|
8
|
+
let getValue: PropTypes.Validator<(...args: any[]) => any>;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
import PropTypes from 'prop-types';
|
|
12
|
+
//# sourceMappingURL=TextInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../../../Core/Components/DefaultComponents/CellRenderers/EditComponents/TextInput.jsx"],"names":[],"mappings":";AASA,gFA2CC;;;;;;;;;sBAnDqB,YAAY"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useRef, useEffect } from 'react';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import { Input } from '@pega/cosmos-react-core';
|
|
5
|
+
const styles = {
|
|
6
|
+
input: { width: '100%', outline: 'none', border: 'none', boxShadow: 'none' }
|
|
7
|
+
};
|
|
8
|
+
function TextInput(props) {
|
|
9
|
+
const { getField, getValue } = props;
|
|
10
|
+
const { type } = getField();
|
|
11
|
+
const oldValue = getValue();
|
|
12
|
+
const [value, setValue] = useState(oldValue);
|
|
13
|
+
const inputRef = useRef(null);
|
|
14
|
+
const onChange = event => {
|
|
15
|
+
let { value: val } = event.target;
|
|
16
|
+
if (type?.toLowerCase() === 'number') {
|
|
17
|
+
val = parseInt(val, 10);
|
|
18
|
+
}
|
|
19
|
+
setValue(val);
|
|
20
|
+
};
|
|
21
|
+
const onKeyDown = event => {
|
|
22
|
+
if (event.key === 'Enter') {
|
|
23
|
+
props.onSubmit({ oldValue, newValue: value });
|
|
24
|
+
}
|
|
25
|
+
else if (event.key === 'Escape') {
|
|
26
|
+
props.onCancel();
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const onBlur = () => props.onSubmit({ oldValue, newValue: value });
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
inputRef.current?.focus();
|
|
32
|
+
}, [inputRef]);
|
|
33
|
+
return (_jsx(Input, { ...props, value: value, type: type, style: styles.input, ref: ref => {
|
|
34
|
+
inputRef.current = ref;
|
|
35
|
+
}, onChange: onChange, onBlur: onBlur, onKeyDown: onKeyDown }));
|
|
36
|
+
}
|
|
37
|
+
TextInput.propTypes = {
|
|
38
|
+
onCancel: PropTypes.func.isRequired,
|
|
39
|
+
onSubmit: PropTypes.func.isRequired,
|
|
40
|
+
getField: PropTypes.func.isRequired,
|
|
41
|
+
getValue: PropTypes.func.isRequired
|
|
42
|
+
};
|
|
43
|
+
export default TextInput;
|
|
44
|
+
//# sourceMappingURL=TextInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextInput.js","sourceRoot":"","sources":["../../../../../../Core/Components/DefaultComponents/CellRenderers/EditComponents/TextInput.jsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAEhD,MAAM,MAAM,GAAG;IACb,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE;CAC7E,CAAC;AAEF,SAAS,SAAS,CAAC,KAAK;IACtB,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IACrC,MAAM,EAAE,IAAI,EAAE,GAAG,QAAQ,EAAE,CAAC;IAC5B,MAAM,QAAQ,GAAG,QAAQ,EAAE,CAAC;IAC5B,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC7C,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;IAE9B,MAAM,QAAQ,GAAG,KAAK,CAAC,EAAE;QACvB,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC;QAClC,IAAI,IAAI,EAAE,WAAW,EAAE,KAAK,QAAQ,EAAE,CAAC;YACrC,GAAG,GAAG,QAAQ,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QAC1B,CAAC;QACD,QAAQ,CAAC,GAAG,CAAC,CAAC;IAChB,CAAC,CAAC;IAEF,MAAM,SAAS,GAAG,KAAK,CAAC,EAAE;QACxB,IAAI,KAAK,CAAC,GAAG,KAAK,OAAO,EAAE,CAAC;YAC1B,KAAK,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAChD,CAAC;aAAM,IAAI,KAAK,CAAC,GAAG,KAAK,QAAQ,EAAE,CAAC;YAClC,KAAK,CAAC,QAAQ,EAAE,CAAC;QACnB,CAAC;IACH,CAAC,CAAC;IAEF,MAAM,MAAM,GAAG,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;IAEnE,SAAS,CAAC,GAAG,EAAE;QACb,QAAQ,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC;IAC5B,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,OAAO,CACL,KAAC,KAAK,OACA,KAAK,EACT,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,GAAG,EAAE,GAAG,CAAC,EAAE;YACT,QAAQ,CAAC,OAAO,GAAG,GAAG,CAAC;QACzB,CAAC,EACD,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,GACpB,CACH,CAAC;AACJ,CAAC;AAED,SAAS,CAAC,SAAS,GAAG;IACpB,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IACnC,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IACnC,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IACnC,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;CACpC,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["import { useState, useRef, useEffect } from 'react';\nimport PropTypes from 'prop-types';\n\nimport { Input } from '@pega/cosmos-react-core';\n\nconst styles = {\n input: { width: '100%', outline: 'none', border: 'none', boxShadow: 'none' }\n};\n\nfunction TextInput(props) {\n const { getField, getValue } = props;\n const { type } = getField();\n const oldValue = getValue();\n const [value, setValue] = useState(oldValue);\n const inputRef = useRef(null);\n\n const onChange = event => {\n let { value: val } = event.target;\n if (type?.toLowerCase() === 'number') {\n val = parseInt(val, 10);\n }\n setValue(val);\n };\n\n const onKeyDown = event => {\n if (event.key === 'Enter') {\n props.onSubmit({ oldValue, newValue: value });\n } else if (event.key === 'Escape') {\n props.onCancel();\n }\n };\n\n const onBlur = () => props.onSubmit({ oldValue, newValue: value });\n\n useEffect(() => {\n inputRef.current?.focus();\n }, [inputRef]);\n\n return (\n <Input\n {...props}\n value={value}\n type={type}\n style={styles.input}\n ref={ref => {\n inputRef.current = ref;\n }}\n onChange={onChange}\n onBlur={onBlur}\n onKeyDown={onKeyDown}\n />\n );\n}\n\nTextInput.propTypes = {\n onCancel: PropTypes.func.isRequired,\n onSubmit: PropTypes.func.isRequired,\n getField: PropTypes.func.isRequired,\n getValue: PropTypes.func.isRequired\n};\n\nexport default TextInput;\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default Editor;
|
|
2
|
+
declare function Editor(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare namespace Editor {
|
|
4
|
+
namespace propTypes {
|
|
5
|
+
let getField: PropTypes.Validator<(...args: any[]) => any>;
|
|
6
|
+
let onCancel: PropTypes.Validator<(...args: any[]) => any>;
|
|
7
|
+
let getElement: PropTypes.Validator<(...args: any[]) => any>;
|
|
8
|
+
let setEditContext: PropTypes.Validator<(...args: any[]) => any>;
|
|
9
|
+
let getFormatter: PropTypes.Validator<(...args: any[]) => any>;
|
|
10
|
+
let getValue: PropTypes.Validator<(...args: any[]) => any>;
|
|
11
|
+
let renderFactory: PropTypes.Validator<(...args: any[]) => any>;
|
|
12
|
+
let resolveCellComponent: PropTypes.Validator<(...args: any[]) => any>;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
import PropTypes from 'prop-types';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../Core/Components/DefaultComponents/CellRenderers/EditComponents/index.jsx"],"names":[],"mappings":";AAeA,6EA8DC;;;;;;;;;;;;;sBA7EqB,YAAY"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { Popover, useElement } from '@pega/cosmos-react-core';
|
|
5
|
+
import useOuterEvent from '../../../../Hooks/UseOuterEvent';
|
|
6
|
+
import TextInput from './TextInput';
|
|
7
|
+
import DateTime from './DateTime';
|
|
8
|
+
import Radio from './Radio';
|
|
9
|
+
const StyledPopover = styled.div `
|
|
10
|
+
padding: 1rem;
|
|
11
|
+
min-width: 7rem;
|
|
12
|
+
`;
|
|
13
|
+
function Editor(props) {
|
|
14
|
+
const { getField, onCancel, getElement, setEditContext, getFormatter, getValue, renderFactory, resolveCellComponent } = props;
|
|
15
|
+
setEditContext();
|
|
16
|
+
const { type, filterPickList, filterPickListOptions } = getField();
|
|
17
|
+
const showInPopOver = type === 'boolean' || (filterPickList && filterPickListOptions);
|
|
18
|
+
const [popperRef, setPopperRef] = useElement();
|
|
19
|
+
const [popperTarget, setPopperTarget] = useElement(getElement());
|
|
20
|
+
useOuterEvent('mousedown', [popperRef], () => {
|
|
21
|
+
setPopperTarget(null);
|
|
22
|
+
if (showInPopOver)
|
|
23
|
+
onCancel();
|
|
24
|
+
});
|
|
25
|
+
let Component = null;
|
|
26
|
+
switch (type) {
|
|
27
|
+
case 'text':
|
|
28
|
+
case 'number':
|
|
29
|
+
Component = TextInput;
|
|
30
|
+
break;
|
|
31
|
+
case 'date':
|
|
32
|
+
case 'datetime':
|
|
33
|
+
Component = DateTime;
|
|
34
|
+
break;
|
|
35
|
+
case 'boolean':
|
|
36
|
+
Component = Radio;
|
|
37
|
+
break;
|
|
38
|
+
default:
|
|
39
|
+
Component = TextInput;
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
if (filterPickList && filterPickListOptions) {
|
|
43
|
+
Component = Radio;
|
|
44
|
+
}
|
|
45
|
+
if (!showInPopOver)
|
|
46
|
+
return _jsx(Component, { ...props });
|
|
47
|
+
const value = getValue();
|
|
48
|
+
return (_jsxs(_Fragment, { children: [resolveCellComponent('cellRenderer', renderFactory, {
|
|
49
|
+
...props,
|
|
50
|
+
getFormattedValue: () => getFormatter?.()?.(value) || value
|
|
51
|
+
}), showInPopOver && (_jsx(Popover, { ref: setPopperRef, className: 'editpopper', target: popperTarget, children: _jsx(StyledPopover, { children: _jsx(Component, { ...props }) }) }))] }));
|
|
52
|
+
}
|
|
53
|
+
Editor.propTypes = {
|
|
54
|
+
getField: PropTypes.func.isRequired,
|
|
55
|
+
onCancel: PropTypes.func.isRequired,
|
|
56
|
+
getElement: PropTypes.func.isRequired,
|
|
57
|
+
setEditContext: PropTypes.func.isRequired,
|
|
58
|
+
getFormatter: PropTypes.func.isRequired,
|
|
59
|
+
getValue: PropTypes.func.isRequired,
|
|
60
|
+
renderFactory: PropTypes.func.isRequired,
|
|
61
|
+
resolveCellComponent: PropTypes.func.isRequired
|
|
62
|
+
};
|
|
63
|
+
export default Editor;
|
|
64
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../Core/Components/DefaultComponents/CellRenderers/EditComponents/index.jsx"],"names":[],"mappings":"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","sourcesContent":["import PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\nimport { Popover, useElement } from '@pega/cosmos-react-core';\n\nimport useOuterEvent from '../../../../Hooks/UseOuterEvent';\n\nimport TextInput from './TextInput';\nimport DateTime from './DateTime';\nimport Radio from './Radio';\n\nconst StyledPopover = styled.div`\n padding: 1rem;\n min-width: 7rem;\n`;\nfunction Editor(props) {\n const {\n getField,\n onCancel,\n getElement,\n setEditContext,\n getFormatter,\n getValue,\n renderFactory,\n resolveCellComponent\n } = props;\n setEditContext();\n\n const { type, filterPickList, filterPickListOptions } = getField();\n const showInPopOver = type === 'boolean' || (filterPickList && filterPickListOptions);\n const [popperRef, setPopperRef] = useElement();\n const [popperTarget, setPopperTarget] = useElement(getElement());\n\n useOuterEvent('mousedown', [popperRef], () => {\n setPopperTarget(null);\n if (showInPopOver) onCancel();\n });\n let Component = null;\n switch (type) {\n case 'text':\n case 'number':\n Component = TextInput;\n break;\n case 'date':\n case 'datetime':\n Component = DateTime;\n break;\n case 'boolean':\n Component = Radio;\n break;\n\n default:\n Component = TextInput;\n break;\n }\n if (filterPickList && filterPickListOptions) {\n Component = Radio;\n }\n\n if (!showInPopOver) return <Component {...props} />;\n const value = getValue();\n return (\n <>\n {resolveCellComponent('cellRenderer', renderFactory, {\n ...props,\n getFormattedValue: () => getFormatter?.()?.(value) || value\n })}\n\n {showInPopOver && (\n <Popover ref={setPopperRef} className='editpopper' target={popperTarget}>\n <StyledPopover>\n <Component {...props} />\n </StyledPopover>\n </Popover>\n )}\n </>\n );\n}\n\nEditor.propTypes = {\n getField: PropTypes.func.isRequired,\n onCancel: PropTypes.func.isRequired,\n getElement: PropTypes.func.isRequired,\n setEditContext: PropTypes.func.isRequired,\n getFormatter: PropTypes.func.isRequired,\n getValue: PropTypes.func.isRequired,\n renderFactory: PropTypes.func.isRequired,\n resolveCellComponent: PropTypes.func.isRequired\n};\n\nexport default Editor;\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
function Email(cellProps: any): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
function URL(cellProps: any): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
function Phone(cellProps: any): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
}
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=Link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../../../Core/Components/DefaultComponents/CellRenderers/Link.jsx"],"names":[],"mappings":";IA2BS,wEAAyD;IAC3D,sEAA0D;IACxD,wEAAsD"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import styled, { css } from 'styled-components';
|
|
3
|
+
import { Link, NoValue } from '@pega/cosmos-react-core';
|
|
4
|
+
import { isAccessibleValue } from '../../../Utils';
|
|
5
|
+
// TODO: Refactor this once cosmos components allows overriding the color of Link.
|
|
6
|
+
const StyledLink = styled(Link)(() => {
|
|
7
|
+
return css `
|
|
8
|
+
${({ foregroundColor }) => foregroundColor && `color: ${foregroundColor};`}
|
|
9
|
+
`;
|
|
10
|
+
});
|
|
11
|
+
function LinkRenderer({ value, getStyles }, { href = '', target = '_self' } = {}) {
|
|
12
|
+
const { foregroundColor } = getStyles?.() ?? {};
|
|
13
|
+
const hrefVal = `${href}${value}`;
|
|
14
|
+
if (!isAccessibleValue(value))
|
|
15
|
+
return _jsx(NoValue, {});
|
|
16
|
+
return (_jsx(StyledLink, { href: hrefVal, target: target, foregroundColor: foregroundColor, children: value }));
|
|
17
|
+
}
|
|
18
|
+
export default {
|
|
19
|
+
Email: cellProps => LinkRenderer(cellProps, { href: 'mailto:' }),
|
|
20
|
+
URL: cellProps => LinkRenderer(cellProps, { target: '_blank' }),
|
|
21
|
+
Phone: cellProps => LinkRenderer(cellProps, { href: 'tel:' })
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=Link.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Link.js","sourceRoot":"","sources":["../../../../../Core/Components/DefaultComponents/CellRenderers/Link.jsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,kFAAkF;AAClF,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE;IACnC,OAAO,GAAG,CAAA;MACN,CAAC,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC,eAAe,IAAI,UAAU,eAAe,GAAG;GAC3E,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,SAAS,YAAY,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,GAAG,EAAE,EAAE,MAAM,GAAG,OAAO,EAAE,GAAG,EAAE;IAC9E,MAAM,EAAE,eAAe,EAAE,GAAG,SAAS,EAAE,EAAE,IAAI,EAAE,CAAC;IAChD,MAAM,OAAO,GAAG,GAAG,IAAI,GAAG,KAAK,EAAE,CAAC;IAElC,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC;QAAE,OAAO,KAAC,OAAO,KAAG,CAAC;IAElD,OAAO,CACL,KAAC,UAAU,IAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,eAAe,YACxE,KAAK,GACK,CACd,CAAC;AACJ,CAAC;AAED,eAAe;IACb,KAAK,EAAE,SAAS,CAAC,EAAE,CAAC,YAAY,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAChE,GAAG,EAAE,SAAS,CAAC,EAAE,CAAC,YAAY,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;IAC/D,KAAK,EAAE,SAAS,CAAC,EAAE,CAAC,YAAY,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;CAC9D,CAAC","sourcesContent":["import styled, { css } from 'styled-components';\n\nimport { Link, NoValue } from '@pega/cosmos-react-core';\n\nimport { isAccessibleValue } from '../../../Utils';\n\n// TODO: Refactor this once cosmos components allows overriding the color of Link.\nconst StyledLink = styled(Link)(() => {\n return css`\n ${({ foregroundColor }) => foregroundColor && `color: ${foregroundColor};`}\n `;\n});\n\nfunction LinkRenderer({ value, getStyles }, { href = '', target = '_self' } = {}) {\n const { foregroundColor } = getStyles?.() ?? {};\n const hrefVal = `${href}${value}`;\n\n if (!isAccessibleValue(value)) return <NoValue />;\n\n return (\n <StyledLink href={hrefVal} target={target} foregroundColor={foregroundColor}>\n {value}\n </StyledLink>\n );\n}\n\nexport default {\n Email: cellProps => LinkRenderer(cellProps, { href: 'mailto:' }),\n URL: cellProps => LinkRenderer(cellProps, { target: '_blank' }),\n Phone: cellProps => LinkRenderer(cellProps, { href: 'tel:' })\n};\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default OperatorRenderer;
|
|
2
|
+
declare function OperatorRenderer({ getValue, value: formattedValue }: {
|
|
3
|
+
getValue: any;
|
|
4
|
+
value: any;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare namespace OperatorRenderer {
|
|
7
|
+
namespace propTypes {
|
|
8
|
+
let value: PropTypes.Requireable<string>;
|
|
9
|
+
let getValue: PropTypes.Requireable<(...args: any[]) => any>;
|
|
10
|
+
}
|
|
11
|
+
namespace defaultProps {
|
|
12
|
+
let value_1: undefined;
|
|
13
|
+
export { value_1 as value };
|
|
14
|
+
let getValue_1: undefined;
|
|
15
|
+
export { getValue_1 as getValue };
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
import PropTypes from 'prop-types';
|
|
19
|
+
//# sourceMappingURL=Operator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Operator.d.ts","sourceRoot":"","sources":["../../../../../Core/Components/DefaultComponents/CellRenderers/Operator.jsx"],"names":[],"mappings":";AA2BA;;;4CAgBC;;;;;;;;;;;;;sBA3CqB,YAAY"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { Avatar, defaultThemeProp, NoValue, Text } from '@pega/cosmos-react-core';
|
|
5
|
+
import { isEmpty } from 'pega-repeating-structures-core';
|
|
6
|
+
import { isAccessibleValue } from '../../../Utils';
|
|
7
|
+
const StyledOperator = styled.span `
|
|
8
|
+
.custom-avatar-cont {
|
|
9
|
+
position: relative;
|
|
10
|
+
}
|
|
11
|
+
.custom-avatar {
|
|
12
|
+
font-size: 0.45rem;
|
|
13
|
+
line-height: 1.2rem;
|
|
14
|
+
height: 1.2rem;
|
|
15
|
+
width: 1.2rem;
|
|
16
|
+
min-width: 1.2rem;
|
|
17
|
+
min-height: 1.2rem;
|
|
18
|
+
background-color: ${props => props.theme.base.colors.slate.dark};
|
|
19
|
+
position: absolute;
|
|
20
|
+
top: 0;
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
23
|
+
StyledOperator.defaultProps = defaultThemeProp;
|
|
24
|
+
function OperatorRenderer({ getValue, value: formattedValue }) {
|
|
25
|
+
const rawValue = getValue();
|
|
26
|
+
return (_jsxs(StyledOperator, { children: [isEmpty(rawValue) ? null : (_jsx("span", { className: 'custom-avatar-cont', children: _jsx(Avatar, { name: formattedValue, size: 'm', className: 'custom-avatar' }) })), isAccessibleValue(formattedValue) ? (_jsx(Text, { style: { marginLeft: '1.5rem' }, children: formattedValue })) : (_jsx(NoValue, {}))] }));
|
|
27
|
+
}
|
|
28
|
+
OperatorRenderer.propTypes = {
|
|
29
|
+
value: PropTypes.string,
|
|
30
|
+
getValue: PropTypes.func
|
|
31
|
+
};
|
|
32
|
+
OperatorRenderer.defaultProps = {
|
|
33
|
+
value: undefined,
|
|
34
|
+
getValue: undefined
|
|
35
|
+
};
|
|
36
|
+
export default OperatorRenderer;
|
|
37
|
+
//# sourceMappingURL=Operator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Operator.js","sourceRoot":"","sources":["../../../../../Core/Components/DefaultComponents/CellRenderers/Operator.jsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAClF,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAEzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAAA;;;;;;;;;;;wBAWV,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI;;;;CAIlE,CAAC;AAEF,cAAc,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAE/C,SAAS,gBAAgB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,cAAc,EAAE;IAC3D,MAAM,QAAQ,GAAG,QAAQ,EAAE,CAAC;IAC5B,OAAO,CACL,MAAC,cAAc,eACZ,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAC1B,eAAM,SAAS,EAAC,oBAAoB,YAClC,KAAC,MAAM,IAAC,IAAI,EAAE,cAAc,EAAE,IAAI,EAAC,GAAG,EAAC,SAAS,EAAC,eAAe,GAAG,GAC9D,CACR,EACA,iBAAiB,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CACnC,KAAC,IAAI,IAAC,KAAK,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAG,cAAc,GAAQ,CAC/D,CAAC,CAAC,CAAC,CACF,KAAC,OAAO,KAAG,CACZ,IACc,CAClB,CAAC;AACJ,CAAC;AACD,gBAAgB,CAAC,SAAS,GAAG;IAC3B,KAAK,EAAE,SAAS,CAAC,MAAM;IACvB,QAAQ,EAAE,SAAS,CAAC,IAAI;CACzB,CAAC;AACF,gBAAgB,CAAC,YAAY,GAAG;IAC9B,KAAK,EAAE,SAAS;IAChB,QAAQ,EAAE,SAAS;CACpB,CAAC;AACF,eAAe,gBAAgB,CAAC","sourcesContent":["import PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\nimport { Avatar, defaultThemeProp, NoValue, Text } from '@pega/cosmos-react-core';\nimport { isEmpty } from 'pega-repeating-structures-core';\n\nimport { isAccessibleValue } from '../../../Utils';\n\nconst StyledOperator = styled.span`\n .custom-avatar-cont {\n position: relative;\n }\n .custom-avatar {\n font-size: 0.45rem;\n line-height: 1.2rem;\n height: 1.2rem;\n width: 1.2rem;\n min-width: 1.2rem;\n min-height: 1.2rem;\n background-color: ${props => props.theme.base.colors.slate.dark};\n position: absolute;\n top: 0;\n }\n`;\n\nStyledOperator.defaultProps = defaultThemeProp;\n\nfunction OperatorRenderer({ getValue, value: formattedValue }) {\n const rawValue = getValue();\n return (\n <StyledOperator>\n {isEmpty(rawValue) ? null : (\n <span className='custom-avatar-cont'>\n <Avatar name={formattedValue} size='m' className='custom-avatar' />\n </span>\n )}\n {isAccessibleValue(formattedValue) ? (\n <Text style={{ marginLeft: '1.5rem' }}>{formattedValue}</Text>\n ) : (\n <NoValue />\n )}\n </StyledOperator>\n );\n}\nOperatorRenderer.propTypes = {\n value: PropTypes.string,\n getValue: PropTypes.func\n};\nOperatorRenderer.defaultProps = {\n value: undefined,\n getValue: undefined\n};\nexport default OperatorRenderer;\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default RichText;
|
|
2
|
+
declare function RichText({ value, getElement }: {
|
|
3
|
+
value: any;
|
|
4
|
+
getElement: any;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare namespace RichText {
|
|
7
|
+
namespace propTypes {
|
|
8
|
+
let value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
9
|
+
let getElement: PropTypes.Validator<(...args: any[]) => any>;
|
|
10
|
+
}
|
|
11
|
+
namespace defaultProps {
|
|
12
|
+
let value_1: string;
|
|
13
|
+
export { value_1 as value };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
import PropTypes from 'prop-types';
|
|
17
|
+
//# sourceMappingURL=RichText.d.ts.map
|