@epam/ai-dial-catalog 1.3.0-dev.294 → 1.3.0-dev.304

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.
@@ -0,0 +1,79 @@
1
+ import { DeploymentSelectorExtraOption } from '../components/DeploymentSelectorField/DeploymentSelectorField';
2
+ import { DeploymentSelectorLayout } from '../types/deployment-selector-layout';
3
+ import { CatalogItem } from './catalog-item';
4
+ /** Localizable string labels for `DeploymentSelectorPanel`. */
5
+ export interface DeploymentSelectorPanelLabels {
6
+ /** Placeholder and accessible label for the search input. Default: `'Search models, agents…'`. */
7
+ searchPlaceholder?: string;
8
+ /** Accessible label for the clear-search button. Default: `'Clear search'`. */
9
+ clearSearchLabel?: string;
10
+ /** Heading above the favorites list in the sectioned layout. Default: `'Favorites'`. */
11
+ favoritesLabel?: string;
12
+ /** Hint shown when Favorites is empty. Default: `'Star a model or agent to pin it here.'`. */
13
+ emptyHint?: string;
14
+ /** Label for the footer action button. Default: `'Catalog'`. */
15
+ browseCatalogLabel?: string;
16
+ /** Accessible label for the remove-from-favorites button. Default: `'Remove from favorites'`. */
17
+ removeFromFavoritesLabel?: string;
18
+ /** Heading above the currently-selected row in the sectioned layout. Default: `'Currently selected'`. */
19
+ currentlySelectedLabel?: string;
20
+ /** Accessible label for the add-to-favorites button. Default: `'Add to favorites'`. */
21
+ addToFavoritesLabel?: string;
22
+ /** Accessible label for the list of selectable deployments. Default: `'Select model'`. */
23
+ listAriaLabel?: string;
24
+ /** Note on a selected row whose deployment the operator has hidden. Default: `'Unavailable'`. */
25
+ unavailableLabel?: string;
26
+ }
27
+ /** Color overrides for `DeploymentSelectorPanel`, applied as CSS custom properties. */
28
+ export interface DeploymentSelectorPanelColors {
29
+ /** Background of the search header, sticky heading and footer. Fallback: `--bg-layer-raised`. */
30
+ surface?: string;
31
+ /** Section heading text color. Fallback: `--text-tertiary`. */
32
+ sectionHeading?: string;
33
+ /** Empty-favorites hint text color. Fallback: `--text-secondary`. */
34
+ emptyHint?: string;
35
+ /** Footer top border color. Fallback: `--stroke-tertiary`. */
36
+ footerBorder?: string;
37
+ /** Filled star icon color. Fallback: `--text-warning-icon`. */
38
+ starFilled?: string;
39
+ }
40
+ /** Props for `DeploymentSelectorPanel`. */
41
+ export interface DeploymentSelectorPanelProps {
42
+ /** Starred catalog items to display in the Favorites list. */
43
+ favorites: CatalogItem[];
44
+ /** Non-deployment rows rendered above every catalog section. Defaults to none. */
45
+ extraOptions?: DeploymentSelectorExtraOption[];
46
+ /** Operator-default item pinned ahead of favorites, whether starred or not. */
47
+ pinnedItem?: CatalogItem;
48
+ /** Whether the pinned row carries a favourite toggle. Defaults to `true`. */
49
+ canFavoritePinnedItem?: boolean;
50
+ /** ID of the currently selected deployment. */
51
+ selectedId?: string | null;
52
+ /** Full catalog item for the selection, so it can be shown even when it is not a favourite. */
53
+ selectedItem?: CatalogItem;
54
+ /** Returns whether an item belongs in the picker. Defaults to items listed under the Model or Agent tab. */
55
+ isSelectableItem?: (item: CatalogItem) => boolean;
56
+ /** Row arrangement. Defaults to `DeploymentSelectorLayout.Sectioned`. */
57
+ layout?: DeploymentSelectorLayout;
58
+ /** Called with the selected item's id. The panel calls `onClose` after it. */
59
+ onSelect: (id: string) => void;
60
+ /** Called after the row's exit animation when a star toggle is clicked. */
61
+ onToggleFavorite: (id: string, isFavorite: boolean) => Promise<void> | void;
62
+ /** Called when the footer button is clicked. The panel calls `onClose` after it. */
63
+ onBrowseCatalog?: () => void;
64
+ /** Called by the panel to request that the parent popover close. */
65
+ onClose: () => void;
66
+ /** Localized string overrides. */
67
+ labels?: DeploymentSelectorPanelLabels;
68
+ /** Color overrides, applied as CSS custom properties on the panel root. */
69
+ colors?: DeploymentSelectorPanelColors;
70
+ /** CSS class of the section headings. Defaults to `'dial-tiny-lead-semi-text'`. */
71
+ sectionHeadingClassName?: string;
72
+ /** CSS class of each row's name. Defaults to `'dial-small-text'`. */
73
+ itemNameClassName?: string;
74
+ /** CSS class of the empty-favorites hint. Defaults to `'dial-small-text'`. */
75
+ emptyHintClassName?: string;
76
+ /** Additional classes merged over the panel root's defaults. */
77
+ className?: string;
78
+ }
79
+ //# sourceMappingURL=deployment-selector-panel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployment-selector-panel.d.ts","sourceRoot":"","sources":["../../src/models/deployment-selector-panel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,+DAA+D,CAAC;AACnH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,+DAA+D;AAC/D,MAAM,WAAW,6BAA6B;IAC5C,kGAAkG;IAClG,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,+EAA+E;IAC/E,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,wFAAwF;IACxF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,8FAA8F;IAC9F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gEAAgE;IAChE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iGAAiG;IACjG,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,yGAAyG;IACzG,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,uFAAuF;IACvF,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,0FAA0F;IAC1F,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iGAAiG;IACjG,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,uFAAuF;AACvF,MAAM,WAAW,6BAA6B;IAC5C,iGAAiG;IACjG,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+DAA+D;IAC/D,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8DAA8D;IAC9D,YAAY,CAA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;CACpB"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-catalog",
3
3
  "description": "Marketplace catalog component for browsing models, tools, and assistants with search, filter, and sort",
