@dartech/arsenal-ui 1.5.88 → 1.5.90

Sign up to get free protection for your applications and to get access to all the features.
Files changed (215) hide show
  1. package/index.d.ts +5 -5
  2. package/index.esm.js +1 -1
  3. package/package.json +3 -3
  4. package/src/consts/index.d.ts +14 -14
  5. package/src/interfaces/common.d.ts +24 -24
  6. package/src/interfaces/definition.d.ts +174 -174
  7. package/src/interfaces/definition3.d.ts +112 -112
  8. package/src/interfaces/index.d.ts +4 -4
  9. package/src/interfaces/ui.d.ts +74 -74
  10. package/src/lib/Alert/Alert.d.ts +55 -55
  11. package/src/lib/Alert/index.d.ts +1 -1
  12. package/src/lib/Breadcrumbs/Breadcrumbs.d.ts +9 -9
  13. package/src/lib/Breadcrumbs/Breadcrumbs.styled.d.ts +2 -2
  14. package/src/lib/Breadcrumbs/index.d.ts +1 -1
  15. package/src/lib/ContentLayout/ContentLayout.d.ts +10 -10
  16. package/src/lib/ContentLayout/index.d.ts +1 -1
  17. package/src/lib/Definition/CreateDefinition/CreateDefinition.d.ts +26 -26
  18. package/src/lib/Definition/CreateDefinition/Dem3CreateDefinition.d.ts +23 -23
  19. package/src/lib/Definition/CreateDefinition/index.d.ts +2 -2
  20. package/src/lib/Definition/DefinitionFiller/DefinitionFiller.d.ts +21 -21
  21. package/src/lib/Definition/DefinitionFiller/Dem3DefinitionFiller.d.ts +17 -17
  22. package/src/lib/Definition/DefinitionFiller/index.d.ts +2 -2
  23. package/src/lib/Definition/DefinitionValueView/DefinitionValueView.d.ts +8 -8
  24. package/src/lib/Definition/DefinitionValueView/FileDefinitionValueView.d.ts +8 -8
  25. package/src/lib/Definition/DefinitionValueView/PropertyDataView.d.ts +9 -9
  26. package/src/lib/Definition/DefinitionValueView/index.d.ts +1 -1
  27. package/src/lib/Definition/Dem3DefinitionView/Dem3DefinitionView.d.ts +8 -8
  28. package/src/lib/Definition/Dem3DefinitionView/FileDefinitionValueView.d.ts +8 -8
  29. package/src/lib/Definition/Dem3DefinitionView/NodeDataView.d.ts +9 -9
  30. package/src/lib/Definition/Dem3DefinitionView/index.d.ts +1 -1
  31. package/src/lib/Definition/index.d.ts +4 -4
  32. package/src/lib/DefinitionNode/NodeFormBuilder/ArrayNodeFormBuilder.d.ts +20 -20
  33. package/src/lib/DefinitionNode/NodeFormBuilder/ArrayNodeFormBuilderControl.d.ts +22 -22
  34. package/src/lib/DefinitionNode/NodeFormBuilder/NodeFormBuilderContext.d.ts +20 -20
  35. package/src/lib/DefinitionNode/NodeFormBuilder/NodeFormBuilderControl.d.ts +22 -22
  36. package/src/lib/DefinitionNode/NodeFormBuilder/Widget/ArrayNodeWidget.d.ts +18 -18
  37. package/src/lib/DefinitionNode/NodeFormBuilder/Widget/ArrayNodeWidgetControl.d.ts +20 -20
  38. package/src/lib/DefinitionNode/NodeFormBuilder/Widget/NodeWidget.d.ts +19 -19
  39. package/src/lib/DefinitionNode/NodeFormBuilder/Widget/index.d.ts +3 -3
  40. package/src/lib/DefinitionNode/NodeFormBuilder/index.d.ts +4 -4
  41. package/src/lib/DefinitionNode/NodeFormBuilder/styled.d.ts +18 -18
  42. package/src/lib/DefinitionNode/NodeFormBuilder/useNodeFormBuilder.d.ts +26 -26
  43. package/src/lib/DefinitionNode/UpsertNode/CreateNode/CreateNode.d.ts +29 -29
  44. package/src/lib/DefinitionNode/UpsertNode/CreateNode/CreateNodeWithContext.d.ts +27 -27
  45. package/src/lib/DefinitionNode/UpsertNode/CreateNode/index.d.ts +3 -3
  46. package/src/lib/DefinitionNode/UpsertNode/CustomNodeField.d.ts +7 -7
  47. package/src/lib/DefinitionNode/UpsertNode/NodeAdditionalFields/ArrayAdditionalFields.d.ts +19 -19
  48. package/src/lib/DefinitionNode/UpsertNode/NodeAdditionalFields/BigDecimalPropertyFields.d.ts +8 -8
  49. package/src/lib/DefinitionNode/UpsertNode/NodeAdditionalFields/DateAdditionalFields.d.ts +10 -10
  50. package/src/lib/DefinitionNode/UpsertNode/NodeAdditionalFields/EntityReferencePropertyFields.d.ts +12 -12
  51. package/src/lib/DefinitionNode/UpsertNode/NodeAdditionalFields/NodeAdditionalFields.d.ts +21 -21
  52. package/src/lib/DefinitionNode/UpsertNode/NodeAdditionalFields/ObjectAdditionalFields/ObjectAdditionalFields.d.ts +18 -18
  53. package/src/lib/DefinitionNode/UpsertNode/NodeAdditionalFields/ObjectAdditionalFields/ObjectNodeProperties/ListItem.d.ts +31 -31
  54. package/src/lib/DefinitionNode/UpsertNode/NodeAdditionalFields/ObjectAdditionalFields/ObjectNodeProperties/ObjectNodeProperties.d.ts +33 -33
  55. package/src/lib/DefinitionNode/UpsertNode/NodeAdditionalFields/ObjectAdditionalFields/ObjectNodeProperties/index.d.ts +2 -2
  56. package/src/lib/DefinitionNode/UpsertNode/NodeAdditionalFields/ObjectAdditionalFields/index.d.ts +3 -3
  57. package/src/lib/DefinitionNode/UpsertNode/NodeAdditionalFields/index.d.ts +2 -2
  58. package/src/lib/DefinitionNode/UpsertNode/NodeForm.d.ts +21 -21
  59. package/src/lib/DefinitionNode/UpsertNode/NodeValueField/BooleanValueField.d.ts +9 -9
  60. package/src/lib/DefinitionNode/UpsertNode/NodeValueField/DateTimeValueField.d.ts +9 -9
  61. package/src/lib/DefinitionNode/UpsertNode/NodeValueField/DateValueField.d.ts +9 -9
  62. package/src/lib/DefinitionNode/UpsertNode/NodeValueField/FileValueWidget.d.ts +6 -6
  63. package/src/lib/DefinitionNode/UpsertNode/NodeValueField/JsonValueField.d.ts +8 -8
  64. package/src/lib/DefinitionNode/UpsertNode/NodeValueField/NodeValueField.d.ts +19 -19
  65. package/src/lib/DefinitionNode/UpsertNode/NodeValueField/StringValueField.d.ts +14 -14
  66. package/src/lib/DefinitionNode/UpsertNode/NodeValueField/TimeValueField.d.ts +9 -9
  67. package/src/lib/DefinitionNode/UpsertNode/NodeValueField/index.d.ts +1 -1
  68. package/src/lib/DefinitionNode/UpsertNode/index.d.ts +4 -4
  69. package/src/lib/DefinitionNode/UpsertNode/useCustomFields.d.ts +7 -7
  70. package/src/lib/DefinitionNode/ViewNode/ObjectNodeShortView.d.ts +7 -7
  71. package/src/lib/DefinitionNode/ViewNode/ObjectNodeView.d.ts +9 -9
  72. package/src/lib/DefinitionNode/ViewNode/PropertyDataTable.d.ts +7 -7
  73. package/src/lib/DefinitionNode/ViewNode/PropertyItem.d.ts +9 -9
  74. package/src/lib/DefinitionNode/ViewNode/ViewNode.d.ts +9 -9
  75. package/src/lib/DefinitionNode/ViewNode/index.d.ts +2 -2
  76. package/src/lib/DefinitionNode/index.d.ts +3 -3
  77. package/src/lib/Forms/BackButton.d.ts +7 -7
  78. package/src/lib/Forms/ControlAceEditor.d.ts +23 -23
  79. package/src/lib/Forms/ControlArrayInput.d.ts +14 -14
  80. package/src/lib/Forms/ControlAutocomplete/ControlAutocomplete.d.ts +76 -76
  81. package/src/lib/Forms/ControlAutocomplete/ControlQueryAutocomplete.d.ts +20 -20
  82. package/src/lib/Forms/ControlAutocomplete/ListboxComponent.d.ts +3 -3
  83. package/src/lib/Forms/ControlAutocomplete/index.d.ts +2 -2
  84. package/src/lib/Forms/ControlAutocomplete/useAutocomplete.d.ts +10 -10
  85. package/src/lib/Forms/ControlCheckbox.d.ts +51 -51
  86. package/src/lib/Forms/ControlDate.d.ts +27 -27
  87. package/src/lib/Forms/ControlDateTime.d.ts +27 -27
  88. package/src/lib/Forms/ControlDebouncedInput.d.ts +4 -4
  89. package/src/lib/Forms/ControlInput.d.ts +63 -63
  90. package/src/lib/Forms/ControlNumberInput.d.ts +72 -72
  91. package/src/lib/Forms/ControlPeriodInput.d.ts +11 -11
  92. package/src/lib/Forms/ControlPhoneInput.d.ts +19 -19
  93. package/src/lib/Forms/ControlRadio.d.ts +70 -70
  94. package/src/lib/Forms/ControlSelect.d.ts +72 -72
  95. package/src/lib/Forms/ControlSwitch.d.ts +20 -20
  96. package/src/lib/Forms/ControlTime.d.ts +24 -24
  97. package/src/lib/Forms/CopyButton.d.ts +20 -20
  98. package/src/lib/Forms/index.d.ts +17 -17
  99. package/src/lib/InfoItem/InfoItem.d.ts +8 -8
  100. package/src/lib/InfoItem/index.d.ts +1 -1
  101. package/src/lib/JsonPathPicker/JsonPathPicker.d.ts +10 -10
  102. package/src/lib/JsonPathPicker/PropertyStep.d.ts +11 -11
  103. package/src/lib/JsonPathPicker/index.d.ts +1 -1
  104. package/src/lib/JsonView/JsonView.d.ts +9 -9
  105. package/src/lib/JsonView/index.d.ts +1 -1
  106. package/src/lib/Loader/Loader.d.ts +22 -22
  107. package/src/lib/Loader/index.d.ts +1 -1
  108. package/src/lib/Modals/JsonModalView.d.ts +12 -12
  109. package/src/lib/Modals/index.d.ts +1 -1
  110. package/src/lib/OverflowTooltip/OverflowTooltip.d.ts +4 -4
  111. package/src/lib/OverflowTooltip/index.d.ts +1 -1
  112. package/src/lib/Property/PropertyFiller/ControlFiller/ControlMultiplePropertyFiller.d.ts +26 -26
  113. package/src/lib/Property/PropertyFiller/ControlFiller/ControlMultiplePropertyWidget.d.ts +24 -24
  114. package/src/lib/Property/PropertyFiller/ControlFiller/ControlPropertyFiller.d.ts +26 -26
  115. package/src/lib/Property/PropertyFiller/ControlFiller/index.d.ts +3 -3
  116. package/src/lib/Property/PropertyFiller/JsonEditor.d.ts +9 -9
  117. package/src/lib/Property/PropertyFiller/MultiplePropertyFiller.d.ts +24 -24
  118. package/src/lib/Property/PropertyFiller/MultiplePropertyWidget.d.ts +22 -22
  119. package/src/lib/Property/PropertyFiller/PropertyFiller.d.ts +24 -24
  120. package/src/lib/Property/PropertyFiller/index.d.ts +2 -2
  121. package/src/lib/Property/PropertyFiller/styled.d.ts +18 -18
  122. package/src/lib/Property/PropertyFiller/usePropertyFiller.d.ts +26 -26
  123. package/src/lib/Property/PropertyValidator/NodeValidator.d.ts +9 -9
  124. package/src/lib/Property/PropertyValidator/NodesList.d.ts +9 -9
  125. package/src/lib/Property/PropertyValidator/NumericTypeValidator.d.ts +8 -8
  126. package/src/lib/Property/PropertyValidator/PropertyValidator.d.ts +10 -10
  127. package/src/lib/Property/PropertyValidator/PropertyValidatorContext.d.ts +3 -3
  128. package/src/lib/Property/PropertyValidator/StringTypeValidator.d.ts +8 -8
  129. package/src/lib/Property/PropertyValidator/ValidationNodeSelector.d.ts +10 -10
  130. package/src/lib/Property/PropertyValidator/index.d.ts +1 -1
  131. package/src/lib/Property/PropertyWidget/PropertyWidget.d.ts +23 -23
  132. package/src/lib/Property/PropertyWidget/index.d.ts +1 -1
  133. package/src/lib/Property/UpsertProperty/CreatePropertiesList/CreatePropertiesList.d.ts +36 -36
  134. package/src/lib/Property/UpsertProperty/CreatePropertiesList/ListItem.d.ts +29 -29
  135. package/src/lib/Property/UpsertProperty/CreatePropertiesList/index.d.ts +2 -2
  136. package/src/lib/Property/UpsertProperty/CreatePropertiesListContext.d.ts +30 -30
  137. package/src/lib/Property/UpsertProperty/CreatePropertyFormFields.d.ts +24 -24
  138. package/src/lib/Property/UpsertProperty/CustomPropertyField.d.ts +7 -7
  139. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/BigDecimalPropertyFields.d.ts +8 -8
  140. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/DateAdditionalFields.d.ts +9 -9
  141. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityAdditionalFields.d.ts +22 -22
  142. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityReferencePropertyFields.d.ts +12 -12
  143. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/PropertyAdditionalFields.d.ts +23 -23
  144. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/StringPropertyFields.d.ts +8 -8
  145. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/index.d.ts +1 -1
  146. package/src/lib/Property/UpsertProperty/PropertyValueField/BooleanValueField.d.ts +9 -9
  147. package/src/lib/Property/UpsertProperty/PropertyValueField/DateTimeValueField.d.ts +9 -9
  148. package/src/lib/Property/UpsertProperty/PropertyValueField/DateValueField.d.ts +9 -9
  149. package/src/lib/Property/UpsertProperty/PropertyValueField/FileValueWidget.d.ts +6 -6
  150. package/src/lib/Property/UpsertProperty/PropertyValueField/JsonValueField.d.ts +8 -8
  151. package/src/lib/Property/UpsertProperty/PropertyValueField/PropertyValueField.d.ts +23 -23
  152. package/src/lib/Property/UpsertProperty/PropertyValueField/StringValueField.d.ts +14 -14
  153. package/src/lib/Property/UpsertProperty/PropertyValueField/TimeValueField.d.ts +9 -9
  154. package/src/lib/Property/UpsertProperty/PropertyValueField/index.d.ts +1 -1
  155. package/src/lib/Property/UpsertProperty/index.d.ts +4 -4
  156. package/src/lib/Property/UpsertProperty/useCustomFields.d.ts +6 -6
  157. package/src/lib/Property/ViewPropertiesList/ViewPropertiesList.d.ts +8 -8
  158. package/src/lib/Property/ViewPropertiesList/index.d.ts +1 -1
  159. package/src/lib/Property/ViewProperty/EntityPropertiesShortView.d.ts +7 -7
  160. package/src/lib/Property/ViewProperty/EntityPropertiesView.d.ts +8 -8
  161. package/src/lib/Property/ViewProperty/PropertyDataTable.d.ts +7 -7
  162. package/src/lib/Property/ViewProperty/PropertyItem.d.ts +9 -9
  163. package/src/lib/Property/ViewProperty/ViewProperty.d.ts +9 -9
  164. package/src/lib/Property/ViewProperty/index.d.ts +1 -1
  165. package/src/lib/Property/index.d.ts +4 -4
  166. package/src/lib/Sidebar/Sidebar.d.ts +14 -14
  167. package/src/lib/Sidebar/Sidebar.styled.d.ts +118 -118
  168. package/src/lib/Sidebar/SidebarContext.d.ts +12 -12
  169. package/src/lib/Sidebar/SidebarDrawer.d.ts +13 -13
  170. package/src/lib/Sidebar/SidebarLink/MenuIcon.d.ts +7 -7
  171. package/src/lib/Sidebar/SidebarLink/SidebarLink.d.ts +8 -8
  172. package/src/lib/Sidebar/SidebarLink/SidebarLinkItem.d.ts +9 -9
  173. package/src/lib/Sidebar/SidebarLink/SidebarNestedItem.d.ts +11 -11
  174. package/src/lib/Sidebar/SidebarLink/SidebarRootItem.d.ts +11 -11
  175. package/src/lib/Sidebar/SidebarLink/index.d.ts +2 -2
  176. package/src/lib/Sidebar/index.d.ts +2 -2
  177. package/src/lib/Status/Status.d.ts +8 -8
  178. package/src/lib/Status/index.d.ts +1 -1
  179. package/src/lib/StepperView/StepperView.d.ts +11 -11
  180. package/src/lib/StepperView/index.d.ts +1 -1
  181. package/src/lib/Table/DataGrid/DataGrid.styled.d.ts +4 -4
  182. package/src/lib/Table/DataGrid/JsonTypeCell.d.ts +7 -7
  183. package/src/lib/Table/DataGrid/Table.d.ts +48 -48
  184. package/src/lib/Table/DataGrid/TableAction.d.ts +13 -13
  185. package/src/lib/Table/DataGrid/TableColumnMenu.d.ts +3 -3
  186. package/src/lib/Table/DataGrid/TablePagination.d.ts +3 -3
  187. package/src/lib/Table/DataGrid/index.d.ts +2 -2
  188. package/src/lib/Table/DataGrid/usePagination.d.ts +5 -5
  189. package/src/lib/Table/DataGrid/useTableQueryPagination.d.ts +12 -12
  190. package/src/lib/Table/DataGrid/useTableQuerySorting.d.ts +6 -6
  191. package/src/lib/Table/SimpleTable/SimpleTable.d.ts +19 -19
  192. package/src/lib/Table/SimpleTable/Table.styled.d.ts +30 -30
  193. package/src/lib/Table/SimpleTable/TableActionCell.d.ts +10 -10
  194. package/src/lib/Table/SimpleTable/index.d.ts +2 -2
  195. package/src/lib/Table/SimpleTable/useTablePagination.d.ts +7 -7
  196. package/src/lib/Table/SimpleTable/useTableSorting.d.ts +6 -6
  197. package/src/lib/Table/index.d.ts +2 -2
  198. package/src/lib/Tabs/RouteTabs.d.ts +11 -11
  199. package/src/lib/Tabs/TabPanel.d.ts +25 -25
  200. package/src/lib/Tabs/index.d.ts +2 -2
  201. package/src/lib/index.d.ts +18 -18
  202. package/src/theme/baseTheme.d.ts +2 -2
  203. package/src/theme/index.d.ts +1 -1
  204. package/src/theme/inputThemeOptions.d.ts +203 -203
  205. package/src/theme/stepperThemeOptions.d.ts +16 -16
  206. package/src/theme/tableThemeOptions.d.ts +159 -159
  207. package/src/theme/typographyThemeOptions.d.ts +29 -29
  208. package/src/utils/common.d.ts +7 -7
  209. package/src/utils/dem.d.ts +27 -27
  210. package/src/utils/dem3.d.ts +28 -28
  211. package/src/utils/hooks.d.ts +7 -7
  212. package/src/utils/index.d.ts +6 -6
  213. package/src/utils/test-mocks.d.ts +166 -166
  214. package/src/utils/ui-utils.d.ts +17 -17
  215. package/src/utils/validators.d.ts +6 -6
