@epam/ai-dial-catalog 1.2.0-dev.99 → 1.2.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/AppIdentity/AppIdentity.d.ts +1 -1
- 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/CardGrid/CardRowRenderer.d.ts.map +1 -1
- package/components/CardTag/CardTag.d.ts.map +1 -1
- package/components/Catalog/Catalog.d.ts.map +1 -1
- package/components/Catalog/CreateButton.d.ts +14 -1
- package/components/Catalog/CreateButton.d.ts.map +1 -1
- package/components/Catalog/CreateMenuSheet.d.ts +33 -0
- package/components/Catalog/CreateMenuSheet.d.ts.map +1 -0
- package/components/Details/Credentials/CredentialsBanner/CredentialsBanner.d.ts +1 -2
- package/components/Details/Credentials/CredentialsBanner/CredentialsBanner.d.ts.map +1 -1
- package/components/Details/Credentials/CredentialsManagementPanel/CredentialsManagementPanel.d.ts +1 -2
- package/components/Details/Credentials/CredentialsManagementPanel/CredentialsManagementPanel.d.ts.map +1 -1
- package/components/Details/Credentials/CredentialsRow/CredentialsRow.d.ts +2 -0
- package/components/Details/Credentials/CredentialsRow/CredentialsRow.d.ts.map +1 -1
- package/components/Details/DetailsPanel.d.ts.map +1 -1
- package/components/Details/Header/CredentialsApiKeyOverlay/CredentialsApiKeyOverlay.d.ts +9 -3
- package/components/Details/Header/CredentialsApiKeyOverlay/CredentialsApiKeyOverlay.d.ts.map +1 -1
- package/components/Details/Header/Header.d.ts +18 -3
- package/components/Details/Header/Header.d.ts.map +1 -1
- package/components/Details/TabsContent/About.d.ts +4 -3
- package/components/Details/TabsContent/About.d.ts.map +1 -1
- package/components/Details/TabsContent/Content.d.ts +6 -2
- package/components/Details/TabsContent/Content.d.ts.map +1 -1
- package/components/Details/TabsContent/Limits/LimitGroupSection.d.ts +2 -0
- package/components/Details/TabsContent/Limits/LimitGroupSection.d.ts.map +1 -1
- package/components/Details/TabsContent/Limits/LimitRow.d.ts +3 -1
- package/components/Details/TabsContent/Limits/LimitRow.d.ts.map +1 -1
- package/components/Details/TabsContent/Limits/Limits.d.ts.map +1 -1
- package/components/Details/TabsContent/Overview.d.ts +2 -0
- package/components/Details/TabsContent/Overview.d.ts.map +1 -1
- package/components/Details/TabsContent/Pricing.d.ts +3 -1
- package/components/Details/TabsContent/Pricing.d.ts.map +1 -1
- package/components/Details/TabsContent/Tools/Tools.d.ts +9 -2
- package/components/Details/TabsContent/Tools/Tools.d.ts.map +1 -1
- package/components/Favorites/Favorites.d.ts.map +1 -1
- package/components/Filter/Filter.d.ts.map +1 -1
- package/components/ListView/ListView.d.ts.map +1 -1
- package/components/ListView/Renders/SelectionCellRenderer.d.ts +6 -0
- package/components/ListView/Renders/SelectionCellRenderer.d.ts.map +1 -0
- package/components/ListView/Renders/SelectionHeader.d.ts +4 -0
- package/components/ListView/Renders/SelectionHeader.d.ts.map +1 -0
- package/components/ListView/columns.d.ts +6 -1
- package/components/ListView/columns.d.ts.map +1 -1
- package/components/ListView/selection-context.d.ts +24 -0
- package/components/ListView/selection-context.d.ts.map +1 -0
- package/components/StarToggleButton/StarToggleButton.d.ts +4 -1
- package/components/StarToggleButton/StarToggleButton.d.ts.map +1 -1
- package/constants/create-menu.d.ts +7 -0
- package/constants/create-menu.d.ts.map +1 -0
- package/entry-points/mapping.d.ts +5 -2
- package/entry-points/mapping.d.ts.map +1 -1
- package/hooks/useIsVerticallyClamped/useIsVerticallyClamped.d.ts +16 -0
- package/hooks/useIsVerticallyClamped/useIsVerticallyClamped.d.ts.map +1 -0
- package/index.css +2 -2
- package/index.d.ts +26 -5
- package/index.d.ts.map +1 -1
- package/index.js +2461 -2133
- package/{mapping-BHlCxGmC.js → mapping-BAfcHO36.js} +21 -16
- package/mapping.js +2 -2
- package/models/card-props.d.ts +3 -0
- package/models/card-props.d.ts.map +1 -1
- package/models/card-row-data.d.ts +3 -0
- package/models/card-row-data.d.ts.map +1 -1
- package/models/catalog-props.d.ts +26 -2
- package/models/catalog-props.d.ts.map +1 -1
- package/models/grid-props.d.ts +3 -0
- package/models/grid-props.d.ts.map +1 -1
- package/models/item-details-data.d.ts +54 -1
- package/models/item-details-data.d.ts.map +1 -1
- package/models/item-details-props.d.ts +59 -4
- package/models/item-details-props.d.ts.map +1 -1
- package/models/limits-props.d.ts +6 -2
- package/models/limits-props.d.ts.map +1 -1
- package/models/list-props.d.ts +12 -1
- package/models/list-props.d.ts.map +1 -1
- package/package.json +4 -4
- package/types/details-confirmation.d.ts +0 -7
- package/types/details-confirmation.d.ts.map +1 -1
- package/types/limit-row-layout.d.ts +8 -0
- package/types/limit-row-layout.d.ts.map +1 -0
- package/types/pricing-unit.d.ts +8 -0
- package/types/pricing-unit.d.ts.map +1 -0
- package/types/selection-mode.d.ts +8 -0
- package/types/selection-mode.d.ts.map +1 -0
- package/utils/create-menu.d.ts +4 -0
- package/utils/create-menu.d.ts.map +1 -0
- package/utils/details-tabs.d.ts +26 -0
- package/utils/details-tabs.d.ts.map +1 -0
- package/utils/item-details-texts.d.ts +4 -0
- package/utils/item-details-texts.d.ts.map +1 -0
- package/utils/list-selection.d.ts +13 -0
- package/utils/list-selection.d.ts.map +1 -0
- package/components/Details/ConfirmationView/ConfirmationFooter.d.ts +0 -29
- package/components/Details/ConfirmationView/ConfirmationFooter.d.ts.map +0 -1
- package/components/Details/ConfirmationView/ConfirmationView.d.ts +0 -28
- package/components/Details/ConfirmationView/ConfirmationView.d.ts.map +0 -1
- package/components/InfoCard/InfoCard.d.ts +0 -15
- package/components/InfoCard/InfoCard.d.ts.map +0 -1
|
@@ -10,7 +10,7 @@ export interface AppIdentityProps {
|
|
|
10
10
|
type: CatalogEntityType;
|
|
11
11
|
/** Display name. Truncates when the available width is exceeded. */
|
|
12
12
|
name: string;
|
|
13
|
-
/** Version string shown flush-
|
|
13
|
+
/** Version string shown flush-end of the name, aligned to the top of the name. It keeps only its own width when short; name and version share the row equally only when both overflow. */
|
|
14
14
|
version?: string;
|
|
15
15
|
/**
|
|
16
16
|
* Relative time string for the last-used row (size 'lg' only).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppIdentity.d.ts","sourceRoot":"","sources":["../../../src/components/AppIdentity/AppIdentity.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAIlB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAGlE,gFAAgF;AAChF,MAAM,WAAW,gBAAgB;IAC/B,iFAAiF;IACjF,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,6FAA6F;IAC7F,IAAI,EAAE,iBAAiB,CAAC;IACxB,oEAAoE;IACpE,IAAI,EAAE,MAAM,CAAC;IACb,
|
|
1
|
+
{"version":3,"file":"AppIdentity.d.ts","sourceRoot":"","sources":["../../../src/components/AppIdentity/AppIdentity.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAIlB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAGlE,gFAAgF;AAChF,MAAM,WAAW,gBAAgB;IAC/B,iFAAiF;IACjF,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,6FAA6F;IAC7F,IAAI,EAAE,iBAAiB,CAAC;IACxB,oEAAoE;IACpE,IAAI,EAAE,MAAM,CAAC;IACb,0LAA0L;IAC1L,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8FAA8F;IAC9F,IAAI,EAAE,cAAc,CAAC;IACrB,gEAAgE;IAChE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8CAA8C;IAC9C,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,yEAAyE;IACzE,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B,8FAA8F;IAC9F,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oGAAoG;IACpG,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB;AAED,oFAAoF;AACpF,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CA6G5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/CardGrid/Card.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/CardGrid/Card.tsx"],"names":[],"mappings":"AAkBA,OAAO,EACL,EAAE,EAMH,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAgDzD,6FAA6F;AAC7F,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,SAAS,CAiP9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardGrid.d.ts","sourceRoot":"","sources":["../../../src/components/CardGrid/CardGrid.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,EAAE,EAAiB,MAAM,OAAO,CAAC;AAG/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAK7D,yFAAyF;AACzF,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"CardGrid.d.ts","sourceRoot":"","sources":["../../../src/components/CardGrid/CardGrid.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,EAAE,EAAiB,MAAM,OAAO,CAAC;AAG/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAK7D,yFAAyF;AACzF,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAyHtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardRowRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/CardGrid/CardRowRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,EAAE,EAAQ,MAAM,OAAO,CAAC;AAE1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAG9D,uDAAuD;AACvD,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACvD,sFAAsF;IACtF,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,
|
|
1
|
+
{"version":3,"file":"CardRowRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/CardGrid/CardRowRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,EAAE,EAAQ,MAAM,OAAO,CAAC;AAE1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAG9D,uDAAuD;AACvD,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACvD,sFAAsF;IACtF,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CA8DpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardTag.d.ts","sourceRoot":"","sources":["../../../src/components/CardTag/CardTag.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CardTag.d.ts","sourceRoot":"","sources":["../../../src/components/CardTag/CardTag.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAG3B,uEAAuE;AACvE,UAAU,aAAa;IACrB,2DAA2D;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,2BAA2B;AAC3B,MAAM,WAAW,YAAY;IAC3B,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,wDAAwD;IACxD,MAAM,CAAC,EAAE,aAAa,CAAC;CACxB;AAED,+EAA+E;AAC/E,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CAgBpC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Catalog.d.ts","sourceRoot":"","sources":["../../../src/components/Catalog/Catalog.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,EAAE,EAOH,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"Catalog.d.ts","sourceRoot":"","sources":["../../../src/components/Catalog/Catalog.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,EAAE,EAOH,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AA2C/D,mHAAmH;AACnH,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CA+vBpC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DropdownItem } from '@epam/ai-dial-ui-kit';
|
|
2
2
|
import { FC } from 'react';
|
|
3
|
+
import { CatalogCreateSearch } from '../../models/catalog-props';
|
|
3
4
|
/** Props for the catalog Create button. */
|
|
4
5
|
export interface CreateButtonProps {
|
|
5
6
|
/** Button label. */
|
|
@@ -11,7 +12,19 @@ export interface CreateButtonProps {
|
|
|
11
12
|
options?: DropdownItem[];
|
|
12
13
|
/** Called when the button is clicked and no `options` are present. */
|
|
13
14
|
onClick?: () => void;
|
|
15
|
+
/** When provided, the dropdown shows a search field above `options`; the host filters `options` by its value. */
|
|
16
|
+
search?: CatalogCreateSearch;
|
|
17
|
+
/** Placeholder and accessible name of the search field. Defaults to `'Search'`. */
|
|
18
|
+
searchPlaceholder?: string;
|
|
19
|
+
/** Accessible name of the search field's clear button. Defaults to `'Clear search'`. */
|
|
20
|
+
searchClearLabel?: string;
|
|
21
|
+
/** Text shown when a search leaves no options. Defaults to `'No results found'`. */
|
|
22
|
+
noResultsLabel?: string;
|
|
23
|
+
/** Accessible name of the mobile menu sheet's back button. Defaults to `'Back'`. */
|
|
24
|
+
backLabel?: string;
|
|
25
|
+
/** Accessible name of the mobile menu sheet's close button. Defaults to `'Close'`. */
|
|
26
|
+
closeLabel?: string;
|
|
14
27
|
}
|
|
15
|
-
/** Renders
|
|
28
|
+
/** Renders a plain primary button, a split-chevron dropdown, a searchable dropdown, or — on mobile — a menu sheet. */
|
|
16
29
|
export declare const CreateButton: FC<CreateButtonProps>;
|
|
17
30
|
//# sourceMappingURL=CreateButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateButton.d.ts","sourceRoot":"","sources":["../../../src/components/Catalog/CreateButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CreateButton.d.ts","sourceRoot":"","sources":["../../../src/components/Catalog/CreateButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAQL,YAAY,EAKb,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,EAAE,EAAoB,MAAM,OAAO,CAAC;AAK7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAItE,2CAA2C;AAC3C,MAAM,WAAW,iBAAiB;IAChC,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IACzB,sEAAsE;IACtE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,iHAAiH;IACjH,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,mFAAmF;IACnF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,wFAAwF;IACxF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oFAAoF;IACpF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oFAAoF;IACpF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sFAAsF;IACtF,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,sHAAsH;AACtH,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAkI9C,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DropdownItem } from '@epam/ai-dial-ui-kit';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
import { CatalogCreateSearch } from '../../models/catalog-props';
|
|
4
|
+
/** Props for the mobile Create menu sheet. */
|
|
5
|
+
export interface CreateMenuSheetProps {
|
|
6
|
+
/** Whether the sheet is shown. */
|
|
7
|
+
open: boolean;
|
|
8
|
+
/** Called when the sheet closes — dismissed or after an option is chosen. */
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
/** Title of the root page. */
|
|
11
|
+
title: string;
|
|
12
|
+
/** Options of the root page; an option with `children` drills into a page of its own. */
|
|
13
|
+
options: DropdownItem[];
|
|
14
|
+
/** When provided, the root page shows a search field above `options`; the host filters `options` by its value. */
|
|
15
|
+
search?: CatalogCreateSearch;
|
|
16
|
+
/** Placeholder and accessible name of the search field. */
|
|
17
|
+
searchPlaceholder: string;
|
|
18
|
+
/** Accessible name of the search field's clear button. */
|
|
19
|
+
searchClearLabel: string;
|
|
20
|
+
/** Text shown when a search leaves no options. */
|
|
21
|
+
noResultsLabel: string;
|
|
22
|
+
/** Accessible name of the header's back button. */
|
|
23
|
+
backLabel: string;
|
|
24
|
+
/** Accessible name of the header's close button. */
|
|
25
|
+
closeLabel: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* The Create menu below the desktop breakpoint: a bottom sheet instead of a
|
|
29
|
+
* floating dropdown, so a nested option such as Skill drills into a page of
|
|
30
|
+
* its own rather than opening a side flyout that falls off a narrow screen.
|
|
31
|
+
*/
|
|
32
|
+
export declare const CreateMenuSheet: FC<CreateMenuSheetProps>;
|
|
33
|
+
//# sourceMappingURL=CreateMenuSheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateMenuSheet.d.ts","sourceRoot":"","sources":["../../../src/components/Catalog/CreateMenuSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,YAAY,EAKb,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,EAAE,EAAc,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGtE,8CAA8C;AAC9C,MAAM,WAAW,oBAAoB;IACnC,kCAAkC;IAClC,IAAI,EAAE,OAAO,CAAC;IACd,6EAA6E;IAC7E,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,8BAA8B;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,yFAAyF;IACzF,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,kHAAkH;IAClH,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,2DAA2D;IAC3D,iBAAiB,EAAE,MAAM,CAAC;IAC1B,0DAA0D;IAC1D,gBAAgB,EAAE,MAAM,CAAC;IACzB,kDAAkD;IAClD,cAAc,EAAE,MAAM,CAAC;IACvB,mDAAmD;IACnD,SAAS,EAAE,MAAM,CAAC;IAClB,oDAAoD;IACpD,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CA0FpD,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { FC } from 'react';
|
|
|
2
2
|
import { ItemDetailsTexts } from '../../../../models/item-details-props';
|
|
3
3
|
import { CredentialsBannerState, ToolsetAuthenticationType } from '../../../../types/toolset-auth';
|
|
4
4
|
/** Props for {@link CredentialsBanner}. */
|
|
5
|
-
interface CredentialsBannerProps {
|
|
5
|
+
export interface CredentialsBannerProps {
|
|
6
6
|
/** Which banner copy to show. */
|
|
7
7
|
state: CredentialsBannerState;
|
|
8
8
|
/** Authentication mechanism the banner's wording should refer to. */
|
|
@@ -12,5 +12,4 @@ interface CredentialsBannerProps {
|
|
|
12
12
|
}
|
|
13
13
|
/** Informational banner below the details header about which credentials are active: a fallback nudge for a non-admin, or an active-status note for an admin. */
|
|
14
14
|
export declare const CredentialsBanner: FC<CredentialsBannerProps>;
|
|
15
|
-
export {};
|
|
16
15
|
//# sourceMappingURL=CredentialsBanner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialsBanner.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/Credentials/CredentialsBanner/CredentialsBanner.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EAC1B,MAAM,gCAAgC,CAAC;AAOxC,2CAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"CredentialsBanner.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/Credentials/CredentialsBanner/CredentialsBanner.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EAC1B,MAAM,gCAAgC,CAAC;AAOxC,2CAA2C;AAC3C,MAAM,WAAW,sBAAsB;IACrC,iCAAiC;IACjC,KAAK,EAAE,sBAAsB,CAAC;IAC9B,qEAAqE;IACrE,kBAAkB,EAAE,yBAAyB,CAAC;IAC9C,sBAAsB;IACtB,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B;AAgCD,iKAAiK;AACjK,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CA8ExD,CAAC"}
|
package/components/Details/Credentials/CredentialsManagementPanel/CredentialsManagementPanel.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { CatalogItem } from '../../../../models/catalog-item';
|
|
|
3
3
|
import { ItemDetailsStyles, ItemDetailsTexts } from '../../../../models/item-details-props';
|
|
4
4
|
import { CredentialsLevel } from '../../../../types/toolset-auth';
|
|
5
5
|
/** Props for {@link CredentialsManagementPanel}. */
|
|
6
|
-
interface CredentialsManagementPanelProps {
|
|
6
|
+
export interface CredentialsManagementPanelProps {
|
|
7
7
|
/** Item whose personal and organization credentials are managed. */
|
|
8
8
|
item: CatalogItem;
|
|
9
9
|
/** Called when a login action (OAuth or API-key add) is submitted for either level. May return a promise; the submitting row shows a spinner in place of its action label until it resolves. */
|
|
@@ -27,5 +27,4 @@ interface CredentialsManagementPanelProps {
|
|
|
27
27
|
}
|
|
28
28
|
/** Admin sub-screen listing an item's personal and organization-wide credentials slots, each independently manageable. Reached via the details header's "Manage credentials"/"Manage API keys" action. */
|
|
29
29
|
export declare const CredentialsManagementPanel: FC<CredentialsManagementPanelProps>;
|
|
30
|
-
export {};
|
|
31
30
|
//# sourceMappingURL=CredentialsManagementPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialsManagementPanel.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/Credentials/CredentialsManagementPanel/CredentialsManagementPanel.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,gBAAgB,EAGjB,MAAM,gCAAgC,CAAC;AAIxC,oDAAoD;AACpD,
|
|
1
|
+
{"version":3,"file":"CredentialsManagementPanel.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/Credentials/CredentialsManagementPanel/CredentialsManagementPanel.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,gBAAgB,EAGjB,MAAM,gCAAgC,CAAC;AAIxC,oDAAoD;AACpD,MAAM,WAAW,+BAA+B;IAC9C,oEAAoE;IACpE,IAAI,EAAE,WAAW,CAAC;IAClB,gMAAgM;IAChM,OAAO,CAAC,EAAE,CACR,IAAI,EAAE,WAAW,EACjB,MAAM,EAAE;QAAE,KAAK,EAAE,gBAAgB,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,KACjD,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC1B,+IAA+I;IAC/I,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACpD,6IAA6I;IAC7I,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC1D,sBAAsB;IACtB,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB;;;OAGG;IACH,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC,oGAAoG;IACpG,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AASD,0MAA0M;AAC1M,eAAO,MAAM,0BAA0B,EAAE,EAAE,CACzC,+BAA+B,CAyIhC,CAAC"}
|
|
@@ -22,6 +22,8 @@ interface CredentialsRowProps {
|
|
|
22
22
|
authenticationType: ToolsetAuthenticationType;
|
|
23
23
|
/** Already-formatted relative time since the API key was added, shown when signed in via `API_KEY`. */
|
|
24
24
|
apiKeyAddedWhen?: string;
|
|
25
|
+
/** Name of the configured API key header (e.g. `X-Api-Key`). When set, a hint naming it is shown under, and describes, the API key input. */
|
|
26
|
+
apiKeyHeader?: string;
|
|
25
27
|
/** Called with the entered key (or no key, for OAuth) when the row's login action is submitted. May return a promise; the row shows a spinner in place of the action label until it resolves. */
|
|
26
28
|
onLogin?: (apiKey?: string) => Promise<void | boolean> | void | boolean;
|
|
27
29
|
/** Called when "Log out" is clicked on a signed-in OAuth row, so the host can show a full logout-confirmation sub-view for this level. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialsRow.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/Credentials/CredentialsRow/CredentialsRow.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAgC,MAAM,OAAO,CAAC;AAC9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EACL,gBAAgB,EAChB,yBAAyB,EAC1B,MAAM,gCAAgC,CAAC;AAKxC,wCAAwC;AACxC,UAAU,mBAAmB;IAC3B,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qDAAqD;IACrD,IAAI,EAAE,SAAS,CAAC;IAChB,6CAA6C;IAC7C,MAAM,EAAE,gBAAgB,GAAG,SAAS,CAAC;IACrC;;;;;OAKG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB,qDAAqD;IACrD,kBAAkB,EAAE,yBAAyB,CAAC;IAC9C,uGAAuG;IACvG,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iMAAiM;IACjM,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,GAAG,IAAI,GAAG,OAAO,CAAC;IACxE,0IAA0I;IAC1I,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,wIAAwI;IACxI,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;IACnC,sBAAsB;IACtB,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,0CAA0C;IAC1C,cAAc,EAAE,MAAM,CAAC;IACvB,gDAAgD;IAChD,oBAAoB,EAAE,MAAM,CAAC;IAC7B,iEAAiE;IACjE,cAAc,EAAE,MAAM,CAAC;IACvB,4DAA4D;IAC5D,qBAAqB,EAAE,MAAM,CAAC;IAC9B,kEAAkE;IAClE,2BAA2B,EAAE,MAAM,CAAC;IACpC,wEAAwE;IACxE,qBAAqB,EAAE,MAAM,CAAC;IAC9B,yFAAyF;IACzF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kEAAkE;IAClE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,qEAAqE;IACrE,kBAAkB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,SAAS,CAAC;IACtD,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,yEAAyE;AACzE,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"CredentialsRow.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/Credentials/CredentialsRow/CredentialsRow.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAgC,MAAM,OAAO,CAAC;AAC9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EACL,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AAQ,EAAE,OAAO,KAAK,SAAS,CAAC;IACtD,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,yEAAyE;AACzE,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CA4OlD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DetailsPanel.d.ts","sourceRoot":"","sources":["../../../src/components/Details/DetailsPanel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DetailsPanel.d.ts","sourceRoot":"","sources":["../../../src/components/Details/DetailsPanel.tsx"],"names":[],"mappings":"AAwBA,OAAO,EACL,EAAE,EAOH,MAAM,OAAO,CAAC;AAMf,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAgIzE,4EAA4E;AAC5E,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAktC9C,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { CatalogItem } from '../../../../models/catalog-item';
|
|
3
|
-
import { ItemDetailsTexts } from '../../../../models/item-details-props';
|
|
3
|
+
import { ItemDetailsColors, ItemDetailsTexts } from '../../../../models/item-details-props';
|
|
4
4
|
import { CredentialsLevel, CredentialStatus } from '../../../../types/toolset-auth';
|
|
5
5
|
/** Props for {@link CredentialsApiKeyOverlay}. */
|
|
6
|
-
interface CredentialsApiKeyOverlayProps {
|
|
6
|
+
export interface CredentialsApiKeyOverlayProps {
|
|
7
7
|
/** Item the popover manages the API key for. */
|
|
8
8
|
item: CatalogItem;
|
|
9
9
|
/** Credentials slot this popover manages. Always `User` — this is the personal, non-admin API-key popover. */
|
|
@@ -12,6 +12,8 @@ interface CredentialsApiKeyOverlayProps {
|
|
|
12
12
|
status: CredentialStatus | undefined;
|
|
13
13
|
/** Already-formatted relative time since the key was added (e.g. `'3 weeks ago'`), shown as support text once signed in. */
|
|
14
14
|
apiKeyAddedWhen?: string;
|
|
15
|
+
/** Name of the configured API key header (e.g. `X-Api-Key`). When set, a hint naming it is shown under, and describes, the API key input. */
|
|
16
|
+
apiKeyHeader?: string;
|
|
15
17
|
/** Called with the entered key when "Add" is submitted. May return a promise; the popover stays open with a spinner until it resolves. */
|
|
16
18
|
onLogin?: (item: CatalogItem, params: {
|
|
17
19
|
level: CredentialsLevel;
|
|
@@ -25,10 +27,14 @@ interface CredentialsApiKeyOverlayProps {
|
|
|
25
27
|
onClose: () => void;
|
|
26
28
|
/** Text overrides. */
|
|
27
29
|
texts?: ItemDetailsTexts;
|
|
30
|
+
/**
|
|
31
|
+
* Color overrides. The popover renders in a portal, outside the details
|
|
32
|
+
* panel, so it sets the vars it reads on its own root.
|
|
33
|
+
*/
|
|
34
|
+
colors?: ItemDetailsColors;
|
|
28
35
|
/** CSS class applied to the "Delete" action. Defaults to `'text-error'`. */
|
|
29
36
|
deleteActionClassName?: string;
|
|
30
37
|
}
|
|
31
38
|
/** Popover content for the header's "API key"/"Change API key" trigger: add a personal key, or confirm and remove the one already on file. */
|
|
32
39
|
export declare const CredentialsApiKeyOverlay: FC<CredentialsApiKeyOverlayProps>;
|
|
33
|
-
export {};
|
|
34
40
|
//# sourceMappingURL=CredentialsApiKeyOverlay.d.ts.map
|
package/components/Details/Header/CredentialsApiKeyOverlay/CredentialsApiKeyOverlay.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialsApiKeyOverlay.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/Header/CredentialsApiKeyOverlay/CredentialsApiKeyOverlay.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,EAAE,EAAyB,MAAM,OAAO,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"CredentialsApiKeyOverlay.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/Header/CredentialsApiKe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CAAC,6BAA6B,CAwKtE,CAAC"}
|
|
@@ -2,10 +2,19 @@ import { FC, ReactNode } from 'react';
|
|
|
2
2
|
import { CatalogItem } from '../../../models/catalog-item';
|
|
3
3
|
import { ItemDetailsStyles, ItemDetailsTexts } from '../../../models/item-details-props';
|
|
4
4
|
import { CredentialsLevel } from '../../../types/toolset-auth';
|
|
5
|
-
|
|
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. */
|
|
6
12
|
item: CatalogItem;
|
|
13
|
+
/** Called by the primary "Use in chat" action. The action is hidden when absent. */
|
|
7
14
|
onUseInChat?: (item: CatalogItem) => void;
|
|
15
|
+
/** Returns `false` to hide the primary action for an item. */
|
|
8
16
|
isPrimaryActionVisible?: (item: CatalogItem) => boolean;
|
|
17
|
+
/** Called by Share when no `shareOverlay` is given. Share is hidden when both are absent. */
|
|
9
18
|
onShare?: (item: CatalogItem) => void;
|
|
10
19
|
/**
|
|
11
20
|
* Renders the Share popover content. When provided, choosing Share opens
|
|
@@ -26,6 +35,7 @@ interface HeaderProps {
|
|
|
26
35
|
* one surface or the other, never both.
|
|
27
36
|
*/
|
|
28
37
|
isSharePrimary?: (item: CatalogItem) => boolean;
|
|
38
|
+
/** Called by the Manage menu's "Edit" entry, shown only for an editable item. */
|
|
29
39
|
onEdit?: (item: CatalogItem) => void;
|
|
30
40
|
/**
|
|
31
41
|
* Called when "Download" is clicked. In the Manage menu, fire-and-forget:
|
|
@@ -56,10 +66,12 @@ interface HeaderProps {
|
|
|
56
66
|
onFetchRecipientsCount?: (item: CatalogItem) => Promise<number | undefined>;
|
|
57
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. */
|
|
58
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. */
|
|
59
70
|
onLogin?: (item: CatalogItem, params: {
|
|
60
71
|
level: CredentialsLevel;
|
|
61
72
|
apiKey?: string;
|
|
62
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. */
|
|
63
75
|
onLogout?: (item: CatalogItem, params: {
|
|
64
76
|
level: CredentialsLevel;
|
|
65
77
|
}) => Promise<void> | void;
|
|
@@ -75,7 +87,9 @@ interface HeaderProps {
|
|
|
75
87
|
* without signing out immediately.
|
|
76
88
|
*/
|
|
77
89
|
onRequestLogout?: () => void;
|
|
90
|
+
/** Text overrides, shared with `DetailsPanel`. */
|
|
78
91
|
texts?: ItemDetailsTexts;
|
|
92
|
+
/** Style overrides, shared with `DetailsPanel`. */
|
|
79
93
|
detailsStyles?: ItemDetailsStyles;
|
|
80
94
|
/**
|
|
81
95
|
* Controls whether the "Publish" action is shown. Defaults to the same rule
|
|
@@ -98,7 +112,9 @@ interface HeaderProps {
|
|
|
98
112
|
* `onOpenUnpublish`. Defaults to `true` when absent. When the entry ends up
|
|
99
113
|
* shown, it replaces "Publish" rather than joining it. Supplying it also
|
|
100
114
|
* keeps the Manage trigger rendered for an item it returns `true` for while
|
|
101
|
-
* `isPublishHistoryResolved` is still `false
|
|
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.
|
|
102
118
|
*/
|
|
103
119
|
isUnpublishVisible?: (item: CatalogItem) => boolean;
|
|
104
120
|
/**
|
|
@@ -136,5 +152,4 @@ interface HeaderProps {
|
|
|
136
152
|
}
|
|
137
153
|
/** 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. */
|
|
138
154
|
export declare const Header: FC<HeaderProps>;
|
|
139
|
-
export {};
|
|
140
155
|
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/Header/Header.tsx"],"names":[],"mappings":"AAkCA,OAAO,EACL,EAAE,EAMF,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EACL,gBAAgB,EAGjB,MAAM,6BAA6B,CAAC;AAqDrC,
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/Header/Header.tsx"],"names":[],"mappings":"AAkCA,OAAO,EACL,EAAE,EAMF,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EACL,gBAAgB,EAGjB,MAAM,6BAA6B,CAAC;AAqDrC;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,6DAA6D;IAC7D,IAAI,EAAE,WAAW,CAAC;IAClB,oFAAoF;IACpF,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAC1C,8DAA8D;IAC9D,sBAAsB,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC;IACxD,6FAA6F;IAC7F,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,EAAE,CAAC,WAAW,CAm5BlC,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { ItemDetailsStyles } from '../../../models/item-details-props';
|
|
3
|
-
interface AboutTabProps {
|
|
2
|
+
import { CatalogMarkdownLabels, ItemDetailsStyles } from '../../../models/item-details-props';
|
|
3
|
+
export interface AboutTabProps {
|
|
4
4
|
topics?: string[];
|
|
5
5
|
/** Markdown text to render, typically `item.description`. */
|
|
6
6
|
content: string;
|
|
7
7
|
detailsStyles?: ItemDetailsStyles;
|
|
8
|
+
/** Code-block, table and formula labels forwarded to the markdown renderer. Defaults to the renderer's English labels. */
|
|
9
|
+
markdownLabels?: CatalogMarkdownLabels;
|
|
8
10
|
}
|
|
9
11
|
/** Renders a catalog item's description as markdown, followed by its topic tags. */
|
|
10
12
|
export declare const AboutTab: FC<AboutTabProps>;
|
|
11
|
-
export {};
|
|
12
13
|
//# sourceMappingURL=About.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"About.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/TabsContent/About.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"About.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/TabsContent/About.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,EACV,qBAAqB,EACrB,iBAAiB,EAClB,MAAM,oCAAoC,CAAC;AAG5C,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,6DAA6D;IAC7D,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC,0HAA0H;IAC1H,cAAc,CAAC,EAAE,qBAAqB,CAAC;CACxC;AAED,oFAAoF;AACpF,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAwCtC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
|
-
import { CatalogContentFilePreview, CatalogContentTreeNode } from '../../../models/item-details-data';
|
|
3
|
-
import { ItemDetailsStyles } from '../../../models/item-details-props';
|
|
2
|
+
import { CatalogContentFilePreview, CatalogContentFileTreeRenderProps, CatalogContentTreeNode } from '../../../models/item-details-data';
|
|
3
|
+
import { CatalogMarkdownLabels, ItemDetailsStyles } from '../../../models/item-details-props';
|
|
4
4
|
/** Props for ContentTab. */
|
|
5
5
|
export interface ContentTabProps {
|
|
6
6
|
/** The item's full text body, rendered read-only as markdown. */
|
|
@@ -40,8 +40,12 @@ export interface ContentTabProps {
|
|
|
40
40
|
filePreview?: CatalogContentFilePreview | null;
|
|
41
41
|
/** Host-rendered picked-file preview. Takes precedence over `filePreview`. */
|
|
42
42
|
filePreviewContent?: ReactNode;
|
|
43
|
+
/** Renders the selector's tree in place of the built-in one. Omitted, the built-in tree renders. */
|
|
44
|
+
renderFileTree?: (props: CatalogContentFileTreeRenderProps) => ReactNode;
|
|
43
45
|
/** Color and typography overrides for the body text, headings, and placeholder highlights. */
|
|
44
46
|
detailsStyles?: ItemDetailsStyles;
|
|
47
|
+
/** Code-block, table and formula labels forwarded to the markdown body and the plain-text code preview. Defaults to the renderer's English labels. */
|
|
48
|
+
markdownLabels?: CatalogMarkdownLabels;
|
|
45
49
|
}
|
|
46
50
|
/**
|
|
47
51
|
* Renders a catalog item's summary and its long-form body as read-only
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/TabsContent/Content.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,EAAE,EAAE,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/TabsContent/Content.tsx"],"names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AA8E;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;;;;;GAKG;AACH,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CA6K1C,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { UsageLimitGroup } from '../../../../models/item-details-data';
|
|
3
3
|
import { LimitRowClassNames } from '../../../../models/limits-props';
|
|
4
|
+
import { LimitRowLayout } from '../../../../types/limit-row-layout';
|
|
4
5
|
interface LimitGroupSectionProps extends LimitRowClassNames {
|
|
5
6
|
group: UsageLimitGroup;
|
|
6
7
|
sectionClassName: string;
|
|
8
|
+
layout: LimitRowLayout;
|
|
7
9
|
}
|
|
8
10
|
/** One named limits group (e.g. token limits, cost limits) rendered as a heading over its rows. */
|
|
9
11
|
export declare const LimitGroupSection: FC<LimitGroupSectionProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LimitGroupSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/TabsContent/Limits/LimitGroupSection.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"LimitGroupSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/TabsContent/Limits/LimitGroupSection.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAIzE,UAAU,sBAAuB,SAAQ,kBAAkB;IACzD,KAAK,EAAE,eAAe,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,cAAc,CAAC;CACxB;AAED,mGAAmG;AACnG,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAmCxD,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { UsageLimitProgressRow } from '../../../../models/item-details-data';
|
|
3
3
|
import { LimitRowClassNames } from '../../../../models/limits-props';
|
|
4
|
+
import { LimitRowLayout } from '../../../../types/limit-row-layout';
|
|
4
5
|
interface LimitRowProps extends LimitRowClassNames {
|
|
5
6
|
row: UsageLimitProgressRow;
|
|
7
|
+
layout: LimitRowLayout;
|
|
6
8
|
}
|
|
7
|
-
/** A single usage-limit line
|
|
9
|
+
/** A single usage-limit line, arranged per `layout`: either a label column beside a fixed-width value/progress column, or a label/value line above a full-width bar. */
|
|
8
10
|
export declare const LimitRow: FC<LimitRowProps>;
|
|
9
11
|
export {};
|
|
10
12
|
//# sourceMappingURL=LimitRow.d.ts.map
|
|
@@ -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;
|
|
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,CA0JtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Limits.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/TabsContent/Limits/Limits.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"Limits.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/TabsContent/Limits/Limits.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAKtE,4IAA4I;AAC5I,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CA6DxC,CAAC"}
|
|
@@ -16,6 +16,8 @@ export interface OverviewProps {
|
|
|
16
16
|
yesLabel: string;
|
|
17
17
|
/** Label for boolean-false values. */
|
|
18
18
|
noLabel: string;
|
|
19
|
+
/** Class applied to the wrapper around each section's table. Defaults to `'px-6'`. */
|
|
20
|
+
sectionContainerClassName?: string;
|
|
19
21
|
}
|
|
20
22
|
/** Renders the Overview tab content: full-bleed spec sections separated by dividers. */
|
|
21
23
|
export declare const Overview: FC<OverviewProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Overview.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/TabsContent/Overview.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAIrE,0BAA0B;AAC1B,MAAM,WAAW,aAAa;IAC5B,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;IAC7B,6CAA6C;IAC7C,gBAAgB,EAAE,MAAM,CAAC;IACzB,4CAA4C;IAC5C,cAAc,EAAE,MAAM,CAAC;IACvB,mDAAmD;IACnD,cAAc,EAAE,MAAM,CAAC;IACvB,yCAAyC;IACzC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,qCAAqC;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,sCAAsC;IACtC,OAAO,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"Overview.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/TabsContent/Overview.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAIrE,0BAA0B;AAC1B,MAAM,WAAW,aAAa;IAC5B,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;IAC7B,6CAA6C;IAC7C,gBAAgB,EAAE,MAAM,CAAC;IACzB,4CAA4C;IAC5C,cAAc,EAAE,MAAM,CAAC;IACvB,mDAAmD;IACnD,cAAc,EAAE,MAAM,CAAC;IACvB,yCAAyC;IACzC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,qCAAqC;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,sCAAsC;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,sFAAsF;IACtF,yBAAyB,CAAC,EAAE,MAAM,CAAC;CACpC;AAED,wFAAwF;AACxF,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAsCtC,CAAC"}
|
|
@@ -6,6 +6,8 @@ export interface PricingProps {
|
|
|
6
6
|
pricing?: CatalogItemPricing;
|
|
7
7
|
/** "Token pricing" section heading. Default: `'Token pricing'`. */
|
|
8
8
|
pricesSectionLabel?: string;
|
|
9
|
+
/** Price section heading when `pricing.unit` is `CatalogPricingUnit.Character`. Default: `'Character pricing'`. */
|
|
10
|
+
characterPricesSectionLabel?: string;
|
|
9
11
|
/** "Usage limits" section heading. Default: `'Usage limits'`. */
|
|
10
12
|
limitsSectionLabel?: string;
|
|
11
13
|
/** CSS class for row labels. Defaults to `'dial-small-semi-text'`. */
|
|
@@ -15,6 +17,6 @@ export interface PricingProps {
|
|
|
15
17
|
/** CSS class for section headings. Defaults to `'dial-caption-text'`. */
|
|
16
18
|
sectionClassName?: string;
|
|
17
19
|
}
|
|
18
|
-
/** Renders the Pricing tab:
|
|
20
|
+
/** Renders the Pricing tab: price rows and usage-limit rows. */
|
|
19
21
|
export declare const Pricing: FC<PricingProps>;
|
|
20
22
|
//# sourceMappingURL=Pricing.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pricing.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/TabsContent/Pricing.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"Pricing.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/TabsContent/Pricing.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAI5E,2BAA2B;AAC3B,MAAM,WAAW,YAAY;IAC3B,8BAA8B;IAC9B,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,mEAAmE;IACnE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mHAAmH;IACnH,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,iEAAiE;IACjE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,sEAAsE;IACtE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iEAAiE;IACjE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,yEAAyE;IACzE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,gEAAgE;AAChE,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CA2CpC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { CatalogItemTools } from '../../../../models/item-details-data';
|
|
2
|
+
import { CatalogItemTools, ToolsLabels } from '../../../../models/item-details-data';
|
|
3
3
|
/** Props for `Tools`. */
|
|
4
4
|
export interface ToolsProps {
|
|
5
5
|
/** Tools data to render. */
|
|
@@ -12,7 +12,14 @@ export interface ToolsProps {
|
|
|
12
12
|
tableHeadingClassName?: string;
|
|
13
13
|
/** CSS class for grid cell text. Defaults to `'dial-tiny-text'`. */
|
|
14
14
|
tableCellClassName?: string;
|
|
15
|
+
/** CSS class for the tool count above the list. Defaults to `'dial-tiny-text'`. */
|
|
16
|
+
countClassName?: string;
|
|
17
|
+
/** Grid column headings, search, count and no-results strings, merged over English defaults. */
|
|
18
|
+
labels?: Partial<ToolsLabels>;
|
|
15
19
|
}
|
|
16
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* Renders the Tools tab: a search field, the number of tools shown, and the
|
|
22
|
+
* list of tool definitions with input schemas and annotations.
|
|
23
|
+
*/
|
|
17
24
|
export declare const Tools: FC<ToolsProps>;
|
|
18
25
|
//# sourceMappingURL=Tools.d.ts.map
|
|
@@ -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":"AAEA,OAAO,EAAE,EAAE,EAAqB,MAAM,OAAO,CAAC;AAC9C,OAAO,KAAK,EACV,gBAAgB,EAEhB,WAAW,EACZ,MAAM,sCAAsC,CAAC;AAqB9C,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,gGAAgG;IAChG,MAAM,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;CAC/B;AAED;;;GAGG;AACH,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CAmIhC,CAAC"}
|
|
@@ -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":"AAWA,OAAO,EACL,EAAE,EAMH,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAoCxD;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CA8axC,CAAC"}
|
|
@@ -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":"AAgBA,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,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;AA0BD,+GAA+G;AAC/G,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CAkTlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListView.d.ts","sourceRoot":"","sources":["../../../src/components/ListView/ListView.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"ListView.d.ts","sourceRoot":"","sources":["../../../src/components/ListView/ListView.tsx"],"names":[],"mappings":"AAIA,OAAO,EAGL,EAAE,EAKH,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAsBxD,yEAAyE;AACzE,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAetC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ICellRendererParams } from 'ag-grid-community';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
import { CatalogItem } from '../../../models/catalog-item';
|
|
4
|
+
/** ag-grid cell renderer for a row's checkbox in the multi-select column. */
|
|
5
|
+
export declare const SelectionCellRenderer: FC<ICellRendererParams<CatalogItem>>;
|
|
6
|
+
//# sourceMappingURL=SelectionCellRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectionCellRenderer.d.ts","sourceRoot":"","sources":["../../../../src/components/ListView/Renders/SelectionCellRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAGhE,6EAA6E;AAC7E,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,mBAAmB,CAAC,WAAW,CAAC,CAgBtE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectionHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/ListView/Renders/SelectionHeader.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAG3B,mFAAmF;AACnF,eAAO,MAAM,eAAe,EAAE,EAoB7B,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
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
|
+
/** Column id of the multi-select checkbox column. */
|
|
5
|
+
export declare const SELECTION_COLUMN_ID = "selection";
|
|
4
6
|
/** The optional built-in `ListView` columns a host can independently show or hide per entity type. */
|
|
5
7
|
export type ListViewColumnKey = 'folder' | 'tags' | 'favorite';
|
|
6
8
|
/**
|
|
@@ -18,6 +20,9 @@ export type ListViewColumnVisibility = Partial<Record<ListViewColumnKey, (type:
|
|
|
18
20
|
* left Folder and Tags permanently at their floor, where paths collapsed into
|
|
19
21
|
* unreadable stubs and tags were clipped mid-word. Name keeps twice the share
|
|
20
22
|
* because it carries the icon, the name and the version.
|
|
23
|
+
*
|
|
24
|
+
* `isMultiSelect` prepends a checkbox column whose header and cells read the
|
|
25
|
+
* selection from `ListSelectionContext`, so selecting never rebuilds columns.
|
|
21
26
|
*/
|
|
22
|
-
export declare const CATALOG_COLUMNS: (type: CatalogEntityType, isReadonly?: boolean, columnVisibility?: ListViewColumnVisibility) => ColDef<CatalogItem>[];
|
|
27
|
+
export declare const CATALOG_COLUMNS: (type: CatalogEntityType, isReadonly?: boolean, columnVisibility?: ListViewColumnVisibility, isMultiSelect?: boolean) => ColDef<CatalogItem>[];
|
|
23
28
|
//# sourceMappingURL=columns.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"columns.d.ts","sourceRoot":"","sources":["../../../src/components/ListView/columns.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"columns.d.ts","sourceRoot":"","sources":["../../../src/components/ListView/columns.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAUxD,qDAAqD;AACrD,eAAO,MAAM,mBAAmB,cAAc,CAAC;AAK/C,sGAAsG;AACtG,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;AAE/D;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAC5C,MAAM,CAAC,iBAAiB,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,OAAO,CAAC,CAChE,CAAC;AAiCF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,GAC1B,MAAM,iBAAiB,EACvB,oBAAkB,EAClB,mBAAmB,wBAAwB,EAC3C,uBAAqB,KACpB,MAAM,CAAC,WAAW,CAAC,EA2ErB,CAAC"}
|