4
- "version": "1.3.0-dev.294",
4
+ "version": "1.3.0-dev.304",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "sideEffects": [
@@ -28,11 +28,11 @@
28
28
  "dependencies": {
29
29
  "@tabler/icons-react": "^3.50.0",
30
30
  "ag-grid-community": "^35.3.0",
31
- "@epam/ai-dial-publish-panel": "1.3.0-dev.294"
31
+ "@epam/ai-dial-publish-panel": "1.3.0-dev.304"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "react": "^19.2.8",
35
- "@epam/ai-dial-chat-shared": "1.3.0-dev.294",
35
+ "@epam/ai-dial-chat-shared": "1.3.0-dev.304",
36
36
  "@epam/ai-dial-ui-kit": "^0.16.0-dev.67"
37
37
  },
38
38
  "repository": {
@@ -0,0 +1,8 @@
1
+ /** How `DeploymentSelectorPanel` arranges the selected, pinned and favourite rows. */
2
+ export declare enum DeploymentSelectorLayout {
3
+ /** A "Currently selected" section above a headed Favorites section. */
4
+ Sectioned = "sectioned",
5
+ /** One list without headings: pinned row, then the selection when it is not a favourite, then favourites. */
6
+ Flat = "flat"
7
+ }
8
+ //# sourceMappingURL=deployment-selector-layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployment-selector-layout.d.ts","sourceRoot":"","sources":["../../src/types/deployment-selector-layout.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,oBAAY,wBAAwB;IAClC,uEAAuE;IACvE,SAAS,cAAc;IACvB,6GAA6G;IAC7G,IAAI,SAAS;CACd"}
@@ -1,3 +1,8 @@
1
1
  /** Returns the nearest scrollable ancestor, falling back to `<html>`. */
2
2
  export declare const getScrollParent: (el: Element | null) => Element;
3
+ /**
4
+ * Scrolls `container` vertically just enough to bring `child` fully into
5
+ * view. Unlike `scrollIntoView`, no other scrollable ancestor moves.
6
+ */
7
+ export declare const scrollChildIntoContainerView: (container: HTMLElement, child: HTMLElement) => void;
3
8
  //# sourceMappingURL=scroll-window.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"scroll-window.d.ts","sourceRoot":"","sources":["../../src/utils/scroll-window.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,eAAO,MAAM,eAAe,GAAI,IAAI,OAAO,GAAG,IAAI,KAAG,OAYpD,CAAC"}
1
+ {"version":3,"file":"scroll-window.d.ts","sourceRoot":"","sources":["../../src/utils/scroll-window.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,eAAO,MAAM,eAAe,GAAI,IAAI,OAAO,GAAG,IAAI,KAAG,OAYpD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,4BAA4B,GACvC,WAAW,WAAW,EACtB,OAAO,WAAW,KACjB,IAWF,CAAC"}