@dartech/arsenal-ui 1.2.4 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc +13 -0
- package/.eslintrc.json +22 -0
- package/{index.d.ts → index.ts} +5 -5
- package/jest.config.ts +11 -0
- package/package.json +3 -12
- package/project.json +94 -0
- package/rollup.config.js +146 -0
- package/src/assets/chevron_left_gray.svg +3 -0
- package/src/consts/index.ts +13 -0
- package/src/interfaces/common.ts +18 -0
- package/src/interfaces/definition.ts +143 -0
- package/src/interfaces/{index.d.ts → index.ts} +3 -3
- package/src/interfaces/ui.ts +80 -0
- package/src/lib/Alert/Alert.tsx +108 -0
- package/src/lib/Alert/index.ts +1 -0
- package/src/lib/Breadcrumbs/Breadcrumbs.styled.tsx +16 -0
- package/src/lib/Breadcrumbs/Breadcrumbs.tsx +40 -0
- package/src/lib/Breadcrumbs/{index.d.ts → index.ts} +1 -1
- package/src/lib/ContentLayout/ContentLayout.tsx +31 -0
- package/src/lib/ContentLayout/index.ts +1 -0
- package/src/lib/Definition/CreateDefinition/CreateDefinition.tsx +78 -0
- package/src/lib/Definition/CreateDefinition/{index.d.ts → index.ts} +1 -1
- package/src/lib/Definition/DefinitionFiller/DefinitionFiller.tsx +71 -0
- package/src/lib/Definition/DefinitionFiller/{index.d.ts → index.ts} +1 -1
- package/src/lib/Definition/DefinitionValueView/DefinitionValueView.tsx +54 -0
- package/src/lib/Definition/DefinitionValueView/PropertyDataView.tsx +67 -0
- package/src/lib/Definition/DefinitionValueView/{index.d.ts → index.ts} +1 -1
- package/src/lib/Definition/{index.d.ts → index.ts} +3 -3
- package/src/lib/Forms/BackButton.tsx +46 -0
- package/src/lib/Forms/ControlAceEditor.tsx +125 -0
- package/src/lib/Forms/ControlAutocomplete.tsx +145 -0
- package/src/lib/Forms/ControlCheckbox.tsx +113 -0
- package/src/lib/Forms/ControlDate.tsx +75 -0
- package/src/lib/Forms/ControlDateTime.tsx +77 -0
- package/src/lib/Forms/ControlDebouncedInput.tsx +80 -0
- package/src/lib/Forms/ControlInput.tsx +111 -0
- package/src/lib/Forms/ControlNumberInput.tsx +121 -0
- package/src/lib/Forms/ControlQueryAutocomplete.tsx +197 -0
- package/src/lib/Forms/ControlRadio.tsx +136 -0
- package/src/lib/Forms/ControlSelect.tsx +164 -0
- package/src/lib/Forms/ControlSwitch.tsx +71 -0
- package/src/lib/Forms/ControlTime.tsx +93 -0
- package/src/lib/Forms/CopyButton.tsx +46 -0
- package/src/lib/Forms/{index.d.ts → index.ts} +15 -15
- package/src/lib/Forms/useAutocomplete.tsx +47 -0
- package/src/lib/InfoItem/InfoItem.tsx +40 -0
- package/src/lib/InfoItem/{index.d.ts → index.ts} +1 -1
- package/src/lib/InfoItem/styles.ts +17 -0
- package/src/lib/JsonPathPicker/JsonPathPicker.tsx +73 -0
- package/src/lib/JsonPathPicker/PropertyStep.tsx +70 -0
- package/src/lib/JsonPathPicker/{index.d.ts → index.ts} +1 -1
- package/src/lib/JsonView/JsonView.tsx +41 -0
- package/src/lib/JsonView/{index.d.ts → index.ts} +1 -1
- package/src/lib/Loader/Loader.tsx +41 -0
- package/src/lib/Loader/{index.d.ts → index.ts} +1 -1
- package/src/lib/Modals/JsonModalView.tsx +53 -0
- package/src/lib/Modals/{index.d.ts → index.ts} +1 -1
- package/src/lib/Property/PropertyFiller/JsonEditor.tsx +58 -0
- package/src/lib/Property/PropertyFiller/MultiplePropertyFiller.tsx +129 -0
- package/src/lib/Property/PropertyFiller/MultiplePropertyWidget.tsx +85 -0
- package/src/lib/Property/PropertyFiller/PropertyFiller.tsx +199 -0
- package/src/lib/Property/PropertyFiller/{index.d.ts → index.ts} +2 -2
- package/src/lib/Property/PropertyFiller/usePropertyFiller.ts +72 -0
- package/src/lib/Property/PropertyFiller/useStyles.ts +12 -0
- package/src/lib/Property/PropertyValidator/NodeValidator.tsx +92 -0
- package/src/lib/Property/PropertyValidator/NodesList.tsx +26 -0
- package/src/lib/Property/PropertyValidator/NumericTypeValidator.tsx +59 -0
- package/src/lib/Property/PropertyValidator/PropertyValidator.tsx +42 -0
- package/src/lib/Property/PropertyValidator/PropertyValidatorContext.tsx +4 -0
- package/src/lib/Property/PropertyValidator/StringTypeValidator.tsx +36 -0
- package/src/lib/Property/PropertyValidator/ValidationNodeSelector.tsx +62 -0
- package/src/lib/Property/PropertyValidator/index.ts +1 -0
- package/src/lib/Property/PropertyValueField/BooleanValueField.tsx +49 -0
- package/src/lib/Property/PropertyValueField/DateTimeValueField.tsx +58 -0
- package/src/lib/Property/PropertyValueField/DateValueField.tsx +58 -0
- package/src/lib/Property/PropertyValueField/JsonValueField.tsx +65 -0
- package/src/lib/Property/PropertyValueField/PropertyValueField.tsx +49 -0
- package/src/lib/Property/PropertyValueField/StringValueField.tsx +50 -0
- package/src/lib/Property/PropertyValueField/TimeValueField.tsx +67 -0
- package/src/lib/Property/PropertyValueField/{index.d.ts → index.ts} +1 -1
- package/src/lib/Property/PropertyWidget/PropertyWidget.tsx +115 -0
- package/src/lib/Property/PropertyWidget/{index.d.ts → index.ts} +1 -1
- package/src/lib/Property/UpsertProperty/CreatePropertiesList.tsx +148 -0
- package/src/lib/Property/UpsertProperty/CreatePropertyFormFields.tsx +158 -0
- package/src/lib/Property/UpsertProperty/CustomPropertyField.tsx +40 -0
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/BigDecimalPropertyFields.tsx +41 -0
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/DateAdditionalFields.tsx +27 -0
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityAdditionalFields.tsx +133 -0
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityReferencePropertyFields.tsx +46 -0
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/PropertyAdditionalFields.tsx +52 -0
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/StringPropertyFields.tsx +103 -0
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/{index.d.ts → index.ts} +1 -1
- package/src/lib/Property/UpsertProperty/{index.d.ts → index.ts} +2 -2
- package/src/lib/Property/UpsertProperty/useCustomFields.ts +22 -0
- package/src/lib/Property/ViewPropertiesList/ViewPropertiesList.tsx +37 -0
- package/src/lib/Property/ViewPropertiesList/{index.d.ts → index.ts} +1 -1
- package/src/lib/Property/ViewProperty/EntityPropertiesShortView.tsx +40 -0
- package/src/lib/Property/ViewProperty/EntityPropertiesView.tsx +48 -0
- package/src/lib/Property/ViewProperty/PropertyDataTable.tsx +148 -0
- package/src/lib/Property/ViewProperty/PropertyItem.tsx +43 -0
- package/src/lib/Property/ViewProperty/ViewProperty.tsx +52 -0
- package/src/lib/Property/ViewProperty/{index.d.ts → index.ts} +1 -1
- package/src/lib/Property/{index.d.ts → index.ts} +5 -5
- package/src/lib/Sidebar/Sidebar.styled.tsx +157 -0
- package/src/lib/Sidebar/Sidebar.tsx +27 -0
- package/src/lib/Sidebar/SidebarContext.tsx +37 -0
- package/src/lib/Sidebar/SidebarDrawer.tsx +50 -0
- package/src/lib/Sidebar/SidebarLink/MenuIcon.tsx +16 -0
- package/src/lib/Sidebar/SidebarLink/SidebarLink.tsx +54 -0
- package/src/lib/Sidebar/SidebarLink/SidebarLinkItem.tsx +54 -0
- package/src/lib/Sidebar/SidebarLink/SidebarNestedItem.tsx +62 -0
- package/src/lib/Sidebar/SidebarLink/{index.d.ts → index.ts} +2 -2
- package/src/lib/Sidebar/index.ts +2 -0
- package/src/lib/Status/Status.tsx +16 -0
- package/src/lib/Status/{index.d.ts → index.ts} +1 -1
- package/src/lib/Status/styles.ts +21 -0
- package/src/lib/StepperView/StepperView.tsx +73 -0
- package/src/lib/StepperView/{index.d.ts → index.ts} +1 -1
- package/src/lib/Table/DataGrid/JsonTypeCell.tsx +51 -0
- package/src/lib/Table/DataGrid/Table.tsx +117 -0
- package/src/lib/Table/DataGrid/TableAction.tsx +43 -0
- package/src/lib/Table/DataGrid/TableColumnMenu.tsx +12 -0
- package/src/lib/Table/DataGrid/TablePagination.tsx +42 -0
- package/src/lib/Table/DataGrid/index.ts +2 -0
- package/src/lib/Table/DataGrid/styles.ts +59 -0
- package/src/lib/Table/DataGrid/usePagination.ts +15 -0
- package/src/lib/Table/DataGrid/useTableQueryPagination.ts +47 -0
- package/src/lib/Table/DataGrid/useTableQuerySorting.ts +47 -0
- package/src/lib/Table/SimpleTable/SimpleTable.tsx +138 -0
- package/src/lib/Table/SimpleTable/TableActionCell.tsx +67 -0
- package/src/lib/Table/SimpleTable/index.ts +2 -0
- package/src/lib/Table/SimpleTable/useTablePagination.ts +54 -0
- package/src/lib/Table/SimpleTable/useTableSorting.ts +50 -0
- package/src/lib/Table/index.ts +2 -0
- package/src/lib/Tabs/RouteTabs.tsx +54 -0
- package/src/lib/Tabs/TabPanel.tsx +42 -0
- package/src/lib/Tabs/{index.d.ts → index.ts} +2 -2
- package/src/lib/{index.d.ts → index.ts} +16 -16
- package/src/theme/baseTheme.ts +128 -0
- package/src/theme/fonts.d.ts +2 -0
- package/src/theme/index.ts +126 -0
- package/src/theme/inputThemeOptions.ts +126 -0
- package/src/theme/stepperThemeOptions.ts +20 -0
- package/src/theme/tableThemeOptions.ts +50 -0
- package/src/theme/typographyThemeOptions.ts +32 -0
- package/src/utils/common.ts +73 -0
- package/src/utils/dem.ts +431 -0
- package/src/utils/hooks.ts +41 -0
- package/src/utils/{index.d.ts → index.ts} +5 -5
- package/src/utils/ui-utils.tsx +102 -0
- package/src/utils/validators.ts +14 -0
- package/tsconfig.json +25 -0
- package/tsconfig.lib.json +23 -0
- package/tsconfig.spec.json +20 -0
- package/index.js +0 -1
- package/src/consts/index.d.ts +0 -12
- package/src/interfaces/common.d.ts +0 -17
- package/src/interfaces/definition.d.ts +0 -107
- package/src/interfaces/ui.d.ts +0 -70
- package/src/lib/Alert/Alert.d.ts +0 -53
- package/src/lib/Alert/index.d.ts +0 -1
- package/src/lib/Breadcrumbs/Breadcrumbs.d.ts +0 -9
- package/src/lib/Breadcrumbs/Breadcrumbs.styled.d.ts +0 -2
- package/src/lib/ContentLayout/ContentLayout.d.ts +0 -9
- package/src/lib/ContentLayout/index.d.ts +0 -1
- package/src/lib/Definition/CreateDefinition/CreateDefinition.d.ts +0 -11
- package/src/lib/Definition/DefinitionFiller/DefinitionFiller.d.ts +0 -10
- package/src/lib/Definition/DefinitionValueView/DefinitionValueView.d.ts +0 -8
- package/src/lib/Definition/DefinitionValueView/PropertyDataView.d.ts +0 -9
- package/src/lib/Forms/BackButton.d.ts +0 -7
- package/src/lib/Forms/ControlAceEditor.d.ts +0 -24
- package/src/lib/Forms/ControlAutocomplete.d.ts +0 -69
- package/src/lib/Forms/ControlCheckbox.d.ts +0 -51
- package/src/lib/Forms/ControlDate.d.ts +0 -18
- package/src/lib/Forms/ControlDateTime.d.ts +0 -18
- package/src/lib/Forms/ControlDebouncedInput.d.ts +0 -4
- package/src/lib/Forms/ControlInput.d.ts +0 -59
- package/src/lib/Forms/ControlNumberInput.d.ts +0 -51
- package/src/lib/Forms/ControlQueryAutocomplete.d.ts +0 -16
- package/src/lib/Forms/ControlRadio.d.ts +0 -66
- package/src/lib/Forms/ControlSelect.d.ts +0 -67
- package/src/lib/Forms/ControlSwitch.d.ts +0 -19
- package/src/lib/Forms/ControlTime.d.ts +0 -18
- package/src/lib/Forms/CopyButton.d.ts +0 -20
- package/src/lib/Forms/useAutocomplete.d.ts +0 -10
- package/src/lib/InfoItem/InfoItem.d.ts +0 -10
- package/src/lib/InfoItem/styles.d.ts +0 -12
- package/src/lib/JsonPathPicker/JsonPathPicker.d.ts +0 -10
- package/src/lib/JsonPathPicker/PropertyStep.d.ts +0 -11
- package/src/lib/JsonView/JsonView.d.ts +0 -7
- package/src/lib/Loader/Loader.d.ts +0 -21
- package/src/lib/Modals/JsonModalView.d.ts +0 -10
- package/src/lib/Property/PropertyFiller/JsonEditor.d.ts +0 -10
- package/src/lib/Property/PropertyFiller/MultiplePropertyFiller.d.ts +0 -12
- package/src/lib/Property/PropertyFiller/MultiplePropertyWidget.d.ts +0 -11
- package/src/lib/Property/PropertyFiller/PropertyFiller.d.ts +0 -12
- package/src/lib/Property/PropertyFiller/usePropertyFiller.d.ts +0 -24
- package/src/lib/Property/PropertyFiller/useStyles.d.ts +0 -12
- package/src/lib/Property/PropertyValidator/NodeValidator.d.ts +0 -6
- package/src/lib/Property/PropertyValidator/NodesList.d.ts +0 -6
- package/src/lib/Property/PropertyValidator/NumericTypeValidator.d.ts +0 -8
- package/src/lib/Property/PropertyValidator/PropertyValidator.d.ts +0 -6
- package/src/lib/Property/PropertyValidator/PropertyValidatorContext.d.ts +0 -3
- package/src/lib/Property/PropertyValidator/StringTypeValidator.d.ts +0 -8
- package/src/lib/Property/PropertyValidator/ValidationNodeSelector.d.ts +0 -7
- package/src/lib/Property/PropertyValidator/index.d.ts +0 -1
- package/src/lib/Property/PropertyValueField/BooleanValueField.d.ts +0 -7
- package/src/lib/Property/PropertyValueField/DateTimeValueField.d.ts +0 -9
- package/src/lib/Property/PropertyValueField/DateValueField.d.ts +0 -9
- package/src/lib/Property/PropertyValueField/JsonValueField.d.ts +0 -10
- package/src/lib/Property/PropertyValueField/PropertyValueField.d.ts +0 -9
- package/src/lib/Property/PropertyValueField/StringValueField.d.ts +0 -9
- package/src/lib/Property/PropertyValueField/TimeValueField.d.ts +0 -9
- package/src/lib/Property/PropertyWidget/PropertyWidget.d.ts +0 -13
- package/src/lib/Property/UpsertProperty/CreatePropertiesList.d.ts +0 -13
- package/src/lib/Property/UpsertProperty/CreatePropertyFormFields.d.ts +0 -10
- package/src/lib/Property/UpsertProperty/CustomPropertyField.d.ts +0 -7
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/BigDecimalPropertyFields.d.ts +0 -6
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/DateAdditionalFields.d.ts +0 -7
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityAdditionalFields.d.ts +0 -8
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityReferencePropertyFields.d.ts +0 -6
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/PropertyAdditionalFields.d.ts +0 -10
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/StringPropertyFields.d.ts +0 -6
- package/src/lib/Property/UpsertProperty/useCustomFields.d.ts +0 -6
- package/src/lib/Property/ViewPropertiesList/ViewPropertiesList.d.ts +0 -8
- package/src/lib/Property/ViewProperty/EntityPropertiesShortView.d.ts +0 -7
- package/src/lib/Property/ViewProperty/EntityPropertiesView.d.ts +0 -8
- package/src/lib/Property/ViewProperty/PropertyDataTable.d.ts +0 -7
- package/src/lib/Property/ViewProperty/PropertyItem.d.ts +0 -9
- package/src/lib/Property/ViewProperty/ViewProperty.d.ts +0 -9
- package/src/lib/Sidebar/Sidebar.d.ts +0 -10
- package/src/lib/Sidebar/Sidebar.styled.d.ts +0 -117
- package/src/lib/Sidebar/SidebarContext.d.ts +0 -11
- package/src/lib/Sidebar/SidebarDrawer.d.ts +0 -9
- package/src/lib/Sidebar/SidebarLink/MenuIcon.d.ts +0 -7
- package/src/lib/Sidebar/SidebarLink/SidebarLink.d.ts +0 -7
- package/src/lib/Sidebar/SidebarLink/SidebarLinkItem.d.ts +0 -8
- package/src/lib/Sidebar/SidebarLink/SidebarNestedItem.d.ts +0 -10
- package/src/lib/Sidebar/index.d.ts +0 -2
- package/src/lib/Status/Status.d.ts +0 -8
- package/src/lib/Status/styles.d.ts +0 -12
- package/src/lib/StepperView/StepperView.d.ts +0 -11
- package/src/lib/Table/DataGrid/JsonTypeCell.d.ts +0 -7
- package/src/lib/Table/DataGrid/Table.d.ts +0 -49
- package/src/lib/Table/DataGrid/TableAction.d.ts +0 -13
- package/src/lib/Table/DataGrid/TableColumnMenu.d.ts +0 -3
- package/src/lib/Table/DataGrid/TablePagination.d.ts +0 -3
- package/src/lib/Table/DataGrid/index.d.ts +0 -2
- package/src/lib/Table/DataGrid/styles.d.ts +0 -12
- package/src/lib/Table/DataGrid/usePagination.d.ts +0 -5
- package/src/lib/Table/DataGrid/useTableQueryPagination.d.ts +0 -11
- package/src/lib/Table/DataGrid/useTableQuerySorting.d.ts +0 -6
- package/src/lib/Table/SimpleTable/SimpleTable.d.ts +0 -17
- package/src/lib/Table/SimpleTable/TableActionCell.d.ts +0 -10
- package/src/lib/Table/SimpleTable/index.d.ts +0 -2
- package/src/lib/Table/SimpleTable/useTablePagination.d.ts +0 -7
- package/src/lib/Table/SimpleTable/useTableSorting.d.ts +0 -6
- package/src/lib/Table/index.d.ts +0 -2
- package/src/lib/Tabs/RouteTabs.d.ts +0 -11
- package/src/lib/Tabs/TabPanel.d.ts +0 -25
- package/src/theme/baseTheme.d.ts +0 -2
- package/src/theme/index.d.ts +0 -1
- package/src/theme/inputThemeOptions.d.ts +0 -117
- package/src/theme/stepperThemeOptions.d.ts +0 -16
- package/src/theme/tableThemeOptions.d.ts +0 -47
- package/src/theme/typographyThemeOptions.d.ts +0 -29
- package/src/utils/common.d.ts +0 -7
- package/src/utils/dem.d.ts +0 -27
- package/src/utils/hooks.d.ts +0 -7
- package/src/utils/ui-utils.d.ts +0 -8
- package/src/utils/validators.d.ts +0 -5
@@ -1,66 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { Control } from 'react-hook-form';
|
3
|
-
import { ValidateFunc } from '../../interfaces';
|
4
|
-
/**
|
5
|
-
* This interface is referencing the [[ControlRadioBtn]] component props.
|
6
|
-
* @category Forms
|
7
|
-
*/
|
8
|
-
export interface ControlRadioProps {
|
9
|
-
/**
|
10
|
-
* React Hook Form `control`
|
11
|
-
*/
|
12
|
-
control: Control<any>;
|
13
|
-
/**
|
14
|
-
* React Hook Form control `name` propery
|
15
|
-
*/
|
16
|
-
name: string;
|
17
|
-
/**
|
18
|
-
* Label for component
|
19
|
-
*/
|
20
|
-
label?: string;
|
21
|
-
/**
|
22
|
-
* Radio group values
|
23
|
-
*/
|
24
|
-
values: string[] | unknown[];
|
25
|
-
/**
|
26
|
-
* Is input required flag
|
27
|
-
*/
|
28
|
-
required?: boolean;
|
29
|
-
/**
|
30
|
-
* React Hook Form `defaultValue`
|
31
|
-
*/
|
32
|
-
defaultValue?: unknown;
|
33
|
-
/**
|
34
|
-
* Is disabled input flag
|
35
|
-
*/
|
36
|
-
disabled?: boolean;
|
37
|
-
/**
|
38
|
-
* Hide error message flag
|
39
|
-
*/
|
40
|
-
hideErrorMessage?: boolean;
|
41
|
-
/**
|
42
|
-
* Custom onChange functionƒ
|
43
|
-
*/
|
44
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
45
|
-
/**
|
46
|
-
* React Hook Form validate function
|
47
|
-
* ```typescript
|
48
|
-
* type ValidateFunc = (value: string) => boolean | string;
|
49
|
-
* ```
|
50
|
-
*/
|
51
|
-
validate?: ValidateFunc | Record<string, ValidateFunc>;
|
52
|
-
/**
|
53
|
-
* Key for option label
|
54
|
-
*/
|
55
|
-
labelKey?: string;
|
56
|
-
/**
|
57
|
-
* Key for option value
|
58
|
-
*/
|
59
|
-
valueKey?: string;
|
60
|
-
}
|
61
|
-
/**
|
62
|
-
* Material UI `Radio` controlled component. Used with react-hook-form
|
63
|
-
* @category Forms
|
64
|
-
*/
|
65
|
-
export declare const ControlRadio: ({ name, label, values, control, required, defaultValue, disabled, hideErrorMessage, labelKey, valueKey, validate, onChange: customOnChange, }: ControlRadioProps) => JSX.Element;
|
66
|
-
export default ControlRadio;
|
@@ -1,67 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { TextFieldProps } from '@mui/material/TextField';
|
3
|
-
import { Control } from 'react-hook-form';
|
4
|
-
import { ValidateFunc } from '../../interfaces';
|
5
|
-
/**
|
6
|
-
* This interface is referencing the [[ControlSelect]] component props.
|
7
|
-
* @category Forms
|
8
|
-
*/
|
9
|
-
export type ControlSelectProps = TextFieldProps & {
|
10
|
-
/**
|
11
|
-
* React Hook Form control `name` propery
|
12
|
-
*/
|
13
|
-
name: string;
|
14
|
-
/**
|
15
|
-
* Label for MUI TextField select component
|
16
|
-
*/
|
17
|
-
label?: string;
|
18
|
-
/**
|
19
|
-
* React Hook Form `control`
|
20
|
-
*/
|
21
|
-
control: Control<any>;
|
22
|
-
/**
|
23
|
-
* Is input required flag
|
24
|
-
*/
|
25
|
-
required?: boolean;
|
26
|
-
/**
|
27
|
-
* React Hook Form `defaultValue`
|
28
|
-
*/
|
29
|
-
defaultValue?: unknown;
|
30
|
-
/**
|
31
|
-
* Is disabled input flag
|
32
|
-
*/
|
33
|
-
disabled?: boolean;
|
34
|
-
/**
|
35
|
-
* React Hook Form validate function
|
36
|
-
* ```typescript
|
37
|
-
* type ValidateFunc = (value: string) => boolean | string;
|
38
|
-
* ```
|
39
|
-
*/
|
40
|
-
validate?: ValidateFunc | Record<string, ValidateFunc>;
|
41
|
-
/**
|
42
|
-
* Hide error message flag
|
43
|
-
*/
|
44
|
-
hideErrorMessage?: boolean;
|
45
|
-
/**
|
46
|
-
* Custom onChange functionƒ
|
47
|
-
*/
|
48
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
49
|
-
/**
|
50
|
-
* Key for option label
|
51
|
-
*/
|
52
|
-
labelKey?: string;
|
53
|
-
/**
|
54
|
-
* Key for option value
|
55
|
-
*/
|
56
|
-
valueKey?: string;
|
57
|
-
/**
|
58
|
-
* Select options
|
59
|
-
*/
|
60
|
-
options: string[] | unknown[];
|
61
|
-
};
|
62
|
-
/**
|
63
|
-
* Material UI `Select` controlled component. Used with react-hook-form
|
64
|
-
* @category Forms
|
65
|
-
*/
|
66
|
-
export declare const ControlSelect: ({ control, validate, name, label, required, defaultValue, disabled, hideErrorMessage, onChange: customOnChange, labelKey, valueKey, options, ...textFieldProps }: ControlSelectProps) => JSX.Element;
|
67
|
-
export default ControlSelect;
|
@@ -1,19 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { SwitchProps } from '@mui/material/Switch';
|
3
|
-
import { Control } from 'react-hook-form';
|
4
|
-
type Props = SwitchProps & {
|
5
|
-
/**
|
6
|
-
* React Hook Form `control`
|
7
|
-
*/
|
8
|
-
control: Control<any>;
|
9
|
-
/**
|
10
|
-
* React Hook Form control `name` propery
|
11
|
-
*/
|
12
|
-
name: string;
|
13
|
-
/**
|
14
|
-
* Material-UI FormControlLabel `label` prop
|
15
|
-
*/
|
16
|
-
label?: string;
|
17
|
-
};
|
18
|
-
export declare const ControlSwitch: ({ control, name, label, ...switchProps }: Props) => JSX.Element;
|
19
|
-
export default ControlSwitch;
|
@@ -1,18 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { Control } from 'react-hook-form';
|
3
|
-
type Props = {
|
4
|
-
/**
|
5
|
-
* React Hook Form `control`
|
6
|
-
*/
|
7
|
-
control: Control<any>;
|
8
|
-
/**
|
9
|
-
* Is input required flag
|
10
|
-
*/
|
11
|
-
required?: boolean;
|
12
|
-
name: string;
|
13
|
-
label?: string;
|
14
|
-
format?: string;
|
15
|
-
hideErrorMessage?: boolean;
|
16
|
-
};
|
17
|
-
export declare const ControlTime: ({ control, name, required, label, format, hideErrorMessage, }: Props) => JSX.Element;
|
18
|
-
export default ControlTime;
|
@@ -1,20 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
/**
|
3
|
-
* This interface is referencing the [[CopyButton]] component props.
|
4
|
-
* @category Forms
|
5
|
-
*/
|
6
|
-
export interface CopyButtonProps {
|
7
|
-
/**
|
8
|
-
* Text to copy
|
9
|
-
*/
|
10
|
-
copyText: string;
|
11
|
-
/**
|
12
|
-
* Tooltip help text
|
13
|
-
*/
|
14
|
-
helpText?: string;
|
15
|
-
}
|
16
|
-
/**
|
17
|
-
* Copy value button
|
18
|
-
* @category Forms
|
19
|
-
*/
|
20
|
-
export declare const CopyButton: ({ copyText, helpText }: CopyButtonProps) => JSX.Element;
|
@@ -1,10 +0,0 @@
|
|
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,10 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import 'ace-builds/src-noconflict/ace';
|
3
|
-
import 'ace-builds/src-noconflict/mode-json';
|
4
|
-
type Props = {
|
5
|
-
title: string;
|
6
|
-
text?: string;
|
7
|
-
json?: any;
|
8
|
-
};
|
9
|
-
export declare const InfoItem: ({ title, text, json }: Props) => JSX.Element;
|
10
|
-
export default InfoItem;
|
@@ -1,12 +0,0 @@
|
|
1
|
-
declare const _default: (params: void, styleOverrides?: {
|
2
|
-
props: {
|
3
|
-
classes?: Record<string, string>;
|
4
|
-
} & Record<string, unknown>;
|
5
|
-
ownerState?: Record<string, unknown>;
|
6
|
-
}) => {
|
7
|
-
classes: Record<"container" | "title" | "text", string>;
|
8
|
-
theme: import("@mui/material").Theme;
|
9
|
-
css: import("tss-react/types").Css;
|
10
|
-
cx: import("tss-react/types").Cx;
|
11
|
-
};
|
12
|
-
export default _default;
|
@@ -1,10 +0,0 @@
|
|
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,11 +0,0 @@
|
|
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,21 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
/**
|
3
|
-
* This interface is referencing the [[Loader]] component props.
|
4
|
-
* @category Common UI components
|
5
|
-
*/
|
6
|
-
export interface LoaderProps {
|
7
|
-
/**
|
8
|
-
* Background transparency flag. Default: `rgba(255, 255, 255, .3)`
|
9
|
-
*/
|
10
|
-
transparent?: boolean;
|
11
|
-
/**
|
12
|
-
* CSS `position` property. Default: `absolute`
|
13
|
-
*/
|
14
|
-
position?: 'absolute' | 'relative' | 'fixed';
|
15
|
-
}
|
16
|
-
/**
|
17
|
-
* Loader screen component. Used in the data loading process
|
18
|
-
* @category Common UI components
|
19
|
-
*/
|
20
|
-
export declare const Loader: ({ transparent, position }: LoaderProps) => JSX.Element;
|
21
|
-
export default Loader;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import 'ace-builds/src-noconflict/ace';
|
3
|
-
import 'ace-builds/src-noconflict/mode-json';
|
4
|
-
type Props = {
|
5
|
-
open: boolean;
|
6
|
-
value: string;
|
7
|
-
onClose: () => void;
|
8
|
-
};
|
9
|
-
export declare const JsonModalView: React.FC<Props>;
|
10
|
-
export default JsonModalView;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import 'ace-builds/src-noconflict/mode-json';
|
3
|
-
import { RefCallBack } from 'react-hook-form';
|
4
|
-
type Props = {
|
5
|
-
validate?: boolean;
|
6
|
-
name: string;
|
7
|
-
inputRef: RefCallBack;
|
8
|
-
};
|
9
|
-
declare const JsonEditor: ({ validate, name, inputRef }: Props) => JSX.Element;
|
10
|
-
export default JsonEditor;
|
@@ -1,12 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { PropertyUnion } from '../../../interfaces';
|
3
|
-
type Props = {
|
4
|
-
property: PropertyUnion;
|
5
|
-
name: string;
|
6
|
-
useExpression?: boolean;
|
7
|
-
required?: boolean;
|
8
|
-
label?: string;
|
9
|
-
title?: string;
|
10
|
-
};
|
11
|
-
export declare const MultiplePropertyFiller: ({ property, name, useExpression, required, label, title }: Props) => JSX.Element;
|
12
|
-
export default MultiplePropertyFiller;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { PropertyUnion } from '../../../interfaces';
|
3
|
-
type Props = {
|
4
|
-
name: string;
|
5
|
-
property: PropertyUnion;
|
6
|
-
useExpression?: boolean;
|
7
|
-
required?: boolean;
|
8
|
-
label?: string;
|
9
|
-
};
|
10
|
-
declare const MultiplePropertyWidget: ({ name, property, useExpression, required, label }: Props) => JSX.Element;
|
11
|
-
export default MultiplePropertyWidget;
|
@@ -1,12 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { PropertyUnion } from '../../../interfaces';
|
3
|
-
type Props = {
|
4
|
-
property: PropertyUnion;
|
5
|
-
name: string;
|
6
|
-
useExpression?: boolean;
|
7
|
-
label?: string;
|
8
|
-
required?: boolean;
|
9
|
-
title?: string;
|
10
|
-
};
|
11
|
-
export declare const PropertyFiller: ({ property, name, useExpression, label, required, title, }: Props) => JSX.Element;
|
12
|
-
export default PropertyFiller;
|
@@ -1,24 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { PropertyFillType, PropertyUnion } from '../../../interfaces';
|
3
|
-
type Props = {
|
4
|
-
value: unknown;
|
5
|
-
property: PropertyUnion;
|
6
|
-
isDirty: boolean;
|
7
|
-
label?: string;
|
8
|
-
required?: boolean;
|
9
|
-
useExpression?: boolean;
|
10
|
-
multipleOptions?: boolean;
|
11
|
-
};
|
12
|
-
declare const usePropertyFiller: ({ value, property, label, isDirty, required, useExpression, multipleOptions, }: Props) => {
|
13
|
-
propertyType: import("../../../interfaces").PropertyType;
|
14
|
-
valueLabel: string;
|
15
|
-
fillOptionLabel: string;
|
16
|
-
fillOption: PropertyFillType;
|
17
|
-
fillOptions: {
|
18
|
-
value: PropertyFillType;
|
19
|
-
label: string;
|
20
|
-
sortOrder: number;
|
21
|
-
}[];
|
22
|
-
setFillOption: import("react").Dispatch<import("react").SetStateAction<PropertyFillType>>;
|
23
|
-
};
|
24
|
-
export default usePropertyFiller;
|
@@ -1,12 +0,0 @@
|
|
1
|
-
declare const useStyles: (params: void, styleOverrides?: {
|
2
|
-
props: {
|
3
|
-
classes?: Record<string, string>;
|
4
|
-
} & Record<string, unknown>;
|
5
|
-
ownerState?: Record<string, unknown>;
|
6
|
-
}) => {
|
7
|
-
classes: Record<"inputLabel", string>;
|
8
|
-
theme: import("@mui/material").Theme;
|
9
|
-
css: import("tss-react/types").Css;
|
10
|
-
cx: import("tss-react/types").Cx;
|
11
|
-
};
|
12
|
-
export default useStyles;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { Control } from 'react-hook-form';
|
3
|
-
type Props = {
|
4
|
-
name: string;
|
5
|
-
control: Control<any>;
|
6
|
-
};
|
7
|
-
export declare const NumericTypeValidator: ({ name, control }: Props) => JSX.Element;
|
8
|
-
export default NumericTypeValidator;
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './PropertyValidator';
|
@@ -1,10 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import 'ace-builds/src-noconflict/ace';
|
3
|
-
import 'ace-builds/src-noconflict/mode-json';
|
4
|
-
type Props = {
|
5
|
-
name: string;
|
6
|
-
label?: string;
|
7
|
-
required?: boolean;
|
8
|
-
};
|
9
|
-
declare const JsonValueField: ({ name, label, required }: Props) => JSX.Element;
|
10
|
-
export default JsonValueField;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
type Props = {
|
3
|
-
propertyFieldName: string;
|
4
|
-
name: string;
|
5
|
-
label?: string;
|
6
|
-
required?: boolean;
|
7
|
-
};
|
8
|
-
export declare const PropertyValueField: ({ propertyFieldName, name, label, required }: Props) => JSX.Element;
|
9
|
-
export default PropertyValueField;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
type Props = {
|
3
|
-
name: string;
|
4
|
-
label?: string;
|
5
|
-
required?: boolean;
|
6
|
-
restrictedValues?: string[];
|
7
|
-
};
|
8
|
-
declare const StringValueField: ({ name, label, required, restrictedValues }: Props) => JSX.Element;
|
9
|
-
export default StringValueField;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { RefCallBack } from 'react-hook-form';
|
3
|
-
import { PropertyUnion } from '../../../interfaces';
|
4
|
-
type Props = {
|
5
|
-
property: PropertyUnion;
|
6
|
-
name: string;
|
7
|
-
label?: string;
|
8
|
-
useExpression?: boolean;
|
9
|
-
required?: boolean;
|
10
|
-
inputRef: RefCallBack;
|
11
|
-
};
|
12
|
-
export declare const PropertyWidget: ({ property, name, label, useExpression, inputRef }: Props) => JSX.Element;
|
13
|
-
export default PropertyWidget;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { CustomPropertyFieldProps } from '../../../interfaces';
|
3
|
-
type Props = {
|
4
|
-
parentFieldName?: string;
|
5
|
-
hideAddButton?: boolean;
|
6
|
-
focusOnIndex?: number;
|
7
|
-
required?: boolean;
|
8
|
-
entityDefinition?: boolean;
|
9
|
-
globalParameter?: boolean;
|
10
|
-
customPropertyFields?: CustomPropertyFieldProps[];
|
11
|
-
};
|
12
|
-
export declare const CreatePropertiesList: ({ parentFieldName, hideAddButton, focusOnIndex, required, entityDefinition, globalParameter, customPropertyFields, }: Props) => JSX.Element;
|
13
|
-
export default CreatePropertiesList;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { CustomPropertyFieldProps } from '../../../interfaces';
|
3
|
-
type Props = {
|
4
|
-
propertyFieldName: string;
|
5
|
-
entityDefinition?: boolean;
|
6
|
-
globalParameter?: boolean;
|
7
|
-
customPropertyFields?: CustomPropertyFieldProps[];
|
8
|
-
};
|
9
|
-
export declare const CreatePropertyFormFields: ({ propertyFieldName, entityDefinition, globalParameter, customPropertyFields, }: Props) => JSX.Element;
|
10
|
-
export default CreatePropertyFormFields;
|
@@ -1,7 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { CustomPropertyFieldProps } from '../../../interfaces';
|
3
|
-
type Props = CustomPropertyFieldProps & {
|
4
|
-
propertyFieldName: string;
|
5
|
-
};
|
6
|
-
export declare const CustomPropertyField: ({ name, label, propertyFieldName, type, decimal, options, required, }: Props) => JSX.Element;
|
7
|
-
export default CustomPropertyField;
|
package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityAdditionalFields.d.ts
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
type Props = {
|
3
|
-
parentPropertyFieldName: string;
|
4
|
-
entityDefinition?: boolean;
|
5
|
-
globalParameter?: boolean;
|
6
|
-
};
|
7
|
-
declare const EntityAdditionalFields: ({ parentPropertyFieldName, entityDefinition, globalParameter, }: Props) => JSX.Element;
|
8
|
-
export default EntityAdditionalFields;
|
package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/PropertyAdditionalFields.d.ts
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { PropertyType } from '../../../../interfaces';
|
3
|
-
type Props = {
|
4
|
-
propertyType: PropertyType;
|
5
|
-
propertyFieldName: string;
|
6
|
-
entityDefinition?: boolean;
|
7
|
-
globalParameter?: boolean;
|
8
|
-
};
|
9
|
-
export declare const PropertyAdditionalFields: ({ propertyType, propertyFieldName, entityDefinition, globalParameter, }: Props) => JSX.Element;
|
10
|
-
export default PropertyAdditionalFields;
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import { CustomPropertyFieldProps } from '../../../interfaces';
|
2
|
-
declare const useCustomFields: (customPropertyFields: CustomPropertyFieldProps[]) => {
|
3
|
-
customCheckboxes: CustomPropertyFieldProps[];
|
4
|
-
customFields: CustomPropertyFieldProps[];
|
5
|
-
};
|
6
|
-
export default useCustomFields;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { PropertiesArrayType, PropertiesObjectType } from '../../../interfaces';
|
3
|
-
type Props = {
|
4
|
-
properties: PropertiesObjectType<unknown> | PropertiesArrayType<unknown>;
|
5
|
-
expandAll?: boolean;
|
6
|
-
};
|
7
|
-
export declare const ViewPropertiesList: ({ properties, expandAll }: Props) => JSX.Element;
|
8
|
-
export default ViewPropertiesList;
|