@feathery/react 2.4.102 → 2.5.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/Form/index.d.ts +1 -5
- package/dist/Form/index.d.ts.map +1 -1
- package/dist/auth/LoginForm.d.ts.map +1 -1
- package/dist/elements/fields/DropdownMultiField/DropdownMultiFieldSelectComponents.d.ts +9 -0
- package/dist/elements/fields/DropdownMultiField/DropdownMultiFieldSelectComponents.d.ts.map +1 -0
- package/dist/elements/fields/DropdownMultiField/createDropdownSelect.d.ts +191 -0
- package/dist/elements/fields/DropdownMultiField/createDropdownSelect.d.ts.map +1 -0
- package/dist/elements/fields/DropdownMultiField/index.d.ts.map +1 -1
- package/dist/elements/fields/DropdownMultiField/optionNormalization.d.ts +10 -0
- package/dist/elements/fields/DropdownMultiField/optionNormalization.d.ts.map +1 -0
- package/dist/elements/fields/DropdownMultiField/selectStyles.d.ts +13 -0
- package/dist/elements/fields/DropdownMultiField/selectStyles.d.ts.map +1 -0
- package/dist/elements/fields/DropdownMultiField/tests/test-utils.d.ts +1 -0
- package/dist/elements/fields/DropdownMultiField/tests/test-utils.d.ts.map +1 -1
- package/dist/elements/fields/DropdownMultiField/types.d.ts +50 -0
- package/dist/elements/fields/DropdownMultiField/types.d.ts.map +1 -0
- package/dist/elements/fields/DropdownMultiField/useCollapsedSelectionManager.d.ts +48 -0
- package/dist/elements/fields/DropdownMultiField/useCollapsedSelectionManager.d.ts.map +1 -0
- package/dist/elements/fields/DropdownMultiField/useCollapsedValuesMeasurement.d.ts +20 -0
- package/dist/elements/fields/DropdownMultiField/useCollapsedValuesMeasurement.d.ts.map +1 -0
- package/dist/elements/fields/DropdownMultiField/useDropdownInteractions.d.ts +50 -0
- package/dist/elements/fields/DropdownMultiField/useDropdownInteractions.d.ts.map +1 -0
- package/dist/elements/fields/DropdownMultiField/useDropdownOptions.d.ts +30 -0
- package/dist/elements/fields/DropdownMultiField/useDropdownOptions.d.ts.map +1 -0
- package/dist/elements/fields/DropdownMultiField/useSelectProps.d.ts +113 -0
- package/dist/elements/fields/DropdownMultiField/useSelectProps.d.ts.map +1 -0
- package/dist/elements/fields/DropdownMultiField/useSelectionOrdering.d.ts +13 -0
- package/dist/elements/fields/DropdownMultiField/useSelectionOrdering.d.ts.map +1 -0
- package/dist/elements/utils/fieldNormalization.d.ts +13 -0
- package/dist/elements/utils/fieldNormalization.d.ts.map +1 -0
- package/dist/index.js +1 -1
- package/dist/utils/browser.d.ts +1 -1
- package/dist/utils/browser.d.ts.map +1 -1
- package/dist/utils/formHelperFunctions.d.ts.map +1 -1
- package/package.json +2 -1
- package/umd/index.js +1 -1
- package/umd/index.js.LICENSE.txt +12 -0
package/dist/Form/index.d.ts
CHANGED
|
@@ -6,10 +6,6 @@ export * from './grid/StyledContainer';
|
|
|
6
6
|
export type { StyledContainerProps } from './grid/StyledContainer';
|
|
7
7
|
export interface Props {
|
|
8
8
|
formId: string;
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated use formId instead
|
|
11
|
-
*/
|
|
12
|
-
formName?: string;
|
|
13
9
|
onChange?: null | ((context: ContextOnChange) => Promise<any> | void);
|
|
14
10
|
onLoad?: null | ((context: FormContext) => Promise<any> | void);
|
|
15
11
|
onFormLoad?: null | ((context: FormContext) => Promise<any> | void);
|
|
@@ -62,6 +58,6 @@ export interface LogicRule {
|
|
|
62
58
|
enabled: boolean;
|
|
63
59
|
valid: boolean;
|
|
64
60
|
}
|
|
65
|
-
export declare function JSForm({ formId,
|
|
61
|
+
export declare function JSForm({ formId, _internalId, _isAuthLoading, ...props }: Props & InternalProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
66
62
|
export default function ReactForm(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
67
63
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/Form/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/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AEZ,SAAS,EAKV,MAAM,OAAO,CAAC;AACf,OAAO,EAAU,KAAK,IAAI,SAAS,EAAE,MAAM,SAAS,CAAC;AAoBrD,eAAO,MAAM,WAAW,oBAA2B,CAAC;AAEpD,eAAO,MAAM,SAAS;;;;;;;;;uBAWD,MAAM;2BAGF,GAAG;;;sBAMR,MAAM;CACzB,CAAC;AAEF,QAAA,MAAM,SAAS;;eAWF,SAAS;;qBAEJ,IAAI;sBACH,IAAI;kCACQ,GAAG,KAAK,IAAI;;eAE9B,SAAS;
|
|
1
|
+
{"version":3,"file":"LoginForm.d.ts","sourceRoot":"","sources":["../../src/auth/LoginForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEZ,SAAS,EAKV,MAAM,OAAO,CAAC;AACf,OAAO,EAAU,KAAK,IAAI,SAAS,EAAE,MAAM,SAAS,CAAC;AAoBrD,eAAO,MAAM,WAAW,oBAA2B,CAAC;AAEpD,eAAO,MAAM,SAAS;;;;;;;;;uBAWD,MAAM;2BAGF,GAAG;;;sBAMR,MAAM;CACzB,CAAC;AAEF,QAAA,MAAM,SAAS;;eAWF,SAAS;;qBAEJ,IAAI;sBACH,IAAI;kCACQ,GAAG,KAAK,IAAI;;eAE9B,SAAS;6DAkJrB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ControlProps, type MultiValueGenericProps, type MultiValueProps, type MultiValueRemoveProps, type OptionProps } from 'react-select';
|
|
2
|
+
import type { OptionData } from './types';
|
|
3
|
+
declare const TooltipOption: ({ children, ...props }: OptionProps<OptionData, true>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare const CollapsibleMultiValueRemove: (props: MultiValueRemoveProps<OptionData>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare const Control: (props: ControlProps<OptionData, true>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare const CollapsibleMultiValueContainer: (props: MultiValueGenericProps<OptionData, true>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare const CollapsibleMultiValue: (props: MultiValueProps<OptionData, true>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { Control, CollapsibleMultiValue, CollapsibleMultiValueContainer, CollapsibleMultiValueRemove, TooltipOption };
|
|
9
|
+
//# sourceMappingURL=DropdownMultiFieldSelectComponents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownMultiFieldSelectComponents.d.ts","sourceRoot":"","sources":["../../../../src/elements/fields/DropdownMultiField/DropdownMultiFieldSelectComponents.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EACjB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAuB,UAAU,EAAE,MAAM,SAAS,CAAC;AAK/D,QAAA,MAAM,aAAa,2BAGhB,YAAY,UAAU,EAAE,IAAI,CAAC,qDA6C/B,CAAC;AASF,QAAA,MAAM,2BAA2B,UACxB,sBAAsB,UAAU,CAAC,qDA2BzC,CAAC;AAEF,QAAA,MAAM,OAAO,UAAW,aAAa,UAAU,EAAE,IAAI,CAAC,qDAwCrD,CAAC;AA2CF,QAAA,MAAM,8BAA8B,UAC3B,uBAAuB,UAAU,EAAE,IAAI,CAAC,qDAyChD,CAAC;AAEF,QAAA,MAAM,qBAAqB,UAAW,gBAAgB,UAAU,EAAE,IAAI,CAAC,qDAkGtE,CAAC;AAEF,OAAO,EACL,OAAO,EACP,qBAAqB,EACrB,8BAA8B,EAC9B,2BAA2B,EAC3B,aAAa,EACd,CAAC"}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SelectInstance } from 'react-select';
|
|
3
|
+
import type { OptionData } from './types';
|
|
4
|
+
declare const DropdownSelect: React.ForwardRefExoticComponent<Omit<Pick<import("react-select/dist/declarations/src/Select").Props<OptionData, true, import("react-select").GroupBase<OptionData>>, "onChange" | "required" | "className" | "value" | "form" | "autoFocus" | "id" | "aria-errormessage" | "aria-invalid" | "aria-label" | "aria-labelledby" | "onFocus" | "onBlur" | "onKeyDown" | "name" | "theme" | "isClearable" | "inputValue" | "ariaLiveMessages" | "classNamePrefix" | "delimiter" | "formatOptionLabel" | "hideSelectedOptions" | "inputId" | "instanceId" | "isOptionSelected" | "menuPortalTarget" | "onInputChange" | "onMenuOpen" | "onMenuClose" | "onMenuScrollToTop" | "onMenuScrollToBottom"> & {
|
|
5
|
+
tabIndex?: number | undefined;
|
|
6
|
+
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
7
|
+
placeholder?: React.ReactNode;
|
|
8
|
+
options?: import("react-select").OptionsOrGroups<OptionData, import("react-select").GroupBase<OptionData>> | undefined;
|
|
9
|
+
styles?: import("react-select").StylesConfig<OptionData, true, import("react-select").GroupBase<OptionData>> | undefined;
|
|
10
|
+
classNames?: import("react-select").ClassNamesConfig<OptionData, true, import("react-select").GroupBase<OptionData>> | undefined;
|
|
11
|
+
isDisabled?: boolean | undefined;
|
|
12
|
+
isMulti?: true | undefined;
|
|
13
|
+
isRtl?: boolean | undefined;
|
|
14
|
+
backspaceRemovesValue?: boolean | undefined;
|
|
15
|
+
blurInputOnSelect?: boolean | undefined;
|
|
16
|
+
captureMenuScroll?: boolean | undefined;
|
|
17
|
+
closeMenuOnSelect?: boolean | undefined;
|
|
18
|
+
closeMenuOnScroll?: boolean | ((event: Event) => boolean) | undefined;
|
|
19
|
+
components?: Partial<import("react-select/dist/declarations/src/components").SelectComponents<OptionData, true, import("react-select").GroupBase<OptionData>>> | undefined;
|
|
20
|
+
controlShouldRenderValue?: boolean | undefined;
|
|
21
|
+
escapeClearsValue?: boolean | undefined;
|
|
22
|
+
filterOption?: ((option: import("react-select").FilterOptionOption<OptionData>, inputValue: string) => boolean) | null | undefined;
|
|
23
|
+
formatGroupLabel?: ((group: import("react-select").GroupBase<OptionData>) => React.ReactNode) | undefined;
|
|
24
|
+
getOptionLabel?: import("react-select").GetOptionLabel<OptionData> | undefined;
|
|
25
|
+
getOptionValue?: import("react-select").GetOptionValue<OptionData> | undefined;
|
|
26
|
+
isLoading?: boolean | undefined;
|
|
27
|
+
isOptionDisabled?: ((option: OptionData, selectValue: import("react-select").Options<OptionData>) => boolean) | undefined;
|
|
28
|
+
isSearchable?: boolean | undefined;
|
|
29
|
+
loadingMessage?: ((obj: {
|
|
30
|
+
inputValue: string;
|
|
31
|
+
}) => React.ReactNode) | undefined;
|
|
32
|
+
minMenuHeight?: number | undefined;
|
|
33
|
+
maxMenuHeight?: number | undefined;
|
|
34
|
+
menuIsOpen?: boolean | undefined;
|
|
35
|
+
menuPlacement?: import("react-select").MenuPlacement | undefined;
|
|
36
|
+
menuPosition?: import("react-select").MenuPosition | undefined;
|
|
37
|
+
menuShouldBlockScroll?: boolean | undefined;
|
|
38
|
+
menuShouldScrollIntoView?: boolean | undefined;
|
|
39
|
+
noOptionsMessage?: ((obj: {
|
|
40
|
+
inputValue: string;
|
|
41
|
+
}) => React.ReactNode) | undefined;
|
|
42
|
+
openMenuOnFocus?: boolean | undefined;
|
|
43
|
+
openMenuOnClick?: boolean | undefined;
|
|
44
|
+
pageSize?: number | undefined;
|
|
45
|
+
screenReaderStatus?: ((obj: {
|
|
46
|
+
count: number;
|
|
47
|
+
}) => string) | undefined;
|
|
48
|
+
tabSelectsValue?: boolean | undefined;
|
|
49
|
+
unstyled?: boolean | undefined;
|
|
50
|
+
} & {}, "onChange" | "value" | "inputValue" | "menuIsOpen" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<OptionData, true, import("react-select").GroupBase<OptionData>>, "onChange" | "required" | "className" | "value" | "form" | "autoFocus" | "id" | "aria-errormessage" | "aria-invalid" | "aria-label" | "aria-labelledby" | "onFocus" | "onBlur" | "onKeyDown" | "name" | "theme" | "isClearable" | "inputValue" | "ariaLiveMessages" | "classNamePrefix" | "delimiter" | "formatOptionLabel" | "hideSelectedOptions" | "inputId" | "instanceId" | "isOptionSelected" | "menuPortalTarget" | "onInputChange" | "onMenuOpen" | "onMenuClose" | "onMenuScrollToTop" | "onMenuScrollToBottom"> & {
|
|
51
|
+
tabIndex?: number | undefined;
|
|
52
|
+
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
53
|
+
placeholder?: React.ReactNode;
|
|
54
|
+
options?: import("react-select").OptionsOrGroups<OptionData, import("react-select").GroupBase<OptionData>> | undefined;
|
|
55
|
+
styles?: import("react-select").StylesConfig<OptionData, true, import("react-select").GroupBase<OptionData>> | undefined;
|
|
56
|
+
classNames?: import("react-select").ClassNamesConfig<OptionData, true, import("react-select").GroupBase<OptionData>> | undefined;
|
|
57
|
+
isDisabled?: boolean | undefined;
|
|
58
|
+
isMulti?: true | undefined;
|
|
59
|
+
isRtl?: boolean | undefined;
|
|
60
|
+
backspaceRemovesValue?: boolean | undefined;
|
|
61
|
+
blurInputOnSelect?: boolean | undefined;
|
|
62
|
+
captureMenuScroll?: boolean | undefined;
|
|
63
|
+
closeMenuOnSelect?: boolean | undefined;
|
|
64
|
+
closeMenuOnScroll?: boolean | ((event: Event) => boolean) | undefined;
|
|
65
|
+
components?: Partial<import("react-select/dist/declarations/src/components").SelectComponents<OptionData, true, import("react-select").GroupBase<OptionData>>> | undefined;
|
|
66
|
+
controlShouldRenderValue?: boolean | undefined;
|
|
67
|
+
escapeClearsValue?: boolean | undefined;
|
|
68
|
+
filterOption?: ((option: import("react-select").FilterOptionOption<OptionData>, inputValue: string) => boolean) | null | undefined;
|
|
69
|
+
formatGroupLabel?: ((group: import("react-select").GroupBase<OptionData>) => React.ReactNode) | undefined;
|
|
70
|
+
getOptionLabel?: import("react-select").GetOptionLabel<OptionData> | undefined;
|
|
71
|
+
getOptionValue?: import("react-select").GetOptionValue<OptionData> | undefined;
|
|
72
|
+
isLoading?: boolean | undefined;
|
|
73
|
+
isOptionDisabled?: ((option: OptionData, selectValue: import("react-select").Options<OptionData>) => boolean) | undefined;
|
|
74
|
+
isSearchable?: boolean | undefined;
|
|
75
|
+
loadingMessage?: ((obj: {
|
|
76
|
+
inputValue: string;
|
|
77
|
+
}) => React.ReactNode) | undefined;
|
|
78
|
+
minMenuHeight?: number | undefined;
|
|
79
|
+
maxMenuHeight?: number | undefined;
|
|
80
|
+
menuIsOpen?: boolean | undefined;
|
|
81
|
+
menuPlacement?: import("react-select").MenuPlacement | undefined;
|
|
82
|
+
menuPosition?: import("react-select").MenuPosition | undefined;
|
|
83
|
+
menuShouldBlockScroll?: boolean | undefined;
|
|
84
|
+
menuShouldScrollIntoView?: boolean | undefined;
|
|
85
|
+
noOptionsMessage?: ((obj: {
|
|
86
|
+
inputValue: string;
|
|
87
|
+
}) => React.ReactNode) | undefined;
|
|
88
|
+
openMenuOnFocus?: boolean | undefined;
|
|
89
|
+
openMenuOnClick?: boolean | undefined;
|
|
90
|
+
pageSize?: number | undefined;
|
|
91
|
+
screenReaderStatus?: ((obj: {
|
|
92
|
+
count: number;
|
|
93
|
+
}) => string) | undefined;
|
|
94
|
+
tabSelectsValue?: boolean | undefined;
|
|
95
|
+
unstyled?: boolean | undefined;
|
|
96
|
+
} & {}> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<OptionData> & import("./types").DropdownSelectExtraProps & React.RefAttributes<SelectInstance<OptionData, true, import("react-select").GroupBase<OptionData>>>>;
|
|
97
|
+
declare const DropdownCreatableSelect: React.ForwardRefExoticComponent<Omit<Pick<import("react-select/dist/declarations/src/Select").Props<OptionData, true, import("react-select").GroupBase<OptionData>>, "onChange" | "required" | "className" | "value" | "form" | "autoFocus" | "id" | "aria-errormessage" | "aria-invalid" | "aria-label" | "aria-labelledby" | "onFocus" | "onBlur" | "onKeyDown" | "name" | "theme" | "isClearable" | "inputValue" | "ariaLiveMessages" | "classNamePrefix" | "delimiter" | "formatOptionLabel" | "hideSelectedOptions" | "inputId" | "instanceId" | "isOptionSelected" | "menuPortalTarget" | "onInputChange" | "onMenuOpen" | "onMenuClose" | "onMenuScrollToTop" | "onMenuScrollToBottom"> & {
|
|
98
|
+
tabIndex?: number | undefined;
|
|
99
|
+
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
100
|
+
placeholder?: React.ReactNode;
|
|
101
|
+
options?: import("react-select").OptionsOrGroups<OptionData, import("react-select").GroupBase<OptionData>> | undefined;
|
|
102
|
+
styles?: import("react-select").StylesConfig<OptionData, true, import("react-select").GroupBase<OptionData>> | undefined;
|
|
103
|
+
classNames?: import("react-select").ClassNamesConfig<OptionData, true, import("react-select").GroupBase<OptionData>> | undefined;
|
|
104
|
+
isDisabled?: boolean | undefined;
|
|
105
|
+
isMulti?: true | undefined;
|
|
106
|
+
isRtl?: boolean | undefined;
|
|
107
|
+
backspaceRemovesValue?: boolean | undefined;
|
|
108
|
+
blurInputOnSelect?: boolean | undefined;
|
|
109
|
+
captureMenuScroll?: boolean | undefined;
|
|
110
|
+
closeMenuOnSelect?: boolean | undefined;
|
|
111
|
+
closeMenuOnScroll?: boolean | ((event: Event) => boolean) | undefined;
|
|
112
|
+
components?: Partial<import("react-select/dist/declarations/src/components").SelectComponents<OptionData, true, import("react-select").GroupBase<OptionData>>> | undefined;
|
|
113
|
+
controlShouldRenderValue?: boolean | undefined;
|
|
114
|
+
escapeClearsValue?: boolean | undefined;
|
|
115
|
+
filterOption?: ((option: import("react-select").FilterOptionOption<OptionData>, inputValue: string) => boolean) | null | undefined;
|
|
116
|
+
formatGroupLabel?: ((group: import("react-select").GroupBase<OptionData>) => React.ReactNode) | undefined;
|
|
117
|
+
getOptionLabel?: import("react-select").GetOptionLabel<OptionData> | undefined;
|
|
118
|
+
getOptionValue?: import("react-select").GetOptionValue<OptionData> | undefined;
|
|
119
|
+
isLoading?: boolean | undefined;
|
|
120
|
+
isOptionDisabled?: ((option: OptionData, selectValue: import("react-select").Options<OptionData>) => boolean) | undefined;
|
|
121
|
+
isSearchable?: boolean | undefined;
|
|
122
|
+
loadingMessage?: ((obj: {
|
|
123
|
+
inputValue: string;
|
|
124
|
+
}) => React.ReactNode) | undefined;
|
|
125
|
+
minMenuHeight?: number | undefined;
|
|
126
|
+
maxMenuHeight?: number | undefined;
|
|
127
|
+
menuIsOpen?: boolean | undefined;
|
|
128
|
+
menuPlacement?: import("react-select").MenuPlacement | undefined;
|
|
129
|
+
menuPosition?: import("react-select").MenuPosition | undefined;
|
|
130
|
+
menuShouldBlockScroll?: boolean | undefined;
|
|
131
|
+
menuShouldScrollIntoView?: boolean | undefined;
|
|
132
|
+
noOptionsMessage?: ((obj: {
|
|
133
|
+
inputValue: string;
|
|
134
|
+
}) => React.ReactNode) | undefined;
|
|
135
|
+
openMenuOnFocus?: boolean | undefined;
|
|
136
|
+
openMenuOnClick?: boolean | undefined;
|
|
137
|
+
pageSize?: number | undefined;
|
|
138
|
+
screenReaderStatus?: ((obj: {
|
|
139
|
+
count: number;
|
|
140
|
+
}) => string) | undefined;
|
|
141
|
+
tabSelectsValue?: boolean | undefined;
|
|
142
|
+
unstyled?: boolean | undefined;
|
|
143
|
+
} & {}, "onChange" | "value" | "inputValue" | "menuIsOpen" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<OptionData, true, import("react-select").GroupBase<OptionData>>, "onChange" | "required" | "className" | "value" | "form" | "autoFocus" | "id" | "aria-errormessage" | "aria-invalid" | "aria-label" | "aria-labelledby" | "onFocus" | "onBlur" | "onKeyDown" | "name" | "theme" | "isClearable" | "inputValue" | "ariaLiveMessages" | "classNamePrefix" | "delimiter" | "formatOptionLabel" | "hideSelectedOptions" | "inputId" | "instanceId" | "isOptionSelected" | "menuPortalTarget" | "onInputChange" | "onMenuOpen" | "onMenuClose" | "onMenuScrollToTop" | "onMenuScrollToBottom"> & {
|
|
144
|
+
tabIndex?: number | undefined;
|
|
145
|
+
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
146
|
+
placeholder?: React.ReactNode;
|
|
147
|
+
options?: import("react-select").OptionsOrGroups<OptionData, import("react-select").GroupBase<OptionData>> | undefined;
|
|
148
|
+
styles?: import("react-select").StylesConfig<OptionData, true, import("react-select").GroupBase<OptionData>> | undefined;
|
|
149
|
+
classNames?: import("react-select").ClassNamesConfig<OptionData, true, import("react-select").GroupBase<OptionData>> | undefined;
|
|
150
|
+
isDisabled?: boolean | undefined;
|
|
151
|
+
isMulti?: true | undefined;
|
|
152
|
+
isRtl?: boolean | undefined;
|
|
153
|
+
backspaceRemovesValue?: boolean | undefined;
|
|
154
|
+
blurInputOnSelect?: boolean | undefined;
|
|
155
|
+
captureMenuScroll?: boolean | undefined;
|
|
156
|
+
closeMenuOnSelect?: boolean | undefined;
|
|
157
|
+
closeMenuOnScroll?: boolean | ((event: Event) => boolean) | undefined;
|
|
158
|
+
components?: Partial<import("react-select/dist/declarations/src/components").SelectComponents<OptionData, true, import("react-select").GroupBase<OptionData>>> | undefined;
|
|
159
|
+
controlShouldRenderValue?: boolean | undefined;
|
|
160
|
+
escapeClearsValue?: boolean | undefined;
|
|
161
|
+
filterOption?: ((option: import("react-select").FilterOptionOption<OptionData>, inputValue: string) => boolean) | null | undefined;
|
|
162
|
+
formatGroupLabel?: ((group: import("react-select").GroupBase<OptionData>) => React.ReactNode) | undefined;
|
|
163
|
+
getOptionLabel?: import("react-select").GetOptionLabel<OptionData> | undefined;
|
|
164
|
+
getOptionValue?: import("react-select").GetOptionValue<OptionData> | undefined;
|
|
165
|
+
isLoading?: boolean | undefined;
|
|
166
|
+
isOptionDisabled?: ((option: OptionData, selectValue: import("react-select").Options<OptionData>) => boolean) | undefined;
|
|
167
|
+
isSearchable?: boolean | undefined;
|
|
168
|
+
loadingMessage?: ((obj: {
|
|
169
|
+
inputValue: string;
|
|
170
|
+
}) => React.ReactNode) | undefined;
|
|
171
|
+
minMenuHeight?: number | undefined;
|
|
172
|
+
maxMenuHeight?: number | undefined;
|
|
173
|
+
menuIsOpen?: boolean | undefined;
|
|
174
|
+
menuPlacement?: import("react-select").MenuPlacement | undefined;
|
|
175
|
+
menuPosition?: import("react-select").MenuPosition | undefined;
|
|
176
|
+
menuShouldBlockScroll?: boolean | undefined;
|
|
177
|
+
menuShouldScrollIntoView?: boolean | undefined;
|
|
178
|
+
noOptionsMessage?: ((obj: {
|
|
179
|
+
inputValue: string;
|
|
180
|
+
}) => React.ReactNode) | undefined;
|
|
181
|
+
openMenuOnFocus?: boolean | undefined;
|
|
182
|
+
openMenuOnClick?: boolean | undefined;
|
|
183
|
+
pageSize?: number | undefined;
|
|
184
|
+
screenReaderStatus?: ((obj: {
|
|
185
|
+
count: number;
|
|
186
|
+
}) => string) | undefined;
|
|
187
|
+
tabSelectsValue?: boolean | undefined;
|
|
188
|
+
unstyled?: boolean | undefined;
|
|
189
|
+
} & {}> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<OptionData> & import("react-select/dist/declarations/src/useCreatable").CreatableAdditionalProps<OptionData, import("react-select").GroupBase<OptionData>> & import("./types").DropdownSelectExtraProps & React.RefAttributes<SelectInstance<OptionData, true, import("react-select").GroupBase<OptionData>>>>;
|
|
190
|
+
export { DropdownSelect, DropdownCreatableSelect };
|
|
191
|
+
//# sourceMappingURL=createDropdownSelect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createDropdownSelect.d.ts","sourceRoot":"","sources":["../../../../src/elements/fields/DropdownMultiField/createDropdownSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAInD,OAAO,KAAK,EAGV,UAAU,EACX,MAAM,SAAS,CAAC;AAEjB,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kQAGgD,CAAC;AAIrE,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iZAGgD,CAAC;AAI9E,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/elements/fields/DropdownMultiField/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/elements/fields/DropdownMultiField/index.tsx"],"names":[],"mappings":"AAyBA,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,OAAO,EACP,gBAAgB,EAChB,UAAU,EACV,WAAW,EACX,QAAgB,EAChB,QAAgB,EAChB,QAAa,EACb,WAAkB,EAClB,QAAQ,EACR,QAAmB,EACnB,YAAiB,EACjB,WAAW,EACX,QAAQ,EACT,EAAE,GAAG,oDAmQL"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { OptionData, Options, DropdownOptionsInput, NormalizeDropdownOptionParams, BuildDropdownOptionsParams } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Normalizes a raw dropdown option into the OptionData shape, emitting warnings for invalid entries.
|
|
4
|
+
*/
|
|
5
|
+
export declare const normalizeDropdownOption: ({ warningState, option, fieldKey, context, entityLabel }: NormalizeDropdownOptionParams) => OptionData | null;
|
|
6
|
+
/**
|
|
7
|
+
* Builds a normalized options array while applying label/tooltip overrides and populating lookup maps.
|
|
8
|
+
*/
|
|
9
|
+
export declare const buildDropdownOptions: (rawOptions: Options | DropdownOptionsInput, { warningState, fieldKey, contextPrefix, labelOverrides, tooltipOverrides, labelMap, tooltipMap, entityLabel }: BuildDropdownOptionsParams) => OptionData[];
|
|
10
|
+
//# sourceMappingURL=optionNormalization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"optionNormalization.d.ts","sourceRoot":"","sources":["../../../../src/elements/fields/DropdownMultiField/optionNormalization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EAEP,oBAAoB,EACpB,6BAA6B,EAC7B,0BAA0B,EAC3B,MAAM,SAAS,CAAC;AAMjB;;GAEG;AACH,eAAO,MAAM,uBAAuB,6DAMjC,6BAA6B,KAAG,UAAU,GAAG,IAiE/C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,eACnB,OAAO,GAAG,oBAAoB,kHAUvC,0BAA0B,KAC5B,UAAU,EAqDZ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StylesConfig } from 'react-select';
|
|
2
|
+
import type ResponsiveStyles from '../../styles';
|
|
3
|
+
import type { OptionData } from './types';
|
|
4
|
+
declare type SelectStylesParams = {
|
|
5
|
+
chevronPosition: number;
|
|
6
|
+
fontColor: string;
|
|
7
|
+
menuZIndex: number;
|
|
8
|
+
responsiveStyles: ResponsiveStyles;
|
|
9
|
+
rightToLeft: boolean | undefined;
|
|
10
|
+
};
|
|
11
|
+
export declare function createSelectStyles({ chevronPosition, fontColor, menuZIndex, responsiveStyles, rightToLeft }: SelectStylesParams): StylesConfig<OptionData, true>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=selectStyles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectStyles.d.ts","sourceRoot":"","sources":["../../../../src/elements/fields/DropdownMultiField/selectStyles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD,OAAO,KAAK,gBAAgB,MAAM,cAAc,CAAC;AAEjD,OAAO,KAAK,EAAuB,UAAU,EAAE,MAAM,SAAS,CAAC;AAE/D,aAAK,kBAAkB,GAAG;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,WAAW,EAAE,OAAO,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,EACjC,eAAe,EACf,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,WAAW,EACZ,EAAE,kBAAkB,GAAG,YAAY,CAAC,UAAU,EAAE,IAAI,CAAC,CAoJrD"}
|
|
@@ -32,6 +32,7 @@ export declare const createCreatableElement: (options: string[]) => {
|
|
|
32
32
|
styles: any;
|
|
33
33
|
repeat: boolean;
|
|
34
34
|
};
|
|
35
|
+
export declare const createSelectionOrderingHarness: (element: any) => () => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
35
36
|
export declare const getSelectInput: () => HTMLInputElement;
|
|
36
37
|
export declare const getReactSelectContainer: () => HTMLElement;
|
|
37
38
|
export declare const getOptionElements: () => Element[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../../../../src/elements/fields/DropdownMultiField/tests/test-utils.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../../../../src/elements/fields/DropdownMultiField/tests/test-utils.tsx"],"names":[],"mappings":";AAGA,OAAO,EAGL,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,EAC3B,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,EAC3B,CAAC;AAWF,eAAO,MAAM,0BAA0B,SAC/B,MAAM,aACF,GAAG,WACL,GAAG;;;;;;CAWV,CAAC;AAEJ,eAAO,MAAM,wBAAwB,YAAa,GAAG,gBAAe,GAAG,QAOnE,CAAC;AAEL,eAAO,MAAM,sBAAsB,iDAOlC,CAAC;AAEF,eAAO,MAAM,qBAAqB,YACvB,MAAM,EAAE,WACR,MAAM,EAAE,aACN,MAAM,EAAE;;;;CAKnB,CAAC;AAEH,eAAO,MAAM,2BAA2B,kBAAmB,GAAG,EAAE;;CAE9D,CAAC;AAEH,eAAO,MAAM,sBAAsB,cACtB,MAAM,YACR,MAAM,EAAE;;;;;;CAKf,CAAC;AAEL,eAAO,MAAM,sBAAsB,YAAa,MAAM,EAAE;;;;;;CAIpD,CAAC;AAEL,eAAO,MAAM,8BAA8B,YAAa,GAAG,2DAyB1D,CAAC;AAEF,eAAO,MAAM,cAAc,wBAI1B,CAAC;AAEF,eAAO,MAAM,uBAAuB,mBAInC,CAAC;AAEF,eAAO,MAAM,iBAAiB,iBAI7B,CAAC;AAEF,eAAO,MAAM,eAAe,SAAU,MAAM,wBAG3C,CAAC;AAEF,eAAO,MAAM,iBAAiB,iBAE7B,CAAC;AAEF,eAAO,MAAM,uBAAuB,SAAU,MAAM,wBAMnD,CAAC;AAEF,eAAO,MAAM,eAAe,SAAU,MAAM,uBAM3C,CAAC;AAEF,eAAO,MAAM,kCAAkC,UAAW,MAAM,SAG/D,CAAC;AAEF,eAAO,MAAM,wBAAwB,UAAW,MAAM,SAGrD,CAAC;AAEF,eAAO,MAAM,uBAAuB,SAAU,MAAM,SAGnD,CAAC;AAEF,eAAO,MAAM,gBAAgB,SAAgB,GAAG,kBAW/C,CAAC;AAEF,eAAO,MAAM,kBAAkB,SAAgB,GAAG,QAAQ,MAAM,kBAS/D,CAAC;AAEF,eAAO,MAAM,mBAAmB,SAAgB,GAAG,QAAQ,MAAM,kBAIhE,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { GroupBase, MultiValueProps, Props as SelectProps } from 'react-select';
|
|
3
|
+
import type { CreatableProps } from 'react-select/creatable';
|
|
4
|
+
export declare type OptionData = {
|
|
5
|
+
tooltip?: string;
|
|
6
|
+
value: string;
|
|
7
|
+
label: string;
|
|
8
|
+
};
|
|
9
|
+
export declare type Options = string[] | OptionData[];
|
|
10
|
+
export declare type PrimitiveOption = string | number | boolean;
|
|
11
|
+
export declare type RawOption = PrimitiveOption | null | undefined | Partial<OptionData>;
|
|
12
|
+
export declare type DropdownOptionsInput = Array<RawOption>;
|
|
13
|
+
export declare type NormalizeDropdownOptionParams = {
|
|
14
|
+
warningState: Set<string>;
|
|
15
|
+
option: RawOption;
|
|
16
|
+
fieldKey: string;
|
|
17
|
+
context: string;
|
|
18
|
+
entityLabel: string;
|
|
19
|
+
};
|
|
20
|
+
export declare type BuildDropdownOptionsParams = {
|
|
21
|
+
warningState: Set<string>;
|
|
22
|
+
fieldKey: string;
|
|
23
|
+
contextPrefix: string;
|
|
24
|
+
labelOverrides?: unknown[];
|
|
25
|
+
tooltipOverrides?: unknown[];
|
|
26
|
+
labelMap: Record<string, string>;
|
|
27
|
+
tooltipMap: Record<string, string | undefined>;
|
|
28
|
+
entityLabel: string;
|
|
29
|
+
};
|
|
30
|
+
export declare type DropdownSelectExtraProps = {
|
|
31
|
+
collapsedCount: number;
|
|
32
|
+
containerRef: React.RefObject<HTMLElement | null>;
|
|
33
|
+
collapseSelected: boolean;
|
|
34
|
+
isMeasuring: boolean;
|
|
35
|
+
visibleCount: number;
|
|
36
|
+
inputHidden?: boolean;
|
|
37
|
+
onCollapsedChipPress?: (event: React.SyntheticEvent) => void;
|
|
38
|
+
onControlPress?: (event: React.SyntheticEvent, info: {
|
|
39
|
+
isTouch: boolean;
|
|
40
|
+
}) => boolean;
|
|
41
|
+
onMultiValueRemovePointer?: () => void;
|
|
42
|
+
};
|
|
43
|
+
export declare type DropdownSelectProps = MultiValueProps<OptionData, true>['selectProps'] & DropdownSelectExtraProps;
|
|
44
|
+
export declare type DropdownSelectComponentProps = SelectProps<OptionData, true, GroupBase<OptionData>> & DropdownSelectExtraProps;
|
|
45
|
+
export declare type DropdownCreatableSelectComponentProps = CreatableProps<OptionData, true, GroupBase<OptionData>> & DropdownSelectExtraProps;
|
|
46
|
+
export declare type CreatableValidator = (inputValue: string, value: readonly OptionData[], options: readonly (OptionData | GroupBase<OptionData>)[], accessors: {
|
|
47
|
+
getOptionValue(option: OptionData): string;
|
|
48
|
+
getOptionLabel(option: OptionData): string;
|
|
49
|
+
}) => boolean;
|
|
50
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/elements/fields/DropdownMultiField/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EACV,SAAS,EACT,eAAe,EACf,KAAK,IAAI,WAAW,EACrB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,oBAAY,UAAU,GAAG;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,oBAAY,OAAO,GAAG,MAAM,EAAE,GAAG,UAAU,EAAE,CAAC;AAE9C,oBAAY,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAExD,oBAAY,SAAS,GACjB,eAAe,GACf,IAAI,GACJ,SAAS,GACT,OAAO,CAAC,UAAU,CAAC,CAAC;AAExB,oBAAY,oBAAoB,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;AAEpD,oBAAY,6BAA6B,GAAG;IAC1C,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC1B,MAAM,EAAE,SAAS,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,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B,GACC,wBAAwB,CAAC;AAE3B,oBAAY,kBAAkB,GAAG,CAC/B,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,SAAS,UAAU,EAAE,EAC5B,OAAO,EAAE,SAAS,CAAC,UAAU,GAAG,SAAS,CAAC,UAAU,CAAC,CAAC,EAAE,EACxD,SAAS,EAAE;IACT,cAAc,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAAC;IAC3C,cAAc,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAAC;CAC5C,KACE,OAAO,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { SelectInstance } from 'react-select';
|
|
3
|
+
import type { OptionData } from './types';
|
|
4
|
+
declare type CollapseParams = {
|
|
5
|
+
collapseSelectedPreference: boolean;
|
|
6
|
+
containerRef: React.RefObject<HTMLElement | null>;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
values: OptionData[];
|
|
9
|
+
};
|
|
10
|
+
declare type MenuCloseOptions = {
|
|
11
|
+
skipBlur?: boolean;
|
|
12
|
+
};
|
|
13
|
+
declare type MenuControls = {
|
|
14
|
+
isOpen: boolean;
|
|
15
|
+
open: () => void;
|
|
16
|
+
close: () => void;
|
|
17
|
+
forceClose: (options?: MenuCloseOptions) => void;
|
|
18
|
+
};
|
|
19
|
+
declare type PointerControls = {
|
|
20
|
+
onMouseDown: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
21
|
+
onTouchStart: (event: React.TouchEvent<HTMLDivElement>) => void;
|
|
22
|
+
reset: () => void;
|
|
23
|
+
};
|
|
24
|
+
declare type MeasurementState = {
|
|
25
|
+
isMeasuring: boolean;
|
|
26
|
+
visibleCount: number;
|
|
27
|
+
};
|
|
28
|
+
declare type CollapseControls = {
|
|
29
|
+
collapseSelected: boolean;
|
|
30
|
+
collapsedCount: number;
|
|
31
|
+
menu: MenuControls;
|
|
32
|
+
pointer: PointerControls;
|
|
33
|
+
measurement: MeasurementState;
|
|
34
|
+
selectRef: React.RefObject<SelectInstance<OptionData, true> | null>;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Manages the collapsed multi-select state and interactions.
|
|
38
|
+
*
|
|
39
|
+
* Coordinates value measurement, menu expansion state, and pointer
|
|
40
|
+
* event handling for the collapsed selection UI. When enabled, shows
|
|
41
|
+
* only chips that fit on one row plus a "+N" indicator.
|
|
42
|
+
*
|
|
43
|
+
* @param params - Collapse configuration and dependencies
|
|
44
|
+
* @returns Collapse state, menu controls, pointer handlers, measurement data, and select ref
|
|
45
|
+
*/
|
|
46
|
+
export default function useCollapsedSelectionManager({ collapseSelectedPreference, containerRef, disabled, values }: CollapseParams): CollapseControls;
|
|
47
|
+
export {};
|
|
48
|
+
//# sourceMappingURL=useCollapsedSelectionManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCollapsedSelectionManager.d.ts","sourceRoot":"","sources":["../../../../src/elements/fields/DropdownMultiField/useCollapsedSelectionManager.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAInD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAG1C,aAAK,cAAc,GAAG;IACpB,0BAA0B,EAAE,OAAO,CAAC;IACpC,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAClD,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,UAAU,EAAE,CAAC;CACtB,CAAC;AAEF,aAAK,gBAAgB,GAAG;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,aAAK,YAAY,GAAG;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,UAAU,EAAE,CAAC,OAAO,CAAC,EAAE,gBAAgB,KAAK,IAAI,CAAC;CAClD,CAAC;AAEF,aAAK,eAAe,GAAG;IACrB,WAAW,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IAC/D,YAAY,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IAChE,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAEF,aAAK,gBAAgB,GAAG;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,aAAK,gBAAgB,GAAG;IACtB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,EAAE,eAAe,CAAC;IACzB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,UAAU,EAAE,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;CACrE,CAAC;AAUF;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,4BAA4B,CAAC,EACnD,0BAA0B,EAC1B,YAAY,EACZ,QAAQ,EACR,MAAM,EACP,EAAE,cAAc,GAAG,gBAAgB,CAoHnC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { OptionData } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Measures how many selected value chips fit on a single row.
|
|
5
|
+
*
|
|
6
|
+
* Uses a hidden clone of the container to calculate layout without
|
|
7
|
+
* affecting the live DOM. Automatically recalculates on resize or
|
|
8
|
+
* value changes to determine which chips should be visible vs collapsed.
|
|
9
|
+
*
|
|
10
|
+
* @param containerRef - The dropdown container element
|
|
11
|
+
* @param values - Selected option values to measure
|
|
12
|
+
* @param enabled - Whether collapse measurement is active
|
|
13
|
+
* @returns Visible chip count, collapsed chip count, and measuring state
|
|
14
|
+
*/
|
|
15
|
+
export default function useCollapsedValuesMeasurement(containerRef: React.RefObject<HTMLElement | null>, values: OptionData[], enabled: boolean): {
|
|
16
|
+
visibleCount: number;
|
|
17
|
+
collapsedCount: number;
|
|
18
|
+
isMeasuring: boolean;
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=useCollapsedValuesMeasurement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCollapsedValuesMeasurement.d.ts","sourceRoot":"","sources":["../../../../src/elements/fields/DropdownMultiField/useCollapsedValuesMeasurement.ts"],"names":[],"mappings":";AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAU1C;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,OAAO,UAAU,6BAA6B,CACnD,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,EACjD,MAAM,EAAE,UAAU,EAAE,EACpB,OAAO,EAAE,OAAO;;;;EA6XjB"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ActionMeta, OnChangeValue, SelectInstance } from 'react-select';
|
|
3
|
+
import type { OptionData } from './types';
|
|
4
|
+
interface UseDropdownInteractionsParams {
|
|
5
|
+
selectRef: React.RefObject<SelectInstance<OptionData, true> | null>;
|
|
6
|
+
containerRef: React.RefObject<HTMLElement | null>;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
isMenuOpen: boolean;
|
|
9
|
+
setIsMenuOpen: (open: boolean) => void;
|
|
10
|
+
collapseSelected: boolean;
|
|
11
|
+
collapseSelectedPreference: boolean;
|
|
12
|
+
openCollapseMenu: () => void;
|
|
13
|
+
closeCollapseMenu: () => void;
|
|
14
|
+
forceCloseCollapseMenu: (options?: {
|
|
15
|
+
skipBlur?: boolean;
|
|
16
|
+
}) => void;
|
|
17
|
+
focusOnMouseDown: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
18
|
+
focusOnTouchStart: (event: React.TouchEvent<HTMLDivElement>) => void;
|
|
19
|
+
orderedSelectVal: OptionData[];
|
|
20
|
+
options: OptionData[];
|
|
21
|
+
isCreatableInputValid?: (inputValue: string) => boolean;
|
|
22
|
+
create: boolean;
|
|
23
|
+
disableAllOptions: boolean;
|
|
24
|
+
onChange: (selected: any, actionMeta: any) => void;
|
|
25
|
+
reorderSelection: (selected: any, actionMeta: any) => any;
|
|
26
|
+
}
|
|
27
|
+
interface UseDropdownInteractionsReturn {
|
|
28
|
+
handleWrapperMouseDown: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
29
|
+
handleWrapperTouchStart: (event: React.TouchEvent<HTMLDivElement>) => void;
|
|
30
|
+
handleKeyDownCapture: (event: React.KeyboardEvent) => void;
|
|
31
|
+
handleChange: (selected: OnChangeValue<OptionData, true>, actionMeta: ActionMeta<OptionData>) => void;
|
|
32
|
+
handleSelectKeyDown: (event: React.KeyboardEvent) => void;
|
|
33
|
+
handleMenuOpen: () => void;
|
|
34
|
+
handleMenuClose: () => void;
|
|
35
|
+
handleControlPress: (event: React.SyntheticEvent, options: {
|
|
36
|
+
isTouch: boolean;
|
|
37
|
+
}) => boolean;
|
|
38
|
+
handleCollapsedChipPress: (event: React.SyntheticEvent) => void;
|
|
39
|
+
extendCloseSuppression: () => void;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Manages all user interactions for the dropdown: keyboard, mouse, touch, and menu.
|
|
43
|
+
*
|
|
44
|
+
* Handles Enter key validation, collapse menu interactions, selection changes,
|
|
45
|
+
* and outside click detection. Prevents form submission when appropriate and
|
|
46
|
+
* coordinates menu state across collapsed and expanded modes.
|
|
47
|
+
*/
|
|
48
|
+
export default function useDropdownInteractions({ selectRef, containerRef, disabled, isMenuOpen, setIsMenuOpen, collapseSelected, collapseSelectedPreference, openCollapseMenu, closeCollapseMenu, forceCloseCollapseMenu, focusOnMouseDown, focusOnTouchStart, orderedSelectVal, options, isCreatableInputValid, create, disableAllOptions, onChange, reorderSelection }: UseDropdownInteractionsParams): UseDropdownInteractionsReturn;
|
|
49
|
+
export {};
|
|
50
|
+
//# sourceMappingURL=useDropdownInteractions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDropdownInteractions.d.ts","sourceRoot":"","sources":["../../../../src/elements/fields/DropdownMultiField/useDropdownInteractions.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAyB1C,UAAU,6BAA6B;IAErC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,UAAU,EAAE,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;IACpE,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAGlD,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,0BAA0B,EAAE,OAAO,CAAC;IAGpC,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,sBAAsB,EAAE,CAAC,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;IACnE,gBAAgB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IACpE,iBAAiB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IAGrE,gBAAgB,EAAE,UAAU,EAAE,CAAC;IAC/B,OAAO,EAAE,UA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ACZ,QAAQ,EACR,UAAU,EACV,aAAa,EACb,gBAAgB,EAChB,0BAA0B,EAC1B,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,OAAO,EACP,qBAAqB,EACrB,MAAM,EACN,iBAAiB,EACjB,QAAQ,EACR,gBAAgB,EACjB,EAAE,6BAA6B,GAAG,6BAA6B,CAmT/D"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { OptionData } from './types';
|
|
2
|
+
interface UseDropdownOptionsParams {
|
|
3
|
+
fieldVal: any[];
|
|
4
|
+
fieldKey: string;
|
|
5
|
+
servar: any;
|
|
6
|
+
properties: any;
|
|
7
|
+
dynamicOptions: any[];
|
|
8
|
+
shouldSalesforceSync: boolean;
|
|
9
|
+
repeatIndex: number | null;
|
|
10
|
+
entityLabel: string;
|
|
11
|
+
collapseSelectedPreference: boolean;
|
|
12
|
+
}
|
|
13
|
+
interface UseDropdownOptionsReturn {
|
|
14
|
+
options: OptionData[];
|
|
15
|
+
orderedSelectVal: OptionData[];
|
|
16
|
+
labelMap: Record<string, string>;
|
|
17
|
+
tooltipMap: Record<string, string | undefined>;
|
|
18
|
+
reorderSelection: (selected: any, actionMeta: any) => any;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Handles all dropdown options building logic:
|
|
22
|
+
* - Normalizes field values
|
|
23
|
+
* - Determines option source (Salesforce, repeat, or default)
|
|
24
|
+
* - Builds options with labels and tooltips
|
|
25
|
+
* - Manages selection ordering
|
|
26
|
+
* - Supplies selection ordering helpers for interaction logic
|
|
27
|
+
*/
|
|
28
|
+
export default function useDropdownOptions({ fieldVal, fieldKey, servar, properties, dynamicOptions, shouldSalesforceSync, repeatIndex, entityLabel, collapseSelectedPreference }: UseDropdownOptionsParams): UseDropdownOptionsReturn;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=useDropdownOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDropdownOptions.d.ts","sourceRoot":"","sources":["../../../../src/elements/fields/DropdownMultiField/useDropdownOptions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAiC,MAAM,SAAS,CAAC;AAezE,UAAU,wBAAwB;IAChC,QAAQ,EAAE,GAAG,EAAE,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,GAAG,CAAC;IACZ,UAAU,EAAE,GAAG,CAAC;IAChB,cAAc,EAAE,GAAG,EAAE,CAAC;IACtB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,0BAA0B,EAAE,OAAO,CAAC;CACrC;AAED,UAAU,wBAAwB;IAChC,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,gBAAgB,EAAE,UAAU,EAAE,CAAC;IAC/B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/C,gBAAgB,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,KAAK,GAAG,CAAC;CAC3D;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,UAAU,EACV,cAAc,EACd,oBAAoB,EACpB,WAAW,EACX,WAAW,EACX,0BAA0B,EAC3B,EAAE,wBAAwB,GAAG,wBAAwB,CA0JrD"}
|