@apia/components 4.0.17 → 4.0.18
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.ts +79 -75
- package/dist/index.js +10 -5
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
|
@@ -115,67 +115,67 @@ type TModal = {
|
|
|
115
115
|
variant?: string;
|
|
116
116
|
} & Pick<IDialogHeader, 'hideCloseButton'>;
|
|
117
117
|
declare const Modal: React__default.ForwardRefExoticComponent<{
|
|
118
|
-
animationDuration?: number
|
|
118
|
+
animationDuration?: number;
|
|
119
119
|
/**
|
|
120
120
|
* Aplica solamente para modales que tengan draggable=true.
|
|
121
121
|
*/
|
|
122
122
|
defaultPosition?: {
|
|
123
|
-
left?: string
|
|
124
|
-
right?: string
|
|
125
|
-
top?: string
|
|
126
|
-
bottom?: string
|
|
127
|
-
}
|
|
123
|
+
left?: string;
|
|
124
|
+
right?: string;
|
|
125
|
+
top?: string;
|
|
126
|
+
bottom?: string;
|
|
127
|
+
};
|
|
128
128
|
/**
|
|
129
129
|
* Si esta variable está en true, el modal se comportará más como una ventana
|
|
130
130
|
* que como un modal
|
|
131
131
|
*/
|
|
132
|
-
draggable?: boolean
|
|
133
|
-
dragBounded?: boolean
|
|
132
|
+
draggable?: boolean;
|
|
133
|
+
dragBounded?: boolean;
|
|
134
134
|
children?: React__default.ReactNode;
|
|
135
|
-
className?: string
|
|
136
|
-
id?: string
|
|
137
|
-
initialFocusConfiguration?: IOnFocusConfiguration
|
|
135
|
+
className?: string;
|
|
136
|
+
id?: string;
|
|
137
|
+
initialFocusConfiguration?: IOnFocusConfiguration;
|
|
138
138
|
/**
|
|
139
139
|
* Este retriever será pasado al método focus.on para realizar el foco en el
|
|
140
140
|
* elemento inicial del modal.
|
|
141
141
|
*
|
|
142
142
|
* @see focus
|
|
143
143
|
*/
|
|
144
|
-
initialFocusGetter?: (
|
|
144
|
+
initialFocusGetter?: (modalInnerRef: HTMLElement) => ReturnType<TFocusRetriever>;
|
|
145
145
|
/**
|
|
146
146
|
* Si se pasa un ref, el modal hará foco sobre el elemento una vez que haya
|
|
147
147
|
* abierto.
|
|
148
148
|
*/
|
|
149
|
-
initialFocusRef?: React__default.RefObject<unknown
|
|
149
|
+
initialFocusRef?: React__default.RefObject<unknown>;
|
|
150
150
|
/**
|
|
151
151
|
* Controla el estado del modal, indicando a la transición de apertura o
|
|
152
152
|
* cierre que debe comenzar, dependiendo de si cambia a true o false
|
|
153
153
|
* respectivamente.
|
|
154
154
|
*/
|
|
155
|
-
isOpen?: boolean
|
|
156
|
-
maxWidth?:
|
|
155
|
+
isOpen?: boolean;
|
|
156
|
+
maxWidth?: number | string;
|
|
157
157
|
/**
|
|
158
158
|
* Permite pasar un componente React que se mostrará a la derecha del título,
|
|
159
159
|
* con el fin de incorporar botones en el header del modal.
|
|
160
160
|
*/
|
|
161
161
|
NavBar?: React__default.ReactNode;
|
|
162
|
-
noFocus?: boolean
|
|
163
|
-
noHeader?: boolean
|
|
162
|
+
noFocus?: boolean;
|
|
163
|
+
noHeader?: boolean;
|
|
164
164
|
/**
|
|
165
165
|
* Permite definir un callback que será llamado solamente cuando el modal se
|
|
166
166
|
* cierre por medio del click en el overlay, al presionar escape o mediante
|
|
167
167
|
* el botón cerrar del header (La X).
|
|
168
168
|
*/
|
|
169
|
-
onClose?: (
|
|
169
|
+
onClose?: () => void;
|
|
170
170
|
/**
|
|
171
171
|
* Este método recibe el evento del mousedown utilizado para controllar el dragstart. Si el usuario devuelve false, el drag no será realizado.
|
|
172
172
|
*/
|
|
173
|
-
onDragStart?: (
|
|
173
|
+
onDragStart?: (ev: MouseEvent) => boolean;
|
|
174
174
|
/**
|
|
175
175
|
* Permite definir un callback que será llamado siempre que el modal se
|
|
176
176
|
* cierre, una vez que la animación haya terminado.
|
|
177
177
|
*/
|
|
178
|
-
onExited?: (
|
|
178
|
+
onExited?: () => unknown;
|
|
179
179
|
/**
|
|
180
180
|
* Al pasar un Portal, el modal se abrirá dentro de éste y no directamente en
|
|
181
181
|
* la posición actual dentro del árbol de componentes. Normalmente, este
|
|
@@ -186,19 +186,19 @@ declare const Modal: React__default.ForwardRefExoticComponent<{
|
|
|
186
186
|
*/
|
|
187
187
|
Portal?: React__default.FC<{
|
|
188
188
|
children: React__default.ReactNode;
|
|
189
|
-
}
|
|
189
|
+
}>;
|
|
190
190
|
/**
|
|
191
191
|
* Si es true, el modal será cerrado al presionar escape.
|
|
192
192
|
*/
|
|
193
|
-
shouldCloseOnEsc?: boolean
|
|
193
|
+
shouldCloseOnEsc?: boolean;
|
|
194
194
|
/**
|
|
195
195
|
* Si es true, el modal será cerrado al hacer clic en el overlay.
|
|
196
196
|
*/
|
|
197
|
-
shouldCloseOnOverlayClick?: boolean
|
|
198
|
-
size?: TModalSize
|
|
199
|
-
stretch?: boolean
|
|
200
|
-
title?: string
|
|
201
|
-
variant?: string
|
|
197
|
+
shouldCloseOnOverlayClick?: boolean;
|
|
198
|
+
size?: TModalSize;
|
|
199
|
+
stretch?: boolean;
|
|
200
|
+
title?: string;
|
|
201
|
+
variant?: string;
|
|
202
202
|
} & Pick<IDialogHeader, "hideCloseButton"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
203
203
|
|
|
204
204
|
type TOpenModal = Pick<TModal, 'NavBar' | 'Portal' | 'children' | 'className' | 'hideCloseButton' | 'initialFocusGetter' | 'initialFocusConfiguration' | 'maxWidth' | 'noHeader' | 'onExited' | 'shouldCloseOnEsc' | 'shouldCloseOnOverlayClick' | 'size' | 'stretch' | 'title' | 'variant' | 'draggable' | 'onClose' | 'onDragStart' | 'defaultPosition' | 'dragBounded'> & {
|
|
@@ -285,7 +285,7 @@ declare class ApiaUtilNotifications {
|
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
declare const TabsList: (({ arrowsBehavior }: {
|
|
288
|
-
arrowsBehavior?: "open" | "focus"
|
|
288
|
+
arrowsBehavior?: "open" | "focus";
|
|
289
289
|
}) => React__default.JSX.Element | null) & {
|
|
290
290
|
displayName: string;
|
|
291
291
|
};
|
|
@@ -428,13 +428,14 @@ type TTabsListState<TabType extends TTab> = {
|
|
|
428
428
|
|
|
429
429
|
declare const DefaultTabsLabelRenderer: TTabLabelRenderer;
|
|
430
430
|
|
|
431
|
-
declare const TabsContent: ((props: Omit<BoxProps,
|
|
431
|
+
declare const TabsContent: ((props: Omit<BoxProps, "children">) => React$1.JSX.Element | null) & {
|
|
432
432
|
displayName: string;
|
|
433
433
|
};
|
|
434
434
|
|
|
435
435
|
declare function useTabsContext(): TabsController<TTab> | null;
|
|
436
436
|
|
|
437
|
-
declare const
|
|
437
|
+
declare const NonForwardedTabs: ({ id, getController, initialTabs, orientation, initialState, ...props }: TabsControllerProps<TTab> & Omit<BoxProps, "id" | "as" | "role">, ref: React__default.ForwardedRef<HTMLDivElement>) => React__default.JSX.Element | null;
|
|
438
|
+
declare const Tabs: typeof NonForwardedTabs;
|
|
438
439
|
|
|
439
440
|
declare class ApiaUtilTabsController {
|
|
440
441
|
get currentTab(): Tab<TTab>;
|
|
@@ -647,9 +648,9 @@ declare class AutomaticTooltip {
|
|
|
647
648
|
#private;
|
|
648
649
|
private handler;
|
|
649
650
|
ref: (el: HTMLElement | null) => void;
|
|
650
|
-
constructor(tooltip: (Partial<TTooltip> & {
|
|
651
|
-
timeout?: number
|
|
652
|
-
}) | null | undefined, handler: ApiaUtilTooltips);
|
|
651
|
+
constructor(tooltip: ((Partial<TTooltip> & {
|
|
652
|
+
timeout?: number;
|
|
653
|
+
}) | null) | undefined, handler: ApiaUtilTooltips);
|
|
653
654
|
update: (tooltip: Partial<TTooltip>) => void;
|
|
654
655
|
}
|
|
655
656
|
|
|
@@ -816,6 +817,7 @@ type AutocompleteProps = {
|
|
|
816
817
|
* Por defecto es 100ms.
|
|
817
818
|
*/
|
|
818
819
|
searchDebounce?: number;
|
|
820
|
+
readOnly?: boolean;
|
|
819
821
|
} & AutocompleteBoxProps & Partial<Pick<AutocompleteState, 'disabled' | 'value'>>;
|
|
820
822
|
type AutocompleteBoxProps = Partial<{
|
|
821
823
|
className: string;
|
|
@@ -824,6 +826,7 @@ type AutocompleteBoxProps = Partial<{
|
|
|
824
826
|
}>;
|
|
825
827
|
type AutocompleteState = {
|
|
826
828
|
disabled: boolean;
|
|
829
|
+
readOnly: boolean;
|
|
827
830
|
focusedValue?: null | string;
|
|
828
831
|
loading: boolean;
|
|
829
832
|
showValue: string;
|
|
@@ -984,7 +987,7 @@ declare function useOtherTagButton(props?: Partial<{
|
|
|
984
987
|
|
|
985
988
|
declare const Captcha: ({ name, imageUrl, onChange, value, className, }: {
|
|
986
989
|
name: string;
|
|
987
|
-
className?: string
|
|
990
|
+
className?: string;
|
|
988
991
|
imageUrl: string;
|
|
989
992
|
onChange: React.ChangeEventHandler<HTMLInputElement>;
|
|
990
993
|
value: string;
|
|
@@ -1125,12 +1128,12 @@ type TFieldLabel = {
|
|
|
1125
1128
|
requiredMarkPosition?: 'before' | 'after';
|
|
1126
1129
|
} & BoxProps;
|
|
1127
1130
|
declare const FieldLabel: React$1.ForwardRefExoticComponent<{
|
|
1128
|
-
avoidSemicolon?: boolean
|
|
1131
|
+
avoidSemicolon?: boolean;
|
|
1129
1132
|
/**
|
|
1130
1133
|
* Permite mostrar un mensaje de error debajo del campo
|
|
1131
1134
|
*/
|
|
1132
|
-
error?: string
|
|
1133
|
-
hideRequiredMark?: boolean
|
|
1135
|
+
error?: string;
|
|
1136
|
+
hideRequiredMark?: boolean;
|
|
1134
1137
|
label: string;
|
|
1135
1138
|
/**
|
|
1136
1139
|
* La propiedad required se utiliza para mostrar el * de requerido.
|
|
@@ -1138,8 +1141,8 @@ declare const FieldLabel: React$1.ForwardRefExoticComponent<{
|
|
|
1138
1141
|
* @see requiredMarkPosition
|
|
1139
1142
|
* @see hideRequiredMark
|
|
1140
1143
|
*/
|
|
1141
|
-
required?: boolean
|
|
1142
|
-
requiredMarkPosition?: "
|
|
1144
|
+
required?: boolean;
|
|
1145
|
+
requiredMarkPosition?: "before" | "after";
|
|
1143
1146
|
} & BoxProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1144
1147
|
|
|
1145
1148
|
interface IAccordionItemButton {
|
|
@@ -1223,7 +1226,7 @@ declare class AccordionHandler {
|
|
|
1223
1226
|
useItemId: () => TId$1;
|
|
1224
1227
|
useItemStateSelector: <T>(selector: (props: TItemState$1) => T, comparator?: TSelectionComparator<T>) => T;
|
|
1225
1228
|
useItemStateUpdate: (cb: TItemStateListener) => void;
|
|
1226
|
-
usePropsSelector: <
|
|
1229
|
+
usePropsSelector: <T>(selector: (props: IAccordionProps) => T, comparator?: TSelectionComparator<T>) => T;
|
|
1227
1230
|
usePropsUpdate: (cb: TPropsListener) => void;
|
|
1228
1231
|
};
|
|
1229
1232
|
}
|
|
@@ -1384,7 +1387,7 @@ declare const ContainerWithHeader: ({ title, children, footerChildren, onClose,
|
|
|
1384
1387
|
children: ReactNode;
|
|
1385
1388
|
footerChildren?: ReactNode;
|
|
1386
1389
|
additionalButtons?: ReactNode;
|
|
1387
|
-
onClose?: (
|
|
1390
|
+
onClose?: () => void;
|
|
1388
1391
|
}) => React$1.JSX.Element;
|
|
1389
1392
|
|
|
1390
1393
|
interface ICollapsiblePanel {
|
|
@@ -1525,7 +1528,7 @@ interface IProgressBar {
|
|
|
1525
1528
|
declare const ProgressBar: FC<IProgressBar>;
|
|
1526
1529
|
|
|
1527
1530
|
declare const LoaderSpinner: ((props: {
|
|
1528
|
-
className?: string
|
|
1531
|
+
className?: string;
|
|
1529
1532
|
}) => React$1.JSX.Element) & {
|
|
1530
1533
|
displayName: string;
|
|
1531
1534
|
};
|
|
@@ -1640,7 +1643,7 @@ declare function useModal(configuration?: TUseModalConfiguration): {
|
|
|
1640
1643
|
show: () => void;
|
|
1641
1644
|
};
|
|
1642
1645
|
|
|
1643
|
-
declare const Confirm: ({ children, additionalButtons, additionalButtonsOnRight, cancelButtonText: cancelText, className, confirmButtonText: confirmText, confirmButtonVariant, contentRef, disabled, hideCancelButton, hideConfirmButton, isLoading, onCancel, onConfirm, variant, }: Omit<IConfirm,
|
|
1646
|
+
declare const Confirm: ({ children, additionalButtons, additionalButtonsOnRight, cancelButtonText: cancelText, className, confirmButtonText: confirmText, confirmButtonVariant, contentRef, disabled, hideCancelButton, hideConfirmButton, isLoading, onCancel, onConfirm, variant, }: Omit<IConfirm, "title">) => React$1.JSX.Element;
|
|
1644
1647
|
|
|
1645
1648
|
interface IDialogButtonBar {
|
|
1646
1649
|
children: React$1.ReactNode;
|
|
@@ -1671,13 +1674,13 @@ declare const AutoEllipsis: ({ children, findParent, overrideStyles, }: {
|
|
|
1671
1674
|
* para dar control sobre cuál es el elemento al que se le clonarán los
|
|
1672
1675
|
* estilos.
|
|
1673
1676
|
*/
|
|
1674
|
-
findParent?: (
|
|
1677
|
+
findParent?: (currentElement: HTMLElement) => HTMLElement;
|
|
1675
1678
|
/**
|
|
1676
1679
|
* Si se pasa overrideStyles, será invocado con el nodo actual de
|
|
1677
1680
|
* AutoEllipsis para tomar decisiones acerca de cuáles estilos serán
|
|
1678
1681
|
* aplicados.
|
|
1679
1682
|
*/
|
|
1680
|
-
overrideStyles?: (
|
|
1683
|
+
overrideStyles?: (currentElement: HTMLElement) => Partial<CSSStyleDeclaration>;
|
|
1681
1684
|
}) => React$1.JSX.Element;
|
|
1682
1685
|
|
|
1683
1686
|
interface IMakeResponsiveComponent<P extends Record<string, unknown>> {
|
|
@@ -1711,7 +1714,7 @@ interface IResponsiveComponent<P> extends FC<P> {
|
|
|
1711
1714
|
* pantalla sino del espacio donde se encuentra.
|
|
1712
1715
|
*/
|
|
1713
1716
|
declare const makeResponsiveComponent: <P extends Record<string, unknown>>({ breakPoints, Component, defaultBreakpoint, }: IMakeResponsiveComponent<P>) => IResponsiveComponent<P & {
|
|
1714
|
-
breakPoints?: number[]
|
|
1717
|
+
breakPoints?: number[];
|
|
1715
1718
|
}>;
|
|
1716
1719
|
|
|
1717
1720
|
/**
|
|
@@ -1848,10 +1851,11 @@ type TIconRenderer<P = Record<string, unknown>> = FunctionComponent<TIcon<P>>;
|
|
|
1848
1851
|
|
|
1849
1852
|
declare const DefaultIconRenderer: React$1.NamedExoticComponent<TIcon<Record<string, unknown>>>;
|
|
1850
1853
|
|
|
1851
|
-
declare const
|
|
1854
|
+
declare const IconsListNonForwarded: {
|
|
1852
1855
|
<P extends Record<string, unknown>>(props: TIconsList<P>, ref: ForwardedRef<HTMLDivElement>): React$1.JSX.Element;
|
|
1853
1856
|
displayName: string;
|
|
1854
1857
|
};
|
|
1858
|
+
declare const IconsList: typeof IconsListNonForwarded;
|
|
1855
1859
|
|
|
1856
1860
|
/**
|
|
1857
1861
|
* Permite importar un componente en forma dinámica con ruta relativa a
|
|
@@ -1927,7 +1931,7 @@ declare const Toolbar: ({ children, getController, }: {
|
|
|
1927
1931
|
* El controlador permite gestionar el estado de los distintos elementos de
|
|
1928
1932
|
* la toolbar
|
|
1929
1933
|
*/
|
|
1930
|
-
getController?: (
|
|
1934
|
+
getController?: (newController: ToolbarController) => unknown;
|
|
1931
1935
|
}) => React$1.JSX.Element;
|
|
1932
1936
|
|
|
1933
1937
|
type TSortableListItem = {
|
|
@@ -1939,39 +1943,39 @@ type TSortableListItem = {
|
|
|
1939
1943
|
declare const SortableListItem: React$1.MemoExoticComponent<({ boxProps, id, children }: TSortableListItem) => React$1.JSX.Element>;
|
|
1940
1944
|
|
|
1941
1945
|
declare const UnstyledSortableList: ({ boxProps, children, onSortChange, }: {
|
|
1942
|
-
boxProps?: BoxProps
|
|
1946
|
+
boxProps?: BoxProps;
|
|
1943
1947
|
children: ReactNode;
|
|
1944
|
-
onSortChange?: (
|
|
1948
|
+
onSortChange?: (items: ReactElement<TSortableListItem>[]) => unknown;
|
|
1945
1949
|
}) => React$1.JSX.Element;
|
|
1946
1950
|
declare const SortableList: ((props: {
|
|
1947
|
-
boxProps?: BoxProps
|
|
1951
|
+
boxProps?: BoxProps;
|
|
1948
1952
|
children: ReactNode;
|
|
1949
|
-
onSortChange?: (
|
|
1953
|
+
onSortChange?: (items: ReactElement<TSortableListItem>[]) => unknown;
|
|
1950
1954
|
}) => React$1.JSX.Element) & {
|
|
1951
1955
|
displayName: string;
|
|
1952
1956
|
};
|
|
1953
1957
|
|
|
1954
1958
|
declare const FileCard: React$1.ForwardRefExoticComponent<{
|
|
1955
1959
|
name: string;
|
|
1956
|
-
iconsSize?: "sm" | "md" | "lg" | "xl"
|
|
1957
|
-
additionalButtons?: TIconButton[]
|
|
1958
|
-
className?: string
|
|
1959
|
-
sx?: ThemeUIStyleObject
|
|
1960
|
-
width?: string
|
|
1961
|
-
handleClose?: (
|
|
1962
|
-
onDoubleClick?: (
|
|
1963
|
-
onClick?: (
|
|
1960
|
+
iconsSize?: "sm" | "md" | "lg" | "xl";
|
|
1961
|
+
additionalButtons?: TIconButton[];
|
|
1962
|
+
className?: string;
|
|
1963
|
+
sx?: ThemeUIStyleObject;
|
|
1964
|
+
width?: string;
|
|
1965
|
+
handleClose?: (f: string) => void;
|
|
1966
|
+
onDoubleClick?: () => void;
|
|
1967
|
+
onClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
1964
1968
|
} & React$1.RefAttributes<unknown>>;
|
|
1965
1969
|
|
|
1966
1970
|
declare const Dropzone: ({ sx, className, messageError, progress, defaultLabel, draggingLabel, onClick, onChange, }: {
|
|
1967
|
-
sx?: ThemeUIStyleObject
|
|
1968
|
-
className?: string
|
|
1969
|
-
messageError?: string
|
|
1970
|
-
progress?: number
|
|
1971
|
-
defaultLabel?: string
|
|
1972
|
-
draggingLabel?: string
|
|
1973
|
-
onClick?: (
|
|
1974
|
-
onChange?: (
|
|
1971
|
+
sx?: ThemeUIStyleObject;
|
|
1972
|
+
className?: string;
|
|
1973
|
+
messageError?: string;
|
|
1974
|
+
progress?: number;
|
|
1975
|
+
defaultLabel?: string;
|
|
1976
|
+
draggingLabel?: string;
|
|
1977
|
+
onClick?: (e: MouseEvent$1) => void;
|
|
1978
|
+
onChange?: (e: File[]) => any;
|
|
1975
1979
|
}) => React__default.JSX.Element;
|
|
1976
1980
|
|
|
1977
1981
|
declare class TableParameter extends Parameter<ITableParameterProps> {
|
|
@@ -2013,10 +2017,10 @@ declare class FilterDTO<T extends IFilterDTOState = IFilterDTOState> {
|
|
|
2013
2017
|
Component: (({ renderers, multipleInputBoxProps, }: {
|
|
2014
2018
|
renderers?: {
|
|
2015
2019
|
input?: FC<InputProps & {
|
|
2016
|
-
label?: string
|
|
2017
|
-
}
|
|
2018
|
-
}
|
|
2019
|
-
multipleInputBoxProps?: BoxProps
|
|
2020
|
+
label?: string;
|
|
2021
|
+
}>;
|
|
2022
|
+
};
|
|
2023
|
+
multipleInputBoxProps?: BoxProps;
|
|
2020
2024
|
}) => React$1.JSX.Element) & {
|
|
2021
2025
|
displayName: string;
|
|
2022
2026
|
};
|
|
@@ -2143,7 +2147,7 @@ declare class Parameter<T extends IParameter = IParameter> implements ParameterO
|
|
|
2143
2147
|
|
|
2144
2148
|
declare const ParameterRender: (({ index, omitLabel, parameter, }: {
|
|
2145
2149
|
index: number;
|
|
2146
|
-
omitLabel?: boolean
|
|
2150
|
+
omitLabel?: boolean;
|
|
2147
2151
|
parameter: Parameter;
|
|
2148
2152
|
}) => React$1.JSX.Element | null) & {
|
|
2149
2153
|
displayName: string;
|
|
@@ -2152,8 +2156,8 @@ declare const ParameterRender: (({ index, omitLabel, parameter, }: {
|
|
|
2152
2156
|
type ParametersMap = Record<string, ParameterObject>;
|
|
2153
2157
|
declare const Parameters: (({ label, ownerName, parameters, }: {
|
|
2154
2158
|
label?: ReactNode;
|
|
2155
|
-
ownerName?: string
|
|
2156
|
-
parameters?: ParametersMap
|
|
2159
|
+
ownerName?: string;
|
|
2160
|
+
parameters?: ParametersMap;
|
|
2157
2161
|
}) => React$1.JSX.Element | undefined) & {
|
|
2158
2162
|
displayName: string;
|
|
2159
2163
|
};
|
package/dist/index.js
CHANGED
|
@@ -3914,6 +3914,7 @@ class AutocompleteController {
|
|
|
3914
3914
|
constructor(properties) {
|
|
3915
3915
|
__publicField$f(this, "state", {
|
|
3916
3916
|
disabled: false,
|
|
3917
|
+
readOnly: false,
|
|
3917
3918
|
id: uniqueId$3("autocomplete"),
|
|
3918
3919
|
loading: false,
|
|
3919
3920
|
options: [],
|
|
@@ -4120,7 +4121,7 @@ class AutocompleteController {
|
|
|
4120
4121
|
}
|
|
4121
4122
|
}
|
|
4122
4123
|
async setValue(value) {
|
|
4123
|
-
if (this.state.disabled) {
|
|
4124
|
+
if (this.state.disabled || this.state.readOnly) {
|
|
4124
4125
|
return;
|
|
4125
4126
|
}
|
|
4126
4127
|
const selectedOption = this.state.options.find((c) => c.value === value);
|
|
@@ -4167,7 +4168,7 @@ const SearchBox = observer(() => {
|
|
|
4167
4168
|
Input,
|
|
4168
4169
|
{
|
|
4169
4170
|
ref: inputRef,
|
|
4170
|
-
className: `autocomplete__search ${handler.state.disabled ? "disabled" : ""}`,
|
|
4171
|
+
className: `autocomplete__search ${handler.state.disabled ? "disabled" : ""} ${handler.state.readOnly ? "readOnly" : ""}`,
|
|
4171
4172
|
onChange: (ev) => {
|
|
4172
4173
|
handler.search(ev.target.value);
|
|
4173
4174
|
},
|
|
@@ -6011,7 +6012,9 @@ const FileCard = forwardRef(
|
|
|
6011
6012
|
key: name,
|
|
6012
6013
|
className: `fileCard ${className ?? ""}`,
|
|
6013
6014
|
onDoubleClick,
|
|
6014
|
-
onClick
|
|
6015
|
+
onClick,
|
|
6016
|
+
title: name,
|
|
6017
|
+
tabIndex: 0
|
|
6015
6018
|
},
|
|
6016
6019
|
/* @__PURE__ */ jsxs(Box, { className: "fileCard__content", children: [
|
|
6017
6020
|
/* @__PURE__ */ jsx(FileIcon, { docName: name, iconSize: iconsSize }),
|
|
@@ -9583,12 +9586,14 @@ const ToolbarIconButton = ({
|
|
|
9583
9586
|
if (context.itemsState[id].toggled !== void 0) {
|
|
9584
9587
|
setInnerIsToggled(!!context.itemsState[id].toggled);
|
|
9585
9588
|
}
|
|
9586
|
-
} else
|
|
9589
|
+
} else {
|
|
9590
|
+
const o = context.itemsState[id];
|
|
9587
9591
|
context.itemsState[id] = {
|
|
9588
9592
|
disabled: isDisabled,
|
|
9589
9593
|
toggled: innerIsToggled,
|
|
9590
|
-
...
|
|
9594
|
+
...o
|
|
9591
9595
|
};
|
|
9596
|
+
}
|
|
9592
9597
|
});
|
|
9593
9598
|
return /* @__PURE__ */ jsx(
|
|
9594
9599
|
IconButton,
|