@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.
Files changed (269) hide show
  1. package/{index.ts → index.d.ts} +5 -5
  2. package/index.js +1 -0
  3. package/package.json +10 -3
  4. package/src/consts/index.d.ts +12 -0
  5. package/src/interfaces/common.d.ts +17 -0
  6. package/src/interfaces/definition.d.ts +107 -0
  7. package/src/interfaces/{index.ts → index.d.ts} +3 -3
  8. package/src/interfaces/ui.d.ts +70 -0
  9. package/src/lib/Alert/Alert.d.ts +53 -0
  10. package/src/lib/Alert/index.d.ts +1 -0
  11. package/src/lib/Breadcrumbs/Breadcrumbs.d.ts +9 -0
  12. package/src/lib/Breadcrumbs/Breadcrumbs.styled.d.ts +2 -0
  13. package/src/lib/Breadcrumbs/{index.ts → index.d.ts} +1 -1
  14. package/src/lib/ContentLayout/ContentLayout.d.ts +9 -0
  15. package/src/lib/ContentLayout/index.d.ts +1 -0
  16. package/src/lib/Definition/CreateDefinition/CreateDefinition.d.ts +11 -0
  17. package/src/lib/Definition/CreateDefinition/{index.ts → index.d.ts} +1 -1
  18. package/src/lib/Definition/DefinitionFiller/DefinitionFiller.d.ts +10 -0
  19. package/src/lib/Definition/DefinitionFiller/{index.ts → index.d.ts} +1 -1
  20. package/src/lib/Definition/DefinitionValueView/DefinitionValueView.d.ts +8 -0
  21. package/src/lib/Definition/DefinitionValueView/PropertyDataView.d.ts +9 -0
  22. package/src/lib/Definition/DefinitionValueView/{index.ts → index.d.ts} +1 -1
  23. package/src/lib/Definition/{index.ts → index.d.ts} +3 -3
  24. package/src/lib/Forms/BackButton.d.ts +7 -0
  25. package/src/lib/Forms/ControlAceEditor.d.ts +24 -0
  26. package/src/lib/Forms/ControlAutocomplete.d.ts +69 -0
  27. package/src/lib/Forms/ControlCheckbox.d.ts +51 -0
  28. package/src/lib/Forms/ControlDate.d.ts +18 -0
  29. package/src/lib/Forms/ControlDateTime.d.ts +18 -0
  30. package/src/lib/Forms/ControlDebouncedInput.d.ts +4 -0
  31. package/src/lib/Forms/ControlInput.d.ts +59 -0
  32. package/src/lib/Forms/ControlNumberInput.d.ts +51 -0
  33. package/src/lib/Forms/ControlQueryAutocomplete.d.ts +16 -0
  34. package/src/lib/Forms/ControlRadio.d.ts +66 -0
  35. package/src/lib/Forms/ControlSelect.d.ts +67 -0
  36. package/src/lib/Forms/ControlSwitch.d.ts +19 -0
  37. package/src/lib/Forms/ControlTime.d.ts +18 -0
  38. package/src/lib/Forms/CopyButton.d.ts +20 -0
  39. package/src/lib/Forms/{index.ts → index.d.ts} +15 -15
  40. package/src/lib/Forms/useAutocomplete.d.ts +10 -0
  41. package/src/lib/InfoItem/InfoItem.d.ts +10 -0
  42. package/src/lib/InfoItem/{index.ts → index.d.ts} +1 -1
  43. package/src/lib/JsonPathPicker/JsonPathPicker.d.ts +10 -0
  44. package/src/lib/JsonPathPicker/PropertyStep.d.ts +11 -0
  45. package/src/lib/JsonPathPicker/{index.ts → index.d.ts} +1 -1
  46. package/src/lib/JsonView/JsonView.d.ts +7 -0
  47. package/src/lib/JsonView/{index.ts → index.d.ts} +1 -1
  48. package/src/lib/Loader/Loader.d.ts +21 -0
  49. package/src/lib/Loader/{index.ts → index.d.ts} +1 -1
  50. package/src/lib/Modals/JsonModalView.d.ts +10 -0
  51. package/src/lib/Modals/{index.ts → index.d.ts} +1 -1
  52. package/src/lib/Property/PropertyFiller/JsonEditor.d.ts +10 -0
  53. package/src/lib/Property/PropertyFiller/MultiplePropertyFiller.d.ts +12 -0
  54. package/src/lib/Property/PropertyFiller/MultiplePropertyWidget.d.ts +11 -0
  55. package/src/lib/Property/PropertyFiller/PropertyFiller.d.ts +12 -0
  56. package/src/lib/Property/PropertyFiller/{index.ts → index.d.ts} +2 -2
  57. package/src/lib/Property/PropertyFiller/styled.d.ts +18 -0
  58. package/src/lib/Property/PropertyFiller/usePropertyFiller.d.ts +24 -0
  59. package/src/lib/Property/PropertyValidator/NodeValidator.d.ts +6 -0
  60. package/src/lib/Property/PropertyValidator/NodesList.d.ts +6 -0
  61. package/src/lib/Property/PropertyValidator/NumericTypeValidator.d.ts +8 -0
  62. package/src/lib/Property/PropertyValidator/PropertyValidator.d.ts +6 -0
  63. package/src/lib/Property/PropertyValidator/PropertyValidatorContext.d.ts +3 -0
  64. package/src/lib/Property/PropertyValidator/StringTypeValidator.d.ts +8 -0
  65. package/src/lib/Property/PropertyValidator/ValidationNodeSelector.d.ts +7 -0
  66. package/src/lib/Property/PropertyValidator/index.d.ts +1 -0
  67. package/src/lib/Property/PropertyValueField/BooleanValueField.d.ts +7 -0
  68. package/src/lib/Property/PropertyValueField/DateTimeValueField.d.ts +9 -0
  69. package/src/lib/Property/PropertyValueField/DateValueField.d.ts +9 -0
  70. package/src/lib/Property/PropertyValueField/JsonValueField.d.ts +10 -0
  71. package/src/lib/Property/PropertyValueField/PropertyValueField.d.ts +9 -0
  72. package/src/lib/Property/PropertyValueField/StringValueField.d.ts +9 -0
  73. package/src/lib/Property/PropertyValueField/TimeValueField.d.ts +9 -0
  74. package/src/lib/Property/PropertyValueField/{index.ts → index.d.ts} +1 -1
  75. package/src/lib/Property/PropertyWidget/PropertyWidget.d.ts +13 -0
  76. package/src/lib/Property/PropertyWidget/{index.ts → index.d.ts} +1 -1
  77. package/src/lib/Property/UpsertProperty/CreatePropertiesList.d.ts +13 -0
  78. package/src/lib/Property/UpsertProperty/CreatePropertyFormFields.d.ts +10 -0
  79. package/src/lib/Property/UpsertProperty/CustomPropertyField.d.ts +7 -0
  80. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/BigDecimalPropertyFields.d.ts +6 -0
  81. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/DateAdditionalFields.d.ts +7 -0
  82. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityAdditionalFields.d.ts +8 -0
  83. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityReferencePropertyFields.d.ts +6 -0
  84. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/PropertyAdditionalFields.d.ts +10 -0
  85. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/StringPropertyFields.d.ts +6 -0
  86. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/{index.ts → index.d.ts} +1 -1
  87. package/src/lib/Property/UpsertProperty/{index.ts → index.d.ts} +2 -2
  88. package/src/lib/Property/UpsertProperty/useCustomFields.d.ts +6 -0
  89. package/src/lib/Property/ViewPropertiesList/ViewPropertiesList.d.ts +8 -0
  90. package/src/lib/Property/ViewPropertiesList/{index.ts → index.d.ts} +1 -1
  91. package/src/lib/Property/ViewProperty/EntityPropertiesShortView.d.ts +7 -0
  92. package/src/lib/Property/ViewProperty/EntityPropertiesView.d.ts +8 -0
  93. package/src/lib/Property/ViewProperty/PropertyDataTable.d.ts +7 -0
  94. package/src/lib/Property/ViewProperty/PropertyItem.d.ts +9 -0
  95. package/src/lib/Property/ViewProperty/ViewProperty.d.ts +9 -0
  96. package/src/lib/Property/ViewProperty/{index.ts → index.d.ts} +1 -1
  97. package/src/lib/Property/{index.ts → index.d.ts} +5 -5
  98. package/src/lib/Sidebar/Sidebar.d.ts +10 -0
  99. package/src/lib/Sidebar/Sidebar.styled.d.ts +117 -0
  100. package/src/lib/Sidebar/SidebarContext.d.ts +11 -0
  101. package/src/lib/Sidebar/SidebarDrawer.d.ts +9 -0
  102. package/src/lib/Sidebar/SidebarLink/MenuIcon.d.ts +7 -0
  103. package/src/lib/Sidebar/SidebarLink/SidebarLink.d.ts +7 -0
  104. package/src/lib/Sidebar/SidebarLink/SidebarLinkItem.d.ts +8 -0
  105. package/src/lib/Sidebar/SidebarLink/SidebarNestedItem.d.ts +10 -0
  106. package/src/lib/Sidebar/SidebarLink/{index.ts → index.d.ts} +2 -2
  107. package/src/lib/Sidebar/index.d.ts +2 -0
  108. package/src/lib/Status/Status.d.ts +8 -0
  109. package/src/lib/Status/{index.ts → index.d.ts} +1 -1
  110. package/src/lib/StepperView/StepperView.d.ts +11 -0
  111. package/src/lib/StepperView/{index.ts → index.d.ts} +1 -1
  112. package/src/lib/Table/DataGrid/JsonTypeCell.d.ts +7 -0
  113. package/src/lib/Table/DataGrid/Table.d.ts +49 -0
  114. package/src/lib/Table/DataGrid/TableAction.d.ts +13 -0
  115. package/src/lib/Table/DataGrid/TableColumnMenu.d.ts +3 -0
  116. package/src/lib/Table/DataGrid/TablePagination.d.ts +3 -0
  117. package/src/lib/Table/DataGrid/index.d.ts +2 -0
  118. package/src/lib/Table/DataGrid/styles.d.ts +44 -0
  119. package/src/lib/Table/DataGrid/usePagination.d.ts +5 -0
  120. package/src/lib/Table/DataGrid/useTableQueryPagination.d.ts +11 -0
  121. package/src/lib/Table/DataGrid/useTableQuerySorting.d.ts +6 -0
  122. package/src/lib/Table/SimpleTable/SimpleTable.d.ts +17 -0
  123. package/src/lib/Table/SimpleTable/TableActionCell.d.ts +10 -0
  124. package/src/lib/Table/SimpleTable/index.d.ts +2 -0
  125. package/src/lib/Table/SimpleTable/useTablePagination.d.ts +7 -0
  126. package/src/lib/Table/SimpleTable/useTableSorting.d.ts +6 -0
  127. package/src/lib/Table/index.d.ts +2 -0
  128. package/src/lib/Tabs/RouteTabs.d.ts +11 -0
  129. package/src/lib/Tabs/TabPanel.d.ts +25 -0
  130. package/src/lib/Tabs/{index.ts → index.d.ts} +2 -2
  131. package/src/lib/{index.ts → index.d.ts} +16 -16
  132. package/src/theme/baseTheme.d.ts +2 -0
  133. package/src/theme/index.d.ts +1 -0
  134. package/src/theme/inputThemeOptions.d.ts +117 -0
  135. package/src/theme/stepperThemeOptions.d.ts +16 -0
  136. package/src/theme/tableThemeOptions.d.ts +47 -0
  137. package/src/theme/typographyThemeOptions.d.ts +29 -0
  138. package/src/utils/common.d.ts +7 -0
  139. package/src/utils/dem.d.ts +27 -0
  140. package/src/utils/hooks.d.ts +7 -0
  141. package/src/utils/{index.ts → index.d.ts} +5 -5
  142. package/src/utils/ui-utils.d.ts +16 -0
  143. package/src/utils/validators.d.ts +5 -0
  144. package/.babelrc +0 -13
  145. package/.eslintrc.json +0 -22
  146. package/jest.config.ts +0 -11
  147. package/project.json +0 -89
  148. package/rollup.config.js +0 -146
  149. package/src/assets/chevron_left_gray.svg +0 -3
  150. package/src/consts/index.ts +0 -13
  151. package/src/interfaces/common.ts +0 -18
  152. package/src/interfaces/definition.ts +0 -143
  153. package/src/interfaces/ui.ts +0 -80
  154. package/src/lib/Alert/Alert.tsx +0 -108
  155. package/src/lib/Alert/index.ts +0 -1
  156. package/src/lib/Breadcrumbs/Breadcrumbs.styled.tsx +0 -16
  157. package/src/lib/Breadcrumbs/Breadcrumbs.tsx +0 -40
  158. package/src/lib/ContentLayout/ContentLayout.tsx +0 -31
  159. package/src/lib/ContentLayout/index.ts +0 -1
  160. package/src/lib/Definition/CreateDefinition/CreateDefinition.tsx +0 -78
  161. package/src/lib/Definition/DefinitionFiller/DefinitionFiller.tsx +0 -71
  162. package/src/lib/Definition/DefinitionValueView/DefinitionValueView.tsx +0 -54
  163. package/src/lib/Definition/DefinitionValueView/PropertyDataView.tsx +0 -67
  164. package/src/lib/Forms/BackButton.tsx +0 -46
  165. package/src/lib/Forms/ControlAceEditor.tsx +0 -125
  166. package/src/lib/Forms/ControlAutocomplete.tsx +0 -145
  167. package/src/lib/Forms/ControlCheckbox.tsx +0 -113
  168. package/src/lib/Forms/ControlDate.tsx +0 -75
  169. package/src/lib/Forms/ControlDateTime.tsx +0 -77
  170. package/src/lib/Forms/ControlDebouncedInput.tsx +0 -80
  171. package/src/lib/Forms/ControlInput.tsx +0 -111
  172. package/src/lib/Forms/ControlNumberInput.tsx +0 -121
  173. package/src/lib/Forms/ControlQueryAutocomplete.tsx +0 -197
  174. package/src/lib/Forms/ControlRadio.tsx +0 -136
  175. package/src/lib/Forms/ControlSelect.tsx +0 -164
  176. package/src/lib/Forms/ControlSwitch.tsx +0 -71
  177. package/src/lib/Forms/ControlTime.tsx +0 -93
  178. package/src/lib/Forms/CopyButton.tsx +0 -46
  179. package/src/lib/Forms/useAutocomplete.tsx +0 -47
  180. package/src/lib/InfoItem/InfoItem.tsx +0 -40
  181. package/src/lib/InfoItem/styles.ts +0 -17
  182. package/src/lib/JsonPathPicker/JsonPathPicker.tsx +0 -73
  183. package/src/lib/JsonPathPicker/PropertyStep.tsx +0 -70
  184. package/src/lib/JsonView/JsonView.tsx +0 -41
  185. package/src/lib/Loader/Loader.tsx +0 -41
  186. package/src/lib/Modals/JsonModalView.tsx +0 -53
  187. package/src/lib/Property/PropertyFiller/JsonEditor.tsx +0 -58
  188. package/src/lib/Property/PropertyFiller/MultiplePropertyFiller.tsx +0 -129
  189. package/src/lib/Property/PropertyFiller/MultiplePropertyWidget.tsx +0 -85
  190. package/src/lib/Property/PropertyFiller/PropertyFiller.tsx +0 -199
  191. package/src/lib/Property/PropertyFiller/usePropertyFiller.ts +0 -72
  192. package/src/lib/Property/PropertyFiller/useStyles.ts +0 -12
  193. package/src/lib/Property/PropertyValidator/NodeValidator.tsx +0 -92
  194. package/src/lib/Property/PropertyValidator/NodesList.tsx +0 -26
  195. package/src/lib/Property/PropertyValidator/NumericTypeValidator.tsx +0 -59
  196. package/src/lib/Property/PropertyValidator/PropertyValidator.tsx +0 -42
  197. package/src/lib/Property/PropertyValidator/PropertyValidatorContext.tsx +0 -4
  198. package/src/lib/Property/PropertyValidator/StringTypeValidator.tsx +0 -36
  199. package/src/lib/Property/PropertyValidator/ValidationNodeSelector.tsx +0 -62
  200. package/src/lib/Property/PropertyValidator/index.ts +0 -1
  201. package/src/lib/Property/PropertyValueField/BooleanValueField.tsx +0 -49
  202. package/src/lib/Property/PropertyValueField/DateTimeValueField.tsx +0 -58
  203. package/src/lib/Property/PropertyValueField/DateValueField.tsx +0 -58
  204. package/src/lib/Property/PropertyValueField/JsonValueField.tsx +0 -65
  205. package/src/lib/Property/PropertyValueField/PropertyValueField.tsx +0 -49
  206. package/src/lib/Property/PropertyValueField/StringValueField.tsx +0 -50
  207. package/src/lib/Property/PropertyValueField/TimeValueField.tsx +0 -67
  208. package/src/lib/Property/PropertyWidget/PropertyWidget.tsx +0 -115
  209. package/src/lib/Property/UpsertProperty/CreatePropertiesList.tsx +0 -148
  210. package/src/lib/Property/UpsertProperty/CreatePropertyFormFields.tsx +0 -158
  211. package/src/lib/Property/UpsertProperty/CustomPropertyField.tsx +0 -40
  212. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/BigDecimalPropertyFields.tsx +0 -41
  213. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/DateAdditionalFields.tsx +0 -27
  214. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityAdditionalFields.tsx +0 -133
  215. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityReferencePropertyFields.tsx +0 -46
  216. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/PropertyAdditionalFields.tsx +0 -52
  217. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/StringPropertyFields.tsx +0 -103
  218. package/src/lib/Property/UpsertProperty/useCustomFields.ts +0 -22
  219. package/src/lib/Property/ViewPropertiesList/ViewPropertiesList.tsx +0 -37
  220. package/src/lib/Property/ViewProperty/EntityPropertiesShortView.tsx +0 -40
  221. package/src/lib/Property/ViewProperty/EntityPropertiesView.tsx +0 -48
  222. package/src/lib/Property/ViewProperty/PropertyDataTable.tsx +0 -148
  223. package/src/lib/Property/ViewProperty/PropertyItem.tsx +0 -43
  224. package/src/lib/Property/ViewProperty/ViewProperty.tsx +0 -52
  225. package/src/lib/Sidebar/Sidebar.styled.tsx +0 -157
  226. package/src/lib/Sidebar/Sidebar.tsx +0 -27
  227. package/src/lib/Sidebar/SidebarContext.tsx +0 -37
  228. package/src/lib/Sidebar/SidebarDrawer.tsx +0 -50
  229. package/src/lib/Sidebar/SidebarLink/MenuIcon.tsx +0 -16
  230. package/src/lib/Sidebar/SidebarLink/SidebarLink.tsx +0 -54
  231. package/src/lib/Sidebar/SidebarLink/SidebarLinkItem.tsx +0 -54
  232. package/src/lib/Sidebar/SidebarLink/SidebarNestedItem.tsx +0 -62
  233. package/src/lib/Sidebar/index.ts +0 -2
  234. package/src/lib/Status/Status.tsx +0 -16
  235. package/src/lib/Status/styles.ts +0 -21
  236. package/src/lib/StepperView/StepperView.tsx +0 -73
  237. package/src/lib/Table/DataGrid/JsonTypeCell.tsx +0 -51
  238. package/src/lib/Table/DataGrid/Table.tsx +0 -117
  239. package/src/lib/Table/DataGrid/TableAction.tsx +0 -43
  240. package/src/lib/Table/DataGrid/TableColumnMenu.tsx +0 -12
  241. package/src/lib/Table/DataGrid/TablePagination.tsx +0 -42
  242. package/src/lib/Table/DataGrid/index.ts +0 -2
  243. package/src/lib/Table/DataGrid/styles.ts +0 -59
  244. package/src/lib/Table/DataGrid/usePagination.ts +0 -15
  245. package/src/lib/Table/DataGrid/useTableQueryPagination.ts +0 -47
  246. package/src/lib/Table/DataGrid/useTableQuerySorting.ts +0 -47
  247. package/src/lib/Table/SimpleTable/SimpleTable.tsx +0 -138
  248. package/src/lib/Table/SimpleTable/TableActionCell.tsx +0 -67
  249. package/src/lib/Table/SimpleTable/index.ts +0 -2
  250. package/src/lib/Table/SimpleTable/useTablePagination.ts +0 -54
  251. package/src/lib/Table/SimpleTable/useTableSorting.ts +0 -50
  252. package/src/lib/Table/index.ts +0 -2
  253. package/src/lib/Tabs/RouteTabs.tsx +0 -54
  254. package/src/lib/Tabs/TabPanel.tsx +0 -42
  255. package/src/theme/baseTheme.ts +0 -41
  256. package/src/theme/fonts.d.ts +0 -2
  257. package/src/theme/index.ts +0 -126
  258. package/src/theme/inputThemeOptions.ts +0 -126
  259. package/src/theme/stepperThemeOptions.ts +0 -20
  260. package/src/theme/tableThemeOptions.ts +0 -50
  261. package/src/theme/typographyThemeOptions.ts +0 -32
  262. package/src/utils/common.ts +0 -73
  263. package/src/utils/dem.ts +0 -431
  264. package/src/utils/hooks.ts +0 -41
  265. package/src/utils/ui-utils.tsx +0 -134
  266. package/src/utils/validators.ts +0 -14
  267. package/tsconfig.json +0 -25
  268. package/tsconfig.lib.json +0 -23
  269. package/tsconfig.spec.json +0 -20
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import type { Route } from '../../../interfaces';
3
+ type Props = {
4
+ route: Route;
5
+ isActive: boolean;
6
+ };
7
+ declare const SidebarLinkItem: ({ route, isActive }: Props) => JSX.Element;
8
+ export default SidebarLinkItem;
@@ -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';
@@ -0,0 +1,2 @@
1
+ export * from './Sidebar';
2
+ export * from './SidebarLink/MenuIcon';
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { StatusVariant } from '../../interfaces';
3
+ type Props = {
4
+ text: string;
5
+ status?: StatusVariant;
6
+ };
7
+ export declare const Status: ({ text, status }: Props) => JSX.Element;
8
+ export default Status;
@@ -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,7 @@
1
+ /// <reference types="react" />
2
+ declare const JsonTypeCell: ({ value, copyButton, textField, }: {
3
+ value: any;
4
+ copyButton?: boolean;
5
+ textField?: boolean;
6
+ }) => JSX.Element;
7
+ export default JsonTypeCell;
@@ -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,3 @@
1
+ /// <reference types="react" />
2
+ declare const TableColumnMenu: ({ hideMenu, currentColumn, onUnsort, ...rest }: any) => JSX.Element;
3
+ export default TableColumnMenu;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const TablePagination: () => JSX.Element;
3
+ export default TablePagination;
@@ -0,0 +1,2 @@
1
+ export * from './Table';
2
+ export * from './TableAction';
@@ -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,5 @@
1
+ declare const usePagination: (initialPageSize?: number) => {
2
+ pageSize: number;
3
+ handlePageSizeChange: (size: any) => void;
4
+ };
5
+ export default usePagination;
@@ -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,2 @@
1
+ export * from './SimpleTable';
2
+ export * from './TableActionCell';
@@ -0,0 +1,7 @@
1
+ declare const useTablePagination: () => {
2
+ page: string | number;
3
+ size: string | number;
4
+ onPageChange: (newPage: number) => void;
5
+ onSizeChange: (newSize: number) => void;
6
+ };
7
+ export default useTablePagination;
@@ -0,0 +1,6 @@
1
+ declare const useTableSorting: () => {
2
+ sortParams: string[][];
3
+ onSortChanged: (sortKey: string) => void;
4
+ getColumnSorting: (sortKey: string) => string | false;
5
+ };
6
+ export default useTableSorting;
@@ -0,0 +1,2 @@
1
+ export * from './DataGrid';
2
+ export * from './SimpleTable';
@@ -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,2 @@
1
+ declare const _default: import("@mui/material/styles").Theme;
2
+ export default _default;
@@ -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
+ }[];
@@ -0,0 +1,7 @@
1
+ export declare function useDebounce(func: (args?: any) => void, delay: number): (...args: any[]) => void;
2
+ export declare const useToggle: () => {
3
+ open: boolean;
4
+ toggle: () => void;
5
+ onClose: () => void;
6
+ onOpen: () => void;
7
+ };
@@ -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;