From 3152ab60ca178b3d16443366bda4baf365c06c0a Mon Sep 17 00:00:00 2001 From: Siarhei Yelin Date: Mon, 9 Oct 2023 16:06:06 +0300 Subject: [PATCH] Fix regex --- public/docs/docsGenOutput/docsGenOutput.json | 204 +++++++++--------- .../converters/converterUtils/typeUtils.ts | 2 +- 2 files changed, 103 insertions(+), 103 deletions(-) diff --git a/public/docs/docsGenOutput/docsGenOutput.json b/public/docs/docsGenOutput/docsGenOutput.json index d543228306..509edbf49d 100644 --- a/public/docs/docsGenOutput/docsGenOutput.json +++ b/public/docs/docsGenOutput/docsGenOutput.json @@ -2006,7 +2006,7 @@ "Overrides rendering of the single day. For example, to highlight certain days" ], "typeValue": { - "raw": "(day: Dayjs) => void) => React.ReactElement>" + "raw": "(day: Dayjs, onDayClick: (day: Dayjs) => void) => React.ReactElement>" }, "required": false }, @@ -2537,7 +2537,7 @@ "Overrides rendering of the single day. For example, to highlight certain days" ], "typeValue": { - "raw": "(day: Dayjs) => void) => React.ReactElement>" + "raw": "(day: Dayjs, onDayClick: (day: Dayjs) => void) => React.ReactElement>" }, "required": false }, @@ -2753,7 +2753,7 @@ " See [AnalyticsContext](@link https://uui.epam.com/documents?id=analyticsContext&mode=doc&skin=UUI4_promo&category=contexts)." ], "typeValue": { - "raw": "(newValue: AnalyticsEvent" + "raw": "(newValue: RangeDatePickerValue | null, oldValue: RangeDatePickerValue | null) => AnalyticsEvent" }, "from": "@epam/uui-core:IAnalyticableOnChange", "required": false @@ -4169,7 +4169,7 @@ "uid": 15, "name": "canAcceptCopy", "typeValue": { - "raw": "(from: DataTableSelectedCellData) => boolean" + "raw": "(from: DataTableSelectedCellData, to: DataTableSelectedCellData) => boolean" }, "required": false }, @@ -4217,7 +4217,7 @@ " You can use this prop to render a custom filter component." ], "typeValue": { - "raw": "(lens: IDropdownBodyProps) => React.ReactNode" + "raw": "(lens: ILens, dropdownProps: IDropdownBodyProps) => React.ReactNode" }, "required": false }, @@ -4464,7 +4464,7 @@ "If row needs a checkbox, this field should be specified and it props can be configured here" ], "typeValue": { - "raw": "{ isVisible: boolean; } & ICanBeInvalid" + "raw": "{ isVisible: boolean; } & IDisableable & ICanBeInvalid" }, "required": false }, @@ -4802,7 +4802,7 @@ "Called when component is clicked" ], "typeValue": { - "raw": "((e?: any) => void) & ((rowProps: DataRowProps) => void)" + "raw": "((e?: any) => void) & ((rowProps: DataRowProps) => void) & ((rowProps: DataRowProps) => void)" }, "from": "@epam/uui-core:IClickable", "required": false @@ -4880,7 +4880,7 @@ "If row needs a checkbox, this field should be specified and it props can be configured here" ], "typeValue": { - "raw": "{ isVisible: boolean; } & ICanBeInvalid" + "raw": "{ isVisible: boolean; } & IDisableable & ICanBeInvalid" }, "from": "@epam/uui-core:DataRowOptions", "required": false @@ -5824,7 +5824,7 @@ "Overrides default tooltip, used to show validation message if the cell is invalid" ], "typeValue": { - "raw": "(props: TooltipCoreProps) => React.ReactElement>" + "raw": "(props: ICanBeInvalid & TooltipCoreProps) => React.ReactElement>" }, "required": false }, @@ -6293,7 +6293,7 @@ "uid": 9, "name": "onDrop", "typeValue": { - "raw": "(params: DataColumnProps>) => void" + "raw": "(params: DropParams, DataColumnProps>) => void" }, "required": false }, @@ -6780,7 +6780,7 @@ "Called when component is clicked" ], "typeValue": { - "raw": "((e?: any) => void) & ((rowProps: DataRowProps) => void)" + "raw": "((e?: any) => void) & ((rowProps: DataRowProps) => void) & ((rowProps: DataRowProps) => void)" }, "from": "@epam/uui-core:IClickable", "required": false @@ -6858,7 +6858,7 @@ "If row needs a checkbox, this field should be specified and it props can be configured here" ], "typeValue": { - "raw": "{ isVisible: boolean; } & ICanBeInvalid" + "raw": "{ isVisible: boolean; } & IDisableable & ICanBeInvalid" }, "from": "@epam/uui-core:DataRowOptions", "required": false @@ -7607,7 +7607,7 @@ "Overrides rendering of the single day. For example, to highlight certain days" ], "typeValue": { - "raw": "(day: Dayjs) => void) => React.ReactElement>" + "raw": "(day: Dayjs, onDayClick: (day: Dayjs) => void) => React.ReactElement>" }, "from": "@epam/uui-core:BaseDatePickerProps", "required": false @@ -7866,7 +7866,7 @@ "uid": 4, "name": "canAcceptDrop", "typeValue": { - "raw": "(params: DropPosition, boolean>> | null" + "raw": "(params: AcceptDropParams) => Partial> | null" }, "from": "@epam/uui-core:IDndActor", "required": false @@ -8358,7 +8358,7 @@ "uid": 7, "name": "modifiers", "typeValue": { - "raw": "(Modifier>)[]" + "raw": "(StrictModifier | Partial>)[]" }, "required": false }, @@ -9874,7 +9874,7 @@ "uid": 1, "name": "sendEvent", "typeValue": { - "raw": "(event: AnalyticsEvent, 'name'>, eventType?: 'event' | 'pageView' | 'apiTiming' | undefined) => void" + "raw": "(event: AnalyticsEvent, parameters: Omit, eventType?: 'event' | 'pageView' | 'apiTiming' | undefined) => void" }, "required": true } @@ -9952,7 +9952,7 @@ "uid": 6, "name": "uploadFile", "typeValue": { - "raw": "(url: string, file: File, options: FileUploadResponse>" + "raw": "(url: string, file: File, options: FileUploadOptions) => Promise" }, "required": true }, @@ -10936,7 +10936,7 @@ "uid": 4, "name": "getView", "typeValue": { - "raw": "(value: IDataSourceView" + "raw": "(value: DataSourceState, onValueChange: (val: DataSourceState) => any, options?: any) => IDataSourceView" }, "required": true }, @@ -10944,7 +10944,7 @@ "uid": 5, "name": "useView", "typeValue": { - "raw": "(value: IDataSourceView" + "raw": "(value: DataSourceState, onValueChange: (val: DataSourceState) => any, options?: any, deps?: any[] | undefined) => IDataSourceView" }, "required": true }, @@ -11019,7 +11019,7 @@ "uid": 4, "name": "getSelectedRows", "typeValue": { - "raw": "(range?: DataRowProps[]" + "raw": "(range?: VirtualListRange | undefined) => DataRowProps[]" }, "required": true }, @@ -11160,7 +11160,7 @@ "uid": 3, "name": "canAcceptDrop", "typeValue": { - "raw": "(params: DropPosition, boolean>> | null" + "raw": "(params: AcceptDropParams) => Partial> | null" }, "required": false }, @@ -12004,7 +12004,7 @@ "details": { "kind": 264, "typeValue": { - "raw": "FilterConfigBase & { type: 'singlePicker' | 'multiPicker'; dataSource: IDropdownBodyProps & { selectedPredicate?: string | undefined; } | FilterConfigBase & { type: 'datePicker'; filter?(day: IDropdownBodyProps & { selectedPredicate?: string | undefined; } | FilterConfigBase & { type: 'numeric'; } & IDropdownBodyProps & { selectedPredicate?: string | undefined; } | FilterConfigBase & { type: 'rangeDatePicker'; format?: string | undefined; filter?(day: IDropdownBodyProps & { selectedPredicate?: string | undefined; } | FilterConfigBase & { type: 'custom'; render: (props: IDropdownBodyProps & { selectedPredicate?: string | undefined; }", + "raw": "FilterConfigBase & { type: 'singlePicker' | 'multiPicker'; dataSource: IDataSource; getName?: ((item: any) => string) | undefined; renderRow?: ((props: DataRowProps) => React.ReactNode) | undefined; valueType?: 'id' | undefined; showSearch?: boolean | undefined; } & IEditable & IDropdownBodyProps & { selectedPredicate?: string | undefined; } | FilterConfigBase & { type: 'datePicker'; filter?(day: Dayjs): boolean; format?: string | undefined; } & IEditable & IDropdownBodyProps & { selectedPredicate?: string | undefined; } | FilterConfigBase & { type: 'numeric'; } & IEditable & IDropdownBodyProps & { selectedPredicate?: string | undefined; } | FilterConfigBase & { type: 'rangeDatePicker'; format?: string | undefined; filter?(day: Dayjs): boolean; presets?: RangeDatePickerPresets | undefined; } & IEditable & IDropdownBodyProps & { selectedPredicate?: string | undefined; } | FilterConfigBase & { type: 'custom'; render: (props: IFilterItemBodyProps) => React.ReactElement>; getTogglerValue: (props: IFilterItemBodyProps) => React.ReactNode; } & IEditable & IDropdownBodyProps & { selectedPredicate?: string | undefined; }", "print": [ "type IFilterItemBodyProps = TableFiltersConfig & IEditable & IDropdownBodyProps & {", " selectedPredicate?: string;", @@ -13407,7 +13407,7 @@ "uid": 5, "name": "index", "typeValue": { - "raw": "(index: number) => ArrayElement>" + "raw": "(index: number) => ILens>" }, "required": true }, @@ -13851,7 +13851,7 @@ "uid": 1, "name": "show", "typeValue": { - "raw": "(render: (props: NotificationParams | undefined) => Promise" + "raw": "(render: (props: INotification) => React.ReactNode, notificationParams?: NotificationParams | undefined) => Promise" }, "required": true }, @@ -14544,7 +14544,7 @@ "uid": 1, "name": "Button", "typeValue": { - "raw": "ISkinComponent" + "raw": "ISkinComponent" }, "required": true }, @@ -15137,7 +15137,7 @@ "uid": 14, "name": "patch", "typeValue": { - "raw": "(items: TItem[], isDeletedProp?: keyof TItem | undefined, comparator?: ITree" + "raw": "(items: TItem[], isDeletedProp?: keyof TItem | undefined, comparator?: ItemsComparator | undefined) => ITree" }, "required": true }, @@ -15153,7 +15153,7 @@ "uid": 16, "name": "load", "typeValue": { - "raw": "(options: ITree>" + "raw": "(options: LoadTreeOptions, value: Readonly, any>>, withNestedChildren?: boolean | undefined) => Promise>" }, "required": true }, @@ -15161,7 +15161,7 @@ "uid": 17, "name": "loadMissing", "typeValue": { - "raw": "(options: ITree>" + "raw": "(options: LoadTreeOptions, value: Readonly, any>>) => Promise>" }, "required": true }, @@ -15169,7 +15169,7 @@ "uid": 18, "name": "loadMissingIdsAndParents", "typeValue": { - "raw": "(options: ITree>" + "raw": "(options: LoadTreeOptions, idsToLoad: TId[]) => Promise>" }, "required": true }, @@ -15201,7 +15201,7 @@ "uid": 22, "name": "filter", "typeValue": { - "raw": "(options: ITree" + "raw": "(options: ApplyFilterOptions) => ITree" }, "required": true }, @@ -15209,7 +15209,7 @@ "uid": 23, "name": "search", "typeValue": { - "raw": "(options: ITree" + "raw": "(options: ApplySearchOptions) => ITree" }, "required": true }, @@ -15217,7 +15217,7 @@ "uid": 24, "name": "sort", "typeValue": { - "raw": "(options: ITree" + "raw": "(options: ApplySortOptions) => ITree" }, "required": true } @@ -17596,7 +17596,7 @@ "Allow to customize how each selectable row is rendered. Can be used to add subtitles, avatars, etc." ], "typeValue": { - "raw": "(props: DataSourceState, any>) => React.ReactNode" + "raw": "(props: DataRowProps, dataSourceState: DataSourceState, any>) => React.ReactNode" }, "required": false }, @@ -17724,7 +17724,7 @@ "details": { "kind": 264, "typeValue": { - "raw": "IAnalyticableOnChange | IAnalyticableOnChange | IAnalyticableOnChange | IAnalyticableOnChange", + "raw": "PickerBaseOptions & { selectionMode: 'single'; valueType?: 'id' | undefined; } & IEditable & IAnalyticableOnChange | PickerBaseOptions & { selectionMode: 'single'; valueType: 'entity'; } & IEditable & IAnalyticableOnChange | PickerBaseOptions & { selectionMode: 'multi'; valueType?: 'id' | undefined; emptyValue?: [] | null | undefined; } & IEditable & IAnalyticableOnChange | PickerBaseOptions & { selectionMode: 'multi'; valueType: 'entity'; emptyValue?: [] | null | undefined; } & IEditable & IAnalyticableOnChange", "print": [ "type PickerBaseProps = PickerBaseOptions & PickerBindingProps & IAnalyticableOnChange;" ] @@ -17785,7 +17785,7 @@ "Allow to customize how each selectable row is rendered. Can be used to add subtitles, avatars, etc." ], "typeValue": { - "raw": "(props: DataSourceState, any>) => React.ReactNode" + "raw": "(props: DataRowProps, dataSourceState: DataSourceState, any>) => React.ReactNode" }, "from": "@epam/uui-core:PickerBaseOptions", "required": false @@ -18734,7 +18734,7 @@ "Overrides rendering of the single day. For example, to highlight certain days" ], "typeValue": { - "raw": "(day: Dayjs) => void) => React.ReactElement>" + "raw": "(day: Dayjs, onDayClick: (day: Dayjs) => void) => React.ReactElement>" }, "from": "@epam/uui-core:BaseRangeDatePickerProps", "required": false @@ -18949,7 +18949,7 @@ " See [AnalyticsContext](@link https://uui.epam.com/documents?id=analyticsContext&mode=doc&skin=UUI4_promo&category=contexts)." ], "typeValue": { - "raw": "(newValue: AnalyticsEvent" + "raw": "(newValue: RangeDatePickerValue | null, oldValue: RangeDatePickerValue | null) => AnalyticsEvent" }, "from": "@epam/uui-core:IAnalyticableOnChange", "required": false @@ -20952,7 +20952,7 @@ "uid": 18, "name": "modifiers", "typeValue": { - "raw": "(Modifier>)[]" + "raw": "(StrictModifier | Partial>)[]" }, "from": "@epam/uui-core:DropdownProps", "required": false @@ -21465,7 +21465,7 @@ "uid": 1, "name": "errorConfig", "typeValue": { - "raw": "Record" + "raw": "Record" }, "required": false }, @@ -21473,7 +21473,7 @@ "uid": 2, "name": "recoveryConfig", "typeValue": { - "raw": "Record" + "raw": "Record" }, "required": false } @@ -21507,7 +21507,7 @@ "uid": 1, "name": "getErrorInfo", "typeValue": { - "raw": "(error: any, defaultErrorInfo: UuiErrorInfo" + "raw": "(error: any, defaultErrorInfo: UuiErrorInfo) => UuiErrorInfo" }, "required": true }, @@ -22531,7 +22531,7 @@ "uid": 1, "name": "render", "typeValue": { - "raw": "(item: AdaptiveItemProps[] | undefined) => any" + "raw": "(item: AdaptiveItemProps, hiddenItems?: AdaptiveItemProps[] | undefined, displayedItems?: AdaptiveItemProps[] | undefined) => any" }, "required": true }, @@ -24498,7 +24498,7 @@ "uid": 4, "name": "renderDay", "typeValue": { - "raw": "(day: Dayjs) => void) => React.ReactElement>" + "raw": "(day: Dayjs, onDayClick: (day: Dayjs) => void) => React.ReactElement>" }, "required": false }, @@ -25215,7 +25215,7 @@ "uid": 3, "name": "onCanAcceptDrop", "typeValue": { - "raw": "(props: DropPosition, boolean>> | null" + "raw": "(props: AcceptDropParams) => Partial> | null" }, "required": true }, @@ -25223,7 +25223,7 @@ "uid": 4, "name": "onDrop", "typeValue": { - "raw": "(params: DndDataType>) => void" + "raw": "(params: DropParams) => void" }, "required": true }, @@ -25440,7 +25440,7 @@ "uid": 24, "name": "canAcceptCopy", "typeValue": { - "raw": "(from: DataTableSelectedCellData) => boolean" + "raw": "(from: DataTableSelectedCellData, to: DataTableSelectedCellData) => boolean" }, "from": "@epam/uui-core:DataColumnProps", "required": false @@ -25492,7 +25492,7 @@ " You can use this prop to render a custom filter component." ], "typeValue": { - "raw": "(lens: IDropdownBodyProps) => React.ReactNode" + "raw": "(lens: ILens, dropdownProps: IDropdownBodyProps) => React.ReactNode" }, "from": "@epam/uui-core:DataColumnProps", "required": false @@ -25958,7 +25958,7 @@ "uid": 3, "name": "onCopy", "typeValue": { - "raw": "(copyFrom: DataTableSelectedCellData[]) => void" + "raw": "(copyFrom: DataTableSelectedCellData, selectedCells: DataTableSelectedCellData[]) => void" }, "required": false }, @@ -26027,7 +26027,7 @@ "uid": 4, "name": "renderDay", "typeValue": { - "raw": "(day: Dayjs) => void) => React.ReactElement>" + "raw": "(day: Dayjs, onDayClick: (day: Dayjs) => void) => React.ReactElement>" }, "required": false }, @@ -26114,7 +26114,7 @@ "uid": 3, "name": "setDisplayedDateAndView", "typeValue": { - "raw": "(displayedDate: ViewType) => void" + "raw": "(displayedDate: Dayjs, view: ViewType) => void" }, "required": true }, @@ -26149,7 +26149,7 @@ "uid": 7, "name": "renderDay", "typeValue": { - "raw": "(day: Dayjs) => void) => React.ReactElement>" + "raw": "(day: Dayjs, onDayClick: (day: Dayjs) => void) => React.ReactElement>" }, "from": "@epam/uui-components:DatePickerBodyBaseOptions", "required": false @@ -26300,7 +26300,7 @@ "uid": 2, "name": "getDayCX", "typeValue": { - "raw": "(day: ClassValue" + "raw": "(day: Dayjs) => ClassValue" }, "required": false }, @@ -32117,7 +32117,7 @@ "uid": 1, "name": "dataSourceStateToValue", "typeValue": { - "raw": "(dsState: IDataSource) => any" + "raw": "(dsState: DataSourceState, props: PickerBaseProps, dataSource: IDataSource) => any" }, "required": true }, @@ -32125,7 +32125,7 @@ "uid": 2, "name": "applyValueToDataSourceState", "typeValue": { - "raw": "(dsState: DataSourceState" + "raw": "(dsState: DataSourceState, value: any, props: PickerBaseProps, dataSource: IDataSource) => DataSourceState" }, "required": true } @@ -32738,7 +32738,7 @@ "details": { "kind": 264, "typeValue": { - "raw": "ClassValue; highlightSearchMatches?: boolean | undefined; } | ClassValue; highlightSearchMatches?: boolean | undefined; } | ClassValue; highlightSearchMatches?: boolean | undefined; } | ClassValue; highlightSearchMatches?: boolean | undefined; }", + "raw": "PickerBaseOptions & { selectionMode: 'single'; valueType?: 'id' | undefined; } & IEditable & IAnalyticableOnChange & ICanFocus & IHasPlaceholder & IDisableable & ICanBeReadonly & IHasIcon & { editMode?: 'dropdown' | 'modal' | undefined; maxItems?: number | undefined; minBodyWidth?: number | undefined; isSingleLine?: boolean | undefined; dropdownPlacement?: Placement | undefined; renderToggler?: ((props: PickerTogglerProps) => React.ReactNode) | undefined; searchPosition?: 'none' | 'input' | 'body' | undefined; disableClear?: boolean | undefined; minCharsToSearch?: number | undefined; dropdownHeight?: number | undefined; autoFocus?: boolean | undefined; rawProps?: { input?: (React.HTMLAttributes & Record<`data-${string}`, string>) | undefined; body?: (React.HTMLAttributes & Record<`data-${string}`, string>) | undefined; } | undefined; renderFooter?: ((props: PickerInputFooterProps) => React.ReactNode) | undefined; fixedBodyPosition?: boolean | undefined; portalTarget?: HTMLElement | undefined; inputCx?: ClassValue; bodyCx?: ClassValue; highlightSearchMatches?: boolean | undefined; } | PickerBaseOptions & { selectionMode: 'single'; valueType: 'entity'; } & IEditable & IAnalyticableOnChange & ICanFocus & IHasPlaceholder & IDisableable & ICanBeReadonly & IHasIcon & { editMode?: 'dropdown' | 'modal' | undefined; maxItems?: number | undefined; minBodyWidth?: number | undefined; isSingleLine?: boolean | undefined; dropdownPlacement?: Placement | undefined; renderToggler?: ((props: PickerTogglerProps) => React.ReactNode) | undefined; searchPosition?: 'none' | 'input' | 'body' | undefined; disableClear?: boolean | undefined; minCharsToSearch?: number | undefined; dropdownHeight?: number | undefined; autoFocus?: boolean | undefined; rawProps?: { input?: (React.HTMLAttributes & Record<`data-${string}`, string>) | undefined; body?: (React.HTMLAttributes & Record<`data-${string}`, string>) | undefined; } | undefined; renderFooter?: ((props: PickerInputFooterProps) => React.ReactNode) | undefined; fixedBodyPosition?: boolean | undefined; portalTarget?: HTMLElement | undefined; inputCx?: ClassValue; bodyCx?: ClassValue; highlightSearchMatches?: boolean | undefined; } | PickerBaseOptions & { selectionMode: 'multi'; valueType?: 'id' | undefined; emptyValue?: [] | null | undefined; } & IEditable & IAnalyticableOnChange & ICanFocus & IHasPlaceholder & IDisableable & ICanBeReadonly & IHasIcon & { editMode?: 'dropdown' | 'modal' | undefined; maxItems?: number | undefined; minBodyWidth?: number | undefined; isSingleLine?: boolean | undefined; dropdownPlacement?: Placement | undefined; renderToggler?: ((props: PickerTogglerProps) => React.ReactNode) | undefined; searchPosition?: 'none' | 'input' | 'body' | undefined; disableClear?: boolean | undefined; minCharsToSearch?: number | undefined; dropdownHeight?: number | undefined; autoFocus?: boolean | undefined; rawProps?: { input?: (React.HTMLAttributes & Record<`data-${string}`, string>) | undefined; body?: (React.HTMLAttributes & Record<`data-${string}`, string>) | undefined; } | undefined; renderFooter?: ((props: PickerInputFooterProps) => React.ReactNode) | undefined; fixedBodyPosition?: boolean | undefined; portalTarget?: HTMLElement | undefined; inputCx?: ClassValue; bodyCx?: ClassValue; highlightSearchMatches?: boolean | undefined; } | PickerBaseOptions & { selectionMode: 'multi'; valueType: 'entity'; emptyValue?: [] | null | undefined; } & IEditable & IAnalyticableOnChange & ICanFocus & IHasPlaceholder & IDisableable & ICanBeReadonly & IHasIcon & { editMode?: 'dropdown' | 'modal' | undefined; maxItems?: number | undefined; minBodyWidth?: number | undefined; isSingleLine?: boolean | undefined; dropdownPlacement?: Placement | undefined; renderToggler?: ((props: PickerTogglerProps) => React.ReactNode) | undefined; searchPosition?: 'none' | 'input' | 'body' | undefined; disableClear?: boolean | undefined; minCharsToSearch?: number | undefined; dropdownHeight?: number | undefined; autoFocus?: boolean | undefined; rawProps?: { input?: (React.HTMLAttributes & Record<`data-${string}`, string>) | undefined; body?: (React.HTMLAttributes & Record<`data-${string}`, string>) | undefined; } | undefined; renderFooter?: ((props: PickerInputFooterProps) => React.ReactNode) | undefined; fixedBodyPosition?: boolean | undefined; portalTarget?: HTMLElement | undefined; inputCx?: ClassValue; bodyCx?: ClassValue; highlightSearchMatches?: boolean | undefined; }", "print": [ "type PickerInputBaseProps = PickerBaseProps & ICanFocus & IHasPlaceholder & IDisableable & ICanBeReadonly & IHasIcon & {", " /** dropdown (default) - show selection in dropdown; modal - opens modal window to select items */", @@ -32852,7 +32852,7 @@ "Allow to customize how each selectable row is rendered. Can be used to add subtitles, avatars, etc." ], "typeValue": { - "raw": "(props: DataSourceState, any>) => React.ReactNode" + "raw": "(props: DataRowProps, dataSourceState: DataSourceState, any>) => React.ReactNode" }, "from": "@epam/uui-core:PickerBaseOptions", "required": false @@ -33503,7 +33503,7 @@ "details": { "kind": 264, "typeValue": { - "raw": "SortingOption): string; } | SortingOption): string; } | SortingOption): string; } | SortingOption): string; }", + "raw": "PickerBaseOptions & { selectionMode: 'single'; valueType?: 'id' | undefined; } & IEditable & IAnalyticableOnChange & { maxDefaultItems?: number | undefined; maxTotalItems?: number | undefined; defaultIds?: TId[] | undefined; settingsKey?: string | undefined; sortBy?(item: TItem, sorting: SortingOption): string; } | PickerBaseOptions & { selectionMode: 'single'; valueType: 'entity'; } & IEditable & IAnalyticableOnChange & { maxDefaultItems?: number | undefined; maxTotalItems?: number | undefined; defaultIds?: TId[] | undefined; settingsKey?: string | undefined; sortBy?(item: TItem, sorting: SortingOption): string; } | PickerBaseOptions & { selectionMode: 'multi'; valueType?: 'id' | undefined; emptyValue?: [] | null | undefined; } & IEditable & IAnalyticableOnChange & { maxDefaultItems?: number | undefined; maxTotalItems?: number | undefined; defaultIds?: TId[] | undefined; settingsKey?: string | undefined; sortBy?(item: TItem, sorting: SortingOption): string; } | PickerBaseOptions & { selectionMode: 'multi'; valueType: 'entity'; emptyValue?: [] | null | undefined; } & IEditable & IAnalyticableOnChange & { maxDefaultItems?: number | undefined; maxTotalItems?: number | undefined; defaultIds?: TId[] | undefined; settingsKey?: string | undefined; sortBy?(item: TItem, sorting: SortingOption): string; }", "print": [ "type PickerListBaseProps = Exclude, 'cascadeSelection'> & {", " /**", @@ -33580,7 +33580,7 @@ "Allow to customize how each selectable row is rendered. Can be used to add subtitles, avatars, etc." ], "typeValue": { - "raw": "(props: DataSourceState, any>) => React.ReactNode" + "raw": "(props: DataRowProps, dataSourceState: DataSourceState, any>) => React.ReactNode" }, "from": "@epam/uui-core:PickerBaseOptions", "required": false @@ -33629,7 +33629,7 @@ "Defines how items should be sorted. By default, items are shown in order they are provided to the DataSource" ], "typeValue": { - "raw": "((item: TItem, sorting: SortingOption) => string)" + "raw": "((item: TItem, sorting: SortingOption) => any) & ((item: TItem, sorting: SortingOption) => string)" }, "from": "@epam/uui-core:PickerBaseOptions", "required": false @@ -34149,7 +34149,7 @@ "uid": 2, "name": "renderFooter", "typeValue": { - "raw": "(props: IModal>) => React.ReactNode" + "raw": "(props: PickerFooterProps & Partial>) => React.ReactNode" }, "required": false }, @@ -42077,7 +42077,7 @@ "uid": 18, "name": "modifiers", "typeValue": { - "raw": "(Modifier>)[]" + "raw": "(StrictModifier | Partial>)[]" }, "from": "@epam/uui-core:DropdownProps", "required": false @@ -42426,7 +42426,7 @@ "details": { "kind": 264, "typeValue": { - "raw": "ClassValue; highlightSearchMatches?: boolean | undefined; } & TProps & { toggleModalOpening?(opened: boolean): void; shouldShowBody?(): boolean; } | ClassValue; highlightSearchMatches?: boolean | undefined; } & TProps & { toggleModalOpening?(opened: boolean): void; shouldShowBody?(): boolean; } | ClassValue; highlightSearchMatches?: boolean | undefined; } & TProps & { toggleModalOpening?(opened: boolean): void; shouldShowBody?(): boolean; } | ClassValue; highlightSearchMatches?: boolean | undefined; } & TProps & { toggleModalOpening?(opened: boolean): void; shouldShowBody?(): boolean; }", + "raw": "PickerBaseOptions & { selectionMode: 'single'; valueType?: 'id' | undefined; } & IEditable & IAnalyticableOnChange & ICanFocus & IHasPlaceholder & IDisableable & ICanBeReadonly & IHasIcon & { editMode?: 'dropdown' | 'modal' | undefined; maxItems?: number | undefined; minBodyWidth?: number | undefined; isSingleLine?: boolean | undefined; dropdownPlacement?: Placement | undefined; renderToggler?: ((props: PickerTogglerProps) => React.ReactNode) | undefined; searchPosition?: 'none' | 'input' | 'body' | undefined; disableClear?: boolean | undefined; minCharsToSearch?: number | undefined; dropdownHeight?: number | undefined; autoFocus?: boolean | undefined; rawProps?: { input?: (React.HTMLAttributes & Record<`data-${string}`, string>) | undefined; body?: (React.HTMLAttributes & Record<`data-${string}`, string>) | undefined; } | undefined; renderFooter?: ((props: PickerInputFooterProps) => React.ReactNode) | undefined; fixedBodyPosition?: boolean | undefined; portalTarget?: HTMLElement | undefined; inputCx?: ClassValue; bodyCx?: ClassValue; highlightSearchMatches?: boolean | undefined; } & TProps & { toggleModalOpening?(opened: boolean): void; shouldShowBody?(): boolean; } | PickerBaseOptions & { selectionMode: 'single'; valueType: 'entity'; } & IEditable & IAnalyticableOnChange & ICanFocus & IHasPlaceholder & IDisableable & ICanBeReadonly & IHasIcon & { editMode?: 'dropdown' | 'modal' | undefined; maxItems?: number | undefined; minBodyWidth?: number | undefined; isSingleLine?: boolean | undefined; dropdownPlacement?: Placement | undefined; renderToggler?: ((props: PickerTogglerProps) => React.ReactNode) | undefined; searchPosition?: 'none' | 'input' | 'body' | undefined; disableClear?: boolean | undefined; minCharsToSearch?: number | undefined; dropdownHeight?: number | undefined; autoFocus?: boolean | undefined; rawProps?: { input?: (React.HTMLAttributes & Record<`data-${string}`, string>) | undefined; body?: (React.HTMLAttributes & Record<`data-${string}`, string>) | undefined; } | undefined; renderFooter?: ((props: PickerInputFooterProps) => React.ReactNode) | undefined; fixedBodyPosition?: boolean | undefined; portalTarget?: HTMLElement | undefined; inputCx?: ClassValue; bodyCx?: ClassValue; highlightSearchMatches?: boolean | undefined; } & TProps & { toggleModalOpening?(opened: boolean): void; shouldShowBody?(): boolean; } | PickerBaseOptions & { selectionMode: 'multi'; valueType?: 'id' | undefined; emptyValue?: [] | null | undefined; } & IEditable & IAnalyticableOnChange & ICanFocus & IHasPlaceholder & IDisableable & ICanBeReadonly & IHasIcon & { editMode?: 'dropdown' | 'modal' | undefined; maxItems?: number | undefined; minBodyWidth?: number | undefined; isSingleLine?: boolean | undefined; dropdownPlacement?: Placement | undefined; renderToggler?: ((props: PickerTogglerProps) => React.ReactNode) | undefined; searchPosition?: 'none' | 'input' | 'body' | undefined; disableClear?: boolean | undefined; minCharsToSearch?: number | undefined; dropdownHeight?: number | undefined; autoFocus?: boolean | undefined; rawProps?: { input?: (React.HTMLAttributes & Record<`data-${string}`, string>) | undefined; body?: (React.HTMLAttributes & Record<`data-${string}`, string>) | undefined; } | undefined; renderFooter?: ((props: PickerInputFooterProps) => React.ReactNode) | undefined; fixedBodyPosition?: boolean | undefined; portalTarget?: HTMLElement | undefined; inputCx?: ClassValue; bodyCx?: ClassValue; highlightSearchMatches?: boolean | undefined; } & TProps & { toggleModalOpening?(opened: boolean): void; shouldShowBody?(): boolean; } | PickerBaseOptions & { selectionMode: 'multi'; valueType: 'entity'; emptyValue?: [] | null | undefined; } & IEditable & IAnalyticableOnChange & ICanFocus & IHasPlaceholder & IDisableable & ICanBeReadonly & IHasIcon & { editMode?: 'dropdown' | 'modal' | undefined; maxItems?: number | undefined; minBodyWidth?: number | undefined; isSingleLine?: boolean | undefined; dropdownPlacement?: Placement | undefined; renderToggler?: ((props: PickerTogglerProps) => React.ReactNode) | undefined; searchPosition?: 'none' | 'input' | 'body' | undefined; disableClear?: boolean | undefined; minCharsToSearch?: number | undefined; dropdownHeight?: number | undefined; autoFocus?: boolean | undefined; rawProps?: { input?: (React.HTMLAttributes & Record<`data-${string}`, string>) | undefined; body?: (React.HTMLAttributes & Record<`data-${string}`, string>) | undefined; } | undefined; renderFooter?: ((props: PickerInputFooterProps) => React.ReactNode) | undefined; fixedBodyPosition?: boolean | undefined; portalTarget?: HTMLElement | undefined; inputCx?: ClassValue; bodyCx?: ClassValue; highlightSearchMatches?: boolean | undefined; } & TProps & { toggleModalOpening?(opened: boolean): void; shouldShowBody?(): boolean; }", "print": [ "type UsePickerInputProps = PickerInputBaseProps & TProps & {", " toggleModalOpening?(opened: boolean): void;", @@ -42490,7 +42490,7 @@ "Allow to customize how each selectable row is rendered. Can be used to add subtitles, avatars, etc." ], "typeValue": { - "raw": "(props: DataSourceState, any>) => React.ReactNode" + "raw": "(props: DataRowProps, dataSourceState: DataSourceState, any>) => React.ReactNode" }, "from": "@epam/uui-core:PickerBaseOptions", "required": false @@ -43175,7 +43175,7 @@ "details": { "kind": 264, "typeValue": { - "raw": "SortingOption): string; } & TProps | SortingOption): string; } & TProps | SortingOption): string; } & TProps | SortingOption): string; } & TProps", + "raw": "PickerBaseOptions & { selectionMode: 'single'; valueType?: 'id' | undefined; } & IEditable & IAnalyticableOnChange & { maxDefaultItems?: number | undefined; maxTotalItems?: number | undefined; defaultIds?: TId[] | undefined; settingsKey?: string | undefined; sortBy?(item: TItem, sorting: SortingOption): string; } & TProps | PickerBaseOptions & { selectionMode: 'single'; valueType: 'entity'; } & IEditable & IAnalyticableOnChange & { maxDefaultItems?: number | undefined; maxTotalItems?: number | undefined; defaultIds?: TId[] | undefined; settingsKey?: string | undefined; sortBy?(item: TItem, sorting: SortingOption): string; } & TProps | PickerBaseOptions & { selectionMode: 'multi'; valueType?: 'id' | undefined; emptyValue?: [] | null | undefined; } & IEditable & IAnalyticableOnChange & { maxDefaultItems?: number | undefined; maxTotalItems?: number | undefined; defaultIds?: TId[] | undefined; settingsKey?: string | undefined; sortBy?(item: TItem, sorting: SortingOption): string; } & TProps | PickerBaseOptions & { selectionMode: 'multi'; valueType: 'entity'; emptyValue?: [] | null | undefined; } & IEditable & IAnalyticableOnChange & { maxDefaultItems?: number | undefined; maxTotalItems?: number | undefined; defaultIds?: TId[] | undefined; settingsKey?: string | undefined; sortBy?(item: TItem, sorting: SortingOption): string; } & TProps", "print": [ "type UsePickerListProps = PickerListBaseProps & TProps & {};" ] @@ -43236,7 +43236,7 @@ "Allow to customize how each selectable row is rendered. Can be used to add subtitles, avatars, etc." ], "typeValue": { - "raw": "(props: DataSourceState, any>) => React.ReactNode" + "raw": "(props: DataRowProps, dataSourceState: DataSourceState, any>) => React.ReactNode" }, "from": "@epam/uui-core:PickerBaseOptions", "required": false @@ -43285,7 +43285,7 @@ "Defines how items should be sorted. By default, items are shown in order they are provided to the DataSource" ], "typeValue": { - "raw": "((item: TItem, sorting: SortingOption) => string)" + "raw": "((item: TItem, sorting: SortingOption) => any) & ((item: TItem, sorting: SortingOption) => string)" }, "from": "@epam/uui-core:PickerBaseOptions", "required": false @@ -43662,7 +43662,7 @@ "details": { "kind": 264, "typeValue": { - "raw": "PickerModalOptions | PickerModalOptions | PickerModalOptions | PickerModalOptions", + "raw": "PickerBaseOptions & IHasCaption & { selectionMode: 'single'; valueType: 'id'; initialValue: TId; } & IModal & PickerModalOptions | PickerBaseOptions & IHasCaption & { selectionMode: 'single'; valueType: 'entity'; initialValue: TItem; } & IModal & PickerModalOptions | PickerBaseOptions & IHasCaption & { selectionMode: 'multi'; valueType: 'id'; initialValue: TId[]; } & IModal & PickerModalOptions | PickerBaseOptions & IHasCaption & { selectionMode: 'multi'; valueType: 'entity'; initialValue: TItem[]; } & IModal & PickerModalOptions", "print": [ "type UsePickerModalProps = PickerBaseOptions & IHasCaption & (PickerModalScalarProps | PickerModalArrayProps) & PickerModalOptions;" ] @@ -43723,7 +43723,7 @@ "Allow to customize how each selectable row is rendered. Can be used to add subtitles, avatars, etc." ], "typeValue": { - "raw": "(props: DataSourceState, any>) => React.ReactNode" + "raw": "(props: DataRowProps, dataSourceState: DataSourceState, any>) => React.ReactNode" }, "from": "@epam/uui-core:PickerBaseOptions", "required": false @@ -43941,7 +43941,7 @@ "uid": 106, "name": "renderFooter", "typeValue": { - "raw": "(props: IModal>) => React.ReactNode" + "raw": "(props: PickerFooterProps & Partial>) => React.ReactNode" }, "from": "@epam/uui-components:PickerModalOptions", "required": false @@ -44638,7 +44638,7 @@ "details": { "kind": 264, "typeValue": { - "raw": "AccordionMods & GeneralAccordionProps | IEditable", + "raw": "AccordionMods & GeneralAccordionProps | AccordionMods & GeneralAccordionProps & IEditable", "print": [ "type AccordionProps = AccordionMods & uuiComponents.AccordionProps;" ] @@ -47183,7 +47183,7 @@ "details": { "kind": 264, "typeValue": { - "raw": "ClassValue; highlightSearchMatches?: boolean | undefined; } | ClassValue; highlightSearchMatches?: boolean | undefined; } | ClassValue; highlightSearchMatches?: boolean | undefined; } | ClassValue; highlightSearchMatches?: boolean | undefined; }", + "raw": "SizeMod & IHasEditMode & PickerBaseOptions & { selectionMode: 'single'; valueType?: 'id' | undefined; } & IEditable & IAnalyticableOnChange & ICanFocus & IHasPlaceholder & IDisableable & ICanBeReadonly & IHasIcon & { editMode?: 'dropdown' | 'modal' | undefined; maxItems?: number | undefined; minBodyWidth?: number | undefined; isSingleLine?: boolean | undefined; dropdownPlacement?: Placement | undefined; renderToggler?: ((props: PickerTogglerProps) => React.ReactNode) | undefined; searchPosition?: 'none' | 'input' | 'body' | undefined; disableClear?: boolean | undefined; minCharsToSearch?: number | undefined; dropdownHeight?: number | undefined; autoFocus?: boolean | undefined; rawProps?: { input?: (React.HTMLAttributes & Record<`data-${string}`, string>) | undefined; body?: (React.HTMLAttributes & Record<`data-${string}`, string>) | undefined; } | undefined; renderFooter?: ((props: PickerInputFooterProps) => React.ReactNode) | undefined; fixedBodyPosition?: boolean | undefined; portalTarget?: HTMLElement | undefined; inputCx?: ClassValue; bodyCx?: ClassValue; highlightSearchMatches?: boolean | undefined; } | SizeMod & IHasEditMode & PickerBaseOptions & { selectionMode: 'single'; valueType: 'entity'; } & IEditable & IAnalyticableOnChange & ICanFocus & IHasPlaceholder & IDisableable & ICanBeReadonly & IHasIcon & { editMode?: 'dropdown' | 'modal' | undefined; maxItems?: number | undefined; minBodyWidth?: number | undefined; isSingleLine?: boolean | undefined; dropdownPlacement?: Placement | undefined; renderToggler?: ((props: PickerTogglerProps) => React.ReactNode) | undefined; searchPosition?: 'none' | 'input' | 'body' | undefined; disableClear?: boolean | undefined; minCharsToSearch?: number | undefined; dropdownHeight?: number | undefined; autoFocus?: boolean | undefined; rawProps?: { input?: (React.HTMLAttributes & Record<`data-${string}`, string>) | undefined; body?: (React.HTMLAttributes & Record<`data-${string}`, string>) | undefined; } | undefined; renderFooter?: ((props: PickerInputFooterProps) => React.ReactNode) | undefined; fixedBodyPosition?: boolean | undefined; portalTarget?: HTMLElement | undefined; inputCx?: ClassValue; bodyCx?: ClassValue; highlightSearchMatches?: boolean | undefined; } | SizeMod & IHasEditMode & PickerBaseOptions & { selectionMode: 'multi'; valueType?: 'id' | undefined; emptyValue?: [] | null | undefined; } & IEditable & IAnalyticableOnChange & ICanFocus & IHasPlaceholder & IDisableable & ICanBeReadonly & IHasIcon & { editMode?: 'dropdown' | 'modal' | undefined; maxItems?: number | undefined; minBodyWidth?: number | undefined; isSingleLine?: boolean | undefined; dropdownPlacement?: Placement | undefined; renderToggler?: ((props: PickerTogglerProps) => React.ReactNode) | undefined; searchPosition?: 'none' | 'input' | 'body' | undefined; disableClear?: boolean | undefined; minCharsToSearch?: number | undefined; dropdownHeight?: number | undefined; autoFocus?: boolean | undefined; rawProps?: { input?: (React.HTMLAttributes & Record<`data-${string}`, string>) | undefined; body?: (React.HTMLAttributes & Record<`data-${string}`, string>) | undefined; } | undefined; renderFooter?: ((props: PickerInputFooterProps) => React.ReactNode) | undefined; fixedBodyPosition?: boolean | undefined; portalTarget?: HTMLElement | undefined; inputCx?: ClassValue; bodyCx?: ClassValue; highlightSearchMatches?: boolean | undefined; } | SizeMod & IHasEditMode & PickerBaseOptions & { selectionMode: 'multi'; valueType: 'entity'; emptyValue?: [] | null | undefined; } & IEditable & IAnalyticableOnChange & ICanFocus & IHasPlaceholder & IDisableable & ICanBeReadonly & IHasIcon & { editMode?: 'dropdown' | 'modal' | undefined; maxItems?: number | undefined; minBodyWidth?: number | undefined; isSingleLine?: boolean | undefined; dropdownPlacement?: Placement | undefined; renderToggler?: ((props: PickerTogglerProps) => React.ReactNode) | undefined; searchPosition?: 'none' | 'input' | 'body' | undefined; disableClear?: boolean | undefined; minCharsToSearch?: number | undefined; dropdownHeight?: number | undefined; autoFocus?: boolean | undefined; rawProps?: { input?: (React.HTMLAttributes & Record<`data-${string}`, string>) | undefined; body?: (React.HTMLAttributes & Record<`data-${string}`, string>) | undefined; } | undefined; renderFooter?: ((props: PickerInputFooterProps) => React.ReactNode) | undefined; fixedBodyPosition?: boolean | undefined; portalTarget?: HTMLElement | undefined; inputCx?: ClassValue; bodyCx?: ClassValue; highlightSearchMatches?: boolean | undefined; }", "print": [ "type CompletePickerInputProps = PickerInputProps & PickerInputBaseProps;" ] @@ -47268,7 +47268,7 @@ "Allow to customize how each selectable row is rendered. Can be used to add subtitles, avatars, etc." ], "typeValue": { - "raw": "(props: DataSourceState, any>) => React.ReactNode" + "raw": "(props: DataRowProps, dataSourceState: DataSourceState, any>) => React.ReactNode" }, "from": "@epam/uui-core:PickerBaseOptions", "required": false @@ -48427,7 +48427,7 @@ "Called when component is clicked" ], "typeValue": { - "raw": "((e?: any) => void) & ((rowProps: DataRowProps) => void)" + "raw": "((e?: any) => void) & ((rowProps: DataRowProps) => void) & ((rowProps: DataRowProps) => void)" }, "from": "@epam/uui-core:IClickable", "required": false @@ -48505,7 +48505,7 @@ "If row needs a checkbox, this field should be specified and it props can be configured here" ], "typeValue": { - "raw": "{ isVisible: boolean; } & ICanBeInvalid" + "raw": "{ isVisible: boolean; } & IDisableable & ICanBeInvalid" }, "from": "@epam/uui-core:DataRowOptions", "required": false @@ -49302,7 +49302,7 @@ "uid": 8, "name": "onCopy", "typeValue": { - "raw": "(copyFrom: DataTableSelectedCellData[]) => void" + "raw": "(copyFrom: DataTableSelectedCellData, selectedCells: DataTableSelectedCellData[]) => void" }, "required": false }, @@ -49624,7 +49624,7 @@ "uid": 5, "name": "setDisplayedDateAndView", "typeValue": { - "raw": "(displayedDate: ViewType) => void" + "raw": "(displayedDate: Dayjs, view: ViewType) => void" }, "from": "@epam/uui-components:DatePickerBodyBaseProps", "required": true @@ -49660,7 +49660,7 @@ "uid": 9, "name": "renderDay", "typeValue": { - "raw": "(day: Dayjs) => void) => React.ReactElement>" + "raw": "(day: Dayjs, onDayClick: (day: Dayjs) => void) => React.ReactElement>" }, "from": "@epam/uui-components:DatePickerBodyBaseOptions", "required": false @@ -49801,7 +49801,7 @@ "Overrides rendering of the single day. For example, to highlight certain days" ], "typeValue": { - "raw": "(day: Dayjs) => void) => React.ReactElement>" + "raw": "(day: Dayjs, onDayClick: (day: Dayjs) => void) => React.ReactElement>" }, "from": "@epam/uui-core:BaseDatePickerProps", "required": false @@ -56016,7 +56016,7 @@ "Called when component is clicked" ], "typeValue": { - "raw": "((e?: any) => void) & ((rowProps: DataRowProps) => void)" + "raw": "((e?: any) => void) & ((rowProps: DataRowProps) => void) & ((rowProps: DataRowProps) => void)" }, "from": "@epam/uui-core:IClickable", "required": false @@ -56094,7 +56094,7 @@ "If row needs a checkbox, this field should be specified and it props can be configured here" ], "typeValue": { - "raw": "{ isVisible: boolean; } & ICanBeInvalid" + "raw": "{ isVisible: boolean; } & IDisableable & ICanBeInvalid" }, "from": "@epam/uui-core:DataRowOptions", "required": false @@ -56577,7 +56577,7 @@ "Called when component is clicked" ], "typeValue": { - "raw": "((e?: any) => void) & ((rowProps: DataRowProps) => void)" + "raw": "((e?: any) => void) & ((rowProps: DataRowProps) => void) & ((rowProps: DataRowProps) => void)" }, "from": "@epam/uui-core:IClickable", "required": false @@ -56655,7 +56655,7 @@ "If row needs a checkbox, this field should be specified and it props can be configured here" ], "typeValue": { - "raw": "{ isVisible: boolean; } & ICanBeInvalid" + "raw": "{ isVisible: boolean; } & IDisableable & ICanBeInvalid" }, "from": "@epam/uui-core:DataRowOptions", "required": false @@ -57094,7 +57094,7 @@ "details": { "kind": 264, "typeValue": { - "raw": "IHasEditMode | IHasEditMode | IHasEditMode | IHasEditMode", + "raw": "SizeMod & IHasPlaceholder & PickerModalOptions & { renderModalToggler?(props: IClickable & IHasCaption & IDisableable, selection: DataRowProps[]): React.ReactNode; noOptionsMessage?: React.ReactNode; } & PickerBaseOptions & { selectionMode: 'single'; valueType?: 'id' | undefined; } & IEditable & IAnalyticableOnChange & { maxDefaultItems?: number | undefined; maxTotalItems?: number | undefined; defaultIds?: TId[] | undefined; settingsKey?: string | undefined; sortBy?(item: TItem, sorting: SortingOption): string; } & IHasEditMode | SizeMod & IHasPlaceholder & PickerModalOptions & { renderModalToggler?(props: IClickable & IHasCaption & IDisableable, selection: DataRowProps[]): React.ReactNode; noOptionsMessage?: React.ReactNode; } & PickerBaseOptions & { selectionMode: 'single'; valueType: 'entity'; } & IEditable & IAnalyticableOnChange & { maxDefaultItems?: number | undefined; maxTotalItems?: number | undefined; defaultIds?: TId[] | undefined; settingsKey?: string | undefined; sortBy?(item: TItem, sorting: SortingOption): string; } & IHasEditMode | SizeMod & IHasPlaceholder & PickerModalOptions & { renderModalToggler?(props: IClickable & IHasCaption & IDisableable, selection: DataRowProps[]): React.ReactNode; noOptionsMessage?: React.ReactNode; } & PickerBaseOptions & { selectionMode: 'multi'; valueType?: 'id' | undefined; emptyValue?: [] | null | undefined; } & IEditable & IAnalyticableOnChange & { maxDefaultItems?: number | undefined; maxTotalItems?: number | undefined; defaultIds?: TId[] | undefined; settingsKey?: string | undefined; sortBy?(item: TItem, sorting: SortingOption): string; } & IHasEditMode | SizeMod & IHasPlaceholder & PickerModalOptions & { renderModalToggler?(props: IClickable & IHasCaption & IDisableable, selection: DataRowProps[]): React.ReactNode; noOptionsMessage?: React.ReactNode; } & PickerBaseOptions & { selectionMode: 'multi'; valueType: 'entity'; emptyValue?: [] | null | undefined; } & IEditable & IAnalyticableOnChange & { maxDefaultItems?: number | undefined; maxTotalItems?: number | undefined; defaultIds?: TId[] | undefined; settingsKey?: string | undefined; sortBy?(item: TItem, sorting: SortingOption): string; } & IHasEditMode", "print": [ "type PickerListProps = SizeMod & IHasPlaceholder & PickerModalOptions & {", " renderModalToggler?(props: IClickable & IHasCaption & IDisableable, selection: DataRowProps[]): React.ReactNode;", @@ -57137,7 +57137,7 @@ "uid": 118, "name": "renderFooter", "typeValue": { - "raw": "(props: IModal>) => React.ReactNode" + "raw": "(props: PickerFooterProps & Partial>) => React.ReactNode" }, "from": "@epam/uui-components:PickerModalOptions", "required": false @@ -57167,7 +57167,7 @@ "uid": 121, "name": "renderModalToggler", "typeValue": { - "raw": "(props: DataRowProps[]) => React.ReactNode" + "raw": "(props: IClickable & IHasCaption & IDisableable, selection: DataRowProps[]) => React.ReactNode" }, "required": false }, @@ -57234,7 +57234,7 @@ "Allow to customize how each selectable row is rendered. Can be used to add subtitles, avatars, etc." ], "typeValue": { - "raw": "(props: DataSourceState, any>) => React.ReactNode" + "raw": "(props: DataRowProps, dataSourceState: DataSourceState, any>) => React.ReactNode" }, "from": "@epam/uui-core:PickerBaseOptions", "required": false @@ -57283,7 +57283,7 @@ "Defines how items should be sorted. By default, items are shown in order they are provided to the DataSource" ], "typeValue": { - "raw": "((item: TItem, sorting: SortingOption) => string)" + "raw": "((item: TItem, sorting: SortingOption) => any) & ((item: TItem, sorting: SortingOption) => string)" }, "from": "@epam/uui-core:PickerBaseOptions", "required": false @@ -57675,7 +57675,7 @@ "details": { "kind": 264, "typeValue": { - "raw": "PickerModalOptions | PickerModalOptions | PickerModalOptions | PickerModalOptions", + "raw": "PickerBaseOptions & IHasCaption & { selectionMode: 'single'; valueType: 'id'; initialValue: TId; } & IModal & PickerModalOptions | PickerBaseOptions & IHasCaption & { selectionMode: 'single'; valueType: 'entity'; initialValue: TItem; } & IModal & PickerModalOptions | PickerBaseOptions & IHasCaption & { selectionMode: 'multi'; valueType: 'id'; initialValue: TId[]; } & IModal & PickerModalOptions | PickerBaseOptions & IHasCaption & { selectionMode: 'multi'; valueType: 'entity'; initialValue: TItem[]; } & IModal & PickerModalOptions", "print": [ "type PickerModalProps = PickerBaseOptions & IHasCaption & (PickerModalScalarProps | PickerModalArrayProps) & PickerModalOptions;" ] @@ -57736,7 +57736,7 @@ "Allow to customize how each selectable row is rendered. Can be used to add subtitles, avatars, etc." ], "typeValue": { - "raw": "(props: DataSourceState, any>) => React.ReactNode" + "raw": "(props: DataRowProps, dataSourceState: DataSourceState, any>) => React.ReactNode" }, "from": "@epam/uui-core:PickerBaseOptions", "required": false @@ -57954,7 +57954,7 @@ "uid": 106, "name": "renderFooter", "typeValue": { - "raw": "(props: IModal>) => React.ReactNode" + "raw": "(props: PickerFooterProps & Partial>) => React.ReactNode" }, "from": "@epam/uui-components:PickerModalOptions", "required": false @@ -58647,7 +58647,7 @@ "uid": 4, "name": "renderHeader", "typeValue": { - "raw": "(props: PickerBodyValue>) => React.ReactNode" + "raw": "(props: IEditable>) => React.ReactNode" }, "required": false }, @@ -58682,7 +58682,7 @@ "uid": 8, "name": "renderDay", "typeValue": { - "raw": "(day: Dayjs) => void) => React.ReactElement>" + "raw": "(day: Dayjs, onDayClick: (day: Dayjs) => void) => React.ReactElement>" }, "from": "@epam/uui-components:DatePickerBodyBaseOptions", "required": false @@ -58907,7 +58907,7 @@ "Overrides rendering of the single day. For example, to highlight certain days" ], "typeValue": { - "raw": "(day: Dayjs) => void) => React.ReactElement>" + "raw": "(day: Dayjs, onDayClick: (day: Dayjs) => void) => React.ReactElement>" }, "from": "@epam/uui-core:BaseRangeDatePickerProps", "required": false @@ -59134,7 +59134,7 @@ " See [AnalyticsContext](@link https://uui.epam.com/documents?id=analyticsContext&mode=doc&skin=UUI4_promo&category=contexts)." ], "typeValue": { - "raw": "(newValue: AnalyticsEvent" + "raw": "(newValue: RangeDatePickerValue | null, oldValue: RangeDatePickerValue | null) => AnalyticsEvent" }, "from": "@epam/uui-core:IAnalyticableOnChange", "required": false @@ -62942,7 +62942,7 @@ "uid": 18, "name": "modifiers", "typeValue": { - "raw": "(Modifier>)[]" + "raw": "(StrictModifier | Partial>)[]" }, "from": "@epam/uui-core:DropdownProps", "required": false @@ -64655,7 +64655,7 @@ "uid": 1, "name": "getErrorInfo", "typeValue": { - "raw": "(uuiError: UuiErrorInfo" + "raw": "(uuiError: UuiError | Error | ApiCallInfo, defaultErrorInfo: UuiErrorInfo) => UuiErrorInfo" }, "required": false }, @@ -66696,7 +66696,7 @@ "uid": 14, "name": "modifiers", "typeValue": { - "raw": "(Modifier>)[]" + "raw": "(StrictModifier | Partial>)[]" }, "from": "@epam/uui-core:DropdownProps", "required": false @@ -68182,7 +68182,7 @@ "uid": 1, "name": "getInfo", "typeValue": { - "raw": "(error: any, defaultErrorInfo: UuiErrorInfo" + "raw": "(error: any, defaultErrorInfo: UuiErrorInfo) => UuiErrorInfo" }, "required": false } @@ -69036,7 +69036,7 @@ "uid": 1, "name": "api", "typeValue": { - "raw": "MakeMeUser, string | number, any>" + "raw": "LazyDataSourceApi" }, "required": true } @@ -71639,7 +71639,7 @@ "uid": 14, "name": "modifiers", "typeValue": { - "raw": "(Modifier>)[]" + "raw": "(StrictModifier | Partial>)[]" }, "from": "@epam/uui-core:DropdownProps", "required": false @@ -71877,7 +71877,7 @@ "uid": 6, "name": "data", "typeValue": { - "raw": "{ imageSize: SlateImgAlign; } & Partial | { imageSize: FileUploadResponse>" + "raw": "{ imageSize: SlateImageSize; align: SlateImgAlign; } & Partial | { imageSize: SlateImageSize; align: SlateImgAlign; } & Partial" }, "from": "@epam/uui-editor:SlateProps", "required": true @@ -72131,7 +72131,7 @@ "uid": 1, "name": "data", "typeValue": { - "raw": "{ imageSize: SlateImgAlign; } & Partial | { imageSize: FileUploadResponse>" + "raw": "{ imageSize: SlateImageSize; align: SlateImgAlign; } & Partial | { imageSize: SlateImageSize; align: SlateImgAlign; } & Partial" }, "required": true } diff --git a/uui-build/docsGen/converters/converterUtils/typeUtils.ts b/uui-build/docsGen/converters/converterUtils/typeUtils.ts index c8c29e2224..f336099f71 100644 --- a/uui-build/docsGen/converters/converterUtils/typeUtils.ts +++ b/uui-build/docsGen/converters/converterUtils/typeUtils.ts @@ -4,7 +4,7 @@ import { SymbolUtils } from './symbolUtils'; export class TypeUtils { static getCompilerTypeText(type: Type): string { - return type.getText().replace(/import.*"\)\.*/g, '').replace(/"/g, "'"); + return type.getText().replace(/import\("[^()"]+"\)\./g, '').replace(/"/g, "'"); } // TODO: review kinds, add tests