@form-eng/fluent 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, IOption } from '@form-eng/core';
|
|
2
|
+
import { IFieldProps, Dictionary, IRatingConfig, IFileUploadConfig, IDateRangeConfig, IDateTimeConfig, IPhoneInputConfig, IOption } 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
|
import { OptionOnSelectData } from '@fluentui/react-components';
|
|
@@ -65,38 +66,18 @@ declare const RadioGroup: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Elem
|
|
|
65
66
|
|
|
66
67
|
declare const CheckboxGroup: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
67
68
|
|
|
68
|
-
interface IRatingConfig {
|
|
69
|
-
max?: number;
|
|
70
|
-
allowHalf?: boolean;
|
|
71
|
-
}
|
|
72
69
|
declare const Rating: (props: IFieldProps<IRatingConfig>) => react_jsx_runtime.JSX.Element;
|
|
73
70
|
|
|
74
71
|
declare const ColorPicker: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
75
72
|
|
|
76
73
|
declare const Autocomplete: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
77
74
|
|
|
78
|
-
interface IFileUploadConfig {
|
|
79
|
-
multiple?: boolean;
|
|
80
|
-
accept?: string;
|
|
81
|
-
maxSizeMb?: number;
|
|
82
|
-
}
|
|
83
75
|
declare const FileUpload: (props: IFieldProps<IFileUploadConfig>) => react_jsx_runtime.JSX.Element;
|
|
84
76
|
|
|
85
|
-
interface IDateRangeConfig {
|
|
86
|
-
minDate?: string;
|
|
87
|
-
maxDate?: string;
|
|
88
|
-
}
|
|
89
77
|
declare const DateRange: (props: IFieldProps<IDateRangeConfig>) => react_jsx_runtime.JSX.Element;
|
|
90
78
|
|
|
91
|
-
interface IDateTimeConfig {
|
|
92
|
-
minDateTime?: string;
|
|
93
|
-
maxDateTime?: string;
|
|
94
|
-
}
|
|
95
79
|
declare const DateTime: (props: IFieldProps<IDateTimeConfig>) => react_jsx_runtime.JSX.Element;
|
|
96
80
|
|
|
97
|
-
interface IPhoneInputConfig {
|
|
98
|
-
format?: "us" | "international" | "raw";
|
|
99
|
-
}
|
|
100
81
|
declare const PhoneInput: (props: IFieldProps<IPhoneInputConfig>) => react_jsx_runtime.JSX.Element;
|
|
101
82
|
|
|
102
83
|
interface IReadOnlyFieldProps {
|
|
@@ -208,21 +189,4 @@ declare const DocumentLink: (props: IDocumentLinkProps) => react_jsx_runtime.JSX
|
|
|
208
189
|
/** Creates the default Fluent UI v9 field registry for use with InjectedFieldProvider */
|
|
209
190
|
declare function createFluentFieldRegistry(): Dictionary<React.JSX.Element>;
|
|
210
191
|
|
|
211
|
-
|
|
212
|
-
declare const GetFieldDataTestId: (fieldName: string, programName?: string, entityType?: string, entityId?: string) => string;
|
|
213
|
-
declare function formatDateTime(dateStr: string, options?: {
|
|
214
|
-
hideTimestamp?: boolean;
|
|
215
|
-
}): string;
|
|
216
|
-
declare const DocumentLinksStrings: {
|
|
217
|
-
link: string;
|
|
218
|
-
addLink: string;
|
|
219
|
-
addAnotherLink: string;
|
|
220
|
-
deleteLink: string;
|
|
221
|
-
confirmDeleteLink: string;
|
|
222
|
-
delete: string;
|
|
223
|
-
cancel: string;
|
|
224
|
-
saveChanges: string;
|
|
225
|
-
save: string;
|
|
226
|
-
};
|
|
227
|
-
|
|
228
|
-
export { Autocomplete as AutocompleteField, CheckboxGroup as CheckboxGroupField, ColorPicker as ColorPickerField, DateControl, DateRange as DateRangeField, DateTime as DateTimeField, DocumentLink, DocumentLinks, DocumentLinksField, DocumentLinksStrings, DropdownField, FieldClassName, FileUpload as FileUploadField, FormLoading, Fragment, GetFieldDataTestId, type IDocumentLink, type IReadOnlyFieldProps, MultiSelect, MultiSelectSearch, NumberField, PhoneInput as PhoneInputField, PopOutEditor, RadioGroup as RadioGroupField, Rating as RatingField, ReadOnly, ReadOnlyArray, ReadOnlyCumulativeNumber, ReadOnlyDateTime, ReadOnlyRichText, ReadOnlyText, ReadOnlyWithButton, SimpleDropdown, SliderField, StatusColor, StatusDropdown, StatusDropdownField, StatusMessage, Textbox, Toggle, createFluentFieldRegistry, formatDateTime };
|
|
192
|
+
export { Autocomplete as AutocompleteField, CheckboxGroup as CheckboxGroupField, ColorPicker as ColorPickerField, DateControl, DateRange as DateRangeField, DateTime as DateTimeField, DocumentLink, DocumentLinks, DocumentLinksField, DropdownField, FileUpload as FileUploadField, FormLoading, Fragment, type IDocumentLink, type IReadOnlyFieldProps, MultiSelect, MultiSelectSearch, NumberField, PhoneInput as PhoneInputField, PopOutEditor, RadioGroup as RadioGroupField, Rating as RatingField, ReadOnly, ReadOnlyArray, ReadOnlyCumulativeNumber, ReadOnlyDateTime, ReadOnlyRichText, ReadOnlyText, ReadOnlyWithButton, SimpleDropdown, SliderField, StatusColor, StatusDropdown, StatusDropdownField, StatusMessage, Textbox, Toggle, createFluentFieldRegistry };
|
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, IOption } from '@form-eng/core';
|
|
2
|
+
import { IFieldProps, Dictionary, IRatingConfig, IFileUploadConfig, IDateRangeConfig, IDateTimeConfig, IPhoneInputConfig, IOption } 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
|
import { OptionOnSelectData } from '@fluentui/react-components';
|
|
@@ -65,38 +66,18 @@ declare const RadioGroup: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Elem
|
|
|
65
66
|
|
|
66
67
|
declare const CheckboxGroup: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
67
68
|
|
|
68
|
-
interface IRatingConfig {
|
|
69
|
-
max?: number;
|
|
70
|
-
allowHalf?: boolean;
|
|
71
|
-
}
|
|
72
69
|
declare const Rating: (props: IFieldProps<IRatingConfig>) => react_jsx_runtime.JSX.Element;
|
|
73
70
|
|
|
74
71
|
declare const ColorPicker: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
75
72
|
|
|
76
73
|
declare const Autocomplete: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
77
74
|
|
|
78
|
-
interface IFileUploadConfig {
|
|
79
|
-
multiple?: boolean;
|
|
80
|
-
accept?: string;
|
|
81
|
-
maxSizeMb?: number;
|
|
82
|
-
}
|
|
83
75
|
declare const FileUpload: (props: IFieldProps<IFileUploadConfig>) => react_jsx_runtime.JSX.Element;
|
|
84
76
|
|
|
85
|
-
interface IDateRangeConfig {
|
|
86
|
-
minDate?: string;
|
|
87
|
-
maxDate?: string;
|
|
88
|
-
}
|
|
89
77
|
declare const DateRange: (props: IFieldProps<IDateRangeConfig>) => react_jsx_runtime.JSX.Element;
|
|
90
78
|
|
|
91
|
-
interface IDateTimeConfig {
|
|
92
|
-
minDateTime?: string;
|
|
93
|
-
maxDateTime?: string;
|
|
94
|
-
}
|
|
95
79
|
declare const DateTime: (props: IFieldProps<IDateTimeConfig>) => react_jsx_runtime.JSX.Element;
|
|
96
80
|
|
|
97
|
-
interface IPhoneInputConfig {
|
|
98
|
-
format?: "us" | "international" | "raw";
|
|
99
|
-
}
|
|
100
81
|
declare const PhoneInput: (props: IFieldProps<IPhoneInputConfig>) => react_jsx_runtime.JSX.Element;
|
|
101
82
|
|
|
102
83
|
interface IReadOnlyFieldProps {
|
|
@@ -208,21 +189,4 @@ declare const DocumentLink: (props: IDocumentLinkProps) => react_jsx_runtime.JSX
|
|
|
208
189
|
/** Creates the default Fluent UI v9 field registry for use with InjectedFieldProvider */
|
|
209
190
|
declare function createFluentFieldRegistry(): Dictionary<React.JSX.Element>;
|
|
210
191
|
|
|
211
|
-
|
|
212
|
-
declare const GetFieldDataTestId: (fieldName: string, programName?: string, entityType?: string, entityId?: string) => string;
|
|
213
|
-
declare function formatDateTime(dateStr: string, options?: {
|
|
214
|
-
hideTimestamp?: boolean;
|
|
215
|
-
}): string;
|
|
216
|
-
declare const DocumentLinksStrings: {
|
|
217
|
-
link: string;
|
|
218
|
-
addLink: string;
|
|
219
|
-
addAnotherLink: string;
|
|
220
|
-
deleteLink: string;
|
|
221
|
-
confirmDeleteLink: string;
|
|
222
|
-
delete: string;
|
|
223
|
-
cancel: string;
|
|
224
|
-
saveChanges: string;
|
|
225
|
-
save: string;
|
|
226
|
-
};
|
|
227
|
-
|
|
228
|
-
export { Autocomplete as AutocompleteField, CheckboxGroup as CheckboxGroupField, ColorPicker as ColorPickerField, DateControl, DateRange as DateRangeField, DateTime as DateTimeField, DocumentLink, DocumentLinks, DocumentLinksField, DocumentLinksStrings, DropdownField, FieldClassName, FileUpload as FileUploadField, FormLoading, Fragment, GetFieldDataTestId, type IDocumentLink, type IReadOnlyFieldProps, MultiSelect, MultiSelectSearch, NumberField, PhoneInput as PhoneInputField, PopOutEditor, RadioGroup as RadioGroupField, Rating as RatingField, ReadOnly, ReadOnlyArray, ReadOnlyCumulativeNumber, ReadOnlyDateTime, ReadOnlyRichText, ReadOnlyText, ReadOnlyWithButton, SimpleDropdown, SliderField, StatusColor, StatusDropdown, StatusDropdownField, StatusMessage, Textbox, Toggle, createFluentFieldRegistry, formatDateTime };
|
|
192
|
+
export { Autocomplete as AutocompleteField, CheckboxGroup as CheckboxGroupField, ColorPicker as ColorPickerField, DateControl, DateRange as DateRangeField, DateTime as DateTimeField, DocumentLink, DocumentLinks, DocumentLinksField, DropdownField, FileUpload as FileUploadField, FormLoading, Fragment, type IDocumentLink, type IReadOnlyFieldProps, MultiSelect, MultiSelectSearch, NumberField, PhoneInput as PhoneInputField, PopOutEditor, RadioGroup as RadioGroupField, Rating as RatingField, ReadOnly, ReadOnlyArray, ReadOnlyCumulativeNumber, ReadOnlyDateTime, ReadOnlyRichText, ReadOnlyText, ReadOnlyWithButton, SimpleDropdown, SliderField, StatusColor, StatusDropdown, StatusDropdownField, StatusMessage, Textbox, Toggle, createFluentFieldRegistry };
|