@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.
- package/index.d.ts +5 -5
- package/index.js +8487 -0
- package/package.json +10 -4
- package/src/consts/index.d.ts +14 -14
- package/src/interfaces/common.d.ts +24 -24
- package/src/interfaces/definition.d.ts +142 -142
- package/src/interfaces/index.d.ts +3 -3
- package/src/interfaces/ui.d.ts +73 -73
- package/src/lib/Alert/Alert.d.ts +55 -55
- package/src/lib/Alert/index.d.ts +1 -1
- package/src/lib/Breadcrumbs/Breadcrumbs.d.ts +9 -8
- package/src/lib/Breadcrumbs/Breadcrumbs.styled.d.ts +2 -2
- package/src/lib/Breadcrumbs/index.d.ts +1 -1
- package/src/lib/ContentLayout/ContentLayout.d.ts +10 -10
- package/src/lib/ContentLayout/index.d.ts +1 -1
- package/src/lib/Definition/CreateDefinition/CreateDefinition.d.ts +26 -26
- package/src/lib/Definition/CreateDefinition/index.d.ts +1 -1
- package/src/lib/Definition/DefinitionFiller/DefinitionFiller.d.ts +21 -21
- package/src/lib/Definition/DefinitionFiller/index.d.ts +1 -1
- package/src/lib/Definition/DefinitionValueView/DefinitionValueView.d.ts +8 -7
- package/src/lib/Definition/DefinitionValueView/FileDefinitionValueView.d.ts +8 -7
- package/src/lib/Definition/DefinitionValueView/PropertyDataView.d.ts +9 -8
- package/src/lib/Definition/DefinitionValueView/index.d.ts +1 -1
- package/src/lib/Definition/index.d.ts +3 -3
- package/src/lib/Forms/BackButton.d.ts +7 -6
- package/src/lib/Forms/ControlAceEditor.d.ts +23 -23
- package/src/lib/Forms/ControlArrayInput.d.ts +14 -14
- package/src/lib/Forms/ControlAutocomplete/ControlAutocomplete.d.ts +74 -74
- package/src/lib/Forms/ControlAutocomplete/ControlQueryAutocomplete.d.ts +20 -20
- package/src/lib/Forms/ControlAutocomplete/index.d.ts +2 -2
- package/src/lib/Forms/ControlAutocomplete/useAutocomplete.d.ts +10 -9
- package/src/lib/Forms/ControlCheckbox.d.ts +51 -51
- package/src/lib/Forms/ControlDate.d.ts +26 -26
- package/src/lib/Forms/ControlDateTime.d.ts +26 -26
- package/src/lib/Forms/ControlDebouncedInput.d.ts +4 -3
- package/src/lib/Forms/ControlInput.d.ts +63 -63
- package/src/lib/Forms/ControlNumberInput.d.ts +72 -72
- package/src/lib/Forms/ControlPeriodInput.d.ts +11 -11
- package/src/lib/Forms/ControlPhoneInput.d.ts +17 -17
- package/src/lib/Forms/ControlRadio.d.ts +70 -70
- package/src/lib/Forms/ControlSelect.d.ts +72 -72
- package/src/lib/Forms/ControlSwitch.d.ts +19 -19
- package/src/lib/Forms/ControlTime.d.ts +24 -24
- package/src/lib/Forms/CopyButton.d.ts +20 -19
- package/src/lib/Forms/index.d.ts +17 -17
- package/src/lib/InfoItem/InfoItem.d.ts +8 -7
- package/src/lib/InfoItem/index.d.ts +1 -1
- package/src/lib/JsonPathPicker/JsonPathPicker.d.ts +10 -9
- package/src/lib/JsonPathPicker/PropertyStep.d.ts +11 -10
- package/src/lib/JsonPathPicker/index.d.ts +1 -1
- package/src/lib/JsonView/JsonView.d.ts +9 -9
- package/src/lib/JsonView/index.d.ts +1 -1
- package/src/lib/Loader/Loader.d.ts +22 -21
- package/src/lib/Loader/index.d.ts +1 -1
- package/src/lib/Modals/JsonModalView.d.ts +12 -12
- package/src/lib/Modals/index.d.ts +1 -1
- package/src/lib/OverflowTooltip/OverflowTooltip.d.ts +4 -3
- package/src/lib/OverflowTooltip/index.d.ts +1 -1
- package/src/lib/Property/PropertyFiller/ControlFiller/ControlMultiplePropertyFiller.d.ts +26 -26
- package/src/lib/Property/PropertyFiller/ControlFiller/ControlMultiplePropertyWidget.d.ts +24 -24
- package/src/lib/Property/PropertyFiller/ControlFiller/ControlPropertyFiller.d.ts +26 -26
- package/src/lib/Property/PropertyFiller/ControlFiller/index.d.ts +3 -3
- package/src/lib/Property/PropertyFiller/JsonEditor.d.ts +9 -9
- package/src/lib/Property/PropertyFiller/MultiplePropertyFiller.d.ts +24 -24
- package/src/lib/Property/PropertyFiller/MultiplePropertyWidget.d.ts +22 -22
- package/src/lib/Property/PropertyFiller/PropertyFiller.d.ts +24 -24
- package/src/lib/Property/PropertyFiller/index.d.ts +2 -2
- package/src/lib/Property/PropertyFiller/styled.d.ts +18 -18
- package/src/lib/Property/PropertyFiller/usePropertyFiller.d.ts +26 -26
- package/src/lib/Property/PropertyValidator/NodeValidator.d.ts +6 -5
- package/src/lib/Property/PropertyValidator/NodesList.d.ts +6 -5
- package/src/lib/Property/PropertyValidator/NumericTypeValidator.d.ts +8 -7
- package/src/lib/Property/PropertyValidator/PropertyValidator.d.ts +6 -5
- package/src/lib/Property/PropertyValidator/PropertyValidatorContext.d.ts +3 -3
- package/src/lib/Property/PropertyValidator/StringTypeValidator.d.ts +8 -7
- package/src/lib/Property/PropertyValidator/ValidationNodeSelector.d.ts +7 -6
- package/src/lib/Property/PropertyValidator/index.d.ts +1 -1
- package/src/lib/Property/PropertyWidget/PropertyWidget.d.ts +23 -23
- package/src/lib/Property/PropertyWidget/index.d.ts +1 -1
- package/src/lib/Property/UpsertProperty/CreatePropertiesList/CreatePropertiesList.d.ts +36 -36
- package/src/lib/Property/UpsertProperty/CreatePropertiesList/ListItem.d.ts +29 -29
- package/src/lib/Property/UpsertProperty/CreatePropertiesList/index.d.ts +2 -2
- package/src/lib/Property/UpsertProperty/CreatePropertiesListContext.d.ts +30 -30
- package/src/lib/Property/UpsertProperty/CreatePropertyFormFields.d.ts +24 -24
- package/src/lib/Property/UpsertProperty/CustomPropertyField.d.ts +7 -6
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/BigDecimalPropertyFields.d.ts +8 -7
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/DateAdditionalFields.d.ts +9 -8
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityAdditionalFields.d.ts +22 -22
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityReferencePropertyFields.d.ts +12 -11
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/PropertyAdditionalFields.d.ts +23 -23
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/StringPropertyFields.d.ts +8 -7
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/index.d.ts +1 -1
- package/src/lib/Property/UpsertProperty/PropertyValueField/BooleanValueField.d.ts +8 -8
- package/src/lib/Property/UpsertProperty/PropertyValueField/DateTimeValueField.d.ts +8 -8
- package/src/lib/Property/UpsertProperty/PropertyValueField/DateValueField.d.ts +8 -8
- package/src/lib/Property/UpsertProperty/PropertyValueField/FileValueWidget.d.ts +6 -5
- package/src/lib/Property/UpsertProperty/PropertyValueField/JsonValueField.d.ts +7 -7
- package/src/lib/Property/UpsertProperty/PropertyValueField/PropertyValueField.d.ts +23 -23
- package/src/lib/Property/UpsertProperty/PropertyValueField/StringValueField.d.ts +14 -13
- package/src/lib/Property/UpsertProperty/PropertyValueField/TimeValueField.d.ts +8 -8
- package/src/lib/Property/UpsertProperty/PropertyValueField/index.d.ts +1 -1
- package/src/lib/Property/UpsertProperty/index.d.ts +4 -4
- package/src/lib/Property/UpsertProperty/useCustomFields.d.ts +6 -6
- package/src/lib/Property/ViewPropertiesList/ViewPropertiesList.d.ts +8 -7
- package/src/lib/Property/ViewPropertiesList/index.d.ts +1 -1
- package/src/lib/Property/ViewProperty/EntityPropertiesShortView.d.ts +7 -6
- package/src/lib/Property/ViewProperty/EntityPropertiesView.d.ts +8 -8
- package/src/lib/Property/ViewProperty/PropertyDataTable.d.ts +7 -6
- package/src/lib/Property/ViewProperty/PropertyItem.d.ts +8 -8
- package/src/lib/Property/ViewProperty/ViewProperty.d.ts +9 -8
- package/src/lib/Property/ViewProperty/index.d.ts +1 -1
- package/src/lib/Property/index.d.ts +4 -4
- package/src/lib/Sidebar/Sidebar.d.ts +14 -14
- package/src/lib/Sidebar/Sidebar.styled.d.ts +118 -118
- package/src/lib/Sidebar/SidebarContext.d.ts +12 -12
- package/src/lib/Sidebar/SidebarDrawer.d.ts +13 -13
- package/src/lib/Sidebar/SidebarLink/MenuIcon.d.ts +7 -6
- package/src/lib/Sidebar/SidebarLink/SidebarLink.d.ts +8 -7
- package/src/lib/Sidebar/SidebarLink/SidebarLinkItem.d.ts +9 -8
- package/src/lib/Sidebar/SidebarLink/SidebarNestedItem.d.ts +11 -10
- package/src/lib/Sidebar/SidebarLink/SidebarRootItem.d.ts +11 -10
- package/src/lib/Sidebar/SidebarLink/index.d.ts +2 -2
- package/src/lib/Sidebar/index.d.ts +2 -2
- package/src/lib/Status/Status.d.ts +8 -7
- package/src/lib/Status/index.d.ts +1 -1
- package/src/lib/StepperView/StepperView.d.ts +11 -11
- package/src/lib/StepperView/index.d.ts +1 -1
- package/src/lib/Table/DataGrid/DataGrid.styled.d.ts +4 -4
- package/src/lib/Table/DataGrid/JsonTypeCell.d.ts +7 -6
- package/src/lib/Table/DataGrid/Table.d.ts +47 -47
- package/src/lib/Table/DataGrid/TableAction.d.ts +13 -13
- package/src/lib/Table/DataGrid/TableColumnMenu.d.ts +3 -2
- package/src/lib/Table/DataGrid/TablePagination.d.ts +3 -2
- package/src/lib/Table/DataGrid/index.d.ts +2 -2
- package/src/lib/Table/DataGrid/usePagination.d.ts +5 -5
- package/src/lib/Table/DataGrid/useTableQueryPagination.d.ts +11 -11
- package/src/lib/Table/DataGrid/useTableQuerySorting.d.ts +6 -6
- package/src/lib/Table/SimpleTable/SimpleTable.d.ts +19 -19
- package/src/lib/Table/SimpleTable/Table.styled.d.ts +30 -30
- package/src/lib/Table/SimpleTable/TableActionCell.d.ts +10 -10
- package/src/lib/Table/SimpleTable/index.d.ts +2 -2
- package/src/lib/Table/SimpleTable/useTablePagination.d.ts +7 -7
- package/src/lib/Table/SimpleTable/useTableSorting.d.ts +6 -6
- package/src/lib/Table/index.d.ts +2 -2
- package/src/lib/Tabs/RouteTabs.d.ts +11 -11
- package/src/lib/Tabs/TabPanel.d.ts +25 -25
- package/src/lib/Tabs/index.d.ts +2 -2
- package/src/lib/index.d.ts +17 -17
- package/src/theme/baseTheme.d.ts +2 -2
- package/src/theme/index.d.ts +1 -1
- package/src/theme/inputThemeOptions.d.ts +201 -200
- package/src/theme/stepperThemeOptions.d.ts +16 -16
- package/src/theme/tableThemeOptions.d.ts +159 -159
- package/src/theme/typographyThemeOptions.d.ts +29 -29
- package/src/utils/common.d.ts +7 -7
- package/src/utils/dem.d.ts +27 -27
- package/src/utils/hooks.d.ts +7 -7
- package/src/utils/index.d.ts +5 -5
- package/src/utils/test-mocks.d.ts +166 -166
- package/src/utils/ui-utils.d.ts +17 -17
- package/src/utils/validators.d.ts +6 -6
- package/index.esm.d.ts +0 -1
- package/index.esm.js +0 -1
@@ -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: () =>
|
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) =>
|
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,19 +1,19 @@
|
|
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
|
-
};
|
18
|
-
export declare const ControlSwitch: ({ control, name, label, ...switchProps }: Props) =>
|
19
|
-
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
|
+
};
|
18
|
+
export declare const ControlSwitch: ({ control, name, label, ...switchProps }: Props) => JSX.Element;
|
19
|
+
export default ControlSwitch;
|
@@ -1,24 +1,24 @@
|
|
1
|
-
import { TextFieldProps } from '@mui/material/TextField';
|
2
|
-
import { TimePickerProps } from '@mui/x-date-pickers/TimePicker';
|
3
|
-
import { ReactNode } from 'react';
|
4
|
-
import { Control } from 'react-hook-form';
|
5
|
-
type Props = Partial<TimePickerProps<unknown, unknown>> & {
|
6
|
-
/**
|
7
|
-
* React Hook Form `control`
|
8
|
-
*/
|
9
|
-
control: Control<any>;
|
10
|
-
/**
|
11
|
-
* Is input required flag
|
12
|
-
*/
|
13
|
-
required?: boolean;
|
14
|
-
name: string;
|
15
|
-
placeholder?: string;
|
16
|
-
textFieldProps?: TextFieldProps;
|
17
|
-
label?: ReactNode;
|
18
|
-
format?: string;
|
19
|
-
hideErrorMessage?: boolean;
|
20
|
-
requiredErrorText?: string;
|
21
|
-
defaultValue?: string;
|
22
|
-
};
|
23
|
-
export declare const ControlTime: ({ control, name, required, label, textFieldProps, format, hideErrorMessage, requiredErrorText, placeholder, defaultValue, ...timePickerProps }: Props) =>
|
24
|
-
export default ControlTime;
|
1
|
+
import { TextFieldProps } from '@mui/material/TextField';
|
2
|
+
import { TimePickerProps } from '@mui/x-date-pickers/TimePicker';
|
3
|
+
import { ReactNode } from 'react';
|
4
|
+
import { Control } from 'react-hook-form';
|
5
|
+
type Props = Partial<TimePickerProps<unknown, unknown>> & {
|
6
|
+
/**
|
7
|
+
* React Hook Form `control`
|
8
|
+
*/
|
9
|
+
control: Control<any>;
|
10
|
+
/**
|
11
|
+
* Is input required flag
|
12
|
+
*/
|
13
|
+
required?: boolean;
|
14
|
+
name: string;
|
15
|
+
placeholder?: string;
|
16
|
+
textFieldProps?: TextFieldProps;
|
17
|
+
label?: ReactNode;
|
18
|
+
format?: string;
|
19
|
+
hideErrorMessage?: boolean;
|
20
|
+
requiredErrorText?: string;
|
21
|
+
defaultValue?: string;
|
22
|
+
};
|
23
|
+
export declare const ControlTime: ({ control, name, required, label, textFieldProps, format, hideErrorMessage, requiredErrorText, placeholder, defaultValue, ...timePickerProps }: Props) => JSX.Element;
|
24
|
+
export default ControlTime;
|
@@ -1,19 +1,20 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
*
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
*
|
18
|
-
|
19
|
-
|
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;
|
package/src/lib/Forms/index.d.ts
CHANGED
@@ -1,17 +1,17 @@
|
|
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 './CopyButton';
|
8
|
-
export * from './BackButton';
|
9
|
-
export * from './ControlAceEditor';
|
10
|
-
export * from './ControlNumberInput';
|
11
|
-
export * from './ControlSwitch';
|
12
|
-
export * from './ControlDate';
|
13
|
-
export * from './ControlDateTime';
|
14
|
-
export * from './ControlTime';
|
15
|
-
export * from './ControlArrayInput';
|
16
|
-
export * from './ControlPeriodInput';
|
17
|
-
export * from './ControlPhoneInput';
|
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 './CopyButton';
|
8
|
+
export * from './BackButton';
|
9
|
+
export * from './ControlAceEditor';
|
10
|
+
export * from './ControlNumberInput';
|
11
|
+
export * from './ControlSwitch';
|
12
|
+
export * from './ControlDate';
|
13
|
+
export * from './ControlDateTime';
|
14
|
+
export * from './ControlTime';
|
15
|
+
export * from './ControlArrayInput';
|
16
|
+
export * from './ControlPeriodInput';
|
17
|
+
export * from './ControlPhoneInput';
|
@@ -1,7 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
export
|
1
|
+
/// <reference types="react" />
|
2
|
+
type Props = {
|
3
|
+
title: string;
|
4
|
+
text?: string;
|
5
|
+
json?: any;
|
6
|
+
};
|
7
|
+
export declare const InfoItem: ({ title, text, json }: Props) => JSX.Element;
|
8
|
+
export default InfoItem;
|
@@ -1 +1 @@
|
|
1
|
-
export * from './InfoItem';
|
1
|
+
export * from './InfoItem';
|
@@ -1,9 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
export
|
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;
|
@@ -1,10 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
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';
|
@@ -1,9 +1,9 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { ReactCodeMirrorRef } from '@uiw/react-codemirror';
|
3
|
-
type Props = {
|
4
|
-
value: unknown;
|
5
|
-
height?: number;
|
6
|
-
fontSize?: number;
|
7
|
-
};
|
8
|
-
export declare const JsonView: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<ReactCodeMirrorRef>>;
|
9
|
-
export {};
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { ReactCodeMirrorRef } from '@uiw/react-codemirror';
|
3
|
+
type Props = {
|
4
|
+
value: unknown;
|
5
|
+
height?: number;
|
6
|
+
fontSize?: number;
|
7
|
+
};
|
8
|
+
export declare const JsonView: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<ReactCodeMirrorRef>>;
|
9
|
+
export {};
|
@@ -1 +1 @@
|
|
1
|
-
export * from './JsonView';
|
1
|
+
export * from './JsonView';
|
@@ -1,21 +1,22 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
*
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
*
|
19
|
-
|
20
|
-
|
21
|
-
export
|
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
|
+
bgcolor?: string;
|
16
|
+
}
|
17
|
+
/**
|
18
|
+
* Loader screen component. Used in the data loading process
|
19
|
+
* @category Common UI components
|
20
|
+
*/
|
21
|
+
export declare const Loader: ({ transparent, position, bgcolor }: LoaderProps) => JSX.Element;
|
22
|
+
export default Loader;
|
@@ -1 +1 @@
|
|
1
|
-
export * from './Loader';
|
1
|
+
export * from './Loader';
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
type Props = {
|
3
|
-
open: boolean;
|
4
|
-
value: string;
|
5
|
-
onClose: () => void;
|
6
|
-
jsonViewProps?: {
|
7
|
-
height?: number;
|
8
|
-
fontSize?: number;
|
9
|
-
};
|
10
|
-
};
|
11
|
-
export declare const JsonModalView: React.FC<Props>;
|
12
|
-
export default JsonModalView;
|
1
|
+
import React from 'react';
|
2
|
+
type Props = {
|
3
|
+
open: boolean;
|
4
|
+
value: string;
|
5
|
+
onClose: () => void;
|
6
|
+
jsonViewProps?: {
|
7
|
+
height?: number;
|
8
|
+
fontSize?: number;
|
9
|
+
};
|
10
|
+
};
|
11
|
+
export declare const JsonModalView: React.FC<Props>;
|
12
|
+
export default JsonModalView;
|
@@ -1 +1 @@
|
|
1
|
-
export * from './JsonModalView';
|
1
|
+
export * from './JsonModalView';
|
@@ -1,3 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
/// <reference types="react" />
|
2
|
+
export declare const OverflowTip: ({ children }: {
|
3
|
+
children: any;
|
4
|
+
}) => JSX.Element;
|
@@ -1 +1 @@
|
|
1
|
-
export * from './OverflowTooltip';
|
1
|
+
export * from './OverflowTooltip';
|
@@ -1,26 +1,26 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { Control } from 'react-hook-form';
|
3
|
-
import { EntityReferenceProperty, PropertyUnion } from '../../../../interfaces';
|
4
|
-
type Props = {
|
5
|
-
control: Control<any>;
|
6
|
-
property: PropertyUnion;
|
7
|
-
name: string;
|
8
|
-
useExpression?: boolean;
|
9
|
-
required?: boolean;
|
10
|
-
label?: string;
|
11
|
-
title?: string;
|
12
|
-
entityReferenceDefinitionSources?: {
|
13
|
-
label: string;
|
14
|
-
value: string;
|
15
|
-
}[];
|
16
|
-
entityReferenceValueComponent?: React.ElementType<{
|
17
|
-
name: string;
|
18
|
-
property: EntityReferenceProperty;
|
19
|
-
}>;
|
20
|
-
fileReferenceValueComponent?: React.ElementType<{
|
21
|
-
name: string;
|
22
|
-
}>;
|
23
|
-
requiredErrorText?: string;
|
24
|
-
};
|
25
|
-
export declare const ControlMultiplePropertyFiller: ({ control, property, name, useExpression, required, label, title, entityReferenceDefinitionSources, entityReferenceValueComponent, fileReferenceValueComponent, requiredErrorText, }: Props) =>
|
26
|
-
export default ControlMultiplePropertyFiller;
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { Control } from 'react-hook-form';
|
3
|
+
import { EntityReferenceProperty, PropertyUnion } from '../../../../interfaces';
|
4
|
+
type Props = {
|
5
|
+
control: Control<any>;
|
6
|
+
property: PropertyUnion;
|
7
|
+
name: string;
|
8
|
+
useExpression?: boolean;
|
9
|
+
required?: boolean;
|
10
|
+
label?: string;
|
11
|
+
title?: string;
|
12
|
+
entityReferenceDefinitionSources?: {
|
13
|
+
label: string;
|
14
|
+
value: string;
|
15
|
+
}[];
|
16
|
+
entityReferenceValueComponent?: React.ElementType<{
|
17
|
+
name: string;
|
18
|
+
property: EntityReferenceProperty;
|
19
|
+
}>;
|
20
|
+
fileReferenceValueComponent?: React.ElementType<{
|
21
|
+
name: string;
|
22
|
+
}>;
|
23
|
+
requiredErrorText?: string;
|
24
|
+
};
|
25
|
+
export declare const ControlMultiplePropertyFiller: ({ control, property, name, useExpression, required, label, title, entityReferenceDefinitionSources, entityReferenceValueComponent, fileReferenceValueComponent, requiredErrorText, }: Props) => JSX.Element;
|
26
|
+
export default ControlMultiplePropertyFiller;
|
@@ -1,24 +1,24 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { Control } from 'react-hook-form';
|
3
|
-
import { EntityReferenceProperty, PropertyUnion } from '../../../../interfaces';
|
4
|
-
type Props = {
|
5
|
-
control: Control<any>;
|
6
|
-
name: string;
|
7
|
-
property: PropertyUnion;
|
8
|
-
useExpression?: boolean;
|
9
|
-
required?: boolean;
|
10
|
-
label?: string;
|
11
|
-
entityReferenceDefinitionSources?: {
|
12
|
-
label: string;
|
13
|
-
value: string;
|
14
|
-
}[];
|
15
|
-
entityReferenceValueComponent?: React.ElementType<{
|
16
|
-
name: string;
|
17
|
-
property: EntityReferenceProperty;
|
18
|
-
}>;
|
19
|
-
fileReferenceValueComponent?: React.ElementType<{
|
20
|
-
name: string;
|
21
|
-
}>;
|
22
|
-
};
|
23
|
-
export declare const ControlMultiplePropertyWidget: ({ control, name, property, useExpression, required, label, entityReferenceDefinitionSources, entityReferenceValueComponent, fileReferenceValueComponent, }: Props) =>
|
24
|
-
export default ControlMultiplePropertyWidget;
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { Control } from 'react-hook-form';
|
3
|
+
import { EntityReferenceProperty, PropertyUnion } from '../../../../interfaces';
|
4
|
+
type Props = {
|
5
|
+
control: Control<any>;
|
6
|
+
name: string;
|
7
|
+
property: PropertyUnion;
|
8
|
+
useExpression?: boolean;
|
9
|
+
required?: boolean;
|
10
|
+
label?: string;
|
11
|
+
entityReferenceDefinitionSources?: {
|
12
|
+
label: string;
|
13
|
+
value: string;
|
14
|
+
}[];
|
15
|
+
entityReferenceValueComponent?: React.ElementType<{
|
16
|
+
name: string;
|
17
|
+
property: EntityReferenceProperty;
|
18
|
+
}>;
|
19
|
+
fileReferenceValueComponent?: React.ElementType<{
|
20
|
+
name: string;
|
21
|
+
}>;
|
22
|
+
};
|
23
|
+
export declare const ControlMultiplePropertyWidget: ({ control, name, property, useExpression, required, label, entityReferenceDefinitionSources, entityReferenceValueComponent, fileReferenceValueComponent, }: Props) => JSX.Element;
|
24
|
+
export default ControlMultiplePropertyWidget;
|