@epam/ai-dial-catalog 1.1.0-dev.29 → 1.1.0-dev.290
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/AppIdentity/AppIdentity.d.ts +9 -14
- package/components/AppIdentity/AppIdentity.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/CardTag/CardTag.d.ts +24 -0
- package/components/CardTag/CardTag.d.ts.map +1 -0
- package/components/Catalog/Catalog.d.ts +1 -5
- package/components/Catalog/Catalog.d.ts.map +1 -1
- package/components/Catalog/CreateButton.d.ts +2 -2
- package/components/Catalog/CreateButton.d.ts.map +1 -1
- package/components/CredentialsBadge/CredentialsBadge.d.ts +12 -5
- package/components/CredentialsBadge/CredentialsBadge.d.ts.map +1 -1
- package/components/Details/ApiDetails.d.ts +6 -2
- package/components/Details/ApiDetails.d.ts.map +1 -1
- package/components/Details/ConfirmationView/ConfirmationFooter.d.ts +29 -0
- package/components/Details/ConfirmationView/ConfirmationFooter.d.ts.map +1 -0
- package/components/Details/ConfirmationView/ConfirmationView.d.ts +28 -0
- package/components/Details/ConfirmationView/ConfirmationView.d.ts.map +1 -0
- package/components/Details/Credentials/CredentialsBanner/CredentialsBanner.d.ts +16 -0
- package/components/Details/Credentials/CredentialsBanner/CredentialsBanner.d.ts.map +1 -0
- package/components/Details/Credentials/CredentialsIdentityIcon/CredentialsIdentityIcon.d.ts +29 -0
- package/components/Details/Credentials/CredentialsIdentityIcon/CredentialsIdentityIcon.d.ts.map +1 -0
- package/components/Details/Credentials/CredentialsInfoCard/CredentialsInfoCard.d.ts +20 -0
- package/components/Details/Credentials/CredentialsInfoCard/CredentialsInfoCard.d.ts.map +1 -0
- package/components/Details/Credentials/CredentialsManagementPanel/CredentialsManagementPanel.d.ts +31 -0
- package/components/Details/Credentials/CredentialsManagementPanel/CredentialsManagementPanel.d.ts.map +1 -0
- package/components/Details/DetailsPanel.d.ts.map +1 -1
- package/components/Details/Header/CredentialsApiKeyOverlay/CredentialsApiKeyOverlay.d.ts +34 -0
- package/components/Details/Header/CredentialsApiKeyOverlay/CredentialsApiKeyOverlay.d.ts.map +1 -0
- package/components/Details/Header/Header.d.ts +93 -19
- package/components/Details/Header/Header.d.ts.map +1 -1
- package/components/Details/Header/ShareButton/ShareButton.d.ts +6 -0
- package/components/Details/Header/ShareButton/ShareButton.d.ts.map +1 -1
- package/components/Details/TabsContent/About.d.ts +3 -2
- package/components/Details/TabsContent/About.d.ts.map +1 -1
- package/components/Details/TabsContent/Content.d.ts +53 -0
- package/components/Details/TabsContent/Content.d.ts.map +1 -0
- package/components/Details/TabsContent/ContentFileTree/ContentFileTree.d.ts +28 -0
- package/components/Details/TabsContent/ContentFileTree/ContentFileTree.d.ts.map +1 -0
- package/components/Details/TabsContent/DataGrid/DataGrid.d.ts +1 -1
- package/components/Details/TabsContent/DataGrid/DataGrid.d.ts.map +1 -1
- package/components/Details/TabsContent/Limits.d.ts +34 -3
- package/components/Details/TabsContent/Limits.d.ts.map +1 -1
- package/components/Favorites/FavoriteCard.d.ts +9 -4
- package/components/Favorites/FavoriteCard.d.ts.map +1 -1
- package/components/Favorites/Favorites.d.ts.map +1 -1
- package/components/Filter/Filter.d.ts +42 -6
- package/components/Filter/Filter.d.ts.map +1 -1
- package/components/InfoCard/InfoCard.d.ts +15 -0
- package/components/InfoCard/InfoCard.d.ts.map +1 -0
- package/components/ListView/ListView.d.ts +1 -5
- package/components/ListView/ListView.d.ts.map +1 -1
- package/components/ListView/Renders/EntityTypeCellRenderer.d.ts +1 -0
- package/components/ListView/Renders/EntityTypeCellRenderer.d.ts.map +1 -1
- package/components/ListView/Renders/FolderCellRenderer.d.ts +1 -0
- package/components/ListView/Renders/FolderCellRenderer.d.ts.map +1 -1
- package/components/ListView/Renders/NameCellRenderer.d.ts +1 -0
- package/components/ListView/Renders/NameCellRenderer.d.ts.map +1 -1
- package/components/ListView/Renders/StarCellRenderer.d.ts +1 -0
- package/components/ListView/Renders/StarCellRenderer.d.ts.map +1 -1
- package/components/ListView/Renders/TagsCellRenderer.d.ts +1 -0
- package/components/ListView/Renders/TagsCellRenderer.d.ts.map +1 -1
- package/components/ListView/columns.d.ts +2 -1
- package/components/ListView/columns.d.ts.map +1 -1
- package/components/StarToggleButton/StarToggleButton.d.ts +2 -0
- package/components/StarToggleButton/StarToggleButton.d.ts.map +1 -1
- package/components/TableView/TableView.d.ts +19 -0
- package/components/TableView/TableView.d.ts.map +1 -1
- package/components/Toolbar/Rows/TitleRow.d.ts +4 -3
- package/components/Toolbar/Rows/TitleRow.d.ts.map +1 -1
- package/components/Toolbar/Toolbar.d.ts.map +1 -1
- package/components/TopicTag/TopicTag.d.ts +12 -7
- package/components/TopicTag/TopicTag.d.ts.map +1 -1
- package/index.css +1 -1
- package/index.d.ts +22 -34
- package/index.d.ts.map +1 -1
- package/index.js +59493 -22777
- package/models/app-identity-styles.d.ts +28 -0
- package/models/app-identity-styles.d.ts.map +1 -0
- package/models/card-props.d.ts +16 -14
- package/models/card-props.d.ts.map +1 -1
- package/models/card-row-data.d.ts +3 -1
- package/models/card-row-data.d.ts.map +1 -1
- package/models/catalog-item-credentials.d.ts +4 -0
- package/models/catalog-item-credentials.d.ts.map +1 -1
- package/models/catalog-item.d.ts +3 -6
- package/models/catalog-item.d.ts.map +1 -1
- package/models/catalog-props.d.ts +142 -33
- package/models/catalog-props.d.ts.map +1 -1
- package/models/catalog-styles.d.ts +4 -41
- package/models/catalog-styles.d.ts.map +1 -1
- package/models/favorites.d.ts +24 -8
- package/models/favorites.d.ts.map +1 -1
- package/models/grid-context.d.ts +4 -1
- package/models/grid-context.d.ts.map +1 -1
- package/models/grid-props.d.ts +11 -1
- package/models/grid-props.d.ts.map +1 -1
- package/models/item-details-data.d.ts +72 -2
- package/models/item-details-data.d.ts.map +1 -1
- package/models/item-details-props.d.ts +443 -57
- package/models/item-details-props.d.ts.map +1 -1
- package/models/item-overview.d.ts +1 -7
- package/models/item-overview.d.ts.map +1 -1
- package/models/list-props.d.ts +25 -4
- package/models/list-props.d.ts.map +1 -1
- package/models/toolbar-props.d.ts +7 -21
- package/models/toolbar-props.d.ts.map +1 -1
- package/package.json +5 -6
- package/types/catalog-content-type.d.ts +13 -0
- package/types/catalog-content-type.d.ts.map +1 -0
- package/types/deployment-icon-size.d.ts +5 -0
- package/types/deployment-icon-size.d.ts.map +1 -0
- package/types/detail-tab.d.ts +4 -1
- package/types/detail-tab.d.ts.map +1 -1
- package/types/details-confirmation.d.ts +28 -0
- package/types/details-confirmation.d.ts.map +1 -0
- package/types/recipients-count.d.ts +12 -0
- package/types/recipients-count.d.ts.map +1 -0
- package/types/toolset-auth.d.ts +9 -0
- package/types/toolset-auth.d.ts.map +1 -1
- package/utils/catalog-content-tree.d.ts +8 -0
- package/utils/catalog-content-tree.d.ts.map +1 -0
- package/utils/catalog-filter.d.ts +1 -0
- package/utils/catalog-filter.d.ts.map +1 -1
- package/utils/catalog-sort.d.ts +1 -8
- package/utils/catalog-sort.d.ts.map +1 -1
- package/utils/catalog-tabs.d.ts +2 -2
- package/utils/catalog-tabs.d.ts.map +1 -1
- package/utils/styles.d.ts +1 -3
- package/utils/styles.d.ts.map +1 -1
- package/utils/toolset-credentials.d.ts +6 -19
- package/utils/toolset-credentials.d.ts.map +1 -1
- package/utils/use-fav-columns.d.ts +1 -4
- package/utils/use-fav-columns.d.ts.map +1 -1
- package/utils/use-scroll-virtualizer.d.ts +1 -9
- package/utils/use-scroll-virtualizer.d.ts.map +1 -1
- package/components/Details/Credentials/CredentialsSection.d.ts +0 -21
- package/components/Details/Credentials/CredentialsSection.d.ts.map +0 -1
- package/components/Details/Header/ConnectButton/ConnectButton.d.ts +0 -25
- package/components/Details/Header/ConnectButton/ConnectButton.d.ts.map +0 -1
- package/components/Details/Header/DeleteButton/DeleteButton.d.ts +0 -25
- package/components/Details/Header/DeleteButton/DeleteButton.d.ts.map +0 -1
- package/components/Details/Summary/Limits.d.ts +0 -18
- package/components/Details/Summary/Limits.d.ts.map +0 -1
- package/components/Details/Summary/Summary.d.ts +0 -12
- package/components/Details/Summary/Summary.d.ts.map +0 -1
- package/components/EntityHeader/EntityHeader.d.ts +0 -32
- package/components/EntityHeader/EntityHeader.d.ts.map +0 -1
- package/components/EntityTypeLabel/EntityTypeLabel.d.ts +0 -16
- package/components/EntityTypeLabel/EntityTypeLabel.d.ts.map +0 -1
- package/components/FeaturedChip/FeaturedChip.d.ts +0 -11
- package/components/FeaturedChip/FeaturedChip.d.ts.map +0 -1
- package/components/FolderPath/FolderPath.d.ts +0 -25
- package/components/FolderPath/FolderPath.d.ts.map +0 -1
- package/components/ItemHeader/ItemHeader.d.ts +0 -14
- package/components/ItemHeader/ItemHeader.d.ts.map +0 -1
- package/components/PublishFoldersTree/PublishFoldersTree.d.ts +0 -72
- package/components/PublishFoldersTree/PublishFoldersTree.d.ts.map +0 -1
- package/components/PublishHistoryList/PublishHistoryList.d.ts +0 -44
- package/components/PublishHistoryList/PublishHistoryList.d.ts.map +0 -1
- package/components/PublishPanel/PublishFooter.d.ts +0 -37
- package/components/PublishPanel/PublishFooter.d.ts.map +0 -1
- package/components/PublishPanel/PublishPanel.d.ts +0 -109
- package/components/PublishPanel/PublishPanel.d.ts.map +0 -1
- package/components/PublishPanel/StandalonePublishPanel.d.ts +0 -90
- package/components/PublishPanel/StandalonePublishPanel.d.ts.map +0 -1
- package/components/SearchBar/SearchBar.d.ts +0 -29
- package/components/SearchBar/SearchBar.d.ts.map +0 -1
- package/constants/catalog-defaults.d.ts +0 -4
- package/constants/catalog-defaults.d.ts.map +0 -1
- package/constants/entity-colors.d.ts +0 -6
- package/constants/entity-colors.d.ts.map +0 -1
- package/models/entity-summary.d.ts +0 -23
- package/models/entity-summary.d.ts.map +0 -1
- package/models/publish.d.ts +0 -89
- package/models/publish.d.ts.map +0 -1
- package/models/sort.d.ts +0 -8
- package/models/sort.d.ts.map +0 -1
- package/types/entity-tag.d.ts +0 -9
- package/types/entity-tag.d.ts.map +0 -1
- package/types/entity-type.d.ts +0 -11
- package/types/entity-type.d.ts.map +0 -1
- package/utils/format-published-date.d.ts +0 -8
- package/utils/format-published-date.d.ts.map +0 -1
- package/utils/parse-about-content.d.ts +0 -32
- package/utils/parse-about-content.d.ts.map +0 -1
- package/utils/publish-folder-tree.d.ts +0 -45
- package/utils/publish-folder-tree.d.ts.map +0 -1
- package/utils/publish-state.d.ts +0 -9
- package/utils/publish-state.d.ts.map +0 -1
- package/utils/use-publish-flow.d.ts +0 -77
- package/utils/use-publish-flow.d.ts.map +0 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** Color overrides for `AppIdentity`, applied as CSS custom properties. */
|
|
2
|
+
export interface AppIdentityColors {
|
|
3
|
+
/** Entity name text color. Fallback: `--text-primary`. */
|
|
4
|
+
nameColor?: string;
|
|
5
|
+
/** Last-used line text color. Fallback: `--text-tertiary`. */
|
|
6
|
+
lastUsedColor?: string;
|
|
7
|
+
/** Version text color. Fallback: `--text-secondary`. */
|
|
8
|
+
versionColor?: string;
|
|
9
|
+
}
|
|
10
|
+
/** Typography class overrides for `AppIdentity`. */
|
|
11
|
+
export interface AppIdentityTypography {
|
|
12
|
+
/** CSS class for the type label. Default: `'dial-caption-lead-semi-text'`. */
|
|
13
|
+
typeClassName?: string;
|
|
14
|
+
/** Typography CSS class for the entity name. Default: `'dial-body-semi-text'`. */
|
|
15
|
+
nameClassName?: string;
|
|
16
|
+
/** Typography CSS class for the version string. Default: `'dial-tiny-text'`. */
|
|
17
|
+
versionClassName?: string;
|
|
18
|
+
/** Typography CSS class for the last-used line text and icon. Default: `'dial-tiny-text'`. */
|
|
19
|
+
lastUsedClassName?: string;
|
|
20
|
+
}
|
|
21
|
+
/** Grouped style overrides for `AppIdentity`. */
|
|
22
|
+
export interface AppIdentityStyles {
|
|
23
|
+
/** Color overrides applied as CSS custom properties. */
|
|
24
|
+
colors?: AppIdentityColors;
|
|
25
|
+
/** Typography class overrides. */
|
|
26
|
+
typography?: AppIdentityTypography;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=app-identity-styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-identity-styles.d.ts","sourceRoot":"","sources":["../../src/models/app-identity-styles.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,MAAM,WAAW,iBAAiB;IAChC,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8DAA8D;IAC9D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wDAAwD;IACxD,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,oDAAoD;AACpD,MAAM,WAAW,qBAAqB;IACpC,8EAA8E;IAC9E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kFAAkF;IAClF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gFAAgF;IAChF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,8FAA8F;IAC9F,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,iDAAiD;AACjD,MAAM,WAAW,iBAAiB;IAChC,wDAAwD;IACxD,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,kCAAkC;IAClC,UAAU,CAAC,EAAE,qBAAqB,CAAC;CACpC"}
|
package/models/card-props.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { CatalogItem } from './catalog-item';
|
|
2
2
|
/** Typography class overrides for `Card` content. */
|
|
3
3
|
export interface CardTypography {
|
|
4
|
-
/** Typography class applied to the item name. Default: `'dial-
|
|
4
|
+
/** Typography class applied to the item name. Default: `'dial-body-semi-text'`. */
|
|
5
5
|
nameClassName?: string;
|
|
6
6
|
/** Typography class applied to the version text. Default: `'dial-tiny-text'`. */
|
|
7
7
|
versionClassName?: string;
|
|
8
8
|
/** Typography class applied to the description text. Default: `'dial-small-text'`. */
|
|
9
9
|
descriptionClassName?: string;
|
|
10
|
-
/** Typography class applied to the
|
|
10
|
+
/** Typography class applied to the last-used text. Default: `'dial-tiny-text'`. */
|
|
11
|
+
descriptionSizeClassName?: string;
|
|
12
|
+
/** Typography class applied to the featured chip label. Default: `'dial-tiny-lead-semi-text'`. */
|
|
11
13
|
featuredChipClassName?: string;
|
|
12
14
|
/** Typography class applied to folder path separator labels. Default: `'dial-tiny-text'`. */
|
|
13
15
|
folderLabelClassName?: string;
|
|
@@ -16,22 +18,20 @@ export interface CardTypography {
|
|
|
16
18
|
}
|
|
17
19
|
/** Color overrides applied as CSS custom properties for `Card`. */
|
|
18
20
|
export interface CardColors {
|
|
19
|
-
/** Default card background color. Fallback: `--bg-layer-
|
|
21
|
+
/** Default card background color. Fallback: `--bg-layer-sunken`. */
|
|
20
22
|
background?: string;
|
|
21
|
-
/** Hovered card background color. Fallback: `--bg-layer-3`. */
|
|
22
|
-
hoverBackground?: string;
|
|
23
23
|
/** Card border color. Fallback: `--stroke-secondary`. */
|
|
24
24
|
border?: string;
|
|
25
|
-
/** Featured card glow color. Fallback: `rgba(125, 164, 255, 0.5)`. */
|
|
26
|
-
featuredGlow?: string;
|
|
27
|
-
/** Featured top accent bar color. Fallback: `--stroke-accent-primary`. */
|
|
28
|
-
featuredBar?: string;
|
|
29
|
-
/** Item name and description text color. Fallback: `--text-primary`. */
|
|
30
|
-
textPrimary?: string;
|
|
31
25
|
/** Version text color. Fallback: `--text-secondary`. */
|
|
32
26
|
textSecondary?: string;
|
|
33
|
-
/**
|
|
34
|
-
|
|
27
|
+
/** Border color of a selected card. Fallback: `--stroke-accent`. */
|
|
28
|
+
selectedBorder?: string;
|
|
29
|
+
/** Background color (tint) of a selected card. Fallback: `--bg-control-accent-alpha-active`. */
|
|
30
|
+
selectedBackground?: string;
|
|
31
|
+
/** Selected-checkmark icon color. Fallback: `--text-accent`. */
|
|
32
|
+
checkIcon?: string;
|
|
33
|
+
/** Top border color of the footer row (folder path / star button). Fallback: `--stroke-tertiary`. */
|
|
34
|
+
footerBorder?: string;
|
|
35
35
|
}
|
|
36
36
|
/** Grouped style overrides for `Card`. */
|
|
37
37
|
export interface CardStyles {
|
|
@@ -52,6 +52,8 @@ export interface CardProps {
|
|
|
52
52
|
initialIsStarred?: boolean;
|
|
53
53
|
/** Called when the star button is toggled. */
|
|
54
54
|
onToggle?: (id: string, isStarred: boolean) => void;
|
|
55
|
+
/** Rule for whether the favorite star is shown; `false` hides the star and makes the item non-favoritable. Defaults to visible when omitted. */
|
|
56
|
+
isFavoriteVisible?: (item: CatalogItem) => boolean;
|
|
55
57
|
/** Called when the card body is clicked (excluding the star button). */
|
|
56
58
|
onClick?: (item: CatalogItem) => void;
|
|
57
59
|
/** Grouped color and typography overrides. */
|
|
@@ -64,7 +66,7 @@ export interface CardProps {
|
|
|
64
66
|
removeFromFavoritesAriaLabel?: string;
|
|
65
67
|
/** Whether this card represents the currently selected item — shows an accent border, tinted background, and a checkmark. Default: false. */
|
|
66
68
|
isSelected?: boolean;
|
|
67
|
-
/**
|
|
69
|
+
/** 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.'`. */
|
|
68
70
|
credentialsBadgeLoggedOutLabel?: string;
|
|
69
71
|
}
|
|
70
72
|
//# sourceMappingURL=card-props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card-props.d.ts","sourceRoot":"","sources":["../../src/models/card-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,qDAAqD;AACrD,MAAM,WAAW,cAAc;IAC7B,
|
|
1
|
+
{"version":3,"file":"card-props.d.ts","sourceRoot":"","sources":["../../src/models/card-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,qDAAqD;AACrD,MAAM,WAAW,cAAc;IAC7B,mFAAmF;IACnF,aAAa,CAAC,EAAE,MAAM,CAAC;I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AgJ;IAChJ,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC;IACnD,wEAAwE;IACxE,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IACtC,8CAA8C;IAC9C,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,2DAA2D;IAC3D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,4GAA4G;IAC5G,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;CACzC"}
|
|
@@ -9,6 +9,8 @@ export interface CardRowData {
|
|
|
9
9
|
query: string;
|
|
10
10
|
/** Called when a card's star is toggled. */
|
|
11
11
|
onToggleFavorite?: (id: string, isStarred: boolean) => void;
|
|
12
|
+
/** Rule for whether the favorite star is shown on a card; `false` hides it. Defaults to visible when omitted. */
|
|
13
|
+
isFavoriteVisible?: (item: CatalogItem) => boolean;
|
|
12
14
|
/** Called when a card body is clicked. */
|
|
13
15
|
onItemClick?: (item: CatalogItem) => void;
|
|
14
16
|
/** Label for the "Featured" tag rendered on featured cards. */
|
|
@@ -19,7 +21,7 @@ export interface CardRowData {
|
|
|
19
21
|
removeFromFavoritesAriaLabel: string;
|
|
20
22
|
/** ID of an item to visually mark as selected (border, tint, and checkmark). */
|
|
21
23
|
selectedItemId?: string;
|
|
22
|
-
/**
|
|
24
|
+
/** Accessible label for the logged-out warning icon on the entity avatar, and the text shown in its hover tooltip. */
|
|
23
25
|
credentialsBadgeLoggedOutLabel: string;
|
|
24
26
|
}
|
|
25
27
|
//# sourceMappingURL=card-row-data.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card-row-data.d.ts","sourceRoot":"","sources":["../../src/models/card-row-data.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I,CAAC;IAC1C,+DAA+D;IAC/D,aAAa,EAAE,MAAM,CAAC;IACtB,yEAAyE;IACzE,uBAAuB,EAAE,MAAM,CAAC;IAChC,6EAA6E;IAC7E,4BAA4B,EAAE,MAAM,CAAC;IACrC,gFAAgF;IAChF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sHAAsH;IACtH,8BAA8B,EAAE,MAAM,CAAC;CACxC"}
|
|
@@ -13,5 +13,9 @@ export interface CatalogItemCredentials {
|
|
|
13
13
|
isManageableByAdmin?: boolean;
|
|
14
14
|
/** Name of the API key header, shown as a hint in the login form. Only set for `API_KEY` authentication. */
|
|
15
15
|
apiKeyHeader?: string;
|
|
16
|
+
/** Already-formatted relative time (e.g. `'3 weeks ago'`) since the personal API key was added. Only set for `API_KEY` authentication when `userStatus` is `SIGNED_IN`. Omit to hide the "Added …" caption. */
|
|
17
|
+
userApiKeyAddedWhen?: string;
|
|
18
|
+
/** Already-formatted relative time since the organization-wide API key was added. Only set for `API_KEY` authentication when `globalStatus` is `SIGNED_IN`. Omit to hide the "Added …" caption. */
|
|
19
|
+
globalApiKeyAddedWhen?: string;
|
|
16
20
|
}
|
|
17
21
|
//# sourceMappingURL=catalog-item-credentials.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog-item-credentials.d.ts","sourceRoot":"","sources":["../../src/models/catalog-item-credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,yBAAyB,EAC1B,MAAM,uBAAuB,CAAC;AAE/B,oFAAoF;AACpF,MAAM,WAAW,sBAAsB;IACrC,qDAAqD;IACrD,kBAAkB,EAAE,yBAAyB,CAAC;IAC9C,gFAAgF;IAChF,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,4EAA4E;IAC5E,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,+FAA+F;IAC/F,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8HAA8H;IAC9H,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,4GAA4G;IAC5G,YAAY,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog-item-credentials.d.ts","sourceRoot":"","sources":["../../src/models/catalog-item-credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,yBAAyB,EAC1B,MAAM,uBAAuB,CAAC;AAE/B,oFAAoF;AACpF,MAAM,WAAW,sBAAsB;IACrC,qDAAqD;IACrD,kBAAkB,EAAE,yBAAyB,CAAC;IAC9C,gFAAgF;IAChF,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,4EAA4E;IAC5E,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,+FAA+F;IAC/F,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8HAA8H;IAC9H,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,4GAA4G;IAC5G,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+MAA+M;IAC/M,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mMAAmM;IACnM,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC"}
|
package/models/catalog-item.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { CatalogEntityType } from '
|
|
1
|
+
import { CatalogEntityType } from '@epam/ai-dial-chat-shared';
|
|
2
2
|
import { CatalogItemCredentials } from './catalog-item-credentials';
|
|
3
|
-
import { CatalogItemSummary } from './entity-summary';
|
|
4
3
|
import { CatalogItemTabData } from './item-details-data';
|
|
5
4
|
/** Full catalog item shown in the Browse section. */
|
|
6
5
|
export interface CatalogItem {
|
|
@@ -26,8 +25,6 @@ export interface CatalogItem {
|
|
|
26
25
|
isFeatured?: boolean;
|
|
27
26
|
/** Short description, typically 1–2 lines. */
|
|
28
27
|
description: string;
|
|
29
|
-
/** Longer-form intro text shown in the details panel's Intro section. Falls back to `description` when absent. */
|
|
30
|
-
intro?: string;
|
|
31
28
|
/** When true the item is hidden from the main Browse view and only shown in Search results. */
|
|
32
29
|
isHidden?: boolean;
|
|
33
30
|
/** Whether the item is marked as a favorite by the user. */
|
|
@@ -44,13 +41,13 @@ export interface CatalogItem {
|
|
|
44
41
|
folder: string[];
|
|
45
42
|
/** Topics associated with the item. */
|
|
46
43
|
topics: string[];
|
|
47
|
-
/** Header-level summary metadata (tag, badge image, daily limit). When absent the summary block is hidden. */
|
|
48
|
-
summary?: CatalogItemSummary;
|
|
49
44
|
/** Tab-specific detail data. A tab is shown only when its field is non-null. */
|
|
50
45
|
details?: CatalogItemTabData;
|
|
51
46
|
/** Credential status for the item's own authentication. Absent when the item requires no authentication. */
|
|
52
47
|
credentials?: CatalogItemCredentials;
|
|
53
48
|
/** Whether this application supports the MCP protocol; only meaningful for `Application` items. */
|
|
54
49
|
supportsMcp?: boolean;
|
|
50
|
+
/** Whether this item can be used in chat. Default: true. Set to false to hide the "Use in chat" primary action for a Model or Application that does not expose a chat interface. */
|
|
51
|
+
supportsChat?: boolean;
|
|
55
52
|
}
|
|
56
53
|
//# sourceMappingURL=catalog-item.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog-item.d.ts","sourceRoot":"","sources":["../../src/models/catalog-item.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"catalog-item.d.ts","sourceRoot":"","sources":["../../src/models/catalog-item.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,qDAAqD;AACrD,MAAM,WAAW,WAAW;IAC1B,yBAAyB;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,uBAAuB;IACvB,IAAI,EAAE,iBAAiB,CAAC;IACxB,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,OAAO,EAAE,MAAM,CAAC;IAChB,+DAA+D;IAC/D,QAAQ,EAAE,MAAM,CAAC;IACjB,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oFAAoF;IACpF,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,uEAAuE;IACvE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,8CAA8C;IAC9C,WAAW,EAAE,MAAM,CAAC;IACpB,+FAA+F;IAC/F,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4DAA4D;IAC5D,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,sGAAsG;IACtG,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,oGAAoG;IACpG,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,8IAA8I;IAC9I,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,yGAAyG;IACzG,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,wDAAwD;IACxD,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,uCAAuC;IACvC,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,gFAAgF;IAChF,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,4GAA4G;IAC5G,WAAW,CAAC,EAAE,sBAAsB,CAAC;IACrC,mGAAmG;IACnG,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oLAAoL;IACpL,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB"}
|
|
@@ -1,30 +1,14 @@
|
|
|
1
|
+
import { CatalogEntityType } from '@epam/ai-dial-chat-shared';
|
|
2
|
+
import { PublicationRule, PublishFolderNode, PublishFooterLabels, PublishHistoryEntry, PublishPanelLabels } from '../../../publish-panel/src/index.ts';
|
|
3
|
+
import { DropdownItem } from '@epam/ai-dial-ui-kit';
|
|
1
4
|
import { ReactNode } from 'react';
|
|
2
|
-
import { PublishFooterTexts } from '../components/PublishPanel/PublishFooter';
|
|
3
|
-
import { PublishPanelTexts } from '../components/PublishPanel/PublishPanel';
|
|
4
|
-
import { CatalogEntityType } from '../types/entity-type';
|
|
5
5
|
import { CatalogSortKey } from '../types/sort';
|
|
6
6
|
import { CredentialsLevel } from '../types/toolset-auth';
|
|
7
|
+
import { CatalogViewMode } from '../types/view-mode';
|
|
7
8
|
import { CatalogItem } from './catalog-item';
|
|
8
9
|
import { CatalogStyles } from './catalog-styles';
|
|
9
|
-
import { CatalogItemDetailsFetchResult } from './item-details-data';
|
|
10
|
+
import { CatalogContentFilePreview, CatalogItemDetailsFetchResult } from './item-details-data';
|
|
10
11
|
import { ItemDetailsTexts } from './item-details-props';
|
|
11
|
-
import { PublishFolderNode, PublishHistoryEntry } from './publish';
|
|
12
|
-
/** A single option in the Create dropdown. */
|
|
13
|
-
export interface CreateOption {
|
|
14
|
-
/** Display label shown in the dropdown menu. */
|
|
15
|
-
label: string;
|
|
16
|
-
/** Short description shown below the label (single line, truncated). */
|
|
17
|
-
description?: string;
|
|
18
|
-
/** Leading icon rendered inside a tinted 32 px square. */
|
|
19
|
-
icon?: ReactNode;
|
|
20
|
-
/**
|
|
21
|
-
* Tailwind classes applied to the icon container — controls background tint
|
|
22
|
-
* and icon colour. Example: `'bg-accent-secondary-alpha text-accent-secondary'`.
|
|
23
|
-
*/
|
|
24
|
-
iconContainerClassName?: string;
|
|
25
|
-
/** Called when this option is selected. */
|
|
26
|
-
onClick: () => void;
|
|
27
|
-
}
|
|
28
12
|
/** Text labels used by the `Catalog` surface. */
|
|
29
13
|
export interface CatalogTitles {
|
|
30
14
|
/** Page heading. Default: 'Catalog'. */
|
|
@@ -54,12 +38,14 @@ export interface CatalogTitles {
|
|
|
54
38
|
gridViewLabel?: string;
|
|
55
39
|
/** Accessible label for switching to list view. Default: 'List view'. */
|
|
56
40
|
listViewLabel?: string;
|
|
41
|
+
/** Accessible label naming the grid/list view toggle group. Default: 'View mode'. */
|
|
42
|
+
viewToggleLabel?: string;
|
|
57
43
|
/** ARIA label for the page/grid. Default: 'Catalog'. */
|
|
58
44
|
ariaLabel?: string;
|
|
59
45
|
/**
|
|
60
46
|
* Display labels for entity-type filter tabs. Only types present in `items`
|
|
61
47
|
* are shown. Defaults: Model → 'Model', Agent → 'Agent', Toolset → 'Toolset',
|
|
62
|
-
*
|
|
48
|
+
* Skill → 'Skill', Mcp → 'MCP'.
|
|
63
49
|
*/
|
|
64
50
|
tabLabels?: Partial<Record<CatalogEntityType, string>>;
|
|
65
51
|
/** Label for the filter button when nothing is filtered. Default: 'From'. */
|
|
@@ -83,6 +69,14 @@ export interface CatalogProps {
|
|
|
83
69
|
error?: Error | null;
|
|
84
70
|
/** Called when any item's star is toggled. */
|
|
85
71
|
onToggleFavorite?: (id: string, isStarred: boolean) => void;
|
|
72
|
+
/**
|
|
73
|
+
* Additional caller-supplied rule for whether the favorite star is shown for
|
|
74
|
+
* an item, in the browse grid, the list view, the favorites strip, and the
|
|
75
|
+
* details panel. Returning `false` hides the star everywhere and makes the
|
|
76
|
+
* item non-favoritable. Defaults to **visible** when omitted, so a predicate
|
|
77
|
+
* can only ever narrow visibility, never widen it.
|
|
78
|
+
*/
|
|
79
|
+
isFavoriteVisible?: (item: CatalogItem) => boolean;
|
|
86
80
|
/** Called when the "Use in chat" button is clicked in the details panel. */
|
|
87
81
|
onUseInChat?: (item: CatalogItem) => void;
|
|
88
82
|
/** Controls whether the primary action button is shown for an item. */
|
|
@@ -91,6 +85,12 @@ export interface CatalogProps {
|
|
|
91
85
|
onShare?: (item: CatalogItem) => void;
|
|
92
86
|
/** Controls whether the "Publish" action is shown for an item. */
|
|
93
87
|
isPublishVisible?: (item: CatalogItem) => boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Resolves whether whichever of "Publish"/"Unpublish" applies renders as its
|
|
90
|
+
* own button in the details header rather than an entry in its "Manage"
|
|
91
|
+
* menu. Defaults to `false` — the menu entry.
|
|
92
|
+
*/
|
|
93
|
+
isPublishPrimary?: (item: CatalogItem) => boolean;
|
|
94
94
|
/** Resolves previously published versions for an item, most recent first. */
|
|
95
95
|
getPublishHistory?: (item: CatalogItem) => Promise<PublishHistoryEntry[]>;
|
|
96
96
|
/** Root-level destination folder nodes offered by the publish flow. */
|
|
@@ -107,16 +107,64 @@ export interface CatalogProps {
|
|
|
107
107
|
publishLoadingPaths?: Set<string>;
|
|
108
108
|
/** Resolves whether the current user can publish to a given folder path. */
|
|
109
109
|
hasPublishWriteAccess?: (folderPath: string[]) => boolean;
|
|
110
|
-
/** Called with the destination folder path when the user confirms publish/update. */
|
|
111
|
-
onPublish?: (item: CatalogItem, folderPath: string[]) => Promise<void>;
|
|
110
|
+
/** Called with the destination folder path and current access rules when the user confirms publish/update. */
|
|
111
|
+
onPublish?: (item: CatalogItem, folderPath: string[], rules: PublicationRule[]) => Promise<void>;
|
|
112
112
|
/** Called after a successful publish; use this to surface a success notification. */
|
|
113
113
|
onPublishSuccess?: (item: CatalogItem, folderPath: string[]) => void;
|
|
114
|
+
/** Called with the rejection reason when a publish request fails; use this to surface an error notification. */
|
|
115
|
+
onPublishError?: (item: CatalogItem, folderPath: string[], error: unknown) => void;
|
|
114
116
|
/** Called when the user confirms a new folder name in the publish flow. */
|
|
115
117
|
onCreatePublishFolder?: (parentPath: string[], name: string) => void;
|
|
116
118
|
/** Text overrides forwarded to the publish flow. */
|
|
117
|
-
|
|
119
|
+
publishLabels?: PublishPanelLabels & PublishFooterLabels;
|
|
120
|
+
/** Options offered in the access-rules editor's source picker. Defaults to `[]` when absent. */
|
|
121
|
+
ruleSourceOptions?: string[];
|
|
122
|
+
/**
|
|
123
|
+
* Resolves the access rules already configured for a destination folder,
|
|
124
|
+
* called whenever the selected folder changes. The result fully replaces
|
|
125
|
+
* the rules editor's contents. Omit to skip pre-filling entirely.
|
|
126
|
+
*/
|
|
127
|
+
onFetchExistingRules?: (folderPath: string[]) => Promise<PublicationRule[]>;
|
|
118
128
|
/** Called when the "Edit" button is clicked in the details panel. Shown only when the item's `isEditable` is `true`. */
|
|
119
129
|
onEdit?: (item: CatalogItem) => void;
|
|
130
|
+
/**
|
|
131
|
+
* Called when the "Download" action is clicked in the details panel, with no
|
|
132
|
+
* confirmation step. When "Download" renders in the Manage menu (see
|
|
133
|
+
* `isDownloadPrimary`), the panel does not await the result or show a
|
|
134
|
+
* pending state, so the host owns any progress and failure feedback. When
|
|
135
|
+
* "Download" is the primary action, the panel awaits this call and shows a
|
|
136
|
+
* pending/disabled state for its duration.
|
|
137
|
+
*/
|
|
138
|
+
onDownload?: (item: CatalogItem) => Promise<void> | void;
|
|
139
|
+
/**
|
|
140
|
+
* Narrows which items offer the "Download" action. Defaults to `true`
|
|
141
|
+
* (visible for every item) whenever `onDownload` is supplied.
|
|
142
|
+
*/
|
|
143
|
+
isDownloadVisible?: (item: CatalogItem) => boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Resolves whether an item's Download action renders as the primary action
|
|
146
|
+
* instead of a Manage-menu entry. Defaults to
|
|
147
|
+
* `item.type === CatalogEntityType.Skill`.
|
|
148
|
+
*/
|
|
149
|
+
isDownloadPrimary?: (item: CatalogItem) => boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Resolves the text of a file picked in the details panel's Content tab,
|
|
152
|
+
* given its opaque `id`. The panel shows a loading state while it is
|
|
153
|
+
* pending and renders the resolved text as the body. Superseded by
|
|
154
|
+
* `onLoadContentFilePreview` for a given pick when both are supplied.
|
|
155
|
+
*/
|
|
156
|
+
onLoadContentFile?: (fileId: string) => Promise<string | undefined>;
|
|
157
|
+
/**
|
|
158
|
+
* Resolves a picked file's typed preview, given its opaque `id`. Takes
|
|
159
|
+
* precedence over `onLoadContentFile` when both are supplied.
|
|
160
|
+
*/
|
|
161
|
+
onLoadContentFilePreview?: (fileId: string) => Promise<CatalogContentFilePreview | undefined>;
|
|
162
|
+
/**
|
|
163
|
+
* Renders a picked file through a host-owned preview surface. Takes
|
|
164
|
+
* precedence over both loading callbacks, while the catalog continues to
|
|
165
|
+
* own selection and passes the opaque file id and resolved basename only.
|
|
166
|
+
*/
|
|
167
|
+
renderContentFilePreview?: (fileId: string, fileName: string) => ReactNode;
|
|
120
168
|
/**
|
|
121
169
|
* Called immediately when the "Delete" button in the details panel is
|
|
122
170
|
* clicked, with no confirmation step. Shown only when the item's `isMyApp`
|
|
@@ -124,6 +172,56 @@ export interface CatalogProps {
|
|
|
124
172
|
* promise; the button shows a disabled state while pending.
|
|
125
173
|
*/
|
|
126
174
|
onDelete?: (item: CatalogItem) => Promise<void> | void;
|
|
175
|
+
/**
|
|
176
|
+
* Called when removal is confirmed via the details panel's confirmation
|
|
177
|
+
* popup, for an item shared with the current user (`sharedWithMe: true`).
|
|
178
|
+
* May return a promise; the popup shows a loading state and prevents
|
|
179
|
+
* duplicate submission while pending.
|
|
180
|
+
*/
|
|
181
|
+
onUnshare?: (item: CatalogItem) => Promise<void> | void;
|
|
182
|
+
/**
|
|
183
|
+
* Narrows where the "Remove from My List" action is offered, on top of the
|
|
184
|
+
* built-in `sharedWithMe`/`isMyApp` rule. Use it to declare that unsharing
|
|
185
|
+
* is unsupported for a kind of item. Defaults to `true` (visible) when
|
|
186
|
+
* absent.
|
|
187
|
+
*/
|
|
188
|
+
isUnshareVisible?: (item: CatalogItem) => boolean;
|
|
189
|
+
/**
|
|
190
|
+
* Called when revocation is confirmed via the details panel's confirmation
|
|
191
|
+
* step, for an item the current user owns (`isMyApp: true`), removing every
|
|
192
|
+
* recipient's shared access at once. May return a promise; the confirmation
|
|
193
|
+
* shows a loading state and prevents duplicate submission while pending.
|
|
194
|
+
*/
|
|
195
|
+
onRevokeShare?: (item: CatalogItem) => Promise<void> | void;
|
|
196
|
+
/**
|
|
197
|
+
* Resolves how many users currently hold shared access to an owned item.
|
|
198
|
+
* Called when the owner opens the details panel's Manage menu, so "Revoke
|
|
199
|
+
* access" is gated and labelled on a count that is never stale. `0` hides
|
|
200
|
+
* the action; `undefined` (or a rejection) leaves it reachable without a
|
|
201
|
+
* count. Omit to offer the action for every owned item.
|
|
202
|
+
*/
|
|
203
|
+
onFetchRecipientsCount?: (item: CatalogItem) => Promise<number | undefined>;
|
|
204
|
+
/**
|
|
205
|
+
* Narrows where the "Revoke access" action is offered, on top of the
|
|
206
|
+
* built-in `isMyApp` rule and the recipient count. Use it to declare that
|
|
207
|
+
* revoking is unsupported for a kind of item. Defaults to `true` (visible)
|
|
208
|
+
* when absent.
|
|
209
|
+
*/
|
|
210
|
+
isRevokeShareVisible?: (item: CatalogItem) => boolean;
|
|
211
|
+
/**
|
|
212
|
+
* Called when unpublish is confirmed via the details panel's confirmation
|
|
213
|
+
* step, with the published folder's path segments. May return a promise;
|
|
214
|
+
* the confirmation shows a loading state and prevents duplicate submission
|
|
215
|
+
* while pending. The published copy survives until an administrator
|
|
216
|
+
* approves, so the panel stays open and the item stays visible.
|
|
217
|
+
*/
|
|
218
|
+
onUnpublish?: (item: CatalogItem, folderPath: string[]) => Promise<void> | void;
|
|
219
|
+
/**
|
|
220
|
+
* Narrows where the "Unpublish" action is offered, on top of the presence
|
|
221
|
+
* of `onUnpublish` and at least one resolved `getPublishHistory` entry.
|
|
222
|
+
* Defaults to `true` (visible) when absent.
|
|
223
|
+
*/
|
|
224
|
+
isUnpublishVisible?: (item: CatalogItem) => boolean;
|
|
127
225
|
/**
|
|
128
226
|
* Renders the Share popover content anchored to the Share button in the
|
|
129
227
|
* details panel. When provided, clicking Share opens this popover instead
|
|
@@ -131,16 +229,17 @@ export interface CatalogProps {
|
|
|
131
229
|
*/
|
|
132
230
|
shareOverlay?: (item: CatalogItem, onClose: () => void) => ReactNode;
|
|
133
231
|
/**
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
232
|
+
* Additional caller-supplied rule for whether the "Share" action is shown
|
|
233
|
+
* for the item, combined (AND) with the built-in ownership/type rule.
|
|
234
|
+
* Absent means the built-in rule alone decides.
|
|
137
235
|
*/
|
|
138
|
-
|
|
236
|
+
isShareVisible?: (item: CatalogItem) => boolean;
|
|
139
237
|
/**
|
|
140
|
-
*
|
|
141
|
-
*
|
|
238
|
+
* Resolves whether "Share" renders as its own button in the details header
|
|
239
|
+
* rather than an entry in its "Manage" menu. Defaults to `true` — the
|
|
240
|
+
* button. Returning `false` moves it into the menu, beside "Delete".
|
|
142
241
|
*/
|
|
143
|
-
|
|
242
|
+
isSharePrimary?: (item: CatalogItem) => boolean;
|
|
144
243
|
/**
|
|
145
244
|
* Called when the credentials login form is submitted in the details
|
|
146
245
|
* panel, for the given credentials `level` (`USER` or `GLOBAL`). May
|
|
@@ -170,13 +269,15 @@ export interface CatalogProps {
|
|
|
170
269
|
* Dropdown options for the Create button. When provided, the button opens a
|
|
171
270
|
* menu instead of calling `onCreateClick` directly.
|
|
172
271
|
*/
|
|
173
|
-
createOptions?:
|
|
272
|
+
createOptions?: DropdownItem[];
|
|
174
273
|
/** Called when the Create button is clicked (used when `createOptions` is absent). */
|
|
175
274
|
onCreateClick?: () => void;
|
|
176
275
|
/** Hides the "Create" button entirely, e.g. when rendering as a read-only picker. Default: false. */
|
|
177
276
|
hideCreateButton?: boolean;
|
|
178
277
|
/** Hides the page heading (title row), e.g. when the host renders its own title outside the catalog. Default: false. */
|
|
179
278
|
hidePageTitle?: boolean;
|
|
279
|
+
/** Initial Browse view mode (grid or list). Default: `CatalogViewMode.Grid`. */
|
|
280
|
+
initialViewMode?: CatalogViewMode;
|
|
180
281
|
/** ID of an item to visually mark as selected (border, tint, and checkmark) in the Browse grid. */
|
|
181
282
|
selectedItemId?: string;
|
|
182
283
|
/**
|
|
@@ -216,5 +317,13 @@ export interface CatalogProps {
|
|
|
216
317
|
isMyAppsActive?: boolean;
|
|
217
318
|
/** Called when the user toggles the "My Apps" filter; required to control `isMyAppsActive`. */
|
|
218
319
|
onMyAppsActiveChange?: (isActive: boolean) => void;
|
|
320
|
+
/**
|
|
321
|
+
* Externally-controlled active entity-type tab id. When omitted, `Catalog`
|
|
322
|
+
* manages its own tab state internally, defaulting to the first tab
|
|
323
|
+
* returned by `buildCatalogTabs`.
|
|
324
|
+
*/
|
|
325
|
+
activeTab?: string;
|
|
326
|
+
/** Called when the user switches tabs; required to control `activeTab`. */
|
|
327
|
+
onActiveTabChange?: (tabId: string) => void;
|
|
219
328
|
}
|
|
220
329
|
//# sourceMappingURL=catalog-props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog-props.d.ts","sourceRoot":"","sources":["../../src/models/catalog-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"catalog-props.d.ts","sourceRoot":"","sources":["../../src/models/catalog-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EACV,yBAAyB,EACzB,6BAA6B,EAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AA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AAmF;IACnF,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,IAAI,CAAC;IAC7C;;;;OAIG;IACH,YAAY,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3B,qGAAqG;IACrG,oBAAoB,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IACrD;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,+FAA+F;IAC/F,oBAAoB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IACnD;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2EAA2E;IAC3E,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C"}
|
|
@@ -3,56 +3,19 @@
|
|
|
3
3
|
* All values are applied as CSS custom properties with app theme fallbacks.
|
|
4
4
|
*/
|
|
5
5
|
export interface CatalogColors {
|
|
6
|
-
/** Root container background color. Fallback: `--bg-layer-
|
|
6
|
+
/** Root container background color. Fallback: `--bg-layer-base`. */
|
|
7
7
|
background?: string;
|
|
8
|
-
/** Primary text color. Fallback: `--text-primary`. */
|
|
9
|
-
text?: string;
|
|
10
|
-
/** Secondary text color (dates, metadata). Fallback: `--text-secondary`. */
|
|
11
|
-
textSecondary?: string;
|
|
12
|
-
/** Heading container border color. Fallback: `--stroke-secondary`. */
|
|
13
|
-
headingBorder?: string;
|
|
14
|
-
/** Heading container background color. Fallback: `--bg-layer-1`. */
|
|
15
|
-
headingBackground?: string;
|
|
16
8
|
/** Heading title text color. Fallback: `--text-primary`. */
|
|
17
9
|
headingTitleText?: string;
|
|
18
|
-
/** Content container background color. Fallback: `--bg-layer-1`. */
|
|
19
|
-
contentBackground?: string;
|
|
20
|
-
/** Section heading text color (Browse, Favorites titles). Fallback: `--text-primary`. */
|
|
21
|
-
sectionHeadingText?: string;
|
|
22
|
-
/** "No results" title text color. Fallback: `--text-primary`. */
|
|
23
|
-
noResultsTitleText?: string;
|
|
24
|
-
/** "No results" description text color. Fallback: `--text-secondary`. */
|
|
25
|
-
noResultsDescriptionText?: string;
|
|
26
|
-
/** Tab result-count text color. Fallback: `--text-secondary`. */
|
|
27
|
-
tabCountText?: string;
|
|
28
10
|
}
|
|
29
|
-
/**
|
|
30
|
-
* Typography overrides for the Catalog component.
|
|
31
|
-
* Pass single Tailwind utility classes (e.g. `'dial-h2-text'`, `'dial-body-semi-text'`).
|
|
32
|
-
* When a `fontClassName` is provided, individual font properties are ignored.
|
|
33
|
-
*/
|
|
11
|
+
/** Typography overrides for the Catalog component. */
|
|
34
12
|
export interface CatalogTypography {
|
|
35
|
-
/**
|
|
36
|
-
pageHeadingFontFamily?: string;
|
|
37
|
-
/** Font size applied to the page heading. */
|
|
38
|
-
pageHeadingFontSize?: string;
|
|
39
|
-
/** Font weight applied to the page heading. */
|
|
40
|
-
pageHeadingFontWeight?: string | number;
|
|
41
|
-
/** Line height applied to the page heading. */
|
|
42
|
-
pageHeadingLineHeight?: string;
|
|
43
|
-
/**
|
|
44
|
-
* A single utility class (e.g. `'dial-h2-text'`) applied to the page heading.
|
|
45
|
-
* When provided, individual font CSS vars are ignored in favour of this class.
|
|
46
|
-
*/
|
|
13
|
+
/** A single utility class applied to the page heading. Defaults to `'dial-display2-text'`. */
|
|
47
14
|
pageHeadingFontClassName?: string;
|
|
48
15
|
/** Typography class applied to tab text. Defaults to `'dial-body-text'`. */
|
|
49
16
|
tabClassName?: string;
|
|
50
17
|
}
|
|
51
|
-
/**
|
|
52
|
-
* Combined style overrides (colors and typography) for the Catalog component.
|
|
53
|
-
* Lib applies these as CSS custom properties via inline styles, allowing the consuming
|
|
54
|
-
* app to customize colors and typography while maintaining layout consistency.
|
|
55
|
-
*/
|
|
18
|
+
/** Combined style overrides (colors and typography) for the Catalog component. */
|
|
56
19
|
export interface CatalogStyles {
|
|
57
20
|
/** Color customizations applied as CSS custom properties. */
|
|
58
21
|
colors?: CatalogColors;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog-styles.d.ts","sourceRoot":"","sources":["../../src/models/catalog-styles.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,
|
|
1
|
+
{"version":3,"file":"catalog-styles.d.ts","sourceRoot":"","sources":["../../src/models/catalog-styles.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,oEAAoE;IACpE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,sDAAsD;AACtD,MAAM,WAAW,iBAAiB;IAChC,8FAA8F;IAC9F,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,4EAA4E;IAC5E,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,kFAAkF;AAClF,MAAM,WAAW,aAAa;IAC5B,6DAA6D;IAC7D,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,qDAAqD;IACrD,UAAU,CAAC,EAAE,iBAAiB,CAAC;CAChC"}
|
package/models/favorites.d.ts
CHANGED
|
@@ -1,21 +1,35 @@
|
|
|
1
1
|
import { CatalogItem } from './catalog-item';
|
|
2
2
|
/** Typography class overrides for `CatalogFavorites`. */
|
|
3
3
|
export interface FavoritesTypography {
|
|
4
|
-
/** Typography class for the section title. Default: `'dial-
|
|
4
|
+
/** Typography class for the section title. Default: `'dial-body-semi-text'`. */
|
|
5
5
|
titleClassName?: string;
|
|
6
|
-
/** Typography class for the total count. Default: `'dial-tiny-text'`. */
|
|
6
|
+
/** Typography class for the total count and the page counter. Default: `'dial-tiny-semi-text'`. */
|
|
7
7
|
countClassName?: string;
|
|
8
8
|
}
|
|
9
9
|
/** Color overrides for `CatalogFavorites`, applied via CSS custom properties. */
|
|
10
10
|
export interface FavoritesColors {
|
|
11
|
-
/** Base section background color. Fallback: `--bg-layer-2`. */
|
|
12
|
-
backgroundBase?: string;
|
|
13
|
-
/** Section bottom border color. Fallback: `--stroke-secondary`. */
|
|
14
|
-
border?: string;
|
|
15
11
|
/** Section title color. Fallback: `--text-primary`. */
|
|
16
12
|
titleText?: string;
|
|
17
|
-
/**
|
|
13
|
+
/** Total-count and page-counter text color. Fallback: `--text-secondary`. */
|
|
18
14
|
countText?: string;
|
|
15
|
+
/** Color of the checkmark icon on the selected favorite card. Fallback: `--text-accent`. */
|
|
16
|
+
selectedCheckIcon?: string;
|
|
17
|
+
/** Border color of the selected favorite card. Fallback: `--stroke-accent`. */
|
|
18
|
+
selectedCardBorder?: string;
|
|
19
|
+
/** Background color (tint) of the selected favorite card. Fallback: `--bg-control-accent-alpha-active`. */
|
|
20
|
+
selectedCardBackground?: string;
|
|
21
|
+
/** Icon color of the pagination arrows. Fallback: `--text-accent`. */
|
|
22
|
+
navButton?: string;
|
|
23
|
+
/** Icon color of a disabled pagination arrow. Fallback: `--stroke-secondary`. */
|
|
24
|
+
navButtonDisabled?: string;
|
|
25
|
+
/** Background of a pagination arrow on hover. Fallback: `--bg-control-accent-alpha-hover`. */
|
|
26
|
+
navButtonHoverBackground?: string;
|
|
27
|
+
/** Background of a pagination arrow while pressed. Fallback: `--bg-control-accent-alpha-active`. */
|
|
28
|
+
navButtonActiveBackground?: string;
|
|
29
|
+
/** Border color of the pagination control. Fallback: `--stroke-accent-alpha`. */
|
|
30
|
+
pageNavBorder?: string;
|
|
31
|
+
/** Background of the pagination control. Fallback: `--bg-control-accent-alpha`. */
|
|
32
|
+
pageNavBackground?: string;
|
|
19
33
|
}
|
|
20
34
|
/** Grouped style overrides for `CatalogFavorites`. */
|
|
21
35
|
export interface FavoritesStyles {
|
|
@@ -34,6 +48,8 @@ export interface FavoritesProps {
|
|
|
34
48
|
title?: string;
|
|
35
49
|
/** Called when a favorite card's star is toggled. */
|
|
36
50
|
onToggleFavorite?: (id: string, isStarred: boolean) => void;
|
|
51
|
+
/** Rule for whether the favorite star is shown on a favorite card; `false` hides it and makes the item non-favoritable. Defaults to visible when omitted. */
|
|
52
|
+
isFavoriteVisible?: (item: CatalogItem) => boolean;
|
|
37
53
|
/** Called when a favorite card body is clicked. Opens the details panel. */
|
|
38
54
|
onItemClick?: (item: CatalogItem) => void;
|
|
39
55
|
/** Grouped typography and color overrides for the section. */
|
|
@@ -52,7 +68,7 @@ export interface FavoritesProps {
|
|
|
52
68
|
removeFromFavoritesAriaLabel?: string;
|
|
53
69
|
/** ID of an item to visually mark as selected (border, tint, and checkmark). */
|
|
54
70
|
selectedItemId?: string;
|
|
55
|
-
/**
|
|
71
|
+
/** Accessible label for the logged-out warning icon on a favorited item's avatar, and the text shown in its hover tooltip. Default: `'Authorize to use this toolset.'`. */
|
|
56
72
|
credentialsBadgeLoggedOutLabel?: string;
|
|
57
73
|
}
|
|
58
74
|
//# sourceMappingURL=favorites.d.ts.map
|