@dartech/arsenal-ui 1.2.6 → 1.2.7

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 (271) hide show
  1. package/{index.ts → index.d.ts} +5 -5
  2. package/index.js +1 -0
  3. package/package.json +12 -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/InfoItem/styles.d.ts +12 -0
  44. package/src/lib/JsonPathPicker/JsonPathPicker.d.ts +10 -0
  45. package/src/lib/JsonPathPicker/PropertyStep.d.ts +11 -0
  46. package/src/lib/JsonPathPicker/{index.ts → index.d.ts} +1 -1
  47. package/src/lib/JsonView/JsonView.d.ts +7 -0
  48. package/src/lib/JsonView/{index.ts → index.d.ts} +1 -1
  49. package/src/lib/Loader/Loader.d.ts +21 -0
  50. package/src/lib/Loader/{index.ts → index.d.ts} +1 -1
  51. package/src/lib/Modals/JsonModalView.d.ts +10 -0
  52. package/src/lib/Modals/{index.ts → index.d.ts} +1 -1
  53. package/src/lib/Property/PropertyFiller/JsonEditor.d.ts +10 -0
  54. package/src/lib/Property/PropertyFiller/MultiplePropertyFiller.d.ts +12 -0
  55. package/src/lib/Property/PropertyFiller/MultiplePropertyWidget.d.ts +11 -0
  56. package/src/lib/Property/PropertyFiller/PropertyFiller.d.ts +12 -0
  57. package/src/lib/Property/PropertyFiller/{index.ts → index.d.ts} +2 -2
  58. package/src/lib/Property/PropertyFiller/usePropertyFiller.d.ts +24 -0
  59. package/src/lib/Property/PropertyFiller/useStyles.d.ts +12 -0
  60. package/src/lib/Property/PropertyValidator/NodeValidator.d.ts +6 -0
  61. package/src/lib/Property/PropertyValidator/NodesList.d.ts +6 -0
  62. package/src/lib/Property/PropertyValidator/NumericTypeValidator.d.ts +8 -0
  63. package/src/lib/Property/PropertyValidator/PropertyValidator.d.ts +6 -0
  64. package/src/lib/Property/PropertyValidator/PropertyValidatorContext.d.ts +3 -0
  65. package/src/lib/Property/PropertyValidator/StringTypeValidator.d.ts +8 -0
  66. package/src/lib/Property/PropertyValidator/ValidationNodeSelector.d.ts +7 -0
  67. package/src/lib/Property/PropertyValidator/index.d.ts +1 -0
  68. package/src/lib/Property/PropertyValueField/BooleanValueField.d.ts +7 -0
  69. package/src/lib/Property/PropertyValueField/DateTimeValueField.d.ts +9 -0
  70. package/src/lib/Property/PropertyValueField/DateValueField.d.ts +9 -0
  71. package/src/lib/Property/PropertyValueField/JsonValueField.d.ts +10 -0
  72. package/src/lib/Property/PropertyValueField/PropertyValueField.d.ts +9 -0
  73. package/src/lib/Property/PropertyValueField/StringValueField.d.ts +9 -0
  74. package/src/lib/Property/PropertyValueField/TimeValueField.d.ts +9 -0
  75. package/src/lib/Property/PropertyValueField/{index.ts → index.d.ts} +1 -1
  76. package/src/lib/Property/PropertyWidget/PropertyWidget.d.ts +13 -0
  77. package/src/lib/Property/PropertyWidget/{index.ts → index.d.ts} +1 -1
  78. package/src/lib/Property/UpsertProperty/CreatePropertiesList.d.ts +13 -0
  79. package/src/lib/Property/UpsertProperty/CreatePropertyFormFields.d.ts +10 -0
  80. package/src/lib/Property/UpsertProperty/CustomPropertyField.d.ts +7 -0
  81. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/BigDecimalPropertyFields.d.ts +6 -0
  82. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/DateAdditionalFields.d.ts +7 -0
  83. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityAdditionalFields.d.ts +8 -0
  84. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityReferencePropertyFields.d.ts +6 -0
  85. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/PropertyAdditionalFields.d.ts +10 -0
  86. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/StringPropertyFields.d.ts +6 -0
  87. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/{index.ts → index.d.ts} +1 -1
  88. package/src/lib/Property/UpsertProperty/{index.ts → index.d.ts} +2 -2
  89. package/src/lib/Property/UpsertProperty/useCustomFields.d.ts +6 -0
  90. package/src/lib/Property/ViewPropertiesList/ViewPropertiesList.d.ts +8 -0
  91. package/src/lib/Property/ViewPropertiesList/{index.ts → index.d.ts} +1 -1
  92. package/src/lib/Property/ViewProperty/EntityPropertiesShortView.d.ts +7 -0
  93. package/src/lib/Property/ViewProperty/EntityPropertiesView.d.ts +8 -0
  94. package/src/lib/Property/ViewProperty/PropertyDataTable.d.ts +7 -0
  95. package/src/lib/Property/ViewProperty/PropertyItem.d.ts +9 -0
  96. package/src/lib/Property/ViewProperty/ViewProperty.d.ts +9 -0
  97. package/src/lib/Property/ViewProperty/{index.ts → index.d.ts} +1 -1
  98. package/src/lib/Property/{index.ts → index.d.ts} +5 -5
  99. package/src/lib/Sidebar/Sidebar.d.ts +10 -0
  100. package/src/lib/Sidebar/Sidebar.styled.d.ts +117 -0
  101. package/src/lib/Sidebar/SidebarContext.d.ts +11 -0
  102. package/src/lib/Sidebar/SidebarDrawer.d.ts +9 -0
  103. package/src/lib/Sidebar/SidebarLink/MenuIcon.d.ts +7 -0
  104. package/src/lib/Sidebar/SidebarLink/SidebarLink.d.ts +7 -0
  105. package/src/lib/Sidebar/SidebarLink/SidebarLinkItem.d.ts +8 -0
  106. package/src/lib/Sidebar/SidebarLink/SidebarNestedItem.d.ts +10 -0
  107. package/src/lib/Sidebar/SidebarLink/{index.ts → index.d.ts} +2 -2
  108. package/src/lib/Sidebar/index.d.ts +2 -0
  109. package/src/lib/Status/Status.d.ts +8 -0
  110. package/src/lib/Status/{index.ts → index.d.ts} +1 -1
  111. package/src/lib/Status/styles.d.ts +12 -0
  112. package/src/lib/StepperView/StepperView.d.ts +11 -0
  113. package/src/lib/StepperView/{index.ts → index.d.ts} +1 -1
  114. package/src/lib/Table/DataGrid/JsonTypeCell.d.ts +7 -0
  115. package/src/lib/Table/DataGrid/Table.d.ts +49 -0
  116. package/src/lib/Table/DataGrid/TableAction.d.ts +13 -0
  117. package/src/lib/Table/DataGrid/TableColumnMenu.d.ts +3 -0
  118. package/src/lib/Table/DataGrid/TablePagination.d.ts +3 -0
  119. package/src/lib/Table/DataGrid/index.d.ts +2 -0
  120. package/src/lib/Table/DataGrid/styles.d.ts +12 -0
  121. package/src/lib/Table/DataGrid/usePagination.d.ts +5 -0
  122. package/src/lib/Table/DataGrid/useTableQueryPagination.d.ts +11 -0
  123. package/src/lib/Table/DataGrid/useTableQuerySorting.d.ts +6 -0
  124. package/src/lib/Table/SimpleTable/SimpleTable.d.ts +17 -0
  125. package/src/lib/Table/SimpleTable/TableActionCell.d.ts +10 -0
  126. package/src/lib/Table/SimpleTable/index.d.ts +2 -0
  127. package/src/lib/Table/SimpleTable/useTablePagination.d.ts +7 -0
  128. package/src/lib/Table/SimpleTable/useTableSorting.d.ts +6 -0
  129. package/src/lib/Table/index.d.ts +2 -0
  130. package/src/lib/Tabs/RouteTabs.d.ts +11 -0
  131. package/src/lib/Tabs/TabPanel.d.ts +25 -0
  132. package/src/lib/Tabs/{index.ts → index.d.ts} +2 -2
  133. package/src/lib/{index.ts → index.d.ts} +16 -16
  134. package/src/theme/baseTheme.d.ts +2 -0
  135. package/src/theme/index.d.ts +1 -0
  136. package/src/theme/inputThemeOptions.d.ts +117 -0
  137. package/src/theme/stepperThemeOptions.d.ts +16 -0
  138. package/src/theme/tableThemeOptions.d.ts +47 -0
  139. package/src/theme/typographyThemeOptions.d.ts +29 -0
  140. package/src/utils/common.d.ts +7 -0
  141. package/src/utils/dem.d.ts +27 -0
  142. package/src/utils/hooks.d.ts +7 -0
  143. package/src/utils/{index.ts → index.d.ts} +5 -5
  144. package/src/utils/ui-utils.d.ts +14 -0
  145. package/src/utils/validators.d.ts +5 -0
  146. package/.babelrc +0 -13
  147. package/.eslintrc.json +0 -22
  148. package/jest.config.ts +0 -11
  149. package/project.json +0 -94
  150. package/rollup.config.js +0 -146
  151. package/src/assets/chevron_left_gray.svg +0 -3
  152. package/src/consts/index.ts +0 -13
  153. package/src/interfaces/common.ts +0 -18
  154. package/src/interfaces/definition.ts +0 -143
  155. package/src/interfaces/ui.ts +0 -80
  156. package/src/lib/Alert/Alert.tsx +0 -108
  157. package/src/lib/Alert/index.ts +0 -1
  158. package/src/lib/Breadcrumbs/Breadcrumbs.styled.tsx +0 -16
  159. package/src/lib/Breadcrumbs/Breadcrumbs.tsx +0 -40
  160. package/src/lib/ContentLayout/ContentLayout.tsx +0 -31
  161. package/src/lib/ContentLayout/index.ts +0 -1
  162. package/src/lib/Definition/CreateDefinition/CreateDefinition.tsx +0 -78
  163. package/src/lib/Definition/DefinitionFiller/DefinitionFiller.tsx +0 -71
  164. package/src/lib/Definition/DefinitionValueView/DefinitionValueView.tsx +0 -54
  165. package/src/lib/Definition/DefinitionValueView/PropertyDataView.tsx +0 -67
  166. package/src/lib/Forms/BackButton.tsx +0 -46
  167. package/src/lib/Forms/ControlAceEditor.tsx +0 -125
  168. package/src/lib/Forms/ControlAutocomplete.tsx +0 -145
  169. package/src/lib/Forms/ControlCheckbox.tsx +0 -113
  170. package/src/lib/Forms/ControlDate.tsx +0 -75
  171. package/src/lib/Forms/ControlDateTime.tsx +0 -77
  172. package/src/lib/Forms/ControlDebouncedInput.tsx +0 -80
  173. package/src/lib/Forms/ControlInput.tsx +0 -111
  174. package/src/lib/Forms/ControlNumberInput.tsx +0 -121
  175. package/src/lib/Forms/ControlQueryAutocomplete.tsx +0 -197
  176. package/src/lib/Forms/ControlRadio.tsx +0 -136
  177. package/src/lib/Forms/ControlSelect.tsx +0 -164
  178. package/src/lib/Forms/ControlSwitch.tsx +0 -71
  179. package/src/lib/Forms/ControlTime.tsx +0 -93
  180. package/src/lib/Forms/CopyButton.tsx +0 -46
  181. package/src/lib/Forms/useAutocomplete.tsx +0 -47
  182. package/src/lib/InfoItem/InfoItem.tsx +0 -40
  183. package/src/lib/InfoItem/styles.ts +0 -17
  184. package/src/lib/JsonPathPicker/JsonPathPicker.tsx +0 -73
  185. package/src/lib/JsonPathPicker/PropertyStep.tsx +0 -70
  186. package/src/lib/JsonView/JsonView.tsx +0 -41
  187. package/src/lib/Loader/Loader.tsx +0 -41
  188. package/src/lib/Modals/JsonModalView.tsx +0 -53
  189. package/src/lib/Property/PropertyFiller/JsonEditor.tsx +0 -58
  190. package/src/lib/Property/PropertyFiller/MultiplePropertyFiller.tsx +0 -129
  191. package/src/lib/Property/PropertyFiller/MultiplePropertyWidget.tsx +0 -85
  192. package/src/lib/Property/PropertyFiller/PropertyFiller.tsx +0 -199
  193. package/src/lib/Property/PropertyFiller/usePropertyFiller.ts +0 -72
  194. package/src/lib/Property/PropertyFiller/useStyles.ts +0 -12
  195. package/src/lib/Property/PropertyValidator/NodeValidator.tsx +0 -92
  196. package/src/lib/Property/PropertyValidator/NodesList.tsx +0 -26
  197. package/src/lib/Property/PropertyValidator/NumericTypeValidator.tsx +0 -59
  198. package/src/lib/Property/PropertyValidator/PropertyValidator.tsx +0 -42
  199. package/src/lib/Property/PropertyValidator/PropertyValidatorContext.tsx +0 -4
  200. package/src/lib/Property/PropertyValidator/StringTypeValidator.tsx +0 -36
  201. package/src/lib/Property/PropertyValidator/ValidationNodeSelector.tsx +0 -62
  202. package/src/lib/Property/PropertyValidator/index.ts +0 -1
  203. package/src/lib/Property/PropertyValueField/BooleanValueField.tsx +0 -49
  204. package/src/lib/Property/PropertyValueField/DateTimeValueField.tsx +0 -58
  205. package/src/lib/Property/PropertyValueField/DateValueField.tsx +0 -58
  206. package/src/lib/Property/PropertyValueField/JsonValueField.tsx +0 -65
  207. package/src/lib/Property/PropertyValueField/PropertyValueField.tsx +0 -49
  208. package/src/lib/Property/PropertyValueField/StringValueField.tsx +0 -50
  209. package/src/lib/Property/PropertyValueField/TimeValueField.tsx +0 -67
  210. package/src/lib/Property/PropertyWidget/PropertyWidget.tsx +0 -115
  211. package/src/lib/Property/UpsertProperty/CreatePropertiesList.tsx +0 -148
  212. package/src/lib/Property/UpsertProperty/CreatePropertyFormFields.tsx +0 -158
  213. package/src/lib/Property/UpsertProperty/CustomPropertyField.tsx +0 -40
  214. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/BigDecimalPropertyFields.tsx +0 -41
  215. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/DateAdditionalFields.tsx +0 -27
  216. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityAdditionalFields.tsx +0 -133
  217. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityReferencePropertyFields.tsx +0 -46
  218. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/PropertyAdditionalFields.tsx +0 -52
  219. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/StringPropertyFields.tsx +0 -103
  220. package/src/lib/Property/UpsertProperty/useCustomFields.ts +0 -22
  221. package/src/lib/Property/ViewPropertiesList/ViewPropertiesList.tsx +0 -37
  222. package/src/lib/Property/ViewProperty/EntityPropertiesShortView.tsx +0 -40
  223. package/src/lib/Property/ViewProperty/EntityPropertiesView.tsx +0 -48
  224. package/src/lib/Property/ViewProperty/PropertyDataTable.tsx +0 -148
  225. package/src/lib/Property/ViewProperty/PropertyItem.tsx +0 -43
  226. package/src/lib/Property/ViewProperty/ViewProperty.tsx +0 -52
  227. package/src/lib/Sidebar/Sidebar.styled.tsx +0 -157
  228. package/src/lib/Sidebar/Sidebar.tsx +0 -27
  229. package/src/lib/Sidebar/SidebarContext.tsx +0 -37
  230. package/src/lib/Sidebar/SidebarDrawer.tsx +0 -50
  231. package/src/lib/Sidebar/SidebarLink/MenuIcon.tsx +0 -16
  232. package/src/lib/Sidebar/SidebarLink/SidebarLink.tsx +0 -54
  233. package/src/lib/Sidebar/SidebarLink/SidebarLinkItem.tsx +0 -54
  234. package/src/lib/Sidebar/SidebarLink/SidebarNestedItem.tsx +0 -62
  235. package/src/lib/Sidebar/index.ts +0 -2
  236. package/src/lib/Status/Status.tsx +0 -16
  237. package/src/lib/Status/styles.ts +0 -21
  238. package/src/lib/StepperView/StepperView.tsx +0 -73
  239. package/src/lib/Table/DataGrid/JsonTypeCell.tsx +0 -51
  240. package/src/lib/Table/DataGrid/Table.tsx +0 -117
  241. package/src/lib/Table/DataGrid/TableAction.tsx +0 -43
  242. package/src/lib/Table/DataGrid/TableColumnMenu.tsx +0 -12
  243. package/src/lib/Table/DataGrid/TablePagination.tsx +0 -42
  244. package/src/lib/Table/DataGrid/index.ts +0 -2
  245. package/src/lib/Table/DataGrid/styles.ts +0 -59
  246. package/src/lib/Table/DataGrid/usePagination.ts +0 -15
  247. package/src/lib/Table/DataGrid/useTableQueryPagination.ts +0 -47
  248. package/src/lib/Table/DataGrid/useTableQuerySorting.ts +0 -47
  249. package/src/lib/Table/SimpleTable/SimpleTable.tsx +0 -138
  250. package/src/lib/Table/SimpleTable/TableActionCell.tsx +0 -67
  251. package/src/lib/Table/SimpleTable/index.ts +0 -2
  252. package/src/lib/Table/SimpleTable/useTablePagination.ts +0 -54
  253. package/src/lib/Table/SimpleTable/useTableSorting.ts +0 -50
  254. package/src/lib/Table/index.ts +0 -2
  255. package/src/lib/Tabs/RouteTabs.tsx +0 -54
  256. package/src/lib/Tabs/TabPanel.tsx +0 -42
  257. package/src/theme/baseTheme.ts +0 -128
  258. package/src/theme/fonts.d.ts +0 -2
  259. package/src/theme/index.ts +0 -126
  260. package/src/theme/inputThemeOptions.ts +0 -126
  261. package/src/theme/stepperThemeOptions.ts +0 -20
  262. package/src/theme/tableThemeOptions.ts +0 -50
  263. package/src/theme/typographyThemeOptions.ts +0 -32
  264. package/src/utils/common.ts +0 -73
  265. package/src/utils/dem.ts +0 -431
  266. package/src/utils/hooks.ts +0 -41
  267. package/src/utils/ui-utils.tsx +0 -132
  268. package/src/utils/validators.ts +0 -14
  269. package/tsconfig.json +0 -25
  270. package/tsconfig.lib.json +0 -23
  271. package/tsconfig.spec.json +0 -20
