@epam/ai-dial-catalog 1.3.0-dev.28 → 1.3.0-dev.288

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.
Files changed (123) hide show
  1. package/components/AddOnCatalogModal/AddOnCatalogModal.d.ts +44 -0
  2. package/components/AddOnCatalogModal/AddOnCatalogModal.d.ts.map +1 -0
  3. package/components/AddOnListItem/AddOnListItem.d.ts +65 -0
  4. package/components/AddOnListItem/AddOnListItem.d.ts.map +1 -0
  5. package/components/AppIdentity/AppIdentity.d.ts +5 -8
  6. package/components/AppIdentity/AppIdentity.d.ts.map +1 -1
  7. package/components/ApplicationCredentials/ApplicationCredentialRow/ApplicationCredentialRow.d.ts +3 -1
  8. package/components/ApplicationCredentials/ApplicationCredentialRow/ApplicationCredentialRow.d.ts.map +1 -1
  9. package/components/ApplicationCredentials/ApplicationCredentials.d.ts.map +1 -1
  10. package/components/CardGrid/Card.d.ts.map +1 -1
  11. package/components/CardGrid/CardGrid.d.ts.map +1 -1
  12. package/components/CardGrid/CardRowRenderer.d.ts.map +1 -1
  13. package/components/Catalog/Catalog.d.ts.map +1 -1
  14. package/components/Catalog/CreateButton.d.ts +8 -1
  15. package/components/Catalog/CreateButton.d.ts.map +1 -1
  16. package/components/Catalog/CreateMenuSheet.d.ts +5 -0
  17. package/components/Catalog/CreateMenuSheet.d.ts.map +1 -1
  18. package/components/CatalogPickerModal/CatalogPickerModal.d.ts +108 -0
  19. package/components/CatalogPickerModal/CatalogPickerModal.d.ts.map +1 -0
  20. package/components/ClampedName/ClampedName.d.ts.map +1 -1
  21. package/components/DeploymentSelectorField/DeploymentSelectorField.d.ts.map +1 -1
  22. package/components/Details/ApiDetails.d.ts.map +1 -1
  23. package/components/Details/Credentials/CredentialsIdentityIcon/CredentialsIdentityIcon.d.ts +1 -1
  24. package/components/Details/Credentials/CredentialsIdentityIcon/CredentialsIdentityIcon.d.ts.map +1 -1
  25. package/components/Details/Credentials/CredentialsInfoCard/CredentialsInfoCard.d.ts.map +1 -1
  26. package/components/Details/Credentials/CredentialsManagementPanel/CredentialsManagementPanel.d.ts +1 -1
  27. package/components/Details/Credentials/CredentialsManagementPanel/CredentialsManagementPanel.d.ts.map +1 -1
  28. package/components/Details/Credentials/CredentialsRow/CredentialsRow.d.ts.map +1 -1
  29. package/components/Details/DetailsPanel.d.ts.map +1 -1
  30. package/components/Details/Header/CredentialsApiKeyOverlay/CredentialsApiKeyOverlay.d.ts +6 -4
  31. package/components/Details/Header/CredentialsApiKeyOverlay/CredentialsApiKeyOverlay.d.ts.map +1 -1
  32. package/components/Details/Header/Header.d.ts +4 -3
  33. package/components/Details/Header/Header.d.ts.map +1 -1
  34. package/components/Details/TabsContent/Content.d.ts.map +1 -1
  35. package/components/Details/TabsContent/ContentFileTree/ContentFileTree.d.ts +10 -0
  36. package/components/Details/TabsContent/ContentFileTree/ContentFileTree.d.ts.map +1 -1
  37. package/components/Details/TabsContent/Limits/LimitRow.d.ts.map +1 -1
  38. package/components/Details/TabsContent/Tools/Tools.d.ts +2 -0
  39. package/components/Details/TabsContent/Tools/Tools.d.ts.map +1 -1
  40. package/components/Favorites/FavoriteCard.d.ts.map +1 -1
  41. package/components/Favorites/Favorites.d.ts +2 -2
  42. package/components/Favorites/Favorites.d.ts.map +1 -1
  43. package/components/Filter/Filter.d.ts +2 -0
  44. package/components/Filter/Filter.d.ts.map +1 -1
  45. package/components/ListView/ListView.d.ts +1 -1
  46. package/components/ListView/ListView.d.ts.map +1 -1
  47. package/components/ListView/Renders/EntityTypeCellRenderer.d.ts +2 -1
  48. package/components/ListView/Renders/EntityTypeCellRenderer.d.ts.map +1 -1
  49. package/components/ListView/columns.d.ts +3 -5
  50. package/components/ListView/columns.d.ts.map +1 -1
  51. package/components/PersonalEmptyState/PersonalEmptyState.d.ts +2 -2
  52. package/components/PersonalEmptyState/PersonalEmptyState.d.ts.map +1 -1
  53. package/components/ScrollToTopButton/ScrollToTopButton.d.ts +14 -0
  54. package/components/ScrollToTopButton/ScrollToTopButton.d.ts.map +1 -0
  55. package/components/Toolbar/Rows/TitleRow.d.ts +2 -1
  56. package/components/Toolbar/Rows/TitleRow.d.ts.map +1 -1
  57. package/constants/create-menu.d.ts +0 -2
  58. package/constants/create-menu.d.ts.map +1 -1
  59. package/entry-points/mapping.d.ts +5 -3
  60. package/entry-points/mapping.d.ts.map +1 -1
  61. package/hooks/useCatalogScrollToTop/useCatalogScrollToTop.d.ts +9 -0
  62. package/hooks/useCatalogScrollToTop/useCatalogScrollToTop.d.ts.map +1 -0
  63. package/hooks/useIsVerticallyClamped/useIsVerticallyClamped.d.ts +1 -1
  64. package/hooks/useIsVerticallyClamped/useIsVerticallyClamped.d.ts.map +1 -1
  65. package/index.css +3 -2
  66. package/index.d.ts +11 -3
  67. package/index.d.ts.map +1 -1
  68. package/index.js +2782 -2387
  69. package/{mapping-CA0Z7TOl.js → mapping-Bsy4fyg5.js} +35 -24
  70. package/mapping.js +1 -2
  71. package/models/application-credentials.d.ts +17 -0
  72. package/models/application-credentials.d.ts.map +1 -1
  73. package/models/card-props.d.ts +9 -0
  74. package/models/card-props.d.ts.map +1 -1
  75. package/models/card-row-data.d.ts +5 -0
  76. package/models/card-row-data.d.ts.map +1 -1
  77. package/models/catalog-item.d.ts +3 -1
  78. package/models/catalog-item.d.ts.map +1 -1
  79. package/models/catalog-props.d.ts +15 -3
  80. package/models/catalog-props.d.ts.map +1 -1
  81. package/models/catalog-styles.d.ts +13 -0
  82. package/models/catalog-styles.d.ts.map +1 -1
  83. package/models/favorites.d.ts +2 -0
  84. package/models/favorites.d.ts.map +1 -1
  85. package/models/grid-context.d.ts +1 -1
  86. package/models/grid-context.d.ts.map +1 -1
  87. package/models/grid-props.d.ts +7 -0
  88. package/models/grid-props.d.ts.map +1 -1
  89. package/models/item-details-props.d.ts +24 -0
  90. package/models/item-details-props.d.ts.map +1 -1
  91. package/models/list-props.d.ts +21 -26
  92. package/models/list-props.d.ts.map +1 -1
  93. package/models/scroll-to-top.d.ts +23 -0
  94. package/models/scroll-to-top.d.ts.map +1 -0
  95. package/models/toolbar-props.d.ts +3 -1
  96. package/models/toolbar-props.d.ts.map +1 -1
  97. package/package.json +5 -5
  98. package/types/load-status.d.ts +10 -0
  99. package/types/load-status.d.ts.map +1 -0
  100. package/types/toolset-auth.d.ts +1 -1
  101. package/types/toolset-auth.d.ts.map +1 -1
  102. package/utils/catalog-filter.d.ts +16 -0
  103. package/utils/catalog-filter.d.ts.map +1 -1
  104. package/utils/catalog-tabs.d.ts +9 -1
  105. package/utils/catalog-tabs.d.ts.map +1 -1
  106. package/utils/create-menu.d.ts +5 -1
  107. package/utils/create-menu.d.ts.map +1 -1
  108. package/utils/favorites-row.d.ts +8 -0
  109. package/utils/favorites-row.d.ts.map +1 -0
  110. package/utils/list-selection.d.ts +10 -10
  111. package/utils/list-selection.d.ts.map +1 -1
  112. package/utils/scroll-window.d.ts +0 -16
  113. package/utils/scroll-window.d.ts.map +1 -1
  114. package/utils/toolset-credentials.d.ts +17 -6
  115. package/utils/toolset-credentials.d.ts.map +1 -1
  116. package/utils/use-list-remove-focus.d.ts +4 -0
  117. package/utils/use-list-remove-focus.d.ts.map +1 -0
  118. package/components/ListView/Renders/SelectionCellRenderer.d.ts +0 -6
  119. package/components/ListView/Renders/SelectionCellRenderer.d.ts.map +0 -1
  120. package/components/ListView/Renders/SelectionHeader.d.ts +0 -4
  121. package/components/ListView/Renders/SelectionHeader.d.ts.map +0 -1
  122. package/components/ListView/selection-context.d.ts +0 -24
  123. package/components/ListView/selection-context.d.ts.map +0 -1
