@dartech/arsenal-ui 0.0.1 → 0.0.3
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/{index.ts → index.d.ts} +3 -3
- package/index.esm.js +1 -0
- package/index.umd.js +1 -0
- package/package.json +5 -2
- package/src/interfaces/common.d.ts +10 -0
- package/src/interfaces/definition.d.ts +117 -0
- package/src/interfaces/{index.ts → index.d.ts} +3 -3
- package/src/interfaces/ui.d.ts +33 -0
- package/src/lib/Alert/Alert.d.ts +53 -0
- package/src/lib/Alert/index.d.ts +1 -0
- package/src/lib/Definition/CreateDefinition/CreateDefinition.d.ts +11 -0
- package/src/lib/Definition/CreateDefinition/{index.ts → index.d.ts} +1 -1
- package/src/lib/Definition/DefinitionFiller/DefinitionFiller.d.ts +8 -0
- package/src/lib/Definition/DefinitionFiller/WidgetDefinitionFiller.d.ts +9 -0
- package/src/lib/Definition/DefinitionFiller/{index.ts → index.d.ts} +2 -2
- package/src/lib/Definition/{index.ts → index.d.ts} +2 -2
- package/src/lib/DemPropertyField/DemPropertyField.d.ts +59 -0
- package/src/lib/DemPropertyField/DemPropertyView/DemPropertyView.d.ts +8 -0
- package/src/lib/DemPropertyField/DemPropertyView/{index.ts → index.d.ts} +1 -1
- package/src/lib/DemPropertyField/MultipleDemField/MultipleDemField.d.ts +9 -0
- package/src/lib/DemPropertyField/MultipleDemField/{index.tsx → index.d.ts} +1 -1
- package/src/lib/DemPropertyField/RestrictedValuesEditor.d.ts +6 -0
- package/src/lib/DemPropertyField/SingleDemField/SingleDemField.d.ts +9 -0
- package/src/lib/DemPropertyField/SingleDemField/{index.ts → index.d.ts} +1 -1
- package/src/lib/DemPropertyField/{index.ts → index.d.ts} +2 -2
- package/src/lib/DemPropertyField/styles.d.ts +2 -0
- package/src/lib/DemPropertyField/widgets/DemBooleanWidget.d.ts +7 -0
- package/src/lib/DemPropertyField/widgets/DemDateTimeWidget.d.ts +9 -0
- package/src/lib/DemPropertyField/widgets/DemDateWidget.d.ts +9 -0
- package/src/lib/DemPropertyField/widgets/DemFieldWidget.d.ts +11 -0
- package/src/lib/DemPropertyField/widgets/DemFloatWidget.d.ts +10 -0
- package/src/lib/DemPropertyField/widgets/DemIntegerWidget.d.ts +10 -0
- package/src/lib/DemPropertyField/widgets/DemJsonWidget.d.ts +9 -0
- package/src/lib/DemPropertyField/widgets/DemStringWidget.d.ts +10 -0
- package/src/lib/DemPropertyField/widgets/DemTimeWidget.d.ts +9 -0
- package/src/lib/DemPropertyField/widgets/{index.ts → index.d.ts} +1 -1
- package/src/lib/Forms/BackButton.d.ts +7 -0
- package/src/lib/Forms/ControlAceEditor.d.ts +20 -0
- package/src/lib/Forms/ControlAutocomplete.d.ts +49 -0
- package/src/lib/Forms/ControlCheckbox.d.ts +30 -0
- package/src/lib/Forms/ControlDebouncedInput.d.ts +4 -0
- package/src/lib/Forms/ControlInput.d.ts +54 -0
- package/src/lib/Forms/ControlNumberInput.d.ts +43 -0
- package/src/lib/Forms/ControlQueryAutocomplete.d.ts +7 -0
- package/src/lib/Forms/ControlRadioBtn.d.ts +26 -0
- package/src/lib/Forms/ControlSelect.d.ts +66 -0
- package/src/lib/Forms/CopyButton.d.ts +21 -0
- package/src/lib/Forms/{index.ts → index.d.ts} +11 -10
- package/src/lib/InfoItem/InfoItem.d.ts +10 -0
- package/src/lib/InfoItem/{index.ts → index.d.ts} +1 -1
- package/src/lib/InfoItem/styles.d.ts +2 -0
- package/src/lib/JsonPathPicker/JsonPathPicker.d.ts +10 -0
- package/src/lib/JsonPathPicker/PropertyStep.d.ts +11 -0
- package/src/lib/JsonPathPicker/{index.ts → index.d.ts} +1 -1
- package/src/lib/JsonView/JsonView.d.ts +9 -0
- package/src/lib/JsonView/{index.ts → index.d.ts} +1 -1
- package/src/lib/Loader/Loader.d.ts +21 -0
- package/src/lib/Loader/{index.ts → index.d.ts} +1 -1
- package/src/lib/Modals/JsonModalView.d.ts +10 -0
- package/src/lib/Modals/{index.ts → index.d.ts} +1 -1
- package/src/lib/Property/PropertyValueField/BooleanValueField.d.ts +7 -0
- package/src/lib/Property/PropertyValueField/DateTimeValueField.d.ts +9 -0
- package/src/lib/Property/PropertyValueField/DateValueField.d.ts +9 -0
- package/src/lib/Property/PropertyValueField/EntityValueField.d.ts +9 -0
- package/src/lib/Property/PropertyValueField/JsonValueField.d.ts +10 -0
- package/src/lib/Property/PropertyValueField/PropertyValue.d.ts +10 -0
- package/src/lib/Property/PropertyValueField/PropertyValueField.d.ts +9 -0
- package/src/lib/Property/PropertyValueField/StringValueField.d.ts +9 -0
- package/src/lib/Property/PropertyValueField/TimeValueField.d.ts +9 -0
- package/src/lib/Property/PropertyValueField/ValueComponent.d.ts +15 -0
- package/src/lib/Property/PropertyValueField/{index.ts → index.d.ts} +2 -1
- package/src/lib/Property/PropertyWidget/PropertyWidget.d.ts +9 -0
- package/src/lib/Property/PropertyWidget/{index.ts → index.d.ts} +1 -1
- package/src/lib/Property/UpsertProperty/CreatePropertiesList.d.ts +13 -0
- package/src/lib/Property/UpsertProperty/CreatePropertyFormFields.d.ts +10 -0
- package/src/lib/Property/UpsertProperty/CustomPropertyField.d.ts +7 -0
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/BigDecimalPropertyFields.d.ts +6 -0
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/DateAdditionalFields.d.ts +7 -0
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityAdditionalFields.d.ts +8 -0
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityReferencePropertyFields.d.ts +6 -0
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/PropertyAdditionalFields.d.ts +10 -0
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/StringPropertyFields.d.ts +6 -0
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/{index.ts → index.d.ts} +1 -1
- package/src/lib/Property/UpsertProperty/{index.ts → index.d.ts} +2 -2
- package/src/lib/Property/UpsertProperty/useCustomFields.d.ts +6 -0
- package/src/lib/Property/ViewPropertiesList/ViewPropertiesList.d.ts +8 -0
- package/src/lib/Property/ViewPropertiesList/{index.ts → index.d.ts} +1 -1
- package/src/lib/Property/ViewProperty/EntityPropertiesShortView.d.ts +9 -0
- package/src/lib/Property/ViewProperty/EntityPropertiesView.d.ts +8 -0
- package/src/lib/Property/ViewProperty/PropertyDataTable.d.ts +7 -0
- package/src/lib/Property/ViewProperty/PropertyItem.d.ts +9 -0
- package/src/lib/Property/ViewProperty/ViewProperty.d.ts +9 -0
- package/src/lib/Property/ViewProperty/{index.ts → index.d.ts} +1 -1
- package/src/lib/Property/{index.ts → index.d.ts} +4 -4
- package/src/lib/Status/Status.d.ts +7 -0
- package/src/lib/Status/{index.ts → index.d.ts} +1 -1
- package/src/lib/Status/styles.d.ts +2 -0
- package/src/lib/StepperView/StepperView.d.ts +10 -0
- package/src/lib/StepperView/index.d.ts +1 -0
- package/src/lib/Table/Table.d.ts +49 -0
- package/src/lib/Table/TableColumnMenu.d.ts +3 -0
- package/src/lib/Table/TablePagination.d.ts +3 -0
- package/src/lib/Table/index.d.ts +1 -0
- package/src/lib/Table/styles.d.ts +2 -0
- package/src/lib/Table/usePagination.d.ts +5 -0
- package/src/lib/Table/useTableQueryPagination.d.ts +11 -0
- package/src/lib/Table/useTableQuerySorting.d.ts +6 -0
- package/src/lib/Tabs/RouteTabs.d.ts +11 -0
- package/src/lib/Tabs/TabPanel.d.ts +25 -0
- package/src/lib/Tabs/{index.ts → index.d.ts} +2 -2
- package/src/lib/TemplateContent/ExpressionDecorator.d.ts +5 -0
- package/src/lib/TemplateContent/TemplateContentEditor.d.ts +9 -0
- package/src/lib/TemplateContent/{index.ts → index.d.ts} +1 -1
- package/src/lib/{index.ts → index.d.ts} +15 -14
- package/src/utils/common.d.ts +7 -0
- package/src/utils/dem.d.ts +7 -0
- package/src/utils/hooks.d.ts +7 -0
- package/src/utils/{index.ts → index.d.ts} +5 -5
- package/src/utils/ui-utils.d.ts +7 -0
- package/src/utils/validators.d.ts +12 -0
- package/.babelrc +0 -12
- package/.eslintrc.json +0 -22
- package/jest.config.js +0 -9
- package/project.json +0 -69
- package/rollup.config.js +0 -135
- package/src/interfaces/common.ts +0 -12
- package/src/interfaces/definition.ts +0 -143
- package/src/interfaces/ui.ts +0 -35
- package/src/lib/Alert/Alert.tsx +0 -108
- package/src/lib/Alert/index.ts +0 -1
- package/src/lib/Definition/CreateDefinition/CreateDefinition.tsx +0 -74
- package/src/lib/Definition/DefinitionFiller/DefinitionFiller.tsx +0 -85
- package/src/lib/Definition/DefinitionFiller/WidgetDefinitionFiller.tsx +0 -96
- package/src/lib/DemPropertyField/DemPropertyField.tsx +0 -93
- package/src/lib/DemPropertyField/DemPropertyView/DemPropertyView.tsx +0 -44
- package/src/lib/DemPropertyField/MultipleDemField/MultipleDemField.tsx +0 -293
- package/src/lib/DemPropertyField/RestrictedValuesEditor.tsx +0 -63
- package/src/lib/DemPropertyField/SingleDemField/SingleDemField.tsx +0 -156
- package/src/lib/DemPropertyField/styles.ts +0 -50
- package/src/lib/DemPropertyField/widgets/DemBooleanWidget.tsx +0 -26
- package/src/lib/DemPropertyField/widgets/DemDateTimeWidget.tsx +0 -34
- package/src/lib/DemPropertyField/widgets/DemDateWidget.tsx +0 -33
- package/src/lib/DemPropertyField/widgets/DemFieldWidget.tsx +0 -67
- package/src/lib/DemPropertyField/widgets/DemFloatWidget.tsx +0 -49
- package/src/lib/DemPropertyField/widgets/DemIntegerWidget.tsx +0 -63
- package/src/lib/DemPropertyField/widgets/DemJsonWidget.tsx +0 -33
- package/src/lib/DemPropertyField/widgets/DemStringWidget.tsx +0 -35
- package/src/lib/DemPropertyField/widgets/DemTimeWidget.tsx +0 -46
- package/src/lib/Forms/BackButton.tsx +0 -45
- package/src/lib/Forms/ControlAceEditor.tsx +0 -103
- package/src/lib/Forms/ControlAutocomplete.tsx +0 -134
- package/src/lib/Forms/ControlCheckbox.tsx +0 -57
- package/src/lib/Forms/ControlDebouncedInput.tsx +0 -69
- package/src/lib/Forms/ControlInput.tsx +0 -102
- package/src/lib/Forms/ControlNumberInput.tsx +0 -144
- package/src/lib/Forms/ControlRadioBtn.tsx +0 -46
- package/src/lib/Forms/ControlSelect.tsx +0 -135
- package/src/lib/Forms/CopyButton.tsx +0 -49
- package/src/lib/InfoItem/InfoItem.tsx +0 -39
- package/src/lib/InfoItem/styles.ts +0 -17
- package/src/lib/JsonPathPicker/JsonPathPicker.tsx +0 -71
- package/src/lib/JsonPathPicker/PropertyStep.tsx +0 -74
- package/src/lib/JsonView/JsonView.tsx +0 -43
- package/src/lib/Loader/Loader.tsx +0 -41
- package/src/lib/Modals/JsonModalView.tsx +0 -52
- package/src/lib/Property/PropertyValueField/BooleanValueField.tsx +0 -41
- package/src/lib/Property/PropertyValueField/DateTimeValueField.tsx +0 -59
- package/src/lib/Property/PropertyValueField/DateValueField.tsx +0 -59
- package/src/lib/Property/PropertyValueField/EntityValueField.tsx +0 -33
- package/src/lib/Property/PropertyValueField/JsonValueField.tsx +0 -64
- package/src/lib/Property/PropertyValueField/PropertyValue.tsx +0 -97
- package/src/lib/Property/PropertyValueField/PropertyValueField.tsx +0 -86
- package/src/lib/Property/PropertyValueField/StringValueField.tsx +0 -21
- package/src/lib/Property/PropertyValueField/TimeValueField.tsx +0 -68
- package/src/lib/Property/PropertyValueField/ValueComponent.tsx +0 -63
- package/src/lib/Property/PropertyWidget/PropertyWidget.tsx +0 -167
- package/src/lib/Property/UpsertProperty/CreatePropertiesList.tsx +0 -131
- package/src/lib/Property/UpsertProperty/CreatePropertyFormFields.tsx +0 -147
- package/src/lib/Property/UpsertProperty/CustomPropertyField.tsx +0 -40
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/BigDecimalPropertyFields.tsx +0 -41
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/DateAdditionalFields.tsx +0 -27
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityAdditionalFields.tsx +0 -133
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityReferencePropertyFields.tsx +0 -46
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/PropertyAdditionalFields.tsx +0 -52
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/StringPropertyFields.tsx +0 -98
- package/src/lib/Property/UpsertProperty/useCustomFields.ts +0 -22
- package/src/lib/Property/ViewPropertiesList/ViewPropertiesList.tsx +0 -50
- package/src/lib/Property/ViewProperty/EntityPropertiesShortView.tsx +0 -41
- package/src/lib/Property/ViewProperty/EntityPropertiesView.tsx +0 -48
- package/src/lib/Property/ViewProperty/PropertyDataTable.tsx +0 -139
- package/src/lib/Property/ViewProperty/PropertyItem.tsx +0 -46
- package/src/lib/Property/ViewProperty/ViewProperty.tsx +0 -52
- package/src/lib/Status/Status.tsx +0 -15
- package/src/lib/Status/styles.ts +0 -14
- package/src/lib/Table/Table.tsx +0 -116
- package/src/lib/Table/TableColumnMenu.tsx +0 -12
- package/src/lib/Table/TablePagination.tsx +0 -42
- package/src/lib/Table/index.ts +0 -1
- package/src/lib/Table/styles.ts +0 -59
- package/src/lib/Table/usePagination.ts +0 -15
- package/src/lib/Table/useTableQueryPagination.ts +0 -49
- package/src/lib/Table/useTableQuerySorting.ts +0 -52
- package/src/lib/Tabs/RouteTabs.tsx +0 -54
- package/src/lib/Tabs/TabPanel.tsx +0 -42
- package/src/lib/TemplateContent/ExpressionDecorator.tsx +0 -7
- package/src/lib/TemplateContent/TemplateContentEditor.tsx +0 -144
- package/src/utils/common.ts +0 -68
- package/src/utils/dem.ts +0 -78
- package/src/utils/hooks.ts +0 -41
- package/src/utils/ui-utils.tsx +0 -71
- package/src/utils/validators.ts +0 -130
- package/tsconfig.json +0 -24
- package/tsconfig.lib.json +0 -22
- package/tsconfig.spec.json +0 -19
@@ -0,0 +1,53 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { DialogProps } from '@material-ui/core/Dialog';
|
3
|
+
/**
|
4
|
+
* This interface is referencing the [[AlertDialog]] component props.
|
5
|
+
* @category Common UI components
|
6
|
+
*/
|
7
|
+
export interface AlertDialogProps {
|
8
|
+
/**
|
9
|
+
* Is dialog open flag
|
10
|
+
*/
|
11
|
+
open: boolean;
|
12
|
+
/**
|
13
|
+
* Dialog title
|
14
|
+
*/
|
15
|
+
title: string;
|
16
|
+
/**
|
17
|
+
* Dialog description
|
18
|
+
*/
|
19
|
+
description?: string;
|
20
|
+
/**
|
21
|
+
* Close button text
|
22
|
+
*/
|
23
|
+
closeButtonTitle?: string;
|
24
|
+
/**
|
25
|
+
* Confirm button text
|
26
|
+
*/
|
27
|
+
confirmButtonTitle?: string;
|
28
|
+
/**
|
29
|
+
* onClose event handle function
|
30
|
+
*/
|
31
|
+
onClose: () => void;
|
32
|
+
/**
|
33
|
+
* onConfirm event handle function
|
34
|
+
*/
|
35
|
+
onConfirm?: (values?: any) => void;
|
36
|
+
/**
|
37
|
+
* children components
|
38
|
+
*/
|
39
|
+
children?: React.ReactNode;
|
40
|
+
/**
|
41
|
+
* Material UI Dialog component props
|
42
|
+
*/
|
43
|
+
dialogProps?: Partial<DialogProps>;
|
44
|
+
loading?: boolean;
|
45
|
+
confirmButtonDisabled?: boolean;
|
46
|
+
maxWidth?: false | "xs" | "sm" | "md" | "lg" | "xl";
|
47
|
+
}
|
48
|
+
/**
|
49
|
+
* Alert dialog component. Used for popup information
|
50
|
+
* @category Common UI components
|
51
|
+
*/
|
52
|
+
export declare const AlertDialog: ({ open, title, description, closeButtonTitle, onClose, confirmButtonTitle, confirmButtonDisabled, onConfirm, children, dialogProps, loading, maxWidth }: AlertDialogProps) => JSX.Element;
|
53
|
+
export default AlertDialog;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Alert';
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
declare type Props = {
|
3
|
+
definitionFieldName?: string;
|
4
|
+
title?: string;
|
5
|
+
hideCodeField?: boolean;
|
6
|
+
hideVersionField?: boolean;
|
7
|
+
hideNameField?: boolean;
|
8
|
+
required?: boolean;
|
9
|
+
};
|
10
|
+
export declare const CreateDefinition: ({ definitionFieldName, title, hideCodeField, hideVersionField, hideNameField, required, }: Props) => JSX.Element;
|
11
|
+
export default CreateDefinition;
|
@@ -1 +1 @@
|
|
1
|
-
export * from './CreateDefinition';
|
1
|
+
export * from './CreateDefinition';
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { PropertiesArrayType } from '../../../interfaces';
|
3
|
+
declare type Props = {
|
4
|
+
properties: PropertiesArrayType;
|
5
|
+
dataFieldName: string;
|
6
|
+
};
|
7
|
+
export declare const DefinitionFiller: ({ properties, dataFieldName }: Props) => JSX.Element;
|
8
|
+
export default DefinitionFiller;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { PropertiesArrayType, PropertiesObjectType } from '../../../interfaces';
|
3
|
+
declare type Props = {
|
4
|
+
properties: PropertiesArrayType | PropertiesObjectType;
|
5
|
+
dataFieldName: string;
|
6
|
+
nullable?: boolean;
|
7
|
+
};
|
8
|
+
export declare const WidgetDefinitionFiller: ({ properties, dataFieldName, nullable }: Props) => JSX.Element;
|
9
|
+
export default WidgetDefinitionFiller;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from './DefinitionFiller';
|
2
|
-
export * from './WidgetDefinitionFiller';
|
1
|
+
export * from './DefinitionFiller';
|
2
|
+
export * from './WidgetDefinitionFiller';
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from './CreateDefinition';
|
2
|
-
export * from './DefinitionFiller';
|
1
|
+
export * from './CreateDefinition';
|
2
|
+
export * from './DefinitionFiller';
|
@@ -0,0 +1,59 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { Control } from 'react-hook-form';
|
3
|
+
import { PropertyUnion } from '../../interfaces';
|
4
|
+
/**
|
5
|
+
* This interface is referencing the [[DemPropertyField]] component props.
|
6
|
+
* @category DEM Property Field
|
7
|
+
*/
|
8
|
+
export interface DemPropertyFieldProps {
|
9
|
+
/**
|
10
|
+
* Material-UI TextField `variant` prop
|
11
|
+
*/
|
12
|
+
variant?: 'standard' | 'outlined' | 'filled';
|
13
|
+
/**
|
14
|
+
* Parent field name for nest field
|
15
|
+
*/
|
16
|
+
parentKey?: string;
|
17
|
+
/**
|
18
|
+
* propKey for React Hook Form control name propery
|
19
|
+
*/
|
20
|
+
propKey: string;
|
21
|
+
/**
|
22
|
+
* React Hook Form `control`
|
23
|
+
*/
|
24
|
+
control: Control<any>;
|
25
|
+
/**
|
26
|
+
* React Hook Form `errors` object
|
27
|
+
*/
|
28
|
+
errors: Record<string, any>;
|
29
|
+
/**
|
30
|
+
* Is readOnly field flag
|
31
|
+
*/
|
32
|
+
readOnly?: boolean;
|
33
|
+
/**
|
34
|
+
* Is nullable value flag
|
35
|
+
*/
|
36
|
+
isNullable?: boolean;
|
37
|
+
/**
|
38
|
+
* DEM property
|
39
|
+
*/
|
40
|
+
property: PropertyUnion;
|
41
|
+
/**
|
42
|
+
* @ignore Validation function for JSON type field
|
43
|
+
*/
|
44
|
+
jsonValidator?: (attrs: {
|
45
|
+
name: string;
|
46
|
+
errors: any[];
|
47
|
+
}) => void;
|
48
|
+
hasBooleanProperties?: boolean;
|
49
|
+
/**
|
50
|
+
* React Hook Form `watch` function
|
51
|
+
*/
|
52
|
+
watch?: any;
|
53
|
+
hideCopy?: boolean;
|
54
|
+
}
|
55
|
+
/**
|
56
|
+
* Main DEM property field component
|
57
|
+
* @category DEM Property Field
|
58
|
+
*/
|
59
|
+
export declare const DemPropertyField: ({ propKey, property, parentKey }: DemPropertyFieldProps) => JSX.Element;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { PropertyUnion } from '../../../interfaces';
|
3
|
+
declare type Props = {
|
4
|
+
property: PropertyUnion;
|
5
|
+
value: any;
|
6
|
+
};
|
7
|
+
export declare const DemPropertyView: ({ property, value }: Props) => JSX.Element;
|
8
|
+
export default DemPropertyView;
|
@@ -1 +1 @@
|
|
1
|
-
export * from './DemPropertyView';
|
1
|
+
export * from './DemPropertyView';
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { PropertyUnion } from '../../../interfaces';
|
3
|
+
declare type Props = {
|
4
|
+
property: PropertyUnion;
|
5
|
+
name: string;
|
6
|
+
label: string;
|
7
|
+
};
|
8
|
+
export declare const MultipleDemField: ({ property, label, name }: Props) => JSX.Element;
|
9
|
+
export default MultipleDemField;
|
@@ -1 +1 @@
|
|
1
|
-
export * from './MultipleDemField';
|
1
|
+
export * from './MultipleDemField';
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { PropertyUnion } from '../../../interfaces';
|
3
|
+
declare type Props = {
|
4
|
+
name: string;
|
5
|
+
label: string;
|
6
|
+
property: PropertyUnion;
|
7
|
+
};
|
8
|
+
export declare const SingleDemField: ({ property, name, label }: Props) => JSX.Element;
|
9
|
+
export default SingleDemField;
|
@@ -1 +1 @@
|
|
1
|
-
export * from './SingleDemField';
|
1
|
+
export * from './SingleDemField';
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from './DemPropertyField';
|
2
|
-
export * from './DemPropertyView';
|
1
|
+
export * from './DemPropertyField';
|
2
|
+
export * from './DemPropertyView';
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { DateTimeProperty } from '../../../interfaces';
|
3
|
+
declare type Props = {
|
4
|
+
property: DateTimeProperty;
|
5
|
+
value: string;
|
6
|
+
onChange: (value: string) => void;
|
7
|
+
};
|
8
|
+
declare const DemDateTimeWidget: ({ property, value, onChange }: Props) => JSX.Element;
|
9
|
+
export default DemDateTimeWidget;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { DateProperty } from '../../../interfaces';
|
3
|
+
declare type Props = {
|
4
|
+
property: DateProperty;
|
5
|
+
value: string;
|
6
|
+
onChange: (value: string) => void;
|
7
|
+
};
|
8
|
+
declare const DemDateWidget: ({ property, value, onChange }: Props) => JSX.Element;
|
9
|
+
export default DemDateWidget;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { PropertyUnion } from '../../../interfaces';
|
3
|
+
declare type Props = {
|
4
|
+
property: PropertyUnion;
|
5
|
+
label?: string;
|
6
|
+
value: string;
|
7
|
+
name: string;
|
8
|
+
onChange: (value: any) => void;
|
9
|
+
};
|
10
|
+
export declare const DemFieldWidget: ({ property, value, name, label, onChange }: Props) => JSX.Element;
|
11
|
+
export default DemFieldWidget;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { FloatProperty } from '../../../interfaces';
|
3
|
+
declare type Props = {
|
4
|
+
property: FloatProperty;
|
5
|
+
value: string;
|
6
|
+
name: string;
|
7
|
+
onChange: (value: string) => void;
|
8
|
+
};
|
9
|
+
declare const DemFloatWidget: ({ property, value, name, onChange }: Props) => JSX.Element;
|
10
|
+
export default DemFloatWidget;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { BigIntegerProperty, IntegerProperty, LongProperty } from '../../../interfaces';
|
3
|
+
declare type Props = {
|
4
|
+
property: IntegerProperty | BigIntegerProperty | LongProperty;
|
5
|
+
value: string;
|
6
|
+
name: string;
|
7
|
+
onChange: (value: string) => void;
|
8
|
+
};
|
9
|
+
declare const DemIntegerWidget: ({ property, value, name, onChange }: Props) => JSX.Element;
|
10
|
+
export default DemIntegerWidget;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import 'ace-builds/src-noconflict/ace';
|
3
|
+
import 'ace-builds/src-noconflict/mode-json';
|
4
|
+
declare type Props = {
|
5
|
+
value: string;
|
6
|
+
onChange: (value: string) => void;
|
7
|
+
};
|
8
|
+
declare const DemJsonWidget: ({ value, onChange }: Props) => JSX.Element;
|
9
|
+
export default DemJsonWidget;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { StringProperty } from '../../../interfaces';
|
3
|
+
declare type Props = {
|
4
|
+
property: StringProperty;
|
5
|
+
label?: string;
|
6
|
+
value: string;
|
7
|
+
onChange: (value: string) => void;
|
8
|
+
};
|
9
|
+
export declare const DemStringWidget: ({ property, label, value, onChange }: Props) => JSX.Element;
|
10
|
+
export default DemStringWidget;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { TimeProperty } from '../../../interfaces';
|
3
|
+
declare type Props = {
|
4
|
+
property: TimeProperty;
|
5
|
+
value: string;
|
6
|
+
onChange: (value: string) => void;
|
7
|
+
};
|
8
|
+
declare const DemTimeWidget: ({ property, value, onChange }: Props) => JSX.Element;
|
9
|
+
export default DemTimeWidget;
|
@@ -1 +1 @@
|
|
1
|
-
export * from './DemFieldWidget';
|
1
|
+
export * from './DemFieldWidget';
|
@@ -0,0 +1,20 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { Control } from 'react-hook-form';
|
3
|
+
import 'ace-builds/src-noconflict/mode-python';
|
4
|
+
import 'ace-builds/src-noconflict/theme-monokai';
|
5
|
+
import 'ace-builds/src-noconflict/ext-language_tools';
|
6
|
+
export interface ControlAceEditorProps {
|
7
|
+
name: string;
|
8
|
+
control: Control<any>;
|
9
|
+
mode?: string;
|
10
|
+
label?: string;
|
11
|
+
width?: string;
|
12
|
+
height?: string;
|
13
|
+
theme?: string;
|
14
|
+
readOnly?: boolean;
|
15
|
+
required?: boolean;
|
16
|
+
validateJson?: boolean;
|
17
|
+
fontSize?: number;
|
18
|
+
}
|
19
|
+
export declare const ControlAceEditor: ({ control, name, mode, label, width, height, theme, readOnly, required, validateJson, fontSize, }: ControlAceEditorProps) => JSX.Element;
|
20
|
+
export default ControlAceEditor;
|
@@ -0,0 +1,49 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { Control } from 'react-hook-form';
|
3
|
+
/**
|
4
|
+
* This interface is referencing the [[ControlAutocomplete]] component props.
|
5
|
+
* @category Forms
|
6
|
+
*/
|
7
|
+
export interface ControlAutocompleteProps {
|
8
|
+
/**
|
9
|
+
* React Hook Form control `name` propery
|
10
|
+
*/
|
11
|
+
name: string;
|
12
|
+
/**
|
13
|
+
* React Hook Form `control`
|
14
|
+
*/
|
15
|
+
control: Control<any>;
|
16
|
+
/**
|
17
|
+
* Autocomplete `options` prop
|
18
|
+
*/
|
19
|
+
options?: any[];
|
20
|
+
/**
|
21
|
+
* Material-UI TextField `label` prop
|
22
|
+
*/
|
23
|
+
label: string;
|
24
|
+
/**
|
25
|
+
* Material-UI TextField `placeholder` prop
|
26
|
+
*/
|
27
|
+
placeholder?: string;
|
28
|
+
/**
|
29
|
+
* Autocomplete `multiple` prop
|
30
|
+
*/
|
31
|
+
/**
|
32
|
+
* onChange handle function
|
33
|
+
*/
|
34
|
+
onChange?: (name: string, value: unknown) => void;
|
35
|
+
multiple?: boolean;
|
36
|
+
required?: boolean;
|
37
|
+
disableCloseOnSelect?: boolean;
|
38
|
+
filterSelectedOptions?: boolean;
|
39
|
+
labelKey?: string;
|
40
|
+
valueKey?: string;
|
41
|
+
loading?: boolean;
|
42
|
+
getOptionDisabled?: (option: any) => boolean;
|
43
|
+
}
|
44
|
+
/**
|
45
|
+
* Material UI `Autocomplete` controlled component. Used with react-hook-form
|
46
|
+
* @category Forms
|
47
|
+
*/
|
48
|
+
export declare const ControlAutocomplete: ({ control, name, options, label, placeholder, multiple, required, disableCloseOnSelect, labelKey, valueKey, loading, onChange, getOptionDisabled, }: ControlAutocompleteProps) => JSX.Element;
|
49
|
+
export default ControlAutocomplete;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
/**
|
3
|
+
* This interface is referencing the [[ControlCheckbox]] component props.
|
4
|
+
* @category Forms
|
5
|
+
*/
|
6
|
+
export interface ControlCheckboxProps {
|
7
|
+
/**
|
8
|
+
* React Hook Form `control`
|
9
|
+
*/
|
10
|
+
control: any;
|
11
|
+
/**
|
12
|
+
* React Hook Form control `name` propery
|
13
|
+
*/
|
14
|
+
name: string;
|
15
|
+
/**
|
16
|
+
* Material-UI FormControlLabel `label` prop
|
17
|
+
*/
|
18
|
+
label?: string;
|
19
|
+
/**
|
20
|
+
* Is disabled input flag
|
21
|
+
*/
|
22
|
+
disabled?: boolean;
|
23
|
+
onChange?: (name: string, value: unknown) => void;
|
24
|
+
}
|
25
|
+
/**
|
26
|
+
* Material UI `Checkbox` controlled component. Used with react-hook-form
|
27
|
+
* @category Forms
|
28
|
+
*/
|
29
|
+
export declare const ControlCheckbox: ({ name, control, label, disabled, onChange }: ControlCheckboxProps) => JSX.Element;
|
30
|
+
export default ControlCheckbox;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { ControlInputProps } from './ControlInput';
|
3
|
+
export declare const ControlDebouncedInput: ({ inputProps, name, required, validate, label, variant, type, defaultValue, disabled, InputLabelProps, textarea, }: ControlInputProps) => JSX.Element;
|
4
|
+
export default ControlDebouncedInput;
|
@@ -0,0 +1,54 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { Control } from 'react-hook-form';
|
3
|
+
declare type ValidateFunc = (value: string) => boolean | string;
|
4
|
+
declare type onChangeCallback = (e: any) => void;
|
5
|
+
/**
|
6
|
+
* This interface is referencing the [[ControlInput]] component props.
|
7
|
+
* @category Forms
|
8
|
+
*/
|
9
|
+
export interface ControlInputProps {
|
10
|
+
/**
|
11
|
+
* Props for MUI TextField component
|
12
|
+
*/
|
13
|
+
inputProps?: Record<string, string | number | boolean | onChangeCallback | {
|
14
|
+
[key: string]: any;
|
15
|
+
}>;
|
16
|
+
/**
|
17
|
+
* React Hook Form control `name` propery
|
18
|
+
*/
|
19
|
+
name: string;
|
20
|
+
label?: string;
|
21
|
+
type?: 'text' | 'date' | 'password' | 'search' | 'number' | 'email' | 'datetime-local';
|
22
|
+
/**
|
23
|
+
* React Hook Form `control`
|
24
|
+
*/
|
25
|
+
control: Control<any>;
|
26
|
+
/**
|
27
|
+
* Is input required flag
|
28
|
+
*/
|
29
|
+
required?: boolean;
|
30
|
+
defaultValue?: any;
|
31
|
+
/**
|
32
|
+
* Is disabled input flag
|
33
|
+
*/
|
34
|
+
disabled?: boolean;
|
35
|
+
/**
|
36
|
+
* Material-UI TextField `variant` prop
|
37
|
+
*/
|
38
|
+
variant?: 'filled' | 'outlined' | 'standard';
|
39
|
+
/**
|
40
|
+
* React Hook Form validate function
|
41
|
+
* ```typescript
|
42
|
+
* type ValidateFunc = (value: string) => boolean | string;
|
43
|
+
* ```
|
44
|
+
*/
|
45
|
+
validate?: ValidateFunc | Record<string, ValidateFunc>;
|
46
|
+
InputLabelProps?: any;
|
47
|
+
textarea?: boolean;
|
48
|
+
}
|
49
|
+
/**
|
50
|
+
* Material UI `TextField` controlled component. Used with react-hook-form
|
51
|
+
* @category Forms
|
52
|
+
*/
|
53
|
+
export declare const ControlInput: ({ inputProps, name, control, required, validate, label, variant, type, defaultValue, disabled, InputLabelProps, textarea, }: ControlInputProps) => JSX.Element;
|
54
|
+
export default ControlInput;
|
@@ -0,0 +1,43 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { Control } from 'react-hook-form';
|
3
|
+
declare type onChangeCallback = (e: any) => void;
|
4
|
+
declare type Props = {
|
5
|
+
/**
|
6
|
+
* Props for MUI TextField component
|
7
|
+
*/
|
8
|
+
inputProps?: Record<string, string | number | boolean | onChangeCallback | {
|
9
|
+
[key: string]: any;
|
10
|
+
}>;
|
11
|
+
/**
|
12
|
+
* React Hook Form control `name` propery
|
13
|
+
*/
|
14
|
+
name: string;
|
15
|
+
label?: string;
|
16
|
+
/**
|
17
|
+
* React Hook Form `control`
|
18
|
+
*/
|
19
|
+
control: Control<any>;
|
20
|
+
/**
|
21
|
+
* Is input required flag
|
22
|
+
*/
|
23
|
+
required?: boolean;
|
24
|
+
defaultValue?: number;
|
25
|
+
/**
|
26
|
+
* Is disabled input flag
|
27
|
+
*/
|
28
|
+
disabled?: boolean;
|
29
|
+
/**
|
30
|
+
* Material-UI TextField `variant` prop
|
31
|
+
*/
|
32
|
+
variant?: 'filled' | 'outlined' | 'standard';
|
33
|
+
/**
|
34
|
+
* React Hook Form validate function
|
35
|
+
* ```typescript
|
36
|
+
* type ValidateFunc = (value: string) => boolean | string;
|
37
|
+
* ```
|
38
|
+
*/
|
39
|
+
InputLabelProps?: any;
|
40
|
+
decimal?: boolean;
|
41
|
+
};
|
42
|
+
export declare const ControlNumberInput: ({ inputProps, name, label, control, required, defaultValue, disabled, variant, InputLabelProps, decimal, }: Props) => JSX.Element;
|
43
|
+
export default ControlNumberInput;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { ControlAutocompleteProps } from './ControlAutocomplete';
|
3
|
+
interface ControlQueryAutocompleteProps extends ControlAutocompleteProps {
|
4
|
+
queryFunction: (searchInput: string, pageNumber: number) => Promise<any>;
|
5
|
+
}
|
6
|
+
export declare const ControlQueryAutocomplete: ({ name, label, placeholder, queryFunction, }: ControlQueryAutocompleteProps) => JSX.Element;
|
7
|
+
export default ControlQueryAutocomplete;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { Control } from 'react-hook-form';
|
3
|
+
/**
|
4
|
+
* This interface is referencing the [[ControlRadioBtn]] component props.
|
5
|
+
* @category Forms
|
6
|
+
*/
|
7
|
+
export interface ControlRadioBtnProps {
|
8
|
+
/**
|
9
|
+
* React Hook Form `control`
|
10
|
+
*/
|
11
|
+
control: Control<any>;
|
12
|
+
/**
|
13
|
+
* React Hook Form control `name` propery
|
14
|
+
*/
|
15
|
+
name: string;
|
16
|
+
/**
|
17
|
+
* Radio group values
|
18
|
+
*/
|
19
|
+
values: any[];
|
20
|
+
}
|
21
|
+
/**
|
22
|
+
* Material UI `Radio` controlled component. Used with react-hook-form
|
23
|
+
* @category Forms
|
24
|
+
*/
|
25
|
+
export declare const ControlRadioBtn: ({ name, values, control }: ControlRadioBtnProps) => JSX.Element;
|
26
|
+
export default ControlRadioBtn;
|
@@ -0,0 +1,66 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { Control } from 'react-hook-form';
|
3
|
+
declare type ValidateFunc = (value: string) => boolean | string;
|
4
|
+
declare type onChangeCallback = (e: any) => void;
|
5
|
+
/**
|
6
|
+
* This interface is referencing the [[ControlSelect]] component props.
|
7
|
+
* @category Forms
|
8
|
+
*/
|
9
|
+
export interface ControlSelectProps {
|
10
|
+
/**
|
11
|
+
* Props for MUI TextField component
|
12
|
+
*/
|
13
|
+
inputProps?: Record<string, string | number | boolean | onChangeCallback | {
|
14
|
+
[key: string]: any;
|
15
|
+
}>;
|
16
|
+
/**
|
17
|
+
* Props for MUI SelectProps component
|
18
|
+
*/
|
19
|
+
selectProps?: Record<string, string | number | boolean | onChangeCallback | {
|
20
|
+
[key: string]: any;
|
21
|
+
}>;
|
22
|
+
/**
|
23
|
+
* React Hook Form control `name` propery
|
24
|
+
*/
|
25
|
+
name: string;
|
26
|
+
/**
|
27
|
+
* React Hook Form `control`
|
28
|
+
*/
|
29
|
+
control: Control<any>;
|
30
|
+
defaultValue?: any;
|
31
|
+
/**
|
32
|
+
* Is field required flag
|
33
|
+
*/
|
34
|
+
required?: boolean;
|
35
|
+
/**
|
36
|
+
* Select options
|
37
|
+
*/
|
38
|
+
options: any[];
|
39
|
+
/**
|
40
|
+
* Key for option label
|
41
|
+
*/
|
42
|
+
labelKey?: string;
|
43
|
+
/**
|
44
|
+
* Key for option value
|
45
|
+
*/
|
46
|
+
valueKey?: string;
|
47
|
+
/**
|
48
|
+
* Material-UI TextField `variant` prop
|
49
|
+
*/
|
50
|
+
variant?: 'filled' | 'outlined' | 'standard';
|
51
|
+
/**
|
52
|
+
* React Hook Form validate function
|
53
|
+
* ```typescript
|
54
|
+
* type ValidateFunc = (value: string) => boolean | string;
|
55
|
+
* ```
|
56
|
+
*/
|
57
|
+
validate?: ValidateFunc | Record<string, ValidateFunc>;
|
58
|
+
label?: string;
|
59
|
+
disabled?: boolean;
|
60
|
+
}
|
61
|
+
/**
|
62
|
+
* Material UI `Select` controlled component. Used with react-hook-form
|
63
|
+
* @category Forms
|
64
|
+
*/
|
65
|
+
export declare const ControlSelect: ({ inputProps, selectProps, name, control, required, defaultValue, options, variant, validate, labelKey, valueKey, label, disabled, }: ControlSelectProps) => JSX.Element;
|
66
|
+
export default ControlSelect;
|