@dartech/arsenal-ui 1.4.86 → 1.4.88

Sign up to get free protection for your applications and to get access to all the features.
Files changed (163) hide show
  1. package/index.d.ts +5 -5
  2. package/index.js +8487 -0
  3. package/package.json +10 -4
  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 +142 -142
  7. package/src/interfaces/index.d.ts +3 -3
  8. package/src/interfaces/ui.d.ts +73 -73
  9. package/src/lib/Alert/Alert.d.ts +55 -55
  10. package/src/lib/Alert/index.d.ts +1 -1
  11. package/src/lib/Breadcrumbs/Breadcrumbs.d.ts +9 -8
  12. package/src/lib/Breadcrumbs/Breadcrumbs.styled.d.ts +2 -2
  13. package/src/lib/Breadcrumbs/index.d.ts +1 -1
  14. package/src/lib/ContentLayout/ContentLayout.d.ts +10 -10
  15. package/src/lib/ContentLayout/index.d.ts +1 -1
  16. package/src/lib/Definition/CreateDefinition/CreateDefinition.d.ts +26 -26
  17. package/src/lib/Definition/CreateDefinition/index.d.ts +1 -1
  18. package/src/lib/Definition/DefinitionFiller/DefinitionFiller.d.ts +21 -21
  19. package/src/lib/Definition/DefinitionFiller/index.d.ts +1 -1
  20. package/src/lib/Definition/DefinitionValueView/DefinitionValueView.d.ts +8 -7
  21. package/src/lib/Definition/DefinitionValueView/FileDefinitionValueView.d.ts +8 -7
  22. package/src/lib/Definition/DefinitionValueView/PropertyDataView.d.ts +9 -8
  23. package/src/lib/Definition/DefinitionValueView/index.d.ts +1 -1
  24. package/src/lib/Definition/index.d.ts +3 -3
  25. package/src/lib/Forms/BackButton.d.ts +7 -6
  26. package/src/lib/Forms/ControlAceEditor.d.ts +23 -23
  27. package/src/lib/Forms/ControlArrayInput.d.ts +14 -14
  28. package/src/lib/Forms/ControlAutocomplete/ControlAutocomplete.d.ts +74 -74
  29. package/src/lib/Forms/ControlAutocomplete/ControlQueryAutocomplete.d.ts +20 -20
  30. package/src/lib/Forms/ControlAutocomplete/index.d.ts +2 -2
  31. package/src/lib/Forms/ControlAutocomplete/useAutocomplete.d.ts +10 -9
  32. package/src/lib/Forms/ControlCheckbox.d.ts +51 -51
  33. package/src/lib/Forms/ControlDate.d.ts +26 -26
  34. package/src/lib/Forms/ControlDateTime.d.ts +26 -26
  35. package/src/lib/Forms/ControlDebouncedInput.d.ts +4 -3
  36. package/src/lib/Forms/ControlInput.d.ts +63 -63
  37. package/src/lib/Forms/ControlNumberInput.d.ts +72 -72
  38. package/src/lib/Forms/ControlPeriodInput.d.ts +11 -11
  39. package/src/lib/Forms/ControlPhoneInput.d.ts +17 -17
  40. package/src/lib/Forms/ControlRadio.d.ts +70 -70
  41. package/src/lib/Forms/ControlSelect.d.ts +72 -72
  42. package/src/lib/Forms/ControlSwitch.d.ts +19 -19
  43. package/src/lib/Forms/ControlTime.d.ts +24 -24
  44. package/src/lib/Forms/CopyButton.d.ts +20 -19
  45. package/src/lib/Forms/index.d.ts +17 -17
  46. package/src/lib/InfoItem/InfoItem.d.ts +8 -7
  47. package/src/lib/InfoItem/index.d.ts +1 -1
  48. package/src/lib/JsonPathPicker/JsonPathPicker.d.ts +10 -9
  49. package/src/lib/JsonPathPicker/PropertyStep.d.ts +11 -10
  50. package/src/lib/JsonPathPicker/index.d.ts +1 -1
  51. package/src/lib/JsonView/JsonView.d.ts +9 -9
  52. package/src/lib/JsonView/index.d.ts +1 -1
  53. package/src/lib/Loader/Loader.d.ts +22 -21
  54. package/src/lib/Loader/index.d.ts +1 -1
  55. package/src/lib/Modals/JsonModalView.d.ts +12 -12
  56. package/src/lib/Modals/index.d.ts +1 -1
  57. package/src/lib/OverflowTooltip/OverflowTooltip.d.ts +4 -3
  58. package/src/lib/OverflowTooltip/index.d.ts +1 -1
  59. package/src/lib/Property/PropertyFiller/ControlFiller/ControlMultiplePropertyFiller.d.ts +26 -26
  60. package/src/lib/Property/PropertyFiller/ControlFiller/ControlMultiplePropertyWidget.d.ts +24 -24
  61. package/src/lib/Property/PropertyFiller/ControlFiller/ControlPropertyFiller.d.ts +26 -26
  62. package/src/lib/Property/PropertyFiller/ControlFiller/index.d.ts +3 -3
  63. package/src/lib/Property/PropertyFiller/JsonEditor.d.ts +9 -9
  64. package/src/lib/Property/PropertyFiller/MultiplePropertyFiller.d.ts +24 -24
  65. package/src/lib/Property/PropertyFiller/MultiplePropertyWidget.d.ts +22 -22
  66. package/src/lib/Property/PropertyFiller/PropertyFiller.d.ts +24 -24
  67. package/src/lib/Property/PropertyFiller/index.d.ts +2 -2
  68. package/src/lib/Property/PropertyFiller/styled.d.ts +18 -18
  69. package/src/lib/Property/PropertyFiller/usePropertyFiller.d.ts +26 -26
  70. package/src/lib/Property/PropertyValidator/NodeValidator.d.ts +6 -5
  71. package/src/lib/Property/PropertyValidator/NodesList.d.ts +6 -5
  72. package/src/lib/Property/PropertyValidator/NumericTypeValidator.d.ts +8 -7
  73. package/src/lib/Property/PropertyValidator/PropertyValidator.d.ts +6 -5
  74. package/src/lib/Property/PropertyValidator/PropertyValidatorContext.d.ts +3 -3
  75. package/src/lib/Property/PropertyValidator/StringTypeValidator.d.ts +8 -7
  76. package/src/lib/Property/PropertyValidator/ValidationNodeSelector.d.ts +7 -6
  77. package/src/lib/Property/PropertyValidator/index.d.ts +1 -1
  78. package/src/lib/Property/PropertyWidget/PropertyWidget.d.ts +23 -23
  79. package/src/lib/Property/PropertyWidget/index.d.ts +1 -1
  80. package/src/lib/Property/UpsertProperty/CreatePropertiesList/CreatePropertiesList.d.ts +36 -36
  81. package/src/lib/Property/UpsertProperty/CreatePropertiesList/ListItem.d.ts +29 -29
  82. package/src/lib/Property/UpsertProperty/CreatePropertiesList/index.d.ts +2 -2
  83. package/src/lib/Property/UpsertProperty/CreatePropertiesListContext.d.ts +30 -30
  84. package/src/lib/Property/UpsertProperty/CreatePropertyFormFields.d.ts +24 -24
  85. package/src/lib/Property/UpsertProperty/CustomPropertyField.d.ts +7 -6
  86. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/BigDecimalPropertyFields.d.ts +8 -7
  87. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/DateAdditionalFields.d.ts +9 -8
  88. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityAdditionalFields.d.ts +22 -22
  89. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityReferencePropertyFields.d.ts +12 -11
  90. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/PropertyAdditionalFields.d.ts +23 -23
  91. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/StringPropertyFields.d.ts +8 -7
  92. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/index.d.ts +1 -1
  93. package/src/lib/Property/UpsertProperty/PropertyValueField/BooleanValueField.d.ts +8 -8
  94. package/src/lib/Property/UpsertProperty/PropertyValueField/DateTimeValueField.d.ts +8 -8
  95. package/src/lib/Property/UpsertProperty/PropertyValueField/DateValueField.d.ts +8 -8
  96. package/src/lib/Property/UpsertProperty/PropertyValueField/FileValueWidget.d.ts +6 -5
  97. package/src/lib/Property/UpsertProperty/PropertyValueField/JsonValueField.d.ts +7 -7
  98. package/src/lib/Property/UpsertProperty/PropertyValueField/PropertyValueField.d.ts +23 -23
  99. package/src/lib/Property/UpsertProperty/PropertyValueField/StringValueField.d.ts +14 -13
  100. package/src/lib/Property/UpsertProperty/PropertyValueField/TimeValueField.d.ts +8 -8
  101. package/src/lib/Property/UpsertProperty/PropertyValueField/index.d.ts +1 -1
  102. package/src/lib/Property/UpsertProperty/index.d.ts +4 -4
  103. package/src/lib/Property/UpsertProperty/useCustomFields.d.ts +6 -6
  104. package/src/lib/Property/ViewPropertiesList/ViewPropertiesList.d.ts +8 -7
  105. package/src/lib/Property/ViewPropertiesList/index.d.ts +1 -1
  106. package/src/lib/Property/ViewProperty/EntityPropertiesShortView.d.ts +7 -6
  107. package/src/lib/Property/ViewProperty/EntityPropertiesView.d.ts +8 -8
  108. package/src/lib/Property/ViewProperty/PropertyDataTable.d.ts +7 -6
  109. package/src/lib/Property/ViewProperty/PropertyItem.d.ts +8 -8
  110. package/src/lib/Property/ViewProperty/ViewProperty.d.ts +9 -8
  111. package/src/lib/Property/ViewProperty/index.d.ts +1 -1
  112. package/src/lib/Property/index.d.ts +4 -4
  113. package/src/lib/Sidebar/Sidebar.d.ts +14 -14
  114. package/src/lib/Sidebar/Sidebar.styled.d.ts +118 -118
  115. package/src/lib/Sidebar/SidebarContext.d.ts +12 -12
  116. package/src/lib/Sidebar/SidebarDrawer.d.ts +13 -13
  117. package/src/lib/Sidebar/SidebarLink/MenuIcon.d.ts +7 -6
  118. package/src/lib/Sidebar/SidebarLink/SidebarLink.d.ts +8 -7
  119. package/src/lib/Sidebar/SidebarLink/SidebarLinkItem.d.ts +9 -8
  120. package/src/lib/Sidebar/SidebarLink/SidebarNestedItem.d.ts +11 -10
  121. package/src/lib/Sidebar/SidebarLink/SidebarRootItem.d.ts +11 -10
  122. package/src/lib/Sidebar/SidebarLink/index.d.ts +2 -2
  123. package/src/lib/Sidebar/index.d.ts +2 -2
  124. package/src/lib/Status/Status.d.ts +8 -7
  125. package/src/lib/Status/index.d.ts +1 -1
  126. package/src/lib/StepperView/StepperView.d.ts +11 -11
  127. package/src/lib/StepperView/index.d.ts +1 -1
  128. package/src/lib/Table/DataGrid/DataGrid.styled.d.ts +4 -4
  129. package/src/lib/Table/DataGrid/JsonTypeCell.d.ts +7 -6
  130. package/src/lib/Table/DataGrid/Table.d.ts +47 -47
  131. package/src/lib/Table/DataGrid/TableAction.d.ts +13 -13
  132. package/src/lib/Table/DataGrid/TableColumnMenu.d.ts +3 -2
  133. package/src/lib/Table/DataGrid/TablePagination.d.ts +3 -2
  134. package/src/lib/Table/DataGrid/index.d.ts +2 -2
  135. package/src/lib/Table/DataGrid/usePagination.d.ts +5 -5
  136. package/src/lib/Table/DataGrid/useTableQueryPagination.d.ts +11 -11
  137. package/src/lib/Table/DataGrid/useTableQuerySorting.d.ts +6 -6
  138. package/src/lib/Table/SimpleTable/SimpleTable.d.ts +19 -19
  139. package/src/lib/Table/SimpleTable/Table.styled.d.ts +30 -30
  140. package/src/lib/Table/SimpleTable/TableActionCell.d.ts +10 -10
  141. package/src/lib/Table/SimpleTable/index.d.ts +2 -2
  142. package/src/lib/Table/SimpleTable/useTablePagination.d.ts +7 -7
  143. package/src/lib/Table/SimpleTable/useTableSorting.d.ts +6 -6
  144. package/src/lib/Table/index.d.ts +2 -2
  145. package/src/lib/Tabs/RouteTabs.d.ts +11 -11
  146. package/src/lib/Tabs/TabPanel.d.ts +25 -25
  147. package/src/lib/Tabs/index.d.ts +2 -2
  148. package/src/lib/index.d.ts +17 -17
  149. package/src/theme/baseTheme.d.ts +2 -2
  150. package/src/theme/index.d.ts +1 -1
  151. package/src/theme/inputThemeOptions.d.ts +201 -200
  152. package/src/theme/stepperThemeOptions.d.ts +16 -16
  153. package/src/theme/tableThemeOptions.d.ts +159 -159
  154. package/src/theme/typographyThemeOptions.d.ts +29 -29
  155. package/src/utils/common.d.ts +7 -7
  156. package/src/utils/dem.d.ts +27 -27
  157. package/src/utils/hooks.d.ts +7 -7
  158. package/src/utils/index.d.ts +5 -5
  159. package/src/utils/test-mocks.d.ts +166 -166
  160. package/src/utils/ui-utils.d.ts +17 -17
  161. package/src/utils/validators.d.ts +6 -6
  162. package/index.esm.d.ts +0 -1
  163. package/index.esm.js +0 -1