@@ -1,4 +1,5 @@
1
1
  import { CatalogEntityType } from '@epam/ai-dial-chat-shared';
2
+ import { Ref } from 'react';
2
3
  import { ListViewColumnVisibility } from '../components/ListView/columns';
3
4
  import { CatalogSelectionMode } from '../types/selection-mode';
4
5
  import { CatalogItem } from './catalog-item';
@@ -13,28 +14,18 @@ export interface ListViewTypography {
13
14
  /** Typography class for the last (deepest) folder segment, the one the folder cell displays. Default: `'dial-small-semi-text'`. */
14
15
  folderLastSegmentClassName?: string;
15
16
  }
16
- /** Color overrides for `ListView` cells, applied via CSS custom properties. */
17
+ /** Color overrides for `ListView` cell content, applied via CSS custom properties; the table chrome is the ui-kit `Grid` theme. */
17
18
  export interface ListViewColors {
18
- /** Grid container background. Fallback: `--bg-layer-raised`. */
19
- background?: string;
20
- /** Grid container border color. Fallback: `--stroke-secondary`. */
21
- border?: string;
22
- /** Sticky header background. Fallback: `--bg-layer-raised`. */
23
- headerBackground?: string;
24
- /** Divider color between header and rows. Fallback: `--stroke-tertiary`. */
25
- rowDivider?: string;
26
19
  /** Color of the filled star icon in the favorite column. Fallback: `--text-warning-icon`. */
27
20
  starFilled?: string;
28
21
  /** Color of the folder icon in the folder column. Fallback: `--text-secondary`. */
29
22
  folderIcon?: string;
30
- /** Background color of even-indexed grid rows. Fallback: `--bg-layer-base`. */
31
- rowEvenBackground?: string;
32
- /** Border color of the selected row. Fallback: `--stroke-accent`. */
33
- selectedRowBorder?: string;
34
- /** Background color (tint) of the selected row. Fallback: `--bg-control-accent-alpha-active`. */
35
- selectedRowBackground?: string;
36
23
  /** Color of the checkmark icon in the selected row's name cell. Fallback: `--text-accent`. */
37
24
  selectedRowCheckIcon?: string;
25
+ /** Color of the item name in the name cell. Fallback: `--text-primary`. */
26
+ nameText?: string;
27
+ /** Color of the version after the item name. Fallback: `--text-secondary`. */
28
+ versionText?: string;
38
29
  }
