@m4l/components 9.80.1-beta-docs-autocomplete-async-with-add-mf-sync.1 → 9.81.0-beta-fix-reports-viewer-chart-tab-resize.0
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/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.d.ts +1 -1
- package/components/DynamicSort/subcomponents/PopoverSort/usePopoverSort.d.ts +1 -1
- package/components/MFLoader/helpers/projectMFHostRuntimeTools/projectMFHostRuntimeTools.d.ts.map +1 -1
- package/components/MFLoader/helpers/projectMFHostRuntimeTools/projectMFHostRuntimeTools.js +4 -9
- package/components/MFLoader/index.d.ts +1 -0
- package/components/MFLoader/index.d.ts.map +1 -1
- package/components/MFLoader/reportTypes.d.ts +19 -0
- package/components/MFLoader/reportTypes.d.ts.map +1 -0
- package/components/MFLoader/types.d.ts +3 -0
- package/components/MFLoader/types.d.ts.map +1 -1
- package/components/WindowBase/icons.d.ts +6 -0
- package/components/WindowBase/icons.d.ts.map +1 -1
- package/components/WindowBase/icons.js +20 -13
- package/components/extended/mui/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/components/extended/mui/Autocomplete/Autocomplete.js +54 -55
- package/components/extended/mui/Autocomplete/hooks/useAutocomplete/useAutocomplete.d.ts.map +1 -1
- package/components/extended/mui/Autocomplete/hooks/useAutocomplete/useAutocomplete.js +72 -81
- package/components/extended/mui/Autocomplete/types.d.ts +1 -1
- package/components/extended/mui/Autocomplete/types.d.ts.map +1 -1
- package/components/extended/mui/AutocompleteAsync/AutocompleteAsync.d.ts +9 -5
- package/components/extended/mui/AutocompleteAsync/AutocompleteAsync.d.ts.map +1 -1
- package/components/extended/mui/AutocompleteAsync/AutocompleteAsync.js +56 -87
- package/components/extended/mui/AutocompleteAsync/constants.d.ts +1 -4
- package/components/extended/mui/AutocompleteAsync/constants.d.ts.map +1 -1
- package/components/extended/mui/AutocompleteAsync/constants.js +12 -24
- package/components/extended/mui/AutocompleteAsync/hooks/useFetchOptions.d.ts.map +1 -1
- package/components/extended/mui/AutocompleteAsync/hooks/useFetchOptions.js +46 -47
- package/components/extended/mui/AutocompleteAsync/index.d.ts +1 -1
- package/components/extended/mui/AutocompleteAsync/index.d.ts.map +1 -1
- package/components/extended/mui/AutocompleteAsync/reducer/AutocompleteAsyncReducer.d.ts.map +1 -1
- package/components/extended/mui/AutocompleteAsync/reducer/AutocompleteAsyncReducer.js +28 -50
- package/components/extended/mui/AutocompleteAsync/types.d.ts +0 -47
- package/components/extended/mui/AutocompleteAsync/types.d.ts.map +1 -1
- package/components/extended/mui/AutocompleteAsync/types.js +2 -4
- package/components/extended/mui/MenuItem/MenuItem.d.ts.map +1 -1
- package/components/extended/mui/MenuItem/MenuItem.js +15 -13
- package/components/hook-form/RHFAutocompleteAsync/RHFAutocompleteAsync.d.ts +1 -1
- package/components/hook-form/RHFAutocompleteAsync/index.d.ts +0 -1
- package/components/hook-form/RHFAutocompleteAsync/index.d.ts.map +1 -1
- package/components/hook-form/index.d.ts +0 -1
- package/components/hook-form/index.d.ts.map +1 -1
- package/package.json +7 -7
- package/components/extended/mui/AutocompleteAsync/AutocompleteAddButton.d.ts +0 -4
- package/components/extended/mui/AutocompleteAsync/AutocompleteAddButton.d.ts.map +0 -1
- package/components/extended/mui/AutocompleteAsync/AutocompleteAddButton.js +0 -23
- package/components/extended/mui/AutocompleteAsync/hooks/useAutocompleteAdd.d.ts +0 -9
- package/components/extended/mui/AutocompleteAsync/hooks/useAutocompleteAdd.d.ts.map +0 -1
- package/components/extended/mui/AutocompleteAsync/hooks/useAutocompleteAdd.js +0 -97
- package/components/extended/mui/AutocompleteAsync/slots/addStyled.d.ts +0 -6
- package/components/extended/mui/AutocompleteAsync/slots/addStyled.d.ts.map +0 -1
- package/components/extended/mui/AutocompleteAsync/slots/addStyled.js +0 -19
- package/components/extended/mui/AutocompleteAsync/tests/add/constants.d.ts +0 -5
- package/components/extended/mui/AutocompleteAsync/tests/add/constants.d.ts.map +0 -1
- package/components/extended/mui/AutocompleteAsync/tests/add/helpers.d.ts +0 -8
- package/components/extended/mui/AutocompleteAsync/tests/add/helpers.d.ts.map +0 -1
- package/components/extended/mui/AutocompleteAsync/tests/add/types.d.ts +0 -20
- package/components/extended/mui/AutocompleteAsync/tests/add/types.d.ts.map +0 -1
- package/components/extended/mui/AutocompleteAsync/tests/support/ControlledAsyncField.d.ts +0 -4
- package/components/extended/mui/AutocompleteAsync/tests/support/ControlledAsyncField.d.ts.map +0 -1
- package/components/extended/mui/AutocompleteAsync/tests/support/constants.d.ts +0 -8
- package/components/extended/mui/AutocompleteAsync/tests/support/constants.d.ts.map +0 -1
- package/components/extended/mui/AutocompleteAsync/tests/support/createDeferred.d.ts +0 -4
- package/components/extended/mui/AutocompleteAsync/tests/support/createDeferred.d.ts.map +0 -1
- package/components/extended/mui/AutocompleteAsync/tests/support/mockAutocompleteAnchor.d.ts +0 -3
- package/components/extended/mui/AutocompleteAsync/tests/support/mockAutocompleteAnchor.d.ts.map +0 -1
- package/components/extended/mui/AutocompleteAsync/tests/support/types.d.ts +0 -21
- package/components/extended/mui/AutocompleteAsync/tests/support/types.d.ts.map +0 -1
- package/components/hook-form/RHFAutocompleteAsync/tests/addConstants.d.ts +0 -3
- package/components/hook-form/RHFAutocompleteAsync/tests/addConstants.d.ts.map +0 -1
- package/components/hook-form/RHFAutocompleteAsync/tests/addHelpers.d.ts +0 -4
- package/components/hook-form/RHFAutocompleteAsync/tests/addHelpers.d.ts.map +0 -1
- package/components/hook-form/RHFAutocompleteAsync/tests/addTypes.d.ts +0 -12
- package/components/hook-form/RHFAutocompleteAsync/tests/addTypes.d.ts.map +0 -1
|
@@ -17,7 +17,7 @@ declare function usePopoverFilter(): {
|
|
|
17
17
|
filterFormValue: FormFilterValue;
|
|
18
18
|
formFilter: FormFilterFieldApplied;
|
|
19
19
|
popupValidationSchema: import('../../..').ValidationSchema<import('../../types').FormFilterValueBoolean> | undefined;
|
|
20
|
-
statusLoad: "initial" | "
|
|
20
|
+
statusLoad: "initial" | "ready" | "reload_values_provider";
|
|
21
21
|
};
|
|
22
22
|
export default usePopoverFilter;
|
|
23
23
|
//# sourceMappingURL=usePopoverFilter.d.ts.map
|
|
@@ -17,7 +17,7 @@ declare function usePopoverSort(): {
|
|
|
17
17
|
sortFormValue: import('../../types').FormSortValueBase;
|
|
18
18
|
formSort: FormSortFieldApplied;
|
|
19
19
|
popupValidationSchema: import('../../..').ValidationSchema<import('../../types').FormSortValueBase> | undefined;
|
|
20
|
-
statusLoad: "initial" | "
|
|
20
|
+
statusLoad: "initial" | "ready" | "reload_values_provider";
|
|
21
21
|
};
|
|
22
22
|
export default usePopoverSort;
|
|
23
23
|
//# sourceMappingURL=usePopoverSort.d.ts.map
|
package/components/MFLoader/helpers/projectMFHostRuntimeTools/projectMFHostRuntimeTools.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projectMFHostRuntimeTools.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/MFLoader/helpers/projectMFHostRuntimeTools/projectMFHostRuntimeTools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAErE;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,WAAW,CAAC,EAAE,aAAa,GAC1B,kBAAkB,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"projectMFHostRuntimeTools.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/MFLoader/helpers/projectMFHostRuntimeTools/projectMFHostRuntimeTools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAErE;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,WAAW,CAAC,EAAE,aAAa,GAC1B,kBAAkB,GAAG,SAAS,CAiBhC"}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
function r
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
return {
|
|
5
|
-
realtime: {
|
|
6
|
-
producerTools: o
|
|
7
|
-
}
|
|
8
|
-
};
|
|
1
|
+
function t(r) {
|
|
2
|
+
const e = r?.realtime?.producerTools, o = {};
|
|
3
|
+
return typeof e?.subscribe == "function" && typeof e?.unsubscribe == "function" && (o.realtime = { producerTools: e }), typeof r?.reports?.observe == "function" && (o.reports = r.reports), o.realtime || o.reports ? o : void 0;
|
|
9
4
|
}
|
|
10
5
|
export {
|
|
11
|
-
|
|
6
|
+
t as projectMFHostRuntimeTools
|
|
12
7
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { MFLoader } from './MFLoader';
|
|
2
2
|
export { getMFLoaderComponentsDictionary } from './dictionary';
|
|
3
3
|
export { projectMFHostRuntimeTools } from './helpers/projectMFHostRuntimeTools';
|
|
4
|
+
export type { MFReportRecord, MFReportObservation, MFReportWatchOptions, MFReportTools } from './reportTypes';
|
|
4
5
|
export type { MFBaseProps, MFHostRuntime, MFHostRuntimeTools, MFLegacyRenderOptions, MFRealtimeProducerToolsContract, MFLoaderProps, MFRenderContract, MFRenderEnvironment, MFRenderV1Function, MFRenderV2Function, } from './types';
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFLoader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,+BAA+B,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAChF,YAAY,EACV,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,qBAAqB,EACrB,+BAA+B,EAC/B,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFLoader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,+BAA+B,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAChF,YAAY,EAAE,cAAc,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9G,YAAY,EACV,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,qBAAqB,EACrB,+BAA+B,EAC/B,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** Minimal report status data passed through the host capability boundary. */
|
|
2
|
+
export interface MFReportRecord {
|
|
3
|
+
uuid: string;
|
|
4
|
+
[key: string]: unknown;
|
|
5
|
+
}
|
|
6
|
+
export interface MFReportObservation {
|
|
7
|
+
state: 'loading' | 'pending' | 'ready' | 'failed' | 'unavailable' | 'timeout';
|
|
8
|
+
percentage: number | null;
|
|
9
|
+
report?: MFReportRecord;
|
|
10
|
+
}
|
|
11
|
+
export interface MFReportWatchOptions {
|
|
12
|
+
uuid: string;
|
|
13
|
+
format: 'raw' | 'xls' | 'csv' | 'pdf' | 'json' | 'kml';
|
|
14
|
+
}
|
|
15
|
+
/** Host-owned monitoring; the MF receives observations, never its own polling timer. */
|
|
16
|
+
export interface MFReportTools {
|
|
17
|
+
observe: (options: MFReportWatchOptions, listener: (value: MFReportObservation) => void) => () => void;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=reportTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reportTypes.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFLoader/reportTypes.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,aAAa,GAAG,SAAS,CAAC;IAC9E,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,CAAC;CACxD;AAED,wFAAwF;AACxF,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,CAAC,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,KAAK,MAAM,IAAI,CAAC;CACxG"}
|
|
@@ -8,6 +8,7 @@ import { WebTelemetryContext, MFObservabilityService } from '../../../../../out-
|
|
|
8
8
|
import { M4LOverridesStyleRules } from '../../@types/augmentations';
|
|
9
9
|
import { MF_LOADER_KEY_COMPONENT } from './constants';
|
|
10
10
|
import { MFLoaderSlots } from './slots/MFLoaderEnum';
|
|
11
|
+
import { MFReportTools } from './reportTypes';
|
|
11
12
|
declare global {
|
|
12
13
|
interface Window {
|
|
13
14
|
[key: string]: unknown;
|
|
@@ -90,6 +91,8 @@ export interface MFHostRealtimeCapabilities {
|
|
|
90
91
|
* Herramientas mínimas orientadas al MF proyectadas desde un runtime más rico propiedad del shell.
|
|
91
92
|
*/
|
|
92
93
|
export interface MFHostRuntimeTools {
|
|
94
|
+
/** Host-owned report monitoring. / Seguimiento de reportes propiedad del host. */
|
|
95
|
+
reports?: MFReportTools;
|
|
93
96
|
/**
|
|
94
97
|
* Known realtime capabilities shared by the host or mini-host.
|
|
95
98
|
* Capacidades realtime conocidas compartidas por el host o mini-host.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFLoader/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AACzF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACd,eAAe,EACf,aAAa,EACb,eAAe,EAChB,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,EACV,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFLoader/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AACzF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACd,eAAe,EACf,aAAa,EACb,eAAe,EAChB,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,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AU,EACzB,SAAS,EAAE,aAAa,EACxB,cAAc,EAAE,cAAc,EAC9B,SAAS,EAAE,UAAU,EACrB,cAAc,EAAE,cAAc,EAC9B,WAAW,EAAE,aAAa,EAC1B,OAAO,EAAE,qBAAqB,KAC3B,IAAI,CAAC;AAEV;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;AAE9D;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,CACrC,QAAQ,EAAE,MAAM,EAChB,eAAe,EAAE,MAAM,KACpB,mBAAmB,GAAG;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,KAAK,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
|
@@ -8,6 +8,9 @@ export declare const WINDOW_BASE_ICON_IDS: {
|
|
|
8
8
|
readonly SPLIT_HORIZONTAL: "m4l:layout:split-horizontal";
|
|
9
9
|
readonly NO_SPLIT: "m4l:layout:no-split";
|
|
10
10
|
readonly FILE_FOLDER_VIEW: "m4l:file-folder:view";
|
|
11
|
+
readonly DOWNLOAD: "m4l:actions:download";
|
|
12
|
+
readonly FILE_XLSX: "m4l:file:xlsx";
|
|
13
|
+
readonly FILE_PDF: "m4l:file:pdf";
|
|
11
14
|
};
|
|
12
15
|
export declare const WINDOW_BASE_ICON_COMPONENTS: {
|
|
13
16
|
readonly [ICONS.CLOSE]: import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -17,5 +20,8 @@ export declare const WINDOW_BASE_ICON_COMPONENTS: {
|
|
|
17
20
|
readonly "m4l:layout:split-horizontal": import("@emotion/react/jsx-runtime").JSX.Element;
|
|
18
21
|
readonly "m4l:layout:no-split": import("@emotion/react/jsx-runtime").JSX.Element;
|
|
19
22
|
readonly "m4l:file-folder:view": import("@emotion/react/jsx-runtime").JSX.Element;
|
|
23
|
+
readonly "m4l:actions:download": import("@emotion/react/jsx-runtime").JSX.Element;
|
|
24
|
+
readonly "m4l:file:xlsx": import("@emotion/react/jsx-runtime").JSX.Element;
|
|
25
|
+
readonly "m4l:file:pdf": import("@emotion/react/jsx-runtime").JSX.Element;
|
|
20
26
|
};
|
|
21
27
|
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/WindowBase/icons.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/WindowBase/icons.tsx"],"names":[],"mappings":"AAkBA,eAAO,MAAM,KAAK;;;;CAIjB,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;CAQvB,CAAC;AAEX,eAAO,MAAM,2BAA2B;IACtC,SAAA,CAAC,KAAK,CAAC,KAAK,CAAC,mDAA+C;IAC5D,SAAA,CAAC,KAAK,CAAC,OAAO,CAAC,mDAAiD;IAChE,SAAA,CAAC,KAAK,CAAC,aAAa,CAAC,mDAA+C;;;;;;;;CAS5D,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as l } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { FilePdf as e, FileXlsx as r, ActionsDownloadOutlined as O, FileFolderViewOutlined as n, LayoutFullOutlined as I, LayoutSplitHorizontalOutlined as L, LayoutSplitVerticalOutlined as s, MenuMoreHorizontalOutlined as _, DevDevelopmentBranchOutlined as E, ActionsCloseSmBoldOutlined as c } from "@m4l/icons";
|
|
3
3
|
import { Icon as o } from "@m4l/base";
|
|
4
|
-
const
|
|
4
|
+
const i = {
|
|
5
5
|
CLOSE: "header_close.svg",
|
|
6
6
|
VERSION: "branch.svg",
|
|
7
7
|
MORE_VERTICAL: "header_menu_options.svg"
|
|
@@ -9,18 +9,25 @@ const e = {
|
|
|
9
9
|
SPLIT_VERTICAL: "m4l:layout:split-vertical",
|
|
10
10
|
SPLIT_HORIZONTAL: "m4l:layout:split-horizontal",
|
|
11
11
|
NO_SPLIT: "m4l:layout:no-split",
|
|
12
|
-
FILE_FOLDER_VIEW: "m4l:file-folder:view"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
[
|
|
18
|
-
[
|
|
19
|
-
[
|
|
20
|
-
[t.
|
|
12
|
+
FILE_FOLDER_VIEW: "m4l:file-folder:view",
|
|
13
|
+
DOWNLOAD: "m4l:actions:download",
|
|
14
|
+
FILE_XLSX: "m4l:file:xlsx",
|
|
15
|
+
FILE_PDF: "m4l:file:pdf"
|
|
16
|
+
}, d = {
|
|
17
|
+
[i.CLOSE]: /* @__PURE__ */ l(o, { src: /* @__PURE__ */ l(c, {}) }),
|
|
18
|
+
[i.VERSION]: /* @__PURE__ */ l(o, { src: /* @__PURE__ */ l(E, {}) }),
|
|
19
|
+
[i.MORE_VERTICAL]: /* @__PURE__ */ l(o, { src: /* @__PURE__ */ l(_, {}) }),
|
|
20
|
+
[t.SPLIT_VERTICAL]: /* @__PURE__ */ l(o, { src: /* @__PURE__ */ l(s, {}) }),
|
|
21
|
+
[t.SPLIT_HORIZONTAL]: /* @__PURE__ */ l(o, { src: /* @__PURE__ */ l(L, {}) }),
|
|
22
|
+
[t.NO_SPLIT]: /* @__PURE__ */ l(o, { src: /* @__PURE__ */ l(I, {}) }),
|
|
23
|
+
[t.FILE_FOLDER_VIEW]: /* @__PURE__ */ l(o, { src: /* @__PURE__ */ l(n, {}) }),
|
|
24
|
+
[t.DOWNLOAD]: /* @__PURE__ */ l(o, { src: /* @__PURE__ */ l(O, {}) }),
|
|
25
|
+
// Original-color Icons keep the file artwork while inheriting MenuItem's icon sizing.
|
|
26
|
+
[t.FILE_XLSX]: /* @__PURE__ */ l(o, { src: /* @__PURE__ */ l(r, {}), originalColor: !0 }),
|
|
27
|
+
[t.FILE_PDF]: /* @__PURE__ */ l(o, { src: /* @__PURE__ */ l(e, {}), originalColor: !0 })
|
|
21
28
|
};
|
|
22
29
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
30
|
+
i as ICONS,
|
|
31
|
+
d as WINDOW_BASE_ICON_COMPONENTS,
|
|
25
32
|
t as WINDOW_BASE_ICON_IDS
|
|
26
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/mui/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,GAAG,EAEJ,MAAM,OAAO,CAAC;AAKf,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/mui/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,GAAG,EAEJ,MAAM,OAAO,CAAC;AAKf,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAoJ5C,eAAO,MAAM,YAAY,EAAwC,CAAC,CAAC,EAAE,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,SAAS,EACnH,KAAK,EAAE,iBAAiB,CAAC,CAAC,EAAE,QAAQ,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,GAAG,mBAAmB,CAAC,CAAA;CAAE,KAC1F,GAAG,CAAC,OAAO,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { useAutocomplete as
|
|
4
|
-
import { AUTOCOMPLETE_CLASSES as
|
|
5
|
-
import
|
|
6
|
-
import { PopperComponent as
|
|
7
|
-
import { PaperComponent as
|
|
8
|
-
import { SkeletonAutocompleteStyled as
|
|
9
|
-
import { NoOptionsText as
|
|
10
|
-
import { LoadingText as
|
|
11
|
-
function
|
|
2
|
+
import { forwardRef as K, useCallback as i } from "react";
|
|
3
|
+
import { useAutocomplete as j } from "./hooks/useAutocomplete/useAutocomplete.js";
|
|
4
|
+
import { AUTOCOMPLETE_CLASSES as B } from "./constants.js";
|
|
5
|
+
import U from "clsx";
|
|
6
|
+
import { PopperComponent as _ } from "./subcomponents/PopperComponent/PopperComponent.js";
|
|
7
|
+
import { PaperComponent as v } from "./subcomponents/PaperComponent/PaperComponent.js";
|
|
8
|
+
import { SkeletonAutocompleteStyled as G, AutocompleteRootStyled as H } from "./slots/AutocompleteSlots.js";
|
|
9
|
+
import { NoOptionsText as J } from "./subcomponents/NoOptionsText/NoOptionsText.js";
|
|
10
|
+
import { LoadingText as Q } from "./subcomponents/LoadingText/LoadingText.js";
|
|
11
|
+
function X(l, d) {
|
|
12
12
|
const {
|
|
13
13
|
options: f,
|
|
14
14
|
disabled: C,
|
|
@@ -19,88 +19,87 @@ function Y(l, d) {
|
|
|
19
19
|
className: O,
|
|
20
20
|
menuMinWidth: h,
|
|
21
21
|
minWidth: g,
|
|
22
|
-
htmlFor: P
|
|
23
|
-
id: S
|
|
22
|
+
htmlFor: P
|
|
24
23
|
} = l, {
|
|
25
24
|
// useAutocomplete values
|
|
26
25
|
ownerState: t,
|
|
27
|
-
isSkeleton:
|
|
28
|
-
memoizedRenderOption:
|
|
29
|
-
memoizedRenderInput:
|
|
26
|
+
isSkeleton: S,
|
|
27
|
+
memoizedRenderOption: T,
|
|
28
|
+
memoizedRenderInput: V,
|
|
30
29
|
// useValuesAndHandlers values
|
|
31
|
-
open:
|
|
32
|
-
selectedValue:
|
|
33
|
-
inputValue:
|
|
34
|
-
isOptionEqualToValueLocal:
|
|
35
|
-
handleChange:
|
|
36
|
-
handleInputChange:
|
|
37
|
-
onCloseLocal:
|
|
38
|
-
onOpenLocal:
|
|
30
|
+
open: w,
|
|
31
|
+
selectedValue: x,
|
|
32
|
+
inputValue: A,
|
|
33
|
+
isOptionEqualToValueLocal: z,
|
|
34
|
+
handleChange: I,
|
|
35
|
+
handleInputChange: y,
|
|
36
|
+
onCloseLocal: E,
|
|
37
|
+
onOpenLocal: M,
|
|
39
38
|
getOptionLabelLocal: n,
|
|
40
|
-
checkKeyDown:
|
|
39
|
+
checkKeyDown: R,
|
|
41
40
|
scrollPositionOptionsRef: s
|
|
42
|
-
} =
|
|
43
|
-
|
|
41
|
+
} = j(l), u = h ?? g, k = i((e) => /* @__PURE__ */ o(
|
|
42
|
+
_,
|
|
44
43
|
{
|
|
45
44
|
...e,
|
|
46
45
|
currentSize: t.size,
|
|
47
46
|
menuMinWidth: u
|
|
48
47
|
}
|
|
49
|
-
), [t.size, u]),
|
|
50
|
-
|
|
48
|
+
), [t.size, u]), W = i((e) => /* @__PURE__ */ o(
|
|
49
|
+
v,
|
|
51
50
|
{
|
|
52
51
|
...e,
|
|
53
52
|
scrollPositionOptionsRef: s
|
|
54
53
|
}
|
|
55
|
-
), [s]),
|
|
54
|
+
), [s]), b = i((e, D) => {
|
|
56
55
|
if (p)
|
|
57
56
|
return e;
|
|
58
|
-
const r =
|
|
57
|
+
const r = D.inputValue.trim().toLowerCase();
|
|
59
58
|
return r ? e.filter((c) => {
|
|
60
|
-
const
|
|
61
|
-
return
|
|
59
|
+
const N = c, q = n(c).toLowerCase(), F = a?.(N)?.toLowerCase() ?? "";
|
|
60
|
+
return q.includes(r) || F.includes(r);
|
|
62
61
|
}) : e;
|
|
63
62
|
}, [a, n, p]);
|
|
64
|
-
return
|
|
65
|
-
|
|
63
|
+
return S ? /* @__PURE__ */ o(
|
|
64
|
+
G,
|
|
66
65
|
{
|
|
67
66
|
ownerState: t
|
|
68
67
|
}
|
|
69
68
|
) : /* @__PURE__ */ o(
|
|
70
|
-
|
|
69
|
+
H,
|
|
71
70
|
{
|
|
72
71
|
ownerState: t,
|
|
73
|
-
id: P
|
|
72
|
+
id: P,
|
|
74
73
|
multiple: m,
|
|
75
|
-
onKeyDown:
|
|
74
|
+
onKeyDown: R,
|
|
76
75
|
ref: d,
|
|
77
76
|
forcePopupIcon: !1,
|
|
78
|
-
className:
|
|
77
|
+
className: U(O, m && B.multiple),
|
|
79
78
|
autoSelect: !1,
|
|
80
79
|
options: f,
|
|
81
80
|
getOptionLabel: n,
|
|
82
81
|
clearOnBlur: !1,
|
|
83
|
-
PopperComponent:
|
|
84
|
-
PaperComponent:
|
|
85
|
-
isOptionEqualToValue:
|
|
86
|
-
value:
|
|
87
|
-
inputValue:
|
|
88
|
-
onOpen:
|
|
89
|
-
onClose:
|
|
90
|
-
open:
|
|
91
|
-
onInputChange:
|
|
92
|
-
onChange:
|
|
82
|
+
PopperComponent: k,
|
|
83
|
+
PaperComponent: W,
|
|
84
|
+
isOptionEqualToValue: z,
|
|
85
|
+
value: x,
|
|
86
|
+
inputValue: A,
|
|
87
|
+
onOpen: M,
|
|
88
|
+
onClose: E,
|
|
89
|
+
open: w,
|
|
90
|
+
onInputChange: y,
|
|
91
|
+
onChange: I,
|
|
93
92
|
loading: L,
|
|
94
|
-
loadingText: /* @__PURE__ */ o(
|
|
93
|
+
loadingText: /* @__PURE__ */ o(Q, {}),
|
|
95
94
|
disabled: C,
|
|
96
|
-
noOptionsText: /* @__PURE__ */ o(
|
|
97
|
-
filterOptions:
|
|
98
|
-
renderOption:
|
|
99
|
-
renderInput:
|
|
95
|
+
noOptionsText: /* @__PURE__ */ o(J, {}),
|
|
96
|
+
filterOptions: b,
|
|
97
|
+
renderOption: T,
|
|
98
|
+
renderInput: V
|
|
100
99
|
}
|
|
101
100
|
);
|
|
102
101
|
}
|
|
103
|
-
const
|
|
102
|
+
const pe = K(X);
|
|
104
103
|
export {
|
|
105
|
-
|
|
104
|
+
pe as Autocomplete
|
|
106
105
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAutocomplete.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/components/src/components/extended/mui/Autocomplete/hooks/useAutocomplete/useAutocomplete.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAUxE;;GAEG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,QAAQ,SAAS,OAAO,GAAG,SAAS,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAC,EAAE,QAAQ,CAAC;;;;
|
|
1
|
+
{"version":3,"file":"useAutocomplete.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/components/src/components/extended/mui/Autocomplete/hooks/useAutocomplete/useAutocomplete.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAUxE;;GAEG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,QAAQ,SAAS,OAAO,GAAG,SAAS,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAC,EAAE,QAAQ,CAAC;;;;wCA0FrD,GAAG,UAAU,GAAG;kCA4BtB,GAAG;;;;;;;;;;;;;;;;EA6ErD"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useModuleSkeleton as
|
|
3
|
-
import { useValuesAndHandlers as
|
|
4
|
-
import { useComponentSize as
|
|
5
|
-
import { useMemo as
|
|
6
|
-
import { useMultipleChips as
|
|
7
|
-
import { useEndAdornments as
|
|
8
|
-
import { renderOption as
|
|
9
|
-
import { RenderInputStyled as
|
|
10
|
-
function
|
|
1
|
+
import { jsx as G } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useModuleSkeleton as J } from "@m4l/core";
|
|
3
|
+
import { useValuesAndHandlers as Q } from "../useValuesAndHandlers.js";
|
|
4
|
+
import { useComponentSize as U } from "../../../../../../hooks/useComponentSize/index.js";
|
|
5
|
+
import { useMemo as X, useCallback as V } from "react";
|
|
6
|
+
import { useMultipleChips as Y } from "../useMultipleChips.js";
|
|
7
|
+
import { useEndAdornments as Z } from "../useEndAdornments.js";
|
|
8
|
+
import { renderOption as $ } from "../../subcomponents/renderOptions/index.js";
|
|
9
|
+
import { RenderInputStyled as ee } from "../../slots/AutocompleteSlots.js";
|
|
10
|
+
function me(m) {
|
|
11
11
|
const {
|
|
12
12
|
size: c,
|
|
13
13
|
variant: i,
|
|
@@ -15,92 +15,89 @@ function Ae(m) {
|
|
|
15
15
|
multiple: o,
|
|
16
16
|
error: u,
|
|
17
17
|
readOnly: r,
|
|
18
|
-
startAdornment:
|
|
19
|
-
endAdornment:
|
|
18
|
+
startAdornment: j,
|
|
19
|
+
endAdornment: N,
|
|
20
20
|
getOptionStartAdornment: h,
|
|
21
|
-
getOptionEndAdornment:
|
|
21
|
+
getOptionEndAdornment: d,
|
|
22
22
|
getOptionDescription: A,
|
|
23
|
-
loading:
|
|
24
|
-
refresh:
|
|
25
|
-
placeholder: P
|
|
26
|
-
inputRef: g,
|
|
27
|
-
name: z,
|
|
28
|
-
onBlur: I
|
|
23
|
+
loading: v,
|
|
24
|
+
refresh: B,
|
|
25
|
+
placeholder: P
|
|
29
26
|
} = m, {
|
|
30
|
-
open:
|
|
27
|
+
open: g,
|
|
31
28
|
selectedValue: e,
|
|
32
|
-
inputValue:
|
|
33
|
-
isOptionEqualToValueLocal:
|
|
34
|
-
handleDelete:
|
|
35
|
-
handleRefresh:
|
|
36
|
-
handleChange:
|
|
37
|
-
handleInputChange:
|
|
38
|
-
onCloseLocal:
|
|
39
|
-
onOpenLocal:
|
|
29
|
+
inputValue: D,
|
|
30
|
+
isOptionEqualToValueLocal: p,
|
|
31
|
+
handleDelete: z,
|
|
32
|
+
handleRefresh: I,
|
|
33
|
+
handleChange: E,
|
|
34
|
+
handleInputChange: M,
|
|
35
|
+
onCloseLocal: w,
|
|
36
|
+
onOpenLocal: b,
|
|
40
37
|
getOptionLabelLocal: l,
|
|
41
|
-
checkKeyDown:
|
|
42
|
-
scrollPositionOptionsRef:
|
|
43
|
-
} =
|
|
38
|
+
checkKeyDown: x,
|
|
39
|
+
scrollPositionOptionsRef: _
|
|
40
|
+
} = Q(m), { currentSize: s } = U(c), q = J(), L = !!m.startAdornment, k = !!(o && Array.isArray(e) && e.length > 0), R = Array.isArray(e) ? e.length > 0 : e != null, a = X(() => ({
|
|
44
41
|
size: s,
|
|
45
42
|
variant: i,
|
|
46
43
|
disabled: t,
|
|
47
44
|
multiple: !!o,
|
|
48
45
|
error: u,
|
|
49
46
|
readOnly: r,
|
|
50
|
-
startAdornment:
|
|
51
|
-
hasChips:
|
|
52
|
-
hasValue:
|
|
53
|
-
}), [s, i, t, o, u, r,
|
|
47
|
+
startAdornment: L,
|
|
48
|
+
hasChips: k,
|
|
49
|
+
hasValue: R
|
|
50
|
+
}), [s, i, t, o, u, r, L, k, R]), f = Y({
|
|
54
51
|
selectedValue: e,
|
|
55
52
|
multiple: o,
|
|
56
53
|
adjustedSize: s,
|
|
57
54
|
getOptionLabelLocal: l,
|
|
58
55
|
ownerState: a,
|
|
59
|
-
handleDelete:
|
|
56
|
+
handleDelete: z,
|
|
60
57
|
disabled: t,
|
|
61
58
|
readOnly: r,
|
|
62
|
-
startAdornment:
|
|
59
|
+
startAdornment: j,
|
|
63
60
|
getOptionStartAdornment: h,
|
|
64
|
-
getOptionEndAdornment:
|
|
61
|
+
getOptionEndAdornment: d,
|
|
65
62
|
getOptionDescription: A
|
|
66
|
-
}), C =
|
|
67
|
-
loading:
|
|
63
|
+
}), C = Z({
|
|
64
|
+
loading: v,
|
|
68
65
|
adjustedSize: s,
|
|
69
66
|
ownerState: a,
|
|
70
|
-
refresh:
|
|
71
|
-
handleRefresh:
|
|
67
|
+
refresh: B,
|
|
68
|
+
handleRefresh: I,
|
|
72
69
|
disabled: t,
|
|
73
|
-
onOpenLocal:
|
|
74
|
-
open:
|
|
70
|
+
onOpenLocal: b,
|
|
71
|
+
open: g,
|
|
75
72
|
readOnly: r,
|
|
76
73
|
multiple: o,
|
|
77
74
|
selectedValue: e,
|
|
78
75
|
getOptionLabelLocal: l,
|
|
79
|
-
getOptionEndAdornment:
|
|
80
|
-
endAdornment:
|
|
81
|
-
}),
|
|
82
|
-
const S = o ? Array.isArray(e) && e.some((y) =>
|
|
83
|
-
return
|
|
76
|
+
getOptionEndAdornment: d,
|
|
77
|
+
endAdornment: N
|
|
78
|
+
}), H = V((O, n) => {
|
|
79
|
+
const S = o ? Array.isArray(e) && e.some((y) => p(n, y)) : p(n, e);
|
|
80
|
+
return $(O, {
|
|
84
81
|
...typeof n == "object" && n !== null ? n : {},
|
|
85
82
|
label: l(n),
|
|
86
83
|
selected: S,
|
|
87
84
|
disabled: t,
|
|
88
85
|
size: c
|
|
89
|
-
}, h,
|
|
86
|
+
}, h, d, A);
|
|
90
87
|
}, [
|
|
91
88
|
o,
|
|
92
89
|
e,
|
|
93
|
-
|
|
90
|
+
p,
|
|
94
91
|
l,
|
|
95
92
|
t,
|
|
96
93
|
c,
|
|
97
94
|
h,
|
|
98
|
-
|
|
95
|
+
d,
|
|
99
96
|
A
|
|
100
|
-
]),
|
|
101
|
-
const { InputLabelProps: n, inputProps: S, InputProps: y, ...
|
|
102
|
-
return /* @__PURE__ */
|
|
103
|
-
|
|
97
|
+
]), K = V((O) => {
|
|
98
|
+
const { InputLabelProps: n, inputProps: S, InputProps: y, ...T } = O, { className: te, ...W } = y, { className: ne, ...F } = S;
|
|
99
|
+
return /* @__PURE__ */ G(
|
|
100
|
+
ee,
|
|
104
101
|
{
|
|
105
102
|
variant: i,
|
|
106
103
|
ownerState: a,
|
|
@@ -108,15 +105,12 @@ function Ae(m) {
|
|
|
108
105
|
...n,
|
|
109
106
|
shrink: !0
|
|
110
107
|
},
|
|
111
|
-
inputProps: { ...
|
|
112
|
-
inputRef: g,
|
|
113
|
-
name: z,
|
|
114
|
-
onBlur: I,
|
|
108
|
+
inputProps: { ...F, readOnly: !!r },
|
|
115
109
|
error: u,
|
|
116
|
-
...
|
|
110
|
+
...T,
|
|
117
111
|
autoComplete: "off",
|
|
118
112
|
InputProps: {
|
|
119
|
-
...
|
|
113
|
+
...W,
|
|
120
114
|
startAdornment: f,
|
|
121
115
|
endAdornment: C,
|
|
122
116
|
readOnly: r
|
|
@@ -137,32 +131,29 @@ function Ae(m) {
|
|
|
137
131
|
r,
|
|
138
132
|
s,
|
|
139
133
|
t,
|
|
140
|
-
P
|
|
141
|
-
g,
|
|
142
|
-
z,
|
|
143
|
-
I
|
|
134
|
+
P
|
|
144
135
|
]);
|
|
145
136
|
return {
|
|
146
137
|
// propiedades de useAutocomplete
|
|
147
138
|
ownerState: a,
|
|
148
|
-
isSkeleton:
|
|
139
|
+
isSkeleton: q,
|
|
149
140
|
currentSize: s,
|
|
150
|
-
memoizedRenderOption:
|
|
151
|
-
memoizedRenderInput:
|
|
141
|
+
memoizedRenderOption: H,
|
|
142
|
+
memoizedRenderInput: K,
|
|
152
143
|
// propiedades de useValuesAndHandlers
|
|
153
|
-
open:
|
|
144
|
+
open: g,
|
|
154
145
|
selectedValue: e,
|
|
155
|
-
inputValue:
|
|
156
|
-
isOptionEqualToValueLocal:
|
|
157
|
-
handleDelete:
|
|
158
|
-
handleRefresh:
|
|
159
|
-
handleChange:
|
|
160
|
-
handleInputChange:
|
|
161
|
-
onCloseLocal:
|
|
162
|
-
onOpenLocal:
|
|
146
|
+
inputValue: D,
|
|
147
|
+
isOptionEqualToValueLocal: p,
|
|
148
|
+
handleDelete: z,
|
|
149
|
+
handleRefresh: I,
|
|
150
|
+
handleChange: E,
|
|
151
|
+
handleInputChange: M,
|
|
152
|
+
onCloseLocal: w,
|
|
153
|
+
onOpenLocal: b,
|
|
163
154
|
getOptionLabelLocal: l,
|
|
164
|
-
checkKeyDown:
|
|
165
|
-
scrollPositionOptionsRef:
|
|
155
|
+
checkKeyDown: x,
|
|
156
|
+
scrollPositionOptionsRef: _,
|
|
166
157
|
// propiedades de useMultipleChips
|
|
167
158
|
multipleChips: f,
|
|
168
159
|
// propiedades de useEndAdornments
|
|
@@ -170,5 +161,5 @@ function Ae(m) {
|
|
|
170
161
|
};
|
|
171
162
|
}
|
|
172
163
|
export {
|
|
173
|
-
|
|
164
|
+
me as useAutocomplete
|
|
174
165
|
};
|
|
@@ -43,7 +43,7 @@ export type AdornmentType = ReactElement | string;
|
|
|
43
43
|
* Props for the unified Autocomplete component.
|
|
44
44
|
* Supports both single and multiple selection, and two types: `text` and `image`.
|
|
45
45
|
*/
|
|
46
|
-
export interface AutocompleteProps<T, Multiple extends boolean | undefined> extends Pick<MUIAutocompleteProps<T, Multiple, undefined, false>, 'options' | 'onOpen' | 'onClose' | 'loading' | 'disabled'>, Pick<TextFieldProps, 'error'
|
|
46
|
+
export interface AutocompleteProps<T, Multiple extends boolean | undefined> extends Pick<MUIAutocompleteProps<T, Multiple, undefined, false>, 'options' | 'onOpen' | 'onClose' | 'loading' | 'disabled'>, Pick<TextFieldProps, 'error'>, BaseAutocompleteProps {
|
|
47
47
|
/**
|
|
48
48
|
* Whether the text field is rendered in read-only mode.
|
|
49
49
|
* readOnly={true}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/mui/Autocomplete/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,gCAAgC,EAChC,6BAA6B,EAC7B,iBAAiB,IAAI,oBAAoB,EACzC,KAAK,EACN,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,KAAK,MAAM,CAAC;AAC9D,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,MAAM,CAAC;AACvD;;GAEG;AACH,MAAM,MAAM,4BAA4B,CAAC,CAAC,IAAI;IAC5C,MAAM,EAAE;QACN,KAAK,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,IAAI,CAAC;KACvB,CAAC;CACH,CAAC;AAEF,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;IAC1C;;OAEG;IACH,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACzC;;;OAGG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;CACtC;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,MAAM,CAAC;AAClD;;;GAGG;AACH,MAAM,WAAW,iBAAiB,CAChC,CAAC,EACD,QAAQ,SAAS,OAAO,GAAG,SAAS,CACpC,SAAQ,IAAI,CACZ,oBAAoB,CAAC,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,CAAC,EACnD,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAC1D,EACC,IAAI,CACF,cAAc,EACZ,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/mui/Autocomplete/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,gCAAgC,EAChC,6BAA6B,EAC7B,iBAAiB,IAAI,oBAAoB,EACzC,KAAK,EACN,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,EAAE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