@epam/ai-dial-catalog 1.3.0-dev.96 → 1.3.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/AddOnCatalogModal/AddOnCatalogModal.d.ts +44 -0
- package/components/AddOnCatalogModal/AddOnCatalogModal.d.ts.map +1 -0
- package/components/AddOnListItem/AddOnListItem.d.ts +65 -0
- package/components/AddOnListItem/AddOnListItem.d.ts.map +1 -0
- package/components/AppIdentity/AppIdentity.d.ts.map +1 -1
- package/components/ApplicationCredentials/ApplicationCredentialRow/ApplicationCredentialRow.d.ts +3 -1
- package/components/ApplicationCredentials/ApplicationCredentialRow/ApplicationCredentialRow.d.ts.map +1 -1
- package/components/ApplicationCredentials/ApplicationCredentials.d.ts.map +1 -1
- package/components/CardGrid/Card.d.ts.map +1 -1
- package/components/CardGrid/CardGrid.d.ts.map +1 -1
- package/components/CardGrid/CardRowRenderer.d.ts.map +1 -1
- package/components/Catalog/Catalog.d.ts.map +1 -1
- package/components/Catalog/CreateButton.d.ts +3 -1
- package/components/Catalog/CreateButton.d.ts.map +1 -1
- package/components/Catalog/CreateMenuSheet.d.ts.map +1 -1
- package/components/CatalogPickerModal/CatalogPickerModal.d.ts +110 -0
- package/components/CatalogPickerModal/CatalogPickerModal.d.ts.map +1 -0
- package/components/ClampedName/ClampedName.d.ts.map +1 -1
- package/components/DeploymentSelectorField/DeploymentSelectorField.d.ts +3 -1
- package/components/DeploymentSelectorField/DeploymentSelectorField.d.ts.map +1 -1
- package/components/DeploymentSelectorPanel/DeploymentSelectorPanel.d.ts +5 -0
- package/components/DeploymentSelectorPanel/DeploymentSelectorPanel.d.ts.map +1 -0
- package/components/Details/ApiDetails.d.ts.map +1 -1
- package/components/Details/Credentials/CredentialsIdentityIcon/CredentialsIdentityIcon.d.ts +1 -1
- package/components/Details/Credentials/CredentialsIdentityIcon/CredentialsIdentityIcon.d.ts.map +1 -1
- package/components/Details/Credentials/CredentialsInfoCard/CredentialsInfoCard.d.ts.map +1 -1
- package/components/Details/Credentials/CredentialsManagementPanel/CredentialsManagementPanel.d.ts +1 -1
- package/components/Details/Credentials/CredentialsManagementPanel/CredentialsManagementPanel.d.ts.map +1 -1
- package/components/Details/Credentials/CredentialsRow/CredentialsRow.d.ts.map +1 -1
- package/components/Details/DetailsPanel.d.ts.map +1 -1
- package/components/Details/DetailsPublishContent.d.ts +19 -0
- package/components/Details/DetailsPublishContent.d.ts.map +1 -0
- package/components/Details/DetailsTabs.d.ts +23 -0
- package/components/Details/DetailsTabs.d.ts.map +1 -0
- package/components/Details/Header/CredentialsApiKeyOverlay/CredentialsApiKeyOverlay.d.ts +6 -4
- package/components/Details/Header/CredentialsApiKeyOverlay/CredentialsApiKeyOverlay.d.ts.map +1 -1
- package/components/Details/Header/Header.d.ts +3 -152
- package/components/Details/Header/Header.d.ts.map +1 -1
- package/components/Details/Header/HeaderCredentialsButton.d.ts +16 -0
- package/components/Details/Header/HeaderCredentialsButton.d.ts.map +1 -0
- package/components/Details/Header/HeaderManageSlot.d.ts +27 -0
- package/components/Details/Header/HeaderManageSlot.d.ts.map +1 -0
- package/components/Details/Header/LimitStatusBadge.d.ts +14 -0
- package/components/Details/Header/LimitStatusBadge.d.ts.map +1 -0
- package/components/Details/Header/ShareButton/ShareButton.d.ts.map +1 -1
- package/components/Details/Header/hooks/useManageActions.d.ts +34 -0
- package/components/Details/Header/hooks/useManageActions.d.ts.map +1 -0
- package/components/Details/Header/hooks/useRecipientsCount.d.ts +11 -0
- package/components/Details/Header/hooks/useRecipientsCount.d.ts.map +1 -0
- package/components/Details/TabsContent/Content.d.ts +3 -2
- package/components/Details/TabsContent/Content.d.ts.map +1 -1
- package/components/Details/TabsContent/ContentFileTree/ContentFileTree.d.ts +10 -0
- package/components/Details/TabsContent/ContentFileTree/ContentFileTree.d.ts.map +1 -1
- package/components/Details/TabsContent/Limits/LimitRow.d.ts.map +1 -1
- package/components/Details/TabsContent/Tools/Tools.d.ts +2 -0
- package/components/Details/TabsContent/Tools/Tools.d.ts.map +1 -1
- package/components/Details/hooks/useDetailsConfirmation.d.ts +29 -0
- package/components/Details/hooks/useDetailsConfirmation.d.ts.map +1 -0
- package/components/Details/hooks/useDetailsContentFile.d.ts +19 -0
- package/components/Details/hooks/useDetailsContentFile.d.ts.map +1 -0
- package/components/Details/hooks/useDetailsPublish.d.ts +22 -0
- package/components/Details/hooks/useDetailsPublish.d.ts.map +1 -0
- package/components/Favorites/FavoriteCard.d.ts +2 -0
- package/components/Favorites/FavoriteCard.d.ts.map +1 -1
- package/components/Favorites/Favorites.d.ts +2 -2
- package/components/Favorites/Favorites.d.ts.map +1 -1
- package/components/Filter/Filter.d.ts +2 -0
- package/components/Filter/Filter.d.ts.map +1 -1
- package/components/ListView/ListView.d.ts +1 -1
- package/components/ListView/ListView.d.ts.map +1 -1
- package/components/ListView/Renders/EntityTypeCellRenderer.d.ts +2 -1
- package/components/ListView/Renders/EntityTypeCellRenderer.d.ts.map +1 -1
- package/components/ListView/columns.d.ts +4 -7
- package/components/ListView/columns.d.ts.map +1 -1
- package/components/PersonalEmptyState/PersonalEmptyState.d.ts +2 -2
- package/components/PersonalEmptyState/PersonalEmptyState.d.ts.map +1 -1
- package/components/ScrollToTopButton/ScrollToTopButton.d.ts +14 -0
- package/components/ScrollToTopButton/ScrollToTopButton.d.ts.map +1 -0
- package/components/SigninInterruptDialog/SigninInterruptDialog.d.ts +5 -0
- package/components/SigninInterruptDialog/SigninInterruptDialog.d.ts.map +1 -0
- package/components/SigninInterruptDialog/SigninInterruptRow/SigninInterruptRow.d.ts +18 -0
- package/components/SigninInterruptDialog/SigninInterruptRow/SigninInterruptRow.d.ts.map +1 -0
- package/components/Toolbar/Rows/TitleRow.d.ts +2 -1
- package/components/Toolbar/Rows/TitleRow.d.ts.map +1 -1
- package/entry-points/mapping.d.ts +5 -3
- package/entry-points/mapping.d.ts.map +1 -1
- package/hooks/useCatalogScrollToTop/useCatalogScrollToTop.d.ts +9 -0
- package/hooks/useCatalogScrollToTop/useCatalogScrollToTop.d.ts.map +1 -0
- package/index.css +2 -2
- package/index.d.ts +17 -3
- package/index.d.ts.map +1 -1
- package/index.js +4196 -3177
- package/{mapping-BcyG24Cg.js → mapping-Bsy4fyg5.js} +35 -24
- package/mapping.js +1 -2
- package/models/application-credentials.d.ts +17 -0
- package/models/application-credentials.d.ts.map +1 -1
- package/models/card-props.d.ts +11 -0
- package/models/card-props.d.ts.map +1 -1
- package/models/card-row-data.d.ts +5 -0
- package/models/card-row-data.d.ts.map +1 -1
- package/models/catalog-item.d.ts +3 -1
- package/models/catalog-item.d.ts.map +1 -1
- package/models/catalog-props.d.ts +17 -3
- package/models/catalog-props.d.ts.map +1 -1
- package/models/catalog-styles.d.ts +2 -0
- package/models/catalog-styles.d.ts.map +1 -1
- package/models/deployment-selector-panel.d.ts +83 -0
- package/models/deployment-selector-panel.d.ts.map +1 -0
- package/models/details-header.d.ts +176 -0
- package/models/details-header.d.ts.map +1 -0
- package/models/details-panel.d.ts +31 -0
- package/models/details-panel.d.ts.map +1 -0
- package/models/favorites.d.ts +2 -0
- package/models/favorites.d.ts.map +1 -1
- package/models/grid-context.d.ts +1 -1
- package/models/grid-context.d.ts.map +1 -1
- package/models/grid-props.d.ts +7 -0
- package/models/grid-props.d.ts.map +1 -1
- package/models/item-details-props.d.ts +26 -0
- package/models/item-details-props.d.ts.map +1 -1
- package/models/list-props.d.ts +23 -26
- package/models/list-props.d.ts.map +1 -1
- package/models/scroll-to-top.d.ts +23 -0
- package/models/scroll-to-top.d.ts.map +1 -0
- package/models/signin-interrupt-dialog.d.ts +97 -0
- package/models/signin-interrupt-dialog.d.ts.map +1 -0
- package/models/toolbar-props.d.ts +3 -1
- package/models/toolbar-props.d.ts.map +1 -1
- package/package.json +5 -5
- package/types/deployment-selector-layout.d.ts +8 -0
- package/types/deployment-selector-layout.d.ts.map +1 -0
- package/types/list-view-column.d.ts +7 -0
- package/types/list-view-column.d.ts.map +1 -0
- package/types/load-status.d.ts +10 -0
- package/types/load-status.d.ts.map +1 -0
- package/types/toolset-auth.d.ts +1 -1
- package/types/toolset-auth.d.ts.map +1 -1
- package/utils/catalog-filter.d.ts +16 -0
- package/utils/catalog-filter.d.ts.map +1 -1
- package/utils/catalog-tabs.d.ts +9 -1
- package/utils/catalog-tabs.d.ts.map +1 -1
- package/utils/details-header-actions.d.ts +37 -0
- package/utils/details-header-actions.d.ts.map +1 -0
- package/utils/details-panel.d.ts +33 -0
- package/utils/details-panel.d.ts.map +1 -0
- package/utils/favorites-row.d.ts +8 -0
- package/utils/favorites-row.d.ts.map +1 -0
- package/utils/list-selection.d.ts +10 -10
- package/utils/list-selection.d.ts.map +1 -1
- package/utils/scroll-window.d.ts +3 -14
- package/utils/scroll-window.d.ts.map +1 -1
- package/utils/toolset-credentials.d.ts +12 -0
- package/utils/toolset-credentials.d.ts.map +1 -1
- package/utils/use-list-remove-focus.d.ts +4 -0
- package/utils/use-list-remove-focus.d.ts.map +1 -0
- package/components/ListView/Renders/SelectionCellRenderer.d.ts +0 -6
- package/components/ListView/Renders/SelectionCellRenderer.d.ts.map +0 -1
- package/components/ListView/Renders/SelectionHeader.d.ts +0 -4
- package/components/ListView/Renders/SelectionHeader.d.ts.map +0 -1
- package/components/ListView/selection-context.d.ts +0 -24
- package/components/ListView/selection-context.d.ts.map +0 -1
- package/hooks/useIsVerticallyClamped/useIsVerticallyClamped.d.ts +0 -16
- package/hooks/useIsVerticallyClamped/useIsVerticallyClamped.d.ts.map +0 -1
|
@@ -1,155 +1,6 @@
|
|
|
1
|
-
import { FC
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { CredentialsLevel } from '../../../types/toolset-auth';
|
|
5
|
-
/**
|
|
6
|
-
* Props for {@link Header}, exported as `DetailsHeaderProps`: the details
|
|
7
|
-
* view's identity block and action row. Every action is opt-in and hidden
|
|
8
|
-
* when its prop is absent.
|
|
9
|
-
*/
|
|
10
|
-
export interface HeaderProps {
|
|
11
|
-
/** The item whose identity, folder and actions are shown. */
|
|
12
|
-
item: CatalogItem;
|
|
13
|
-
/** Called by the primary "Use in chat" action. The action is hidden when absent. */
|
|
14
|
-
onUseInChat?: (item: CatalogItem) => void;
|
|
15
|
-
/** Returns `false` to hide the primary action for an item. */
|
|
16
|
-
isPrimaryActionVisible?: (item: CatalogItem) => boolean;
|
|
17
|
-
/** Called by Share when no `shareOverlay` is given. Share is hidden when both are absent. */
|
|
18
|
-
onShare?: (item: CatalogItem) => void;
|
|
19
|
-
/**
|
|
20
|
-
* Renders the Share popover content. When provided, choosing Share opens
|
|
21
|
-
* this popover instead of calling `onShare`. It anchors to whichever surface
|
|
22
|
-
* carries Share: the header button, or the Manage trigger when
|
|
23
|
-
* `isSharePrimary` has moved the entry into that menu.
|
|
24
|
-
*/
|
|
25
|
-
shareOverlay?: (item: CatalogItem, onClose: () => void) => ReactNode;
|
|
26
|
-
/**
|
|
27
|
-
* Additional caller-supplied rule for whether Share is shown, combined
|
|
28
|
-
* (AND) with the built-in ownership/type rule.
|
|
29
|
-
*/
|
|
30
|
-
isShareVisible?: (item: CatalogItem) => boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Resolves whether Share renders as its own header button rather than a
|
|
33
|
-
* Manage-menu entry. Defaults to `true` — the header button. Returning
|
|
34
|
-
* `false` moves Share into the Manage menu, beside Delete. Share renders on
|
|
35
|
-
* one surface or the other, never both.
|
|
36
|
-
*/
|
|
37
|
-
isSharePrimary?: (item: CatalogItem) => boolean;
|
|
38
|
-
/** Called by the Manage menu's "Edit" entry, shown only for an editable item. */
|
|
39
|
-
onEdit?: (item: CatalogItem) => void;
|
|
40
|
-
/**
|
|
41
|
-
* Called when "Download" is clicked. In the Manage menu, fire-and-forget:
|
|
42
|
-
* the result is not awaited and no pending state is shown. As the primary
|
|
43
|
-
* action (see `isDownloadPrimary`), the call is awaited and drives a
|
|
44
|
-
* pending/disabled state on the button.
|
|
45
|
-
*/
|
|
46
|
-
onDownload?: (item: CatalogItem) => Promise<void> | void;
|
|
47
|
-
/** Additional caller-supplied rule for whether "Download" is shown. Defaults to `true` when absent. */
|
|
48
|
-
isDownloadVisible?: (item: CatalogItem) => boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Resolves whether Download renders as the primary action instead of a
|
|
51
|
-
* Manage-menu entry. Defaults to a Skill whose "Use in chat" primary action
|
|
52
|
-
* is not shown (`item.type === CatalogEntityType.Skill` and no primary
|
|
53
|
-
* action). An item whose Download is primary never also shows it in the
|
|
54
|
-
* Manage menu.
|
|
55
|
-
*/
|
|
56
|
-
isDownloadPrimary?: (item: CatalogItem) => boolean;
|
|
57
|
-
/** Called when "Delete" is clicked in the Manage menu. The details panel owns the confirmation step, so this only requests it. */
|
|
58
|
-
onDelete?: (item: CatalogItem) => void;
|
|
59
|
-
/** Called when the recipient-side "Remove from My List" action is clicked for an item shared with the current user. The details panel owns the confirmation step. */
|
|
60
|
-
onUnshare?: (item: CatalogItem) => void;
|
|
61
|
-
/** Additional caller-supplied rule for whether "Remove from My List" is shown, combined (AND) with the built-in `sharedWithMe`/`isMyApp` rule. Defaults to `true` when absent. */
|
|
62
|
-
isUnshareVisible?: (item: CatalogItem) => boolean;
|
|
63
|
-
/** Called when the owner-side "Revoke access" action is clicked for an item the current user owns. The details panel owns the confirmation step. */
|
|
64
|
-
onRevokeShare?: (item: CatalogItem) => void;
|
|
65
|
-
/** Resolves how many users currently hold shared access to an owned item, called when the Manage menu is opened or focused. `0` hides "Revoke access"; `undefined` or a rejection leaves it reachable without a count. */
|
|
66
|
-
onFetchRecipientsCount?: (item: CatalogItem) => Promise<number | undefined>;
|
|
67
|
-
/** Additional caller-supplied rule for whether "Revoke access" is shown, combined (AND) with the built-in `isMyApp` rule and the recipient count. Defaults to `true` when absent. */
|
|
68
|
-
isRevokeShareVisible?: (item: CatalogItem) => boolean;
|
|
69
|
-
/** Called by the credentials action to sign in (OAuth) or to add an API key, for the given credentials level. May return a promise. */
|
|
70
|
-
onLogin?: (item: CatalogItem, params: {
|
|
71
|
-
level: CredentialsLevel;
|
|
72
|
-
apiKey?: string;
|
|
73
|
-
}) => Promise<void> | void;
|
|
74
|
-
/** Called to sign out or remove an API key for the given credentials level, when no confirmation is requested through `onRequestLogout`. May return a promise. */
|
|
75
|
-
onLogout?: (item: CatalogItem, params: {
|
|
76
|
-
level: CredentialsLevel;
|
|
77
|
-
}) => Promise<void> | void;
|
|
78
|
-
/**
|
|
79
|
-
* Called when the credentials trigger button is clicked and the resolved
|
|
80
|
-
* state is "Manage credentials"/"Manage API keys" — opens the admin
|
|
81
|
-
* credentials-management sub-screen.
|
|
82
|
-
*/
|
|
83
|
-
onOpenCredentialsManagement?: () => void;
|
|
84
|
-
/**
|
|
85
|
-
* Called instead of directly logging out when the resolved state is
|
|
86
|
-
* "Log out" for OAuth authentication — opens the logout confirmation
|
|
87
|
-
* without signing out immediately.
|
|
88
|
-
*/
|
|
89
|
-
onRequestLogout?: () => void;
|
|
90
|
-
/** Text overrides, shared with `DetailsPanel`. */
|
|
91
|
-
texts?: ItemDetailsTexts;
|
|
92
|
-
/** Style overrides, shared with `DetailsPanel`. */
|
|
93
|
-
detailsStyles?: ItemDetailsStyles;
|
|
94
|
-
/**
|
|
95
|
-
* Controls whether the "Publish" action is shown. Defaults to the same rule
|
|
96
|
-
* as the primary action. Returning `true` is not sufficient on its own:
|
|
97
|
-
* "Publish" is suppressed whenever "Unpublish" is shown, so the panel
|
|
98
|
-
* carries one of the two, never both.
|
|
99
|
-
*/
|
|
100
|
-
isPublishVisible?: (item: CatalogItem) => boolean;
|
|
101
|
-
/**
|
|
102
|
-
* Resolves whether whichever of "Publish"/"Unpublish" applies renders as its
|
|
103
|
-
* own header button rather than a Manage-menu entry. Defaults to `false` —
|
|
104
|
-
* the menu entry. It renders on one surface or the other, never both.
|
|
105
|
-
*/
|
|
106
|
-
isPublishPrimary?: (item: CatalogItem) => boolean;
|
|
107
|
-
/** Called when the "Publish" button is clicked; the host swaps this panel's content to the publish view. */
|
|
108
|
-
onOpenPublish?: () => void;
|
|
109
|
-
/**
|
|
110
|
-
* Additional caller-supplied rule for whether "Unpublish" is shown,
|
|
111
|
-
* combined (AND) with `hasPublishedFolders` and the presence of
|
|
112
|
-
* `onOpenUnpublish`. Defaults to `true` when absent. When the entry ends up
|
|
113
|
-
* shown, it replaces "Publish" rather than joining it. Supplying it also
|
|
114
|
-
* keeps the Manage trigger rendered for an item it returns `true` for while
|
|
115
|
-
* `isPublishHistoryResolved` is still `false`, and lets a lone "Unpublish"
|
|
116
|
-
* render as its own button once history resolves — so the host should
|
|
117
|
-
* resolve history for such an item without waiting for hover.
|
|
118
|
-
*/
|
|
119
|
-
isUnpublishVisible?: (item: CatalogItem) => boolean;
|
|
120
|
-
/**
|
|
121
|
-
* Whether the panel has resolved publish history for this item to at least
|
|
122
|
-
* one folder. Withheld while the lookup is unresolved and `false` on zero
|
|
123
|
-
* entries or failure — the request cannot be built without a folder, so an
|
|
124
|
-
* entry shown without one could not do anything if clicked. Default: `false`.
|
|
125
|
-
*/
|
|
126
|
-
hasPublishedFolders?: boolean;
|
|
127
|
-
/**
|
|
128
|
-
* Whether the panel's publish-history lookup for this item has settled.
|
|
129
|
-
* Keeps the Manage trigger rendered while an "Unpublish" entry is still
|
|
130
|
-
* pending, so an item that would have no other entry can still start the
|
|
131
|
-
* lookup that produces one. Default: `true` — a host that does not report
|
|
132
|
-
* it is treated as having nothing outstanding.
|
|
133
|
-
*/
|
|
134
|
-
isPublishHistoryResolved?: boolean;
|
|
135
|
-
/**
|
|
136
|
-
* Starts the panel's publish-history lookup, called on hover/focus of the
|
|
137
|
-
* Manage trigger and on Manage-menu open, plus on hover/focus of the publish
|
|
138
|
-
* button where `isPublishPrimary` promoted it into the action row. Guarded
|
|
139
|
-
* once per item by the panel.
|
|
140
|
-
*/
|
|
141
|
-
onRequestPublishHistory?: () => void;
|
|
142
|
-
/** Called when the "Unpublish" button is clicked; the host swaps this panel's content to the unpublish confirmation. */
|
|
143
|
-
onOpenUnpublish?: () => void;
|
|
144
|
-
/**
|
|
145
|
-
* Renders the header read-only: every action that mutates the item or the
|
|
146
|
-
* caller's relationship to it — Share, Publish/Unpublish, Edit, Delete,
|
|
147
|
-
* "Remove from My List", "Revoke access", and the credentials Log in / Log
|
|
148
|
-
* out / manage button — is withheld. The non-mutating actions (the primary
|
|
149
|
-
* "Use in chat" and Download) still render. Default: false.
|
|
150
|
-
*/
|
|
151
|
-
isReadonly?: boolean;
|
|
152
|
-
}
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { HeaderProps } from '../../../models/details-header';
|
|
3
|
+
export type { HeaderProps } from '../../../models/details-header';
|
|
153
4
|
/** Details panel header bar: entity identity (icon + name + version), action buttons (primary action, Share, a "Manage" menu for Edit, Publish or Unpublish, and Delete — or that action as a button of its own where filtering leaves only one), and inline credentials section. For Toolsets, the credentials action (Log in / Log out / manage) renders first and styled as the primary action, since Toolsets have no "Use in chat" action. Shows a "Running low"/"Limit reached" badge from `item.details?.limits?.status`, disabling "Use in chat" once a limit is reached. */
|
|
154
5
|
export declare const Header: FC<HeaderProps>;
|
|
155
6
|
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/Header/Header.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/Header/Header.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAE,EAAE,EAAoC,MAAM,OAAO,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAWlE,YAAY,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAElE,qjBAAqjB;AACrjB,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CA2ZlC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { NeutralButton, PrimaryButton } from '@epam/ai-dial-ui-kit';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
import { HeaderProps } from '../../../models/details-header';
|
|
4
|
+
import { CredentialsUiState, ToolsetAuthenticationType } from '../../../types/toolset-auth';
|
|
5
|
+
/** Props for {@link HeaderCredentialsButton}. */
|
|
6
|
+
export interface HeaderCredentialsButtonProps extends Pick<HeaderProps, 'item' | 'onLogin' | 'onLogout' | 'onOpenCredentialsManagement' | 'onRequestLogout' | 'texts' | 'detailsStyles'> {
|
|
7
|
+
/** Kit button the action renders as: primary while it is the leading call to action. */
|
|
8
|
+
buttonComponent: typeof PrimaryButton | typeof NeutralButton;
|
|
9
|
+
/** Authentication type of the item's credentials. */
|
|
10
|
+
authenticationType: ToolsetAuthenticationType;
|
|
11
|
+
/** Resolved credentials state; the button renders only when it is set. */
|
|
12
|
+
credentialsUiState: CredentialsUiState | undefined;
|
|
13
|
+
}
|
|
14
|
+
/** Credentials action of the details header: Log in / Log out, manage credentials, or the API-key popover trigger. */
|
|
15
|
+
export declare const HeaderCredentialsButton: FC<HeaderCredentialsButtonProps>;
|
|
16
|
+
//# sourceMappingURL=HeaderCredentialsButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderCredentialsButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/Header/HeaderCredentialsButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,aAAa,EAClB,KAAK,aAAa,EACnB,MAAM,sBAAsB,CAAC;AAQ9B,OAAO,EAAE,KAAK,EAAE,EAAyB,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAEL,kBAAkB,EAClB,yBAAyB,EAC1B,MAAM,6BAA6B,CAAC;AAKrC,iDAAiD;AACjD,MAAM,WAAW,4BAA6B,SAAQ,IAAI,CACxD,WAAW,EACT,MAAM,GACN,SAAS,GACT,UAAU,GACV,6BAA6B,GAC7B,iBAAiB,GACjB,OAAO,GACP,eAAe,CAClB;IACC,wFAAwF;IACxF,eAAe,EAAE,OAAO,aAAa,GAAG,OAAO,aAAa,CAAC;IAC7D,qDAAqD;IACrD,kBAAkB,EAAE,yBAAyB,CAAC;IAC9C,0EAA0E;IAC1E,kBAAkB,EAAE,kBAAkB,GAAG,SAAS,CAAC;CACpD;AAED,sHAAsH;AACtH,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,4BAA4B,CAqJpE,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DropdownItem } from '@epam/ai-dial-ui-kit';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
import { HeaderProps, ManageAction } from '../../../models/details-header';
|
|
4
|
+
/** Props for {@link HeaderManageSlot}. */
|
|
5
|
+
export interface HeaderManageSlotProps extends Pick<HeaderProps, 'item' | 'onShare' | 'shareOverlay' | 'isShareVisible' | 'texts'> {
|
|
6
|
+
/** The lone Manage entry rendered as a button instead of a menu, if any. */
|
|
7
|
+
promotedManageAction: ManageAction | undefined;
|
|
8
|
+
/** Manage-menu items. The slot renders nothing when empty and nothing is promoted. */
|
|
9
|
+
manageItems: DropdownItem[];
|
|
10
|
+
/** Called when the Manage menu opens or closes. */
|
|
11
|
+
onManageOpenChange: (isOpen: boolean) => void;
|
|
12
|
+
/** Called on hover or focus of the Manage trigger, before a click. */
|
|
13
|
+
onManageTriggerIntent: () => void;
|
|
14
|
+
/** Whether Share renders in the action row rather than in the Manage menu. */
|
|
15
|
+
isShareInActionRow: boolean;
|
|
16
|
+
/** Whether Share is offered at all. */
|
|
17
|
+
shouldShowShareAction: boolean;
|
|
18
|
+
/** Whether the share popover anchored to the Manage trigger is open. */
|
|
19
|
+
isShareOverlayOpen: boolean;
|
|
20
|
+
/** Called to open or close the share popover. */
|
|
21
|
+
onShareOverlayOpenChange: (isOpen: boolean) => void;
|
|
22
|
+
/** Closes the share popover; handed to `shareOverlay`. */
|
|
23
|
+
onCloseShareOverlay: () => void;
|
|
24
|
+
}
|
|
25
|
+
/** Manage slot of the details header: the overflow menu, or its lone entry as a button. */
|
|
26
|
+
export declare const HeaderManageSlot: FC<HeaderManageSlotProps>;
|
|
27
|
+
//# sourceMappingURL=HeaderManageSlot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderManageSlot.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/Header/HeaderManageSlot.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,YAAY,EAGlB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAGhF,0CAA0C;AAC1C,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CACjD,WAAW,EACX,MAAM,GAAG,SAAS,GAAG,cAAc,GAAG,gBAAgB,GAAG,OAAO,CACjE;IACC,4EAA4E;IAC5E,oBAAoB,EAAE,YAAY,GAAG,SAAS,CAAC;IAC/C,sFAAsF;IACtF,WAAW,EAAE,YAAY,EAAE,CAAC;IAC5B,mDAAmD;IACnD,kBAAkB,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9C,sEAAsE;IACtE,qBAAqB,EAAE,MAAM,IAAI,CAAC;IAClC,8EAA8E;IAC9E,kBAAkB,EAAE,OAAO,CAAC;IAC5B,uCAAuC;IACvC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,wEAAwE;IACxE,kBAAkB,EAAE,OAAO,CAAC;IAC5B,iDAAiD;IACjD,wBAAwB,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACpD,0DAA0D;IAC1D,mBAAmB,EAAE,MAAM,IAAI,CAAC;CACjC;AAED,2FAA2F;AAC3F,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAoHtD,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { CatalogLimitStatus } from '../../../models/item-details-data';
|
|
3
|
+
/** Props for {@link LimitStatusBadge}. */
|
|
4
|
+
export interface LimitStatusBadgeProps {
|
|
5
|
+
/** Limit status the badge shows. */
|
|
6
|
+
status: CatalogLimitStatus;
|
|
7
|
+
/** Visible badge text. */
|
|
8
|
+
label: string;
|
|
9
|
+
/** Typography class of the badge. */
|
|
10
|
+
className: string;
|
|
11
|
+
}
|
|
12
|
+
/** Small status pill matching `FeaturedChip`'s shape, shown in the same header corner. */
|
|
13
|
+
export declare const LimitStatusBadge: FC<LimitStatusBadgeProps>;
|
|
14
|
+
//# sourceMappingURL=LimitStatusBadge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LimitStatusBadge.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/Header/LimitStatusBadge.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAQvE,0CAA0C;AAC1C,MAAM,WAAW,qBAAqB;IACpC,oCAAoC;IACpC,MAAM,EAAE,kBAAkB,CAAC;IAC3B,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,0FAA0F;AAC1F,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CActD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShareButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/Header/ShareButton/ShareButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ShareButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/Header/ShareButton/ShareButton.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,EAAE,EAAE,KAAK,SAAS,EAAyB,MAAM,OAAO,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAE9D,qCAAqC;AACrC,UAAU,gBAAgB;IACxB,iCAAiC;IACjC,IAAI,EAAE,WAAW,CAAC;IAClB,2EAA2E;IAC3E,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IACtC;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,IAAI,KAAK,SAAS,CAAC;IACrE;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC;IAChD,iDAAiD;IACjD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAUD;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAuD5C,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { DropdownItem } from '@epam/ai-dial-ui-kit';
|
|
2
|
+
import { HeaderProps, ManageAction } from '../../../../models/details-header';
|
|
3
|
+
import { resolveHeaderActionVisibility } from '../../../../utils/details-header-actions';
|
|
4
|
+
/** Parameters for {@link useManageActions}. */
|
|
5
|
+
export interface UseManageActionsParams extends Pick<HeaderProps, 'texts' | 'detailsStyles'> {
|
|
6
|
+
/** Action visibility, from `resolveHeaderActionVisibility`. */
|
|
7
|
+
visibility: ReturnType<typeof resolveHeaderActionVisibility>;
|
|
8
|
+
/** Resolved recipient count, shown in the "Revoke access" label. */
|
|
9
|
+
recipientsCount: number | undefined;
|
|
10
|
+
/** Whether the Manage menu is open; an open menu is never promoted to a button. */
|
|
11
|
+
isManageMenuOpen: boolean;
|
|
12
|
+
/** Header handler run by the matching Manage entry. */
|
|
13
|
+
handleShare: () => void;
|
|
14
|
+
/** Header handler run by the matching Manage entry. */
|
|
15
|
+
handleEdit: () => void;
|
|
16
|
+
/** Header handler run by the matching Manage entry. */
|
|
17
|
+
handleDownload: () => void;
|
|
18
|
+
/** Header handler run by the matching Manage entry. */
|
|
19
|
+
handleOpenPublish: () => void;
|
|
20
|
+
/** Header handler run by the matching Manage entry. */
|
|
21
|
+
handleOpenUnpublish: () => void;
|
|
22
|
+
/** Header handler run by the matching Manage entry. */
|
|
23
|
+
handleDelete: () => void;
|
|
24
|
+
/** Header handler run by the matching Manage entry. */
|
|
25
|
+
handleRevokeShare: () => void;
|
|
26
|
+
/** Header handler run by the matching Manage entry. */
|
|
27
|
+
handleUnshare: () => void;
|
|
28
|
+
}
|
|
29
|
+
/** Manage-menu model of the details header: its entries, menu items, and the entry promoted to a button. */
|
|
30
|
+
export declare const useManageActions: ({ visibility, texts, detailsStyles, recipientsCount, isManageMenuOpen, handleShare, handleEdit, handleDownload, handleOpenPublish, handleOpenUnpublish, handleDelete, handleRevokeShare, handleUnshare, }: UseManageActionsParams) => {
|
|
31
|
+
manageItems: DropdownItem[];
|
|
32
|
+
promotedManageAction: ManageAction | undefined;
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=useManageActions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useManageActions.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/Header/hooks/useManageActions.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,YAAY,EAClB,MAAM,sBAAsB,CAAC;AAW9B,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EACb,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,0CAA0C,CAAC;AAG9F,+CAA+C;AAC/C,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAClD,WAAW,EACX,OAAO,GAAG,eAAe,CAC1B;IACC,+DAA+D;IAC/D,UAAU,EAAE,UAAU,CAAC,OAAO,6BAA6B,CAAC,CAAC;IAC7D,oEAAoE;IACpE,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,mFAAmF;IACnF,gBAAgB,EAAE,OAAO,CAAC;IAC1B,uDAAuD;IACvD,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,uDAAuD;IACvD,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,uDAAuD;IACvD,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,uDAAuD;IACvD,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,uDAAuD;IACvD,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,uDAAuD;IACvD,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,uDAAuD;IACvD,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,uDAAuD;IACvD,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,4GAA4G;AAC5G,eAAO,MAAM,gBAAgB,GAAI,2MAc9B,sBAAsB;;;CA4LxB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HeaderProps } from '../../../../models/details-header';
|
|
2
|
+
import { RecipientsCountStatus } from '../../../../types/recipients-count';
|
|
3
|
+
/** Parameters for {@link useRecipientsCount}. */
|
|
4
|
+
export type UseRecipientsCountParams = Pick<HeaderProps, 'item' | 'onFetchRecipientsCount' | 'onRevokeShare' | 'isRevokeShareVisible'>;
|
|
5
|
+
/** Per-item lookup of how many users hold shared access to an owned item. */
|
|
6
|
+
export declare const useRecipientsCount: ({ item, onFetchRecipientsCount, onRevokeShare, isRevokeShareVisible, }: UseRecipientsCountParams) => {
|
|
7
|
+
recipientsCountStatus: RecipientsCountStatus;
|
|
8
|
+
recipientsCount: number | undefined;
|
|
9
|
+
requestRecipientsCount: () => void;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=useRecipientsCount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRecipientsCount.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/Header/hooks/useRecipientsCount.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAE3E,iDAAiD;AACjD,MAAM,MAAM,wBAAwB,GAAG,IAAI,CACzC,WAAW,EACX,MAAM,GAAG,wBAAwB,GAAG,eAAe,GAAG,sBAAsB,CAC7E,CAAC;AAEF,6EAA6E;AAC7E,eAAO,MAAM,kBAAkB,GAAI,wEAKhC,wBAAwB;;;;CAyD1B,CAAC"}
|
|
@@ -50,8 +50,9 @@ export interface ContentTabProps {
|
|
|
50
50
|
/**
|
|
51
51
|
* Renders a catalog item's summary and its long-form body as read-only
|
|
52
52
|
* markdown, with `{{placeholder}}` tokens highlighted. An item carrying more
|
|
53
|
-
* than one file, at any depth, gets a hierarchical selector
|
|
54
|
-
*
|
|
53
|
+
* than one file, at any depth, gets a hierarchical selector between the
|
|
54
|
+
* description and body. The whole tab scrolls, with the selector pinned at
|
|
55
|
+
* its top edge once the description has scrolled away.
|
|
55
56
|
*/
|
|
56
57
|
export declare const ContentTab: FC<ContentTabProps>;
|
|
57
58
|
//# sourceMappingURL=Content.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/TabsContent/Content.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/TabsContent/Content.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,EAAE,EAAE,KAAK,SAAS,EAAS,MAAM,OAAO,CAAC;AAClD,OAAO,KAAK,EACV,yBAAyB,EACzB,iCAAiC,EACjC,sBAAsB,EACvB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EACV,qBAAqB,EACrB,iBAAiB,EAClB,MAAM,oCAAoC,CAAC;AAW5C,4BAA4B;AAC5B,MAAM,WAAW,eAAe;IAC9B,iEAAiE;IACjE,OAAO,EAAE,MAAM,CAAC;IAChB,8DAA8D;IAC9D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gIAAgI;IAChI,KAAK,CAAC,EAAE,sBAAsB,EAAE,CAAC;IACjC,0CAA0C;IAC1C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gEAAgE;IAChE,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,0DAA0D;IAC1D,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,mFAAmF;IACnF,iBAAiB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACxC,wEAAwE;IACxE,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,sEAAsE;IACtE,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,gEAAgE;IAChE,wBAAwB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACnD,2EAA2E;IAC3E,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,2GAA2G;IAC3G,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC3C,qFAAqF;IACrF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kIAAkI;IAClI,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,yBAAyB,GAAG,IAAI,CAAC;IAC/C,8EAA8E;IAC9E,kBAAkB,CAAC,EAAE,SAAS,CAAC;IAC/B,oGAAoG;IACpG,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,iCAAiC,KAAK,SAAS,CAAC;IACzE,8FAA8F;IAC9F,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC,sJAAsJ;IACtJ,cAAc,CAAC,EAAE,qBAAqB,CAAC;CACxC;AAED;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAyM1C,CAAC"}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { CatalogContentTreeNode } from '../../../../models/item-details-data';
|
|
3
|
+
/** Color overrides for {@link ContentFileTree}, applied as CSS custom properties on its root. */
|
|
4
|
+
interface ContentFileTreeColors {
|
|
5
|
+
/** Background of a hovered or focused row. Defaults to `--bg-control-accent-alpha-hover`. */
|
|
6
|
+
rowHoverBackground?: string;
|
|
7
|
+
/** Background of the displayed file's row. Defaults to `--bg-control-accent-alpha-active`. */
|
|
8
|
+
rowSelectedBackground?: string;
|
|
9
|
+
}
|
|
3
10
|
/** Props for {@link ContentFileTree}. */
|
|
4
11
|
export interface ContentFileTreeProps {
|
|
5
12
|
/** Root-level folder and file nodes to render. */
|
|
@@ -18,6 +25,8 @@ export interface ContentFileTreeProps {
|
|
|
18
25
|
ariaLabel?: string;
|
|
19
26
|
/** Typography class applied to every row's name text. Defaults to `'dial-small-text'`. */
|
|
20
27
|
rowNameClassName?: string;
|
|
28
|
+
/** Color overrides; the tree renders in a portal, so it sets the vars it reads on its own root. */
|
|
29
|
+
colors?: ContentFileTreeColors;
|
|
21
30
|
}
|
|
22
31
|
/**
|
|
23
32
|
* Recursive, read-only folder/file tree rendered inside the Content tab's
|
|
@@ -25,4 +34,5 @@ export interface ContentFileTreeProps {
|
|
|
25
34
|
* DOM; expand/collapse and selection state are fully controlled by the host.
|
|
26
35
|
*/
|
|
27
36
|
export declare const ContentFileTree: FC<ContentFileTreeProps>;
|
|
37
|
+
export {};
|
|
28
38
|
//# sourceMappingURL=ContentFileTree.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentFileTree.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/TabsContent/ContentFileTree/ContentFileTree.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,EAAE,EAOH,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"ContentFileTree.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/TabsContent/ContentFileTree/ContentFileTree.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,EAAE,EAOH,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAInF,iGAAiG;AACjG,UAAU,qBAAqB;IAC7B,6FAA6F;IAC7F,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,8FAA8F;IAC9F,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,yCAAyC;AACzC,MAAM,WAAW,oBAAoB;IACnC,kDAAkD;IAClD,KAAK,EAAE,sBAAsB,EAAE,CAAC;IAChC,sGAAsG;IACtG,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,yCAAyC;IACzC,iBAAiB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACvC,wEAAwE;IACxE,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,iDAAiD;IACjD,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,wDAAwD;IACxD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0FAA0F;IAC1F,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mGAAmG;IACnG,MAAM,CAAC,EAAE,qBAAqB,CAAC;CAChC;AAmBD;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CA4MpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LimitRow.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/TabsContent/Limits/LimitRow.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAWpE,UAAU,aAAc,SAAQ,kBAAkB;IAChD,GAAG,EAAE,qBAAqB,CAAC;IAC3B,MAAM,EAAE,cAAc,CAAC;CACxB;AAED,wKAAwK;AACxK,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"LimitRow.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/TabsContent/Limits/LimitRow.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAWpE,UAAU,aAAc,SAAQ,kBAAkB;IAChD,GAAG,EAAE,qBAAqB,CAAC;IAC3B,MAAM,EAAE,cAAc,CAAC;CACxB;AAED,wKAAwK;AACxK,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAkKtC,CAAC"}
|
|
@@ -14,6 +14,8 @@ export interface ToolsProps {
|
|
|
14
14
|
tableCellClassName?: string;
|
|
15
15
|
/** CSS class for the tool count above the list. Defaults to `'dial-tiny-text'`. */
|
|
16
16
|
countClassName?: string;
|
|
17
|
+
/** CSS class for parameter names, types and annotation keys inside the grids. Defaults to `'dial-tiny-code-text'`. */
|
|
18
|
+
codeClassName?: string;
|
|
17
19
|
/** Grid column headings, search, count and no-results strings, merged over English defaults. */
|
|
18
20
|
labels?: Partial<ToolsLabels>;
|
|
19
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tools.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/TabsContent/Tools/Tools.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tools.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/TabsContent/Tools/Tools.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,EAAE,EAAqB,MAAM,OAAO,CAAC;AAC9C,OAAO,KAAK,EACV,gBAAgB,EAEhB,WAAW,EACZ,MAAM,sCAAsC,CAAC;AAwB9C,yBAAyB;AACzB,MAAM,WAAW,UAAU;IACzB,4BAA4B;IAC5B,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,8EAA8E;IAC9E,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,wEAAwE;IACxE,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,6EAA6E;IAC7E,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,oEAAoE;IACpE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mFAAmF;IACnF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sHAAsH;IACtH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gGAAgG;IAChG,MAAM,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;CAC/B;AAED;;;GAGG;AACH,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CA2IhC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ConfirmationContent, PublishedFolder } from '../../../models/details-panel';
|
|
2
|
+
import { DetailsPanelProps } from '../../../models/item-details-props';
|
|
3
|
+
import { DetailsConfirmationKind } from '../../../types/details-confirmation';
|
|
4
|
+
import { CredentialsLevel } from '../../../types/toolset-auth';
|
|
5
|
+
/** Parameters for {@link useDetailsConfirmation}. */
|
|
6
|
+
export interface UseDetailsConfirmationParams extends Pick<DetailsPanelProps, 'item' | 'isOpen' | 'onClose' | 'onDelete' | 'onUnshare' | 'onRevokeShare' | 'onLogout' | 'onUnpublish' | 'texts'> {
|
|
7
|
+
/** Folders the item is published to, from `useDetailsPublish`. */
|
|
8
|
+
publishedFolders: PublishedFolder[];
|
|
9
|
+
/** Display label of a published folder key, from `useDetailsPublish`. */
|
|
10
|
+
formatFolderLabel: (folderKey: string) => string;
|
|
11
|
+
}
|
|
12
|
+
/** Confirmation step of the details panel: the pending kind, its handlers, and its copy. */
|
|
13
|
+
export declare const useDetailsConfirmation: ({ item, isOpen, onClose, onDelete, onUnshare, onRevokeShare, onLogout, onUnpublish, texts, publishedFolders, formatFolderLabel, }: UseDetailsConfirmationParams) => {
|
|
14
|
+
confirmation: DetailsConfirmationKind | null;
|
|
15
|
+
isConfirming: boolean;
|
|
16
|
+
selectedUnpublishFolder: string | null;
|
|
17
|
+
setSelectedUnpublishFolder: import('react').Dispatch<import('react').SetStateAction<string | null>>;
|
|
18
|
+
handleRequestDelete: () => void;
|
|
19
|
+
handleRequestLogout: (level?: CredentialsLevel) => void;
|
|
20
|
+
handleRequestUnshare: () => void;
|
|
21
|
+
handleRequestRevokeShare: () => void;
|
|
22
|
+
handleRequestUnpublish: () => void;
|
|
23
|
+
handleRequestDeleteApiKey: (level: CredentialsLevel) => void;
|
|
24
|
+
handleCancelConfirmation: () => void;
|
|
25
|
+
handleConfirm: () => Promise<void>;
|
|
26
|
+
confirmationContent: ConfirmationContent | null;
|
|
27
|
+
isConfirmDisabled: boolean;
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=useDetailsConfirmation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDetailsConfirmation.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/hooks/useDetailsConfirmation.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,mBAAmB,EACnB,eAAe,EAChB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAY/D,qDAAqD;AACrD,MAAM,WAAW,4BAA6B,SAAQ,IAAI,CACxD,iBAAiB,EACf,MAAM,GACN,QAAQ,GACR,SAAS,GACT,UAAU,GACV,WAAW,GACX,eAAe,GACf,UAAU,GACV,aAAa,GACb,OAAO,CACV;IACC,kEAAkE;IAClE,gBAAgB,EAAE,eAAe,EAAE,CAAC;IACpC,yEAAyE;IACzE,iBAAiB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;CAClD;AAED,4FAA4F;AAC5F,eAAO,MAAM,sBAAsB,GAAI,mIAYpC,4BAA4B;;;;;;kCAqClB,gBAAgB;;;;uCAwB2B,gBAAgB;;;;;CA8QvE,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { CatalogContentFilePreview } from '../../../models/item-details-data';
|
|
3
|
+
import { DetailsPanelProps } from '../../../models/item-details-props';
|
|
4
|
+
/** Parameters for {@link useDetailsContentFile}. */
|
|
5
|
+
export type UseDetailsContentFileParams = Pick<DetailsPanelProps, 'item' | 'onLoadContentFile' | 'onLoadContentFilePreview' | 'renderContentFilePreview' | 'texts'>;
|
|
6
|
+
/** Content-tab file picker state for the details panel. */
|
|
7
|
+
export declare const useDetailsContentFile: ({ item, onLoadContentFile, onLoadContentFilePreview, renderContentFilePreview, texts, }: UseDetailsContentFileParams) => {
|
|
8
|
+
promptContent: import('../../..').CatalogItemPromptContent | undefined;
|
|
9
|
+
selectedFileId: string | undefined;
|
|
10
|
+
isContentFileLoading: boolean;
|
|
11
|
+
expandedFolderIds: Set<string>;
|
|
12
|
+
isFileSelectorOpen: boolean;
|
|
13
|
+
setIsFileSelectorOpen: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
14
|
+
handleToggleFolder: (folderId: string) => void;
|
|
15
|
+
handleSelectContentFile: (fileId: string) => Promise<void>;
|
|
16
|
+
resolveContentFilePreview: () => CatalogContentFilePreview | null;
|
|
17
|
+
renderedContentFilePreview: ReactNode;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=useDetailsContentFile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDetailsContentFile.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/hooks/useDetailsContentFile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AACnF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAO5E,oDAAoD;AACpD,MAAM,MAAM,2BAA2B,GAAG,IAAI,CAC5C,iBAAiB,EACf,MAAM,GACN,mBAAmB,GACnB,0BAA0B,GAC1B,0BAA0B,GAC1B,OAAO,CACV,CAAC;AAEF,2DAA2D;AAC3D,eAAO,MAAM,qBAAqB,GAAI,yFAMnC,2BAA2B;;;;;;;mCA0EsB,MAAM;sCAavC,MAAM;qCAwEe,yBAAyB,GAAG,IAAI;;CA4BvE,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PublishedFolder } from '../../../models/details-panel';
|
|
2
|
+
import { DetailsPanelProps } from '../../../models/item-details-props';
|
|
3
|
+
/** Parameters for {@link useDetailsPublish}. */
|
|
4
|
+
export type UseDetailsPublishParams = Pick<DetailsPanelProps, 'item' | 'isReadonly' | 'getPublishHistory' | 'publishFolderItems' | 'hasPublishWriteAccess' | 'publishDefaultAuthor' | 'onPublish' | 'onPublishSuccess' | 'onPublishError' | 'onCreatePublishFolder' | 'onFetchExistingRules' | 'onUnpublish' | 'isUnpublishVisible' | 'publishLabels'>;
|
|
5
|
+
/** Publish sub-view state and the once-per-item publish-history lookup of the details panel. */
|
|
6
|
+
export declare const useDetailsPublish: ({ item, isReadonly, getPublishHistory, publishFolderItems, hasPublishWriteAccess, publishDefaultAuthor, onPublish, onPublishSuccess, onPublishError, onCreatePublishFolder, onFetchExistingRules, onUnpublish, isUnpublishVisible, publishLabels, }: UseDetailsPublishParams) => {
|
|
7
|
+
isPublishOpen: boolean;
|
|
8
|
+
isPublishHistoryResolved: boolean;
|
|
9
|
+
requestPublishHistory: () => void;
|
|
10
|
+
publishFlow: import('@epam/ai-dial-publish-panel').UsePublishFlowResult;
|
|
11
|
+
isPublishCredentialsEligible: boolean;
|
|
12
|
+
publishDerived: import('@epam/ai-dial-publish-panel').PublishDerivedState;
|
|
13
|
+
publishedFolders: PublishedFolder[];
|
|
14
|
+
hasPublishedFolders: boolean;
|
|
15
|
+
formatFolderLabel: (folderKey: string) => string;
|
|
16
|
+
handleOpenPublish: () => void;
|
|
17
|
+
handleClosePublish: () => void;
|
|
18
|
+
publishFolderView: import('@epam/ai-dial-publish-panel').UsePublishFolderViewResult;
|
|
19
|
+
isPublishFolderView: boolean;
|
|
20
|
+
handleSubmitPublish: () => Promise<void>;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=useDetailsPublish.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDetailsPublish.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/hooks/useDetailsPublish.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAQ5E,gDAAgD;AAChD,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACxC,iBAAiB,EACf,MAAM,GACN,YAAY,GACZ,mBAAmB,GACnB,oBAAoB,GACpB,uBAAuB,GACvB,sBAAsB,GACtB,WAAW,GACX,kBAAkB,GAClB,gBAAgB,GAChB,uBAAuB,GACvB,sBAAsB,GACtB,aAAa,GACb,oBAAoB,GACpB,eAAe,CAClB,CAAC;AAEF,gGAAgG;AAChG,eAAO,MAAM,iBAAiB,GAAI,qPAe/B,uBAAuB;;;;;;;;;mCAoKV,MAAM;;;;;;CAwCrB,CAAC"}
|
|
@@ -31,6 +31,8 @@ export interface FavoriteCardProps {
|
|
|
31
31
|
isSelected?: boolean;
|
|
32
32
|
/** Accessible label for the logged-out warning icon on the entity avatar, and the text shown in its hover tooltip. Default: `'Authorize to use this toolset.'`. */
|
|
33
33
|
credentialsBadgeLoggedOutLabel?: string;
|
|
34
|
+
/** Keyboard focus outline of a clickable card. Fallback: `--stroke-focus`. */
|
|
35
|
+
focusOutlineColor?: string;
|
|
34
36
|
}
|
|
35
37
|
/** Compact favorite card: logo + type + name + version + last-used, star aligned right. */
|
|
36
38
|
export declare const FavoriteCard: FC<FavoriteCardProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FavoriteCard.d.ts","sourceRoot":"","sources":["../../../src/components/Favorites/FavoriteCard.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"FavoriteCard.d.ts","sourceRoot":"","sources":["../../../src/components/Favorites/FavoriteCard.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,EAAE,EAAwB,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAOxD,8BAA8B;AAC9B,MAAM,WAAW,iBAAiB;IAChC,oCAAoC;IACpC,IAAI,EAAE,WAAW,CAAC;IAClB,wFAAwF;IACxF,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IACpD,gJAAgJ;IAChJ,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC;IACnD,4CAA4C;IAC5C,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IACtC,gFAAgF;IAChF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wDAAwD;IACxD,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,gFAAgF;IAChF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gFAAgF;IAChF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mFAAmF;IACnF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wGAAwG;IACxG,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,iHAAiH;IACjH,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,6IAA6I;IAC7I,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,mKAAmK;IACnK,8BAA8B,CAAC,EAAE,MAAM,CAAC;IACxC,8EAA8E;IAC9E,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,2FAA2F;AAC3F,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CA0H9C,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { FavoritesProps } from '../../models/favorites';
|
|
3
3
|
/**
|
|
4
|
-
* Favorites strip
|
|
5
|
-
*
|
|
4
|
+
* Favorites strip: a paginated responsive grid on desktop, a single
|
|
5
|
+
* horizontally scrollable row below the desktop breakpoint.
|
|
6
6
|
*/
|
|
7
7
|
export declare const Favorites: FC<FavoritesProps>;
|
|
8
8
|
//# sourceMappingURL=Favorites.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Favorites.d.ts","sourceRoot":"","sources":["../../../src/components/Favorites/Favorites.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Favorites.d.ts","sourceRoot":"","sources":["../../../src/components/Favorites/Favorites.tsx"],"names":[],"mappings":"AAYA,OAAO,EACL,EAAE,EAOH,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAwCxD;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAkhBxC,CAAC"}
|
|
@@ -25,6 +25,8 @@ export interface FilterColors {
|
|
|
25
25
|
overlayBackground?: string;
|
|
26
26
|
/** Dropdown overlay border color. Fallback: `--stroke-tertiary`. */
|
|
27
27
|
overlayBorder?: string;
|
|
28
|
+
/** Dropdown overlay shadow color. Fallback: `--shadow-lg`. */
|
|
29
|
+
overlayShadow?: string;
|
|
28
30
|
/** Row label text color. Fallback: `--text-primary`. */
|
|
29
31
|
rowLabel?: string;
|
|
30
32
|
/** Section heading ("Topics") text color. Fallback: `--text-tertiary`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Filter.d.ts","sourceRoot":"","sources":["../../../src/components/Filter/Filter.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Filter.d.ts","sourceRoot":"","sources":["../../../src/components/Filter/Filter.tsx"],"names":[],"mappings":"AAiBA,OAAO,EACL,EAAE,EAOH,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAI/D,wBAAwB;AACxB,sEAAsE;AACtE,MAAM,WAAW,YAAY;IAC3B,mEAAmE;IACnE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,0EAA0E;IAC1E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4EAA4E;IAC5E,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mGAAmG;IACnG,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,0FAA0F;IAC1F,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iGAAiG;IACjG,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,8DAA8D;IAC9D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6EAA6E;IAC7E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6EAA6E;IAC7E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kEAAkE;IAClE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,oEAAoE;IACpE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,8DAA8D;IAC9D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wDAAwD;IACxD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0EAA0E;IAC1E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iFAAiF;IACjF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8DAA8D;IAC9D,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,WAAW;IAC1B,sFAAsF;IACtF,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACrB,+CAA+C;IAC/C,QAAQ,EAAE,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IACzC,uDAAuD;IACvD,MAAM,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACrB,uDAAuD;IACvD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gDAAgD;IAChD,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,uDAAuD;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+DAA+D;IAC/D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8DAA8D;IAC9D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2DAA2D;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2DAA2D;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6EAA6E;IAC7E,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAC/B,wDAAwD;IACxD,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB;AAgBD,+GAA+G;AAC/G,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CAuTlC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { ListViewProps } from '../../models/list-props';
|
|
3
|
-
/**
|
|
3
|
+
/** ui-kit `Grid` table view of catalog items. */
|
|
4
4
|
export declare const ListView: FC<ListViewProps>;
|
|
5
5
|
//# sourceMappingURL=ListView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListView.d.ts","sourceRoot":"","sources":["../../../src/components/ListView/ListView.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ListView.d.ts","sourceRoot":"","sources":["../../../src/components/ListView/ListView.tsx"],"names":[],"mappings":"AAeA,OAAO,EAEL,EAAE,EAMH,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAyCxD,iDAAiD;AACjD,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAwMtC,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { CatalogEntityType } from '@epam/ai-dial-chat-shared';
|
|
1
2
|
import { ICellRendererParams } from 'ag-grid-community';
|
|
2
3
|
import { FC } from 'react';
|
|
3
4
|
import { CatalogItem } from '../../../models/catalog-item';
|
|
4
5
|
import { GridContext } from '../../../models/grid-context';
|
|
5
6
|
/** ag-grid cell renderer for the entity-type column. */
|
|
6
|
-
export declare const EntityTypeCellRenderer: FC<ICellRendererParams<CatalogItem,
|
|
7
|
+
export declare const EntityTypeCellRenderer: FC<ICellRendererParams<CatalogItem, CatalogEntityType, GridContext>>;
|
|
7
8
|
//# sourceMappingURL=EntityTypeCellRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityTypeCellRenderer.d.ts","sourceRoot":"","sources":["../../../../src/components/ListView/Renders/EntityTypeCellRenderer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EntityTypeCellRenderer.d.ts","sourceRoot":"","sources":["../../../../src/components/ListView/Renders/EntityTypeCellRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAmB,MAAM,2BAA2B,CAAC;AAC/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,wDAAwD;AACxD,eAAO,MAAM,sBAAsB,EAAE,EAAE,CACrC,mBAAmB,CAAC,WAAW,EAAE,iBAAiB,EAAE,WAAW,CAAC,CASjE,CAAC"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { CatalogEntityType } from '@epam/ai-dial-chat-shared';
|
|
2
2
|
import { ColDef } from 'ag-grid-community';
|
|
3
3
|
import { CatalogItem } from '../../models/catalog-item';
|
|
4
|
-
|
|
5
|
-
export declare const SELECTION_COLUMN_ID = "selection";
|
|
6
|
-
/** The optional built-in `ListView` columns a host can independently show or hide per entity type. */
|
|
7
|
-
export type ListViewColumnKey = 'folder' | 'tags' | 'favorite';
|
|
4
|
+
import { ListViewColumnKey } from '../../types/list-view-column';
|
|
8
5
|
/**
|
|
9
6
|
* Per-column rule resolving whether an optional `ListView` column renders for
|
|
10
7
|
* the active tab, given its entity `type`. Overrides the column's built-in
|
|
@@ -21,8 +18,8 @@ export type ListViewColumnVisibility = Partial<Record<ListViewColumnKey, (type:
|
|
|
21
18
|
* unreadable stubs and tags were clipped mid-word. Name keeps twice the share
|
|
22
19
|
* because it carries the icon, the name and the version.
|
|
23
20
|
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
21
|
+
* The multi-select checkbox column is the ui-kit `Grid`'s own, so it is not
|
|
22
|
+
* declared here.
|
|
26
23
|
*/
|
|
27
|
-
export declare const CATALOG_COLUMNS: (type: CatalogEntityType, isReadonly?: boolean, columnVisibility?: ListViewColumnVisibility
|
|
24
|
+
export declare const CATALOG_COLUMNS: (type: CatalogEntityType, isReadonly?: boolean, columnVisibility?: ListViewColumnVisibility) => ColDef<CatalogItem>[];
|
|
28
25
|
//# sourceMappingURL=columns.d.ts.map
|