@@ -1,63 +1,63 @@
1
- import { ReactNode } from '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?: ReactNode;
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
- * Set required error text
55
- */
56
- requiredErrorText?: string;
57
- };
58
- /**
59
- * Material UI `TextField` controlled component. Used with react-hook-form
60
- * @category Forms
61
- */
62
- export declare const ControlInput: ({ control, validate, name, label, required, defaultValue, disabled, textarea, hideErrorMessage, onChange: customOnChange, requiredErrorText, ...textFieldProps }: ControlInputProps) => JSX.Element;
63
- export default ControlInput;
1
+ import { ReactNode } from '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?: ReactNode;
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
+ * Set required error text
55
+ */
56
+ requiredErrorText?: string;
57
+ };
58
+ /**
59
+ * Material UI `TextField` controlled component. Used with react-hook-form
60
+ * @category Forms
61
+ */
62
+ export declare const ControlInput: ({ control, validate, name, label, required, defaultValue, disabled, textarea, hideErrorMessage, onChange: customOnChange, requiredErrorText, ...textFieldProps }: ControlInputProps) => JSX.Element;
63
+ export default ControlInput;
@@ -1,72 +1,72 @@
1
- import type { ReactNode } from 'react';
2
- import { TextFieldProps } from '@mui/material/TextField';
3
- import { Control } from 'react-hook-form';
4
- import { ValidateFunc } from '../../interfaces';
5
- export interface ErrorText {
6
- required: string;
7
- notValidNumber: string;
8
- notValidInteger: string;
9
- }
10
- export declare const DEFAULT_ERROR_TEXT: {
11
- required: string;
12
- notValidNumber: string;
13
- notValidInteger: string;
14
- };
15
- type Props = TextFieldProps & {
16
- /**
17
- * React Hook Form control `name` propery
18
- */
19
- name: string;
20
- /**
21
- * Label for MUI TextField component
22
- */
23
- label?: ReactNode;
24
- /**
25
- * React Hook Form `control`
26
- */
27
- control: Control<any>;
28
- /**
29
- * Is input required flag
30
- */
31
- required?: boolean;
32
- /**
33
- * React Hook Form `defaultValue`
34
- */
35
- defaultValue?: number;
36
- /**
37
- * Is disabled input flag
38
- */
39
- disabled?: boolean;
40
- /**
41
- * React Hook Form validate function
42
- * ```typescript
43
- * type ValidateFunc = (value: string) => boolean | string;
44
- * ```
45
- */
46
- validate?: ValidateFunc | Record<string, ValidateFunc>;
47
- /**
48
- * Hide error message flag
49
- */
50
- hideErrorMessage?: boolean;
51
- /**
52
- * Custom onChange function
53
- */
54
- onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
55
- /**
56
- * Is number decimal or integer flag
57
- */
58
- decimal?: boolean;
59
- /**
60
- * Set value as number
61
- */
62
- valueAsNumber?: boolean;
63
- /**
64
- */
65
- useFormattedInputValue?: boolean;
66
- /**
67
- * Set error text
68
- */
69
- errorText?: ErrorText;
70
- };
71
- export declare const ControlNumberInput: ({ control, validate, name, label, required, defaultValue, disabled, hideErrorMessage, onChange: customOnChange, decimal, valueAsNumber, useFormattedInputValue, errorText, ...textFieldProps }: Props) => JSX.Element;
72
- export default ControlNumberInput;
1
+ import type { ReactNode } from 'react';
2
+ import { TextFieldProps } from '@mui/material/TextField';
3
+ import { Control } from 'react-hook-form';
4
+ import { ValidateFunc } from '../../interfaces';
5
+ export interface ErrorText {
6
+ required: string;
7
+ notValidNumber: string;
8
+ notValidInteger: string;
9
+ }
10
+ export declare const DEFAULT_ERROR_TEXT: {
11
+ required: string;
12
+ notValidNumber: string;
13
+ notValidInteger: string;
14
+ };
15
+ type Props = TextFieldProps & {
16
+ /**
17
+ * React Hook Form control `name` propery
18
+ */
19
+ name: string;
20
+ /**
21
+ * Label for MUI TextField component
22
+ */
23
+ label?: ReactNode;
24
+ /**
25
+ * React Hook Form `control`
26
+ */
27
+ control: Control<any>;
28
+ /**
29
+ * Is input required flag
30
+ */
31
+ required?: boolean;
32
+ /**
33
+ * React Hook Form `defaultValue`
34
+ */
35
+ defaultValue?: number;
36
+ /**
37
+ * Is disabled input flag
38
+ */
39
+ disabled?: boolean;
40
+ /**
41
+ * React Hook Form validate function
42
+ * ```typescript
43
+ * type ValidateFunc = (value: string) => boolean | string;
44
+ * ```
45
+ */
46
+ validate?: ValidateFunc | Record<string, ValidateFunc>;
47
+ /**
48
+ * Hide error message flag
49
+ */
50
+ hideErrorMessage?: boolean;
51
+ /**
52
+ * Custom onChange function
53
+ */
54
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
55
+ /**
56
+ * Is number decimal or integer flag
57
+ */
58
+ decimal?: boolean;
59
+ /**
60
+ * Set value as number
61
+ */
62
+ valueAsNumber?: boolean;
63
+ /**
64
+ */
65
+ useFormattedInputValue?: boolean;
66
+ /**
67
+ * Set error text
68
+ */
69
+ errorText?: ErrorText;
70
+ };
71
+ export declare const ControlNumberInput: ({ control, validate, name, label, required, defaultValue, disabled, hideErrorMessage, onChange: customOnChange, decimal, valueAsNumber, useFormattedInputValue, errorText, ...textFieldProps }: Props) => JSX.Element;
72
+ export default ControlNumberInput;
@@ -1,11 +1,11 @@
1
- import { ReactNode } from 'react';
2
- import { Control } from 'react-hook-form';
3
- type Props = {
4
- name?: string;
5
- control: Control<any>;
6
- label?: ReactNode;
7
- required?: boolean;
8
- isSecondsVisible?: boolean;
9
- };
10
- export declare const ControlPeriodInput: ({ name, control, label, required, isSecondsVisible, }: Props) => JSX.Element;
11
- export {};
1
+ import { ReactNode } from 'react';
2
+ import { Control } from 'react-hook-form';
3
+ type Props = {
4
+ name?: string;
5
+ control: Control<any>;
6
+ label?: ReactNode;
7
+ required?: boolean;
8
+ isSecondsVisible?: boolean;
9
+ };
10
+ export declare const ControlPeriodInput: ({ name, control, label, required, isSecondsVisible, }: Props) => JSX.Element;
11
+ export {};
@@ -1,19 +1,19 @@
1
- import { ReactNode } from 'react';
2
- import { TextFieldProps } from '@mui/material/TextField';
3
- import { Control } from 'react-hook-form';
4
- import { Props as InputMaskProps } from 'react-input-mask';
5
- import { ValidateFunc } from '../../interfaces';
6
- type Props = TextFieldProps & {
7
- control: Control<any>;
8
- name: string;
9
- required?: boolean;
10
- mask?: string;
11
- label?: ReactNode;
12
- requiredErrorText?: string;
13
- invalidErrorText?: string;
14
- disabled?: boolean;
15
- inputMaskProps?: InputMaskProps;
16
- validate?: ValidateFunc | Record<string, ValidateFunc>;
17
- };
18
- export declare const ControlPhoneInput: ({ control, name, label, required, mask, requiredErrorText, inputMaskProps, disabled, validate, invalidErrorText, ...textFieldProps }: Props) => JSX.Element;
19
- export default ControlPhoneInput;
1
+ import { ReactNode } from 'react';
2
+ import { TextFieldProps } from '@mui/material/TextField';
3
+ import { Control } from 'react-hook-form';
4
+ import { Props as InputMaskProps } from 'react-input-mask';
5
+ import { ValidateFunc } from '../../interfaces';
6
+ type Props = TextFieldProps & {
7
+ control: Control<any>;
8
+ name: string;
9
+ required?: boolean;
10
+ mask?: string;
11
+ label?: ReactNode;
12
+ requiredErrorText?: string;
13
+ invalidErrorText?: string;
14
+ disabled?: boolean;
15
+ inputMaskProps?: InputMaskProps;
16
+ validate?: ValidateFunc | Record<string, ValidateFunc>;
17
+ };
18
+ export declare const ControlPhoneInput: ({ control, name, label, required, mask, requiredErrorText, inputMaskProps, disabled, validate, invalidErrorText, ...textFieldProps }: Props) => JSX.Element;
19
+ export default ControlPhoneInput;
@@ -1,70 +1,70 @@
1
- import { RadioProps } from '@mui/material/Radio';
2
- import { Control } from 'react-hook-form';
3
- import { ValidateFunc } from '../../interfaces';
4
- import { ReactNode } from 'react';
5
- /**
6
- * This interface is referencing the [[ControlRadioBtn]] component props.
7
- * @category Forms
8
- */
9
- export interface ControlRadioProps {
10
- /**
11
- * React Hook Form `control`
12
- */
13
- control: Control<any>;
14
- /**
15
- * React Hook Form control `name` propery
16
- */
17
- name: string;
18
- /**
19
- * Label for component
20
- */
21
- label?: ReactNode;
22
- /**
23
- * Radio group values
24
- */
25
- values: string[] | unknown[];
26
- /**
27
- * Is input required flag
28
- */
29
- required?: boolean;
30
- /**
31
- * React Hook Form `defaultValue`
32
- */
33
- defaultValue?: unknown;
34
- /**
35
- * Is disabled input flag
36
- */
37
- disabled?: boolean;
38
- /**
39
- * Hide error message flag
40
- */
41
- hideErrorMessage?: boolean;
42
- /**
43
- * Custom onChange functionƒ
44
- */
45
- onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
46
- /**
47
- * React Hook Form validate function
48
- * ```typescript
49
- * type ValidateFunc = (value: string) => boolean | string;
50
- * ```
51
- */
52
- validate?: ValidateFunc | Record<string, ValidateFunc>;
53
- /**
54
- * Key for option label
55
- */
56
- labelKey?: string;
57
- /**
58
- * Key for option value
59
- */
60
- valueKey?: string;
61
- row?: boolean;
62
- radioProps?: RadioProps;
63
- requiredErrorText?: string;
64
- }
65
- /**
66
- * Material UI `Radio` controlled component. Used with react-hook-form
67
- * @category Forms
68
- */
69
- export declare const ControlRadio: ({ name, label, values, control, required, defaultValue, disabled, hideErrorMessage, labelKey, valueKey, validate, onChange: customOnChange, row, radioProps, requiredErrorText, }: ControlRadioProps) => JSX.Element;
70
- export default ControlRadio;
1
+ import { RadioProps } from '@mui/material/Radio';
2
+ import { Control } from 'react-hook-form';
3
+ import { ValidateFunc } from '../../interfaces';
4
+ import { ReactNode } from 'react';
5
+ /**
6
+ * This interface is referencing the [[ControlRadioBtn]] component props.
7
+ * @category Forms
8
+ */
9
+ export interface ControlRadioProps {
10
+ /**
11
+ * React Hook Form `control`
12
+ */
13
+ control: Control<any>;
14
+ /**
15
+ * React Hook Form control `name` propery
16
+ */
17
+ name: string;
18
+ /**
19
+ * Label for component
20
+ */
21
+ label?: ReactNode;
22
+ /**
23
+ * Radio group values
24
+ */
25
+ values: string[] | unknown[];
26
+ /**
27
+ * Is input required flag
28
+ */
29
+ required?: boolean;
30
+ /**
31
+ * React Hook Form `defaultValue`
32
+ */
33
+ defaultValue?: unknown;
34
+ /**
35
+ * Is disabled input flag
36
+ */
37
+ disabled?: boolean;
38
+ /**
39
+ * Hide error message flag
40
+ */
41
+ hideErrorMessage?: boolean;
42
+ /**
43
+ * Custom onChange functionƒ
44
+ */
45
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
46
+ /**
47
+ * React Hook Form validate function
48
+ * ```typescript
49
+ * type ValidateFunc = (value: string) => boolean | string;
50
+ * ```
51
+ */
52
+ validate?: ValidateFunc | Record<string, ValidateFunc>;
53
+ /**
54
+ * Key for option label
55
+ */
56
+ labelKey?: string;
57
+ /**
58
+ * Key for option value
59
+ */
60
+ valueKey?: string;
61
+ row?: boolean;
62
+ radioProps?: RadioProps;
63
+ requiredErrorText?: string;
64
+ }
65
+ /**
66
+ * Material UI `Radio` controlled component. Used with react-hook-form
67
+ * @category Forms
68
+ */
69
+ export declare const ControlRadio: ({ name, label, values, control, required, defaultValue, disabled, hideErrorMessage, labelKey, valueKey, validate, onChange: customOnChange, row, radioProps, requiredErrorText, }: ControlRadioProps) => JSX.Element;
70
+ export default ControlRadio;
@@ -1,72 +1,72 @@
1
- import { TextFieldProps } from '@mui/material/TextField';
2
- import { ReactNode } from 'react';
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?: ReactNode;
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
- * Set required error text
63
- */
64
- requiredErrorText?: string;
65
- };
66
- export declare const PopupIconComponent: () => JSX.Element;
67
- /**
68
- * Material UI `Select` controlled component. Used with react-hook-form
69
- * @category Forms
70
- */
71
- export declare const ControlSelect: ({ control, validate, name, label, required, defaultValue, disabled, hideErrorMessage, onChange: customOnChange, labelKey, valueKey, options, requiredErrorText, ...textFieldProps }: ControlSelectProps) => JSX.Element;
72
- export default ControlSelect;
1
+ import { TextFieldProps } from '@mui/material/TextField';
2
+ import { ReactNode } from 'react';
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?: ReactNode;
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
+ * Set required error text
63
+ */
64
+ requiredErrorText?: string;
65
+ };
66
+ export declare const PopupIconComponent: () => JSX.Element;
67
+ /**
68
+ * Material UI `Select` controlled component. Used with react-hook-form
69
+ * @category Forms
70
+ */
71
+ export declare const ControlSelect: ({ control, validate, name, label, required, defaultValue, disabled, hideErrorMessage, onChange: customOnChange, labelKey, valueKey, options, requiredErrorText, ...textFieldProps }: ControlSelectProps) => JSX.Element;
72
+ export default ControlSelect;
@@ -1,20 +1,20 @@
1
- import { SwitchProps } from '@mui/material/Switch';
2
- import { Control } from 'react-hook-form';
3
- import { ReactNode } from 'react';
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?: ReactNode;
17
- defaultValue?: boolean;
18
- };
19
- export declare const ControlSwitch: ({ control, name, label, defaultValue, ...switchProps }: Props) => JSX.Element;
20
- export default ControlSwitch;
1
+ import { SwitchProps } from '@mui/material/Switch';
2
+ import { Control } from 'react-hook-form';
3
+ import { ReactNode } from 'react';
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?: ReactNode;
17
+ defaultValue?: boolean;
18
+ };
19
+ export declare const ControlSwitch: ({ control, name, label, defaultValue, ...switchProps }: Props) => JSX.Element;
20
+ export default ControlSwitch;