@cxbox-ui/core 1.34.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/CONTRIBUTING.md +124 -0
- package/LICENSE +201 -0
- package/Provider.d.ts +63 -0
- package/README.md +82 -0
- package/actions/actions-utils.d.ts +48 -0
- package/actions/actions.d.ts +1132 -0
- package/actions/index.d.ts +2 -0
- package/api/api.d.ts +148 -0
- package/api/index.d.ts +1 -0
- package/assets/i18n/__tests__/getTextAssets.d.ts +1 -0
- package/assets/i18n/index.d.ts +25 -0
- package/components/ColumnTitle/ColumnFilter.d.ts +47 -0
- package/components/ColumnTitle/ColumnSort.d.ts +26 -0
- package/components/ColumnTitle/ColumnTitle.d.ts +31 -0
- package/components/ColumnTitle/__tests__/ColumnFilter.test.d.ts +1 -0
- package/components/ColumnTitle/__tests__/ColumnSort.test.d.ts +1 -0
- package/components/ColumnTitle/__tests__/ColumnTitle.test.d.ts +1 -0
- package/components/DebugPanel/DebugPanel.d.ts +7 -0
- package/components/DebugPanel/__tests__/DebugPanel.test.d.ts +1 -0
- package/components/DebugPanel/components/FormattedJSON.d.ts +6 -0
- package/components/DebugPanel/components/InfoLabel.d.ts +7 -0
- package/components/DebugPanel/components/ViewInfoLabel.d.ts +3 -0
- package/components/DebugPanel/components/WidgetInfoLabel.d.ts +5 -0
- package/components/DebugPanel/components/__tests__/FormattedJSON.test.d.ts +1 -0
- package/components/DebugPanel/components/__tests__/InfoLabel.test.d.ts +1 -0
- package/components/DebugPanel/components/__tests__/ViewInfoLabel.test.d.ts +1 -0
- package/components/DebugPanel/components/__tests__/WidgetInfoLabel.test.d.ts +1 -0
- package/components/DevToolsPanel/DevToolsPanel.d.ts +10 -0
- package/components/DevToolsPanel/DevToolsPanel.test.d.ts +1 -0
- package/components/DevToolsPanel/components/DebugModeButton.d.ts +9 -0
- package/components/DevToolsPanel/components/RefreshMetaButton.d.ts +9 -0
- package/components/DevToolsPanel/components/__tests__/DebugModeButton.test.d.ts +1 -0
- package/components/DevToolsPanel/components/__tests__/RefreshMetaButton.test.d.ts +1 -0
- package/components/Field/Field.d.ts +72 -0
- package/components/Field/Field.test.d.ts +1 -0
- package/components/FileUpload/FileUpload.d.ts +32 -0
- package/components/FileUploadPopup/FileUploadPopup.d.ts +10 -0
- package/components/FilterPopup/FilterPopup.d.ts +26 -0
- package/components/FilterPopup/FilterPopup.test.d.ts +1 -0
- package/components/FullHierarchyTable/FullHierarchyTable.d.ts +52 -0
- package/components/FullHierarchyTable/FullHierarchyTable.test.d.ts +1 -0
- package/components/FullHierarchyTable/utils/hierarchySearchCache.d.ts +37 -0
- package/components/FullHierarchyTable/utils/hierarchySearchCache.test.d.ts +1 -0
- package/components/FullHierarchyTable/utils/useExpandedKeys.d.ts +19 -0
- package/components/FullHierarchyTable/utils/useHierarchyCache.d.ts +12 -0
- package/components/HierarchyTable/HierarchyTable.d.ts +47 -0
- package/components/HierarchyTable/HierarchyTable.test.d.ts +1 -0
- package/components/InlinePickList/InlinePickList.d.ts +23 -0
- package/components/ModalInvoke/ModalInvoke.d.ts +18 -0
- package/components/ModalInvoke/ModalInvoke.test.d.ts +1 -0
- package/components/Multivalue/MultiValueListRecord.d.ts +15 -0
- package/components/Multivalue/MultivalueField.d.ts +31 -0
- package/components/Multivalue/MultivalueField.test.d.ts +1 -0
- package/components/PickListField/PickListField.d.ts +25 -0
- package/components/RowOperations/RowOperationsButton.d.ts +42 -0
- package/components/RowOperations/RowOperationsMenu.d.ts +29 -0
- package/components/RowOperations/__tests__/RowOperationsButton.test.d.ts +1 -0
- package/components/RowOperations/__tests__/RowOperationsMenu.test.d.ts +1 -0
- package/components/SameBcHierarchyTable/SameBcHierarchyTable.d.ts +40 -0
- package/components/TemplatedTitle/TemplatedTitle.d.ts +20 -0
- package/components/View/View.d.ts +26 -0
- package/components/View/__tests__/View.test.d.ts +1 -0
- package/components/Widget/Widget.d.ts +28 -0
- package/components/Widget/Widget.test.d.ts +1 -0
- package/components/WidgetErrorBoundary/WidgetErrorBoundary.d.ts +20 -0
- package/components/WidgetErrorBoundary/WidgetErrorBoundary.test.d.ts +1 -0
- package/components/WidgetErrorBoundary/components/RefreshButton.d.ts +4 -0
- package/components/WidgetErrorBoundary/components/RefreshButton.test.d.ts +1 -0
- package/components/index.d.ts +44 -0
- package/components/ui/ActionLink/ActionLink.d.ts +11 -0
- package/components/ui/CheckboxFilter/CheckboxFilter.d.ts +21 -0
- package/components/ui/CheckboxFilter/CheckboxFilter.test.d.ts +1 -0
- package/components/ui/CheckboxPicker/CheckboxPicker.d.ts +21 -0
- package/components/ui/CopyableText/CopyableText.d.ts +7 -0
- package/components/ui/CopyableText/__tests__/CopyableText.test.d.ts +1 -0
- package/components/ui/DashboardLayout/DashboardLayout.d.ts +21 -0
- package/components/ui/DashboardLayout/__tests__/DashboardLayout.test.d.ts +1 -0
- package/components/ui/DatePickerField/DatePickerField.d.ts +25 -0
- package/components/ui/Dictionary/Dictionary.d.ts +30 -0
- package/components/ui/Dictionary/Dictionary.test.d.ts +1 -0
- package/components/ui/ErrorPopup/ErrorPopup.d.ts +18 -0
- package/components/ui/ErrorPopup/ErrorPopup.test.d.ts +1 -0
- package/components/ui/FilterField/FilterField.d.ts +25 -0
- package/components/ui/FilterField/FilterField.test.d.ts +1 -0
- package/components/ui/FilterField/components/RangePicker.d.ts +11 -0
- package/components/ui/FilterField/components/RangePicker.test.d.ts +1 -0
- package/components/ui/HistoryField/HistoryField.d.ts +15 -0
- package/components/ui/InteractiveInput/InteractiveInput.d.ts +28 -0
- package/components/ui/Link/Link.d.ts +13 -0
- package/components/ui/MultiField/MultiField.d.ts +16 -0
- package/components/ui/Multivalue/MultivalueHover.d.ts +15 -0
- package/components/ui/Multivalue/MultivalueList.d.ts +17 -0
- package/components/ui/Multivalue/MultivalueTag.d.ts +24 -0
- package/components/ui/NavigationTabs/NavigationTabs.d.ts +7 -0
- package/components/ui/NavigationTabs/NavigationTabs.test.d.ts +1 -0
- package/components/ui/NumberInput/NumberInput.d.ts +17 -0
- package/components/ui/NumberInput/NumberInput.test.d.ts +1 -0
- package/components/ui/NumberInput/formaters.d.ts +31 -0
- package/components/ui/Pagination/Pagination.d.ts +51 -0
- package/components/ui/Pagination/Pagination.test.d.ts +1 -0
- package/components/ui/PickInput/PickInput.d.ts +15 -0
- package/components/ui/Popup/Popup.d.ts +29 -0
- package/components/ui/Popup/Popup.test.d.ts +1 -0
- package/components/ui/Popup/PopupFooter.d.ts +16 -0
- package/components/ui/RadioButton/RadioButton.d.ts +16 -0
- package/components/ui/RadioButton/RadioButton.test.d.ts +1 -0
- package/components/ui/ReadOnlyField/ReadOnlyField.d.ts +22 -0
- package/components/ui/SearchHightlight/SearchHightlight.d.ts +20 -0
- package/components/ui/Select/Select.d.ts +26 -0
- package/components/ui/TextArea/TextArea.d.ts +24 -0
- package/components/ui/TextArea/TextArea.test.d.ts +1 -0
- package/components/ui/TreeVirtualized/TreeVirtualized.d.ts +63 -0
- package/components/ui/TreeVirtualized/TreeVirtualizedNode.d.ts +67 -0
- package/components/ui/TreeVirtualized/__tests__/TreeVirtualized.test.d.ts +1 -0
- package/components/ui/TreeVirtualized/__tests__/TreeVirtualizedNode.test.d.ts +1 -0
- package/components/ui/TreeVirtualized/__tests__/useMatchingNodes.test.d.ts +1 -0
- package/components/ui/TreeVirtualized/__tests__/useSearchResult.test.d.ts +1 -0
- package/components/ui/TreeVirtualized/useMatchingNodes.d.ts +23 -0
- package/components/ui/TreeVirtualized/useSearchResult.d.ts +27 -0
- package/components/widgets/AssocListPopup/AssocListPopup.d.ts +58 -0
- package/components/widgets/AssocListPopup/AssocListPopup.test.d.ts +1 -0
- package/components/widgets/AssocListPopup/AssocTable.d.ts +35 -0
- package/components/widgets/AssocListPopup/AssocTable.test.d.ts +1 -0
- package/components/widgets/FlatTree/FlatTree.d.ts +53 -0
- package/components/widgets/FlatTree/FlatTreePopup.d.ts +31 -0
- package/components/widgets/FlatTree/__tests__/FlatTree.test.d.ts +1 -0
- package/components/widgets/FlatTree/__tests__/FlatTreePopup.test.d.ts +1 -0
- package/components/widgets/FlatTree/useMultipleSelect.d.ts +11 -0
- package/components/widgets/FlatTree/useSingleSelect.d.ts +10 -0
- package/components/widgets/FormWidget/FormWidget.d.ts +23 -0
- package/components/widgets/FormWidget/FormWidget.test.d.ts +1 -0
- package/components/widgets/InfoWidget/InfoWidget.d.ts +19 -0
- package/components/widgets/InfoWidget/__test__/InfoWidget.test.d.ts +1 -0
- package/components/widgets/InfoWidget/components/InfoCell.d.ts +15 -0
- package/components/widgets/InfoWidget/components/InfoRow.d.ts +16 -0
- package/components/widgets/InfoWidget/components/InfoValueWrapper.d.ts +10 -0
- package/components/widgets/InfoWidget/components/__tests__/InfoCell.test.d.ts +1 -0
- package/components/widgets/InfoWidget/components/__tests__/InfoRow.test.d.ts +1 -0
- package/components/widgets/InfoWidget/components/__tests__/InfoValueWrapper.test.d.ts +1 -0
- package/components/widgets/NavigationTabsWidget/NavigationTabsWidget.d.ts +8 -0
- package/components/widgets/NavigationTabsWidget/NavigationTabsWidget.test.d.ts +1 -0
- package/components/widgets/PickListPopup/PickListPopup.d.ts +43 -0
- package/components/widgets/PickListPopup/PickListPopup.test.d.ts +1 -0
- package/components/widgets/TableWidget/TableWidget.d.ts +88 -0
- package/components/widgets/TableWidget/TableWidget.test.d.ts +1 -0
- package/components/widgets/TextWidget/TextWidget.d.ts +15 -0
- package/components/widgets/TextWidget/TextWidget.test.d.ts +1 -0
- package/components/widgets/ViewNavigationWidget/ViewNavigationWidget.d.ts +6 -0
- package/components/widgets/ViewNavigationWidget/ViewNavigationWidget.test.d.ts +1 -0
- package/components/widgets/index.d.ts +4 -0
- package/cxbox-ui-core.js +148 -0
- package/cxbox-ui-core.js.map +1 -0
- package/epics/data/__tests__/bcCancelCreateDataEpic.test.d.ts +1 -0
- package/epics/data/__tests__/bcFetchData.test.d.ts +1 -0
- package/epics/data/__tests__/bcFetchRowMetaRequest.test.d.ts +1 -0
- package/epics/data/__tests__/bcNewDataEpic.test.d.ts +1 -0
- package/epics/data/__tests__/bcSaveData.test.d.ts +1 -0
- package/epics/data/__tests__/bcSelectDepthRecord.test.d.ts +1 -0
- package/epics/data/__tests__/removeMultivalueTag.test.d.ts +1 -0
- package/epics/data/__tests__/saveAssociationsActive.test.d.ts +1 -0
- package/epics/data/__tests__/selectView.test.d.ts +1 -0
- package/epics/data/bcCancelCreateDataEpic.d.ts +28 -0
- package/epics/data/bcFetchData.d.ts +21 -0
- package/epics/data/bcFetchRowMetaRequest.d.ts +50 -0
- package/epics/data/bcNewDataEpic.d.ts +37 -0
- package/epics/data/bcSaveData.d.ts +58 -0
- package/epics/data/bcSelectDepthRecord.d.ts +21 -0
- package/epics/data/removeMultivalueTag.d.ts +45 -0
- package/epics/data/saveAssociationsActive.d.ts +7 -0
- package/epics/data/selectView.d.ts +36 -0
- package/epics/data.d.ts +105 -0
- package/epics/index.d.ts +74 -0
- package/epics/router/__tests__/changeLocation.test.d.ts +1 -0
- package/epics/router/__tests__/drilldown.test.d.ts +1 -0
- package/epics/router/__tests__/handleRouter.test.d.ts +1 -0
- package/epics/router/__tests__/loginDone.test.d.ts +1 -0
- package/epics/router/__tests__/selectScreen.test.d.ts +1 -0
- package/epics/router/__tests__/selectScreenFail.test.d.ts +1 -0
- package/epics/router/__tests__/selectView.test.d.ts +1 -0
- package/epics/router/__tests__/selectViewFail.test.d.ts +1 -0
- package/epics/router/__tests__/userDrillDown.test.d.ts +1 -0
- package/epics/router/changeLocation.d.ts +11 -0
- package/epics/router/drilldown.d.ts +12 -0
- package/epics/router/handleRouter.d.ts +17 -0
- package/epics/router/loginDone.d.ts +20 -0
- package/epics/router/selectScreen.d.ts +19 -0
- package/epics/router/selectScreenFail.d.ts +17 -0
- package/epics/router/selectView.d.ts +19 -0
- package/epics/router/selectViewFail.d.ts +17 -0
- package/epics/router/userDrillDown.d.ts +29 -0
- package/epics/router.d.ts +11 -0
- package/epics/screen/__tests__/apiError.test.d.ts +1 -0
- package/epics/screen/__tests__/httpError401.test.d.ts +1 -0
- package/epics/screen/__tests__/httpError409.test.d.ts +1 -0
- package/epics/screen/__tests__/httpError418.test.d.ts +1 -0
- package/epics/screen/__tests__/httpError500.test.d.ts +1 -0
- package/epics/screen/__tests__/httpErrorDefault.test.d.ts +1 -0
- package/epics/screen/apiError.d.ts +13 -0
- package/epics/screen/httpError401.d.ts +12 -0
- package/epics/screen/httpError409.d.ts +12 -0
- package/epics/screen/httpError418.d.ts +12 -0
- package/epics/screen/httpError500.d.ts +12 -0
- package/epics/screen/httpErrorDefault.d.ts +14 -0
- package/epics/screen/processPostInvoke.d.ts +12 -0
- package/epics/screen.d.ts +35 -0
- package/epics/session/__tests__/loginByAnotherRoleEpic.test.d.ts +1 -0
- package/epics/session/__tests__/loginDone.test.d.ts +1 -0
- package/epics/session/__tests__/refreshMeta.test.d.ts +1 -0
- package/epics/session/__tests__/refreshMetaAndReloadPage.test.d.ts +1 -0
- package/epics/session/__tests__/switchRole.test.d.ts +1 -0
- package/epics/session/loginByAnotherRole.d.ts +27 -0
- package/epics/session/loginDone.d.ts +10 -0
- package/epics/session/refreshMeta.d.ts +9 -0
- package/epics/session/refreshMetaAndReloadPage.d.ts +2 -0
- package/epics/session/switchRole.d.ts +9 -0
- package/epics/session.d.ts +7 -0
- package/epics/utils.d.ts +4 -0
- package/epics/view/__tests__/fileUploadConfirm.test.d.ts +1 -0
- package/epics/view/__tests__/sendOperation.test.d.ts +1 -0
- package/epics/view/__tests__/sendOperationAssociate.test.d.ts +1 -0
- package/epics/view/__tests__/showAssocPopup.test.d.ts +1 -0
- package/epics/view/__tests__/showFileUploadPopup.test.d.ts +1 -0
- package/epics/view/fileUploadConfirm.d.ts +31 -0
- package/epics/view/sendOperation.d.ts +24 -0
- package/epics/view/sendOperationAssociate.d.ts +34 -0
- package/epics/view/showAssocPopup.d.ts +12 -0
- package/epics/view/showFileUploadPopup.d.ts +19 -0
- package/epics/view.d.ts +57 -0
- package/hooks/__tests__/useRowMenu.test.d.ts +1 -0
- package/hooks/__tests__/useViewTabs.test.d.ts +1 -0
- package/hooks/__tests__/useWidgetOperations.test.d.ts +1 -0
- package/hooks/index.d.ts +7 -0
- package/hooks/useAssocRecords.d.ts +11 -0
- package/hooks/useDebounce.d.ts +8 -0
- package/hooks/useDrillDownUrl.d.ts +10 -0
- package/hooks/useFlatFormFields.d.ts +9 -0
- package/hooks/useRowMenu.d.ts +42 -0
- package/hooks/useViewTabs.d.ts +13 -0
- package/hooks/useWidgetFilter.d.ts +15 -0
- package/hooks/useWidgetOperations.d.ts +34 -0
- package/imports/i18n.d.ts +8 -0
- package/imports/rxjs.d.ts +19 -0
- package/imports/shim.d.ts +6 -0
- package/index.d.ts +135 -0
- package/interfaces/bc.d.ts +78 -0
- package/interfaces/customEpics.d.ts +55 -0
- package/interfaces/customMiddlewares.d.ts +35 -0
- package/interfaces/data.d.ts +48 -0
- package/interfaces/filters.d.ts +32 -0
- package/interfaces/filters.js +2 -0
- package/interfaces/filters.js.map +1 -0
- package/interfaces/index.d.ts +22 -0
- package/interfaces/navigation.d.ts +48 -0
- package/interfaces/objectMap.d.ts +35 -0
- package/interfaces/objectMap.js +2 -0
- package/interfaces/objectMap.js.map +1 -0
- package/interfaces/operation.d.ts +330 -0
- package/interfaces/operation.js +2 -0
- package/interfaces/operation.js.map +1 -0
- package/interfaces/router.d.ts +16 -0
- package/interfaces/router.js +2 -0
- package/interfaces/router.js.map +1 -0
- package/interfaces/rowMeta.d.ts +74 -0
- package/interfaces/screen.d.ts +28 -0
- package/interfaces/session.d.ts +62 -0
- package/interfaces/store.d.ts +56 -0
- package/interfaces/tree.d.ts +66 -0
- package/interfaces/view.d.ts +202 -0
- package/interfaces/view.js +2 -0
- package/interfaces/view.js.map +1 -0
- package/interfaces/widget.d.ts +208 -0
- package/interfaces/widget.js +2 -0
- package/interfaces/widget.js.map +1 -0
- package/middlewares/__tests__/autosaveMiddleware.test.d.ts +1 -0
- package/middlewares/__tests__/preInvokeMiddleware.test.d.ts +1 -0
- package/middlewares/__tests__/requiredFieldsMiddleware.test.d.ts +1 -0
- package/middlewares/actionsHistoryMiddleware.d.ts +3 -0
- package/middlewares/autosaveMiddleware.d.ts +6 -0
- package/middlewares/index.d.ts +6 -0
- package/middlewares/preInvokeMiddleware.d.ts +8 -0
- package/middlewares/requiredFieldsMiddleware.d.ts +35 -0
- package/mocks/data/widgetMeta.d.ts +10 -0
- package/package.json +117 -0
- package/reducers/__tests__/data.test.d.ts +1 -0
- package/reducers/__tests__/forceActiveField.test.d.ts +1 -0
- package/reducers/__tests__/screen/bcAddFilter.test.d.ts +1 -0
- package/reducers/__tests__/session.test.d.ts +1 -0
- package/reducers/__tests__/view.test.d.ts +1 -0
- package/reducers/data.d.ts +13 -0
- package/reducers/depthData.d.ts +7 -0
- package/reducers/index.d.ts +3 -0
- package/reducers/router.d.ts +30 -0
- package/reducers/screen.d.ts +16 -0
- package/reducers/session.d.ts +15 -0
- package/reducers/view.d.ts +16 -0
- package/tests/assetsMock.d.ts +0 -0
- package/tests/mockStore.d.ts +6 -0
- package/tests/setup.d.ts +1 -0
- package/tests/testEpic.d.ts +14 -0
- package/utils/__tests__/autosave.test.d.ts +1 -0
- package/utils/__tests__/bc.test.d.ts +1 -0
- package/utils/__tests__/breadthFirst.test.d.ts +1 -0
- package/utils/__tests__/cancelRequestEpic.test.d.ts +1 -0
- package/utils/__tests__/combineEpics.test.d.ts +1 -0
- package/utils/__tests__/combineMiddlewares.test.d.ts +1 -0
- package/utils/__tests__/configureStore.test.d.ts +1 -0
- package/utils/__tests__/extendPopupWidgetTypes.test.d.ts +1 -0
- package/utils/__tests__/filters.test.d.ts +1 -0
- package/utils/__tests__/history.test.d.ts +1 -0
- package/utils/__tests__/notifications.test.d.ts +1 -0
- package/utils/__tests__/operations.test.d.ts +1 -0
- package/utils/__tests__/tree.test.d.ts +1 -0
- package/utils/__tests__/viewTabs.test.d.ts +1 -0
- package/utils/actionsHistory.d.ts +2 -0
- package/utils/api.d.ts +92 -0
- package/utils/autosave.d.ts +26 -0
- package/utils/bc.d.ts +27 -0
- package/utils/breadthFirst.d.ts +21 -0
- package/utils/cancelRequestEpic.d.ts +16 -0
- package/utils/combineEpics.d.ts +13 -0
- package/utils/combineMiddlewares.d.ts +3 -0
- package/utils/configureStore.d.ts +15 -0
- package/utils/exportState.d.ts +3 -0
- package/utils/extendPopupWidgetTypes.d.ts +8 -0
- package/utils/filters.d.ts +64 -0
- package/utils/hierarchy.d.ts +17 -0
- package/utils/highlightJson.d.ts +12 -0
- package/utils/history.d.ts +51 -0
- package/utils/index.d.ts +6 -0
- package/utils/notifications.d.ts +11 -0
- package/utils/operations.d.ts +21 -0
- package/utils/redux.d.ts +49 -0
- package/utils/strings.d.ts +43 -0
- package/utils/tree.d.ts +43 -0
- package/utils/viewTabs.d.ts +20 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MultivalueSingleValue } from '../../../interfaces/data';
|
|
3
|
+
import { BaseFieldProps } from '../../Field/Field';
|
|
4
|
+
export interface DictionaryProps extends BaseFieldProps {
|
|
5
|
+
value?: MultivalueSingleValue[] | string | null;
|
|
6
|
+
onChange?: (value: MultivalueSingleValue[] | string) => void;
|
|
7
|
+
values: Array<{
|
|
8
|
+
value: string;
|
|
9
|
+
icon?: string;
|
|
10
|
+
}>;
|
|
11
|
+
fieldName: string;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
|
+
metaIcon?: JSX.Element;
|
|
15
|
+
valueIcon?: string;
|
|
16
|
+
popupContainer?: HTMLElement;
|
|
17
|
+
multiple?: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Returns Icon component
|
|
21
|
+
*
|
|
22
|
+
* @param params Contains `type` and `color`
|
|
23
|
+
* @param extraStyleClasses extra css classes
|
|
24
|
+
*/
|
|
25
|
+
export declare function getIconByParams(params: string, extraStyleClasses?: string): JSX.Element;
|
|
26
|
+
/**
|
|
27
|
+
* @category Components
|
|
28
|
+
*/
|
|
29
|
+
declare const MemoizedDictionary: React.NamedExoticComponent<DictionaryProps>;
|
|
30
|
+
export default MemoizedDictionary;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
import { ApplicationError } from '../../../interfaces/view';
|
|
3
|
+
export interface ErrorPopupOwnProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
error: ApplicationError;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
}
|
|
9
|
+
interface ErrorPopupProps extends ErrorPopupOwnProps {
|
|
10
|
+
exportState: () => void;
|
|
11
|
+
exportStateEnabled: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const ErrorPopup: FunctionComponent<ErrorPopupProps>;
|
|
14
|
+
/**
|
|
15
|
+
* @category Components
|
|
16
|
+
*/
|
|
17
|
+
declare const MemoizedErrorPopup: import("react-redux").ConnectedComponent<React.FunctionComponent<ErrorPopupProps>, Pick<ErrorPopupProps, "title" | "className" | "error" | "onClose">>;
|
|
18
|
+
export default MemoizedErrorPopup;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Decides what control will be used for specific field type
|
|
3
|
+
*/
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { DataValue } from '../../../interfaces/data';
|
|
6
|
+
import { WidgetListField, WidgetMeta } from '../../../interfaces/widget';
|
|
7
|
+
import { RowMetaField } from '../../../interfaces/rowMeta';
|
|
8
|
+
export interface ColumnFilterControlProps {
|
|
9
|
+
widgetFieldMeta: WidgetListField;
|
|
10
|
+
rowFieldMeta: RowMetaField;
|
|
11
|
+
value: DataValue | DataValue[];
|
|
12
|
+
onChange: (value: DataValue | DataValue[]) => void;
|
|
13
|
+
widgetOptions?: WidgetMeta['options'];
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @param props
|
|
18
|
+
* @category Components
|
|
19
|
+
*/
|
|
20
|
+
export declare const ColumnFilterControl: React.FC<ColumnFilterControlProps>;
|
|
21
|
+
/**
|
|
22
|
+
* @category Components
|
|
23
|
+
*/
|
|
24
|
+
declare const MemoizedColumnFilterControl: React.NamedExoticComponent<ColumnFilterControlProps>;
|
|
25
|
+
export default MemoizedColumnFilterControl;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DatePickerProps } from 'antd/lib/date-picker/interface';
|
|
3
|
+
import { DataValue } from '@cxbox-ui/schema';
|
|
4
|
+
interface RangePickerProps extends Omit<DatePickerProps, 'onChange' | 'value'> {
|
|
5
|
+
dateOnly?: boolean;
|
|
6
|
+
onChange: (v: DataValue[]) => void;
|
|
7
|
+
value: DataValue[];
|
|
8
|
+
}
|
|
9
|
+
declare function RangePicker({ value, onChange, dateOnly, ...rest }: RangePickerProps): JSX.Element;
|
|
10
|
+
declare const _default: React.MemoExoticComponent<typeof RangePicker>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WidgetField } from '../../../interfaces/widget';
|
|
3
|
+
import { DataItem } from '../../../interfaces/data';
|
|
4
|
+
export interface HistoryFieldProps {
|
|
5
|
+
fieldMeta: WidgetField;
|
|
6
|
+
data: DataItem;
|
|
7
|
+
bcName: string;
|
|
8
|
+
cursor: string;
|
|
9
|
+
widgetName: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @category Components
|
|
13
|
+
*/
|
|
14
|
+
declare const MemoizedHistoryField: React.NamedExoticComponent<HistoryFieldProps>;
|
|
15
|
+
export default MemoizedHistoryField;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Интерактивных полей ввода, которые нуждаются в префиксах/суффиксах компонента <Input />,
|
|
3
|
+
* но сделаны на основе другого компонента (например Select)
|
|
4
|
+
*
|
|
5
|
+
* TODO:
|
|
6
|
+
* - перенести на них InlinePickList
|
|
7
|
+
* - перенести на них MultivalueTag
|
|
8
|
+
* - согласовать цвета рамочек по макетам (у MultivalueTag рамочка темнее чем у обычных)
|
|
9
|
+
* - сделать префиксы
|
|
10
|
+
*/
|
|
11
|
+
import React, { FunctionComponent } from 'react';
|
|
12
|
+
export interface InteractiveInputProps {
|
|
13
|
+
suffixClassName?: string;
|
|
14
|
+
suffix?: React.ReactNode;
|
|
15
|
+
children: React.ReactNode;
|
|
16
|
+
onSuffixClick?: () => void;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @param props
|
|
21
|
+
* @category Components
|
|
22
|
+
*/
|
|
23
|
+
export declare const InteractiveInput: FunctionComponent<InteractiveInputProps>;
|
|
24
|
+
/**
|
|
25
|
+
* @category Components
|
|
26
|
+
*/
|
|
27
|
+
declare const MemoizedInteractiveInput: React.NamedExoticComponent<InteractiveInputProps>;
|
|
28
|
+
export default MemoizedInteractiveInput;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
export interface LinkProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
className: string;
|
|
5
|
+
href: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @param props
|
|
10
|
+
* @category Components
|
|
11
|
+
*/
|
|
12
|
+
export declare const Link: FunctionComponent<LinkProps>;
|
|
13
|
+
export default Link;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WidgetField } from '../../../interfaces/widget';
|
|
3
|
+
import { DataItem } from '../../../interfaces/data';
|
|
4
|
+
export interface MultiFieldProps {
|
|
5
|
+
bcName: string;
|
|
6
|
+
fields: WidgetField[];
|
|
7
|
+
data: DataItem;
|
|
8
|
+
cursor: string;
|
|
9
|
+
widgetName: string;
|
|
10
|
+
style: 'inline' | 'list';
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @category Components
|
|
14
|
+
*/
|
|
15
|
+
declare const MemoizedMultiField: React.NamedExoticComponent<MultiFieldProps>;
|
|
16
|
+
export default MemoizedMultiField;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DataValue, MultivalueSingleValue } from '../../../interfaces/data';
|
|
3
|
+
import { BaseFieldProps } from '../../Field/Field';
|
|
4
|
+
export interface MultivalueHoverProps extends BaseFieldProps {
|
|
5
|
+
data: MultivalueSingleValue[];
|
|
6
|
+
displayedValue: DataValue;
|
|
7
|
+
onDrillDown?: () => void;
|
|
8
|
+
className?: string;
|
|
9
|
+
backgroundColor?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @category Components
|
|
13
|
+
*/
|
|
14
|
+
declare const MemoizedMultivalue: React.NamedExoticComponent<MultivalueHoverProps>;
|
|
15
|
+
export default MemoizedMultivalue;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MultivalueSingleValue } from '../../../interfaces/data';
|
|
3
|
+
import { MultivalueFieldMeta } from '../../../interfaces/widget';
|
|
4
|
+
export interface MultivalueListProps {
|
|
5
|
+
fieldTitle: React.ReactNode;
|
|
6
|
+
field: MultivalueFieldMeta;
|
|
7
|
+
data: MultivalueSingleValue[];
|
|
8
|
+
isFloat: boolean;
|
|
9
|
+
noLineSeparator: boolean;
|
|
10
|
+
isColumnDirection?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @category Components
|
|
15
|
+
*/
|
|
16
|
+
declare const MemoizedMultivalueList: React.NamedExoticComponent<MultivalueListProps>;
|
|
17
|
+
export default MemoizedMultivalueList;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MultivalueSingleValue } from '../../../interfaces/data';
|
|
3
|
+
import { MultivalueFieldMeta } from '../../../interfaces/widget';
|
|
4
|
+
export interface MultivalueTagProps {
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
value: MultivalueSingleValue[];
|
|
8
|
+
widgetFieldMeta: MultivalueFieldMeta;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated TODO: Remove in 2.0.0 in favor of `widgetName`
|
|
11
|
+
*/
|
|
12
|
+
bcName: string;
|
|
13
|
+
widgetName?: string;
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
page: number;
|
|
16
|
+
metaError: string;
|
|
17
|
+
onPopupOpen: (bcName: string, widgetFieldMeta: MultivalueFieldMeta, page: number, widgetName?: string) => void;
|
|
18
|
+
onChange: (newValue: MultivalueSingleValue[], removedValue: MultivalueSingleValue) => void;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @category Components
|
|
22
|
+
*/
|
|
23
|
+
declare const MemoizedMultivalueTag: React.NamedExoticComponent<MultivalueTagProps>;
|
|
24
|
+
export default MemoizedMultivalueTag;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface NavigationTabsProps {
|
|
3
|
+
navigationLevel: number;
|
|
4
|
+
}
|
|
5
|
+
declare function NavigationTabs({ navigationLevel }: NavigationTabsProps): JSX.Element;
|
|
6
|
+
declare const _default: React.MemoExoticComponent<typeof NavigationTabs>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NumberTypes } from '../../../components/ui/NumberInput/formaters';
|
|
3
|
+
import { BaseFieldProps } from '../../Field/Field';
|
|
4
|
+
export interface NumberInputProps extends BaseFieldProps {
|
|
5
|
+
onChange?: (value: number) => void;
|
|
6
|
+
value: number;
|
|
7
|
+
nullable?: boolean;
|
|
8
|
+
digits?: number;
|
|
9
|
+
type: NumberTypes;
|
|
10
|
+
maxInput?: number;
|
|
11
|
+
forceFocus?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @category Components
|
|
15
|
+
*/
|
|
16
|
+
declare const MemoizedNumberInput: React.NamedExoticComponent<NumberInputProps>;
|
|
17
|
+
export default MemoizedNumberInput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare enum NumberTypes {
|
|
2
|
+
number = "number",
|
|
3
|
+
percent = "percent",
|
|
4
|
+
money = "money"
|
|
5
|
+
}
|
|
6
|
+
export declare const NumberInputFormat: {
|
|
7
|
+
number: (value: number, digits?: number, nullable?: boolean) => string;
|
|
8
|
+
money: (value: number, digits?: number, nullable?: boolean) => string;
|
|
9
|
+
percent: (value: number, digits?: number, nullable?: boolean) => string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* TODO
|
|
13
|
+
*
|
|
14
|
+
* @param value
|
|
15
|
+
* @param digits
|
|
16
|
+
* @param useGrouping
|
|
17
|
+
*/
|
|
18
|
+
export declare function getFormattedNumber(value: number, digits: number, useGrouping?: boolean): string;
|
|
19
|
+
/**
|
|
20
|
+
* Rounding to the nearest value of specified precision
|
|
21
|
+
*
|
|
22
|
+
* @param value
|
|
23
|
+
* @param precision
|
|
24
|
+
*/
|
|
25
|
+
export declare function fractionsRound(value: number, precision: number): number;
|
|
26
|
+
/**
|
|
27
|
+
* TODO
|
|
28
|
+
*
|
|
29
|
+
* @param digits
|
|
30
|
+
*/
|
|
31
|
+
export declare function getPrecision(digits: number): number;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PaginationMode } from '../../../interfaces/widget';
|
|
3
|
+
/**
|
|
4
|
+
* Pagination component properties
|
|
5
|
+
*
|
|
6
|
+
* TODO: Rename PaginataionProps in 2.0.0
|
|
7
|
+
*/
|
|
8
|
+
export interface PaginationOwnProps {
|
|
9
|
+
/**
|
|
10
|
+
* Business component storing pagination data and loading state
|
|
11
|
+
*
|
|
12
|
+
* @deprecated TODO: Remove in favor of widgetName in 2.0.0
|
|
13
|
+
*/
|
|
14
|
+
bcName?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Name of the widget showing pagination
|
|
17
|
+
*
|
|
18
|
+
* TODO: Will be mandatory in 2.0.0
|
|
19
|
+
*/
|
|
20
|
+
widgetName?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Type of paginator (prev/next buttons, loadMore button, etc.)
|
|
23
|
+
*/
|
|
24
|
+
mode: PaginationMode;
|
|
25
|
+
/**
|
|
26
|
+
* Callback on page change
|
|
27
|
+
*/
|
|
28
|
+
onChangePage?: (newPage?: number) => void;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated Connected internally
|
|
32
|
+
*/
|
|
33
|
+
interface PaginationStateProps {
|
|
34
|
+
hasNext: boolean;
|
|
35
|
+
page: number;
|
|
36
|
+
loading: boolean;
|
|
37
|
+
widgetName: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated Connected internally
|
|
41
|
+
*/
|
|
42
|
+
interface PaginationDispatchProps {
|
|
43
|
+
changePage: (bcName: string, page: number) => void;
|
|
44
|
+
loadMore: (bcName: string, widgetName: string) => void;
|
|
45
|
+
}
|
|
46
|
+
declare type PaginationAllProps = PaginationOwnProps & Partial<PaginationStateProps> & Partial<PaginationDispatchProps>;
|
|
47
|
+
/**
|
|
48
|
+
* @category Components
|
|
49
|
+
*/
|
|
50
|
+
declare const MemoizedPagination: React.NamedExoticComponent<PaginationAllProps>;
|
|
51
|
+
export default MemoizedPagination;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface PickInputProps {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
value?: string;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
onClear?: () => void;
|
|
7
|
+
className?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @category Components
|
|
13
|
+
*/
|
|
14
|
+
declare const MemoizedPickInput: React.NamedExoticComponent<PickInputProps>;
|
|
15
|
+
export default MemoizedPickInput;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
import { ModalProps } from 'antd/lib/modal';
|
|
3
|
+
export interface PopupProps extends ModalProps {
|
|
4
|
+
onOkHandler?: () => void;
|
|
5
|
+
onCancelHandler?: () => void;
|
|
6
|
+
size?: 'medium' | 'large';
|
|
7
|
+
children: any;
|
|
8
|
+
showed: boolean;
|
|
9
|
+
bcName: string;
|
|
10
|
+
widgetName?: string;
|
|
11
|
+
disablePagination?: boolean;
|
|
12
|
+
defaultOkText?: string;
|
|
13
|
+
defaultCancelText?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const widths: {
|
|
16
|
+
medium: string;
|
|
17
|
+
large: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @param props
|
|
22
|
+
* @category Components
|
|
23
|
+
*/
|
|
24
|
+
export declare const Popup: FunctionComponent<PopupProps>;
|
|
25
|
+
/**
|
|
26
|
+
* @category Components
|
|
27
|
+
*/
|
|
28
|
+
declare const MemoizedPopup: React.NamedExoticComponent<PopupProps>;
|
|
29
|
+
export default MemoizedPopup;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface PopupFooterProps {
|
|
3
|
+
onAccept?: () => void;
|
|
4
|
+
onCancel?: () => void;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* @param props
|
|
9
|
+
* @category Components
|
|
10
|
+
*/
|
|
11
|
+
export declare const PopupFooter: React.FC<PopupFooterProps>;
|
|
12
|
+
/**
|
|
13
|
+
* @category Components
|
|
14
|
+
*/
|
|
15
|
+
declare const MemoizedPopupFooter: React.NamedExoticComponent<PopupFooterProps>;
|
|
16
|
+
export default MemoizedPopupFooter;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseFieldProps } from '../../../components/Field/Field';
|
|
3
|
+
export interface RadioButtonProps extends BaseFieldProps {
|
|
4
|
+
value?: string | null;
|
|
5
|
+
onChange?: (value: string) => void;
|
|
6
|
+
values: Array<{
|
|
7
|
+
value: string;
|
|
8
|
+
icon?: string;
|
|
9
|
+
}>;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @category Components
|
|
14
|
+
*/
|
|
15
|
+
declare const MemoizedRadioButton: React.NamedExoticComponent<RadioButtonProps>;
|
|
16
|
+
export default MemoizedRadioButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WidgetFieldBase } from '../../../interfaces/widget';
|
|
3
|
+
export interface ReadOnlyFieldProps {
|
|
4
|
+
/**
|
|
5
|
+
* TODO: Will be mandatory in 2.0.0
|
|
6
|
+
*/
|
|
7
|
+
widgetName?: string;
|
|
8
|
+
/**
|
|
9
|
+
* TODO: Will be mandatory in 2.0.0
|
|
10
|
+
*/
|
|
11
|
+
cursor?: string;
|
|
12
|
+
meta?: WidgetFieldBase;
|
|
13
|
+
backgroundColor?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
onDrillDown?: () => void;
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @category Components
|
|
20
|
+
*/
|
|
21
|
+
declare const MemoizedReadOnlyField: React.NamedExoticComponent<ReadOnlyFieldProps>;
|
|
22
|
+
export default MemoizedReadOnlyField;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface SearchHighlightProps {
|
|
3
|
+
source: string;
|
|
4
|
+
search: string | RegExp;
|
|
5
|
+
match?: (substring: string) => React.ReactNode;
|
|
6
|
+
notMatch?: (substring: string) => React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Default renderer for highlighting search results.
|
|
10
|
+
*
|
|
11
|
+
* Wraps an argument into `<b>` tag.
|
|
12
|
+
*
|
|
13
|
+
* @param value
|
|
14
|
+
*/
|
|
15
|
+
export declare const defaultHighlighter: (value: string) => JSX.Element;
|
|
16
|
+
/**
|
|
17
|
+
* @category Components
|
|
18
|
+
*/
|
|
19
|
+
declare const MemoizedSearchHighlight: React.NamedExoticComponent<SearchHighlightProps>;
|
|
20
|
+
export default MemoizedSearchHighlight;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Select as AntdSelect } from 'antd';
|
|
3
|
+
import { SelectProps as AntdSelectProps, SelectValue } from 'antd/lib/select';
|
|
4
|
+
export declare type SelectProps = AntdSelectProps & {
|
|
5
|
+
forwardedRef?: React.RefObject<AntdSelect<string>>;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Wrapper for original rc-select due to performance problems with last version
|
|
9
|
+
* https://github.com/react-component/select/issues/378
|
|
10
|
+
*
|
|
11
|
+
* @category Components
|
|
12
|
+
*/
|
|
13
|
+
export declare class Select<T = SelectValue> extends React.PureComponent<SelectProps> {
|
|
14
|
+
/**
|
|
15
|
+
* STUB
|
|
16
|
+
*/
|
|
17
|
+
static Option: React.ClassicComponentClass<import("antd/lib/select").OptionProps>;
|
|
18
|
+
/**
|
|
19
|
+
* STUB
|
|
20
|
+
*/
|
|
21
|
+
render(): JSX.Element;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @category Components
|
|
25
|
+
*/
|
|
26
|
+
export default Select;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextAreaProps as AntdTextAreaProps } from 'antd/lib/input/TextArea';
|
|
3
|
+
import { BaseFieldProps } from '../../Field/Field';
|
|
4
|
+
declare type AdditionalAntdTextAreaProps = Partial<Omit<AntdTextAreaProps, 'onChange'>>;
|
|
5
|
+
export interface TextAreaProps extends BaseFieldProps, AdditionalAntdTextAreaProps {
|
|
6
|
+
defaultValue?: string | null;
|
|
7
|
+
maxInput?: number;
|
|
8
|
+
onChange?: (value: string) => void;
|
|
9
|
+
popover?: boolean;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
minRows?: number;
|
|
12
|
+
maxRows?: number;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @param props
|
|
17
|
+
* @category Components
|
|
18
|
+
*/
|
|
19
|
+
export declare const TextArea: React.FunctionComponent<TextAreaProps>;
|
|
20
|
+
/**
|
|
21
|
+
* @category Components
|
|
22
|
+
*/
|
|
23
|
+
declare const MemoizedTextArea: React.NamedExoticComponent<TextAreaProps>;
|
|
24
|
+
export default MemoizedTextArea;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FixedSizeListProps, ListChildComponentProps, Align } from 'react-window';
|
|
3
|
+
import { DataNode } from '../../../interfaces/tree';
|
|
4
|
+
import { BcFilter } from '../../../interfaces/filters';
|
|
5
|
+
import { WidgetListField } from '../../../interfaces/widget';
|
|
6
|
+
/**
|
|
7
|
+
* Properties for TreeVirtualized component
|
|
8
|
+
*/
|
|
9
|
+
export interface TreeVirtualizedProps<T> extends Omit<FixedSizeListProps, 'itemCount' | 'children'> {
|
|
10
|
+
/**
|
|
11
|
+
* Flat array of nodes
|
|
12
|
+
*/
|
|
13
|
+
items: T[];
|
|
14
|
+
/**
|
|
15
|
+
* Fields to display as tree node
|
|
16
|
+
*/
|
|
17
|
+
fields: WidgetListField[];
|
|
18
|
+
/**
|
|
19
|
+
* Allow selecting multiple items
|
|
20
|
+
*/
|
|
21
|
+
multiple?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Fired when node is selected
|
|
24
|
+
*/
|
|
25
|
+
onSelect?: ((item: T) => void) | ((item: T, selected: boolean) => void);
|
|
26
|
+
/**
|
|
27
|
+
* Custom node render can be provided
|
|
28
|
+
*/
|
|
29
|
+
children?: React.ComponentType<ListChildComponentProps>;
|
|
30
|
+
/**
|
|
31
|
+
* Filters for the tree
|
|
32
|
+
*/
|
|
33
|
+
filters?: BcFilter[];
|
|
34
|
+
/**
|
|
35
|
+
* If true, casing of searchExpression will be respected
|
|
36
|
+
*/
|
|
37
|
+
matchCase?: boolean;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Container element containing console helpers for autotests
|
|
41
|
+
*/
|
|
42
|
+
export declare type TreeVirtualizedDomContainer = HTMLDivElement & {
|
|
43
|
+
/**
|
|
44
|
+
* Scroll to the specified item
|
|
45
|
+
*
|
|
46
|
+
* @param column Target column key
|
|
47
|
+
* @param value Target cell value
|
|
48
|
+
* @param align `react-window` Align
|
|
49
|
+
*/
|
|
50
|
+
scrollToItem(column: string, value: string, align?: Align): void;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Tree component based on `react-window` to virtualize tree data.
|
|
54
|
+
*
|
|
55
|
+
* @param props Component properties
|
|
56
|
+
* @category Components
|
|
57
|
+
*/
|
|
58
|
+
export declare function TreeVirtualized<T extends DataNode>(props: TreeVirtualizedProps<T>): JSX.Element;
|
|
59
|
+
/**
|
|
60
|
+
* @category Components
|
|
61
|
+
*/
|
|
62
|
+
declare const MemoizedTreeVirtualized: typeof TreeVirtualized;
|
|
63
|
+
export default MemoizedTreeVirtualized;
|