@dartech/arsenal-ui 1.3.0 → 1.3.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/{index.ts → index.d.ts} +5 -5
- package/index.js +1 -0
- package/package.json +10 -3
- package/src/consts/index.d.ts +12 -0
- package/src/interfaces/common.d.ts +17 -0
- package/src/interfaces/definition.d.ts +107 -0
- package/src/interfaces/{index.ts → index.d.ts} +3 -3
- package/src/interfaces/ui.d.ts +70 -0
- package/src/lib/Alert/Alert.d.ts +53 -0
- package/src/lib/Alert/index.d.ts +1 -0
- package/src/lib/Breadcrumbs/Breadcrumbs.d.ts +9 -0
- package/src/lib/Breadcrumbs/Breadcrumbs.styled.d.ts +2 -0
- package/src/lib/Breadcrumbs/{index.ts → index.d.ts} +1 -1
- package/src/lib/ContentLayout/ContentLayout.d.ts +9 -0
- package/src/lib/ContentLayout/index.d.ts +1 -0
- package/src/lib/Definition/CreateDefinition/CreateDefinition.d.ts +11 -0
- package/src/lib/Definition/CreateDefinition/{index.ts → index.d.ts} +1 -1
- package/src/lib/Definition/DefinitionFiller/DefinitionFiller.d.ts +10 -0
- package/src/lib/Definition/DefinitionFiller/{index.ts → index.d.ts} +1 -1
- package/src/lib/Definition/DefinitionValueView/DefinitionValueView.d.ts +8 -0
- package/src/lib/Definition/DefinitionValueView/PropertyDataView.d.ts +9 -0
- package/src/lib/Definition/DefinitionValueView/{index.ts → index.d.ts} +1 -1
- package/src/lib/Definition/{index.ts → index.d.ts} +3 -3
- package/src/lib/Forms/BackButton.d.ts +7 -0
- package/src/lib/Forms/ControlAceEditor.d.ts +24 -0
- package/src/lib/Forms/ControlAutocomplete.d.ts +69 -0
- package/src/lib/Forms/ControlCheckbox.d.ts +51 -0
- package/src/lib/Forms/ControlDate.d.ts +18 -0
- package/src/lib/Forms/ControlDateTime.d.ts +18 -0
- package/src/lib/Forms/ControlDebouncedInput.d.ts +4 -0
- package/src/lib/Forms/ControlInput.d.ts +59 -0
- package/src/lib/Forms/ControlNumberInput.d.ts +51 -0
- package/src/lib/Forms/ControlQueryAutocomplete.d.ts +16 -0
- package/src/lib/Forms/ControlRadio.d.ts +66 -0
- package/src/lib/Forms/ControlSelect.d.ts +67 -0
- package/src/lib/Forms/ControlSwitch.d.ts +19 -0
- package/src/lib/Forms/ControlTime.d.ts +18 -0
- package/src/lib/Forms/CopyButton.d.ts +20 -0
- package/src/lib/Forms/{index.ts → index.d.ts} +15 -15
- package/src/lib/Forms/useAutocomplete.d.ts +10 -0
- package/src/lib/InfoItem/InfoItem.d.ts +10 -0
- package/src/lib/InfoItem/{index.ts → index.d.ts} +1 -1
- package/src/lib/JsonPathPicker/JsonPathPicker.d.ts +10 -0
- package/src/lib/JsonPathPicker/PropertyStep.d.ts +11 -0
- package/src/lib/JsonPathPicker/{index.ts → index.d.ts} +1 -1
- package/src/lib/JsonView/JsonView.d.ts +7 -0
- package/src/lib/JsonView/{index.ts → index.d.ts} +1 -1
- package/src/lib/Loader/Loader.d.ts +21 -0
- package/src/lib/Loader/{index.ts → index.d.ts} +1 -1
- package/src/lib/Modals/JsonModalView.d.ts +10 -0
- package/src/lib/Modals/{index.ts → index.d.ts} +1 -1
- package/src/lib/Property/PropertyFiller/JsonEditor.d.ts +10 -0
- package/src/lib/Property/PropertyFiller/MultiplePropertyFiller.d.ts +12 -0
- package/src/lib/Property/PropertyFiller/MultiplePropertyWidget.d.ts +11 -0
- package/src/lib/Property/PropertyFiller/PropertyFiller.d.ts +12 -0
- package/src/lib/Property/PropertyFiller/{index.ts → index.d.ts} +2 -2
- package/src/lib/Property/PropertyFiller/styled.d.ts +18 -0
- package/src/lib/Property/PropertyFiller/usePropertyFiller.d.ts +24 -0
- package/src/lib/Property/PropertyValidator/NodeValidator.d.ts +6 -0
- package/src/lib/Property/PropertyValidator/NodesList.d.ts +6 -0
- package/src/lib/Property/PropertyValidator/NumericTypeValidator.d.ts +8 -0
- package/src/lib/Property/PropertyValidator/PropertyValidator.d.ts +6 -0
- package/src/lib/Property/PropertyValidator/PropertyValidatorContext.d.ts +3 -0
- package/src/lib/Property/PropertyValidator/StringTypeValidator.d.ts +8 -0
- package/src/lib/Property/PropertyValidator/ValidationNodeSelector.d.ts +7 -0
- package/src/lib/Property/PropertyValidator/index.d.ts +1 -0
- package/src/lib/Property/PropertyValueField/BooleanValueField.d.ts +7 -0
- package/src/lib/Property/PropertyValueField/DateTimeValueField.d.ts +9 -0
- package/src/lib/Property/PropertyValueField/DateValueField.d.ts +9 -0
- package/src/lib/Property/PropertyValueField/JsonValueField.d.ts +10 -0
- package/src/lib/Property/PropertyValueField/PropertyValueField.d.ts +9 -0
- package/src/lib/Property/PropertyValueField/StringValueField.d.ts +9 -0
- package/src/lib/Property/PropertyValueField/TimeValueField.d.ts +9 -0
- package/src/lib/Property/PropertyValueField/{index.ts → index.d.ts} +1 -1
- package/src/lib/Property/PropertyWidget/PropertyWidget.d.ts +13 -0
- package/src/lib/Property/PropertyWidget/{index.ts → index.d.ts} +1 -1
- package/src/lib/Property/UpsertProperty/CreatePropertiesList.d.ts +13 -0
- package/src/lib/Property/UpsertProperty/CreatePropertyFormFields.d.ts +10 -0
- package/src/lib/Property/UpsertProperty/CustomPropertyField.d.ts +7 -0
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/BigDecimalPropertyFields.d.ts +6 -0
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/DateAdditionalFields.d.ts +7 -0
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityAdditionalFields.d.ts +8 -0
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityReferencePropertyFields.d.ts +6 -0
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/PropertyAdditionalFields.d.ts +10 -0
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/StringPropertyFields.d.ts +6 -0
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/{index.ts → index.d.ts} +1 -1
- package/src/lib/Property/UpsertProperty/{index.ts → index.d.ts} +2 -2
- package/src/lib/Property/UpsertProperty/useCustomFields.d.ts +6 -0
- package/src/lib/Property/ViewPropertiesList/ViewPropertiesList.d.ts +8 -0
- package/src/lib/Property/ViewPropertiesList/{index.ts → index.d.ts} +1 -1
- package/src/lib/Property/ViewProperty/EntityPropertiesShortView.d.ts +7 -0
- package/src/lib/Property/ViewProperty/EntityPropertiesView.d.ts +8 -0
- package/src/lib/Property/ViewProperty/PropertyDataTable.d.ts +7 -0
- package/src/lib/Property/ViewProperty/PropertyItem.d.ts +9 -0
- package/src/lib/Property/ViewProperty/ViewProperty.d.ts +9 -0
- package/src/lib/Property/ViewProperty/{index.ts → index.d.ts} +1 -1
- package/src/lib/Property/{index.ts → index.d.ts} +5 -5
- package/src/lib/Sidebar/Sidebar.d.ts +10 -0
- package/src/lib/Sidebar/Sidebar.styled.d.ts +117 -0
- package/src/lib/Sidebar/SidebarContext.d.ts +11 -0
- package/src/lib/Sidebar/SidebarDrawer.d.ts +9 -0
- package/src/lib/Sidebar/SidebarLink/MenuIcon.d.ts +7 -0
- package/src/lib/Sidebar/SidebarLink/SidebarLink.d.ts +7 -0
- package/src/lib/Sidebar/SidebarLink/SidebarLinkItem.d.ts +8 -0
- package/src/lib/Sidebar/SidebarLink/SidebarNestedItem.d.ts +10 -0
- package/src/lib/Sidebar/SidebarLink/{index.ts → index.d.ts} +2 -2
- package/src/lib/Sidebar/index.d.ts +2 -0
- package/src/lib/Status/Status.d.ts +8 -0
- package/src/lib/Status/{index.ts → index.d.ts} +1 -1
- package/src/lib/StepperView/StepperView.d.ts +11 -0
- package/src/lib/StepperView/{index.ts → index.d.ts} +1 -1
- package/src/lib/Table/DataGrid/JsonTypeCell.d.ts +7 -0
- package/src/lib/Table/DataGrid/Table.d.ts +49 -0
- package/src/lib/Table/DataGrid/TableAction.d.ts +13 -0
- package/src/lib/Table/DataGrid/TableColumnMenu.d.ts +3 -0
- package/src/lib/Table/DataGrid/TablePagination.d.ts +3 -0
- package/src/lib/Table/DataGrid/index.d.ts +2 -0
- package/src/lib/Table/DataGrid/styles.d.ts +44 -0
- package/src/lib/Table/DataGrid/usePagination.d.ts +5 -0
- package/src/lib/Table/DataGrid/useTableQueryPagination.d.ts +11 -0
- package/src/lib/Table/DataGrid/useTableQuerySorting.d.ts +6 -0
- package/src/lib/Table/SimpleTable/SimpleTable.d.ts +17 -0
- package/src/lib/Table/SimpleTable/TableActionCell.d.ts +10 -0
- package/src/lib/Table/SimpleTable/index.d.ts +2 -0
- package/src/lib/Table/SimpleTable/useTablePagination.d.ts +7 -0
- package/src/lib/Table/SimpleTable/useTableSorting.d.ts +6 -0
- package/src/lib/Table/index.d.ts +2 -0
- package/src/lib/Tabs/RouteTabs.d.ts +11 -0
- package/src/lib/Tabs/TabPanel.d.ts +25 -0
- package/src/lib/Tabs/{index.ts → index.d.ts} +2 -2
- package/src/lib/{index.ts → index.d.ts} +16 -16
- package/src/theme/baseTheme.d.ts +2 -0
- package/src/theme/index.d.ts +1 -0
- package/src/theme/inputThemeOptions.d.ts +117 -0
- package/src/theme/stepperThemeOptions.d.ts +16 -0
- package/src/theme/tableThemeOptions.d.ts +47 -0
- package/src/theme/typographyThemeOptions.d.ts +29 -0
- package/src/utils/common.d.ts +7 -0
- package/src/utils/dem.d.ts +27 -0
- package/src/utils/hooks.d.ts +7 -0
- package/src/utils/{index.ts → index.d.ts} +5 -5
- package/src/utils/ui-utils.d.ts +16 -0
- package/src/utils/validators.d.ts +5 -0
- package/.babelrc +0 -13
- package/.eslintrc.json +0 -22
- package/jest.config.ts +0 -11
- package/project.json +0 -89
- package/rollup.config.js +0 -146
- package/src/assets/chevron_left_gray.svg +0 -3
- package/src/consts/index.ts +0 -13
- package/src/interfaces/common.ts +0 -18
- package/src/interfaces/definition.ts +0 -143
- package/src/interfaces/ui.ts +0 -80
- package/src/lib/Alert/Alert.tsx +0 -108
- package/src/lib/Alert/index.ts +0 -1
- package/src/lib/Breadcrumbs/Breadcrumbs.styled.tsx +0 -16
- package/src/lib/Breadcrumbs/Breadcrumbs.tsx +0 -40
- package/src/lib/ContentLayout/ContentLayout.tsx +0 -31
- package/src/lib/ContentLayout/index.ts +0 -1
- package/src/lib/Definition/CreateDefinition/CreateDefinition.tsx +0 -78
- package/src/lib/Definition/DefinitionFiller/DefinitionFiller.tsx +0 -71
- package/src/lib/Definition/DefinitionValueView/DefinitionValueView.tsx +0 -54
- package/src/lib/Definition/DefinitionValueView/PropertyDataView.tsx +0 -67
- package/src/lib/Forms/BackButton.tsx +0 -46
- package/src/lib/Forms/ControlAceEditor.tsx +0 -125
- package/src/lib/Forms/ControlAutocomplete.tsx +0 -145
- package/src/lib/Forms/ControlCheckbox.tsx +0 -113
- package/src/lib/Forms/ControlDate.tsx +0 -75
- package/src/lib/Forms/ControlDateTime.tsx +0 -77
- package/src/lib/Forms/ControlDebouncedInput.tsx +0 -80
- package/src/lib/Forms/ControlInput.tsx +0 -111
- package/src/lib/Forms/ControlNumberInput.tsx +0 -121
- package/src/lib/Forms/ControlQueryAutocomplete.tsx +0 -197
- package/src/lib/Forms/ControlRadio.tsx +0 -136
- package/src/lib/Forms/ControlSelect.tsx +0 -164
- package/src/lib/Forms/ControlSwitch.tsx +0 -71
- package/src/lib/Forms/ControlTime.tsx +0 -93
- package/src/lib/Forms/CopyButton.tsx +0 -46
- package/src/lib/Forms/useAutocomplete.tsx +0 -47
- package/src/lib/InfoItem/InfoItem.tsx +0 -40
- package/src/lib/InfoItem/styles.ts +0 -17
- package/src/lib/JsonPathPicker/JsonPathPicker.tsx +0 -73
- package/src/lib/JsonPathPicker/PropertyStep.tsx +0 -70
- package/src/lib/JsonView/JsonView.tsx +0 -41
- package/src/lib/Loader/Loader.tsx +0 -41
- package/src/lib/Modals/JsonModalView.tsx +0 -53
- package/src/lib/Property/PropertyFiller/JsonEditor.tsx +0 -58
- package/src/lib/Property/PropertyFiller/MultiplePropertyFiller.tsx +0 -129
- package/src/lib/Property/PropertyFiller/MultiplePropertyWidget.tsx +0 -85
- package/src/lib/Property/PropertyFiller/PropertyFiller.tsx +0 -199
- package/src/lib/Property/PropertyFiller/usePropertyFiller.ts +0 -72
- package/src/lib/Property/PropertyFiller/useStyles.ts +0 -12
- package/src/lib/Property/PropertyValidator/NodeValidator.tsx +0 -92
- package/src/lib/Property/PropertyValidator/NodesList.tsx +0 -26
- package/src/lib/Property/PropertyValidator/NumericTypeValidator.tsx +0 -59
- package/src/lib/Property/PropertyValidator/PropertyValidator.tsx +0 -42
- package/src/lib/Property/PropertyValidator/PropertyValidatorContext.tsx +0 -4
- package/src/lib/Property/PropertyValidator/StringTypeValidator.tsx +0 -36
- package/src/lib/Property/PropertyValidator/ValidationNodeSelector.tsx +0 -62
- package/src/lib/Property/PropertyValidator/index.ts +0 -1
- package/src/lib/Property/PropertyValueField/BooleanValueField.tsx +0 -49
- package/src/lib/Property/PropertyValueField/DateTimeValueField.tsx +0 -58
- package/src/lib/Property/PropertyValueField/DateValueField.tsx +0 -58
- package/src/lib/Property/PropertyValueField/JsonValueField.tsx +0 -65
- package/src/lib/Property/PropertyValueField/PropertyValueField.tsx +0 -49
- package/src/lib/Property/PropertyValueField/StringValueField.tsx +0 -50
- package/src/lib/Property/PropertyValueField/TimeValueField.tsx +0 -67
- package/src/lib/Property/PropertyWidget/PropertyWidget.tsx +0 -115
- package/src/lib/Property/UpsertProperty/CreatePropertiesList.tsx +0 -148
- package/src/lib/Property/UpsertProperty/CreatePropertyFormFields.tsx +0 -158
- package/src/lib/Property/UpsertProperty/CustomPropertyField.tsx +0 -40
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/BigDecimalPropertyFields.tsx +0 -41
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/DateAdditionalFields.tsx +0 -27
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityAdditionalFields.tsx +0 -133
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityReferencePropertyFields.tsx +0 -46
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/PropertyAdditionalFields.tsx +0 -52
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/StringPropertyFields.tsx +0 -103
- package/src/lib/Property/UpsertProperty/useCustomFields.ts +0 -22
- package/src/lib/Property/ViewPropertiesList/ViewPropertiesList.tsx +0 -37
- package/src/lib/Property/ViewProperty/EntityPropertiesShortView.tsx +0 -40
- package/src/lib/Property/ViewProperty/EntityPropertiesView.tsx +0 -48
- package/src/lib/Property/ViewProperty/PropertyDataTable.tsx +0 -148
- package/src/lib/Property/ViewProperty/PropertyItem.tsx +0 -43
- package/src/lib/Property/ViewProperty/ViewProperty.tsx +0 -52
- package/src/lib/Sidebar/Sidebar.styled.tsx +0 -157
- package/src/lib/Sidebar/Sidebar.tsx +0 -27
- package/src/lib/Sidebar/SidebarContext.tsx +0 -37
- package/src/lib/Sidebar/SidebarDrawer.tsx +0 -50
- package/src/lib/Sidebar/SidebarLink/MenuIcon.tsx +0 -16
- package/src/lib/Sidebar/SidebarLink/SidebarLink.tsx +0 -54
- package/src/lib/Sidebar/SidebarLink/SidebarLinkItem.tsx +0 -54
- package/src/lib/Sidebar/SidebarLink/SidebarNestedItem.tsx +0 -62
- package/src/lib/Sidebar/index.ts +0 -2
- package/src/lib/Status/Status.tsx +0 -16
- package/src/lib/Status/styles.ts +0 -21
- package/src/lib/StepperView/StepperView.tsx +0 -73
- package/src/lib/Table/DataGrid/JsonTypeCell.tsx +0 -51
- package/src/lib/Table/DataGrid/Table.tsx +0 -117
- package/src/lib/Table/DataGrid/TableAction.tsx +0 -43
- package/src/lib/Table/DataGrid/TableColumnMenu.tsx +0 -12
- package/src/lib/Table/DataGrid/TablePagination.tsx +0 -42
- package/src/lib/Table/DataGrid/index.ts +0 -2
- package/src/lib/Table/DataGrid/styles.ts +0 -59
- package/src/lib/Table/DataGrid/usePagination.ts +0 -15
- package/src/lib/Table/DataGrid/useTableQueryPagination.ts +0 -47
- package/src/lib/Table/DataGrid/useTableQuerySorting.ts +0 -47
- package/src/lib/Table/SimpleTable/SimpleTable.tsx +0 -138
- package/src/lib/Table/SimpleTable/TableActionCell.tsx +0 -67
- package/src/lib/Table/SimpleTable/index.ts +0 -2
- package/src/lib/Table/SimpleTable/useTablePagination.ts +0 -54
- package/src/lib/Table/SimpleTable/useTableSorting.ts +0 -50
- package/src/lib/Table/index.ts +0 -2
- package/src/lib/Tabs/RouteTabs.tsx +0 -54
- package/src/lib/Tabs/TabPanel.tsx +0 -42
- package/src/theme/baseTheme.ts +0 -41
- package/src/theme/fonts.d.ts +0 -2
- package/src/theme/index.ts +0 -126
- package/src/theme/inputThemeOptions.ts +0 -126
- package/src/theme/stepperThemeOptions.ts +0 -20
- package/src/theme/tableThemeOptions.ts +0 -50
- package/src/theme/typographyThemeOptions.ts +0 -32
- package/src/utils/common.ts +0 -73
- package/src/utils/dem.ts +0 -431
- package/src/utils/hooks.ts +0 -41
- package/src/utils/ui-utils.tsx +0 -134
- package/src/utils/validators.ts +0 -14
- package/tsconfig.json +0 -25
- package/tsconfig.lib.json +0 -23
- package/tsconfig.spec.json +0 -20
@@ -0,0 +1,10 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { Route } from '../../../interfaces';
|
3
|
+
type Props = {
|
4
|
+
route: Route;
|
5
|
+
isActive: boolean;
|
6
|
+
isListOpen: boolean;
|
7
|
+
handleClick: () => void;
|
8
|
+
};
|
9
|
+
declare function SidebarNestedItem({ route, isActive, isListOpen, handleClick, }: Props): JSX.Element;
|
10
|
+
export default SidebarNestedItem;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export { default } from './SidebarLink';
|
2
|
-
export * from './MenuIcon';
|
1
|
+
export { default } from './SidebarLink';
|
2
|
+
export * from './MenuIcon';
|
@@ -1 +1 @@
|
|
1
|
-
export * from './Status';
|
1
|
+
export * from './Status';
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
export type StepperDataItem = {
|
3
|
+
label: string | ReactNode;
|
4
|
+
content: ReactNode;
|
5
|
+
};
|
6
|
+
export type StepperData = StepperDataItem[];
|
7
|
+
type Props = {
|
8
|
+
data: StepperData;
|
9
|
+
};
|
10
|
+
export declare const StepperView: ({ data }: Props) => JSX.Element;
|
11
|
+
export default StepperView;
|
@@ -1 +1 @@
|
|
1
|
-
export * from './StepperView';
|
1
|
+
export * from './StepperView';
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { GridCellParams, GridColumns, GridFeatureMode, GridRowsProp } from '@mui/x-data-grid';
|
3
|
+
/**
|
4
|
+
* This interface is referencing the [[Table]] component props.
|
5
|
+
* @category Common UI components
|
6
|
+
*/
|
7
|
+
export interface TableProps {
|
8
|
+
/**
|
9
|
+
* Data loading state
|
10
|
+
*/
|
11
|
+
loading?: boolean;
|
12
|
+
/**
|
13
|
+
* Table columns
|
14
|
+
*/
|
15
|
+
columns: GridColumns;
|
16
|
+
/**
|
17
|
+
* Table rows
|
18
|
+
*/
|
19
|
+
rows: GridRowsProp;
|
20
|
+
/**
|
21
|
+
* Rows count to display
|
22
|
+
*/
|
23
|
+
rowCount: number;
|
24
|
+
disableMargin?: boolean;
|
25
|
+
/**
|
26
|
+
* Data display mode.
|
27
|
+
* Values: `client` | `server`;
|
28
|
+
* Default: `server`
|
29
|
+
*/
|
30
|
+
mode?: GridFeatureMode;
|
31
|
+
/**
|
32
|
+
* Page size. Default `10`
|
33
|
+
*/
|
34
|
+
initialPageSize?: number;
|
35
|
+
/**
|
36
|
+
* On cell click handler function
|
37
|
+
* ```typescript
|
38
|
+
* (params: GridCellParams, event: React.MouseEvent) => void;
|
39
|
+
* ```
|
40
|
+
*/
|
41
|
+
onCellClick?: (params: GridCellParams, event: React.MouseEvent) => void;
|
42
|
+
pagination?: boolean;
|
43
|
+
}
|
44
|
+
/**
|
45
|
+
* Main data display component. MUI DataGrid used
|
46
|
+
* @category Common UI components
|
47
|
+
*/
|
48
|
+
export declare const Table: ({ columns, rows, rowCount, loading, disableMargin, mode, initialPageSize, pagination, onCellClick, }: TableProps) => JSX.Element;
|
49
|
+
export default Table;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { ReactElement } from 'react';
|
2
|
+
type Props = {
|
3
|
+
icon: ReactElement;
|
4
|
+
onClick?: () => void;
|
5
|
+
label: string;
|
6
|
+
showInMenu?: boolean;
|
7
|
+
location?: {
|
8
|
+
pathname: string;
|
9
|
+
state?: Record<string, unknown>;
|
10
|
+
};
|
11
|
+
};
|
12
|
+
export declare const TableAction: ({ icon, label, showInMenu, onClick, location }: Props) => JSX.Element;
|
13
|
+
export {};
|
@@ -0,0 +1,44 @@
|
|
1
|
+
export declare const styles: {
|
2
|
+
width: string;
|
3
|
+
'& .MuiDataGrid-virtualScrollerContent': {
|
4
|
+
height: string;
|
5
|
+
minHeight: string;
|
6
|
+
};
|
7
|
+
'& .MuiDataGrid-virtualScrollerRenderZone': {
|
8
|
+
position: string;
|
9
|
+
};
|
10
|
+
'& .MuiDataGrid-renderingZone': {
|
11
|
+
maxHeight: string;
|
12
|
+
};
|
13
|
+
'& .MuiDataGrid-cell': {
|
14
|
+
maxHeight: string;
|
15
|
+
lineHeight: string;
|
16
|
+
textOverflow: string;
|
17
|
+
wordBreak: string;
|
18
|
+
'& .MuiDataGrid-actionsCell': {
|
19
|
+
width: string;
|
20
|
+
gridGap: string;
|
21
|
+
flexWrap: string;
|
22
|
+
'& > button[aria-label="more"]': {
|
23
|
+
marginLeft: string;
|
24
|
+
};
|
25
|
+
};
|
26
|
+
};
|
27
|
+
'& .MuiDataGrid-row': {
|
28
|
+
maxHeight: string;
|
29
|
+
};
|
30
|
+
'& .Sorted': {
|
31
|
+
'& .MuiDataGrid-iconButtonContainer': {
|
32
|
+
visibility: string;
|
33
|
+
width: string;
|
34
|
+
'& svg': {
|
35
|
+
opacity: string;
|
36
|
+
};
|
37
|
+
};
|
38
|
+
'&.--desc': {
|
39
|
+
'& svg': {
|
40
|
+
transform: string;
|
41
|
+
};
|
42
|
+
};
|
43
|
+
};
|
44
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { GridFeatureMode } from '@mui/x-data-grid';
|
2
|
+
interface Props {
|
3
|
+
mode: GridFeatureMode;
|
4
|
+
}
|
5
|
+
export declare const useTableQueryPagination: ({ mode }: Props) => {
|
6
|
+
page: number;
|
7
|
+
size: number;
|
8
|
+
onPageChange: (newPage: number) => void;
|
9
|
+
onSizeChange: (count: number) => void;
|
10
|
+
};
|
11
|
+
export default useTableQueryPagination;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { GridColumnHeaderParams, GridColumns } from '@mui/x-data-grid';
|
2
|
+
export declare const useTableQuerySorting: () => {
|
3
|
+
onColumnHeaderClick: ({ field }: GridColumnHeaderParams) => void;
|
4
|
+
getSortedColumns: (columns: GridColumns<any>) => GridColumns<any>;
|
5
|
+
};
|
6
|
+
export default useTableQuerySorting;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { ReactNode, ForwardedRef } from 'react';
|
2
|
+
import { Column, Row } from '../../../interfaces';
|
3
|
+
interface Props<T> {
|
4
|
+
columns: Column<T>[];
|
5
|
+
rows: Row<T>[];
|
6
|
+
totalCount: number;
|
7
|
+
loading?: boolean;
|
8
|
+
pagination?: boolean;
|
9
|
+
onRowClick?: (row: Row<T>) => void;
|
10
|
+
children?: ReactNode;
|
11
|
+
verticalAlign?: 'top' | 'middle' | 'bottom' | 'sub' | 'baseline';
|
12
|
+
}
|
13
|
+
declare function TableInner<T>({ columns, rows, totalCount, children, pagination, loading, onRowClick, verticalAlign }: Props<T>, ref: ForwardedRef<HTMLTableElement>): JSX.Element;
|
14
|
+
export declare const SimpleTable: <T>(props: Props<T> & {
|
15
|
+
ref?: ForwardedRef<HTMLTableElement>;
|
16
|
+
}) => ReturnType<typeof TableInner>;
|
17
|
+
export default SimpleTable;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { MouseEvent } from 'react';
|
2
|
+
type ActionItem = {
|
3
|
+
title: string;
|
4
|
+
onClick: (e?: MouseEvent<HTMLElement>) => void;
|
5
|
+
};
|
6
|
+
type Props = {
|
7
|
+
actionsList: ActionItem[];
|
8
|
+
};
|
9
|
+
export declare const TableActionCell: ({ actionsList }: Props) => JSX.Element;
|
10
|
+
export {};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
interface RouteTab {
|
3
|
+
name: string;
|
4
|
+
label: string;
|
5
|
+
component: React.ReactElement;
|
6
|
+
}
|
7
|
+
interface Props {
|
8
|
+
tabs: RouteTab[];
|
9
|
+
}
|
10
|
+
export declare const RouteTabs: (props: Props) => JSX.Element;
|
11
|
+
export default RouteTabs;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
/**
|
3
|
+
* This interface is referencing the [[TabPanel]] component props.
|
4
|
+
* @category Common UI components
|
5
|
+
*/
|
6
|
+
export interface TabPanelProps {
|
7
|
+
/**
|
8
|
+
* Active tab value
|
9
|
+
*/
|
10
|
+
value: number | string;
|
11
|
+
/**
|
12
|
+
* Index of current panel
|
13
|
+
*/
|
14
|
+
index: number | string;
|
15
|
+
/**
|
16
|
+
* Rendered children component
|
17
|
+
*/
|
18
|
+
children: React.ReactElement;
|
19
|
+
}
|
20
|
+
/**
|
21
|
+
* Tab panel component. Used with tabs component
|
22
|
+
* @category Common UI components
|
23
|
+
*/
|
24
|
+
export declare const TabPanel: (props: TabPanelProps) => JSX.Element;
|
25
|
+
export default TabPanel;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from './TabPanel';
|
2
|
-
export * from './RouteTabs';
|
1
|
+
export * from './TabPanel';
|
2
|
+
export * from './RouteTabs';
|
@@ -1,16 +1,16 @@
|
|
1
|
-
export * from './Alert';
|
2
|
-
export * from './Forms';
|
3
|
-
export * from './Loader';
|
4
|
-
export * from './Table';
|
5
|
-
export * from './Tabs';
|
6
|
-
export * from './Modals';
|
7
|
-
export * from './InfoItem';
|
8
|
-
export * from './Definition';
|
9
|
-
export * from './Property';
|
10
|
-
export * from './Status';
|
11
|
-
export * from './JsonView';
|
12
|
-
export * from './JsonPathPicker';
|
13
|
-
export * from './StepperView';
|
14
|
-
export * from './Sidebar';
|
15
|
-
export * from './ContentLayout';
|
16
|
-
export * from './Breadcrumbs';
|
1
|
+
export * from './Alert';
|
2
|
+
export * from './Forms';
|
3
|
+
export * from './Loader';
|
4
|
+
export * from './Table';
|
5
|
+
export * from './Tabs';
|
6
|
+
export * from './Modals';
|
7
|
+
export * from './InfoItem';
|
8
|
+
export * from './Definition';
|
9
|
+
export * from './Property';
|
10
|
+
export * from './Status';
|
11
|
+
export * from './JsonView';
|
12
|
+
export * from './JsonPathPicker';
|
13
|
+
export * from './StepperView';
|
14
|
+
export * from './Sidebar';
|
15
|
+
export * from './ContentLayout';
|
16
|
+
export * from './Breadcrumbs';
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const theme: import("@mui/material/styles").Theme;
|
@@ -0,0 +1,117 @@
|
|
1
|
+
declare const inputThemeOptions: {
|
2
|
+
components: {
|
3
|
+
MuiButton: {
|
4
|
+
styleOverrides: {
|
5
|
+
root: {
|
6
|
+
lineHeight: number;
|
7
|
+
};
|
8
|
+
};
|
9
|
+
};
|
10
|
+
MuiInputBase: {
|
11
|
+
styleOverrides: {
|
12
|
+
root: {
|
13
|
+
borderRadius: string;
|
14
|
+
minWidth: string;
|
15
|
+
background: string;
|
16
|
+
};
|
17
|
+
input: {
|
18
|
+
minWidth: string;
|
19
|
+
};
|
20
|
+
};
|
21
|
+
};
|
22
|
+
MuiSelect: {
|
23
|
+
styleOverrides: {
|
24
|
+
nativeInput: {
|
25
|
+
padding: number;
|
26
|
+
height: string;
|
27
|
+
};
|
28
|
+
};
|
29
|
+
};
|
30
|
+
MuiTextField: {
|
31
|
+
styleOverrides: {
|
32
|
+
root: {
|
33
|
+
minWidth: string;
|
34
|
+
};
|
35
|
+
};
|
36
|
+
};
|
37
|
+
MuiInputLabel: {
|
38
|
+
styleOverrides: {
|
39
|
+
root: {
|
40
|
+
position: string;
|
41
|
+
overflow: string;
|
42
|
+
transform: string;
|
43
|
+
marginBottom: string;
|
44
|
+
fontWeight: number;
|
45
|
+
fontSize: string;
|
46
|
+
lineHeight: string;
|
47
|
+
};
|
48
|
+
};
|
49
|
+
};
|
50
|
+
MuiOutlinedInput: {
|
51
|
+
styleOverrides: {
|
52
|
+
root: {
|
53
|
+
borderRadius: string;
|
54
|
+
minWidth: string;
|
55
|
+
};
|
56
|
+
notchedOutline: {
|
57
|
+
top: number;
|
58
|
+
'& legend': {
|
59
|
+
display: string;
|
60
|
+
transition: string;
|
61
|
+
};
|
62
|
+
};
|
63
|
+
};
|
64
|
+
};
|
65
|
+
MuiAutocomplete: {
|
66
|
+
styleOverrides: {
|
67
|
+
paper: {
|
68
|
+
marginTop: number;
|
69
|
+
borderRadius: number;
|
70
|
+
boxShadow: string;
|
71
|
+
};
|
72
|
+
listbox: {
|
73
|
+
'::-webkit-scrollbar': {
|
74
|
+
width: string;
|
75
|
+
backgroundColor: string;
|
76
|
+
};
|
77
|
+
'::-webkit-scrollbar-thumb': {
|
78
|
+
borderRadius: string;
|
79
|
+
backgroundColor: string;
|
80
|
+
};
|
81
|
+
};
|
82
|
+
};
|
83
|
+
};
|
84
|
+
MuiMenu: {
|
85
|
+
styleOverrides: {
|
86
|
+
list: {
|
87
|
+
paddingTop: number;
|
88
|
+
paddingBottom: number;
|
89
|
+
background: string;
|
90
|
+
'& li.Mui-selected': {
|
91
|
+
background: string;
|
92
|
+
};
|
93
|
+
};
|
94
|
+
};
|
95
|
+
};
|
96
|
+
MuiPopover: {
|
97
|
+
styleOverrides: {
|
98
|
+
paper: {
|
99
|
+
marginTop: number;
|
100
|
+
borderRadius: number;
|
101
|
+
boxShadow: string;
|
102
|
+
};
|
103
|
+
};
|
104
|
+
};
|
105
|
+
MuiFormLabel: {
|
106
|
+
styleOverrides: {
|
107
|
+
asterisk: {
|
108
|
+
color: string;
|
109
|
+
'&$error': {
|
110
|
+
color: string;
|
111
|
+
};
|
112
|
+
};
|
113
|
+
};
|
114
|
+
};
|
115
|
+
};
|
116
|
+
};
|
117
|
+
export default inputThemeOptions;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
declare const stepperThemeOptions: {
|
2
|
+
components: {
|
3
|
+
MuiStepIcon: {
|
4
|
+
styleOverrides: {
|
5
|
+
root: {
|
6
|
+
fontSize: string;
|
7
|
+
color: string;
|
8
|
+
'&.Mui-active, &.Mui-completed': {
|
9
|
+
color: string;
|
10
|
+
};
|
11
|
+
};
|
12
|
+
};
|
13
|
+
};
|
14
|
+
};
|
15
|
+
};
|
16
|
+
export default stepperThemeOptions;
|
@@ -0,0 +1,47 @@
|
|
1
|
+
declare const tableThemeOptions: {
|
2
|
+
components: {
|
3
|
+
MuiTableContainer: {
|
4
|
+
styleOverrides: {
|
5
|
+
root: {
|
6
|
+
borderRadius: string;
|
7
|
+
border: string;
|
8
|
+
};
|
9
|
+
};
|
10
|
+
};
|
11
|
+
MuiTableHead: {
|
12
|
+
styleOverrides: {
|
13
|
+
root: {
|
14
|
+
backgroundColor: string;
|
15
|
+
};
|
16
|
+
};
|
17
|
+
};
|
18
|
+
MuiTableCell: {
|
19
|
+
styleOverrides: {
|
20
|
+
root: {
|
21
|
+
minHeight: number;
|
22
|
+
padding: string;
|
23
|
+
'&:first-of-type': {
|
24
|
+
paddingLeft: string;
|
25
|
+
};
|
26
|
+
};
|
27
|
+
head: {
|
28
|
+
maxHeight: string;
|
29
|
+
padding: string;
|
30
|
+
color: string;
|
31
|
+
};
|
32
|
+
body: {
|
33
|
+
wordBreak: string;
|
34
|
+
};
|
35
|
+
};
|
36
|
+
};
|
37
|
+
MuiTableSortLabel: {
|
38
|
+
styleOverrides: {
|
39
|
+
root: {
|
40
|
+
maxHeight: string;
|
41
|
+
lineHeight: number;
|
42
|
+
};
|
43
|
+
};
|
44
|
+
};
|
45
|
+
};
|
46
|
+
};
|
47
|
+
export default tableThemeOptions;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
declare const typographyThemeOptions: {
|
2
|
+
components: {
|
3
|
+
MuiTypography: {
|
4
|
+
styleOverrides: {
|
5
|
+
h1: {
|
6
|
+
[x: string]: {
|
7
|
+
fontSize: string;
|
8
|
+
};
|
9
|
+
};
|
10
|
+
h3: {
|
11
|
+
[x: string]: string | {
|
12
|
+
fontSize: string;
|
13
|
+
};
|
14
|
+
fontSize: string;
|
15
|
+
};
|
16
|
+
h4: {
|
17
|
+
[x: string]: string | {
|
18
|
+
fontSize: string;
|
19
|
+
};
|
20
|
+
fontSize: string;
|
21
|
+
};
|
22
|
+
subtitle2: {
|
23
|
+
color: string;
|
24
|
+
};
|
25
|
+
};
|
26
|
+
};
|
27
|
+
};
|
28
|
+
};
|
29
|
+
export default typographyThemeOptions;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export declare const removeArrayItem: (arr: Array<unknown>, index: number) => unknown[];
|
2
|
+
export declare const validateJson: (value: string) => boolean;
|
3
|
+
export declare function capitalize(str: string): string;
|
4
|
+
export declare const sortArrayOfObjects: (a: Record<string, unknown>, b: Record<string, unknown>, key: string, order?: string) => 1 | -1 | 0;
|
5
|
+
export declare const getJsonStringValue: (value: unknown) => string;
|
6
|
+
export declare const safeParseJson: (value: string) => any;
|
7
|
+
export declare const deepParseJson: (value: string) => any;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { PropertyType, EntityTypeProperty, PropertiesArrayType, PropertiesObjectType, PropertyFillType } from '../interfaces';
|
2
|
+
export declare const isPropertyValueEmpty: (value: unknown) => boolean;
|
3
|
+
export declare const formatDefinitionData: (properties: PropertiesArrayType<unknown>, data: unknown) => {};
|
4
|
+
export declare const propertiesArrayToObject: (properties: any, isGlobalParameter?: boolean) => PropertiesObjectType<any>;
|
5
|
+
export declare function propertiesObjectToArray(properties: any, fields?: {
|
6
|
+
[key: string]: unknown;
|
7
|
+
}): any[];
|
8
|
+
export declare const getDemPropertyDateFormat: (defaultFormat: string, propertyFormat: string) => string;
|
9
|
+
export declare const getEntityStarterValue: (property: EntityTypeProperty) => any;
|
10
|
+
export declare const getMultiplePropertyFillOptions: ({ propertyType, useExpression, required, }: {
|
11
|
+
propertyType: PropertyType;
|
12
|
+
required: boolean;
|
13
|
+
useExpression?: boolean;
|
14
|
+
}) => {
|
15
|
+
value: PropertyFillType;
|
16
|
+
label: string;
|
17
|
+
sortOrder: number;
|
18
|
+
}[];
|
19
|
+
export declare const getSinglePropertyFillOptions: ({ propertyType, useExpression, required, }: {
|
20
|
+
propertyType: PropertyType;
|
21
|
+
required: boolean;
|
22
|
+
useExpression?: boolean;
|
23
|
+
}) => {
|
24
|
+
value: PropertyFillType;
|
25
|
+
label: string;
|
26
|
+
sortOrder: number;
|
27
|
+
}[];
|
@@ -1,5 +1,5 @@
|
|
1
|
-
export * from './common';
|
2
|
-
export * from './ui-utils';
|
3
|
-
export * from './hooks';
|
4
|
-
export * from './validators';
|
5
|
-
export * from './dem';
|
1
|
+
export * from './common';
|
2
|
+
export * from './ui-utils';
|
3
|
+
export * from './hooks';
|
4
|
+
export * from './validators';
|
5
|
+
export * from './dem';
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { StatusVariant, TableDataType } from '../interfaces';
|
3
|
+
type TableFormatProps = {
|
4
|
+
value: any;
|
5
|
+
canCopy?: boolean;
|
6
|
+
copyValue?: string;
|
7
|
+
shortId?: boolean;
|
8
|
+
fullText?: boolean;
|
9
|
+
textParams?: {
|
10
|
+
displayAs?: TableDataType;
|
11
|
+
dateFormat?: string[];
|
12
|
+
statusVariant?: StatusVariant;
|
13
|
+
};
|
14
|
+
};
|
15
|
+
export declare const formatTableRowValue: ({ value, canCopy, copyValue, shortId, fullText, textParams, }: TableFormatProps) => JSX.Element | "";
|
16
|
+
export {};
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { PropertyType } from '../interfaces';
|
2
|
+
export declare const digitsOnly: RegExp;
|
3
|
+
export declare const floatsOnly: RegExp;
|
4
|
+
export declare const isExpression: (value: unknown) => boolean;
|
5
|
+
export declare const isDateType: (propertyType: PropertyType) => boolean;
|