@epam/ai-dial-catalog 1.3.0-dev.176 → 1.3.0-dev.178

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.
@@ -16,7 +16,10 @@ var t = /* @__PURE__ */ function(e) {
16
16
  return e.RecentlyUpdated = "recently-updated", e.Newest = "newest", e.NameAZ = "name-az", e;
17
17
  }({}), c = /* @__PURE__ */ function(e) {
18
18
  return e.About = "about", e.Content = "content", e.Overview = "overview", e.Pricing = "pricing", e.Limits = "limits", e.Api = "api", e.Tools = "tools", e;
19
- }({}), l = (e, t, n = "From") => {
19
+ }({}), l = (e, t) => {
20
+ let n = e.filter((e) => e.isFeatured), r = e.filter((e) => !e.isFeatured), i = (e) => t === s.NameAZ ? [...e].sort((e, t) => e.name.trim().toLowerCase().localeCompare(t.name.trim().toLowerCase())) : t === s.RecentlyUpdated ? [...e].sort((e, t) => !e.updatedAt && !t.updatedAt ? 0 : e.updatedAt ? t.updatedAt ? t.updatedAt - e.updatedAt : -1 : 1) : t === s.Newest ? [...e].sort((e, t) => !e.createdAt && !t.createdAt ? 0 : e.createdAt ? t.createdAt ? t.createdAt - e.createdAt : -1 : 1) : e;
21
+ return [...i(n), ...i(r)];
22
+ }, u = (e, t, n = "From") => {
20
23
  let r = t?.size ?? 0, i = e.size;
21
24
  if (i === 0 || i === r) return n;
22
25
  if (r - i === 1) {
@@ -24,54 +27,54 @@ var t = /* @__PURE__ */ function(e) {
24
27
  return r == null ? n : `${n}: All except ${r}`;
25
28
  }
26
29
  return `${n}: ${i} of ${r}`;
27
- }, u = (e, t) => t.size === 0 ? e : e.filter((e) => e.topics.some((e) => t.has(e))), d = (e) => e.filter((e) => e.isMyApp === !0), f = (e) => new Set(e.flatMap((e) => e.topics)), p = (e, t) => {
30
+ }, d = (e, t) => t.size === 0 ? e : e.filter((e) => e.topics.some((e) => t.has(e))), f = (e) => e.filter((e) => e.isMyApp === !0), p = (e) => new Set(e.flatMap((e) => e.topics)), m = (e, t) => {
28
31
  let n = t.trim().toLowerCase();
29
32
  return n ? e.filter((e) => e.name.toLowerCase().includes(n)) : e;
30
- }, m = (e, t) => {
33
+ }, h = (e, t) => {
31
34
  let n = new Set(t);
32
35
  return n.has(e) ? n.delete(e) : n.add(e), n;
33
- }, h = (e, t) => {
34
- let n = e.filter((e) => e.isFeatured), r = e.filter((e) => !e.isFeatured), i = (e) => t === s.NameAZ ? [...e].sort((e, t) => e.name.trim().toLowerCase().localeCompare(t.name.trim().toLowerCase())) : t === s.RecentlyUpdated ? [...e].sort((e, t) => !e.updatedAt && !t.updatedAt ? 0 : e.updatedAt ? t.updatedAt ? t.updatedAt - e.updatedAt : -1 : 1) : t === s.Newest ? [...e].sort((e, t) => !e.createdAt && !t.createdAt ? 0 : e.createdAt ? t.createdAt ? t.createdAt - e.createdAt : -1 : 1) : e;
35
- return [...i(n), ...i(r)];
36
- }, g = {
36
+ }, g = (e, { search: t, topics: n, isMyOnly: r, sortKey: i }) => {
37
+ let a = d(m(e, t), n);
38
+ return l(r ? f(a) : a, i);
39
+ }, _ = {
37
40
  [e.Model]: "Models",
38
41
  [e.Agent]: "Agents",
39
42
  [e.Toolset]: "Toolsets",
40
43
  [e.Prompt]: "Prompts",
41
44
  [e.Skill]: "Skills"
42
- }, _ = [
45
+ }, v = [
43
46
  e.Model,
44
47
  e.Agent,
45
48
  e.Toolset,
46
49
  e.Skill,
47
50
  e.Prompt
48
- ], v = (e, t) => {
51
+ ], y = (e, t) => {
49
52
  let n = {
50
- ...g,
53
+ ..._,
51
54
  ...t
52
55
  }, r = new Set(e.map((e) => e.type));
53
- return _.filter((e) => r.has(e)).map((e) => ({
56
+ return v.filter((e) => r.has(e)).map((e) => ({
54
57
  id: e,
55
58
  label: n[e] ?? e
56
59
  }));
57
- }, y = (e) => {
60
+ }, b = (e) => {
58
61
  let t = e.querySelector("[role=\"tab\"][aria-selected=\"true\"]");
59
62
  if (t == null) return;
60
63
  let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = getComputedStyle(e), a = parseFloat(i.paddingInlineStart) || 0, o = parseFloat(i.paddingInlineEnd) || 0;
61
64
  r.left < n.left + a ? e.scrollLeft -= n.left + a - r.left : r.right > n.right - o && (e.scrollLeft += r.right - (n.right - o));
62
- }, b = (e, t) => typeof e == "function" ? e(t) : e, x = /* @__PURE__ */ new Set([e.Prompt, e.Skill]), S = (e) => e?.resource?.endpointUrl != null || (e?.endpoints?.length ?? 0) > 0, C = (e, t = {}) => {
63
- let n = [], r = x.has(e.type), i = e.details;
64
- return r || n.push(c.About), (r || i?.promptContent != null) && n.push(c.Content), i?.overview != null && n.push(c.Overview), i?.pricing != null && n.push(c.Pricing), i?.limits != null && n.push(c.Limits), i?.tools != null && n.push(c.Tools), !t.isConnectHidden && S(i?.api) && n.push(c.Api), n;
65
- }, w = (e) => e === n.SignedIn, T = (e, t) => w(t === r.User ? e?.userStatus : e?.globalStatus), E = (e) => new Promise((t) => setTimeout(t, e)), D = (e) => {
66
- let t = w(e.userStatus), n = w(e.globalStatus);
65
+ }, x = (e, t) => typeof e == "function" ? e(t) : e, S = /* @__PURE__ */ new Set([e.Prompt, e.Skill]), C = (e) => e?.resource?.endpointUrl != null || (e?.endpoints?.length ?? 0) > 0, w = (e, t = {}) => {
66
+ let n = [], r = S.has(e.type), i = e.details;
67
+ return r || n.push(c.About), (r || i?.promptContent != null) && n.push(c.Content), i?.overview != null && n.push(c.Overview), i?.pricing != null && n.push(c.Pricing), i?.limits != null && n.push(c.Limits), i?.tools != null && n.push(c.Tools), !t.isConnectHidden && C(i?.api) && n.push(c.Api), n;
68
+ }, T = (e) => e === n.SignedIn, E = (e, t) => T(t === r.User ? e?.userStatus : e?.globalStatus), D = (e) => new Promise((t) => setTimeout(t, e)), O = (e) => {
69
+ let t = T(e.userStatus), n = T(e.globalStatus);
67
70
  return e.isManageableByAdmin ? i.ManageCredentials : e.isPublic && !t ? i.LoginWithMyCreds : !t && !n ? i.LogIn : i.LogOut;
68
- }, O = (e) => {
71
+ }, k = (e) => {
69
72
  if (e.authenticationType === t.None) return;
70
- let n = w(e.userStatus), r = w(e.globalStatus);
73
+ let n = T(e.userStatus), r = T(e.globalStatus);
71
74
  return !n && !r ? a.LoggedOut : void 0;
72
- }, k = (e) => e?.authenticationType == null || e.authenticationType === t.None ? !1 : w(e.globalStatus), A = (e) => w(e.userStatus) ? r.User : r.Global, j = (e) => {
73
- if (e.isManageableByAdmin) return w(e.userStatus) ? o.PersonalCredentialsActive : w(e.globalStatus) ? o.OrgCredentialsActive : void 0;
74
- if (w(e.globalStatus) && e.isPublic && !w(e.userStatus)) return o.UsingOrgCredentials;
75
+ }, A = (e) => e?.authenticationType == null || e.authenticationType === t.None ? !1 : T(e.globalStatus), j = (e) => T(e.userStatus) ? r.User : r.Global, M = (e) => {
76
+ if (e.isManageableByAdmin) return T(e.userStatus) ? o.PersonalCredentialsActive : T(e.globalStatus) ? o.OrgCredentialsActive : void 0;
77
+ if (T(e.globalStatus) && e.isPublic && !T(e.userStatus)) return o.UsingOrgCredentials;
75
78
  };
76
79
  //#endregion
77
- export { a as C, t as D, i as E, n as S, r as T, l as _, A as a, c as b, C as c, b as d, y as f, p as g, u as h, D as i, S as l, d as m, O as n, T as o, h as p, j as r, E as s, k as t, v as u, f as v, o as w, s as x, m as y };
80
+ export { n as C, i as D, r as E, t as O, s as S, o as T, u as _, j as a, l as b, w as c, x as d, b as f, g, m as h, O as i, C as l, d as m, k as n, E as o, f as p, M as r, D as s, A as t, y as u, p as v, a as w, c as x, h as y };
package/mapping.js CHANGED
@@ -1 +1 @@
1
- export { b as CatalogDetailsTab, x as CatalogSortKey, S as CredentialStatus, C as CredentialsBadgeState, w as CredentialsBannerState, T as CredentialsLevel, E as CredentialsUiState, D as ToolsetAuthenticationType, u as buildCatalogTabs, g as filterCatalogItems, c as getCatalogDetailsTabs, n as getCredentialsBadgeState, r as getCredentialsBannerState, i as getCredentialsUiState, a as getSignedInLevel, v as getTopicOptions, p as sortCatalogItems } from "./mapping-DFgXg0L_.js";
1
+ export { x as CatalogDetailsTab, S as CatalogSortKey, C as CredentialStatus, w as CredentialsBadgeState, T as CredentialsBannerState, E as CredentialsLevel, D as CredentialsUiState, O as ToolsetAuthenticationType, u as buildCatalogTabs, h as filterCatalogItems, g as filterCatalogItemsByQuery, c as getCatalogDetailsTabs, n as getCredentialsBadgeState, r as getCredentialsBannerState, i as getCredentialsUiState, a as getSignedInLevel, v as getTopicOptions, b as sortCatalogItems } from "./mapping-FRc9CRhD.js";
@@ -63,7 +63,7 @@ export interface ListViewProps {
63
63
  onToggleFavorite?: (id: string, isStarred: boolean) => void;
64
64
  /** Rule for whether the favorite star is shown on a row; `false` hides it and makes the item non-favoritable. Defaults to visible when omitted. */
65
65
  isFavoriteVisible?: (item: CatalogItem) => boolean;
66
- /** Called when a table row is clicked (excluding the star column). */
66
+ /** Called when a table row is clicked (excluding the star column), or when Enter or Space is pressed on it in single selection mode. */
67
67
  onItemClick?: (item: CatalogItem) => void;
68
68
  /**
69
69
  * When set, the ag-grid column header becomes `position: sticky` at this
@@ -1 +1 @@
1
- {"version":3,"file":"list-props.d.ts","sourceRoot":"","sources":["../../src/models/list-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,uDAAuD;AACvD,MAAM,WAAW,kBAAkB;IACjC,8EAA8E;IAC9E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2EAA2E;IAC3E,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kHAAkH;IAClH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mIAAmI;IACnI,0BAA0B,CAAC,EAAE,MAAM,CAAC;CAC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9D,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,qDAAqD;IACrD,gBAAgB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5D,mJAAmJ;IACnJ,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC;IACnD,wIAAwI;IACxI,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAC1C;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,4HAA4H;IAC5H,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,8HAA8H;IAC9H,aAAa,CAAC,EAAE,oBAAoB,CAAC;IACrC,6GAA6G;IAC7G,eAAe,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACtC,iJAAiJ;IACjJ,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IAC/C,6GAA6G;IAC7G,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,MAAM,CAAC;IACnD,8GAA8G;IAC9G,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mKAAmK;IACnK,8BAA8B,CAAC,EAAE,MAAM,CAAC;IACxC,6FAA6F;IAC7F,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;;OAOG;IACH,gBAAgB,CAAC,EAAE,wBAAwB,CAAC;CAC7C"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-catalog",
3
3
  "description": "Marketplace catalog component for browsing models, tools, and assistants with search, filter, and sort",
4
- "version": "1.3.0-dev.176",
4
+ "version": "1.3.0-dev.178",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "sideEffects": [
@@ -28,11 +28,11 @@
28
28
  "dependencies": {
29
29
  "@tabler/icons-react": "^3.44.0",
30
30
  "ag-grid-community": "^35.3.0",
31
- "@epam/ai-dial-publish-panel": "1.3.0-dev.176"
31
+ "@epam/ai-dial-publish-panel": "1.3.0-dev.178"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "react": "^19.2.8",
35
- "@epam/ai-dial-chat-shared": "1.3.0-dev.176",
35
+ "@epam/ai-dial-chat-shared": "1.3.0-dev.178",
36
36
  "@epam/ai-dial-ui-kit": "^0.16.0-dev.35"
37
37
  },
38
38
  "repository": {
@@ -0,0 +1,10 @@
1
+ /** Where the data behind a `CatalogPickerModal` stands. */
2
+ export declare enum CatalogLoadStatus {
3
+ /** The items are still being fetched; the picker shows a spinner. */
4
+ Loading = "loading",
5
+ /** The items are in; the picker lists them. */
6
+ Ready = "ready",
7
+ /** The items failed to load; the picker shows the error, with Retry when `onRetry` is given. */
8
+ Error = "error"
9
+ }
10
+ //# sourceMappingURL=load-status.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"load-status.d.ts","sourceRoot":"","sources":["../../src/types/load-status.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAC3D,oBAAY,iBAAiB;IAC3B,qEAAqE;IACrE,OAAO,YAAY;IACnB,+CAA+C;IAC/C,KAAK,UAAU;IACf,gGAAgG;IAChG,KAAK,UAAU;CAChB"}
@@ -20,4 +20,20 @@ export declare const getTopicOptions: (items: CatalogItem[]) => Set<string>;
20
20
  export declare const filterCatalogItems: (items: CatalogItem[], query: string) => CatalogItem[];
21
21
  /** Returns a copy of `checked` with `topic` added, or removed when it was already selected. */
22
22
  export declare const toggleTopic: (topic: string, checked: Set<string>) => Set<string>;
23
+ /** A catalog toolbar's search, From filter and sort, as `filterCatalogItemsByQuery` applies them. */
24
+ export interface CatalogItemsQuery {
25
+ /** Name search, case-insensitive and trimmed. */
26
+ search: string;
27
+ /** Topics to keep; an empty set keeps every item. */
28
+ topics: Set<string>;
29
+ /** Whether to keep only the user's own items (`isMyApp`). */
30
+ isMyOnly: boolean;
31
+ /** A `CatalogSortKey` value. */
32
+ sortKey: string;
33
+ }
34
+ /**
35
+ * Applies a catalog toolbar's search, From filter (topics and "My") and sort,
36
+ * in the order and with the meaning of the catalog's own toolbar.
37
+ */
38
+ export declare const filterCatalogItemsByQuery: (items: CatalogItem[], { search, topics, isMyOnly, sortKey }: CatalogItemsQuery) => CatalogItem[];
23
39
  //# sourceMappingURL=catalog-filter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"catalog-filter.d.ts","sourceRoot":"","sources":["../../src/utils/catalog-filter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1D,kJAAkJ;AAClJ,eAAO,MAAM,YAAY,GACvB,SAAS,GAAG,CAAC,MAAM,CAAC,EACpB,QAAQ,GAAG,CAAC,MAAM,CAAC,GAAG,SAAS,EAC/B,qBAAqB,KACpB,MAUF,CAAC;AAEF,qGAAqG;AACrG,eAAO,MAAM,cAAc,GACzB,OAAO,WAAW,EAAE,EACpB,QAAQ,GAAG,CAAC,MAAM,CAAC,KAClB,WAAW,EAGb,CAAC;AAEF,+CAA+C;AAC/C,eAAO,MAAM,aAAa,GAAI,OAAO,WAAW,EAAE,KAAG,WAAW,EACjB,CAAC;AAEhD,uEAAuE;AACvE,eAAO,MAAM,eAAe,GAAI,OAAO,WAAW,EAAE,KAAG,GAAG,CAAC,MAAM,CAClB,CAAC;AAEhD;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,GAC7B,OAAO,WAAW,EAAE,EACpB,OAAO,MAAM,KACZ,WAAW,EAMb,CAAC;AAEF,+FAA+F;AAC/F,eAAO,MAAM,WAAW,GACtB,OAAO,MAAM,EACb,SAAS,GAAG,CAAC,MAAM,CAAC,KACnB,GAAG,CAAC,MAAM,CAQZ,CAAC"}
1
+ {"version":3,"file":"catalog-filter.d.ts","sourceRoot":"","sources":["../../src/utils/catalog-filter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,W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