@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
package/dist/components/Grid/core/components/AgGrid/components/EmptyRecordsOverlay/styles.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const emptyRecordStyles: import("@fluentui/react").IProcessedStyleSet<{
|
|
2
|
+
root: {
|
|
3
|
+
display: string;
|
|
4
|
+
flexDirection: string;
|
|
5
|
+
gap: number;
|
|
6
|
+
alignItems: string;
|
|
7
|
+
position: string;
|
|
8
|
+
top: number;
|
|
9
|
+
};
|
|
10
|
+
icon: {
|
|
11
|
+
fontSize: number;
|
|
12
|
+
};
|
|
13
|
+
image: {
|
|
14
|
+
img: {
|
|
15
|
+
width: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
+
import { ColDef, GridApi } from "@ag-grid-community/core";
|
|
3
|
+
import { IEntityRecord } from "../../../../interfaces";
|
|
4
|
+
import "@ag-grid-community/styles/ag-grid.css";
|
|
5
|
+
import "@ag-grid-community/styles/ag-theme-balham.css";
|
|
6
|
+
interface IAgGridController {
|
|
7
|
+
agColumns: ColDef[];
|
|
8
|
+
records: IEntityRecord[];
|
|
9
|
+
onGridReady: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const useAgGridController: (gridApiRef: React.MutableRefObject<GridApi<ComponentFramework.PropertyHelper.DataSetApi.EntityRecord> | undefined>) => IAgGridController;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/// <reference types="@types/powerapps-component-framework" />
|
|
3
|
+
import { ColDef, GridApi } from "@ag-grid-community/core";
|
|
4
|
+
import { Grid } from "../../../model/Grid";
|
|
5
|
+
import { GridDependency } from "../../../model/GridDependency";
|
|
6
|
+
export declare class AgGrid extends GridDependency {
|
|
7
|
+
private _gridApiRef;
|
|
8
|
+
constructor(grid: Grid, gridApiRef: React.MutableRefObject<GridApi<ComponentFramework.PropertyHelper.DataSetApi.EntityRecord> | undefined>);
|
|
9
|
+
get columns(): ColDef<any, any>[];
|
|
10
|
+
selectRows(): void;
|
|
11
|
+
private get _gridApi();
|
|
12
|
+
private _getCellClassName;
|
|
13
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { ITheme } from "@fluentui/react";
|
|
2
|
+
export declare const getGridStyles: (theme: ITheme, numOfRecords?: number) => import("@fluentui/react").IProcessedStyleSet<{
|
|
3
|
+
root: {
|
|
4
|
+
height: string;
|
|
5
|
+
display: string;
|
|
6
|
+
flexDirection: string;
|
|
7
|
+
'--height-offset': string;
|
|
8
|
+
':has(.ag-body-horizontal-scroll-viewport[style*="height: 0px"])': {
|
|
9
|
+
'--height-offset': string;
|
|
10
|
+
};
|
|
11
|
+
'--ag-borders': string;
|
|
12
|
+
'.ag-root-wrapper': {
|
|
13
|
+
maxHeight: string;
|
|
14
|
+
'--ag-input-focus-border-color': string;
|
|
15
|
+
borderBottom: string;
|
|
16
|
+
':has(.ag-overlay:not(.ag-hidden) .TALXIS__grid__empty-records)': {
|
|
17
|
+
minHeight: number;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
'.ag-root-wrapper.ag-layout-normal': {
|
|
21
|
+
height: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
'.ag-body': {
|
|
24
|
+
borderTop: string;
|
|
25
|
+
};
|
|
26
|
+
'.ag-header-viewport': {
|
|
27
|
+
backgroundColor: string;
|
|
28
|
+
};
|
|
29
|
+
'.ag-center-cols-container': {
|
|
30
|
+
minWidth: string;
|
|
31
|
+
};
|
|
32
|
+
'.ag-layout-auto-height .ag-center-cols-clipper, .ag-layout-auto-height .ag-center-cols-container, .ag-layout-print .ag-center-cols-clipper, .ag-layout-print .ag-center-cols-container': {
|
|
33
|
+
minHeight: string;
|
|
34
|
+
};
|
|
35
|
+
'.ag-header-cell': {
|
|
36
|
+
paddingLeft: number;
|
|
37
|
+
paddingRight: number;
|
|
38
|
+
backgroundColor: string;
|
|
39
|
+
};
|
|
40
|
+
'.ag-cell-inline-editing': {
|
|
41
|
+
overflow: string;
|
|
42
|
+
top: number;
|
|
43
|
+
backgroundColor: string;
|
|
44
|
+
input: {
|
|
45
|
+
paddingLeft: number;
|
|
46
|
+
};
|
|
47
|
+
'.TALXIS__error-message__root': {
|
|
48
|
+
display: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
'.talxis-cell-align-right': {
|
|
52
|
+
'[class^="cellContent"]': {
|
|
53
|
+
justifyContent: string;
|
|
54
|
+
};
|
|
55
|
+
'.talxis-cell-text, input': {
|
|
56
|
+
textAlign: string;
|
|
57
|
+
};
|
|
58
|
+
input: {
|
|
59
|
+
paddingRight: number;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
'.ag-cell-focus:has([data-is-valid="false"])': {
|
|
63
|
+
border: string;
|
|
64
|
+
};
|
|
65
|
+
'.TALXIS__combobox__root, [class*="TALXIS__textfield__root"], [class*="TALXIS__tag-picker__root"]': {
|
|
66
|
+
padding: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/// <reference types="@types/powerapps-component-framework" />
|
|
3
|
+
interface ICommands {
|
|
4
|
+
record: ComponentFramework.PropertyHelper.DataSetApi.EntityRecord;
|
|
5
|
+
}
|
|
6
|
+
export declare const Commands: ({ record }: ICommands) => JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const commandStyles: import("@fluentui/react").IProcessedStyleSet<{
|
|
2
|
+
root: {
|
|
3
|
+
backgroundColor: string;
|
|
4
|
+
};
|
|
5
|
+
talxisRoot: {
|
|
6
|
+
minWidth: number;
|
|
7
|
+
flexShrink: number;
|
|
8
|
+
flexGrow: number;
|
|
9
|
+
};
|
|
10
|
+
button: {
|
|
11
|
+
backgroundColor: string;
|
|
12
|
+
};
|
|
13
|
+
icon: {
|
|
14
|
+
width: number;
|
|
15
|
+
height: number;
|
|
16
|
+
marginLeft: number;
|
|
17
|
+
marginRight: number;
|
|
18
|
+
};
|
|
19
|
+
}>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/// <reference types="@types/powerapps-component-framework" />
|
|
3
|
+
import { IGridColumn } from '../../../interfaces/IGridColumn';
|
|
4
|
+
import { ICellEditorParams } from '@ag-grid-community/core';
|
|
5
|
+
interface ICell extends ICellEditorParams {
|
|
6
|
+
baseColumn: IGridColumn;
|
|
7
|
+
data: ComponentFramework.PropertyHelper.DataSetApi.EntityRecord;
|
|
8
|
+
}
|
|
9
|
+
export declare const EditableCell: (props: ICell) => JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IGridColumn } from '../../../interfaces/IGridColumn';
|
|
3
|
+
import { IEntityRecord } from '../../../../interfaces';
|
|
4
|
+
import { ICellRendererParams } from '@ag-grid-community/core';
|
|
5
|
+
interface ICellProps extends ICellRendererParams {
|
|
6
|
+
baseColumn: IGridColumn;
|
|
7
|
+
data: IEntityRecord;
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}
|
|
10
|
+
export declare const ReadOnlyCell: (props: ICellProps) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
+
import { ReactElement } from "react";
|
|
3
|
+
import { IGridColumn } from "../../../../interfaces/IGridColumn";
|
|
4
|
+
interface IReadOnlyOptionSet {
|
|
5
|
+
column: IGridColumn;
|
|
6
|
+
record: ComponentFramework.PropertyHelper.DataSetApi.EntityRecord;
|
|
7
|
+
defaultRender: () => ReactElement;
|
|
8
|
+
}
|
|
9
|
+
export declare const ReadOnlyOptionSet: (props: IReadOnlyOptionSet) => JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const optionSetStyles: import("@fluentui/react").IProcessedStyleSet<{
|
|
2
|
+
root: {
|
|
3
|
+
display: string;
|
|
4
|
+
gap: number;
|
|
5
|
+
overflow: string;
|
|
6
|
+
'--light': number;
|
|
7
|
+
'--threshold': number;
|
|
8
|
+
flexGrow: number;
|
|
9
|
+
};
|
|
10
|
+
option: {
|
|
11
|
+
borderRadius: number;
|
|
12
|
+
paddingLeft: number;
|
|
13
|
+
paddingRight: number;
|
|
14
|
+
overflow: string;
|
|
15
|
+
textOverflow: string;
|
|
16
|
+
flexGrow: number;
|
|
17
|
+
textAlign: string;
|
|
18
|
+
'>span': {
|
|
19
|
+
color: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ITheme } from "@fluentui/react";
|
|
2
|
+
export declare const getReadOnlyCellStyles: (theme: ITheme) => import("@fluentui/react").IProcessedStyleSet<{
|
|
3
|
+
root: {
|
|
4
|
+
display: string;
|
|
5
|
+
height: string;
|
|
6
|
+
alignItems: string;
|
|
7
|
+
gap: number;
|
|
8
|
+
};
|
|
9
|
+
text: {
|
|
10
|
+
fontSize: number;
|
|
11
|
+
overflow: string;
|
|
12
|
+
textOverflow: string;
|
|
13
|
+
};
|
|
14
|
+
link: {
|
|
15
|
+
fontSize: number;
|
|
16
|
+
overflow: string;
|
|
17
|
+
textOverflow: string;
|
|
18
|
+
};
|
|
19
|
+
fileWrapper: {
|
|
20
|
+
display: string;
|
|
21
|
+
gap: number;
|
|
22
|
+
};
|
|
23
|
+
image: {
|
|
24
|
+
marginRight: number;
|
|
25
|
+
img: {
|
|
26
|
+
width: number;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
cellContent: {
|
|
30
|
+
display: string;
|
|
31
|
+
height: string;
|
|
32
|
+
alignItems: string;
|
|
33
|
+
flexGrow: number;
|
|
34
|
+
overflow: string;
|
|
35
|
+
':has([data-align="right"])': {
|
|
36
|
+
justifyContent: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
loadingLine: {
|
|
40
|
+
height: number;
|
|
41
|
+
borderRadius: number;
|
|
42
|
+
width: string;
|
|
43
|
+
animation: string;
|
|
44
|
+
backgroundSize: string;
|
|
45
|
+
background: string;
|
|
46
|
+
};
|
|
47
|
+
}>;
|
package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/styles.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ITheme } from "@fluentui/react";
|
|
2
|
+
export declare const getGlobalCheckboxStyles: (theme: ITheme) => import("@fluentui/react").IProcessedStyleSet<{
|
|
3
|
+
root: {
|
|
4
|
+
backgroundColor: string;
|
|
5
|
+
flexGrow: number;
|
|
6
|
+
display: string;
|
|
7
|
+
justifyContent: string;
|
|
8
|
+
height: string;
|
|
9
|
+
alignItems: string;
|
|
10
|
+
position: string;
|
|
11
|
+
left: number;
|
|
12
|
+
};
|
|
13
|
+
}>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ITheme } from "@fluentui/react";
|
|
2
|
+
export declare const getColumnHeaderStyles: (theme: ITheme) => import("@fluentui/react").IProcessedStyleSet<{
|
|
3
|
+
root: {
|
|
4
|
+
width: string;
|
|
5
|
+
textAlign: string;
|
|
6
|
+
height: number;
|
|
7
|
+
paddingLeft: number;
|
|
8
|
+
paddingRight: number;
|
|
9
|
+
'.ms-Button-flexContainer': {
|
|
10
|
+
justifyContent: string;
|
|
11
|
+
gap: number;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
labelWrapper: {
|
|
15
|
+
flex: number;
|
|
16
|
+
display: string;
|
|
17
|
+
minWidth: number;
|
|
18
|
+
};
|
|
19
|
+
label: {
|
|
20
|
+
overflow: string;
|
|
21
|
+
textOverflow: string;
|
|
22
|
+
cursor: string;
|
|
23
|
+
};
|
|
24
|
+
requiredSymbol: {
|
|
25
|
+
color: string;
|
|
26
|
+
position: string;
|
|
27
|
+
top: number;
|
|
28
|
+
left: number;
|
|
29
|
+
};
|
|
30
|
+
filterSortIcons: {
|
|
31
|
+
display: string;
|
|
32
|
+
gap: number;
|
|
33
|
+
};
|
|
34
|
+
editIcon: {
|
|
35
|
+
marginRight: number;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IParameters } from "../../../../../interfaces/parameters";
|
|
3
|
+
import { IGridColumn } from "../../interfaces/IGridColumn";
|
|
4
|
+
export interface IComponentProps {
|
|
5
|
+
column: IGridColumn;
|
|
6
|
+
value: any;
|
|
7
|
+
formattedValue?: string;
|
|
8
|
+
onNotifyOutputChanged: (value: any) => void;
|
|
9
|
+
additionalParameters?: IParameters;
|
|
10
|
+
}
|
|
11
|
+
export declare const Component: (props: IComponentProps) => JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IComponentProps } from "../Component";
|
|
2
|
+
import { IComponent } from "../../../../../../interfaces/context";
|
|
3
|
+
import { IGridColumn } from "../../../interfaces/IGridColumn";
|
|
4
|
+
interface IComponentController {
|
|
5
|
+
column: IGridColumn;
|
|
6
|
+
componentProps: IComponent<any, any, any>;
|
|
7
|
+
}
|
|
8
|
+
export declare const useComponentController: (props: IComponentProps) => IComponentController | undefined;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IComponent } from "../../../../../../interfaces/context";
|
|
2
|
+
import { GridDependency } from "../../../model/GridDependency";
|
|
3
|
+
import { IComponentProps } from "../Component";
|
|
4
|
+
export declare class Component extends GridDependency {
|
|
5
|
+
private _debouncedGetLookupValue;
|
|
6
|
+
private static _lookupSavedQueriesCache;
|
|
7
|
+
getControlProps(props: IComponentProps): Promise<IComponent<any, any, any>>;
|
|
8
|
+
private _getInjectedContext;
|
|
9
|
+
private _getLookupValue;
|
|
10
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IUpdatedRecord } from '../../../../../../services/RecordUpdateService/model/RecordUpdateService';
|
|
3
|
+
interface IRecordGrids {
|
|
4
|
+
record: IUpdatedRecord;
|
|
5
|
+
}
|
|
6
|
+
export declare const RecordGrids: (props: IRecordGrids) => JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ITheme } from "@fluentui/react";
|
|
2
|
+
export declare const getRecordGridStyles: (theme: ITheme) => import("@fluentui/react").IProcessedStyleSet<{
|
|
3
|
+
root: {
|
|
4
|
+
borderRadius: number;
|
|
5
|
+
padding: number;
|
|
6
|
+
paddingTop: number;
|
|
7
|
+
gap: number;
|
|
8
|
+
display: string;
|
|
9
|
+
flexDirection: string;
|
|
10
|
+
justifyContent: string;
|
|
11
|
+
backgroundColor: string;
|
|
12
|
+
boxShadow: string;
|
|
13
|
+
'>span': {
|
|
14
|
+
fontWeight: number;
|
|
15
|
+
};
|
|
16
|
+
'>i': {
|
|
17
|
+
alignSelf: string;
|
|
18
|
+
fontSize: number;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
readOnlyGrid: {
|
|
22
|
+
'.ag-theme-balham > div > .ms-MessageBar': {
|
|
23
|
+
minHeight: number;
|
|
24
|
+
height: number;
|
|
25
|
+
'.ms-MessageBar-actionsSingleLine': {
|
|
26
|
+
position: string;
|
|
27
|
+
top: number;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
gridTitleWrapper: {
|
|
32
|
+
borderBottom: string;
|
|
33
|
+
paddingBottom: number;
|
|
34
|
+
'>span': {
|
|
35
|
+
fontWeight: number;
|
|
36
|
+
fontSize: number;
|
|
37
|
+
overflow: string;
|
|
38
|
+
whiteSpace: string;
|
|
39
|
+
textOverflow: string;
|
|
40
|
+
display: string;
|
|
41
|
+
maxWidth: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
editableGrid: {
|
|
45
|
+
position: string;
|
|
46
|
+
top: number;
|
|
47
|
+
};
|
|
48
|
+
}>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ITheme } from "@fluentui/react";
|
|
2
|
+
export declare const getChangeEditorStyles: (theme: ITheme) => import("@fluentui/react").IProcessedStyleSet<{
|
|
3
|
+
root: {
|
|
4
|
+
'.ag-row': {
|
|
5
|
+
borderBottom: string;
|
|
6
|
+
};
|
|
7
|
+
'.ms-Dialog-title': {
|
|
8
|
+
borderBottom: string;
|
|
9
|
+
};
|
|
10
|
+
'.ms-Dialog-content': {
|
|
11
|
+
backgroundColor: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
recordGrids: {
|
|
15
|
+
marginTop: number;
|
|
16
|
+
display: string;
|
|
17
|
+
flexDirection: string;
|
|
18
|
+
gap: number;
|
|
19
|
+
};
|
|
20
|
+
saveBtn: {
|
|
21
|
+
'.ms-Button-flexContainer': {
|
|
22
|
+
gap: number;
|
|
23
|
+
'>span': {
|
|
24
|
+
order: number;
|
|
25
|
+
};
|
|
26
|
+
'>div': {
|
|
27
|
+
order: number;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
}>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const getSaveStyles: () => import("@fluentui/react").IProcessedStyleSet<{
|
|
2
|
+
root: {
|
|
3
|
+
'&[data-dirty="false"]': {
|
|
4
|
+
'.ms-MessageBar': {
|
|
5
|
+
backgroundColor: string;
|
|
6
|
+
'.ms-MessageBar-icon': {
|
|
7
|
+
display: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
'.ms-MessageBar-icon': {
|
|
12
|
+
alignItems: string;
|
|
13
|
+
};
|
|
14
|
+
'.ms-MessageBar-actionsSingleLine': {
|
|
15
|
+
marginRight: number;
|
|
16
|
+
};
|
|
17
|
+
'.ms-MessageBar-innerText': {
|
|
18
|
+
textAlign: string;
|
|
19
|
+
};
|
|
20
|
+
'&[data-dirty="true"]': {
|
|
21
|
+
cursor: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
notificationText: {
|
|
25
|
+
whiteSpace: string;
|
|
26
|
+
};
|
|
27
|
+
actions: {
|
|
28
|
+
height: string;
|
|
29
|
+
'.ms-Button': {
|
|
30
|
+
height: string;
|
|
31
|
+
backgroundColor: string;
|
|
32
|
+
':last-child': {
|
|
33
|
+
marginLeft: number;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IEntityRecord } from "../../interfaces";
|
|
2
|
+
import { Grid } from "../model/Grid";
|
|
3
|
+
import { IGridColumn } from "../interfaces/IGridColumn";
|
|
4
|
+
interface IGridController {
|
|
5
|
+
columns: IGridColumn[];
|
|
6
|
+
records: IEntityRecord[];
|
|
7
|
+
}
|
|
8
|
+
export declare const useGridController: (gridInstance?: Grid) => IGridController;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export declare enum DatasetConditionOperator {
|
|
2
|
+
None = -1,
|
|
3
|
+
Equal = 0,
|
|
4
|
+
NotEqual = 1,
|
|
5
|
+
GreaterThan = 2,
|
|
6
|
+
LessThan = 3,
|
|
7
|
+
GreaterEqual = 4,
|
|
8
|
+
LessEqual = 5,
|
|
9
|
+
Like = 6,
|
|
10
|
+
NotLike = 7,
|
|
11
|
+
In = 8,
|
|
12
|
+
NotIn = 9,
|
|
13
|
+
Null = 12,
|
|
14
|
+
NotNull = 13,
|
|
15
|
+
Yesterday = 14,
|
|
16
|
+
Today = 15,
|
|
17
|
+
Tomorrow = 16,
|
|
18
|
+
Last7Days = 17,
|
|
19
|
+
Next7Days = 18,
|
|
20
|
+
LastWeek = 19,
|
|
21
|
+
ThisWeek = 20,
|
|
22
|
+
LastMonth = 22,
|
|
23
|
+
ThisMonth = 23,
|
|
24
|
+
On = 25,
|
|
25
|
+
OnOrBefore = 26,
|
|
26
|
+
OnOrAfter = 27,
|
|
27
|
+
LastYear = 28,
|
|
28
|
+
ThisYear = 29,
|
|
29
|
+
LastXDays = 33,
|
|
30
|
+
NextXDays = 34,
|
|
31
|
+
LastXMonths = 37,
|
|
32
|
+
NextXMonths = 38,
|
|
33
|
+
Contains = 49,
|
|
34
|
+
BeginWith = 54,
|
|
35
|
+
DoesNotBeginWith = 55,
|
|
36
|
+
EndsWith = 56,
|
|
37
|
+
DoesNotEndWith = 57,
|
|
38
|
+
InFiscalPeriodAndYear = 70,
|
|
39
|
+
Above = 75,
|
|
40
|
+
Under = 76,
|
|
41
|
+
NotUnder = 77,
|
|
42
|
+
AboveOrEqual = 78,
|
|
43
|
+
UnderOrEqual = 79,
|
|
44
|
+
ContainValues = 87,
|
|
45
|
+
DoesNotContainValues = 88
|
|
46
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare enum DataType {
|
|
2
|
+
SINGLE_LINE_TEXT = "SingleLine.Text",
|
|
3
|
+
SINGLE_LINE_TEXT_AREA = "SingleLine.TextArea",
|
|
4
|
+
SINGLE_LINE_EMAIL = "SingleLine.Email",
|
|
5
|
+
SINGLE_LINE_PHONE = "SingleLine.Phone",
|
|
6
|
+
SINGLE_LINE_URL = "SingleLine.URL",
|
|
7
|
+
MULTIPLE = "Multiple",
|
|
8
|
+
WHOLE_NONE = "Whole.None",
|
|
9
|
+
DECIMAL = "Decimal",
|
|
10
|
+
FP = "FP",
|
|
11
|
+
DATE_AND_TIME_DATE_AND_TIME = "DateAndTime.DateAndTime",
|
|
12
|
+
DATE_AND_TIME_DATE_ONLY = "DateAndTime.DateOnly",
|
|
13
|
+
CURRENCY = "Currency",
|
|
14
|
+
OPTIONSET = "OptionSet",
|
|
15
|
+
MULTI_SELECT_OPTIONSET = "MultiSelectPicklist",
|
|
16
|
+
TWO_OPTIONS = "TwoOptions",
|
|
17
|
+
LOOKUP_SIMPLE = "Lookup.Simple",
|
|
18
|
+
LOOKUP_OWNER = "Lookup.Owner",
|
|
19
|
+
WHOLE_LANGUAGE = "Whole.Language",
|
|
20
|
+
WHOLE_DURATION = "Whole.Duration",
|
|
21
|
+
WHOLE_TIMEZONE = "Whole.TimeZone",
|
|
22
|
+
FILE = "File",
|
|
23
|
+
IMAGE = "Image"
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useRerender: () => [number, (fn?: () => any | Promise<any>) => void];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DataType } from "../enums/DataType";
|
|
2
|
+
export interface IGridColumn {
|
|
3
|
+
key: string;
|
|
4
|
+
attributeName: string;
|
|
5
|
+
isPrimary?: boolean;
|
|
6
|
+
dataType?: DataType;
|
|
7
|
+
displayName?: string;
|
|
8
|
+
entityAliasName?: string;
|
|
9
|
+
isFilterable?: boolean;
|
|
10
|
+
isSortable?: boolean;
|
|
11
|
+
isSorted?: boolean;
|
|
12
|
+
isFiltered?: boolean;
|
|
13
|
+
isSortedDescending?: boolean;
|
|
14
|
+
isEditable?: boolean;
|
|
15
|
+
isResizable?: boolean;
|
|
16
|
+
isRequired?: boolean;
|
|
17
|
+
width?: number;
|
|
18
|
+
}
|