39
30
  /** Combined style overrides for `ListView`. */
40
31
  export interface ListViewStyles {
@@ -43,9 +34,18 @@ export interface ListViewStyles {
43
34
  /** Color overrides applied as CSS variables. */
44
35
  colors?: ListViewColors;
45
36
  }
37
+ /** Imperative handle exposed by `ListView` through its `ref`. */
38
+ export interface ListViewHandle {
39
+ /** Scrolls the grid rows back to the first row. */
40
+ scrollToTop: () => void;
41
+ }
46
42
  /** Props for ListView. */
47
43
  export interface ListViewProps {
48
- /** Type of catalog items being displayed. */
44
+ /** Receives the handle that scrolls the grid rows back to the first row. */
45
+ ref?: Ref<ListViewHandle>;
46
+ /** Called with the rows' vertical scroll offset in pixels whenever they scroll. */
47
+ onRowsScroll?: (top: number) => void;
48
+ /** Active Browse tab; drives column visibility and the Type label of items listed under it. */
49
49
  type: CatalogEntityType;
50
50
  /** Items to display in the table. */
51
51
  items: CatalogItem[];
@@ -53,24 +53,19 @@ export interface ListViewProps {
53
53
  query?: string;
54
54
  /** ARIA label for the grid element. Default: 'Catalog'. */
55
55
  ariaLabel?: string;
56
- /** Grid empty-state title. */
56
+ /** Grid empty-state title. Default: `'No results'`. */
57
57
  emptyStateTitle?: string;
58
+ /** Secondary line under the grid empty-state title. Omitted when not set. */
59
+ emptyStateDescription?: string;
58
60
  /** Grouped typography and color overrides for table cells. */
59
61
  styles?: ListViewStyles;
60
62
  /** Called when the star icon is toggled on a row. */
61
63
  onToggleFavorite?: (id: string, isStarred: boolean) => void;
62
64
  /** Rule for whether the favorite star is shown on a row; `false` hides it and makes the item non-favoritable. Defaults to visible when omitted. */
63
65
  isFavoriteVisible?: (item: CatalogItem) => boolean;
64
- /** Called when a table row is clicked (excluding the star column). */
66
+ /** Called when a table row is clicked (excluding the star column), or when Enter or Space is pressed on it in single selection mode. */
65
67
  onItemClick?: (item: CatalogItem) => void;
66
- /**
67
- * When set, the ag-grid column header becomes `position: sticky` at this
68
- * pixel offset from the scroll container's top edge. Pass the height of any
69
- * sticky UI above the list (e.g. the catalog page heading) so the header
70
- * sits flush below it while the page scrolls.
71
- */
72
- stickyHeaderTop?: number;
73
- /** ID of an item to visually mark as selected (border, tint, and checkmark). Ignored in `CatalogSelectionMode.Multiple`. */
68
+ /** ID of an item to mark as selected (row selection state and checkmark). Ignored in `CatalogSelectionMode.Multiple`. */
74
69
  selectedItemId?: string;
75
70
  /** Row selection mode; `Multiple` adds a checkbox column with a select-all header. Default: `CatalogSelectionMode.Single`. */
76
71
  selectionMode?: CatalogSelectionMode;
@@ -1 +1 @@
1
- {"version":3,"file":"list-props.d.ts","source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5B,mKAAmK;IACnK,8BAA8B,CAAC,EAAE,MAAM,CAAC;IACxC,6FAA6F;IAC7F,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;;OAOG;IACH,gBAAgB,CAAC,EAAE,wBAAwB,CAAC;CAC7C"}
@@ -0,0 +1,23 @@
1
+ import { RefObject } from 'react';
2
+ import { ListViewHandle } from './list-props';
3
+ /** Options for `useCatalogScrollToTop`. */
4
+ export interface CatalogScrollToTopOptions {
5
+ /** The scrollable element holding the catalog content, or `null` until it mounts. */
6
+ scrollBody: HTMLElement | null;
7
+ /** The search input that receives focus after scrolling to the top. */
8
+ searchInputRef: RefObject<HTMLInputElement | null>;
9
+ /** Handle of the list view, whose rows scroll inside their own box. */
10
+ listViewRef: RefObject<ListViewHandle | null>;
11
+ /** Whether the list view is the active view mode. */
12
+ isListView: boolean;
13
+ }
14
+ /** Return value of `useCatalogScrollToTop`. */
15
+ export interface CatalogScrollToTopResult {
16
+ /** Whether the user has scrolled down by at least one scroll-body height. */
17
+ isVisible: boolean;
18
+ /** Records the list rows' vertical scroll offset in pixels. */
19
+ handleRowsScroll: (top: number) => void;
20
+ /** Scrolls the scroll body and the list rows to the top, then focuses search. */
21
+ scrollToTop: () => void;
22
+ }
23
+ //# sourceMappingURL=scroll-to-top.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scroll-to-top.d.ts","sourceRoot":"","sources":["../../src/models/scroll-to-top.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,2CAA2C;AAC3C,MAAM,WAAW,yBAAyB;IACxC,qFAAqF;IACrF,UAAU,EAAE,WAAW,GAAG,IAAI,CAAC;IAC/B,uEAAuE;IACvE,cAAc,EAAE,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IACnD,uEAAuE;IACvE,WAAW,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC9C,qDAAqD;IACrD,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,+CAA+C;AAC/C,MAAM,WAAW,wBAAwB;IACvC,6EAA6E;IAC7E,SAAS,EAAE,OAAO,CAAC;IACnB,+DAA+D;IAC/D,gBAAgB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,iFAAiF;IACjF,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB"}
@@ -1,5 +1,5 @@
1
1
  import { SelectOption } from '@epam/ai-dial-ui-kit';
2
- import { ReactNode } from 'react';
2
+ import { ReactNode, Ref } from 'react';
3
3
  import { CatalogViewMode } from '../types/view-mode';
4
4
  /** Typography class overrides for `Toolbar`. */
5
5
  export interface ToolbarTypography {
@@ -81,6 +81,8 @@ export interface ToolbarProps {
81
81
  browseHeaderRenderer?: ReactNode;
82
82
  /** Search input placeholder. Default: 'Search models, tools, agents…'. */
83
83
  searchPlaceholder?: string;
84
+ /** Ref attached to the search `<input>`, e.g. so the host can focus it. */
85
+ searchInputRef?: Ref<HTMLInputElement>;
84
86
  /** Accessible label for switching to grid view. Default: 'Grid view'. */
85
87
  gridViewLabel?: string;
86
88
  /** Accessible label for switching to list view. Default: 'List view'. */
@@ -1 +1 @@
1
- {"version":3,"file":"toolbar-props.d.ts","sourceRoot":"","sources":["../../src/models/toolbar-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,gDAAgD;AAChD,MAAM,WAAW,iBAAiB;IAChC,gFAAgF;IAChF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,8EAA8E;IAC9E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4FAA4F;IAC5F,2BAA2B,CAAC,EAAE,MA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,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qFAAqF;IACrF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,8CAA8C;IAC9C,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,mFAAmF;IACnF,OAAO,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,sDAAsD;IACtD,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IACjD,8EAA8E;IAC9E,YAAY,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3B,uDAAuD;IACvD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gDAAgD;IAChD,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,6EAA6E;IAC7E,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,yDAAyD;IACzD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kFAAkF;IAClF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iCAAiC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,WAAW,CAAC,EAAE,YAAY,EAAE,CAAC;IAC7B,2EAA2E;IAC3E,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,sFAAsF;IACtF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kKAAkK;IAClK,oBAAoB,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAC;CAC3D"}
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.28",
4
+ "version": "1.3.0-dev.288",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "sideEffects": [
@@ -26,14 +26,14 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "@tabler/icons-react": "^3.44.0",
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.28"
31
+ "@epam/ai-dial-publish-panel": "1.3.0-dev.288"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "react": "^19.2.8",
35
- "@epam/ai-dial-chat-shared": "1.3.0-dev.28",
36
- "@epam/ai-dial-ui-kit": "^0.15.3"
35
+ "@epam/ai-dial-chat-shared": "1.3.0-dev.288",
36
+ "@epam/ai-dial-ui-kit": "^0.16.0-dev.62"
37
37
  },
38
38
  "repository": {
39
39
  "type": "git",
@@ -0,0 +1,10 @@
1
+ /** Where the data behind a `CatalogPickerModal` stands. */
2
+ export declare enum CatalogLoadStatus {
3
+ /** The items are still being fetched; the picker shows a spinner. */
4
+ Loading = "loading",
5
+ /** The items are in; the picker lists them. */
6
+ Ready = "ready",
7
+ /** The items failed to load; the picker shows the error, with Retry when `onRetry` is given. */
8
+ Error = "error"
9
+ }
10
+ //# sourceMappingURL=load-status.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"load-status.d.ts","sourceRoot":"","sources":["../../src/types/load-status.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAC3D,oBAAY,iBAAiB;IAC3B,qEAAqE;IACrE,OAAO,YAAY;IACnB,+CAA+C;IAC/C,KAAK,UAAU;IACf,gGAAgG;IAChG,KAAK,UAAU;CAChB"}
@@ -20,7 +20,7 @@ export declare enum CredentialStatus {
20
20
  export declare enum CredentialsLevel {
21
21
  /** The current user's own, personal credentials. */
22
22
  User = "USER",
23
- /** Organization-wide credentials shared by all users of a public toolset. */
23
+ /** Toolset-level credentials: organization-wide on a public toolset, the owner's own on a private one. */
24
24
  Global = "GLOBAL"
25
25
  }
26
26
  /** Resolved UI state for the credentials trigger button/section. */
@@ -1 +1 @@
1
- {"version":3,"file":"toolset-auth.d.ts","sourceRoot":"","sources":["../../src/types/toolset-auth.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,oBAAY,yBAAyB;IACnC,+BAA+B;IAC/B,IAAI,SAAS;IACb,0CAA0C;IAC1C,MAAM,YAAY;IAClB,wDAAwD;IACxD,KAAK,UAAU;CAChB;AAED,gEAAgE;AAChE,oBAAY,gBAAgB;IAC1B,yCAAyC;IACzC,QAAQ,cAAc;IACtB,kCAAkC;IAClC,SAAS,eAAe;IACxB,mDAAmD;IACnD,MAAM,WAAW;CAClB;AAED,6DAA6D;AAC7D,oBAAY,gBAAgB;IAC1B,oDAAoD;IACpD,IAAI,SAAS;IACb,6EAA6E;IAC7E,MAAM,WAAW;CAClB;AAED,oEAAoE;AACpE,oBAAY,kBAAkB;IAC5B,4EAA4E;IAC5E,iBAAiB,uBAAuB;IACxC,wEAAwE;IACxE,gBAAgB,wBAAwB;IACxC,6CAA6C;IAC7C,KAAK,WAAW;IAChB,uCAAuC;IACvC,MAAM,YAAY;CACnB;AAED,wGAAwG;AACxG,oBAAY,qBAAqB;IAC/B,SAAS,eAAe;CACzB;AAED,qHAAqH;AACrH,oBAAY,sBAAsB;IAChC,kIAAkI;IAClI,mBAAmB,0BAA0B;IAC7C,mFAAmF;IACnF,oBAAoB,2BAA2B;IAC/C,2IAA2I;IAC3I,yBAAyB,gCAAgC;CAC1D"}
1
+ {"version":3,"file":"toolset-auth.d.ts","sourceRoot":"","sources":["../../src/types/toolset-auth.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,oBAAY,yBAAyB;IACnC,+BAA+B;IAC/B,IAAI,SAAS;IACb,0CAA0C;IAC1C,MAAM,YAAY;IAClB,wDAAwD;IACxD,KAAK,UAAU;CAChB;AAED,gEAAgE;AAChE,oBAAY,gBAAgB;IAC1B,yCAAyC;IACzC,QAAQ,cAAc;IACtB,kCAAkC;IAClC,SAAS,eAAe;IACxB,mDAAmD;IACnD,MAAM,WAAW;CAClB;AAED,6DAA6D;AAC7D,oBAAY,gBAAgB;IAC1B,oDAAoD;IACpD,IAAI,SAAS;IACb,0GAA0G;IAC1G,MAAM,WAAW;CAClB;AAED,oEAAoE;AACpE,oBAAY,kBAAkB;IAC5B,4EAA4E;IAC5E,iBAAiB,uBAAuB;IACxC,wEAAwE;IACxE,gBAAgB,wBAAwB;IACxC,6CAA6C;IAC7C,KAAK,WAAW;IAChB,uCAAuC;IACvC,MAAM,YAAY;CACnB;AAED,wGAAwG;AACxG,oBAAY,qBAAqB;IAC/B,SAAS,eAAe;CACzB;AAED,qHAAqH;AACrH,oBAAY,sBAAsB;IAChC,kIAAkI;IAClI,mBAAmB,0BAA0B;IAC7C,mFAAmF;IACnF,oBAAoB,2BAA2B;IAC/C,2IAA2I;IAC3I,yBAAyB,gCAAgC;CAC1D"}
@@ -20,4 +20,20 @@ export declare const getTopicOptions: (items: CatalogItem[]) => Set<string>;
20
20
  export declare const filterCatalogItems: (items: CatalogItem[], query: string) => CatalogItem[];
21
21
  /** Returns a copy of `checked` with `topic` added, or removed when it was already selected. */
22
22
  export declare const toggleTopic: (topic: string, checked: Set<string>) => Set<string>;
23
+ /** A catalog toolbar's search, From filter and sort, as `filterCatalogItemsByQuery` applies them. */
24
+ export interface CatalogItemsQuery {
25
+ /** Name search, case-insensitive and trimmed. */
26
+ search: string;
27
+ /** Topics to keep; an empty set keeps every item. */
28
+ topics: Set<string>;
29
+ /** Whether to keep only the user's own items (`isMyApp`). */
30
+ isMyOnly: boolean;
31
+ /** A `CatalogSortKey` value. */
32
+ sortKey: string;
33
+ }
34
+ /**
35
+ * Applies a catalog toolbar's search, From filter (topics and "My") and sort,
36
+ * in the order and with the meaning of the catalog's own toolbar.
37
+ */
38
+ export declare const filterCatalogItemsByQuery: (items: CatalogItem[], { search, topics, isMyOnly, sortKey }: CatalogItemsQuery) => CatalogItem[];
23
39
  //# sourceMappingURL=catalog-filter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"catalog-filter.d.ts","sourceRoot":"","sources":["../../src/utils/catalog-filter.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AC/C,eAAO,MAAM,aAAa,GAAI,OAAO,WAAW,EAAE,KAAG,WAAW,EACjB,CAAC;AAEhD,uEAAuE;AACvE,eAAO,MAAM,eAAe,GAAI,OAAO,WAAW,EAAE,KAAG,GAAG,CAAC,MAAM,CAClB,CAAC;AAEhD;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,GAC7B,OAAO,WAAW,EAAE,EACpB,OAAO,MAAM,KACZ,WAAW,EAMb,CAAC;AAEF,+FAA+F;AAC/F,eAAO,MAAM,WAAW,GACtB,OAAO,MAAM,EACb,SAAS,GAAG,CAAC,MAAM,CAAC,KACnB,GAAG,CAAC,MAAM,CAQZ,CAAC;AAEF,qGAAqG;AACrG,MAAM,WAAW,iBAAiB;IAChC,iDAAiD;IACjD,MAAM,EAAE,MAAM,CAAC;IACf,qDAAqD;IACrD,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACpB,6DAA6D;IAC7D,QAAQ,EAAE,OAAO,CAAC;IAClB,gCAAgC;IAChC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,eAAO,MAAM,yBAAyB,GACpC,OAAO,WAAW,EAAE,EACpB,uCAAuC,iBAAiB,KACvD,WAAW,EAMb,CAAC"}
@@ -1,8 +1,16 @@
1
1
  import { CatalogEntityType } from '@epam/ai-dial-chat-shared';
2
2
  import { TabModel } from '@epam/ai-dial-ui-kit';
3
3
  import { CatalogItem } from '../models/catalog-item';
4
- /** Derives entity-type tabs from items present in the catalog, sorted by canonical order. */
4
+ /** Canonical display order for entity type tabs. */
5
+ export declare const CATALOG_TAB_ORDER: readonly CatalogEntityType[];
6
+ /** Returns the Browse tabs `item` is listed under: its non-empty `catalogTabs`, otherwise `[item.type]`. */
7
+ export declare const getCatalogItemTabs: (item: CatalogItem) => readonly CatalogEntityType[];
8
+ /** Returns the entity type `item` is labeled with under `activeTab`: the tab itself when the item is listed there, otherwise `item.type`. */
9
+ export declare const getCatalogItemDisplayType: (item: CatalogItem, activeTab?: CatalogEntityType) => CatalogEntityType;
10
+ /** Derives entity-type tabs from the tabs the catalog's items are listed under, sorted by canonical order. */
5
11
  export declare const buildCatalogTabs: (items: CatalogItem[], tabLabels?: Partial<Record<CatalogEntityType, string>>) => TabModel[];
6
12
  /** Scrolls a horizontally scrolling tab row just enough to bring its selected tab fully into view. */
7
13
  export declare const scrollSelectedTabIntoView: (row: HTMLElement) => void;
14
+ /** Returns a tab-dependent text: the string itself, or the callback's result for `activeTab`. */
15
+ export declare const resolveTabText: (text: string | ((activeTab: string) => string) | undefined, activeTab: string) => string | undefined;
8
16
  //# sourceMappingURL=catalog-tabs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"catalog-tabs.d.ts","sourceRoot":"","sources":["../../src/utils/catalog-tabs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAuB1D,6FAA6F;AAC7F,eAAO,MAAM,gBAAgB,GAC3B,OAAO,WAAW,EAAE,EACpB,YAAY,OAAO,CAAC,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC,KACrD,QAAQ,EAOV,CAAC;AAEF,sGAAsG;AACtG,eAAO,MAAM,yBAAyB,GAAI,KAAK,WAAW,KAAG,IAiB5D,CAAC"}
1
+ {"version":3,"file":"catalog-tabs.d.ts","sourceRoot":"","sources":["../../src/utils/catalog-tabs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAc1D,oDAAoD;AACpD,eAAO,MAAM,iBAAiB,EAAE,SAAS,iBAAiB,EAMzD,CAAC;AAEF,4GAA4G;AAC5G,eAAO,MAAM,kBAAkB,GAC7B,MAAM,WAAW,KAChB,SAAS,iBAAiB,EAGZ,CAAC;AAElB,6IAA6I;AAC7I,eAAO,MAAM,yBAAyB,GACpC,MAAM,WAAW,EACjB,YAAY,iBAAiB,KAC5B,iBAGY,CAAC;AAEhB,8GAA8G;AAC9G,eAAO,MAAM,gBAAgB,GAC3B,OAAO,WAAW,EAAE,EACpB,YAAY,OAAO,CAAC,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC,KACrD,QAAQ,EASV,CAAC;AAEF,sGAAsG;AACtG,eAAO,MAAM,yBAAyB,GAAI,KAAK,WAAW,KAAG,IAiB5D,CAAC;AAEF,iGAAiG;AACjG,eAAO,MAAM,cAAc,GACzB,MAAM,MAAM,GAAG,CAAC,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,SAAS,EAC1D,WAAW,MAAM,KAChB,MAAM,GAAG,SAAkE,CAAC"}
@@ -1,7 +1,11 @@
1
1
  import { DropdownItem } from '@epam/ai-dial-ui-kit';
2
2
  import { MouseEvent } from 'react';
3
3
  import { CatalogCreateSearch, CatalogTabCreateMenu } from '../models/catalog-props';
4
- /** Returns `items` with every string label, nested ones included, rendered through a single-line `Highlight` for `query`. */
4
+ /**
5
+ * Returns `items` with every option's string label, nested ones included,
6
+ * rendered through a single-line `Highlight` for `query`. Divider and
7
+ * plain-text rows (such as a section header) are returned unchanged.
8
+ */
5
9
  export declare const highlightDropdownLabels: (items: DropdownItem[], query: string) => DropdownItem[];
6
10
  /** Create-button wiring derived from one tab's Create menu. */
7
11
  export interface TabCreateButtonConfig {
@@ -1 +1 @@
1
- {"version":3,"file":"create-menu.d.ts","sourceRoot":"","sources":["../../src/utils/create-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAa,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAA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oB,GAAG,SAAS,KACrC,qBAAqB,GAAG,SAkB1B,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Returns the physical horizontal distance, in px, that `row` must scroll for
3
+ * `card`'s inline-start edge to meet the row's inline-start padding edge.
4
+ */
5
+ export declare const getRowScrollDelta: (row: HTMLElement, card: HTMLElement) => number;
6
+ /** Returns the index of the card closest to the row's inline-start edge; the last index once the row is scrolled to its end. */
7
+ export declare const getRowActiveIndex: (row: HTMLElement, cards: HTMLElement[]) => number;
8
+ //# sourceMappingURL=favorites-row.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"favorites-row.d.ts","sourceRoot":"","sources":["../../src/utils/favorites-row.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAC5B,KAAK,WAAW,EAChB,MAAM,WAAW,KAChB,MAUF,CAAC;AAEF,gIAAgI;AAChI,eAAO,MAAM,iBAAiB,GAC5B,KAAK,WAAW,EAChB,OAAO,WAAW,EAAE,KACnB,MAiBF,CAAC"}
@@ -1,13 +1,13 @@
1
1
  /**
2
- * Returns a new selection with `id` toggled. A newly selected id is appended,
3
- * so the set's iteration order stays the order items were selected in.
2
+ * Merges the selection the ui-kit `Grid` reports into the host's selection.
3
+ *
4
+ * The grid only knows the rows it holds and reports them in row order, so a
5
+ * plain copy would lose two things the host relies on: the order items were
6
+ * selected in, and selected ids the host filtered out of the list. Previous ids
7
+ * are kept in their order when they are unlisted or still selected; ids the
8
+ * grid newly selected are appended after them, in the grid's order.
4
9
  */
5
- export declare const toggleSelectedId: (selectedIds: ReadonlySet<string>, id: string) => Set<string>;
6
- /**
7
- * Returns a new selection after a select-all over `listedIds`: when every
8
- * listed id is already selected they are all removed, otherwise the missing
9
- * ones are appended in list order. Selected ids that are not listed (e.g.
10
- * filtered out by the host) are kept either way.
11
- */
12
- export declare const toggleAllSelectedIds: (selectedIds: ReadonlySet<string>, listedIds: readonly string[]) => Set<string>;
10
+ export declare const mergeGridSelection: (previous: ReadonlySet<string>, gridIds: ReadonlySet<string>, listedIds: readonly string[]) => Set<string>;
11
+ /** Returns the ids a picker commits: attached ids still checked or not listed, in order, then newly checked ids. */
12
+ export declare const applyCatalogSelection: (attachedIds: readonly string[], checkedIds: ReadonlySet<string>, listedIds: ReadonlySet<string>) => string[];
13
13
  //# sourceMappingURL=list-selection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-selection.d.ts","sourceRoot":"","sources":["../../src/utils/list-selection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,aAAa,WAAW,CAAC,MAAM,CAAC,EAChC,IAAI,MAAM,KACT,GAAG,CAAC,MAAM,CAQZ,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAC/B,aAAa,WAAW,CAAC,MAAM,CAAC,EAChC,WAAW,SAAS,MAAM,EAAE,KAC3B,GAAG,CAAC,MAAM,CAaZ,CAAC"}
1
+ {"version":3,"file":"list-selection.d.ts","sourceRoot":"","sources":["../../src/utils/list-selection.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,GAC7B,UAAU,WAAW,CAAC,MAAM,CAAC,EAC7B,SAAS,WAAW,CAAC,MAAM,CAAC,EAC5B,WAAW,SAAS,MAAM,EAAE,KAC3B,GAAG,CAAC,MAAM,CAUZ,CAAC;AAEF,oHAAoH;AACpH,eAAO,MAAM,qBAAqB,GAChC,aAAa,SAAS,MAAM,EAAE,EAC9B,YAAY,WAAW,CAAC,MAAM,CAAC,EAC/B,WAAW,WAAW,CAAC,MAAM,CAAC,KAC7B,MAAM,EAQR,CAAC"}
@@ -1,19 +1,3 @@
1
- import { RefObject } from 'react';
2
1
  /** Returns the nearest scrollable ancestor, falling back to `<html>`. */
3
2
  export declare const getScrollParent: (el: Element | null) => Element;
4
- /** Row range `useRowWindow` currently wants rendered. */
5
- export interface RowWindow {
6
- /** Attach to the element that spans all rows, spacers included. */
7
- containerRef: RefObject<HTMLDivElement | null>;
8
- /** Index of the first row to render (inclusive). */
9
- startRow: number;
10
- /** Index of one past the last row to render (exclusive). */
11
- endRow: number;
12
- }
13
- /**
14
- * Tracks which slice of a fixed-row-height list covers the viewport of its
15
- * nearest scrollable ancestor, for a list that scrolls with the page rather
16
- * than inside its own box.
17
- */
18
- export declare const useRowWindow: (rowCount: number, rowHeight: number, overscan?: number) => RowWindow;
19
3
  //# 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,OAAO,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAC;AAEpE,yEAAyE;AACzE,eAAO,MAAM,eAAe,GAAI,IAAI,OAAO,GAAG,IAAI,KAAG,OAYpD,CAAC;AAeF,yDAAyD;AACzD,MAAM,WAAW,SAAS;IACxB,mEAAmE;IACnE,YAAY,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC/C,oDAAoD;IACpD,QAAQ,EAAE,MAAM,CAAC;IACjB,4DAA4D;IAC5D,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,GACvB,UAAU,MAAM,EAChB,WAAW,MAAM,EACjB,iBAA2B,KAC1B,SAuEF,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"}
@@ -9,15 +9,26 @@ export declare const getCredentialsUiState: (credentials: CatalogItemCredentials
9
9
  /** Returns `CredentialsBadgeState.LoggedOut` when signed out at every applicable level, or `undefined` when no authentication is required or signed in at any level. */
10
10
  export declare const getCredentialsBadgeState: (credentials: CatalogItemCredentials) => CredentialsBadgeState | undefined;
11
11
  /**
12
- * Whether the publisher holds a credential for an authenticated toolset and
13
- * may therefore offer to publish it alongside the toolset.
12
+ * Whether the publisher holds a global-level credential for an authenticated
13
+ * toolset and may therefore offer to publish it alongside the toolset.
14
14
  *
15
- * Either level qualifies: publishing always acts on the publisher's own source
16
- * item, where `globalStatus` is the owner's own credential and `userStatus`
17
- * covers a personal credential configured on top of it. Access the publisher
18
- * does not hold cannot be passed on.
15
+ * Only `globalStatus` qualifies: DIAL Core copies the source item's global
16
+ * credential to the published copy, so a user-level sign-in alone leaves
17
+ * nothing to pass on.
19
18
  */
20
19
  export declare const canPublishCredentials: (credentials: CatalogItemCredentials | undefined) => boolean;
20
+ /**
21
+ * Resolves which level the direct (non-admin) "Log in" and API-key actions
22
+ * apply to, per DIAL Core's public/private toolset convention: a public
23
+ * toolset is signed in to at `USER` level, a private one at `GLOBAL` level —
24
+ * the owner's own credential, which is also the one DIAL Core copies onto a
25
+ * copy published with shared credentials.
26
+ *
27
+ * A private toolset already signed in at `USER` level keeps resolving to
28
+ * `USER`, so a key added there before this rule can still be changed or
29
+ * deleted from the same action.
30
+ */
31
+ export declare const getDirectCredentialsLevel: (credentials: CatalogItemCredentials) => CredentialsLevel;
21
32
  /** Resolves which level a direct (non-accordion) "Log out" action applies to. */
22
33
  export declare const getSignedInLevel: (credentials: CatalogItemCredentials) => CredentialsLevel;
23
34
  /** Resolves which credentials banner, if any, the Details Panel should show below the header. */
@@ -1 +1 @@
1
- {"version":3,"file":"toolset-credentials.d.ts","sourceRoot":"","sources":["../../src/utils/toolset-credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,gBAAgB,EAChB,kBAAkB,EAGnB,MAAM,uBAAuB,CAAC;AAK/B,uFAAuF;AACvF,eAAO,MAAM,eAAe,GAC1B,aAAa,sBAAsB,GAAG,SAAS,EAC/C,OAAO,gB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AAM,qBAAqB,GAChC,aAAa,sBAAsB,GAAG,SAAS,KAC9C,OAQF,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB,GACpC,aAAa,sBAAsB,KAClC,gBAG0B,CAAC;AAE9B,iFAAiF;AACjF,eAAO,MAAM,gBAAgB,GAC3B,aAAa,sBAAsB,KAClC,gBAG0B,CAAC;AAE9B,iGAAiG;AACjG,eAAO,MAAM,yBAAyB,GACpC,aAAa,sBAAsB,KAClC,sBAAsB,GAAG,SAkB3B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { RefObject } from 'react';
2
+ /** Returns a ref for a list's container that, once `count` drops and focus is lost, focuses the list's first button. */
3
+ export declare const useListRemoveFocus: <T extends HTMLElement = HTMLElement>(count: number) => RefObject<T | null>;
4
+ //# sourceMappingURL=use-list-remove-focus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-list-remove-focus.d.ts","sourceRoot":"","sources":["../../src/utils/use-list-remove-focus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,OAAO,CAAC;AAE1D,wHAAwH;AACxH,eAAO,MAAM,kBAAkB,GAAI,CAAC,SAAS,WAAW,GAAG,WAAW,EACpE,OAAO,MAAM,KACZ,SAAS,CAAC,CAAC,GAAG,IAAI,CAsBpB,CAAC"}
@@ -1,6 +0,0 @@
1
- import { ICellRendererParams } from 'ag-grid-community';
2
- import { FC } from 'react';
3
- import { CatalogItem } from '../../../models/catalog-item';
4
- /** ag-grid cell renderer for a row's checkbox in the multi-select column. */
5
- export declare const SelectionCellRenderer: FC<ICellRendererParams<CatalogItem>>;
6
- //# sourceMappingURL=SelectionCellRenderer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectionCellRenderer.d.ts","sourceRoot":"","sources":["../../../../src/components/ListView/Renders/SelectionCellRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAGhE,6EAA6E;AAC7E,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,mBAAmB,CAAC,WAAW,CAAC,CAgBtE,CAAC"}
@@ -1,4 +0,0 @@
1
- import { FC } from 'react';
2
- /** ag-grid header component for the multi-select column: a select-all checkbox. */
3
- export declare const SelectionHeader: FC;
4
- //# sourceMappingURL=SelectionHeader.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectionHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/ListView/Renders/SelectionHeader.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAG3B,mFAAmF;AACnF,eAAO,MAAM,eAAe,EAAE,EAoB7B,CAAC"}
@@ -1,24 +0,0 @@
1
- import { CatalogItem } from '../../models/catalog-item';
2
- /** Multi-select state shared by the `ListView` selection column's header and cells. */
3
- export interface ListSelectionContextValue {
4
- /** Ids of the selected items, in selection order. */
5
- selectedIds: ReadonlySet<string>;
6
- /** Whether every listed item is selected. */
7
- isAllSelected: boolean;
8
- /** Whether some, but not all, listed items are selected. */
9
- isSomeSelected: boolean;
10
- /** Whether the list has any items to select. */
11
- hasItems: boolean;
12
- /** Toggles one item's selection. */
13
- toggle: (id: string) => void;
14
- /** Selects every listed item, or clears them all when they are all selected. */
15
- toggleAll: () => void;
16
- /** Accessible name of a row's checkbox. */
17
- getRowAriaLabel: (item: CatalogItem) => string;
18
- /** Accessible name of the select-all checkbox. */
19
- selectAllAriaLabel: string;
20
- }
21
- export declare const ListSelectionContext: import('react').Context<ListSelectionContextValue | null>;
22
- /** Reads the `ListView` multi-select state; only valid inside the selection column. */
23
- export declare const useListSelection: () => ListSelectionContextValue;
24
- //# sourceMappingURL=selection-context.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"selection-context.d.ts","sourceRoot":"","sources":["../../../src/components/ListView/selection-context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAE7D,uFAAuF;AACvF,MAAM,WAAW,yBAAyB;IACxC,qDAAqD;IACrD,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACjC,6CAA6C;IAC7C,aAAa,EAAE,OAAO,CAAC;IACvB,4DAA4D;IAC5D,cAAc,EAAE,OAAO,CAAC;IACxB,gDAAgD;IAChD,QAAQ,EAAE,OAAO,CAAC;IAClB,oCAAoC;IACpC,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,gFAAgF;IAChF,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,2CAA2C;IAC3C,eAAe,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,MAAM,CAAC;IAC/C,kDAAkD;IAClD,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAOD,eAAO,MAAM,oBAAoB,2DACsB,CAAC;AAExD,uFAAuF;AACvF,eAAO,MAAM,gBAAgB,QAAO,yBAQnC,CAAC"}