@adaptabletools/adaptable-cjs 17.0.0-canary.4 → 18.0.0-canary.1
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/base.css +62 -14
- package/base.css.map +1 -1
- package/index.css +267 -165
- package/index.css.map +1 -1
- package/package.json +5 -4
- package/src/AdaptableInterfaces/IAdaptable.d.ts +3 -0
- package/src/AdaptableOptions/AdaptableOptions.d.ts +5 -0
- package/src/AdaptableOptions/AlertOptions.d.ts +7 -7
- package/src/AdaptableOptions/ColumnFilterOptions.d.ts +9 -9
- package/src/AdaptableOptions/CommentsOptions.d.ts +28 -0
- package/src/AdaptableOptions/EditOptions.d.ts +6 -6
- package/src/AdaptableOptions/GridFilterOptions.d.ts +13 -8
- package/src/AdaptableOptions/GroupingOptions.d.ts +9 -9
- package/src/AdaptableOptions/InteropioPluginOptions.d.ts +10 -0
- package/src/AdaptableOptions/MenuOptions.d.ts +18 -4
- package/src/AdaptableOptions/MenuOptions.js +14 -6
- package/src/AdaptableOptions/NotesOptions.d.ts +2 -9
- package/src/Api/AdaptableApi.d.ts +6 -1
- package/src/Api/CommentApi.d.ts +58 -0
- package/src/Api/EventApi.d.ts +48 -12
- package/src/Api/Events/CalculatedColumnChanged.d.ts +19 -0
- package/src/Api/Events/CellSelectionChanged.d.ts +11 -0
- package/src/Api/Events/CommentsChangedInfo.d.ts +5 -0
- package/src/Api/Events/LiveDataChanged.d.ts +3 -3
- package/src/Api/Events/RowSelectionChanged.d.ts +11 -0
- package/src/Api/GridApi.d.ts +0 -6
- package/src/Api/GridFilterApi.d.ts +2 -2
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +6 -6
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
- package/src/Api/Implementation/CommentsApiImpl.d.ts +15 -0
- package/src/Api/Implementation/CommentsApiImpl.js +46 -0
- package/src/Api/Implementation/ExpressionApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ExpressionApiImpl.js +3 -4
- package/src/Api/Implementation/GridApiImpl.d.ts +0 -1
- package/src/Api/Implementation/GridApiImpl.js +0 -4
- package/src/Api/Implementation/GridFilterApiImpl.d.ts +1 -1
- package/src/Api/Implementation/GridFilterApiImpl.js +1 -1
- package/src/Api/Implementation/NotesApiImpl.d.ts +3 -7
- package/src/Api/Implementation/NotesApiImpl.js +1 -15
- package/src/Api/Implementation/OptionsApiImpl.d.ts +2 -0
- package/src/Api/Implementation/OptionsApiImpl.js +3 -0
- package/src/Api/Implementation/PluginsApiImpl.d.ts +2 -6
- package/src/Api/Implementation/PluginsApiImpl.js +3 -15
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -12
- package/src/Api/Implementation/ScheduleApiImpl.js +0 -36
- package/src/Api/Implementation/ThemeApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ThemeApiImpl.js +3 -0
- package/src/Api/Internal/ActionRowInternalApi.js +1 -1
- package/src/Api/Internal/AdaptableInternalApi.d.ts +2 -0
- package/src/Api/Internal/AdaptableInternalApi.js +3 -0
- package/src/Api/Internal/CalculatedColumnInternalApi.d.ts +2 -0
- package/src/Api/Internal/CalculatedColumnInternalApi.js +16 -0
- package/src/Api/Internal/DashboardInternalApi.d.ts +1 -0
- package/src/Api/Internal/DashboardInternalApi.js +5 -0
- package/src/Api/Internal/DataImportInternalApi.js +2 -0
- package/src/Api/Internal/DataSetInternalApi.js +2 -1
- package/src/Api/Internal/GridInternalApi.d.ts +3 -1
- package/src/Api/Internal/GridInternalApi.js +32 -9
- package/src/Api/Internal/LayoutInternalApi.d.ts +2 -2
- package/src/Api/Internal/LayoutInternalApi.js +11 -11
- package/src/Api/InteropioPluginApi.d.ts +10 -0
- package/src/Api/{NotesAPi.d.ts → NotesApi.d.ts} +19 -21
- package/src/Api/OptionsApi.d.ts +5 -0
- package/src/Api/PluginsApi.d.ts +3 -13
- package/src/Api/ScheduleApi.d.ts +1 -48
- package/src/Api/ThemeApi.d.ts +5 -0
- package/src/PredefinedConfig/AdaptableState.d.ts +4 -2
- package/src/PredefinedConfig/CellAddress.d.ts +13 -0
- package/src/PredefinedConfig/CellAddress.js +5 -0
- package/src/PredefinedConfig/CommentState.d.ts +48 -0
- package/src/PredefinedConfig/CommentState.js +2 -0
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +2 -1
- package/src/PredefinedConfig/Common/Enums.d.ts +0 -1
- package/src/PredefinedConfig/Common/Enums.js +0 -1
- package/src/PredefinedConfig/Common/Schedule.d.ts +1 -1
- package/src/PredefinedConfig/Common/Types.d.ts +5 -5
- package/src/PredefinedConfig/Common/Types.js +0 -2
- package/src/PredefinedConfig/NotesState.d.ts +0 -13
- package/src/PredefinedConfig/PredefinedConfig.d.ts +3 -0
- package/src/PredefinedConfig/ScheduleState.d.ts +0 -5
- package/src/PredefinedConfig/SystemState.d.ts +5 -6
- package/src/PredefinedConfig/ThemeState.d.ts +1 -1
- package/src/Redux/ActionsReducers/CommentsRedux.d.ts +79 -0
- package/src/Redux/ActionsReducers/CommentsRedux.js +189 -0
- package/src/Redux/ActionsReducers/NotesRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/NotesRedux.js +4 -5
- package/src/Redux/ActionsReducers/PluginsRedux.d.ts +0 -48
- package/src/Redux/ActionsReducers/PluginsRedux.js +1 -49
- package/src/Redux/ActionsReducers/PlusMinusRedux.d.ts +16 -0
- package/src/Redux/ActionsReducers/PlusMinusRedux.js +47 -1
- package/src/Redux/ActionsReducers/ScheduleRedux.d.ts +0 -53
- package/src/Redux/ActionsReducers/ScheduleRedux.js +2 -90
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +23 -12
- package/src/Redux/ActionsReducers/SystemRedux.js +55 -23
- package/src/Redux/Store/AdaptableStore.d.ts +2 -2
- package/src/Redux/Store/AdaptableStore.js +107 -46
- package/src/Strategy/CommentsModule.d.ts +16 -0
- package/src/Strategy/CommentsModule.js +82 -0
- package/src/Strategy/LayoutModule.d.ts +12 -4
- package/src/Strategy/LayoutModule.js +19 -14
- package/src/Strategy/NotesModule.d.ts +0 -13
- package/src/Strategy/NotesModule.js +9 -88
- package/src/Strategy/PlusMinusModule.js +2 -0
- package/src/Strategy/ScheduleModule.js +0 -23
- package/src/Strategy/Utilities/Export/getExportRowsViewItems.d.ts +2 -1
- package/src/Strategy/Utilities/Export/getExportRowsViewItems.js +14 -5
- package/src/Strategy/Utilities/getExpressionViewItems.js +8 -2
- package/src/Utilities/Constants/ConfigConstants.d.ts +1 -0
- package/src/Utilities/Constants/ConfigConstants.js +2 -1
- package/src/Utilities/Constants/GeneralConstants.d.ts +1 -0
- package/src/Utilities/Constants/GeneralConstants.js +8 -3
- package/src/Utilities/Constants/ModuleConstants.d.ts +3 -3
- package/src/Utilities/Constants/ModuleConstants.js +4 -4
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +3 -3
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -0
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +7 -1
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +6 -0
- package/src/Utilities/ExpressionFunctions/dateUtils.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/dateUtils.js +18 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +12 -12
- package/src/Utilities/Extensions/ArrayExtensions.d.ts +2 -0
- package/src/Utilities/Extensions/ArrayExtensions.js +8 -1
- package/src/Utilities/Helpers/PreviewHelper.js +5 -2
- package/src/Utilities/ObjectFactory.d.ts +19 -22
- package/src/Utilities/ObjectFactory.js +51 -60
- package/src/Utilities/Services/CellPopupService.d.ts +23 -0
- package/src/Utilities/Services/CellPopupService.js +138 -0
- package/src/Utilities/Services/Interface/IReportService.d.ts +1 -1
- package/src/Utilities/Services/Interface/IThemeService.d.ts +8 -0
- package/src/Utilities/Services/ModuleService.js +1 -3
- package/src/Utilities/Services/ReportService.d.ts +1 -1
- package/src/Utilities/Services/ThemeService.d.ts +3 -0
- package/src/Utilities/Services/ThemeService.js +33 -1
- package/src/Utilities/Services/ValidationService.js +11 -11
- package/src/View/AdaptableView.js +3 -3
- package/src/View/AdaptableViewFactory.js +4 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +2 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +1 -1
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +2 -2
- package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertRulesWizardSection.js +4 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +1 -1
- package/src/View/Charting/useChartingElements.js +8 -3
- package/src/View/Comments/CommentsEditor.d.ts +7 -0
- package/src/View/Comments/CommentsEditor.js +100 -0
- package/src/View/Comments/CommentsPopup.d.ts +2 -0
- package/src/View/Comments/CommentsPopup.js +87 -0
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +2 -1
- package/src/View/Components/CellPopup/index.js +1 -1
- package/src/View/Components/FilterForm/FilterForm.js +8 -2
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +1 -3
- package/src/View/Components/FilterForm/QuickFilterForm.js +5 -4
- package/src/View/Components/FilterForm/QuickFilterValues.d.ts +2 -2
- package/src/View/Components/FilterForm/QuickFilterValues.js +4 -3
- package/src/View/Components/Popups/GridCellPopup/GridCellPopup.d.ts +5 -0
- package/src/View/Components/Popups/GridCellPopup/GridCellPopup.js +67 -0
- package/src/View/Components/Popups/GridCellPopup/index.d.ts +1 -0
- package/src/View/Components/Popups/GridCellPopup/index.js +5 -0
- package/src/View/Components/Selectors/ColumnSelector.d.ts +1 -0
- package/src/View/Components/Selectors/ColumnSelector.js +2 -1
- package/src/View/Components/Selectors/PermittedValuesSelector.d.ts +5 -4
- package/src/View/Components/Selectors/PermittedValuesSelector.js +25 -3
- package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -4
- package/src/View/Dashboard/ModuleToolbarWrapper.js +1 -1
- package/src/View/Dashboard/PinnedDashboard.js +2 -1
- package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +2 -2
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +3 -1
- package/src/View/GridFilter/GridFilterExpressionEditor.js +1 -1
- package/src/View/GridFilter/GridFilterPopup.js +10 -8
- package/src/View/GridFilter/GridFilterViewPanel.js +51 -14
- package/src/View/GridFilter/NamedQuerySelector.js +1 -1
- package/src/View/GridFilter/useGridFilterExpressionEditor.d.ts +3 -0
- package/src/View/GridFilter/useGridFilterExpressionEditor.js +17 -6
- package/src/View/GridFilter/useGridFilterOptionsForExpressionEditor.js +5 -23
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +3 -2
- package/src/View/Layout/Wizard/getGridFilterPreview.d.ts +6 -0
- package/src/View/Layout/Wizard/getGridFilterPreview.js +16 -0
- package/src/View/Layout/Wizard/sections/FilterSection.js +1 -1
- package/src/View/Layout/Wizard/sections/GridFilterSection.js +4 -4
- package/src/View/NamedQuery/EditCurrentQueryButton.js +1 -1
- package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +1 -1
- package/src/View/Notes/NoteEditor.d.ts +8 -0
- package/src/View/Notes/NoteEditor.js +33 -0
- package/src/View/Notes/NotesPopup.d.ts +2 -2
- package/src/View/Notes/NotesPopup.js +78 -55
- package/src/View/PlusMinus/MovePlusMinus.d.ts +7 -0
- package/src/View/PlusMinus/MovePlusMinus.js +27 -0
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +0 -9
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +0 -4
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +2 -8
- package/src/View/Schedule/Wizard/ScheduleWizard.js +0 -8
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +3 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +1 -2
- package/src/agGrid/Adaptable.d.ts +7 -0
- package/src/agGrid/Adaptable.js +49 -35
- package/src/agGrid/BadgeRenderer.js +9 -5
- package/src/agGrid/agGridHelper.d.ts +2 -1
- package/src/agGrid/agGridHelper.js +15 -3
- package/src/agGrid/agGridMenuHelper.d.ts +2 -0
- package/src/agGrid/agGridMenuHelper.js +73 -25
- package/src/components/Datepicker/index.js +4 -4
- package/src/components/ExpressionEditor/ExpressionPreview.d.ts +7 -0
- package/src/components/ExpressionEditor/ExpressionPreview.js +25 -0
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilder.js +2 -2
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.d.ts +6 -0
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +40 -11
- package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +14 -2
- package/src/components/ExpressionEditor/QueryBuilder/booleanExpressions.js +1 -0
- package/src/components/ExpressionEditor/QueryBuilder/utils.js +1 -1
- package/src/components/ExpressionEditor/index.js +4 -7
- package/src/components/InputGroup/InputGroup.d.ts +7 -0
- package/src/components/InputGroup/InputGroup.js +12 -0
- package/src/components/InputGroup/index.d.ts +1 -0
- package/src/components/InputGroup/index.js +4 -0
- package/src/components/OverlayTrigger/index.js +7 -2
- package/src/components/Select/Select.d.ts +1 -2
- package/src/components/Select/Select.js +63 -23
- package/src/components/Textarea/index.d.ts +9 -0
- package/src/components/Textarea/index.js +50 -2
- package/src/components/Toastify/index.d.ts +2 -2
- package/src/components/Toastify/index.js +1 -1
- package/src/components/icons/comments.d.ts +3 -0
- package/src/components/icons/comments.js +7 -0
- package/src/components/icons/index.js +3 -1
- package/src/env.d.ts +3 -1
- package/src/env.js +3 -1
- package/src/metamodel/adaptable.metamodel.d.ts +72 -158
- package/src/metamodel/adaptable.metamodel.js +138 -260
- package/src/parser/src/parser.d.ts +2 -0
- package/src/parser/src/parser.js +1880 -705
- package/src/parser/src/predicate/mapQlPredicateToExpression.js +5 -2
- package/src/parser/src/predicate/types.d.ts +1 -1
- package/src/parser/src/types.d.ts +1 -1
- package/src/renderReactRoot.js +15 -0
- package/src/themes/index.js +4 -0
- package/src/types.d.ts +10 -13
- package/themes/dark.css +3 -3
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/src/AdaptableOptions/FinsemblePluginOptions.d.ts +0 -35
- package/src/AdaptableOptions/Glue42PluginOptions.d.ts +0 -25
- package/src/AdaptableOptions/Glue42WebPluginOptions.d.ts +0 -10
- package/src/Api/Events/SelectionChanged.d.ts +0 -16
- package/src/Api/FinsembleApi.d.ts +0 -10
- package/src/Api/Glue42Api.d.ts +0 -75
- package/src/Api/Glue42WebApi.d.ts +0 -10
- package/src/PredefinedConfig/Glue42State.d.ts +0 -46
- package/src/View/Notes/NotesListing.d.ts +0 -2
- package/src/View/Notes/NotesListing.js +0 -88
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsGlue42.d.ts +0 -9
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsGlue42.js +0 -25
- package/src/bundle-dependencies/bundles/react-toastify/components/CloseButton.d.ts +0 -9
- package/src/bundle-dependencies/bundles/react-toastify/components/Icons.d.ts +0 -24
- package/src/bundle-dependencies/bundles/react-toastify/components/ProgressBar.d.ts +0 -59
- package/src/bundle-dependencies/bundles/react-toastify/components/Toast.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-toastify/components/ToastContainer.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-toastify/components/Transitions.d.ts +0 -6
- package/src/bundle-dependencies/bundles/react-toastify/components/index.d.ts +0 -6
- package/src/bundle-dependencies/bundles/react-toastify/core/eventManager.d.ts +0 -39
- package/src/bundle-dependencies/bundles/react-toastify/core/index.d.ts +0 -2
- package/src/bundle-dependencies/bundles/react-toastify/core/toast.d.ts +0 -41
- package/src/bundle-dependencies/bundles/react-toastify/hooks/index.d.ts +0 -2
- package/src/bundle-dependencies/bundles/react-toastify/hooks/useToast.d.ts +0 -10
- package/src/bundle-dependencies/bundles/react-toastify/hooks/useToastContainer.d.ts +0 -23
- package/src/bundle-dependencies/bundles/react-toastify/index.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-toastify/index.js +0 -1
- package/src/bundle-dependencies/bundles/react-toastify/inject-style.d.ts +0 -8
- package/src/bundle-dependencies/bundles/react-toastify/types/index.d.ts +0 -269
- package/src/bundle-dependencies/bundles/react-toastify/utils/collapseToast.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-toastify/utils/constant.d.ts +0 -23
- package/src/bundle-dependencies/bundles/react-toastify/utils/cssTransition.d.ts +0 -43
- package/src/bundle-dependencies/bundles/react-toastify/utils/index.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-toastify/utils/mapper.d.ts +0 -2
- package/src/bundle-dependencies/bundles/react-toastify/utils/propValidator.d.ts +0 -9
- /package/src/AdaptableOptions/{FinsemblePluginOptions.js → CommentsOptions.js} +0 -0
- /package/src/AdaptableOptions/{Glue42PluginOptions.js → InteropioPluginOptions.js} +0 -0
- /package/src/{AdaptableOptions/Glue42WebPluginOptions.js → Api/CommentApi.js} +0 -0
- /package/src/Api/Events/{SelectionChanged.js → CalculatedColumnChanged.js} +0 -0
- /package/src/Api/{FinsembleApi.js → Events/CellSelectionChanged.js} +0 -0
- /package/src/Api/{Glue42Api.js → Events/CommentsChangedInfo.js} +0 -0
- /package/src/Api/{Glue42WebApi.js → Events/RowSelectionChanged.js} +0 -0
- /package/src/Api/Internal/{ExpressionnternalApi.d.ts → ExpressionInternalApi.d.ts} +0 -0
- /package/src/Api/Internal/{ExpressionnternalApi.js → ExpressionInternalApi.js} +0 -0
- /package/src/Api/{NotesAPi.js → InteropioPluginApi.js} +0 -0
- /package/src/{PredefinedConfig/Glue42State.js → Api/NotesApi.js} +0 -0
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Options required for when using the Finsemble plugin
|
|
3
|
-
*/
|
|
4
|
-
export interface FinsemblePluginOptions {
|
|
5
|
-
/**
|
|
6
|
-
* Application name - used to identify the application in Finsemble console
|
|
7
|
-
*/
|
|
8
|
-
applicationName?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Options for managing Adaptable State with Finsemble State
|
|
11
|
-
*/
|
|
12
|
-
stateOptions?: FinsemblePluginStateOptions;
|
|
13
|
-
/**
|
|
14
|
-
* Should Adaptable's Alerts appear as Finsemble Notifications
|
|
15
|
-
* @defaultValue true
|
|
16
|
-
*/
|
|
17
|
-
showAdaptableAlertsAsNotifications?: boolean;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Options for managing state while using Finsemble
|
|
21
|
-
*/
|
|
22
|
-
export interface FinsemblePluginStateOptions {
|
|
23
|
-
/**
|
|
24
|
-
* Whether to persist AdapTable State inside Finsemble
|
|
25
|
-
*/
|
|
26
|
-
persistInFinsemble: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Key used to persist/load AdapTable State in Finsemble
|
|
29
|
-
*/
|
|
30
|
-
key: string;
|
|
31
|
-
/**
|
|
32
|
-
* Topic used to persist/load AdapTable State in Finsemble
|
|
33
|
-
*/
|
|
34
|
-
topic: string;
|
|
35
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Options for using the Glue42 Desktop plugin
|
|
3
|
-
*/
|
|
4
|
-
export interface Glue42PluginOptions {
|
|
5
|
-
/**
|
|
6
|
-
* UserName to use to login to Glue42; typically sourced from PC Credentials
|
|
7
|
-
*/
|
|
8
|
-
username?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Password to use to login to Glue42; typically sourced from PC Credentials
|
|
11
|
-
*/
|
|
12
|
-
password?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Gateway URL
|
|
15
|
-
*/
|
|
16
|
-
gatewayURL?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Main Glue desktop object
|
|
19
|
-
*/
|
|
20
|
-
glue?: any;
|
|
21
|
-
/**
|
|
22
|
-
* Main Glue42 Office object
|
|
23
|
-
*/
|
|
24
|
-
glue42Office?: any;
|
|
25
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Options for using the Glue42 Web plugin
|
|
3
|
-
*/
|
|
4
|
-
export interface Glue42WebPluginOptions {
|
|
5
|
-
/**
|
|
6
|
-
* Converts AdapTable Alerts configured to display in popup as Glue42 Notifications
|
|
7
|
-
* @defaultValue true
|
|
8
|
-
*/
|
|
9
|
-
showAdaptableAlertsAsNotifications?: boolean;
|
|
10
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { SelectedCellInfo } from '../../PredefinedConfig/Selection/SelectedCellInfo';
|
|
2
|
-
import { SelectedRowInfo } from '../../PredefinedConfig/Selection/SelectedRowInfo';
|
|
3
|
-
import { BaseEventInfo } from './BaseEventInfo';
|
|
4
|
-
/**
|
|
5
|
-
* Event Info published by SelectionChanged event
|
|
6
|
-
*/
|
|
7
|
-
export interface SelectionChangedInfo extends BaseEventInfo {
|
|
8
|
-
/**
|
|
9
|
-
* Details of cells currently selected in the Grid
|
|
10
|
-
*/
|
|
11
|
-
selectedCellInfo: SelectedCellInfo;
|
|
12
|
-
/**
|
|
13
|
-
* Details of rows currently selected in the Grid
|
|
14
|
-
*/
|
|
15
|
-
selectedRowInfo: SelectedRowInfo;
|
|
16
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FinsemblePluginOptions } from '../AdaptableOptions/FinsemblePluginOptions';
|
|
2
|
-
/**
|
|
3
|
-
* Provides run-time access to the Finsemble Plugin
|
|
4
|
-
*/
|
|
5
|
-
export interface FinsembleApi {
|
|
6
|
-
/**
|
|
7
|
-
* Retrieves the FinsemblePlugOptions provided in Finsemble Plugin
|
|
8
|
-
*/
|
|
9
|
-
getPluginOptions(): FinsemblePluginOptions;
|
|
10
|
-
}
|
package/src/Api/Glue42Api.d.ts
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { Glue42State, Glue42Report, Glue42Schedule } from '../PredefinedConfig/Glue42State';
|
|
2
|
-
import { AdaptableAlert } from '../types';
|
|
3
|
-
import { Glue42PluginOptions } from '../AdaptableOptions/Glue42PluginOptions';
|
|
4
|
-
/**
|
|
5
|
-
* Provides run-time access to the Glue42 Plugin.
|
|
6
|
-
*/
|
|
7
|
-
export interface Glue42Api {
|
|
8
|
-
/**
|
|
9
|
-
* Retrieves the Glue42 section of Adaptable State
|
|
10
|
-
*/
|
|
11
|
-
getGlue42State(): Glue42State | undefined;
|
|
12
|
-
/**
|
|
13
|
-
* Retrieves the Glue42PluginOptions provided in Glue42 Desktop Plugin
|
|
14
|
-
*/
|
|
15
|
-
getPluginOptions(): Glue42PluginOptions;
|
|
16
|
-
/**
|
|
17
|
-
* Returns true if the Glue42 plugin is loaded
|
|
18
|
-
*/
|
|
19
|
-
isGlue42Available(): boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Returns true if the Glue42 plugin is loaded AND the user has logged into Glue42
|
|
22
|
-
*/
|
|
23
|
-
isGlue42Running(): boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Logs in the User to Glue42 using the given UserName and Password
|
|
26
|
-
* @param userName userName of Glue42 user
|
|
27
|
-
* @param password password of Glue42 user
|
|
28
|
-
*/
|
|
29
|
-
loginToGlue42(userName: string, password: string): void;
|
|
30
|
-
/**
|
|
31
|
-
* Logs out the currently logged in User from Glue42
|
|
32
|
-
*/
|
|
33
|
-
logoutFromGlue42(): void;
|
|
34
|
-
/**
|
|
35
|
-
* Retrieves the current Live Report
|
|
36
|
-
*/
|
|
37
|
-
getCurrentLiveGlue42Report(): Glue42Report | undefined;
|
|
38
|
-
/**
|
|
39
|
-
* Retrieves all the Glue42 Schedules in from the Schedule section of AdapTable State
|
|
40
|
-
*/
|
|
41
|
-
getGlue42Schedules(): Glue42Schedule[];
|
|
42
|
-
/**
|
|
43
|
-
* Starts a "Live" report (ie. one which updates as the data ticks)
|
|
44
|
-
*
|
|
45
|
-
* Note: This is not available in AdapTable version 7
|
|
46
|
-
*
|
|
47
|
-
* @param glue42Report report to run in Live Data mode
|
|
48
|
-
*/
|
|
49
|
-
startLiveData(glue42Report: Glue42Report): void;
|
|
50
|
-
/**
|
|
51
|
-
* Stops a "Live" report (ie. one which updates as the data ticks)
|
|
52
|
-
*
|
|
53
|
-
* Note: This is not available in AdapTable version 7
|
|
54
|
-
*
|
|
55
|
-
*/
|
|
56
|
-
stopLiveData(): void;
|
|
57
|
-
/**
|
|
58
|
-
* Starts a Snapshot as opposed to a Live report
|
|
59
|
-
*
|
|
60
|
-
* Note: This is not available in AdapTable version 7
|
|
61
|
-
*
|
|
62
|
-
* @param glue42Report report to send as a Snapshot
|
|
63
|
-
*/
|
|
64
|
-
sendSnapshotToDo(glue42Report: Glue42Report): void;
|
|
65
|
-
/**
|
|
66
|
-
* Displays Alert as a Glue42 Notification
|
|
67
|
-
* @param alert Alert to display
|
|
68
|
-
*/
|
|
69
|
-
showNotificationForAlert(alert: AdaptableAlert): void;
|
|
70
|
-
/**
|
|
71
|
-
* Shows a notification in Glue42
|
|
72
|
-
* @param notification
|
|
73
|
-
*/
|
|
74
|
-
showNotification(notification: any): void;
|
|
75
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Glue42WebPluginOptions } from '../AdaptableOptions/Glue42WebPluginOptions';
|
|
2
|
-
/**
|
|
3
|
-
* Provides run-time access to the Glue42Web Plugin
|
|
4
|
-
*/
|
|
5
|
-
export interface Glue42WebApi {
|
|
6
|
-
/**
|
|
7
|
-
* Retrieves the Glue42WebPlugOptions provided in Glue42Web Plugin
|
|
8
|
-
*/
|
|
9
|
-
getPluginOptions(): Glue42WebPluginOptions;
|
|
10
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ConfigState } from './ConfigState';
|
|
2
|
-
import { AdaptableObject } from './Common/AdaptableObject';
|
|
3
|
-
import { BaseSchedule } from './Common/Schedule';
|
|
4
|
-
/**
|
|
5
|
-
* Internal State used by AdapTable for managing the Glue42 plugin
|
|
6
|
-
*/
|
|
7
|
-
export interface Glue42State extends ConfigState {
|
|
8
|
-
/**
|
|
9
|
-
* Message to show when Login Fails
|
|
10
|
-
*/
|
|
11
|
-
Glue42LoginErrorMessage?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Which Glue42 Report is currently live
|
|
14
|
-
*/
|
|
15
|
-
CurrentLiveGlue42Report?: Glue42Report;
|
|
16
|
-
/**
|
|
17
|
-
* Whether Glue42 is available
|
|
18
|
-
*/
|
|
19
|
-
IsGlue42Available?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Whether Glue42 is running
|
|
22
|
-
*/
|
|
23
|
-
IsGlue42Running?: boolean;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Glue42 report - currently just contains name of Report
|
|
27
|
-
*/
|
|
28
|
-
export interface Glue42Report extends AdaptableObject {
|
|
29
|
-
/**
|
|
30
|
-
* The Report's name (as exists in Export State)
|
|
31
|
-
*/
|
|
32
|
-
ReportName: string;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Defines Glue42 Scheduled Report; used in Schedule Module (where State is stored)
|
|
36
|
-
*/
|
|
37
|
-
export interface Glue42Schedule extends BaseSchedule {
|
|
38
|
-
/**
|
|
39
|
-
* The Glue42 Report which will be sent when the Schedule runs
|
|
40
|
-
*/
|
|
41
|
-
Glue42Report: Glue42Report;
|
|
42
|
-
/**
|
|
43
|
-
* Whether its a one-off or 'streaming' transmission
|
|
44
|
-
*/
|
|
45
|
-
Transmission: 'Snapshot' | 'Live Data';
|
|
46
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NotesListing = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const react_redux_1 = require("react-redux");
|
|
7
|
-
const rebass_1 = require("rebass");
|
|
8
|
-
const InfiniteTable_1 = require("../../components/InfiniteTable");
|
|
9
|
-
const NotesRedux_1 = require("../../Redux/ActionsReducers/NotesRedux");
|
|
10
|
-
const AdaptableContext_1 = require("../AdaptableContext");
|
|
11
|
-
const AdaptableButton_1 = require("../Components/AdaptableButton");
|
|
12
|
-
const tableDOMProps = {
|
|
13
|
-
style: {
|
|
14
|
-
height: '100%',
|
|
15
|
-
minWidth: '10rem',
|
|
16
|
-
minHeight: 600,
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
const NotesListing = () => {
|
|
20
|
-
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
21
|
-
const primaryKeyHeader = adaptable.api.columnApi.getFriendlyNameForColumnId(adaptable.api.columnApi.getPrimaryKeyColumn().columnId);
|
|
22
|
-
const allNotes = (0, react_redux_1.useSelector)((state) => (0, NotesRedux_1.GetNotesSelector)(state.Notes));
|
|
23
|
-
const columnsMap = React.useMemo(() => {
|
|
24
|
-
const columns = {
|
|
25
|
-
primaryKey: {
|
|
26
|
-
field: 'PrimaryKeyValue',
|
|
27
|
-
header: primaryKeyHeader,
|
|
28
|
-
},
|
|
29
|
-
column: {
|
|
30
|
-
field: 'ColumnId',
|
|
31
|
-
valueGetter: (params) => {
|
|
32
|
-
return adaptable.api.columnApi.getFriendlyNameForColumnId(params.data.ColumnId);
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
note: {
|
|
36
|
-
field: 'Value',
|
|
37
|
-
header: 'Note',
|
|
38
|
-
defaultEditable: true,
|
|
39
|
-
defaultFlex: 3,
|
|
40
|
-
},
|
|
41
|
-
timestamp: {
|
|
42
|
-
field: 'Timestamp',
|
|
43
|
-
valueGetter: (params) => {
|
|
44
|
-
return new Date(params.data.Timestamp).toDateString();
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
author: {
|
|
48
|
-
header: 'Author',
|
|
49
|
-
valueGetter: (params) => params.data.Author.UserName,
|
|
50
|
-
},
|
|
51
|
-
delete: {
|
|
52
|
-
defaultWidth: 50,
|
|
53
|
-
render: (params) => {
|
|
54
|
-
return (React.createElement(AdaptableButton_1.AdaptableButtonComponent, { variant: "text", icon: "delete", onClick: () => {
|
|
55
|
-
const note = adaptable.api.notesApi.getNoteByUuid(params.data.Uuid);
|
|
56
|
-
adaptable.api.notesApi.deleteNote(note);
|
|
57
|
-
} }));
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
};
|
|
61
|
-
return columns;
|
|
62
|
-
}, []);
|
|
63
|
-
return (React.createElement(rebass_1.Box, { p: 2, style: { height: '100%', width: '100%' } },
|
|
64
|
-
React.createElement(InfiniteTable_1.DataSource, { data: allNotes, primaryKey: "Uuid", onDataMutations: (params) => {
|
|
65
|
-
for (const mutation of params.mutations) {
|
|
66
|
-
const [uuid, changes] = mutation;
|
|
67
|
-
for (const change of changes) {
|
|
68
|
-
if (change.type === 'update') {
|
|
69
|
-
const data = change.data;
|
|
70
|
-
const prevNote = allNotes.find((x) => x.Uuid === uuid);
|
|
71
|
-
if (prevNote.Value !== data.Value) {
|
|
72
|
-
adaptable.api.notesApi.updateNoteText(data.Value, prevNote);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
} },
|
|
78
|
-
React.createElement(InfiniteTable_1.InfiniteTable, { columnTypes: {
|
|
79
|
-
default: {
|
|
80
|
-
align: 'start',
|
|
81
|
-
defaultFlex: 1,
|
|
82
|
-
sortable: false,
|
|
83
|
-
},
|
|
84
|
-
}, headerOptions: {
|
|
85
|
-
alwaysReserveSpaceForSortIcon: false,
|
|
86
|
-
}, rowHeight: 40, columnHeaderHeight: 65, domProps: tableDOMProps, columns: columnsMap }))));
|
|
87
|
-
};
|
|
88
|
-
exports.NotesListing = NotesListing;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Glue42Schedule, Report } from '../../../../types';
|
|
3
|
-
interface ScheduleSettingsGlue42Props {
|
|
4
|
-
glue42: Glue42Schedule;
|
|
5
|
-
allReports: Report[];
|
|
6
|
-
onChange: (iPushPull: Glue42Schedule) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const ScheduleSettingsGlue42: React.FunctionComponent<ScheduleSettingsGlue42Props>;
|
|
9
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ScheduleSettingsGlue42 = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const rebass_1 = require("rebass");
|
|
7
|
-
const Tabs_1 = require("../../../../components/Tabs");
|
|
8
|
-
const FormLayout_1 = tslib_1.__importStar(require("../../../../components/FormLayout"));
|
|
9
|
-
const DropdownButton_1 = tslib_1.__importDefault(require("../../../../components/DropdownButton"));
|
|
10
|
-
const ScheduleSettingsGlue42 = (props) => {
|
|
11
|
-
var _a, _b;
|
|
12
|
-
const reportOptions = props.allReports.map((report) => ({
|
|
13
|
-
label: report.Name,
|
|
14
|
-
value: report.Name,
|
|
15
|
-
onClick: () => props.onChange(Object.assign(Object.assign({}, props.glue42), { Glue42Report: Object.assign(Object.assign({}, props.glue42.Glue42Report), { ReportName: report.Name }) })),
|
|
16
|
-
}));
|
|
17
|
-
return (React.createElement(rebass_1.Box, { "data-name": "schedule-settings-glue42" },
|
|
18
|
-
React.createElement(Tabs_1.Tabs, { autoFocus: false },
|
|
19
|
-
React.createElement(Tabs_1.Tabs.Tab, null, "Glue42 Schedule Settings"),
|
|
20
|
-
React.createElement(Tabs_1.Tabs.Content, null,
|
|
21
|
-
React.createElement(FormLayout_1.default, null,
|
|
22
|
-
React.createElement(FormLayout_1.FormRow, { label: "Select Report" },
|
|
23
|
-
React.createElement(DropdownButton_1.default, { "data-name": "select-report", width: 300, disabled: props.allReports.length == 0, items: reportOptions }, ((_b = (_a = props === null || props === void 0 ? void 0 : props.glue42) === null || _a === void 0 ? void 0 : _a.Glue42Report) === null || _b === void 0 ? void 0 : _b.ReportName) || 'Select Report')))))));
|
|
24
|
-
};
|
|
25
|
-
exports.ScheduleSettingsGlue42 = ScheduleSettingsGlue42;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Theme, TypeOptions } from '../types';
|
|
3
|
-
export interface CloseButtonProps {
|
|
4
|
-
closeToast: (e: React.MouseEvent<HTMLElement>) => void;
|
|
5
|
-
type: TypeOptions;
|
|
6
|
-
ariaLabel?: string;
|
|
7
|
-
theme: Theme;
|
|
8
|
-
}
|
|
9
|
-
export declare function CloseButton({ closeToast, theme, ariaLabel }: CloseButtonProps): JSX.Element;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Theme, ToastProps, TypeOptions } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* Used when providing custom icon
|
|
5
|
-
*/
|
|
6
|
-
export interface IconProps {
|
|
7
|
-
theme: Theme;
|
|
8
|
-
type: TypeOptions;
|
|
9
|
-
}
|
|
10
|
-
export declare type BuiltInIconProps = React.SVGProps<SVGSVGElement> & IconProps;
|
|
11
|
-
declare function Warning(props: BuiltInIconProps): JSX.Element;
|
|
12
|
-
declare function Info(props: BuiltInIconProps): JSX.Element;
|
|
13
|
-
declare function Success(props: BuiltInIconProps): JSX.Element;
|
|
14
|
-
declare function Error(props: BuiltInIconProps): JSX.Element;
|
|
15
|
-
declare function Spinner(): JSX.Element;
|
|
16
|
-
export declare const Icons: {
|
|
17
|
-
info: typeof Info;
|
|
18
|
-
warning: typeof Warning;
|
|
19
|
-
success: typeof Success;
|
|
20
|
-
error: typeof Error;
|
|
21
|
-
spinner: typeof Spinner;
|
|
22
|
-
};
|
|
23
|
-
export declare function getIcon({ theme, type, isLoading, icon }: ToastProps): React.ReactNode;
|
|
24
|
-
export {};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TypeOptions, ToastClassName, Theme } from '../types';
|
|
3
|
-
export interface ProgressBarProps {
|
|
4
|
-
/**
|
|
5
|
-
* The animation delay which determine when to close the toast
|
|
6
|
-
*/
|
|
7
|
-
delay: number;
|
|
8
|
-
/**
|
|
9
|
-
* Whether or not the animation is running or paused
|
|
10
|
-
*/
|
|
11
|
-
isRunning: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Func to close the current toast
|
|
14
|
-
*/
|
|
15
|
-
closeToast: () => void;
|
|
16
|
-
/**
|
|
17
|
-
* Optional type : info, success ...
|
|
18
|
-
*/
|
|
19
|
-
type: TypeOptions;
|
|
20
|
-
/**
|
|
21
|
-
* The theme that is currently used
|
|
22
|
-
*/
|
|
23
|
-
theme: Theme;
|
|
24
|
-
/**
|
|
25
|
-
* Hide or not the progress bar
|
|
26
|
-
*/
|
|
27
|
-
hide?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Optionnal className
|
|
30
|
-
*/
|
|
31
|
-
className?: ToastClassName;
|
|
32
|
-
/**
|
|
33
|
-
* Optionnal inline style
|
|
34
|
-
*/
|
|
35
|
-
style?: React.CSSProperties;
|
|
36
|
-
/**
|
|
37
|
-
* Tell wether or not controlled progress bar is used
|
|
38
|
-
*/
|
|
39
|
-
controlledProgress?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Controlled progress value
|
|
42
|
-
*/
|
|
43
|
-
progress?: number | string;
|
|
44
|
-
/**
|
|
45
|
-
* Support rtl content
|
|
46
|
-
*/
|
|
47
|
-
rtl?: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Tell if the component is visible on screen or not
|
|
50
|
-
*/
|
|
51
|
-
isIn?: boolean;
|
|
52
|
-
}
|
|
53
|
-
export declare function ProgressBar({ delay, isRunning, closeToast, type, hide, className, style: userStyle, controlledProgress, progress, rtl, isIn, theme }: ProgressBarProps): JSX.Element;
|
|
54
|
-
export declare namespace ProgressBar {
|
|
55
|
-
var defaultProps: {
|
|
56
|
-
type: TypeOptions;
|
|
57
|
-
hide: boolean;
|
|
58
|
-
};
|
|
59
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const Bounce: ({ children, position, preventExitTransition, done, nodeRef, isIn }: import("..").ToastTransitionProps) => JSX.Element;
|
|
3
|
-
declare const Slide: ({ children, position, preventExitTransition, done, nodeRef, isIn }: import("..").ToastTransitionProps) => JSX.Element;
|
|
4
|
-
declare const Zoom: ({ children, position, preventExitTransition, done, nodeRef, isIn }: import("..").ToastTransitionProps) => JSX.Element;
|
|
5
|
-
declare const Flip: ({ children, position, preventExitTransition, done, nodeRef, isIn }: import("..").ToastTransitionProps) => JSX.Element;
|
|
6
|
-
export { Bounce, Slide, Zoom, Flip };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Id, ToastContent, ClearWaitingQueueParams, NotValidatedToastProps, ToastItem } from '../types';
|
|
3
|
-
import { ContainerInstance } from '../hooks';
|
|
4
|
-
export declare const enum Event {
|
|
5
|
-
Show = 0,
|
|
6
|
-
Clear = 1,
|
|
7
|
-
DidMount = 2,
|
|
8
|
-
WillUnmount = 3,
|
|
9
|
-
Change = 4,
|
|
10
|
-
ClearWaitingQueue = 5
|
|
11
|
-
}
|
|
12
|
-
declare type OnShowCallback = (content: ToastContent, options: NotValidatedToastProps) => void;
|
|
13
|
-
declare type OnClearCallback = (id?: Id) => void;
|
|
14
|
-
declare type OnClearWaitingQueue = (params: ClearWaitingQueueParams) => void;
|
|
15
|
-
declare type OnDidMountCallback = (containerInstance: ContainerInstance) => void;
|
|
16
|
-
declare type OnWillUnmountCallback = OnDidMountCallback;
|
|
17
|
-
export declare type OnChangeCallback = (toast: ToastItem) => void;
|
|
18
|
-
declare type Callback = OnShowCallback | OnClearCallback | OnClearWaitingQueue | OnDidMountCallback | OnWillUnmountCallback | OnChangeCallback;
|
|
19
|
-
declare type TimeoutId = ReturnType<typeof setTimeout>;
|
|
20
|
-
export interface EventManager {
|
|
21
|
-
list: Map<Event, Callback[]>;
|
|
22
|
-
emitQueue: Map<Event, TimeoutId[]>;
|
|
23
|
-
on(event: Event.Show, callback: OnShowCallback): EventManager;
|
|
24
|
-
on(event: Event.Clear, callback: OnClearCallback): EventManager;
|
|
25
|
-
on(event: Event.ClearWaitingQueue, callback: OnClearWaitingQueue): EventManager;
|
|
26
|
-
on(event: Event.DidMount, callback: OnDidMountCallback): EventManager;
|
|
27
|
-
on(event: Event.WillUnmount, callback: OnWillUnmountCallback): EventManager;
|
|
28
|
-
on(event: Event.Change, callback: OnChangeCallback): EventManager;
|
|
29
|
-
off(event: Event, callback?: Callback): EventManager;
|
|
30
|
-
cancelEmit(event: Event): EventManager;
|
|
31
|
-
emit(event: Event.Show, content: React.ReactNode, options: NotValidatedToastProps): void;
|
|
32
|
-
emit(event: Event.Clear, id?: string | number): void;
|
|
33
|
-
emit(event: Event.ClearWaitingQueue, params: ClearWaitingQueueParams): void;
|
|
34
|
-
emit(event: Event.DidMount, containerInstance: ContainerInstance): void;
|
|
35
|
-
emit(event: Event.WillUnmount, containerInstance: ContainerInstance): void;
|
|
36
|
-
emit(event: Event.Change, data: ToastItem): void;
|
|
37
|
-
}
|
|
38
|
-
export declare const eventManager: EventManager;
|
|
39
|
-
export {};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { OnChangeCallback } from './eventManager';
|
|
2
|
-
import { ToastContent, ToastOptions, Id, UpdateOptions, ClearWaitingQueueParams, TypeOptions } from '../types';
|
|
3
|
-
declare function toast(content: ToastContent, options?: ToastOptions): Id;
|
|
4
|
-
declare namespace toast {
|
|
5
|
-
var loading: (content: ToastContent<unknown>, options?: ToastOptions<{}> | undefined) => Id;
|
|
6
|
-
var promise: typeof handlePromise;
|
|
7
|
-
var success: (content: ToastContent<unknown>, options?: ToastOptions<{}> | undefined) => Id;
|
|
8
|
-
var info: (content: ToastContent<unknown>, options?: ToastOptions<{}> | undefined) => Id;
|
|
9
|
-
var error: (content: ToastContent<unknown>, options?: ToastOptions<{}> | undefined) => Id;
|
|
10
|
-
var warning: (content: ToastContent<unknown>, options?: ToastOptions<{}> | undefined) => Id;
|
|
11
|
-
var warn: (content: ToastContent<unknown>, options?: ToastOptions<{}> | undefined) => Id;
|
|
12
|
-
var dark: (content: ToastContent<unknown>, options?: ToastOptions<{}> | undefined) => Id;
|
|
13
|
-
var dismiss: (id?: Id | undefined) => void;
|
|
14
|
-
var clearWaitingQueue: (params?: ClearWaitingQueueParams) => void;
|
|
15
|
-
var isActive: (id: Id) => boolean;
|
|
16
|
-
var update: (toastId: Id, options?: UpdateOptions<unknown>) => void;
|
|
17
|
-
var done: (id: Id) => void;
|
|
18
|
-
var onChange: (callback: OnChangeCallback) => () => void;
|
|
19
|
-
var POSITION: {
|
|
20
|
-
TOP_LEFT: import("../types").ToastPosition;
|
|
21
|
-
TOP_RIGHT: import("../types").ToastPosition;
|
|
22
|
-
TOP_CENTER: import("../types").ToastPosition;
|
|
23
|
-
BOTTOM_LEFT: import("../types").ToastPosition;
|
|
24
|
-
BOTTOM_RIGHT: import("../types").ToastPosition;
|
|
25
|
-
BOTTOM_CENTER: import("../types").ToastPosition;
|
|
26
|
-
};
|
|
27
|
-
var TYPE: {
|
|
28
|
-
INFO: TypeOptions;
|
|
29
|
-
SUCCESS: TypeOptions;
|
|
30
|
-
WARNING: TypeOptions;
|
|
31
|
-
ERROR: TypeOptions;
|
|
32
|
-
DEFAULT: TypeOptions;
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export interface ToastPromiseParams<T = unknown> {
|
|
36
|
-
pending?: string | UpdateOptions<void>;
|
|
37
|
-
success?: string | UpdateOptions<T>;
|
|
38
|
-
error?: string | UpdateOptions<any>;
|
|
39
|
-
}
|
|
40
|
-
declare function handlePromise<T = unknown>(promise: Promise<T> | (() => Promise<T>), { pending, error, success }: ToastPromiseParams<T>, options?: ToastOptions): Promise<T>;
|
|
41
|
-
export { toast };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { DOMAttributes } from 'react';
|
|
2
|
-
import { ToastProps } from '../types';
|
|
3
|
-
export declare function useToast(props: ToastProps): {
|
|
4
|
-
playToast: () => void;
|
|
5
|
-
pauseToast: () => void;
|
|
6
|
-
isRunning: boolean;
|
|
7
|
-
preventExitTransition: boolean;
|
|
8
|
-
toastRef: import("react").RefObject<HTMLDivElement>;
|
|
9
|
-
eventHandlers: DOMAttributes<HTMLElement>;
|
|
10
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Id, ToastContainerProps, ToastProps, ToastContent, Toast, ToastPosition } from '../types';
|
|
3
|
-
interface QueuedToast {
|
|
4
|
-
toastContent: ToastContent;
|
|
5
|
-
toastProps: ToastProps;
|
|
6
|
-
staleId?: Id;
|
|
7
|
-
}
|
|
8
|
-
export interface ContainerInstance {
|
|
9
|
-
toastKey: number;
|
|
10
|
-
displayedToast: number;
|
|
11
|
-
props: ToastContainerProps;
|
|
12
|
-
containerId?: Id | null;
|
|
13
|
-
isToastActive: (toastId: Id) => boolean;
|
|
14
|
-
getToast: (id: Id) => Toast | null | undefined;
|
|
15
|
-
queue: QueuedToast[];
|
|
16
|
-
count: number;
|
|
17
|
-
}
|
|
18
|
-
export declare function useToastContainer(props: ToastContainerProps): {
|
|
19
|
-
getToastToRender: <T>(cb: (position: ToastPosition, toastList: Toast[]) => T) => T[];
|
|
20
|
-
containerRef: import("react").MutableRefObject<null>;
|
|
21
|
-
isToastActive: (id: Id) => boolean;
|
|
22
|
-
};
|
|
23
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { useToastContainer, useToast } from './hooks';
|
|
2
|
-
export { cssTransition, collapseToast } from './utils';
|
|
3
|
-
export { ToastContainer, Bounce, Flip, Slide, Zoom, Icons, IconProps, CloseButtonProps } from './components';
|
|
4
|
-
export { toast, ToastPromiseParams } from './core';
|
|
5
|
-
export { TypeOptions, Theme, ToastPosition, ToastContentProps, ToastContent, ToastTransition, ToastClassName, ClearWaitingQueueParams, DraggableDirection, ToastOptions, UpdateOptions, ToastContainerProps, ToastTransitionProps, Id, ToastItem } from './types';
|