@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,24 @@
1
+ /// <reference types="react" />
2
+ import AceEditor from 'react-ace';
3
+ import 'ace-builds/src-noconflict/mode-python';
4
+ import 'ace-builds/src-noconflict/theme-monokai';
5
+ import 'ace-builds/src-noconflict/ext-language_tools';
6
+ import { Control } from 'react-hook-form';
7
+ export interface ControlAceEditorProps {
8
+ name: string;
9
+ control: Control<any>;
10
+ mode?: string;
11
+ label?: string;
12
+ width?: string;
13
+ height?: string;
14
+ theme?: string;
15
+ readOnly?: boolean;
16
+ required?: boolean;
17
+ validateJson?: boolean;
18
+ fontSize?: number;
19
+ validate?: boolean;
20
+ parseValue?: boolean;
21
+ [key: string]: unknown;
22
+ }
23
+ export declare const ControlAceEditor: import("react").ForwardRefExoticComponent<Omit<ControlAceEditorProps, "ref"> & import("react").RefAttributes<AceEditor>>;
24
+ export default ControlAceEditor;
@@ -0,0 +1,69 @@
1
+ /// <reference types="react" />
2
+ import { AutocompleteProps } from '@mui/material/Autocomplete';
3
+ import { TextFieldProps } from '@mui/material/TextField';
4
+ import { Control } from 'react-hook-form';
5
+ import { ValidateFunc } from '../../interfaces';
6
+ /**
7
+ * This interface is referencing the [[ControlAutocomplete]] component props.
8
+ * @category Forms
9
+ */
10
+ export type ControlAutocompleteProps = Omit<AutocompleteProps<unknown, boolean, boolean, boolean, React.ElementType<any>>, 'renderInput'> & {
11
+ /**
12
+ * React Hook Form control `name` propery
13
+ */
14
+ name: string;
15
+ /**
16
+ * Label for MUI TextField select component
17
+ */
18
+ label?: string;
19
+ /**
20
+ * React Hook Form `control`
21
+ */
22
+ control: Control<any>;
23
+ /**
24
+ * Is input required flag
25
+ */
26
+ required?: boolean;
27
+ /**
28
+ * React Hook Form `defaultValue`
29
+ */
30
+ defaultValue?: unknown;
31
+ /**
32
+ * Is disabled input flag
33
+ */
34
+ disabled?: boolean;
35
+ /**
36
+ * React Hook Form validate function
37
+ * ```typescript
38
+ * type ValidateFunc = (value: string) => boolean | string;
39
+ * ```
40
+ */
41
+ validate?: ValidateFunc | Record<string, ValidateFunc>;
42
+ /**
43
+ * Hide error message flag
44
+ */
45
+ hideErrorMessage?: boolean;
46
+ /**
47
+ * Custom onChange functionƒ
48
+ */
49
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>, value: unknown) => void;
50
+ /**
51
+ * Key for option label
52
+ */
53
+ labelKey?: string;
54
+ /**
55
+ * Key for option value
56
+ */
57
+ valueKey?: string;
58
+ /**
59
+ * Select options
60
+ */
61
+ options: string[] | unknown[];
62
+ textFieldProps?: TextFieldProps;
63
+ };
64
+ /**
65
+ * Material UI `Autocomplete` controlled component. Used with react-hook-form
66
+ * @category Forms
67
+ */
68
+ export declare const ControlAutocomplete: ({ control, validate, name, label, required, defaultValue, disabled, hideErrorMessage, onChange: customOnChange, labelKey, valueKey, options, multiple, textFieldProps, disableCloseOnSelect, ...autocompleteProps }: ControlAutocompleteProps) => JSX.Element;
69
+ export default ControlAutocomplete;
@@ -0,0 +1,51 @@
1
+ /// <reference types="react" />
2
+ import { CheckboxProps } from '@mui/material/Checkbox';
3
+ import { Control } from 'react-hook-form';
4
+ import { ValidateFunc } from '../../interfaces';
5
+ /**
6
+ * This interface is referencing the [[ControlCheckbox]] component props.
7
+ * @category Forms
8
+ */
9
+ export type ControlCheckboxProps = CheckboxProps & {
10
+ /**
11
+ * React Hook Form control `name` propery
12
+ */
13
+ name: string;
14
+ /**
15
+ * Label for MUI TextField component
16
+ */
17
+ label?: string;
18
+ /**
19
+ * React Hook Form `control`
20
+ */
21
+ control: Control<any>;
22
+ /**
23
+ * React Hook Form `defaultValue`
24
+ */
25
+ defaultValue?: unknown;
26
+ /**
27
+ * Is disabled input flag
28
+ */
29
+ disabled?: boolean;
30
+ /**
31
+ * React Hook Form validate function
32
+ * ```typescript
33
+ * type ValidateFunc = (value: string) => boolean | string;
34
+ * ```
35
+ */
36
+ validate?: ValidateFunc | Record<string, ValidateFunc>;
37
+ /**
38
+ * Hide error message flag
39
+ */
40
+ hideErrorMessage?: boolean;
41
+ /**
42
+ * Custom onChange functionƒ
43
+ */
44
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
45
+ };
46
+ /**
47
+ * Material UI `Checkbox` controlled component. Used with react-hook-form
48
+ * @category Forms
49
+ */
50
+ export declare const ControlCheckbox: ({ control, validate, name, label, required, defaultValue, disabled, hideErrorMessage, onChange: customOnChange, ...checkboxProps }: ControlCheckboxProps) => JSX.Element;
51
+ export default ControlCheckbox;
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import { Control } from 'react-hook-form';
3
+ type Props = {
4
+ /**
5
+ * React Hook Form `control`
6
+ */
7
+ control: Control<any>;
8
+ /**
9
+ * Is input required flag
10
+ */
11
+ required?: boolean;
12
+ name: string;
13
+ label?: string;
14
+ format?: string;
15
+ hideErrorMessage?: boolean;
16
+ };
17
+ export declare const ControlDate: ({ control, name, required, label, format, hideErrorMessage, }: Props) => JSX.Element;
18
+ export default ControlDate;
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import { Control } from 'react-hook-form';
3
+ type Props = {
4
+ /**
5
+ * React Hook Form `control`
6
+ */
7
+ control: Control<any>;
8
+ /**
9
+ * Is input required flag
10
+ */
11
+ required?: boolean;
12
+ name: string;
13
+ label?: string;
14
+ format?: string;
15
+ hideErrorMessage?: boolean;
16
+ };
17
+ export declare const ControlDateTime: ({ control, name, required, label, format, hideErrorMessage, }: Props) => JSX.Element;
18
+ export default ControlDateTime;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { ControlInputProps } from './ControlInput';
3
+ export declare const ControlDebouncedInput: ({ control, validate, name, label, required, defaultValue, disabled, textarea, hideErrorMessage, onChange: customOnChange, ...textFieldProps }: ControlInputProps) => JSX.Element;
4
+ export default ControlDebouncedInput;
@@ -0,0 +1,59 @@
1
+ /// <reference types="react" />
2
+ import { Control } from 'react-hook-form';
3
+ import { TextFieldProps } from '@mui/material/TextField';
4
+ import { ValidateFunc } from '../../interfaces';
5
+ /**
6
+ * This interface is referencing the [[ControlInput]] component props.
7
+ * @category Forms
8
+ */
9
+ export type ControlInputProps = TextFieldProps & {
10
+ /**
11
+ * React Hook Form control `name` propery
12
+ */
13
+ name: string;
14
+ /**
15
+ * Label for MUI TextField component
16
+ */
17
+ label?: string;
18
+ /**
19
+ * React Hook Form `control`
20
+ */
21
+ control: Control<any>;
22
+ /**
23
+ * Is input required flag
24
+ */
25
+ required?: boolean;
26
+ /**
27
+ * React Hook Form `defaultValue`
28
+ */
29
+ defaultValue?: unknown;
30
+ /**
31
+ * Is disabled input flag
32
+ */
33
+ disabled?: boolean;
34
+ /**
35
+ * React Hook Form validate function
36
+ * ```typescript
37
+ * type ValidateFunc = (value: string) => boolean | string;
38
+ * ```
39
+ */
40
+ validate?: ValidateFunc | Record<string, ValidateFunc>;
41
+ /**
42
+ * Is input textarea flag
43
+ */
44
+ textarea?: boolean;
45
+ /**
46
+ * Hide error message flag
47
+ */
48
+ hideErrorMessage?: boolean;
49
+ /**
50
+ * Custom onChange functionƒ
51
+ */
52
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
53
+ };
54
+ /**
55
+ * Material UI `TextField` controlled component. Used with react-hook-form
56
+ * @category Forms
57
+ */
58
+ export declare const ControlInput: ({ control, validate, name, label, required, defaultValue, disabled, textarea, hideErrorMessage, onChange: customOnChange, ...textFieldProps }: ControlInputProps) => JSX.Element;
59
+ export default ControlInput;
@@ -0,0 +1,51 @@
1
+ /// <reference types="react" />
2
+ import { TextFieldProps } from '@mui/material/TextField';
3
+ import { Control } from 'react-hook-form';
4
+ import { ValidateFunc } from '../../interfaces';
5
+ type Props = TextFieldProps & {
6
+ /**
7
+ * React Hook Form control `name` propery
8
+ */
9
+ name: string;
10
+ /**
11
+ * Label for MUI TextField component
12
+ */
13
+ label?: string;
14
+ /**
15
+ * React Hook Form `control`
16
+ */
17
+ control: Control;
18
+ /**
19
+ * Is input required flag
20
+ */
21
+ required?: boolean;
22
+ /**
23
+ * React Hook Form `defaultValue`
24
+ */
25
+ defaultValue?: number;
26
+ /**
27
+ * Is disabled input flag
28
+ */
29
+ disabled?: boolean;
30
+ /**
31
+ * React Hook Form validate function
32
+ * ```typescript
33
+ * type ValidateFunc = (value: string) => boolean | string;
34
+ * ```
35
+ */
36
+ validate?: ValidateFunc | Record<string, ValidateFunc>;
37
+ /**
38
+ * Hide error message flag
39
+ */
40
+ hideErrorMessage?: boolean;
41
+ /**
42
+ * Custom onChange function
43
+ */
44
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
45
+ /**
46
+ * Is number decimal or integer flag
47
+ */
48
+ decimal?: boolean;
49
+ };
50
+ export declare const ControlNumberInput: ({ control, validate, name, label, required, defaultValue, disabled, hideErrorMessage, onChange: customOnChange, decimal, ...textFieldProps }: Props) => JSX.Element;
51
+ export default ControlNumberInput;
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import { ControlAutocompleteProps } from './ControlAutocomplete';
3
+ import { PaginateData } from '../../interfaces';
4
+ type PaginateParams = {
5
+ page: string;
6
+ size: string;
7
+ [key: string]: string;
8
+ };
9
+ type ControlQueryAutocompleteProps<T> = Omit<ControlAutocompleteProps, 'options'> & {
10
+ searchBy: string;
11
+ sortBy?: string;
12
+ queryFunction: (params: PaginateParams) => Promise<PaginateData<T>>;
13
+ itemQueryFunction?: (valueKey: string) => Promise<T>;
14
+ };
15
+ export declare function ControlQueryAutocomplete<T>({ name, label, control, required, searchBy, labelKey, multiple, disabled, valueKey, sortBy, hideErrorMessage, disableCloseOnSelect, textFieldProps, onChange, queryFunction, validate, itemQueryFunction, ...autocompleteProps }: ControlQueryAutocompleteProps<T>): JSX.Element;
16
+ export default ControlQueryAutocomplete;
@@ -0,0 +1,66 @@
1
+ /// <reference types="react" />
2
+ import { Control } from 'react-hook-form';
3
+ import { ValidateFunc } from '../../interfaces';
4
+ /**
5
+ * This interface is referencing the [[ControlRadioBtn]] component props.
6
+ * @category Forms
7
+ */
8
+ export interface ControlRadioProps {
9
+ /**
10
+ * React Hook Form `control`
11
+ */
12
+ control: Control<any>;
13
+ /**
14
+ * React Hook Form control `name` propery
15
+ */
16
+ name: string;
17
+ /**
18
+ * Label for component
19
+ */
20
+ label?: string;
21
+ /**
22
+ * Radio group values
23
+ */
24
+ values: string[] | unknown[];
25
+ /**
26
+ * Is input required flag
27
+ */
28
+ required?: boolean;
29
+ /**
30
+ * React Hook Form `defaultValue`
31
+ */
32
+ defaultValue?: unknown;
33
+ /**
34
+ * Is disabled input flag
35
+ */
36
+ disabled?: boolean;
37
+ /**
38
+ * Hide error message flag
39
+ */
40
+ hideErrorMessage?: boolean;
41
+ /**
42
+ * Custom onChange functionƒ
43
+ */
44
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
45
+ /**
46
+ * React Hook Form validate function
47
+ * ```typescript
48
+ * type ValidateFunc = (value: string) => boolean | string;
49
+ * ```
50
+ */
51
+ validate?: ValidateFunc | Record<string, ValidateFunc>;
52
+ /**
53
+ * Key for option label
54
+ */
55
+ labelKey?: string;
56
+ /**
57
+ * Key for option value
58
+ */
59
+ valueKey?: string;
60
+ }
61
+ /**
62
+ * Material UI `Radio` controlled component. Used with react-hook-form
63
+ * @category Forms
64
+ */
65
+ export declare const ControlRadio: ({ name, label, values, control, required, defaultValue, disabled, hideErrorMessage, labelKey, valueKey, validate, onChange: customOnChange, }: ControlRadioProps) => JSX.Element;
66
+ export default ControlRadio;
@@ -0,0 +1,67 @@
1
+ /// <reference types="react" />
2
+ import { TextFieldProps } from '@mui/material/TextField';
3
+ import { Control } from 'react-hook-form';
4
+ import { ValidateFunc } from '../../interfaces';
5
+ /**
6
+ * This interface is referencing the [[ControlSelect]] component props.
7
+ * @category Forms
8
+ */
9
+ export type ControlSelectProps = TextFieldProps & {
10
+ /**
11
+ * React Hook Form control `name` propery
12
+ */
13
+ name: string;
14
+ /**
15
+ * Label for MUI TextField select component
16
+ */
17
+ label?: string;
18
+ /**
19
+ * React Hook Form `control`
20
+ */
21
+ control: Control<any>;
22
+ /**
23
+ * Is input required flag
24
+ */
25
+ required?: boolean;
26
+ /**
27
+ * React Hook Form `defaultValue`
28
+ */
29
+ defaultValue?: unknown;
30
+ /**
31
+ * Is disabled input flag
32
+ */
33
+ disabled?: boolean;
34
+ /**
35
+ * React Hook Form validate function
36
+ * ```typescript
37
+ * type ValidateFunc = (value: string) => boolean | string;
38
+ * ```
39
+ */
40
+ validate?: ValidateFunc | Record<string, ValidateFunc>;
41
+ /**
42
+ * Hide error message flag
43
+ */
44
+ hideErrorMessage?: boolean;
45
+ /**
46
+ * Custom onChange functionƒ
47
+ */
48
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
49
+ /**
50
+ * Key for option label
51
+ */
52
+ labelKey?: string;
53
+ /**
54
+ * Key for option value
55
+ */
56
+ valueKey?: string;
57
+ /**
58
+ * Select options
59
+ */
60
+ options: string[] | unknown[];
61
+ };
62
+ /**
63
+ * Material UI `Select` controlled component. Used with react-hook-form
64
+ * @category Forms
65
+ */
66
+ export declare const ControlSelect: ({ control, validate, name, label, required, defaultValue, disabled, hideErrorMessage, onChange: customOnChange, labelKey, valueKey, options, ...textFieldProps }: ControlSelectProps) => JSX.Element;
67
+ export default ControlSelect;
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import { SwitchProps } from '@mui/material/Switch';
3
+ import { Control } from 'react-hook-form';
4
+ type Props = SwitchProps & {
5
+ /**
6
+ * React Hook Form `control`
7
+ */
8
+ control: Control<any>;
9
+ /**
10
+ * React Hook Form control `name` propery
11
+ */
12
+ name: string;
13
+ /**
14
+ * Material-UI FormControlLabel `label` prop
15
+ */
16
+ label?: string;
17
+ };
18
+ export declare const ControlSwitch: ({ control, name, label, ...switchProps }: Props) => JSX.Element;
19
+ export default ControlSwitch;
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import { Control } from 'react-hook-form';
3
+ type Props = {
4
+ /**
5
+ * React Hook Form `control`
6
+ */
7
+ control: Control<any>;
8
+ /**
9
+ * Is input required flag
10
+ */
11
+ required?: boolean;
12
+ name: string;
13
+ label?: string;
14
+ format?: string;
15
+ hideErrorMessage?: boolean;
16
+ };
17
+ export declare const ControlTime: ({ control, name, required, label, format, hideErrorMessage, }: Props) => JSX.Element;
18
+ export default ControlTime;
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * This interface is referencing the [[CopyButton]] component props.
4
+ * @category Forms
5
+ */
6
+ export interface CopyButtonProps {
7
+ /**
8
+ * Text to copy
9
+ */
10
+ copyText: string;
11
+ /**
12
+ * Tooltip help text
13
+ */
14
+ helpText?: string;
15
+ }
16
+ /**
17
+ * Copy value button
18
+ * @category Forms
19
+ */
20
+ export declare const CopyButton: ({ copyText, helpText }: CopyButtonProps) => JSX.Element;
@@ -1,15 +1,15 @@
1
- export * from './ControlInput';
2
- export * from './ControlDebouncedInput';
3
- export * from './ControlSelect';
4
- export * from './ControlCheckbox';
5
- export * from './ControlRadio';
6
- export * from './ControlAutocomplete';
7
- export * from './ControlQueryAutocomplete';
8
- export * from './CopyButton';
9
- export * from './BackButton';
10
- export * from './ControlAceEditor';
11
- export * from './ControlNumberInput';
12
- export * from './ControlSwitch';
13
- export * from './ControlDate';
14
- export * from './ControlDateTime';
15
- export * from './ControlTime';
1
+ export * from './ControlInput';
2
+ export * from './ControlDebouncedInput';
3
+ export * from './ControlSelect';
4
+ export * from './ControlCheckbox';
5
+ export * from './ControlRadio';
6
+ export * from './ControlAutocomplete';
7
+ export * from './ControlQueryAutocomplete';
8
+ export * from './CopyButton';
9
+ export * from './BackButton';
10
+ export * from './ControlAceEditor';
11
+ export * from './ControlNumberInput';
12
+ export * from './ControlSwitch';
13
+ export * from './ControlDate';
14
+ export * from './ControlDateTime';
15
+ export * from './ControlTime';
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ declare const useAutocomplete: ({ valueKey, labelKey }: {
3
+ valueKey: any;
4
+ labelKey: any;
5
+ }) => {
6
+ isOptionEqualToValue: (option: any, value: any) => boolean;
7
+ getOptionLabel: (option: any) => string;
8
+ renderOption: (props: any, option: any) => JSX.Element;
9
+ };
10
+ export default useAutocomplete;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import 'ace-builds/src-noconflict/ace';
3
+ import 'ace-builds/src-noconflict/mode-json';
4
+ type Props = {
5
+ title: string;
6
+ text?: string;
7
+ json?: any;
8
+ };
9
+ export declare const InfoItem: ({ title, text, json }: Props) => JSX.Element;
10
+ export default InfoItem;
@@ -1 +1 @@
1
- export * from './InfoItem';
1
+ export * from './InfoItem';
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { JsonPathPickerProperty } from '../../interfaces';
3
+ type Props = {
4
+ properties: JsonPathPickerProperty[];
5
+ open: boolean;
6
+ onClose: () => void;
7
+ onPaste: (path: string) => void;
8
+ };
9
+ export declare const JsonPathPicker: ({ open, onClose, onPaste, properties }: Props) => JSX.Element;
10
+ export default JsonPathPicker;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { PropertiesArrayType } from '../../interfaces';
3
+ type Props = {
4
+ properties: PropertiesArrayType;
5
+ parentKey?: string;
6
+ activePath: string;
7
+ prefix?: string;
8
+ onClick: (path: string) => void;
9
+ };
10
+ declare const PropertyStep: ({ properties, parentKey, activePath, prefix, onClick, }: Props) => JSX.Element;
11
+ export default PropertyStep;
@@ -1 +1 @@
1
- export * from './JsonPathPicker';
1
+ export * from './JsonPathPicker';
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ type Props = {
3
+ value: unknown;
4
+ height?: string;
5
+ };
6
+ export declare const JsonView: ({ value, height }: Props) => JSX.Element;
7
+ export {};
@@ -1 +1 @@
1
- export * from './JsonView';
1
+ export * from './JsonView';
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * This interface is referencing the [[Loader]] component props.
4
+ * @category Common UI components
5
+ */
6
+ export interface LoaderProps {
7
+ /**
8
+ * Background transparency flag. Default: `rgba(255, 255, 255, .3)`
9
+ */
10
+ transparent?: boolean;
11
+ /**
12
+ * CSS `position` property. Default: `absolute`
13
+ */
14
+ position?: 'absolute' | 'relative' | 'fixed';
15
+ }
16
+ /**
17
+ * Loader screen component. Used in the data loading process
18
+ * @category Common UI components
19
+ */
20
+ export declare const Loader: ({ transparent, position }: LoaderProps) => JSX.Element;
21
+ export default Loader;
@@ -1 +1 @@
1
- export * from './Loader';
1
+ export * from './Loader';
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import 'ace-builds/src-noconflict/ace';
3
+ import 'ace-builds/src-noconflict/mode-json';
4
+ type Props = {
5
+ open: boolean;
6
+ value: string;
7
+ onClose: () => void;
8
+ };
9
+ export declare const JsonModalView: React.FC<Props>;
10
+ export default JsonModalView;
@@ -1 +1 @@
1
- export * from './JsonModalView';
1
+ export * from './JsonModalView';
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import 'ace-builds/src-noconflict/mode-json';
3
+ import { RefCallBack } from 'react-hook-form';
4
+ type Props = {
5
+ validate?: boolean;
6
+ name: string;
7
+ inputRef: RefCallBack;
8
+ };
9
+ declare const JsonEditor: ({ validate, name, inputRef }: Props) => JSX.Element;
10
+ export default JsonEditor;