@epam/ai-dial-catalog 1.0.0-dev.484 → 1.0.0-dev.486

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Catalog.d.ts","sourceRoot":"","sources":["../../../src/components/Catalog/Catalog.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAqD,MAAM,OAAO,CAAC;AAE9E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAqB/D;;;;GAIG;AACH,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CAobpC,CAAC"}
1
+ {"version":3,"file":"Catalog.d.ts","sourceRoot":"","sources":["../../../src/components/Catalog/Catalog.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAqD,MAAM,OAAO,CAAC;AAE9E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAqB/D;;;;GAIG;AACH,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CA8bpC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { ColDef } from 'ag-grid-community';
2
2
  import { CatalogItem } from '../../models/catalog-item';
3
- export declare const CATALOG_COLUMNS: () => ColDef<CatalogItem>[];
3
+ /** Column definitions for the catalog ag-grid list view. A stable module-level constant so ag-grid never sees a new array/closures on each render. */
4
+ export declare const CATALOG_COLUMNS: ColDef<CatalogItem>[];
4
5
  //# 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,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAOxD,eAAO,MAAM,eAAe,QAAO,MAAM,CAAC,WAAW,CAAC,EA6CrD,CAAC"}
1
+ {"version":3,"file":"columns.d.ts","sourceRoot":"","sources":["../../../src/components/ListView/columns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAOxD,sJAAsJ;AACtJ,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,WAAW,CAAC,EA6ChD,CAAC"}
package/index.js CHANGED
@@ -28172,69 +28172,53 @@ var Cx = {
28172
28172
  listContainer: "_listContainer_1lje3_5",
28173
28173
  starFilledIcon: "_starFilledIcon_1lje3_16",
28174
28174
  selectedRow: "_selectedRow_1lje3_20"
28175
- }, CS = ({ data: e, context: t }) => {
28176
- let n = t?.searchQuery ?? "", r = t?.typography, i = r?.nameClassName ?? "dial-h3-text", a = r?.versionClassName ?? "dial-tiny-text", o = r?.descriptionClassName ?? "dial-small-text", s = e != null && e.id === t?.selectedItemId;
28177
- return e ? /* @__PURE__ */ R("div", {
28178
- className: "flex h-full items-center gap-2.5",
28179
- children: [
28180
- /* @__PURE__ */ L(lr, {
28181
- src: e.iconUrl,
28182
- size: 48,
28183
- initialsName: e.name
28184
- }),
28185
- /* @__PURE__ */ R("div", {
28186
- className: "flex min-w-0 flex-col gap-0.5",
28187
- children: [/* @__PURE__ */ L(wx, {
28188
- title: e.name,
28189
- postfix: e.version,
28190
- postfixClassName: a,
28191
- query: n,
28192
- titleClassName: i,
28193
- className: "items-baseline gap-1.5",
28194
- trailing: s ? /* @__PURE__ */ L(z, {
28195
- size: m.SM,
28196
- className: "shrink-0 text-accent-primary",
28197
- "aria-hidden": !0
28198
- }) : void 0
28199
- }), /* @__PURE__ */ L("p", {
28200
- className: G(o, SS.secondaryText),
28201
- children: /* @__PURE__ */ L(pr, {
28202
- text: e.description,
28203
- query: n,
28204
- maxLines: 2
28205
- })
28206
- })]
28207
- }),
28208
- /* @__PURE__ */ L(ix, {
28209
- credentials: e.credentials,
28210
- loggedOutLabel: t?.credentialsBadgeLoggedOutLabel,
28211
- className: "ms-2 shrink-0"
28212
- })
28213
- ]
28214
- }) : null;
28215
- }, wS = ({ data: e, context: t }) => {
28216
- let [n, r] = d(e?.isStarred ?? !1);
28217
- return e ? /* @__PURE__ */ L("div", {
28218
- className: "flex h-full items-center justify-center pe-4",
28219
- children: /* @__PURE__ */ L(ux, {
28220
- isStarred: n,
28221
- onClick: (i) => {
28222
- i.stopPropagation();
28223
- let a = !n;
28224
- r(a), t?.onToggleFavorite?.(e.id, a);
28225
- }
28226
- })
28227
- }) : null;
28228
- }, TS = ({ data: e }) => e ? /* @__PURE__ */ L("div", {
28229
- className: "flex h-full flex-wrap items-center gap-1",
28230
- children: e.topics.map((e) => /* @__PURE__ */ L(fx, { label: e }, e))
28231
- }) : null, ES = () => [
28175
+ }, CS = [
28232
28176
  {
28233
28177
  headerName: "Name",
28234
28178
  flex: 4,
28235
28179
  field: "name",
28236
28180
  filter: !1,
28237
- cellRenderer: CS,
28181
+ cellRenderer: ({ data: e, context: t }) => {
28182
+ let n = t?.searchQuery ?? "", r = t?.typography, i = r?.nameClassName ?? "dial-h3-text", a = r?.versionClassName ?? "dial-tiny-text", o = r?.descriptionClassName ?? "dial-small-text", s = e != null && e.id === t?.selectedItemId;
28183
+ return e ? /* @__PURE__ */ R("div", {
28184
+ className: "flex h-full items-center gap-2.5",
28185
+ children: [
28186
+ /* @__PURE__ */ L(lr, {
28187
+ src: e.iconUrl,
28188
+ size: 48,
28189
+ initialsName: e.name
28190
+ }),
28191
+ /* @__PURE__ */ R("div", {
28192
+ className: "flex min-w-0 flex-col gap-0.5",
28193
+ children: [/* @__PURE__ */ L(wx, {
28194
+ title: e.name,
28195
+ postfix: e.version,
28196
+ postfixClassName: a,
28197
+ query: n,
28198
+ titleClassName: i,
28199
+ className: "items-baseline gap-1.5",
28200
+ trailing: s ? /* @__PURE__ */ L(z, {
28201
+ size: m.SM,
28202
+ className: "shrink-0 text-accent-primary",
28203
+ "aria-hidden": !0
28204
+ }) : void 0
28205
+ }), /* @__PURE__ */ L("p", {
28206
+ className: G(o, SS.secondaryText),
28207
+ children: /* @__PURE__ */ L(pr, {
28208
+ text: e.description,
28209
+ query: n,
28210
+ maxLines: 2
28211
+ })
28212
+ })]
28213
+ }),
28214
+ /* @__PURE__ */ L(ix, {
28215
+ credentials: e.credentials,
28216
+ loggedOutLabel: t?.credentialsBadgeLoggedOutLabel,
28217
+ className: "ms-2 shrink-0"
28218
+ })
28219
+ ]
28220
+ }) : null;
28221
+ },
28238
28222
  valueGetter: (e) => e.data?.name
28239
28223
  },
28240
28224
  {
@@ -28260,7 +28244,10 @@ var Cx = {
28260
28244
  flex: 2,
28261
28245
  filter: !1,
28262
28246
  sortable: !1,
28263
- cellRenderer: TS,
28247
+ cellRenderer: ({ data: e }) => e ? /* @__PURE__ */ L("div", {
28248
+ className: "flex h-full flex-wrap items-center gap-1",
28249
+ children: e.topics.map((e) => /* @__PURE__ */ L(fx, { label: e }, e))
28250
+ }) : null,
28264
28251
  valueGetter: (e) => e.data?.topics
28265
28252
  },
28266
28253
  {
@@ -28271,28 +28258,41 @@ var Cx = {
28271
28258
  filter: !1,
28272
28259
  sortable: !1,
28273
28260
  resizable: !1,
28274
- cellRenderer: wS
28261
+ cellRenderer: ({ data: e, context: t }) => {
28262
+ let [n, r] = d(e?.isStarred ?? !1);
28263
+ return e ? /* @__PURE__ */ L("div", {
28264
+ className: "flex h-full items-center justify-center pe-4",
28265
+ children: /* @__PURE__ */ L(ux, {
28266
+ isStarred: n,
28267
+ onClick: (i) => {
28268
+ i.stopPropagation();
28269
+ let a = !n;
28270
+ r(a), t?.onToggleFavorite?.(e.id, a);
28271
+ }
28272
+ })
28273
+ }) : null;
28274
+ }
28275
28275
  }
28276
- ], DS = 50, OS = (e) => {
28276
+ ], wS = 50, TS = (e) => {
28277
28277
  if (!e || e === document.body) return null;
28278
28278
  let { overflow: t, overflowY: n } = getComputedStyle(e);
28279
- return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : OS(e.parentElement);
28280
- }, kS = ({ items: e, query: t = "", ariaLabel: n = "Catalog", emptyStateTitle: r, styles: i, onToggleFavorite: a, onItemClick: s, stickyHeaderTop: c, selectedItemId: f, credentialsBadgeLoggedOutLabel: p }) => {
28279
+ return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : TS(e.parentElement);
28280
+ }, ES = ({ items: e, query: t = "", ariaLabel: n = "Catalog", emptyStateTitle: r, styles: i, onToggleFavorite: a, onItemClick: s, stickyHeaderTop: c, selectedItemId: f, credentialsBadgeLoggedOutLabel: p }) => {
28281
28281
  let m = i?.typography ?? {}, h = i?.colors, g = {
28282
28282
  "--cat-list-name-text": h?.nameText,
28283
28283
  "--cat-list-secondary-text": h?.secondaryText,
28284
28284
  ...c == null ? {} : { "--list-header-sticky-top": `${c}px` }
28285
- }, _ = u(null), v = u(null), [y, b] = d(() => Math.min(e.length, DS)), x = u(e);
28285
+ }, _ = u(null), v = u(null), [y, b] = d(() => Math.min(e.length, wS)), x = u(e);
28286
28286
  o(() => {
28287
- x.current !== e && (x.current = e, b(Math.min(e.length, DS)));
28287
+ x.current !== e && (x.current = e, b(Math.min(e.length, wS)));
28288
28288
  }, [e]), o(() => {
28289
28289
  let t = v.current;
28290
28290
  if (!t) return;
28291
- let n = OS(t.parentElement);
28291
+ let n = TS(t.parentElement);
28292
28292
  if (!n) return;
28293
28293
  let r = () => {
28294
28294
  let r = n.getBoundingClientRect(), i = t.getBoundingClientRect();
28295
- i.top < r.bottom && i.bottom > r.top && b((t) => Math.min(e.length, t + DS));
28295
+ i.top < r.bottom && i.bottom > r.top && b((t) => Math.min(e.length, t + wS));
28296
28296
  };
28297
28297
  return n.addEventListener("scroll", r, { passive: !0 }), r(), () => n.removeEventListener("scroll", r);
28298
28298
  }, [e.length]);
@@ -28305,7 +28305,7 @@ var Cx = {
28305
28305
  style: g,
28306
28306
  className: F("w-full px-4", SS.listContainer),
28307
28307
  children: [/* @__PURE__ */ L(D, {
28308
- columnDefs: ES(),
28308
+ columnDefs: CS,
28309
28309
  rowData: S,
28310
28310
  getRowId: (e) => e.id,
28311
28311
  alternateOddRowColors: !0,
@@ -28340,7 +28340,7 @@ var Cx = {
28340
28340
  "aria-hidden": !0
28341
28341
  })]
28342
28342
  });
28343
- }, AS = {
28343
+ }, DS = {
28344
28344
  filterBtn: "_filterBtn_6kwgr_5",
28345
28345
  filterBtnActive: "_filterBtnActive_6kwgr_21",
28346
28346
  filterBtnOpen: "_filterBtnOpen_6kwgr_25",
@@ -28356,14 +28356,14 @@ var Cx = {
28356
28356
  divider: "_divider_6kwgr_117",
28357
28357
  sectionLabel: "_sectionLabel_6kwgr_123",
28358
28358
  footer: "_footer_6kwgr_131"
28359
- }, jS = (e, t, n, r, i) => {
28359
+ }, OS = (e, t, n, r, i) => {
28360
28360
  let a = e.size > 0;
28361
28361
  return n && a ? `${r} · ${e.size}` : n ? r : a ? Be(e, t, i) : i;
28362
- }, MS = (e, t) => {
28362
+ }, kS = (e, t) => {
28363
28363
  let n = new Set(t);
28364
28364
  return n.has(e) ? n.delete(e) : n.add(e), n;
28365
- }, NS = ({ checked: e, onChange: t, values: n, isMyAppsActive: r, onMyAppsChange: i, myAppsLabel: s = "My", topicsLabel: c = "Topics", defaultLabel: f = "From", clearLabel: p = "Clear", applyLabel: h = "Apply" }) => {
28366
- let g = (r ?? !1) || e.size > 0, [_, v] = d(!1), y = l(() => n == null ? [] : [...n].sort(), [n]), b = jS(e, n, r, s, f), [S, C] = d(() => new Set(e)), [w, T] = d(r ?? !1);
28365
+ }, AS = ({ checked: e, onChange: t, values: n, isMyAppsActive: r, onMyAppsChange: i, myAppsLabel: s = "My", topicsLabel: c = "Topics", defaultLabel: f = "From", clearLabel: p = "Clear", applyLabel: h = "Apply" }) => {
28366
+ let g = (r ?? !1) || e.size > 0, [_, v] = d(!1), y = l(() => n == null ? [] : [...n].sort(), [n]), b = OS(e, n, r, s, f), [S, C] = d(() => new Set(e)), [w, T] = d(r ?? !1);
28367
28367
  o(() => {
28368
28368
  _ && (C(new Set(e)), T(r ?? !1));
28369
28369
  }, [
@@ -28406,7 +28406,7 @@ var Cx = {
28406
28406
  role: "menu",
28407
28407
  "aria-label": f,
28408
28408
  tabIndex: -1,
28409
- className: G("min-w-[360px] rounded-xl p-[6px]", AS.overlay),
28409
+ className: G("min-w-[360px] rounded-xl p-[6px]", DS.overlay),
28410
28410
  onKeyDown: te,
28411
28411
  children: [
28412
28412
  /* @__PURE__ */ R("div", {
@@ -28416,32 +28416,32 @@ var Cx = {
28416
28416
  ref: (e) => {
28417
28417
  k.current[0] = e;
28418
28418
  },
28419
- className: G("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none", AS.row, w && AS.rowChecked),
28419
+ className: G("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none", DS.row, w && DS.rowChecked),
28420
28420
  onClick: () => T(!w),
28421
28421
  onKeyDown: N(() => T(!w)),
28422
28422
  children: [/* @__PURE__ */ L("span", {
28423
- className: G("flex size-5 shrink-0 items-center justify-center rounded-[6px]", AS.checkbox, w && AS.checkboxChecked),
28423
+ className: G("flex size-5 shrink-0 items-center justify-center rounded-[6px]", DS.checkbox, w && DS.checkboxChecked),
28424
28424
  "aria-hidden": !0
28425
28425
  }), /* @__PURE__ */ L("span", {
28426
- className: AS.rowLabel,
28426
+ className: DS.rowLabel,
28427
28427
  children: s
28428
28428
  })]
28429
28429
  }),
28430
28430
  y.length > 0 && /* @__PURE__ */ R(I, { children: [
28431
28431
  /* @__PURE__ */ L("div", {
28432
28432
  role: "separator",
28433
- className: G("my-1 h-px", AS.divider),
28433
+ className: G("my-1 h-px", DS.divider),
28434
28434
  "aria-hidden": !0
28435
28435
  }),
28436
28436
  /* @__PURE__ */ L("div", {
28437
- className: G("px-[10px] pb-1 pt-[10px] uppercase tracking-[0.06em]", AS.sectionLabel),
28437
+ className: G("px-[10px] pb-1 pt-[10px] uppercase tracking-[0.06em]", DS.sectionLabel),
28438
28438
  "aria-hidden": !0,
28439
28439
  children: c
28440
28440
  }),
28441
28441
  /* @__PURE__ */ L("div", {
28442
28442
  className: "flex max-h-[220px] flex-col gap-1 overflow-y-auto",
28443
28443
  children: y.map((e, t) => {
28444
- let n = S.has(e), r = t + 1, i = () => C(MS(e, S));
28444
+ let n = S.has(e), r = t + 1, i = () => C(kS(e, S));
28445
28445
  return /* @__PURE__ */ R("div", {
28446
28446
  role: "menuitemcheckbox",
28447
28447
  "aria-checked": n,
@@ -28449,14 +28449,14 @@ var Cx = {
28449
28449
  ref: (e) => {
28450
28450
  k.current[r] = e;
28451
28451
  },
28452
- className: G("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none", AS.row, n && AS.rowChecked),
28452
+ className: G("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none", DS.row, n && DS.rowChecked),
28453
28453
  onClick: i,
28454
28454
  onKeyDown: N(i),
28455
28455
  children: [/* @__PURE__ */ L("span", {
28456
- className: G("flex size-5 shrink-0 items-center justify-center rounded-[6px]", AS.checkbox, n && AS.checkboxChecked),
28456
+ className: G("flex size-5 shrink-0 items-center justify-center rounded-[6px]", DS.checkbox, n && DS.checkboxChecked),
28457
28457
  "aria-hidden": !0
28458
28458
  }), /* @__PURE__ */ L("span", {
28459
- className: AS.rowLabel,
28459
+ className: DS.rowLabel,
28460
28460
  children: e
28461
28461
  })]
28462
28462
  }, e);
@@ -28464,7 +28464,7 @@ var Cx = {
28464
28464
  })
28465
28465
  ] }),
28466
28466
  /* @__PURE__ */ R("div", {
28467
- className: G("mt-1 flex items-center px-1 py-3", AS.footer),
28467
+ className: G("mt-1 flex items-center px-1 py-3", DS.footer),
28468
28468
  onKeyDown: (e) => {
28469
28469
  (e.key === "ArrowUp" || e.key === "ArrowDown") && e.stopPropagation();
28470
28470
  },
@@ -28485,28 +28485,28 @@ var Cx = {
28485
28485
  "aria-haspopup": "menu",
28486
28486
  "aria-expanded": _,
28487
28487
  onKeyDown: M,
28488
- className: G("flex h-[50px] shrink-0 cursor-pointer items-center gap-[7px] whitespace-nowrap rounded-xl px-[18px]", AS.filterBtn, g && AS.filterBtnActive, _ && AS.filterBtnOpen),
28488
+ className: G("flex h-[50px] shrink-0 cursor-pointer items-center gap-[7px] whitespace-nowrap rounded-xl px-[18px]", DS.filterBtn, g && DS.filterBtnActive, _ && DS.filterBtnOpen),
28489
28489
  children: [
28490
28490
  /* @__PURE__ */ L(de, {
28491
28491
  size: m.SM,
28492
28492
  strokeWidth: 1.8,
28493
- className: G("shrink-0", AS.filterBtnFunnel),
28493
+ className: G("shrink-0", DS.filterBtnFunnel),
28494
28494
  "aria-hidden": !0
28495
28495
  }),
28496
28496
  /* @__PURE__ */ L("span", {
28497
- className: AS.filterBtnLabel,
28497
+ className: DS.filterBtnLabel,
28498
28498
  children: b
28499
28499
  }),
28500
28500
  /* @__PURE__ */ L(oe, {
28501
28501
  size: 14,
28502
28502
  strokeWidth: 2.2,
28503
- className: G("shrink-0 transition-transform duration-150", AS.filterBtnChevron, _ && "rotate-180"),
28503
+ className: G("shrink-0 transition-transform duration-150", DS.filterBtnChevron, _ && "rotate-180"),
28504
28504
  "aria-hidden": !0
28505
28505
  })
28506
28506
  ]
28507
28507
  })
28508
28508
  });
28509
- }, PS = ({ placeholder: e = "Search", className: t, ...n }) => /* @__PURE__ */ L("div", {
28509
+ }, jS = ({ placeholder: e = "Search", className: t, ...n }) => /* @__PURE__ */ L("div", {
28510
28510
  className: "flex-1",
28511
28511
  children: /* @__PURE__ */ L(Ib, {
28512
28512
  placeholder: e,
@@ -28517,7 +28517,7 @@ var Cx = {
28517
28517
  inputClassName: "text-[15px]",
28518
28518
  clearButtonClassName: "size-11 desktop:size-auto"
28519
28519
  })
28520
- }), FS = ({ totalCount: e, viewMode: t, onViewModeChange: n, title: r = "Browse", styles: i, query: a, onQueryChange: o, searchPlaceholder: s, gridViewLabel: c = "Grid view", listViewLabel: l = "List view", sortKey: u, onSortChange: d, sortOptions: f, filters: p, onFiltersChange: h, filterValues: g, isMyAppsActive: _, onMyAppsChange: v, filterFromLabel: y, filterMyAppsLabel: b, filterTopicsLabel: S }) => {
28520
+ }), MS = ({ totalCount: e, viewMode: t, onViewModeChange: n, title: r = "Browse", styles: i, query: a, onQueryChange: o, searchPlaceholder: s, gridViewLabel: c = "Grid view", listViewLabel: l = "List view", sortKey: u, onSortChange: d, sortOptions: f, filters: p, onFiltersChange: h, filterValues: g, isMyAppsActive: _, onMyAppsChange: v, filterFromLabel: y, filterMyAppsLabel: b, filterTopicsLabel: S }) => {
28521
28521
  let C = i?.typography?.titleClassName ?? "dial-body-semi-text", w = i?.typography?.countClassName ?? "dial-tiny-semi-text", T = f?.find((e) => e.value === u)?.label ?? "";
28522
28522
  return /* @__PURE__ */ R("div", {
28523
28523
  className: "flex flex-col gap-3",
@@ -28577,12 +28577,12 @@ var Cx = {
28577
28577
  })]
28578
28578
  }), /* @__PURE__ */ R("div", {
28579
28579
  className: "mb-5 flex items-center gap-3",
28580
- children: [/* @__PURE__ */ L(PS, {
28580
+ children: [/* @__PURE__ */ L(jS, {
28581
28581
  value: a,
28582
28582
  onChange: o,
28583
28583
  placeholder: s,
28584
28584
  className: "flex-1"
28585
- }), /* @__PURE__ */ L(NS, {
28585
+ }), /* @__PURE__ */ L(AS, {
28586
28586
  checked: p ?? /* @__PURE__ */ new Set(),
28587
28587
  onChange: h ?? (() => void 0),
28588
28588
  values: g,
@@ -28594,12 +28594,12 @@ var Cx = {
28594
28594
  })]
28595
28595
  })]
28596
28596
  });
28597
- }, IS = {
28597
+ }, NS = {
28598
28598
  section: "_section_qj3lh_1",
28599
28599
  icon: "_icon_qj3lh_5",
28600
28600
  divider: "_divider_qj3lh_9",
28601
28601
  clearAll: "_clearAll_qj3lh_13"
28602
- }, LS = ({ query: e, onQueryChange: t, searchPlaceholder: n = "Search models, tools, agents…", styles: r, filters: i, onFiltersChange: a, filterValues: o, isMyAppsActive: s, onMyAppsChange: c, filterFromLabel: l, filterMyAppsLabel: u, filterTopicsLabel: d, gridViewLabel: f, listViewLabel: p, sortKey: m, onSortChange: h, sortOptions: g, ..._ }) => {
28602
+ }, PS = ({ query: e, onQueryChange: t, searchPlaceholder: n = "Search models, tools, agents…", styles: r, filters: i, onFiltersChange: a, filterValues: o, isMyAppsActive: s, onMyAppsChange: c, filterFromLabel: l, filterMyAppsLabel: u, filterTopicsLabel: d, gridViewLabel: f, listViewLabel: p, sortKey: m, onSortChange: h, sortOptions: g, ..._ }) => {
28603
28603
  let v = {
28604
28604
  "--cat-browse-bg": r?.colors?.background,
28605
28605
  "--cat-browse-title-text": r?.colors?.titleText,
@@ -28609,9 +28609,9 @@ var Cx = {
28609
28609
  "--cat-browse-clear-all": r?.colors?.clearAll
28610
28610
  };
28611
28611
  return /* @__PURE__ */ L("section", {
28612
- className: G("flex-shrink-0 px-4", IS.section),
28612
+ className: G("flex-shrink-0 px-4", NS.section),
28613
28613
  style: v,
28614
- children: /* @__PURE__ */ L(FS, {
28614
+ children: /* @__PURE__ */ L(MS, {
28615
28615
  styles: r,
28616
28616
  query: e,
28617
28617
  onQueryChange: t,
@@ -28632,13 +28632,13 @@ var Cx = {
28632
28632
  ..._
28633
28633
  })
28634
28634
  });
28635
- }, RS = {
28635
+ }, FS = {
28636
28636
  root: "_root_1jtp2_1",
28637
28637
  heading: "_heading_1jtp2_5",
28638
28638
  headingTitle: "_headingTitle_1jtp2_9",
28639
28639
  tabsRow: "_tabsRow_1jtp2_13",
28640
28640
  activeTab: "_activeTab_1jtp2_17"
28641
- }, zS = {
28641
+ }, IS = {
28642
28642
  splitDivider: "_splitDivider_1efwg_1",
28643
28643
  chevron: "_chevron_1efwg_10",
28644
28644
  chevronOpen: "_chevronOpen_1efwg_14",
@@ -28650,7 +28650,7 @@ var Cx = {
28650
28650
  itemText: "_itemText_1efwg_71",
28651
28651
  itemLabel: "_itemLabel_1efwg_78",
28652
28652
  itemDescription: "_itemDescription_1efwg_82"
28653
- }, BS = ({ label: e, options: t, onClick: n }) => {
28653
+ }, LS = ({ label: e, options: t, onClick: n }) => {
28654
28654
  let [r, i] = d(!1), o = u(null), s = u([]), c = a(() => {
28655
28655
  o.current?.querySelector("button")?.focus();
28656
28656
  }, []), l = a((e) => {
@@ -28674,11 +28674,11 @@ var Cx = {
28674
28674
  matchReferenceWidth: !1,
28675
28675
  placement: "bottom-end",
28676
28676
  outsideClosable: !0,
28677
- listClassName: zS.dropdownWrapper,
28677
+ listClassName: IS.dropdownWrapper,
28678
28678
  renderOverlay: () => /* @__PURE__ */ L("div", {
28679
28679
  role: "menu",
28680
28680
  "aria-label": e,
28681
- className: zS.menu,
28681
+ className: IS.menu,
28682
28682
  onKeyDown: h,
28683
28683
  children: t.map((e, t) => /* @__PURE__ */ R("button", {
28684
28684
  ref: (e) => {
@@ -28686,7 +28686,7 @@ var Cx = {
28686
28686
  },
28687
28687
  role: "menuitem",
28688
28688
  tabIndex: -1,
28689
- className: zS.item,
28689
+ className: IS.item,
28690
28690
  onClick: () => {
28691
28691
  e.onClick(), l(!1);
28692
28692
  },
@@ -28694,15 +28694,15 @@ var Cx = {
28694
28694
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), e.onClick(), l(!1));
28695
28695
  },
28696
28696
  children: [e.icon && /* @__PURE__ */ L("div", {
28697
- className: G(zS.itemIcon, e.iconContainerClassName),
28697
+ className: G(IS.itemIcon, e.iconContainerClassName),
28698
28698
  children: e.icon
28699
28699
  }), /* @__PURE__ */ R("div", {
28700
- className: zS.itemText,
28700
+ className: IS.itemText,
28701
28701
  children: [/* @__PURE__ */ L("span", {
28702
- className: G(zS.itemLabel, "dial-small-semi-text"),
28702
+ className: G(IS.itemLabel, "dial-small-semi-text"),
28703
28703
  children: e.label
28704
28704
  }), e.description && /* @__PURE__ */ L("span", {
28705
- className: G(zS.itemDescription, "dial-tiny-text"),
28705
+ className: G(IS.itemDescription, "dial-tiny-text"),
28706
28706
  children: e.description
28707
28707
  })]
28708
28708
  })]
@@ -28713,12 +28713,12 @@ var Cx = {
28713
28713
  iconBefore: /* @__PURE__ */ L(xe, { size: m.SM }),
28714
28714
  iconAfter: /* @__PURE__ */ R("span", {
28715
28715
  className: "flex items-center gap-2",
28716
- children: [/* @__PURE__ */ L("span", { className: zS.splitDivider }), /* @__PURE__ */ L(oe, {
28716
+ children: [/* @__PURE__ */ L("span", { className: IS.splitDivider }), /* @__PURE__ */ L(oe, {
28717
28717
  size: m.SM,
28718
- className: G(zS.chevron, r && zS.chevronOpen)
28718
+ className: G(IS.chevron, r && IS.chevronOpen)
28719
28719
  })]
28720
28720
  }),
28721
- className: zS.gradientBtn,
28721
+ className: IS.gradientBtn,
28722
28722
  "aria-haspopup": "menu",
28723
28723
  "aria-expanded": r,
28724
28724
  onKeyDown: p
@@ -28728,9 +28728,9 @@ var Cx = {
28728
28728
  label: e,
28729
28729
  iconBefore: /* @__PURE__ */ L(xe, { size: m.SM }),
28730
28730
  onClick: n,
28731
- className: zS.gradientBtn
28731
+ className: IS.gradientBtn
28732
28732
  });
28733
- }, VS = ({ items: e, favorites: t, titles: n, onToggleFavorite: r, onUseInChat: i, isPrimaryActionVisible: s, onShare: c, isPublishVisible: f, getPublishHistory: p, publishFolderItems: m, publishExpandedPaths: h, onPublishExpandedPathsChange: g, publishLoadingPaths: _, hasPublishWriteAccess: v, onPublish: y, onPublishSuccess: b, onCreatePublishFolder: x, publishTexts: S, shareOverlay: C, connectOverlay: w, isConnectVisible: T, onFetchDetails: E, onEdit: D, onDelete: O, onLogin: k, onLogout: ee, onUnshare: A, onCreateClick: j, createOptions: M, hideCreateButton: te = !1, hidePageTitle: N = !1, selectedItemId: ne, onCardClick: re, isLoading: ie, styles: ae, detailsTexts: F, initialDetailsItemId: I }) => {
28733
+ }, RS = ({ items: e, favorites: t, titles: n, onToggleFavorite: r, onUseInChat: i, isPrimaryActionVisible: s, onShare: c, isPublishVisible: f, getPublishHistory: p, publishFolderItems: m, publishExpandedPaths: h, onPublishExpandedPathsChange: g, publishLoadingPaths: _, hasPublishWriteAccess: v, onPublish: y, onPublishSuccess: b, onCreatePublishFolder: x, publishTexts: S, shareOverlay: C, connectOverlay: w, isConnectVisible: T, onFetchDetails: E, onEdit: D, onDelete: O, onLogin: k, onLogout: ee, onUnshare: A, onCreateClick: j, createOptions: M, hideCreateButton: te = !1, hidePageTitle: N = !1, selectedItemId: ne, onCardClick: re, isLoading: ie, styles: ae, detailsTexts: F, initialDetailsItemId: I }) => {
28734
28734
  let { typography: z } = ae ?? {}, oe = Zb(ae), se = n?.pageTitle ?? "Catalog", ce = n?.createLabel ?? "Create", le = n?.favoritesTitle ?? "Your favorites", ue = n?.browseTitle ?? "Browse", de = n?.searchPlaceholder ?? "Search models, tools, agents…", fe = n?.noResultsTitle ?? ((e) => `No results for "${e}"`), pe = n?.featuredLabel ?? "Featured", me = n?.gridViewLabel ?? "Grid view", he = n?.listViewLabel ?? "List view", ge = n?.ariaLabel ?? "Catalog", _e = [
28735
28735
  {
28736
28736
  value: Me.RecentlyUpdated,
@@ -28814,17 +28814,17 @@ var Cx = {
28814
28814
  children: /* @__PURE__ */ L(P, {})
28815
28815
  }) : /* @__PURE__ */ R("section", {
28816
28816
  "aria-label": ge,
28817
- className: G("flex min-h-0 flex-1 flex-col", RS.root),
28817
+ className: G("flex size-full min-h-0 flex-1 flex-col", FS.root),
28818
28818
  style: oe,
28819
28819
  children: [
28820
28820
  (!N || !te) && /* @__PURE__ */ L("div", {
28821
- className: G("shrink-0", RS.heading),
28821
+ className: G("shrink-0", FS.heading),
28822
28822
  children: /* @__PURE__ */ R("div", {
28823
28823
  className: "flex h-[64px] w-full items-center justify-between px-8",
28824
28824
  children: [!N && /* @__PURE__ */ L("h1", {
28825
- className: G(z?.pageHeadingFontClassName ?? "dial-display2-text", RS.headingTitle),
28825
+ className: G(z?.pageHeadingFontClassName ?? "dial-display2-text", FS.headingTitle),
28826
28826
  children: se
28827
- }), !te && /* @__PURE__ */ L(BS, {
28827
+ }), !te && /* @__PURE__ */ L(LS, {
28828
28828
  label: ce,
28829
28829
  options: M,
28830
28830
  onClick: j
@@ -28850,7 +28850,7 @@ var Cx = {
28850
28850
  }),
28851
28851
  /* @__PURE__ */ L("div", {
28852
28852
  className: "w-full px-4 pt-6",
28853
- children: /* @__PURE__ */ L(LS, {
28853
+ children: /* @__PURE__ */ L(PS, {
28854
28854
  totalCount: ct.length,
28855
28855
  viewMode: ye,
28856
28856
  onViewModeChange: dt,
@@ -28891,8 +28891,8 @@ var Cx = {
28891
28891
  }),
28892
28892
  /* @__PURE__ */ R("div", {
28893
28893
  className: "mx-auto min-h-full w-full max-w-[1180px] px-8 pt-6",
28894
- children: [ye === Re.Grid && /* @__PURE__ */ L("div", {
28895
- className: "pb-8",
28894
+ children: [/* @__PURE__ */ L("div", {
28895
+ className: G("pb-8", ye !== Re.Grid && "hidden"),
28896
28896
  children: /* @__PURE__ */ L(_x, {
28897
28897
  items: lt,
28898
28898
  query: B,
@@ -28901,9 +28901,9 @@ var Cx = {
28901
28901
  titles: pt,
28902
28902
  selectedItemId: ne
28903
28903
  })
28904
- }), xe && ye === Re.List && /* @__PURE__ */ L("div", {
28905
- className: "pb-8",
28906
- children: /* @__PURE__ */ L(kS, {
28904
+ }), xe && /* @__PURE__ */ L("div", {
28905
+ className: G("pb-8", ye !== Re.List && "hidden"),
28906
+ children: /* @__PURE__ */ L(ES, {
28907
28907
  items: lt,
28908
28908
  query: B,
28909
28909
  ariaLabel: ge,
@@ -28951,12 +28951,12 @@ var Cx = {
28951
28951
  })
28952
28952
  ]
28953
28953
  });
28954
- }, HS = {
28954
+ }, zS = {
28955
28955
  backdrop: "_backdrop_4t085_1",
28956
28956
  panel: "_panel_4t085_5",
28957
28957
  divider: "_divider_4t085_10",
28958
28958
  content: "_content_4t085_14"
28959
- }, US = ({ isOpen: e, item: t, resource: n, history: r, isHistoryLoading: i = !1, hasHistoryError: a = !1, folderItems: s, selectedFolderPath: c, onSelectedFolderPathChange: d, onCreateFolder: f, expandedPaths: p, onExpandedPathsChange: m, loadingPaths: h, hasExistingPublicationInFolder: g, hasWriteAccess: _, isSubmitting: v, hasSubmitError: b = !1, allowReplace: x = !0, onClose: S, returnFocusRef: C, onSubmit: w, panelTexts: T, footerTexts: E, texts: D = {} }) => {
28959
+ }, BS = ({ isOpen: e, item: t, resource: n, history: r, isHistoryLoading: i = !1, hasHistoryError: a = !1, folderItems: s, selectedFolderPath: c, onSelectedFolderPathChange: d, onCreateFolder: f, expandedPaths: p, onExpandedPathsChange: m, loadingPaths: h, hasExistingPublicationInFolder: g, hasWriteAccess: _, isSubmitting: v, hasSubmitError: b = !1, allowReplace: x = !0, onClose: S, returnFocusRef: C, onSubmit: w, panelTexts: T, footerTexts: E, texts: D = {} }) => {
28960
28960
  let O = u(null), { title: k = "Publish", ariaLabel: ee = "Publish", closeAriaLabel: A = "Close" } = D, j = l(() => Ke({
28961
28961
  hasSelectedFolder: c != null,
28962
28962
  hasExistingPublicationInFolder: g,
@@ -28988,7 +28988,7 @@ var Cx = {
28988
28988
  document.removeEventListener("keydown", t);
28989
28989
  };
28990
28990
  }, [e, S]), /* @__PURE__ */ R(I, { children: [/* @__PURE__ */ L("div", {
28991
- className: G("fixed inset-0 z-[55] transition-opacity duration-300", HS.backdrop, e ? "opacity-100" : "pointer-events-none opacity-0"),
28991
+ className: G("fixed inset-0 z-[55] transition-opacity duration-300", zS.backdrop, e ? "opacity-100" : "pointer-events-none opacity-0"),
28992
28992
  onClick: S,
28993
28993
  "aria-hidden": "true"
28994
28994
  }), /* @__PURE__ */ R("div", {
@@ -28999,7 +28999,7 @@ var Cx = {
28999
28999
  "aria-hidden": !e,
29000
29000
  inert: !e,
29001
29001
  tabIndex: -1,
29002
- className: G("fixed inset-y-0 end-0 z-[60] flex w-full flex-col overflow-hidden", "desktop:rounded-ts-xl desktop:rounded-bs-xl desktop:w-[540px] desktop:border-s", "transition-transform duration-300", HS.panel, e ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
29002
+ className: G("fixed inset-y-0 end-0 z-[60] flex w-full flex-col overflow-hidden", "desktop:rounded-ts-xl desktop:rounded-bs-xl desktop:w-[540px] desktop:border-s", "transition-transform duration-300", zS.panel, e ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
29003
29003
  children: [
29004
29004
  /* @__PURE__ */ R("div", {
29005
29005
  className: "flex shrink-0 items-center gap-2 px-[22px] py-3",
@@ -29019,9 +29019,9 @@ var Cx = {
29019
29019
  })
29020
29020
  ]
29021
29021
  }),
29022
- /* @__PURE__ */ L("div", { className: G("shrink-0", HS.divider) }),
29022
+ /* @__PURE__ */ L("div", { className: G("shrink-0", zS.divider) }),
29023
29023
  /* @__PURE__ */ L("div", {
29024
- className: G("min-h-0 flex-1 overflow-y-auto", HS.content),
29024
+ className: G("min-h-0 flex-1 overflow-y-auto", zS.content),
29025
29025
  children: /* @__PURE__ */ L("div", {
29026
29026
  className: "p-[22px]",
29027
29027
  children: /* @__PURE__ */ L(Ox, {
@@ -29059,4 +29059,4 @@ var Cx = {
29059
29059
  })] });
29060
29060
  };
29061
29061
  //#endregion
29062
- export { hx as Card, _x as CardGrid, gx as CardRowRenderer, VS as Catalog, Ae as CatalogDetailsTab, V as CatalogEntityType, Me as CatalogSortKey, Re as CatalogViewMode, ke as CodeLanguage, Pe as CredentialStatus, ix as CredentialsBadge, Le as CredentialsBadgeState, Fe as CredentialsLevel, Ie as CredentialsUiState, yS as EntityBadge, je as EntityTag, pS as FavoriteCard, gS as Favorites, NS as Filter, cx as FolderPath, kS as ListView, ze as PublishCalloutKind, Ex as PublishFoldersTree, yx as PublishFooter, Dx as PublishHistoryList, Ox as PublishPanel, US as StandalonePublishPanel, LS as Toolbar, Ne as ToolsetAuthenticationType, fx as TopicTag, $e as collectFolderKeys, Ke as derivePublishState, Ue as filterCatalogItems, Qe as filterFolderTree, Je as formatPublishedDate, st as getCredentialsBadgeState, ot as getCredentialsUiState, ct as getSignedInLevel, We as sortCatalogItems, Ge as useFavColumns, Ze as usePublishFlow, ex as useScrollVirtualizer };
29062
+ export { hx as Card, _x as CardGrid, gx as CardRowRenderer, RS as Catalog, Ae as CatalogDetailsTab, V as CatalogEntityType, Me as CatalogSortKey, Re as CatalogViewMode, ke as CodeLanguage, Pe as CredentialStatus, ix as CredentialsBadge, Le as CredentialsBadgeState, Fe as CredentialsLevel, Ie as CredentialsUiState, yS as EntityBadge, je as EntityTag, pS as FavoriteCard, gS as Favorites, AS as Filter, cx as FolderPath, ES as ListView, ze as PublishCalloutKind, Ex as PublishFoldersTree, yx as PublishFooter, Dx as PublishHistoryList, Ox as PublishPanel, BS as StandalonePublishPanel, PS as Toolbar, Ne as ToolsetAuthenticationType, fx as TopicTag, $e as collectFolderKeys, Ke as derivePublishState, Ue as filterCatalogItems, Qe as filterFolderTree, Je as formatPublishedDate, st as getCredentialsBadgeState, ot as getCredentialsUiState, ct as getSignedInLevel, We as sortCatalogItems, Ge as useFavColumns, Ze as usePublishFlow, ex as useScrollVirtualizer };
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.0.0-dev.484",
4
+ "version": "1.0.0-dev.486",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -20,9 +20,9 @@
20
20
  "react": "^19.0.0",
21
21
  "@tabler/icons-react": "^3.0.0",
22
22
  "@epam/ai-dial-ui-kit": "0.12.0-dev.28",
23
- "@epam/ai-dial-kit": "1.0.0-dev.484",
24
- "@epam/ai-dial-sidebar": "1.0.0-dev.484",
25
- "@epam/ai-dial-chat-shared": "1.0.0-dev.484",
23
+ "@epam/ai-dial-kit": "1.0.0-dev.486",
24
+ "@epam/ai-dial-sidebar": "1.0.0-dev.486",
25
+ "@epam/ai-dial-chat-shared": "1.0.0-dev.486",
26
26
  "ag-grid-community": "35.3.0"
27
27
  },
28
28
  "repository": {