@@ -1 +1 @@
1
- export * from './PropertyValueField';
1
+ export * from './PropertyValueField';
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { RefCallBack } from 'react-hook-form';
3
+ import { PropertyUnion } from '../../../interfaces';
4
+ type Props = {
5
+ property: PropertyUnion;
6
+ name: string;
7
+ label?: string;
8
+ useExpression?: boolean;
9
+ required?: boolean;
10
+ inputRef: RefCallBack;
11
+ };
12
+ export declare const PropertyWidget: ({ property, name, label, useExpression, inputRef }: Props) => JSX.Element;
13
+ export default PropertyWidget;
@@ -1 +1 @@
1
- export * from './PropertyWidget';
1
+ export * from './PropertyWidget';
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { CustomPropertyFieldProps } from '../../../interfaces';
3
+ type Props = {
4
+ parentFieldName?: string;
5
+ hideAddButton?: boolean;
6
+ focusOnIndex?: number;
7
+ required?: boolean;
8
+ entityDefinition?: boolean;
9
+ globalParameter?: boolean;
10
+ customPropertyFields?: CustomPropertyFieldProps[];
11
+ };
12
+ export declare const CreatePropertiesList: ({ parentFieldName, hideAddButton, focusOnIndex, required, entityDefinition, globalParameter, customPropertyFields, }: Props) => JSX.Element;
13
+ export default CreatePropertiesList;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { CustomPropertyFieldProps } from '../../../interfaces';
3
+ type Props = {
4
+ propertyFieldName: string;
5
+ entityDefinition?: boolean;
6
+ globalParameter?: boolean;
7
+ customPropertyFields?: CustomPropertyFieldProps[];
8
+ };
9
+ export declare const CreatePropertyFormFields: ({ propertyFieldName, entityDefinition, globalParameter, customPropertyFields, }: Props) => JSX.Element;
10
+ export default CreatePropertyFormFields;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { CustomPropertyFieldProps } from '../../../interfaces';
3
+ type Props = CustomPropertyFieldProps & {
4
+ propertyFieldName: string;
5
+ };
6
+ export declare const CustomPropertyField: ({ name, label, propertyFieldName, type, decimal, options, required, }: Props) => JSX.Element;
7
+ export default CustomPropertyField;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ type Props = {
3
+ propertyFieldName: string;
4
+ };
5
+ declare const BigDecimalPropertyFields: ({ propertyFieldName }: Props) => JSX.Element;
6
+ export default BigDecimalPropertyFields;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ type Props = {
3
+ propertyFieldName: string;
4
+ defaultValue?: string;
5
+ };
6
+ declare const DateAdditionalFields: ({ propertyFieldName, defaultValue }: Props) => JSX.Element;
7
+ export default DateAdditionalFields;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ type Props = {
3
+ parentPropertyFieldName: string;
4
+ entityDefinition?: boolean;
5
+ globalParameter?: boolean;
6
+ };
7
+ declare const EntityAdditionalFields: ({ parentPropertyFieldName, entityDefinition, globalParameter, }: Props) => JSX.Element;
8
+ export default EntityAdditionalFields;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ type Props = {
3
+ propertyFieldName: string;
4
+ };
5
+ declare const EntityReferencePropertyFields: ({ propertyFieldName }: Props) => JSX.Element;
6
+ export default EntityReferencePropertyFields;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { PropertyType } from '../../../../interfaces';
3
+ type Props = {
4
+ propertyType: PropertyType;
5
+ propertyFieldName: string;
6
+ entityDefinition?: boolean;
7
+ globalParameter?: boolean;
8
+ };
9
+ export declare const PropertyAdditionalFields: ({ propertyType, propertyFieldName, entityDefinition, globalParameter, }: Props) => JSX.Element;
10
+ export default PropertyAdditionalFields;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ type Props = {
3
+ propertyFieldName: string;
4
+ };
5
+ declare const StringPropertyFields: ({ propertyFieldName }: Props) => JSX.Element;
6
+ export default StringPropertyFields;
@@ -1 +1 @@
1
- export * from './PropertyAdditionalFields';
1
+ export * from './PropertyAdditionalFields';
@@ -1,2 +1,2 @@
1
- export * from './CreatePropertiesList';
2
- export * from './CreatePropertyFormFields';
1
+ export * from './CreatePropertiesList';
2
+ export * from './CreatePropertyFormFields';
@@ -0,0 +1,6 @@
1
+ import { CustomPropertyFieldProps } from '../../../interfaces';
2
+ declare const useCustomFields: (customPropertyFields: CustomPropertyFieldProps[]) => {
3
+ customCheckboxes: CustomPropertyFieldProps[];
4
+ customFields: CustomPropertyFieldProps[];
5
+ };
6
+ export default useCustomFields;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { PropertiesArrayType, PropertiesObjectType } from '../../../interfaces';
3
+ type Props = {
4
+ properties: PropertiesObjectType<unknown> | PropertiesArrayType<unknown>;
5
+ expandAll?: boolean;
6
+ };
7
+ export declare const ViewPropertiesList: ({ properties, expandAll }: Props) => JSX.Element;
8
+ export default ViewPropertiesList;
@@ -1 +1 @@
1
- export * from './ViewPropertiesList';
1
+ export * from './ViewPropertiesList';
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { PropertiesArrayType } from '../../../interfaces';
3
+ type Props = {
4
+ properties: PropertiesArrayType;
5
+ };
6
+ declare const EntityPropertiesShortView: ({ properties }: Props) => JSX.Element;
7
+ export default EntityPropertiesShortView;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { PropertiesArrayType } from '../../../interfaces';
3
+ type Props = {
4
+ properties: PropertiesArrayType;
5
+ parentNames?: string[];
6
+ };
7
+ declare const _default: import("react").MemoExoticComponent<({ properties, parentNames }: Props) => JSX.Element>;
8
+ export default _default;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { PropertyUnion } from '../../../interfaces';
3
+ type Props = {
4
+ property: PropertyUnion;
5
+ };
6
+ declare const PropertyDataTable: ({ property }: Props) => JSX.Element;
7
+ export default PropertyDataTable;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { PropertyUnion } from '../../../interfaces';
3
+ type PropertyItemProps = {
4
+ property: PropertyUnion;
5
+ showName: boolean;
6
+ showType: boolean;
7
+ };
8
+ declare const PropertyItem: ({ property, showName, showType }: PropertyItemProps) => JSX.Element;
9
+ export default PropertyItem;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { PropertyUnion } from '../../../interfaces';
3
+ type Props = {
4
+ property: PropertyUnion;
5
+ parentNames?: string[];
6
+ defaultExpanded?: boolean;
7
+ };
8
+ export declare const ViewProperty: ({ property, parentNames, defaultExpanded }: Props) => JSX.Element;
9
+ export default ViewProperty;
@@ -1 +1 @@
1
- export * from './ViewProperty';
1
+ export * from './ViewProperty';
@@ -1,5 +1,5 @@
1
- export * from './UpsertProperty';
2
- export * from './PropertyValueField';
3
- export * from './ViewProperty';
4
- export * from './ViewPropertiesList';
5
- export * from './PropertyFiller';
1
+ export * from './UpsertProperty';
2
+ export * from './PropertyValueField';
3
+ export * from './ViewProperty';
4
+ export * from './ViewPropertiesList';
5
+ export * from './PropertyFiller';
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import type { Route } from '../../interfaces';
3
+ type Props = {
4
+ routes: Route[];
5
+ theme?: any;
6
+ title?: string;
7
+ id?: string;
8
+ };
9
+ export declare const Sidebar: ({ routes, theme, title, id }: Props) => JSX.Element;
10
+ export {};
@@ -0,0 +1,117 @@
1
+ /// <reference types="react" />
2
+ export declare const Container: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
3
+ export declare const Drawer: import("@emotion/styled").StyledComponent<import("@mui/material/Drawer").DrawerProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
4
+ export declare const Header: import("@emotion/styled").StyledComponent<{
5
+ children?: import("react").ReactNode;
6
+ classes?: Partial<import("@mui/material/Toolbar").ToolbarClasses>;
7
+ disableGutters?: boolean;
8
+ variant?: "regular" | "dense";
9
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme>;
10
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
11
+ ref?: import("react").Ref<HTMLDivElement>;
12
+ }, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "disableGutters" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
13
+ export declare const List: import("@emotion/styled").StyledComponent<{
14
+ children?: import("react").ReactNode;
15
+ classes?: Partial<import("@mui/material/List").ListClasses>;
16
+ dense?: boolean;
17
+ disablePadding?: boolean;
18
+ subheader?: import("react").ReactNode;
19
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme>;
20
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & {
21
+ ref?: import("react").Ref<HTMLUListElement>;
22
+ }, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "dense" | "disablePadding" | "subheader"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
23
+ export declare const ListItem: import("@emotion/styled").StyledComponent<{
24
+ button?: false;
25
+ } & import("@mui/material/ListItem").ListItemBaseProps & {
26
+ components?: {
27
+ Root?: import("react").ElementType<any>;
28
+ };
29
+ componentsProps?: {
30
+ root?: import("react").HTMLAttributes<HTMLDivElement> & import("@mui/material/ListItem").ListItemComponentsPropsOverrides;
31
+ };
32
+ slotProps?: {
33
+ root?: import("react").HTMLAttributes<HTMLDivElement> & import("@mui/material/ListItem").ListItemComponentsPropsOverrides;
34
+ };
35
+ slots?: {
36
+ root?: import("react").ElementType<any>;
37
+ };
38
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
39
+ ref?: import("react").Ref<HTMLLIElement>;
40
+ }, "button" | "style" | "alignItems" | "classes" | "slotProps" | "children" | "slots" | "className" | "components" | "componentsProps" | "sx" | "disableGutters" | "dense" | "disabled" | "disablePadding" | "autoFocus" | "ContainerComponent" | "ContainerProps" | "divider" | "secondaryAction" | "selected"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
41
+ export declare const ListItemButton: import("@emotion/styled").StyledComponent<import("@mui/material/ListItemButton").ListItemButtonBaseProps & Omit<{
42
+ action?: import("react").Ref<import("@mui/material/ButtonBase").ButtonBaseActions>;
43
+ centerRipple?: boolean;
44
+ children?: import("react").ReactNode;
45
+ classes?: Partial<import("@mui/material/ButtonBase").ButtonBaseClasses>;
46
+ disabled?: boolean;
47
+ disableRipple?: boolean;
48
+ disableTouchRipple?: boolean;
49
+ focusRipple?: boolean;
50
+ focusVisibleClassName?: string;
51
+ LinkComponent?: import("react").ElementType<any>;
52
+ onFocusVisible?: import("react").FocusEventHandler<any>;
53
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme>;
54
+ tabIndex?: number;
55
+ TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps>;
56
+ touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions>;
57
+ }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
58
+ ref?: import("react").Ref<HTMLDivElement>;
59
+ }, "style" | "alignItems" | "classes" | "children" | "className" | "tabIndex" | "sx" | "disableGutters" | "dense" | "disabled" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "autoFocus" | "divider" | "selected"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
60
+ export declare const ListItemIcon: import("@emotion/styled").StyledComponent<import("@mui/material/ListItemIcon").ListItemIconProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
61
+ export declare const ListSubheader: import("@emotion/styled").StyledComponent<{
62
+ children?: import("react").ReactNode;
63
+ classes?: Partial<import("@mui/material/ListSubheader").ListSubheaderClasses>;
64
+ color?: "inherit" | "default" | "primary";
65
+ disableGutters?: boolean;
66
+ disableSticky?: boolean;
67
+ inset?: boolean;
68
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme>;
69
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
70
+ ref?: import("react").Ref<HTMLLIElement>;
71
+ }, "color" | "inset" | "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "disableGutters" | "disableSticky"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
72
+ export declare const ListItemText: import("@emotion/styled").StyledComponent<import("@mui/material/ListItemText").ListItemTextProps<import("react").ElementType<any>, import("react").ElementType<any>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
73
+ export declare const ChildrenList: import("@emotion/styled").StyledComponent<{
74
+ children?: import("react").ReactNode;
75
+ classes?: Partial<import("@mui/material/List").ListClasses>;
76
+ dense?: boolean;
77
+ disablePadding?: boolean;
78
+ subheader?: import("react").ReactNode;
79
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme>;
80
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & {
81
+ ref?: import("react").Ref<HTMLUListElement>;
82
+ }, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "dense" | "disablePadding" | "subheader"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
83
+ export declare const CollapseButton: import("@emotion/styled").StyledComponent<{
84
+ action?: import("react").Ref<import("@mui/material/ButtonBase").ButtonBaseActions>;
85
+ centerRipple?: boolean;
86
+ children?: import("react").ReactNode;
87
+ classes?: Partial<import("@mui/material/ButtonBase").ButtonBaseClasses>;
88
+ disabled?: boolean;
89
+ disableRipple?: boolean;
90
+ disableTouchRipple?: boolean;
91
+ focusRipple?: boolean;
92
+ focusVisibleClassName?: string;
93
+ LinkComponent?: import("react").ElementType<any>;
94
+ onFocusVisible?: import("react").FocusEventHandler<any>;
95
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme>;
96
+ tabIndex?: number;
97
+ TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps>;
98
+ touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions>;
99
+ } & Omit<{
100
+ action?: import("react").Ref<import("@mui/material/ButtonBase").ButtonBaseActions>;
101
+ centerRipple?: boolean;
102
+ children?: import("react").ReactNode;
103
+ classes?: Partial<import("@mui/material/ButtonBase").ButtonBaseClasses>;
104
+ disabled?: boolean;
105
+ disableRipple?: boolean;
106
+ disableTouchRipple?: boolean;
107
+ focusRipple?: boolean;
108
+ focusVisibleClassName?: string;
109
+ LinkComponent?: import("react").ElementType<any>;
110
+ onFocusVisible?: import("react").FocusEventHandler<any>;
111
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme>;
112
+ tabIndex?: number;
113
+ TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps>;
114
+ touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions>;
115
+ }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
116
+ ref?: import("react").Ref<HTMLButtonElement>;
117
+ }, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "tabIndex" | "sx" | "disabled" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ type SidebarContextProps = {
3
+ collapsed: boolean;
4
+ toggleCollapse: () => void;
5
+ };
6
+ export declare const SidebarContext: import("react").Context<SidebarContextProps>;
7
+ export declare const useSidebarContext: () => SidebarContextProps;
8
+ export declare const SidebarContextProvider: ({ children }: {
9
+ children: any;
10
+ }) => JSX.Element;
11
+ export {};
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { Route } from '../../interfaces';
3
+ type Props = {
4
+ title?: string;
5
+ routes: Route[];
6
+ id?: string;
7
+ };
8
+ declare const SidebarDrawer: ({ title, routes, id }: Props) => JSX.Element;
9
+ export default SidebarDrawer;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ type Props = {
3
+ src: string;
4
+ alt?: string;
5
+ };
6
+ export declare const MenuIcon: ({ src, alt }: Props) => JSX.Element;
7
+ export default MenuIcon;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import type { Route } from '../../../interfaces';
3
+ type Props = {
4
+ route: Route;
5
+ };
6
+ declare const SidebarLink: ({ route }: Props) => JSX.Element;
7
+ export default SidebarLink;
@@ -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,12 @@
1
+ declare const _default: (params: void, styleOverrides?: {
2
+ props: {
3
+ classes?: Record<string, string>;
4
+ } & Record<string, unknown>;
5
+ ownerState?: Record<string, unknown>;
6
+ }) => {
7
+ classes: Record<"root", string>;
8
+ theme: import("@mui/material").Theme;
9
+ css: import("tss-react/types").Css;
10
+ cx: import("tss-react/types").Cx;
11
+ };
12
+ export default _default;
@@ -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,12 @@
1
+ declare const _default: (params: void, styleOverrides?: {
2
+ props: {
3
+ classes?: Record<string, string>;
4
+ } & Record<string, unknown>;
5
+ ownerState?: Record<string, unknown>;
6
+ }) => {
7
+ classes: Record<"root", string>;
8
+ theme: import("@mui/material").Theme;
9
+ css: import("tss-react/types").Css;
10
+ cx: import("tss-react/types").Cx;
11
+ };
12
+ export default _default;
@@ -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 {};