@talxis/base-controls 1.2406.2
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/.env +1 -0
- package/.eslintrc +117 -0
- package/.npmgitignore +9 -0
- package/.vscode/settings.json +3 -0
- package/.yalcignore +2 -0
- package/README.md +18 -0
- package/azure-pipelines.yml +44 -0
- package/dist/Lookup-eb1505b3.js +1 -0
- package/dist/NumeralPCF-a609b7be.js +1 -0
- package/dist/components/DateTime/DateTime.d.ts +3 -0
- package/dist/components/DateTime/DateTime.js +1 -0
- package/dist/components/DateTime/components/Calendar.d.ts +12 -0
- package/dist/components/DateTime/hooks/useDateTime.d.ts +6 -0
- package/dist/components/DateTime/index.d.ts +2 -0
- package/dist/components/DateTime/interfaces.d.ts +31 -0
- package/dist/components/DateTime/styles.d.ts +34 -0
- package/dist/components/DateTime/translations.d.ts +3 -0
- package/dist/components/Decimal/Decimal.d.ts +3 -0
- package/dist/components/Decimal/Decimal.js +1 -0
- package/dist/components/Decimal/index.d.ts +2 -0
- package/dist/components/Decimal/interfaces.d.ts +13 -0
- package/dist/components/Duration/Duration.d.ts +3 -0
- package/dist/components/Duration/Duration.js +1 -0
- package/dist/components/Duration/index.d.ts +2 -0
- package/dist/components/Duration/interfaces.d.ts +31 -0
- package/dist/components/Duration/translations.d.ts +2 -0
- package/dist/components/Grid/Grid.d.ts +5 -0
- package/dist/components/Grid/Grid.js +10 -0
- package/dist/components/Grid/core/components/AgGrid/AgGrid.d.ts +2 -0
- package/dist/components/Grid/core/components/AgGrid/components/EmptyRecordsOverlay/EmptyRecords.d.ts +2 -0
- package/dist/components/Grid/core/components/AgGrid/components/EmptyRecordsOverlay/styles.d.ts +18 -0
- package/dist/components/Grid/core/components/AgGrid/components/LoadingOverlay/LoadingOverlay.d.ts +2 -0
- package/dist/components/Grid/core/components/AgGrid/controllers/useAgGridController.d.ts +12 -0
- package/dist/components/Grid/core/components/AgGrid/model/AgGrid.d.ts +13 -0
- package/dist/components/Grid/core/components/AgGrid/styles.d.ts +69 -0
- package/dist/components/Grid/core/components/Cell/Commands/Commands.d.ts +7 -0
- package/dist/components/Grid/core/components/Cell/Commands/Icon.d.ts +7 -0
- package/dist/components/Grid/core/components/Cell/Commands/styles.d.ts +19 -0
- package/dist/components/Grid/core/components/Cell/Commands/useCommands.d.ts +5 -0
- package/dist/components/Grid/core/components/Cell/EditableCell/EditableCell.d.ts +10 -0
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyCell.d.ts +11 -0
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyOptionSet/ReadOnlyOptionSet.d.ts +10 -0
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyOptionSet/styles.d.ts +22 -0
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/styles.d.ts +47 -0
- package/dist/components/Grid/core/components/ColumnHeader/ColumnHeader.d.ts +6 -0
- package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/GlobalCheckbox.d.ts +2 -0
- package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/styles.d.ts +13 -0
- package/dist/components/Grid/core/components/ColumnHeader/styles.d.ts +37 -0
- package/dist/components/Grid/core/components/Component/Component.d.ts +11 -0
- package/dist/components/Grid/core/components/Component/controller/useComponentController.d.ts +9 -0
- package/dist/components/Grid/core/components/Component/model/Component.d.ts +10 -0
- package/dist/components/Grid/core/components/Dialog/Constants.d.ts +2 -0
- package/dist/components/Grid/core/components/Dialog/Styles.d.ts +2 -0
- package/dist/components/Grid/core/components/Dialog/index.d.ts +4 -0
- package/dist/components/Grid/core/components/Save/Save.d.ts +2 -0
- package/dist/components/Grid/core/components/Save/components/ChangeEditor/ChangeEditor.d.ts +3 -0
- package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/RecordGrids/RecordGrids.d.ts +7 -0
- package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/RecordGrids/styles.d.ts +48 -0
- package/dist/components/Grid/core/components/Save/components/ChangeEditor/styles.d.ts +31 -0
- package/dist/components/Grid/core/components/Save/hooks/useSave.d.ts +12 -0
- package/dist/components/Grid/core/components/Save/styles.d.ts +37 -0
- package/dist/components/Grid/core/controllers/useGridController.d.ts +9 -0
- package/dist/components/Grid/core/enums/ConditionOperator.d.ts +46 -0
- package/dist/components/Grid/core/enums/DataType.d.ts +24 -0
- package/dist/components/Grid/core/hooks/useGridInstance.d.ts +2 -0
- package/dist/components/Grid/core/hooks/useRefreshCallback.d.ts +2 -0
- package/dist/components/Grid/core/hooks/useRerender.d.ts +1 -0
- package/dist/components/Grid/core/interfaces/IGridColumn.d.ts +18 -0
- package/dist/components/Grid/core/interfaces/IGridContext.d.ts +4 -0
- package/dist/components/Grid/core/model/Grid.d.ts +51 -0
- package/dist/components/Grid/core/model/GridDependency.d.ts +13 -0
- package/dist/components/Grid/core/model/Metadata.d.ts +7 -0
- package/dist/components/Grid/core/services/RecordUpdateService/controllers/useRecordUpdateServiceController.d.ts +14 -0
- package/dist/components/Grid/core/services/RecordUpdateService/model/RecordUpdateService.d.ts +30 -0
- package/dist/components/Grid/filtering/components/FilterCallout/FilterCallout.d.ts +8 -0
- package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionOperator/ConditionOperator.d.ts +7 -0
- package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValue.d.ts +7 -0
- package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/model/ConditionComponentValue.d.ts +30 -0
- package/dist/components/Grid/filtering/components/FilterCallout/styles.d.ts +35 -0
- package/dist/components/Grid/filtering/constants.d.ts +5 -0
- package/dist/components/Grid/filtering/controller/useColumnFilterConditionController.d.ts +19 -0
- package/dist/components/Grid/filtering/model/Condition.d.ts +47 -0
- package/dist/components/Grid/filtering/model/Filtering.d.ts +11 -0
- package/dist/components/Grid/filtering/utils/FilteringUtilts.d.ts +34 -0
- package/dist/components/Grid/interfaces.d.ts +254 -0
- package/dist/components/Grid/paging/components/Paging/Paging.d.ts +2 -0
- package/dist/components/Grid/paging/components/Paging/styles.d.ts +35 -0
- package/dist/components/Grid/paging/controllers/usePagingController.d.ts +16 -0
- package/dist/components/Grid/paging/model/Paging.d.ts +15 -0
- package/dist/components/Grid/selection/controllers/useSelectionController.d.ts +11 -0
- package/dist/components/Grid/selection/model/Selection.d.ts +13 -0
- package/dist/components/Grid/sorting/Sorting.d.ts +9 -0
- package/dist/components/Grid/sorting/components/SortingContextualMenu/SortingContextualMenu.d.ts +8 -0
- package/dist/components/Grid/sorting/components/SortingContextualMenu/styles.d.ts +9 -0
- package/dist/components/Grid/sorting/controllers/useColumnSortingController.d.ts +8 -0
- package/dist/components/Grid/translations.d.ts +2 -0
- package/dist/components/Grid/validation/controllers/useRecordValidationController.d.ts +8 -0
- package/dist/components/Grid/validation/model/ColumnValidation.d.ts +11 -0
- package/dist/components/Lookup/Lookup.d.ts +3 -0
- package/dist/components/Lookup/Lookup.js +1 -0
- package/dist/components/Lookup/components/RecordCreator.d.ts +10 -0
- package/dist/components/Lookup/components/TargetSelector.d.ts +10 -0
- package/dist/components/Lookup/hooks/useFetchXml.d.ts +3 -0
- package/dist/components/Lookup/hooks/useLoadedEntities.d.ts +6 -0
- package/dist/components/Lookup/hooks/useLookup.d.ts +8 -0
- package/dist/components/Lookup/index.d.ts +2 -0
- package/dist/components/Lookup/interfaces.d.ts +52 -0
- package/dist/components/Lookup/lib.d.ts +1164 -0
- package/dist/components/Lookup/styles.d.ts +90 -0
- package/dist/components/Lookup/translations.d.ts +2 -0
- package/dist/components/MultiSelectOptionSet/MultiSelectOptionSet.d.ts +3 -0
- package/dist/components/MultiSelectOptionSet/MultiSelectOptionSet.js +1 -0
- package/dist/components/MultiSelectOptionSet/index.d.ts +2 -0
- package/dist/components/MultiSelectOptionSet/interfaces.d.ts +11 -0
- package/dist/components/OptionSet/OptionSet.d.ts +3 -0
- package/dist/components/OptionSet/OptionSet.js +1 -0
- package/dist/components/OptionSet/index.d.ts +2 -0
- package/dist/components/OptionSet/interfaces.d.ts +13 -0
- package/dist/components/TextField/TextField.d.ts +3 -0
- package/dist/components/TextField/TextField.js +1 -0
- package/dist/components/TextField/hooks/useTextField.d.ts +2 -0
- package/dist/components/TextField/index.d.ts +2 -0
- package/dist/components/TextField/interfaces.d.ts +15 -0
- package/dist/components/TwoOptions/TwoOptions.d.ts +3 -0
- package/dist/components/TwoOptions/TwoOptions.js +1 -0
- package/dist/components/TwoOptions/index.d.ts +2 -0
- package/dist/components/TwoOptions/interfaces.d.ts +13 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/useComponent.d.ts +7 -0
- package/dist/hooks/useComponent.js +1 -0
- package/dist/hooks/useFocusIn.d.ts +1 -0
- package/dist/hooks/useFocusIn.js +1 -0
- package/dist/hooks/useInputBasedComponent.d.ts +32 -0
- package/dist/hooks/useInputBasedComponent.js +1 -0
- package/dist/hooks/useMouseOver.d.ts +1 -0
- package/dist/hooks/useMouseOver.js +1 -0
- package/dist/index.d.ts +40 -0
- package/dist/interfaces/context.d.ts +20 -0
- package/dist/interfaces/index.d.ts +9 -0
- package/dist/interfaces/parameters.d.ts +23 -0
- package/dist/interfaces/property.d.ts +100 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/utils/NumeralPCF.d.ts +6 -0
- package/examples/Currency/Currency/ControlManifest.Input.xml +53 -0
- package/examples/Currency/Currency/index.ts +66 -0
- package/examples/Currency/Currency.pcfproj +46 -0
- package/examples/Currency/package-lock.json +15900 -0
- package/examples/Currency/package.json +29 -0
- package/examples/Currency/pcfconfig.json +3 -0
- package/examples/Currency/tsconfig.json +7 -0
- package/examples/DateTime/DateTime/ControlManifest.Input.xml +58 -0
- package/examples/DateTime/DateTime/index.ts +69 -0
- package/examples/DateTime/DateTime.pcfproj +46 -0
- package/examples/DateTime/package-lock.json +15900 -0
- package/examples/DateTime/package.json +29 -0
- package/examples/DateTime/pcfconfig.json +3 -0
- package/examples/DateTime/tsconfig.json +7 -0
- package/examples/Decimal/Decimal/ControlManifest.Input.xml +66 -0
- package/examples/Decimal/Decimal/index.ts +66 -0
- package/examples/Decimal/Decimal.pcfproj +46 -0
- package/examples/Decimal/package-lock.json +15900 -0
- package/examples/Decimal/package.json +28 -0
- package/examples/Decimal/pcfconfig.json +3 -0
- package/examples/Decimal/tsconfig.json +7 -0
- package/examples/Duration/Duration/ControlManifest.Input.xml +53 -0
- package/examples/Duration/Duration/index.ts +66 -0
- package/examples/Duration/Duration.pcfproj +46 -0
- package/examples/Duration/package-lock.json +15900 -0
- package/examples/Duration/package.json +29 -0
- package/examples/Duration/pcfconfig.json +3 -0
- package/examples/Duration/tsconfig.json +7 -0
- package/examples/Grid/Grid/ControlManifest.Input.xml +28 -0
- package/examples/Grid/Grid/index.ts +100 -0
- package/examples/Grid/Grid.pcfproj +46 -0
- package/examples/Grid/package-lock.json +15901 -0
- package/examples/Grid/package.json +30 -0
- package/examples/Grid/pcfconfig.json +3 -0
- package/examples/Grid/tsconfig.json +7 -0
- package/examples/Lookup/Lookup/ControlManifest.Input.xml +51 -0
- package/examples/Lookup/Lookup/index.ts +90 -0
- package/examples/Lookup/Lookup.pcfproj +46 -0
- package/examples/Lookup/package-lock.json +15900 -0
- package/examples/Lookup/package.json +29 -0
- package/examples/Lookup/pcfconfig.json +3 -0
- package/examples/Lookup/tsconfig.json +8 -0
- package/examples/MultiSelectOptionSet/MultiSelectOptionSet/ControlManifest.Input.xml +53 -0
- package/examples/MultiSelectOptionSet/MultiSelectOptionSet/index.ts +86 -0
- package/examples/MultiSelectOptionSet/MultiSelectOptionSet.pcfproj +46 -0
- package/examples/MultiSelectOptionSet/package-lock.json +15900 -0
- package/examples/MultiSelectOptionSet/package.json +31 -0
- package/examples/MultiSelectOptionSet/pcfconfig.json +3 -0
- package/examples/MultiSelectOptionSet/tsconfig.json +7 -0
- package/examples/OptionSet/OptionSet/ControlManifest.Input.xml +53 -0
- package/examples/OptionSet/OptionSet/index.ts +70 -0
- package/examples/OptionSet/OptionSet.pcfproj +46 -0
- package/examples/OptionSet/package-lock.json +15900 -0
- package/examples/OptionSet/package.json +29 -0
- package/examples/OptionSet/pcfconfig.json +3 -0
- package/examples/OptionSet/tsconfig.json +7 -0
- package/examples/TwoOptions/TwoOptions/ControlManifest.Input.xml +53 -0
- package/examples/TwoOptions/TwoOptions/index.ts +69 -0
- package/examples/TwoOptions/TwoOptions.pcfproj +46 -0
- package/examples/TwoOptions/package-lock.json +15900 -0
- package/examples/TwoOptions/package.json +29 -0
- package/examples/TwoOptions/pcfconfig.json +3 -0
- package/examples/TwoOptions/tsconfig.json +7 -0
- package/package.json +94 -0
- package/public/index.html +43 -0
- package/public/manifest.json +25 -0
- package/rollup.config.js +44 -0
- package/src/components/DateTime/DateTime.tsx +97 -0
- package/src/components/DateTime/components/Calendar.tsx +80 -0
- package/src/components/DateTime/hooks/useDateTime.ts +144 -0
- package/src/components/DateTime/index.ts +2 -0
- package/src/components/DateTime/interfaces.ts +22 -0
- package/src/components/DateTime/styles.ts +37 -0
- package/src/components/DateTime/translations.ts +18 -0
- package/src/components/Decimal/Decimal.tsx +120 -0
- package/src/components/Decimal/index.ts +2 -0
- package/src/components/Decimal/interfaces.ts +20 -0
- package/src/components/Duration/Duration.tsx +143 -0
- package/src/components/Duration/index.ts +2 -0
- package/src/components/Duration/interfaces.ts +22 -0
- package/src/components/Duration/translations.ts +30 -0
- package/src/components/Grid/Grid.tsx +24 -0
- package/src/components/Grid/core/components/AgGrid/AgGrid.tsx +206 -0
- package/src/components/Grid/core/components/AgGrid/components/EmptyRecordsOverlay/EmptyRecords.tsx +16 -0
- package/src/components/Grid/core/components/AgGrid/components/EmptyRecordsOverlay/styles.ts +20 -0
- package/src/components/Grid/core/components/AgGrid/components/LoadingOverlay/LoadingOverlay.tsx +7 -0
- package/src/components/Grid/core/components/AgGrid/controllers/useAgGridController.ts +68 -0
- package/src/components/Grid/core/components/AgGrid/model/AgGrid.ts +100 -0
- package/src/components/Grid/core/components/AgGrid/styles.ts +72 -0
- package/src/components/Grid/core/components/Cell/Commands/Commands.tsx +32 -0
- package/src/components/Grid/core/components/Cell/Commands/Icon.tsx +17 -0
- package/src/components/Grid/core/components/Cell/Commands/styles.ts +21 -0
- package/src/components/Grid/core/components/Cell/Commands/useCommands.tsx +53 -0
- package/src/components/Grid/core/components/Cell/EditableCell/EditableCell.tsx +140 -0
- package/src/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyCell.tsx +176 -0
- package/src/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyOptionSet/ReadOnlyOptionSet.tsx +67 -0
- package/src/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyOptionSet/styles.ts +24 -0
- package/src/components/Grid/core/components/Cell/ReadOnlyCell/styles.ts +56 -0
- package/src/components/Grid/core/components/ColumnHeader/ColumnHeader.tsx +71 -0
- package/src/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/GlobalCheckbox.tsx +31 -0
- package/src/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/styles.ts +16 -0
- package/src/components/Grid/core/components/ColumnHeader/styles.ts +40 -0
- package/src/components/Grid/core/components/Component/Component.tsx +59 -0
- package/src/components/Grid/core/components/Component/controller/useComponentController.ts +39 -0
- package/src/components/Grid/core/components/Component/model/Component.ts +251 -0
- package/src/components/Grid/core/components/Dialog/Constants.tsx +8 -0
- package/src/components/Grid/core/components/Dialog/Styles.tsx +61 -0
- package/src/components/Grid/core/components/Dialog/index.tsx +22 -0
- package/src/components/Grid/core/components/Dialog/interfaces/index.d.ts +7 -0
- package/src/components/Grid/core/components/Save/Save.tsx +74 -0
- package/src/components/Grid/core/components/Save/components/ChangeEditor/ChangeEditor.tsx +63 -0
- package/src/components/Grid/core/components/Save/components/ChangeEditor/components/RecordGrids/RecordGrids.tsx +153 -0
- package/src/components/Grid/core/components/Save/components/ChangeEditor/components/RecordGrids/styles.ts +52 -0
- package/src/components/Grid/core/components/Save/components/ChangeEditor/styles.ts +34 -0
- package/src/components/Grid/core/components/Save/hooks/useSave.ts +59 -0
- package/src/components/Grid/core/components/Save/styles.ts +41 -0
- package/src/components/Grid/core/controllers/useGridController.ts +46 -0
- package/src/components/Grid/core/enums/ConditionOperator.ts +46 -0
- package/src/components/Grid/core/enums/DataType.ts +25 -0
- package/src/components/Grid/core/hooks/useGridInstance.ts +7 -0
- package/src/components/Grid/core/hooks/useRefreshCallback.ts +20 -0
- package/src/components/Grid/core/hooks/useRerender.ts +15 -0
- package/src/components/Grid/core/interfaces/IGridColumn.ts +19 -0
- package/src/components/Grid/core/interfaces/IGridContext.ts +7 -0
- package/src/components/Grid/core/model/Grid.ts +250 -0
- package/src/components/Grid/core/model/GridDependency.ts +34 -0
- package/src/components/Grid/core/model/Metadata.ts +20 -0
- package/src/components/Grid/core/services/RecordUpdateService/controllers/useRecordUpdateServiceController.ts +36 -0
- package/src/components/Grid/core/services/RecordUpdateService/model/RecordUpdateService.ts +222 -0
- package/src/components/Grid/filtering/components/FilterCallout/FilterCallout.tsx +83 -0
- package/src/components/Grid/filtering/components/FilterCallout/components/ConditionOperator/ConditionOperator.tsx +66 -0
- package/src/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValue.tsx +48 -0
- package/src/components/Grid/filtering/components/FilterCallout/components/ConditionValue/model/ConditionComponentValue.ts +120 -0
- package/src/components/Grid/filtering/components/FilterCallout/styles.ts +37 -0
- package/src/components/Grid/filtering/constants.ts +48 -0
- package/src/components/Grid/filtering/controller/useColumnFilterConditionController.ts +63 -0
- package/src/components/Grid/filtering/model/Condition.ts +309 -0
- package/src/components/Grid/filtering/model/Filtering.ts +78 -0
- package/src/components/Grid/filtering/utils/FilteringUtilts.ts +190 -0
- package/src/components/Grid/interfaces.ts +109 -0
- package/src/components/Grid/paging/components/Paging/Paging.tsx +76 -0
- package/src/components/Grid/paging/components/Paging/styles.ts +38 -0
- package/src/components/Grid/paging/controllers/usePagingController.ts +34 -0
- package/src/components/Grid/paging/model/Paging.ts +49 -0
- package/src/components/Grid/selection/controllers/useSelectionController.ts +25 -0
- package/src/components/Grid/selection/model/Selection.ts +60 -0
- package/src/components/Grid/sorting/Sorting.ts +30 -0
- package/src/components/Grid/sorting/components/SortingContextualMenu/SortingContextualMenu.tsx +126 -0
- package/src/components/Grid/sorting/components/SortingContextualMenu/styles.ts +12 -0
- package/src/components/Grid/sorting/controllers/useColumnSortingController.ts +26 -0
- package/src/components/Grid/translations.ts +80 -0
- package/src/components/Grid/validation/controllers/useRecordValidationController.ts +31 -0
- package/src/components/Grid/validation/model/ColumnValidation.ts +81 -0
- package/src/components/Lookup/Lookup.tsx +199 -0
- package/src/components/Lookup/components/RecordCreator.tsx +53 -0
- package/src/components/Lookup/components/TargetSelector.tsx +43 -0
- package/src/components/Lookup/hooks/useFetchXml.ts +31 -0
- package/src/components/Lookup/hooks/useLoadedEntities.ts +23 -0
- package/src/components/Lookup/hooks/useLookup.ts +126 -0
- package/src/components/Lookup/index.ts +2 -0
- package/src/components/Lookup/interfaces.ts +45 -0
- package/src/components/Lookup/lib.ts +3110 -0
- package/src/components/Lookup/styles.ts +106 -0
- package/src/components/Lookup/translations.ts +28 -0
- package/src/components/MultiSelectOptionSet/MultiSelectOptionSet.tsx +83 -0
- package/src/components/MultiSelectOptionSet/index.ts +2 -0
- package/src/components/MultiSelectOptionSet/interfaces.ts +14 -0
- package/src/components/OptionSet/OptionSet.tsx +67 -0
- package/src/components/OptionSet/index.ts +2 -0
- package/src/components/OptionSet/interfaces.ts +17 -0
- package/src/components/TextField/TextField.tsx +58 -0
- package/src/components/TextField/hooks/useTextField.ts +42 -0
- package/src/components/TextField/index.ts +2 -0
- package/src/components/TextField/interfaces.ts +20 -0
- package/src/components/TwoOptions/TwoOptions.tsx +43 -0
- package/src/components/TwoOptions/index.ts +2 -0
- package/src/components/TwoOptions/interfaces.ts +17 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useComponent.ts +83 -0
- package/src/hooks/useFocusIn.ts +23 -0
- package/src/hooks/useInputBasedComponent.ts +71 -0
- package/src/hooks/useMouseOver.ts +23 -0
- package/src/index.tsx +12 -0
- package/src/interfaces/context.ts +21 -0
- package/src/interfaces/index.ts +12 -0
- package/src/interfaces/parameters.ts +26 -0
- package/src/interfaces/property.ts +111 -0
- package/src/sandbox/index.tsx +137 -0
- package/src/sandbox/mock/Context.ts +18 -0
- package/src/sandbox/mock/Formatting.ts +186 -0
- package/src/sandbox/mock/Mode.ts +25 -0
- package/src/sandbox/mock/UserSettings.ts +31 -0
- package/src/sandbox/mock/Utility.ts +14 -0
- package/src/sandbox/shared/durationList.tsx +24 -0
- package/src/sandbox/shared/multiSelectOptionList.tsx +5 -0
- package/src/sandbox/shared/optionList.tsx +5 -0
- package/src/stories/Introduction.stories.mdx +122 -0
- package/src/stories/assets/code-brackets.svg +1 -0
- package/src/stories/assets/colors.svg +1 -0
- package/src/stories/assets/comments.svg +1 -0
- package/src/stories/assets/direction.svg +1 -0
- package/src/stories/assets/flow.svg +1 -0
- package/src/stories/assets/plugin.svg +1 -0
- package/src/stories/assets/repo.svg +1 -0
- package/src/stories/assets/stackalt.svg +1 -0
- package/src/types/index.ts +3 -0
- package/src/utils/NumeralPCF.ts +62 -0
- package/tsconfig.json +28 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
+
import { IDatasetProperty } from "../../../../interfaces";
|
|
3
|
+
import { StringProps } from "../../../../types";
|
|
4
|
+
import { Filtering } from "../../filtering/model/Filtering";
|
|
5
|
+
import { IEntityRecord, IGrid, IGridTranslations } from "../../interfaces";
|
|
6
|
+
import { Paging } from "../../paging/model/Paging";
|
|
7
|
+
import { Selection } from "../../selection/model/Selection";
|
|
8
|
+
import { Sorting } from "../../sorting/Sorting";
|
|
9
|
+
import { IGridColumn } from "../interfaces/IGridColumn";
|
|
10
|
+
import { RecordUpdateService } from "../services/RecordUpdateService/model/RecordUpdateService";
|
|
11
|
+
import { Metadata } from "./Metadata";
|
|
12
|
+
export declare class Grid {
|
|
13
|
+
private _props;
|
|
14
|
+
private _dataset;
|
|
15
|
+
private _pcfContext;
|
|
16
|
+
private _columns;
|
|
17
|
+
private _records;
|
|
18
|
+
private _labels;
|
|
19
|
+
private _shouldRerender;
|
|
20
|
+
private _dependencies;
|
|
21
|
+
constructor(props: IGrid, labels: Required<StringProps<IGridTranslations>>);
|
|
22
|
+
get isNavigationEnabled(): boolean;
|
|
23
|
+
get isEditable(): boolean;
|
|
24
|
+
get parameters(): import("../../interfaces").IGridParameters;
|
|
25
|
+
get error(): boolean | undefined;
|
|
26
|
+
get errorMessage(): string | undefined;
|
|
27
|
+
get labels(): Required<StringProps<IGridTranslations>>;
|
|
28
|
+
get dataset(): IDatasetProperty;
|
|
29
|
+
get pcfContext(): ComponentFramework.Context<any>;
|
|
30
|
+
get props(): IGrid;
|
|
31
|
+
get columns(): IGridColumn[];
|
|
32
|
+
get records(): IEntityRecord[];
|
|
33
|
+
get recordUpdateService(): RecordUpdateService;
|
|
34
|
+
get sorting(): Sorting;
|
|
35
|
+
get metadata(): Metadata;
|
|
36
|
+
get filtering(): Filtering;
|
|
37
|
+
get selection(): Selection;
|
|
38
|
+
get paging(): Paging;
|
|
39
|
+
get shouldRerender(): boolean;
|
|
40
|
+
get loading(): boolean;
|
|
41
|
+
get state(): ComponentFramework.Dictionary | undefined;
|
|
42
|
+
get isNested(): boolean;
|
|
43
|
+
openDatasetItem(entityReference: ComponentFramework.EntityReference): void;
|
|
44
|
+
updateDependencies(props: IGrid): void;
|
|
45
|
+
refreshColumns(): Promise<IGridColumn[]>;
|
|
46
|
+
refreshRecords(): IEntityRecord[];
|
|
47
|
+
private _isColumnEditable;
|
|
48
|
+
private _isColumnRequired;
|
|
49
|
+
private _isColumnSortable;
|
|
50
|
+
private _isColumnFilterable;
|
|
51
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
+
import { Grid } from "./Grid";
|
|
3
|
+
export declare class GridDependency {
|
|
4
|
+
protected _grid: Grid;
|
|
5
|
+
protected _refreshCallbacks: Map<string, () => any>;
|
|
6
|
+
constructor(grid: Grid);
|
|
7
|
+
addRefreshCallback(id: string, callback: () => any): void;
|
|
8
|
+
removeRefreshCallback(id: string): void;
|
|
9
|
+
onDependenciesUpdated(): void;
|
|
10
|
+
protected _triggerRefreshCallbacks(): void;
|
|
11
|
+
protected get _dataset(): import("../../../../interfaces").IDatasetProperty;
|
|
12
|
+
protected get _pcfContext(): ComponentFramework.Context<any>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
+
import { IGridColumn } from "../interfaces/IGridColumn";
|
|
3
|
+
import { GridDependency } from "./GridDependency";
|
|
4
|
+
export declare class Metadata extends GridDependency {
|
|
5
|
+
get(column: IGridColumn): Promise<ComponentFramework.PropertyHelper.EntityMetadata>;
|
|
6
|
+
getOptions(column: IGridColumn): Promise<[number | boolean, ComponentFramework.PropertyHelper.OptionMetadata[]]>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IUpdatedRecord } from "../model/RecordUpdateService";
|
|
2
|
+
interface IRecordUpdateServiceController {
|
|
3
|
+
isDirty: boolean;
|
|
4
|
+
hasInvalidRecords: boolean;
|
|
5
|
+
updatedRecords: IUpdatedRecord[];
|
|
6
|
+
saveAll: () => Promise<boolean>;
|
|
7
|
+
clearAll: () => void;
|
|
8
|
+
record(recordId: string): {
|
|
9
|
+
get: () => IUpdatedRecord | undefined;
|
|
10
|
+
setValue: (columnName: string, value: any) => void;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export declare const useRecordUpdateServiceController: () => IRecordUpdateServiceController;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IEntityColumn, IEntityRecord } from "../../../../interfaces";
|
|
2
|
+
import { Grid } from "../../../model/Grid";
|
|
3
|
+
import { GridDependency } from "../../../model/GridDependency";
|
|
4
|
+
export interface IUpdatedRecord extends Omit<IEntityRecord, 'save'> {
|
|
5
|
+
columns: Map<string, IEntityColumn>;
|
|
6
|
+
isValid: (columnKey: string) => boolean;
|
|
7
|
+
getOriginalValue: (columnKey: string) => any;
|
|
8
|
+
getOriginalFormattedValue: (columnKey: string) => any;
|
|
9
|
+
getOriginalFormattedPrimaryNameValue: () => any;
|
|
10
|
+
save: () => Promise<boolean>;
|
|
11
|
+
clear: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare class RecordUpdateService extends GridDependency {
|
|
14
|
+
private _updatedRecords;
|
|
15
|
+
private _internalRecordMap;
|
|
16
|
+
constructor(grid: Grid);
|
|
17
|
+
get updatedRecords(): IUpdatedRecord[];
|
|
18
|
+
get isDirty(): boolean;
|
|
19
|
+
get hasInvalidRecords(): boolean;
|
|
20
|
+
record(recordId: string): {
|
|
21
|
+
get: () => IUpdatedRecord | undefined;
|
|
22
|
+
setValue: (columnKey: string, value: any, doNotPropagateToDatasetRecord?: boolean) => void;
|
|
23
|
+
};
|
|
24
|
+
saveAll(): Promise<boolean>;
|
|
25
|
+
clearAll(): Promise<void>;
|
|
26
|
+
onDependenciesUpdated(): void;
|
|
27
|
+
private _getEntityColumnByKey;
|
|
28
|
+
private _isReadOnlyChangeEditor;
|
|
29
|
+
private _isEqual;
|
|
30
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ICalloutProps } from '@fluentui/react';
|
|
3
|
+
import { IGridColumn } from '../../../core/interfaces/IGridColumn';
|
|
4
|
+
export interface IFilterCallout extends ICalloutProps {
|
|
5
|
+
column: IGridColumn;
|
|
6
|
+
onDismiss: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const FilterCallout: (props: IFilterCallout) => JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DataType } from "../../../../../../core/enums/DataType";
|
|
3
|
+
import { IColumnFilterConditionController } from "../../../../../controller/useColumnFilterConditionController";
|
|
4
|
+
export declare class ConditionComponentValue {
|
|
5
|
+
private _columnFilterConditionControllerRef;
|
|
6
|
+
private _conditionUtils;
|
|
7
|
+
constructor(columnFilterConditionControllerRef: React.MutableRefObject<IColumnFilterConditionController>);
|
|
8
|
+
get column(): {
|
|
9
|
+
key: string;
|
|
10
|
+
attributeName: string;
|
|
11
|
+
isPrimary?: boolean | undefined;
|
|
12
|
+
dataType?: DataType | undefined;
|
|
13
|
+
displayName?: string | undefined;
|
|
14
|
+
entityAliasName?: string | undefined;
|
|
15
|
+
isFilterable?: boolean | undefined;
|
|
16
|
+
isSortable?: boolean | undefined;
|
|
17
|
+
isSorted?: boolean | undefined;
|
|
18
|
+
isFiltered?: boolean | undefined;
|
|
19
|
+
isSortedDescending?: boolean | undefined;
|
|
20
|
+
isEditable?: boolean | undefined;
|
|
21
|
+
isResizable?: boolean | undefined;
|
|
22
|
+
isRequired?: boolean | undefined;
|
|
23
|
+
width?: number | undefined;
|
|
24
|
+
};
|
|
25
|
+
get(): any;
|
|
26
|
+
set(value: any): void;
|
|
27
|
+
private get _columnFilterConditionController();
|
|
28
|
+
private get _value();
|
|
29
|
+
private get _operator();
|
|
30
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare const filterCalloutStyles: import("@fluentui/react").IProcessedStyleSet<{
|
|
2
|
+
controls: {
|
|
3
|
+
display: string;
|
|
4
|
+
flexDirection: string;
|
|
5
|
+
gap: number;
|
|
6
|
+
flexGrow: number;
|
|
7
|
+
};
|
|
8
|
+
root: {
|
|
9
|
+
minHeight: number;
|
|
10
|
+
padding: number;
|
|
11
|
+
'.ms-Callout-main': {
|
|
12
|
+
display: string;
|
|
13
|
+
flexDirection: string;
|
|
14
|
+
gap: number;
|
|
15
|
+
};
|
|
16
|
+
'.TALXIS__combobox__root, [class*="TALXIS__textfield__root"], [class*="TALXIS__tag-picker__root"]': {
|
|
17
|
+
padding: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
title: {
|
|
21
|
+
fontWeight: number;
|
|
22
|
+
flexGrow: number;
|
|
23
|
+
};
|
|
24
|
+
header: {
|
|
25
|
+
display: string;
|
|
26
|
+
i: {
|
|
27
|
+
fontSize: number;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
footer: {
|
|
31
|
+
display: string;
|
|
32
|
+
gap: number;
|
|
33
|
+
justifyContent: string;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DatasetConditionOperator } from "../../core/enums/ConditionOperator";
|
|
2
|
+
import { IGridColumn } from "../../core/interfaces/IGridColumn";
|
|
3
|
+
export interface IColumnFilterConditionController {
|
|
4
|
+
isAppliedToDataset: boolean;
|
|
5
|
+
column: IGridColumn;
|
|
6
|
+
value: {
|
|
7
|
+
valid: boolean;
|
|
8
|
+
get: () => any;
|
|
9
|
+
set: (value: any) => void;
|
|
10
|
+
};
|
|
11
|
+
operator: {
|
|
12
|
+
get: () => DatasetConditionOperator | undefined;
|
|
13
|
+
set: (operator: DatasetConditionOperator) => void;
|
|
14
|
+
};
|
|
15
|
+
remove: () => void;
|
|
16
|
+
save: () => Promise<boolean>;
|
|
17
|
+
clear: () => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const useColumnFilterConditionController: (column: IGridColumn) => IColumnFilterConditionController | null;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
+
import { DatasetConditionOperator } from "../../core/enums/ConditionOperator";
|
|
3
|
+
import { IGridColumn } from "../../core/interfaces/IGridColumn";
|
|
4
|
+
import { Grid } from "../../core/model/Grid";
|
|
5
|
+
import { GridDependency } from "../../core/model/GridDependency";
|
|
6
|
+
export declare class Condition extends GridDependency {
|
|
7
|
+
private _column;
|
|
8
|
+
private _isAppliedToDataset;
|
|
9
|
+
private _conditionExpression;
|
|
10
|
+
private _isRemoved?;
|
|
11
|
+
private _conditionUtils;
|
|
12
|
+
private _isValid;
|
|
13
|
+
private _inicializationPromise;
|
|
14
|
+
private _initialized;
|
|
15
|
+
constructor(grid: Grid, column: IGridColumn);
|
|
16
|
+
init(): Promise<boolean>;
|
|
17
|
+
get isRemoved(): boolean | undefined;
|
|
18
|
+
get column(): IGridColumn;
|
|
19
|
+
get isAppliedToDataset(): boolean;
|
|
20
|
+
get isValid(): boolean;
|
|
21
|
+
getExpression(): Promise<{
|
|
22
|
+
attributeName: string;
|
|
23
|
+
conditionOperator: ComponentFramework.PropertyHelper.DataSetApi.Types.ConditionOperator;
|
|
24
|
+
value: string | string[];
|
|
25
|
+
entityAliasName?: string | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
save(): Promise<boolean>;
|
|
28
|
+
remove(): void;
|
|
29
|
+
clear(): void;
|
|
30
|
+
get operator(): {
|
|
31
|
+
get: () => DatasetConditionOperator;
|
|
32
|
+
set: (conditionOperator: DatasetConditionOperator) => void;
|
|
33
|
+
};
|
|
34
|
+
get value(): {
|
|
35
|
+
get: () => any;
|
|
36
|
+
set: (value: any) => void;
|
|
37
|
+
isValid: () => Promise<boolean>;
|
|
38
|
+
};
|
|
39
|
+
private _get;
|
|
40
|
+
private _set;
|
|
41
|
+
private _attributeNameDecorator;
|
|
42
|
+
private _valueDecorator;
|
|
43
|
+
private _operatorDecorator;
|
|
44
|
+
private _getDefault;
|
|
45
|
+
private get _filterExpression();
|
|
46
|
+
private _getConditionFromFilterExpression;
|
|
47
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IGridColumn } from "../../core/interfaces/IGridColumn";
|
|
2
|
+
import { GridDependency } from "../../core/model/GridDependency";
|
|
3
|
+
import { Condition } from "./Condition";
|
|
4
|
+
export declare class Filtering extends GridDependency {
|
|
5
|
+
private _conditions;
|
|
6
|
+
save(): Promise<boolean>;
|
|
7
|
+
clear(): void;
|
|
8
|
+
condition(column: IGridColumn): Promise<Condition>;
|
|
9
|
+
private get _filterExpression();
|
|
10
|
+
private _getColumnKeyFromCondition;
|
|
11
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { DatasetConditionOperator } from "../../core/enums/ConditionOperator";
|
|
2
|
+
export declare class FilteringUtils {
|
|
3
|
+
static condition(): {
|
|
4
|
+
operator: (conditionOperator?: DatasetConditionOperator) => {
|
|
5
|
+
textFieldOperators: {
|
|
6
|
+
type: DatasetConditionOperator;
|
|
7
|
+
key: string;
|
|
8
|
+
}[];
|
|
9
|
+
numberOperators: {
|
|
10
|
+
type: DatasetConditionOperator;
|
|
11
|
+
key: string;
|
|
12
|
+
}[];
|
|
13
|
+
dateOperators: {
|
|
14
|
+
type: DatasetConditionOperator;
|
|
15
|
+
key: string;
|
|
16
|
+
}[];
|
|
17
|
+
multipleOptionSetOperators: {
|
|
18
|
+
type: DatasetConditionOperator;
|
|
19
|
+
key: string;
|
|
20
|
+
}[];
|
|
21
|
+
fileOperators: {
|
|
22
|
+
type: DatasetConditionOperator;
|
|
23
|
+
key: string;
|
|
24
|
+
}[];
|
|
25
|
+
allowsOnlyFreeText: boolean;
|
|
26
|
+
allowsOnlyNumber: boolean;
|
|
27
|
+
doesNotAllowValue: boolean;
|
|
28
|
+
};
|
|
29
|
+
value: (conditionOperator: DatasetConditionOperator) => {
|
|
30
|
+
isEditable: boolean;
|
|
31
|
+
isManuallyEditable: boolean;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
}
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
+
import { IDatasetProperty, IParameters, ITwoOptionsProperty } from "../../interfaces";
|
|
3
|
+
import { IComponent, IOutputs, ITranslations } from "../../interfaces/context";
|
|
4
|
+
export interface IGrid extends IComponent<IGridParameters, IGridOutputs, IGridTranslations> {
|
|
5
|
+
}
|
|
6
|
+
export interface IEntityColumn extends ComponentFramework.PropertyHelper.DataSetApi.Column {
|
|
7
|
+
isResizable?: boolean;
|
|
8
|
+
isFilterable?: boolean;
|
|
9
|
+
isEditable?: boolean;
|
|
10
|
+
isRequired?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface IEntityRecord extends ComponentFramework.PropertyHelper.DataSetApi.EntityRecord {
|
|
13
|
+
setValue: (columnName: string, value: any) => void;
|
|
14
|
+
save: () => Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
export interface IGridParameters extends IParameters {
|
|
17
|
+
EnableEditing?: Omit<ITwoOptionsProperty, 'attributes'>;
|
|
18
|
+
EnablePagination?: Omit<ITwoOptionsProperty, 'attributes'>;
|
|
19
|
+
EnableFiltering?: Omit<ITwoOptionsProperty, 'attributes'>;
|
|
20
|
+
EnableSorting?: Omit<ITwoOptionsProperty, 'attributes'>;
|
|
21
|
+
EnableNavigation?: Omit<ITwoOptionsProperty, 'attributes'>;
|
|
22
|
+
IsNested?: Omit<ITwoOptionsProperty, 'attributes'>;
|
|
23
|
+
SelectableRows?: ComponentFramework.PropertyTypes.EnumProperty<"none" | "single" | "multiple">;
|
|
24
|
+
Grid: IDatasetProperty;
|
|
25
|
+
}
|
|
26
|
+
export interface IGridOutputs extends IOutputs {
|
|
27
|
+
}
|
|
28
|
+
export interface IGridTranslations extends ITranslations {
|
|
29
|
+
"condition-none": {
|
|
30
|
+
[LCID: number]: string;
|
|
31
|
+
};
|
|
32
|
+
"condition-equal": {
|
|
33
|
+
[LCID: number]: string;
|
|
34
|
+
};
|
|
35
|
+
"condition-notequal": {
|
|
36
|
+
[LCID: number]: string;
|
|
37
|
+
};
|
|
38
|
+
"condition-greaterthan": {
|
|
39
|
+
[LCID: number]: string;
|
|
40
|
+
};
|
|
41
|
+
"condition-lessthan": {
|
|
42
|
+
[LCID: number]: string;
|
|
43
|
+
};
|
|
44
|
+
"condition-greaterequal": {
|
|
45
|
+
[LCID: number]: string;
|
|
46
|
+
};
|
|
47
|
+
"condition-lessequal": {
|
|
48
|
+
[LCID: number]: string;
|
|
49
|
+
};
|
|
50
|
+
"condition-like": {
|
|
51
|
+
[LCID: number]: string;
|
|
52
|
+
};
|
|
53
|
+
"condition-notlike": {
|
|
54
|
+
[LCID: number]: string;
|
|
55
|
+
};
|
|
56
|
+
"condition-null": {
|
|
57
|
+
[LCID: number]: string;
|
|
58
|
+
};
|
|
59
|
+
"condition-notnull": {
|
|
60
|
+
[LCID: number]: string;
|
|
61
|
+
};
|
|
62
|
+
"condition-beginwith": {
|
|
63
|
+
[LCID: number]: string;
|
|
64
|
+
};
|
|
65
|
+
"condition-doesnotbeginwith": {
|
|
66
|
+
[LCID: number]: string;
|
|
67
|
+
};
|
|
68
|
+
"condition-endswith": {
|
|
69
|
+
[LCID: number]: string;
|
|
70
|
+
};
|
|
71
|
+
"condition-doesnotendwith": {
|
|
72
|
+
[LCID: number]: string;
|
|
73
|
+
};
|
|
74
|
+
"condition-yesterday": {
|
|
75
|
+
[LCID: number]: string;
|
|
76
|
+
};
|
|
77
|
+
"condition-today": {
|
|
78
|
+
[LCID: number]: string;
|
|
79
|
+
};
|
|
80
|
+
"condition-tomorrow": {
|
|
81
|
+
[LCID: number]: string;
|
|
82
|
+
};
|
|
83
|
+
"condition-last7days": {
|
|
84
|
+
[LCID: number]: string;
|
|
85
|
+
};
|
|
86
|
+
"condition-next7days": {
|
|
87
|
+
[LCID: number]: string;
|
|
88
|
+
};
|
|
89
|
+
"condition-lastweek": {
|
|
90
|
+
[LCID: number]: string;
|
|
91
|
+
};
|
|
92
|
+
"condition-thisweek": {
|
|
93
|
+
[LCID: number]: string;
|
|
94
|
+
};
|
|
95
|
+
"condition-lastmonth": {
|
|
96
|
+
[LCID: number]: string;
|
|
97
|
+
};
|
|
98
|
+
"condition-thismonth": {
|
|
99
|
+
[LCID: number]: string;
|
|
100
|
+
};
|
|
101
|
+
"condition-on": {
|
|
102
|
+
[LCID: number]: string;
|
|
103
|
+
};
|
|
104
|
+
"condition-onorbefore": {
|
|
105
|
+
[LCID: number]: string;
|
|
106
|
+
};
|
|
107
|
+
"condition-onorafter": {
|
|
108
|
+
[LCID: number]: string;
|
|
109
|
+
};
|
|
110
|
+
"condition-lastyear": {
|
|
111
|
+
[LCID: number]: string;
|
|
112
|
+
};
|
|
113
|
+
"condition-thisyear": {
|
|
114
|
+
[LCID: number]: string;
|
|
115
|
+
};
|
|
116
|
+
"condition-lastxdays": {
|
|
117
|
+
[LCID: number]: string;
|
|
118
|
+
};
|
|
119
|
+
"condition-nextxdays": {
|
|
120
|
+
[LCID: number]: string;
|
|
121
|
+
};
|
|
122
|
+
"condition-lastxmonths": {
|
|
123
|
+
[LCID: number]: string;
|
|
124
|
+
};
|
|
125
|
+
"condition-nextxmonths": {
|
|
126
|
+
[LCID: number]: string;
|
|
127
|
+
};
|
|
128
|
+
"condition-contains": {
|
|
129
|
+
[LCID: number]: string;
|
|
130
|
+
};
|
|
131
|
+
"condition-infiscalperiodandyear": {
|
|
132
|
+
[LCID: number]: string;
|
|
133
|
+
};
|
|
134
|
+
"condition-above": {
|
|
135
|
+
[LCID: number]: string;
|
|
136
|
+
};
|
|
137
|
+
"condition-under": {
|
|
138
|
+
[LCID: number]: string;
|
|
139
|
+
};
|
|
140
|
+
"condition-notunder": {
|
|
141
|
+
[LCID: number]: string;
|
|
142
|
+
};
|
|
143
|
+
"condition-aboveorequal": {
|
|
144
|
+
[LCID: number]: string;
|
|
145
|
+
};
|
|
146
|
+
"condition-underorequal": {
|
|
147
|
+
[LCID: number]: string;
|
|
148
|
+
};
|
|
149
|
+
"condition-containvalues": {
|
|
150
|
+
[LCID: number]: string;
|
|
151
|
+
};
|
|
152
|
+
"condition-doesnotcontainvalues": {
|
|
153
|
+
[LCID: number]: string;
|
|
154
|
+
};
|
|
155
|
+
"filtermenu-filterby": {
|
|
156
|
+
[LCID: number]: string;
|
|
157
|
+
};
|
|
158
|
+
"filtermenu-applybutton": {
|
|
159
|
+
[LCID: number]: string;
|
|
160
|
+
};
|
|
161
|
+
"filtermenu-clearbutton": {
|
|
162
|
+
[LCID: number]: string;
|
|
163
|
+
};
|
|
164
|
+
"filtersortmenu-sorttext-a-z": {
|
|
165
|
+
[LCID: number]: string;
|
|
166
|
+
};
|
|
167
|
+
"filtersortmenu-sorttext-z-a": {
|
|
168
|
+
[LCID: number]: string;
|
|
169
|
+
};
|
|
170
|
+
"filtersortmenu-sortdate-a-z": {
|
|
171
|
+
[LCID: number]: string;
|
|
172
|
+
};
|
|
173
|
+
"filtersortmenu-sortdate-z-a": {
|
|
174
|
+
[LCID: number]: string;
|
|
175
|
+
};
|
|
176
|
+
"filtersortmenu-sortnumber-a-z": {
|
|
177
|
+
[LCID: number]: string;
|
|
178
|
+
};
|
|
179
|
+
"filtersortmenu-sortnumber-z-a": {
|
|
180
|
+
[LCID: number]: string;
|
|
181
|
+
};
|
|
182
|
+
"filtersortmenu-sorttwooption-a-z": {
|
|
183
|
+
[LCID: number]: string;
|
|
184
|
+
};
|
|
185
|
+
"filtersortmenu-sorttwooption-z-a": {
|
|
186
|
+
[LCID: number]: string;
|
|
187
|
+
};
|
|
188
|
+
"filtersortmenu-sorttwooption-joint": {
|
|
189
|
+
[LCID: number]: string;
|
|
190
|
+
};
|
|
191
|
+
"filtersortmenu-filterby": {
|
|
192
|
+
[LCID: number]: string;
|
|
193
|
+
};
|
|
194
|
+
"filtersortmenu-clearfilter": {
|
|
195
|
+
[LCID: number]: string;
|
|
196
|
+
};
|
|
197
|
+
"paging-pages": {
|
|
198
|
+
[LCID: number]: string;
|
|
199
|
+
};
|
|
200
|
+
"paging-of": {
|
|
201
|
+
[LCID: number]: string;
|
|
202
|
+
};
|
|
203
|
+
"paging-firstpage": {
|
|
204
|
+
[LCID: number]: string;
|
|
205
|
+
};
|
|
206
|
+
"paging-previouspage": {
|
|
207
|
+
[LCID: number]: string;
|
|
208
|
+
};
|
|
209
|
+
"paging-page": {
|
|
210
|
+
[LCID: number]: string;
|
|
211
|
+
};
|
|
212
|
+
"paging-nextpage": {
|
|
213
|
+
[LCID: number]: string;
|
|
214
|
+
};
|
|
215
|
+
"paging-lastpage": {
|
|
216
|
+
[LCID: number]: string;
|
|
217
|
+
};
|
|
218
|
+
"norecordsfound": {
|
|
219
|
+
[LCID: number]: string;
|
|
220
|
+
};
|
|
221
|
+
"saving-changenotification": {
|
|
222
|
+
[LCID: number]: string;
|
|
223
|
+
};
|
|
224
|
+
"saving-save": {
|
|
225
|
+
[LCID: number]: string;
|
|
226
|
+
};
|
|
227
|
+
"saving-saving": {
|
|
228
|
+
[LCID: number]: string;
|
|
229
|
+
};
|
|
230
|
+
"saving-changepreview-title": {
|
|
231
|
+
[LCID: number]: string;
|
|
232
|
+
};
|
|
233
|
+
"saving-validation-error": {
|
|
234
|
+
[LCID: number]: string;
|
|
235
|
+
};
|
|
236
|
+
"validation-input-value": {
|
|
237
|
+
[LCID: number]: string;
|
|
238
|
+
};
|
|
239
|
+
"validation-email": {
|
|
240
|
+
[LCID: number]: string;
|
|
241
|
+
};
|
|
242
|
+
"validation-url": {
|
|
243
|
+
[LCID: number]: string;
|
|
244
|
+
};
|
|
245
|
+
"validation-date": {
|
|
246
|
+
[LCID: number]: string;
|
|
247
|
+
};
|
|
248
|
+
"validation-number": {
|
|
249
|
+
[LCID: number]: string;
|
|
250
|
+
};
|
|
251
|
+
"no-name": {
|
|
252
|
+
[LCID: number]: string;
|
|
253
|
+
};
|
|
254
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ITheme } from "@fluentui/react";
|
|
2
|
+
export declare const getPagingStyles: (theme: ITheme) => import("@fluentui/react").IProcessedStyleSet<{
|
|
3
|
+
root: {
|
|
4
|
+
display: string;
|
|
5
|
+
flexWrap: string;
|
|
6
|
+
justifyContent: string;
|
|
7
|
+
};
|
|
8
|
+
pagination: {
|
|
9
|
+
'.ms-CommandBar': {
|
|
10
|
+
paddingLeft: number;
|
|
11
|
+
paddingRight: number;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
currentPageBtn: {
|
|
15
|
+
'.ms-Button-label': {
|
|
16
|
+
color: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
pageSizeBtnWrapper: {
|
|
20
|
+
flexGrow: number;
|
|
21
|
+
display: string;
|
|
22
|
+
'.ms-Button-label': {
|
|
23
|
+
whiteSpace: string;
|
|
24
|
+
};
|
|
25
|
+
'.ms-Button': {
|
|
26
|
+
height: number;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
pageSizeOption: {
|
|
30
|
+
'& .is-checked': {
|
|
31
|
+
backgroundColor: string;
|
|
32
|
+
fontWeight: number;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface IPagingController {
|
|
2
|
+
pageNumber: number;
|
|
3
|
+
pageSize: number;
|
|
4
|
+
totalResultCount: number;
|
|
5
|
+
hasPreviousPage: boolean;
|
|
6
|
+
hasNextPage: boolean;
|
|
7
|
+
pageFirstRecordOrder: number;
|
|
8
|
+
pageLastRecordOrder: number;
|
|
9
|
+
loadNextPage: () => void;
|
|
10
|
+
loadPreviousPage: () => void;
|
|
11
|
+
loadExactPage: (pageNumber: number) => void;
|
|
12
|
+
setPageSize: (pageSize: number) => void;
|
|
13
|
+
reset: () => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const usePagingController: () => IPagingController;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { GridDependency } from "../../core/model/GridDependency";
|
|
2
|
+
export declare class Paging extends GridDependency {
|
|
3
|
+
get pageNumber(): number;
|
|
4
|
+
get pageSize(): number;
|
|
5
|
+
get totalResultCount(): number;
|
|
6
|
+
get hasPreviousPage(): boolean;
|
|
7
|
+
get hasNextPage(): boolean;
|
|
8
|
+
get pageFirstRecordOrder(): number;
|
|
9
|
+
get pageLastRecordOrder(): number;
|
|
10
|
+
loadNextPage(): void;
|
|
11
|
+
loadPreviousPage(): void;
|
|
12
|
+
loadExactPage(pageNumber: number): void;
|
|
13
|
+
setPageSize(pageSize: number): void;
|
|
14
|
+
reset(): void;
|
|
15
|
+
}
|