@form-eng/mui 1.1.1 → 1.2.1
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/dist/index.d.mts +3 -39
- package/dist/index.d.ts +3 -39
- package/dist/index.js +129 -190
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -67
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { IFieldProps, Dictionary } from '@form-eng/core';
|
|
2
|
+
import { IFieldProps, Dictionary, IRatingConfig, IFileUploadConfig, IDateRangeConfig, IDateTimeConfig, IPhoneInputConfig } from '@form-eng/core';
|
|
3
|
+
export { DocumentLinksStrings, FieldClassName, GetFieldDataTestId, formatDateTime } from '@form-eng/core';
|
|
3
4
|
import React from 'react';
|
|
4
5
|
import { FieldError } from 'react-hook-form';
|
|
5
6
|
|
|
@@ -68,38 +69,18 @@ declare const RadioGroup: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Elem
|
|
|
68
69
|
|
|
69
70
|
declare const CheckboxGroup: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
70
71
|
|
|
71
|
-
interface IRatingConfig {
|
|
72
|
-
max?: number;
|
|
73
|
-
allowHalf?: boolean;
|
|
74
|
-
}
|
|
75
72
|
declare const Rating: (props: IFieldProps<IRatingConfig>) => react_jsx_runtime.JSX.Element;
|
|
76
73
|
|
|
77
74
|
declare const ColorPicker: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
78
75
|
|
|
79
76
|
declare const Autocomplete: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
80
77
|
|
|
81
|
-
interface IFileUploadConfig {
|
|
82
|
-
multiple?: boolean;
|
|
83
|
-
accept?: string;
|
|
84
|
-
maxSizeMb?: number;
|
|
85
|
-
}
|
|
86
78
|
declare const FileUpload: (props: IFieldProps<IFileUploadConfig>) => react_jsx_runtime.JSX.Element;
|
|
87
79
|
|
|
88
|
-
interface IDateRangeConfig {
|
|
89
|
-
minDate?: string;
|
|
90
|
-
maxDate?: string;
|
|
91
|
-
}
|
|
92
80
|
declare const DateRange: (props: IFieldProps<IDateRangeConfig>) => react_jsx_runtime.JSX.Element;
|
|
93
81
|
|
|
94
|
-
interface IDateTimeConfig {
|
|
95
|
-
minDateTime?: string;
|
|
96
|
-
maxDateTime?: string;
|
|
97
|
-
}
|
|
98
82
|
declare const DateTime: (props: IFieldProps<IDateTimeConfig>) => react_jsx_runtime.JSX.Element;
|
|
99
83
|
|
|
100
|
-
interface IPhoneInputConfig {
|
|
101
|
-
format?: "us" | "international" | "raw";
|
|
102
|
-
}
|
|
103
84
|
declare const PhoneInput: (props: IFieldProps<IPhoneInputConfig>) => react_jsx_runtime.JSX.Element;
|
|
104
85
|
|
|
105
86
|
interface IReadOnlyFieldProps {
|
|
@@ -159,21 +140,4 @@ declare const FormLoading: (props: IFormLoadingProps) => react_jsx_runtime.JSX.E
|
|
|
159
140
|
/** Creates the default Material UI field registry for use with InjectedFieldProvider */
|
|
160
141
|
declare function createMuiFieldRegistry(): Dictionary<React.JSX.Element>;
|
|
161
142
|
|
|
162
|
-
|
|
163
|
-
declare const GetFieldDataTestId: (fieldName: string, programName?: string, entityType?: string, entityId?: string) => string;
|
|
164
|
-
declare function formatDateTime(dateStr: string, options?: {
|
|
165
|
-
hideTimestamp?: boolean;
|
|
166
|
-
}): string;
|
|
167
|
-
declare const DocumentLinksStrings: {
|
|
168
|
-
link: string;
|
|
169
|
-
addLink: string;
|
|
170
|
-
addAnotherLink: string;
|
|
171
|
-
deleteLink: string;
|
|
172
|
-
confirmDeleteLink: string;
|
|
173
|
-
delete: string;
|
|
174
|
-
cancel: string;
|
|
175
|
-
saveChanges: string;
|
|
176
|
-
save: string;
|
|
177
|
-
};
|
|
178
|
-
|
|
179
|
-
export { Autocomplete, CheckboxGroup, ColorPicker, DateControl, DateRange, DateTime, DocumentLinks, DocumentLinksStrings, Dropdown, DynamicFragment, FieldClassName, FileUpload, FormLoading, GetFieldDataTestId, type IDocumentLink, type IReadOnlyFieldProps, MultiSelect, MultiSelectSearch, NumberField as Number, PhoneInput, PopOutEditor, RadioGroup, Rating, ReadOnly, ReadOnlyArray, ReadOnlyCumulativeNumber, ReadOnlyDateTime, ReadOnlyRichText, ReadOnlyText, ReadOnlyWithButton, SimpleDropdown, Slider, StatusDropdown, StatusMessage, Textbox, Toggle, createMuiFieldRegistry, formatDateTime };
|
|
143
|
+
export { Autocomplete, CheckboxGroup, ColorPicker, DateControl, DateRange, DateTime, DocumentLinks, Dropdown, DynamicFragment, FileUpload, FormLoading, type IDocumentLink, type IReadOnlyFieldProps, MultiSelect, MultiSelectSearch, NumberField as Number, PhoneInput, PopOutEditor, RadioGroup, Rating, ReadOnly, ReadOnlyArray, ReadOnlyCumulativeNumber, ReadOnlyDateTime, ReadOnlyRichText, ReadOnlyText, ReadOnlyWithButton, SimpleDropdown, Slider, StatusDropdown, StatusMessage, Textbox, Toggle, createMuiFieldRegistry };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { IFieldProps, Dictionary } from '@form-eng/core';
|
|
2
|
+
import { IFieldProps, Dictionary, IRatingConfig, IFileUploadConfig, IDateRangeConfig, IDateTimeConfig, IPhoneInputConfig } from '@form-eng/core';
|
|
3
|
+
export { DocumentLinksStrings, FieldClassName, GetFieldDataTestId, formatDateTime } from '@form-eng/core';
|
|
3
4
|
import React from 'react';
|
|
4
5
|
import { FieldError } from 'react-hook-form';
|
|
5
6
|
|
|
@@ -68,38 +69,18 @@ declare const RadioGroup: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Elem
|
|
|
68
69
|
|
|
69
70
|
declare const CheckboxGroup: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
70
71
|
|
|
71
|
-
interface IRatingConfig {
|
|
72
|
-
max?: number;
|
|
73
|
-
allowHalf?: boolean;
|
|
74
|
-
}
|
|
75
72
|
declare const Rating: (props: IFieldProps<IRatingConfig>) => react_jsx_runtime.JSX.Element;
|
|
76
73
|
|
|
77
74
|
declare const ColorPicker: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
78
75
|
|
|
79
76
|
declare const Autocomplete: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
80
77
|
|
|
81
|
-
interface IFileUploadConfig {
|
|
82
|
-
multiple?: boolean;
|
|
83
|
-
accept?: string;
|
|
84
|
-
maxSizeMb?: number;
|
|
85
|
-
}
|
|
86
78
|
declare const FileUpload: (props: IFieldProps<IFileUploadConfig>) => react_jsx_runtime.JSX.Element;
|
|
87
79
|
|
|
88
|
-
interface IDateRangeConfig {
|
|
89
|
-
minDate?: string;
|
|
90
|
-
maxDate?: string;
|
|
91
|
-
}
|
|
92
80
|
declare const DateRange: (props: IFieldProps<IDateRangeConfig>) => react_jsx_runtime.JSX.Element;
|
|
93
81
|
|
|
94
|
-
interface IDateTimeConfig {
|
|
95
|
-
minDateTime?: string;
|
|
96
|
-
maxDateTime?: string;
|
|
97
|
-
}
|
|
98
82
|
declare const DateTime: (props: IFieldProps<IDateTimeConfig>) => react_jsx_runtime.JSX.Element;
|
|
99
83
|
|
|
100
|
-
interface IPhoneInputConfig {
|
|
101
|
-
format?: "us" | "international" | "raw";
|
|
102
|
-
}
|
|
103
84
|
declare const PhoneInput: (props: IFieldProps<IPhoneInputConfig>) => react_jsx_runtime.JSX.Element;
|
|
104
85
|
|
|
105
86
|
interface IReadOnlyFieldProps {
|
|
@@ -159,21 +140,4 @@ declare const FormLoading: (props: IFormLoadingProps) => react_jsx_runtime.JSX.E
|
|
|
159
140
|
/** Creates the default Material UI field registry for use with InjectedFieldProvider */
|
|
160
141
|
declare function createMuiFieldRegistry(): Dictionary<React.JSX.Element>;
|
|
161
142
|
|
|
162
|
-
|
|
163
|
-
declare const GetFieldDataTestId: (fieldName: string, programName?: string, entityType?: string, entityId?: string) => string;
|
|
164
|
-
declare function formatDateTime(dateStr: string, options?: {
|
|
165
|
-
hideTimestamp?: boolean;
|
|
166
|
-
}): string;
|
|
167
|
-
declare const DocumentLinksStrings: {
|
|
168
|
-
link: string;
|
|
169
|
-
addLink: string;
|
|
170
|
-
addAnotherLink: string;
|
|
171
|
-
deleteLink: string;
|
|
172
|
-
confirmDeleteLink: string;
|
|
173
|
-
delete: string;
|
|
174
|
-
cancel: string;
|
|
175
|
-
saveChanges: string;
|
|
176
|
-
save: string;
|
|
177
|
-
};
|
|
178
|
-
|
|
179
|
-
export { Autocomplete, CheckboxGroup, ColorPicker, DateControl, DateRange, DateTime, DocumentLinks, DocumentLinksStrings, Dropdown, DynamicFragment, FieldClassName, FileUpload, FormLoading, GetFieldDataTestId, type IDocumentLink, type IReadOnlyFieldProps, MultiSelect, MultiSelectSearch, NumberField as Number, PhoneInput, PopOutEditor, RadioGroup, Rating, ReadOnly, ReadOnlyArray, ReadOnlyCumulativeNumber, ReadOnlyDateTime, ReadOnlyRichText, ReadOnlyText, ReadOnlyWithButton, SimpleDropdown, Slider, StatusDropdown, StatusMessage, Textbox, Toggle, createMuiFieldRegistry, formatDateTime };
|
|
143
|
+
export { Autocomplete, CheckboxGroup, ColorPicker, DateControl, DateRange, DateTime, DocumentLinks, Dropdown, DynamicFragment, FileUpload, FormLoading, type IDocumentLink, type IReadOnlyFieldProps, MultiSelect, MultiSelectSearch, NumberField as Number, PhoneInput, PopOutEditor, RadioGroup, Rating, ReadOnly, ReadOnlyArray, ReadOnlyCumulativeNumber, ReadOnlyDateTime, ReadOnlyRichText, ReadOnlyText, ReadOnlyWithButton, SimpleDropdown, Slider, StatusDropdown, StatusMessage, Textbox, Toggle, createMuiFieldRegistry };
|