@@ -1,8 +1,9 @@
1
- type Props = {
2
- crumbs: {
3
- title: string;
4
- link?: string;
5
- }[];
6
- };
7
- export declare const Breadcrumbs: ({ crumbs }: Props) => import("react/jsx-runtime").JSX.Element;
8
- export {};
1
+ /// <reference types="react" />
2
+ type Props = {
3
+ crumbs: {
4
+ title: string;
5
+ link?: string;
6
+ }[];
7
+ };
8
+ export declare const Breadcrumbs: ({ crumbs }: Props) => JSX.Element;
9
+ export {};
@@ -1,2 +1,2 @@
1
- /// <reference types="react" />
2
- export declare const StyledLink: import("@emotion/styled").StyledComponent<import("react-router-dom").LinkProps & import("react").RefAttributes<HTMLAnchorElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
1
+ /// <reference types="react" />
2
+ export declare const StyledLink: import("@emotion/styled").StyledComponent<import("react-router-dom").LinkProps & import("react").RefAttributes<HTMLAnchorElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
@@ -1 +1 @@
1
- export * from './Breadcrumbs';
1
+ export * from './Breadcrumbs';
@@ -1,10 +1,10 @@
1
- import { ReactNode } from 'react';
2
- import { SxProps, Theme } from '@mui/material/styles';
3
- type Props = {
4
- children?: ReactNode;
5
- toolbar?: ReactNode;
6
- contentSx?: SxProps<Theme>;
7
- sx?: SxProps<Theme>;
8
- };
9
- export declare const ContentLayout: ({ children, toolbar, contentSx, sx }: Props) => import("react/jsx-runtime").JSX.Element;
10
- export {};
1
+ import { ReactNode } from 'react';
2
+ import { SxProps, Theme } from '@mui/material/styles';
3
+ type Props = {
4
+ children?: ReactNode;
5
+ toolbar?: ReactNode;
6
+ contentSx?: SxProps<Theme>;
7
+ sx?: SxProps<Theme>;
8
+ };
9
+ export declare const ContentLayout: ({ children, toolbar, contentSx, sx }: Props) => JSX.Element;
10
+ export {};
@@ -1 +1 @@
1
- export * from './ContentLayout';
1
+ export * from './ContentLayout';
@@ -1,26 +1,26 @@
1
- /// <reference types="react" />
2
- import { type RefMethods } from '../../Property/UpsertProperty';
3
- import { Control } from 'react-hook-form';
4
- import { EntityReferenceProperty } from '../../../interfaces';
5
- type Props = {
6
- control?: Control<any>;
7
- definitionFieldName?: string;
8
- title?: string;
9
- hideCodeField?: boolean;
10
- hideVersionField?: boolean;
11
- hideNameField?: boolean;
12
- required?: boolean;
13
- entityReferenceDefinitionSources?: {
14
- label: string;
15
- value: string;
16
- }[];
17
- entityReferenceValueComponent?: React.ElementType<{
18
- name: string;
19
- property: EntityReferenceProperty;
20
- }>;
21
- fileReferenceValueComponent?: React.ElementType<{
22
- name: string;
23
- }>;
24
- };
25
- export declare const CreateDefinition: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<RefMethods>>;
26
- export default CreateDefinition;
1
+ /// <reference types="react" />
2
+ import { type RefMethods } from '../../Property/UpsertProperty';
3
+ import { Control } from 'react-hook-form';
4
+ import { EntityReferenceProperty } from '../../../interfaces';
5
+ type Props = {
6
+ control?: Control<any>;
7
+ definitionFieldName?: string;
8
+ title?: string;
9
+ hideCodeField?: boolean;
10
+ hideVersionField?: boolean;
11
+ hideNameField?: boolean;
12
+ required?: boolean;
13
+ entityReferenceDefinitionSources?: {
14
+ label: string;
15
+ value: string;
16
+ }[];
17
+ entityReferenceValueComponent?: React.ElementType<{
18
+ name: string;
19
+ property: EntityReferenceProperty;
20
+ }>;
21
+ fileReferenceValueComponent?: React.ElementType<{
22
+ name: string;
23
+ }>;
24
+ };
25
+ export declare const CreateDefinition: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<RefMethods>>;
26
+ export default CreateDefinition;
@@ -1 +1 @@
1
- export * from './CreateDefinition';
1
+ export * from './CreateDefinition';
@@ -1,21 +1,21 @@
1
- /// <reference types="react" />
2
- import { EntityReferenceProperty, PropertiesArrayType } from '../../../interfaces';
3
- type Props = {
4
- properties: PropertiesArrayType;
5
- dataFieldName: string;
6
- useExpression?: boolean;
7
- title?: string;
8
- entityReferenceDefinitionSources?: {
9
- label: string;
10
- value: string;
11
- }[];
12
- entityReferenceValueComponent?: React.ElementType<{
13
- name: string;
14
- property: EntityReferenceProperty;
15
- }>;
16
- fileReferenceValueComponent?: React.ElementType<{
17
- name: string;
18
- }>;
19
- };
20
- export declare const DefinitionFiller: ({ properties, dataFieldName, useExpression, title, entityReferenceDefinitionSources, entityReferenceValueComponent, fileReferenceValueComponent, }: Props) => import("react/jsx-runtime").JSX.Element;
21
- export default DefinitionFiller;
1
+ /// <reference types="react" />
2
+ import { EntityReferenceProperty, PropertiesArrayType } from '../../../interfaces';
3
+ type Props = {
4
+ properties: PropertiesArrayType;
5
+ dataFieldName: string;
6
+ useExpression?: boolean;
7
+ title?: string;
8
+ entityReferenceDefinitionSources?: {
9
+ label: string;
10
+ value: string;
11
+ }[];
12
+ entityReferenceValueComponent?: React.ElementType<{
13
+ name: string;
14
+ property: EntityReferenceProperty;
15
+ }>;
16
+ fileReferenceValueComponent?: React.ElementType<{
17
+ name: string;
18
+ }>;
19
+ };
20
+ export declare const DefinitionFiller: ({ properties, dataFieldName, useExpression, title, entityReferenceDefinitionSources, entityReferenceValueComponent, fileReferenceValueComponent, }: Props) => JSX.Element;
21
+ export default DefinitionFiller;
@@ -1 +1 @@
1
- export * from './DefinitionFiller';
1
+ export * from './DefinitionFiller';
@@ -1,7 +1,8 @@
1
- import { PropertiesArrayType } from '../../../interfaces';
2
- type Props = {
3
- properties: PropertiesArrayType<unknown>;
4
- data: unknown;
5
- };
6
- export declare const DefinitionValueView: ({ properties, data }: Props) => import("react/jsx-runtime").JSX.Element;
7
- export default DefinitionValueView;
1
+ /// <reference types="react" />
2
+ import { PropertiesArrayType } from '../../../interfaces';
3
+ type Props = {
4
+ properties: PropertiesArrayType<unknown>;
5
+ data: unknown;
6
+ };
7
+ export declare const DefinitionValueView: ({ properties, data }: Props) => JSX.Element;
8
+ export default DefinitionValueView;
@@ -1,7 +1,8 @@
1
- import { FileProperty } from '../../../interfaces';
2
- type Props = {
3
- property: FileProperty;
4
- data: string;
5
- };
6
- declare const FileDefinitionValueView: ({ property, data }: Props) => import("react/jsx-runtime").JSX.Element;
7
- export default FileDefinitionValueView;
1
+ /// <reference types="react" />
2
+ import { FileProperty } from '../../../interfaces';
3
+ type Props = {
4
+ property: FileProperty;
5
+ data: string;
6
+ };
7
+ declare const FileDefinitionValueView: ({ property, data }: Props) => JSX.Element;
8
+ export default FileDefinitionValueView;
@@ -1,8 +1,9 @@
1
- import { PropertyUnion } from '../../../interfaces';
2
- type Props = {
3
- property: PropertyUnion;
4
- data: unknown;
5
- hasBackground?: boolean;
6
- };
7
- export declare const PropertyDataView: ({ property, data, hasBackground, }: Props) => import("react/jsx-runtime").JSX.Element;
8
- export default PropertyDataView;
1
+ /// <reference types="react" />
2
+ import { PropertyUnion } from '../../../interfaces';
3
+ type Props = {
4
+ property: PropertyUnion;
5
+ data: unknown;
6
+ hasBackground?: boolean;
7
+ };
8
+ export declare const PropertyDataView: ({ property, data, hasBackground, }: Props) => JSX.Element;
9
+ export default PropertyDataView;
@@ -1 +1 @@
1
- export * from './DefinitionValueView';
1
+ export * from './DefinitionValueView';
@@ -1,3 +1,3 @@
1
- export * from './CreateDefinition';
2
- export * from './DefinitionFiller';
3
- export * from './DefinitionValueView';
1
+ export * from './CreateDefinition';
2
+ export * from './DefinitionFiller';
3
+ export * from './DefinitionValueView';
@@ -1,6 +1,7 @@
1
- type Props = {
2
- text?: string;
3
- buttonProps?: Record<string, unknown>;
4
- };
5
- export declare const BackButton: ({ text, buttonProps }: Props) => import("react/jsx-runtime").JSX.Element;
6
- export default BackButton;
1
+ /// <reference types="react" />
2
+ type Props = {
3
+ text?: string;
4
+ buttonProps?: Record<string, unknown>;
5
+ };
6
+ export declare const BackButton: ({ text, buttonProps }: Props) => JSX.Element;
7
+ export default BackButton;
@@ -1,23 +1,23 @@
1
- import { ReactCodeMirrorRef } from '@uiw/react-codemirror';
2
- import { Control } from 'react-hook-form';
3
- import { ReactNode } from 'react';
4
- export interface ControlAceEditorProps {
5
- name: string;
6
- control: Control<any>;
7
- mode?: 'json' | 'javascript' | 'python' | 'text';
8
- label?: ReactNode;
9
- width?: string;
10
- height?: string;
11
- readOnly?: boolean;
12
- required?: boolean;
13
- validateJson?: boolean;
14
- fontSize?: number;
15
- validate?: boolean;
16
- hideErrorMessage?: boolean;
17
- parseValue?: boolean;
18
- requiredErrorText?: string;
19
- [key: string]: unknown;
20
- useCleanValue?: boolean;
21
- }
22
- export declare const ControlAceEditor: import("react").ForwardRefExoticComponent<Omit<ControlAceEditorProps, "ref"> & import("react").RefAttributes<ReactCodeMirrorRef>>;
23
- export default ControlAceEditor;
1
+ import { ReactCodeMirrorRef } from '@uiw/react-codemirror';
2
+ import { Control } from 'react-hook-form';
3
+ import { ReactNode } from 'react';
4
+ export interface ControlAceEditorProps {
5
+ name: string;
6
+ control: Control<any>;
7
+ mode?: 'json' | 'javascript' | 'python' | 'text';
8
+ label?: ReactNode;
9
+ width?: string;
10
+ height?: string;
11
+ readOnly?: boolean;
12
+ required?: boolean;
13
+ validateJson?: boolean;
14
+ fontSize?: number;
15
+ validate?: boolean;
16
+ hideErrorMessage?: boolean;
17
+ parseValue?: boolean;
18
+ requiredErrorText?: string;
19
+ [key: string]: unknown;
20
+ useCleanValue?: boolean;
21
+ }
22
+ export declare const ControlAceEditor: import("react").ForwardRefExoticComponent<Omit<ControlAceEditorProps, "ref"> & import("react").RefAttributes<ReactCodeMirrorRef>>;
23
+ export default ControlAceEditor;
@@ -1,14 +1,14 @@
1
- import { ReactNode } from 'react';
2
- import { Control } from 'react-hook-form';
3
- import { TextFieldProps } from '@mui/material/TextField';
4
- type Props = TextFieldProps & {
5
- name: string;
6
- control: Control<any>;
7
- label: ReactNode;
8
- required?: boolean;
9
- defaultValue?: [] | null;
10
- onChange?: any;
11
- textFieldLabel?: string;
12
- };
13
- export declare const ControlArrayInput: ({ name, control, label, required, defaultValue, onChange: customOnChange, textFieldLabel, ...textFieldProps }: Props) => import("react/jsx-runtime").JSX.Element;
14
- export {};
1
+ import { ReactNode } from 'react';
2
+ import { Control } from 'react-hook-form';
3
+ import { TextFieldProps } from '@mui/material/TextField';
4
+ type Props = TextFieldProps & {
5
+ name: string;
6
+ control: Control<any>;
7
+ label: ReactNode;
8
+ required?: boolean;
9
+ defaultValue?: [] | null;
10
+ onChange?: any;
11
+ textFieldLabel?: string;
12
+ };
13
+ export declare const ControlArrayInput: ({ name, control, label, required, defaultValue, onChange: customOnChange, textFieldLabel, ...textFieldProps }: Props) => JSX.Element;
14
+ export {};
@@ -1,74 +1,74 @@
1
- import { AutocompleteProps } from '@mui/material/Autocomplete';
2
- import { TextFieldProps } from '@mui/material/TextField';
3
- import { InputProps } from '@mui/material/Input';
4
- import { Control } from 'react-hook-form';
5
- import { ReactNode } from 'react';
6
- import { ValidateFunc } from '../../../interfaces';
7
- /**
8
- * This interface is referencing the [[ControlAutocomplete]] component props.
9
- * @category Forms
10
- */
11
- export type ControlAutocompleteProps = Omit<AutocompleteProps<unknown, boolean, boolean, boolean, React.ElementType<any>>, 'renderInput'> & {
12
- /**
13
- * React Hook Form control `name` propery
14
- */
15
- name: string;
16
- /**
17
- * Label for MUI TextField select component
18
- */
19
- label?: ReactNode;
20
- /**
21
- * React Hook Form `control`
22
- */
23
- control: Control<any>;
24
- /**
25
- * Is input required flag
26
- */
27
- required?: boolean;
28
- /**
29
- * React Hook Form `defaultValue`
30
- */
31
- defaultValue?: unknown;
32
- /**
33
- * Is disabled input flag
34
- */
35
- disabled?: boolean;
36
- /**
37
- * React Hook Form validate function
38
- * ```typescript
39
- * type ValidateFunc = (value: string) => boolean | string;
40
- * ```
41
- */
42
- validate?: ValidateFunc | Record<string, ValidateFunc>;
43
- /**
44
- * Hide error message flag
45
- */
46
- hideErrorMessage?: boolean;
47
- /**
48
- * Custom onChange functionƒ
49
- */
50
- onChange?: (event: React.ChangeEvent<HTMLInputElement>, value: unknown) => void;
51
- /**
52
- * Key for option label
53
- */
54
- labelKey?: string;
55
- /**
56
- * Key for option value
57
- */
58
- valueKey?: string;
59
- /**
60
- * Select options
61
- */
62
- options: string[] | unknown[];
63
- textFieldProps?: TextFieldProps;
64
- useStringValue?: boolean;
65
- requiredErrorText?: string;
66
- startAdornment?: InputProps['startAdornment'];
67
- endAdornment?: InputProps['endAdornment'];
68
- };
69
- /**
70
- * Material UI `Autocomplete` controlled component. Used with react-hook-form
71
- * @category Forms
72
- */
73
- export declare const ControlAutocomplete: ({ control, validate, name, label, required, defaultValue, disabled, hideErrorMessage, onChange: customOnChange, labelKey, valueKey, options, multiple, textFieldProps, disableCloseOnSelect, useStringValue, requiredErrorText, startAdornment, endAdornment, ...autocompleteProps }: ControlAutocompleteProps) => import("react/jsx-runtime").JSX.Element;
74
- export default ControlAutocomplete;
1
+ import { AutocompleteProps } from '@mui/material/Autocomplete';
2
+ import { TextFieldProps } from '@mui/material/TextField';
3
+ import { InputProps } from '@mui/material/Input';
4
+ import { Control } from 'react-hook-form';
5
+ import { ReactNode } from 'react';
6
+ import { ValidateFunc } from '../../../interfaces';
7
+ /**
8
+ * This interface is referencing the [[ControlAutocomplete]] component props.
9
+ * @category Forms
10
+ */
11
+ export type ControlAutocompleteProps = Omit<AutocompleteProps<unknown, boolean, boolean, boolean, React.ElementType<any>>, 'renderInput'> & {
12
+ /**
13
+ * React Hook Form control `name` propery
14
+ */
15
+ name: string;
16
+ /**
17
+ * Label for MUI TextField select component
18
+ */
19
+ label?: ReactNode;
20
+ /**
21
+ * React Hook Form `control`
22
+ */
23
+ control: Control<any>;
24
+ /**
25
+ * Is input required flag
26
+ */
27
+ required?: boolean;
28
+ /**
29
+ * React Hook Form `defaultValue`
30
+ */
31
+ defaultValue?: unknown;
32
+ /**
33
+ * Is disabled input flag
34
+ */
35
+ disabled?: boolean;
36
+ /**
37
+ * React Hook Form validate function
38
+ * ```typescript
39
+ * type ValidateFunc = (value: string) => boolean | string;
40
+ * ```
41
+ */
42
+ validate?: ValidateFunc | Record<string, ValidateFunc>;
43
+ /**
44
+ * Hide error message flag
45
+ */
46
+ hideErrorMessage?: boolean;
47
+ /**
48
+ * Custom onChange functionƒ
49
+ */
50
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>, value: unknown) => void;
51
+ /**
52
+ * Key for option label
53
+ */
54
+ labelKey?: string;
55
+ /**
56
+ * Key for option value
57
+ */
58
+ valueKey?: string;
59
+ /**
60
+ * Select options
61
+ */
62
+ options: string[] | unknown[];
63
+ textFieldProps?: TextFieldProps;
64
+ useStringValue?: boolean;
65
+ requiredErrorText?: string;
66
+ startAdornment?: InputProps['startAdornment'];
67
+ endAdornment?: InputProps['endAdornment'];
68
+ };
69
+ /**
70
+ * Material UI `Autocomplete` controlled component. Used with react-hook-form
71
+ * @category Forms
72
+ */
73
+ export declare const ControlAutocomplete: ({ control, validate, name, label, required, defaultValue, disabled, hideErrorMessage, onChange: customOnChange, labelKey, valueKey, options, multiple, textFieldProps, disableCloseOnSelect, useStringValue, requiredErrorText, startAdornment, endAdornment, ...autocompleteProps }: ControlAutocompleteProps) => JSX.Element;
74
+ export default ControlAutocomplete;
@@ -1,20 +1,20 @@
1
- import React from 'react';
2
- import { AutocompleteProps } from '@mui/material/Autocomplete';
3
- import { ControlAutocompleteProps } from './ControlAutocomplete';
4
- import { PaginateData } from '../../../interfaces';
5
- type PaginateParams = {
6
- page: string;
7
- size: string;
8
- [key: string]: string;
9
- };
10
- type ControlQueryAutocompleteProps<T> = Omit<ControlAutocompleteProps, 'options'> & {
11
- searchBy: string;
12
- mongoQueryJson?: any;
13
- sortBy?: string;
14
- queryFunction: (params: PaginateParams) => Promise<PaginateData<T>>;
15
- itemQueryFunction?: (valueKey: string) => Promise<T>;
16
- requiredErrorText?: string;
17
- renderInput?: AutocompleteProps<unknown, boolean, boolean, boolean, React.ElementType<any>>['renderInput'];
18
- };
19
- export declare function ControlQueryAutocomplete<T>({ name, label, control, required, searchBy, labelKey, multiple, mongoQueryJson, disabled, valueKey, sortBy, hideErrorMessage, disableCloseOnSelect, textFieldProps, onChange, queryFunction, validate, itemQueryFunction, requiredErrorText, startAdornment, endAdornment, ...autocompleteProps }: ControlQueryAutocompleteProps<T>): import("react/jsx-runtime").JSX.Element;
20
- export default ControlQueryAutocomplete;
1
+ import React from 'react';
2
+ import { AutocompleteProps } from '@mui/material/Autocomplete';
3
+ import { ControlAutocompleteProps } from './ControlAutocomplete';
4
+ import { PaginateData } from '../../../interfaces';
5
+ type PaginateParams = {
6
+ page: string;
7
+ size: string;
8
+ [key: string]: string;
9
+ };
10
+ type ControlQueryAutocompleteProps<T> = Omit<ControlAutocompleteProps, 'options'> & {
11
+ searchBy: string;
12
+ mongoQueryJson?: any;
13
+ sortBy?: string;
14
+ queryFunction: (params: PaginateParams) => Promise<PaginateData<T>>;
15
+ itemQueryFunction?: (valueKey: string) => Promise<T>;
16
+ requiredErrorText?: string;
17
+ renderInput?: AutocompleteProps<unknown, boolean, boolean, boolean, React.ElementType<any>>['renderInput'];
18
+ };
19
+ export declare function ControlQueryAutocomplete<T>({ name, label, control, required, searchBy, labelKey, multiple, mongoQueryJson, disabled, valueKey, sortBy, hideErrorMessage, disableCloseOnSelect, textFieldProps, onChange, queryFunction, validate, itemQueryFunction, requiredErrorText, startAdornment, endAdornment, ...autocompleteProps }: ControlQueryAutocompleteProps<T>): JSX.Element;
20
+ export default ControlQueryAutocomplete;
@@ -1,2 +1,2 @@
1
- export * from './ControlAutocomplete';
2
- export * from './ControlQueryAutocomplete';
1
+ export * from './ControlAutocomplete';
2
+ export * from './ControlQueryAutocomplete';
@@ -1,9 +1,10 @@
1
- declare const useAutocomplete: ({ valueKey, labelKey }: {
2
- valueKey: any;
3
- labelKey: any;
4
- }) => {
5
- isOptionEqualToValue: (option: any, value: any) => boolean;
6
- getOptionLabel: (option: any) => string;
7
- renderOption: (props: any, option: any) => import("react/jsx-runtime").JSX.Element;
8
- };
9
- export default useAutocomplete;
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;
@@ -1,51 +1,51 @@
1
- import { CheckboxProps } from '@mui/material/Checkbox';
2
- import { ReactNode } from 'react';
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?: ReactNode;
18
- /**
19
- * React Hook Form `control`
20
- */
21
- control: Control<any>;
22
- /**
23
- * React Hook Form `defaultValue`
24
- */
25
- defaultValue?: boolean;
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) => import("react/jsx-runtime").JSX.Element;
51
- export default ControlCheckbox;
1
+ import { CheckboxProps } from '@mui/material/Checkbox';
2
+ import { ReactNode } from 'react';
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?: ReactNode;
18
+ /**
19
+ * React Hook Form `control`
20
+ */
21
+ control: Control<any>;
22
+ /**
23
+ * React Hook Form `defaultValue`
24
+ */
25
+ defaultValue?: boolean;
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;