@orchestrator-ui/orchestrator-ui-components 5.2.3 → 5.3.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/dist/index.js CHANGED
@@ -26799,7 +26799,7 @@ var PolicyResource = /* @__PURE__ */ ((PolicyResource2) => {
26799
26799
  })(PolicyResource || {});
26800
26800
 
26801
26801
  // src/configuration/version.ts
26802
- var ORCHESTRATOR_UI_LIBRARY_VERSION = "5.2.3";
26802
+ var ORCHESTRATOR_UI_LIBRARY_VERSION = "5.3.0";
26803
26803
 
26804
26804
  // src/types/types.ts
26805
26805
  var EngineStatus = /* @__PURE__ */ ((EngineStatus3) => {
@@ -42788,7 +42788,9 @@ var WfoSubscriptionProductBlock = ({
42788
42788
  // src/components/WfoSubscription/WfoSubscriptionProductBlock/WfoProductBlockKeyValueRow.tsx
42789
42789
  import { EuiBadge as EuiBadge3 } from "@elastic/eui";
42790
42790
  import { Fragment as Fragment27, jsx as jsx124, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
42791
- var WfoProductBlockKeyValueRow = ({ fieldValue, allFieldValues }) => {
42791
+ var KEY_CELL_CLASS_NAME = "key-cell";
42792
+ var VALUE_CELL_CLASS_NAME = "value-cell";
42793
+ var WfoProductBlockKeyValueRow = ({ fieldValue, allFieldValues, className }) => {
42792
42794
  const { leftColumnStyle, rowStyle } = useWithOrchestratorTheme(getStyles6);
42793
42795
  const { getOverriddenValue } = useSubscriptionDetailValueOverride();
42794
42796
  const { field, value } = fieldValue;
@@ -42802,9 +42804,9 @@ var WfoProductBlockKeyValueRow = ({ fieldValue, allFieldValues }) => {
42802
42804
  return /* @__PURE__ */ jsx124(Fragment27, { children: value2 });
42803
42805
  }
42804
42806
  };
42805
- return /* @__PURE__ */ jsxs70("tr", { css: rowStyle, children: [
42806
- /* @__PURE__ */ jsx124("td", { css: leftColumnStyle, children: /* @__PURE__ */ jsx124("b", { children: camelToHuman(field) }) }),
42807
- /* @__PURE__ */ jsx124("td", { children: getOverriddenValue(fieldValue, allFieldValues) ?? /* @__PURE__ */ jsx124(WfoProductBlockValue, { value }) })
42807
+ return /* @__PURE__ */ jsxs70("tr", { className, css: rowStyle, children: [
42808
+ /* @__PURE__ */ jsx124("td", { className: KEY_CELL_CLASS_NAME, css: leftColumnStyle, children: /* @__PURE__ */ jsx124("b", { children: camelToHuman(field) }) }),
42809
+ /* @__PURE__ */ jsx124("td", { className: VALUE_CELL_CLASS_NAME, children: getOverriddenValue(fieldValue, allFieldValues) ?? /* @__PURE__ */ jsx124(WfoProductBlockValue, { value }) })
42808
42810
  ] });
42809
42811
  };
42810
42812
 
@@ -53168,104 +53170,7 @@ var subscriptionListTabs = [
53168
53170
  import { useTranslations as useTranslations82 } from "next-intl";
53169
53171
  import Link13 from "next/link";
53170
53172
  import { useRouter as useRouter16 } from "next/router";
53171
-
53172
- // src/rtk/endpoints/subscriptionListMutation.ts
53173
- var subscriptionListMutationApi = orchestratorApi.injectEndpoints({
53174
- endpoints: (builder) => ({
53175
- emptyQuery: builder.query({ query: () => ({}) }),
53176
- emptyDetailQuery: builder.query({ query: () => ({}) }),
53177
- updateSubscriptionNoteOptimistic: builder.mutation({
53178
- queryFn: async () => ({ data: { mockResponse: true } }),
53179
- async onQueryStarted({ queryName, subscriptionId, graphQlQueryVariables, ...patch }, { dispatch, queryFulfilled }) {
53180
- const patchResult = dispatch(
53181
- subscriptionListMutationApi.util.updateQueryData(
53182
- // @ts-expect-error - Suggest ts ignore because of the type mismatch between emptyQuery and queryName
53183
- queryName,
53184
- graphQlQueryVariables,
53185
- (draft) => {
53186
- const subscription = draft.subscriptions.find(
53187
- (item) => item.subscriptionId === subscriptionId
53188
- );
53189
- if (subscription) {
53190
- subscription.note = patch.note;
53191
- }
53192
- }
53193
- )
53194
- );
53195
- try {
53196
- await queryFulfilled;
53197
- } catch {
53198
- patchResult.undo();
53199
- }
53200
- }
53201
- }),
53202
- updateSubscriptionDetailNoteOptimistic: builder.mutation({
53203
- queryFn: async () => ({ data: { mockResponse: true } }),
53204
- async onQueryStarted({ queryName, subscriptionId, ...patch }, { dispatch, queryFulfilled }) {
53205
- const patchResult = dispatch(
53206
- subscriptionListMutationApi.util.updateQueryData(
53207
- // @ts-expect-error - Suggest ts ignore because of the type mismatch between emptyDetailQuery and queryName
53208
- queryName,
53209
- { subscriptionId },
53210
- (draft) => {
53211
- if (draft) {
53212
- draft.subscription.note = patch.note;
53213
- }
53214
- }
53215
- )
53216
- );
53217
- try {
53218
- await queryFulfilled;
53219
- } catch {
53220
- patchResult.undo();
53221
- }
53222
- }
53223
- })
53224
- })
53225
- });
53226
- var {
53227
- useUpdateSubscriptionNoteOptimisticMutation,
53228
- useUpdateSubscriptionDetailNoteOptimisticMutation
53229
- } = subscriptionListMutationApi;
53230
-
53231
- // src/components/WfoInlineNoteEdit/WfoSubscriptionNoteEdit.tsx
53232
53173
  import { jsx as jsx241 } from "@emotion/react/jsx-runtime";
53233
- var WfoSubscriptionNoteEdit = ({
53234
- onlyShowOnHover = false,
53235
- queryVariables,
53236
- endpointName,
53237
- subscription
53238
- }) => {
53239
- const [startProcess] = useStartProcessMutation();
53240
- const [updateSub] = useUpdateSubscriptionNoteOptimisticMutation();
53241
- const triggerNoteModifyWorkflow = (note) => {
53242
- const noteModifyPayload = [
53243
- { subscription_id: subscription.subscriptionId },
53244
- { note: note === INVISIBLE_CHARACTER ? "" : note }
53245
- ];
53246
- startProcess({
53247
- workflowName: "modify_note",
53248
- userInputs: noteModifyPayload
53249
- });
53250
- updateSub({
53251
- queryName: endpointName ?? "",
53252
- subscriptionId: subscription.subscriptionId,
53253
- graphQlQueryVariables: queryVariables,
53254
- note
53255
- });
53256
- };
53257
- return /* @__PURE__ */ jsx241(
53258
- WfoInlineEdit,
53259
- {
53260
- value: subscription?.note?.trim() ? subscription.note : INVISIBLE_CHARACTER,
53261
- onlyShowOnHover,
53262
- onSave: triggerNoteModifyWorkflow
53263
- }
53264
- );
53265
- };
53266
-
53267
- // src/components/WfoSubscriptionsList/WfoSubscriptionsList.tsx
53268
- import { jsx as jsx242 } from "@emotion/react/jsx-runtime";
53269
53174
  var WfoSubscriptionsList = ({
53270
53175
  alwaysOnFilters,
53271
53176
  dataDisplayParams,
@@ -53291,7 +53196,7 @@ var WfoSubscriptionsList = ({
53291
53196
  columnType: "data" /* DATA */,
53292
53197
  label: t("id"),
53293
53198
  width: "100px",
53294
- renderData: (value) => /* @__PURE__ */ jsx242(WfoFirstPartUUID, { UUID: value }),
53199
+ renderData: (value) => /* @__PURE__ */ jsx241(WfoFirstPartUUID, { UUID: value }),
53295
53200
  renderDetails: (value) => value,
53296
53201
  renderTooltip: (value) => value
53297
53202
  },
@@ -53299,20 +53204,20 @@ var WfoSubscriptionsList = ({
53299
53204
  columnType: "data" /* DATA */,
53300
53205
  label: t("description"),
53301
53206
  width: "500px",
53302
- renderData: (value, record) => /* @__PURE__ */ jsx242(Link13, { href: `/subscriptions/${record.subscriptionId}`, children: value }),
53207
+ renderData: (value, record) => /* @__PURE__ */ jsx241(Link13, { href: `/subscriptions/${record.subscriptionId}`, children: value }),
53303
53208
  renderTooltip: (value) => value
53304
53209
  },
53305
53210
  status: {
53306
53211
  columnType: "data" /* DATA */,
53307
53212
  label: t("status"),
53308
53213
  width: "120px",
53309
- renderData: (value) => /* @__PURE__ */ jsx242(WfoSubscriptionStatusBadge, { status: value })
53214
+ renderData: (value) => /* @__PURE__ */ jsx241(WfoSubscriptionStatusBadge, { status: value })
53310
53215
  },
53311
53216
  insync: {
53312
53217
  columnType: "data" /* DATA */,
53313
53218
  label: t("insync"),
53314
53219
  width: "80px",
53315
- renderData: (value) => /* @__PURE__ */ jsx242(WfoInsyncIcon, { inSync: value })
53220
+ renderData: (value) => /* @__PURE__ */ jsx241(WfoInsyncIcon, { inSync: value })
53316
53221
  },
53317
53222
  productName: {
53318
53223
  columnType: "data" /* DATA */,
@@ -53336,7 +53241,7 @@ var WfoSubscriptionsList = ({
53336
53241
  columnType: "data" /* DATA */,
53337
53242
  label: t("startDate"),
53338
53243
  width: "120px",
53339
- renderData: (value) => /* @__PURE__ */ jsx242(WfoDateTime, { dateOrIsoString: value }),
53244
+ renderData: (value) => /* @__PURE__ */ jsx241(WfoDateTime, { dateOrIsoString: value }),
53340
53245
  renderDetails: parseDateToLocaleDateTimeString,
53341
53246
  clipboardText: parseDateToLocaleDateTimeString,
53342
53247
  renderTooltip: (cellValue) => cellValue?.toString()
@@ -53345,7 +53250,7 @@ var WfoSubscriptionsList = ({
53345
53250
  columnType: "data" /* DATA */,
53346
53251
  label: t("endDate"),
53347
53252
  width: "120px",
53348
- renderData: (value) => /* @__PURE__ */ jsx242(WfoDateTime, { dateOrIsoString: value }),
53253
+ renderData: (value) => /* @__PURE__ */ jsx241(WfoDateTime, { dateOrIsoString: value }),
53349
53254
  renderDetails: parseDateToLocaleDateTimeString,
53350
53255
  clipboardText: parseDateToLocaleDateTimeString,
53351
53256
  renderTooltip: (cellValue) => cellValue?.toString()
@@ -53354,13 +53259,14 @@ var WfoSubscriptionsList = ({
53354
53259
  columnType: "data" /* DATA */,
53355
53260
  label: t("note"),
53356
53261
  renderData: (cellValue, row) => {
53357
- return /* @__PURE__ */ jsx242(
53262
+ return /* @__PURE__ */ jsx241(
53358
53263
  WfoSubscriptionNoteEdit,
53359
53264
  {
53360
53265
  onlyShowOnHover: true,
53361
53266
  endpointName,
53362
53267
  queryVariables: graphqlQueryVariables,
53363
- subscription: row
53268
+ subscriptionId: row.subscriptionId,
53269
+ note: cellValue
53364
53270
  }
53365
53271
  );
53366
53272
  }
@@ -53369,9 +53275,9 @@ var WfoSubscriptionsList = ({
53369
53275
  columnType: "data" /* DATA */,
53370
53276
  label: t("metadata"),
53371
53277
  width: "100px",
53372
- renderData: (value) => /* @__PURE__ */ jsx242(WfoInlineJson, { data: value }),
53373
- renderDetails: (value) => value && /* @__PURE__ */ jsx242(WfoJsonCodeBlock, { data: value, isBasicStyle: true }),
53374
- renderTooltip: (value) => value && /* @__PURE__ */ jsx242(WfoJsonCodeBlock, { data: value, isBasicStyle: false })
53278
+ renderData: (value) => /* @__PURE__ */ jsx241(WfoInlineJson, { data: value }),
53279
+ renderDetails: (value) => value && /* @__PURE__ */ jsx241(WfoJsonCodeBlock, { data: value, isBasicStyle: true }),
53280
+ renderTooltip: (value) => value && /* @__PURE__ */ jsx241(WfoJsonCodeBlock, { data: value, isBasicStyle: false })
53375
53281
  }
53376
53282
  };
53377
53283
  const [getSubscriptionListTrigger, { isFetching: isFetchingCsv }] = useLazyGetSubscriptionListQuery();
@@ -53417,7 +53323,7 @@ var WfoSubscriptionsList = ({
53417
53323
  sortFields,
53418
53324
  filterFields
53419
53325
  );
53420
- return /* @__PURE__ */ jsx242(
53326
+ return /* @__PURE__ */ jsx241(
53421
53327
  WfoAdvancedTable,
53422
53328
  {
53423
53329
  queryString: dataDisplayParams.queryString,
@@ -53488,7 +53394,7 @@ var getWfoSummaryCardHeaderStyles = ({ theme }) => {
53488
53394
  };
53489
53395
 
53490
53396
  // src/components/WfoSummary/WfoSummaryCardHeader/WfoSummaryCardHeader.tsx
53491
- import { jsx as jsx243, jsxs as jsxs132 } from "@emotion/react/jsx-runtime";
53397
+ import { jsx as jsx242, jsxs as jsxs132 } from "@emotion/react/jsx-runtime";
53492
53398
  var WfoSummaryCardHeader = ({
53493
53399
  text,
53494
53400
  value,
@@ -53498,8 +53404,8 @@ var WfoSummaryCardHeader = ({
53498
53404
  }) => {
53499
53405
  const { theme } = useOrchestratorTheme();
53500
53406
  const { avatarStyle, totalSectionStyle, valueStyle } = useWithOrchestratorTheme(getWfoSummaryCardHeaderStyles);
53501
- return /* @__PURE__ */ jsx243(EuiFlexItem33, { grow: 0, children: /* @__PURE__ */ jsx243(EuiPanel10, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs132(EuiFlexGroup29, { alignItems: "center", children: [
53502
- /* @__PURE__ */ jsx243(
53407
+ return /* @__PURE__ */ jsx242(EuiFlexItem33, { grow: 0, children: /* @__PURE__ */ jsx242(EuiPanel10, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs132(EuiFlexGroup29, { alignItems: "center", children: [
53408
+ /* @__PURE__ */ jsx242(
53503
53409
  EuiAvatar2,
53504
53410
  {
53505
53411
  iconSize: "l",
@@ -53513,10 +53419,10 @@ var WfoSummaryCardHeader = ({
53513
53419
  }
53514
53420
  ),
53515
53421
  /* @__PURE__ */ jsxs132("div", { css: totalSectionStyle, children: [
53516
- /* @__PURE__ */ jsx243(EuiText48, { color: "subdued", children: text }),
53422
+ /* @__PURE__ */ jsx242(EuiText48, { color: "subdued", children: text }),
53517
53423
  /* @__PURE__ */ jsxs132(EuiFlexGroup29, { gutterSize: "s", alignItems: "center", children: [
53518
- /* @__PURE__ */ jsx243(EuiText48, { css: valueStyle, children: value }),
53519
- isFetching && /* @__PURE__ */ jsx243(EuiLoadingSpinner, {})
53424
+ /* @__PURE__ */ jsx242(EuiText48, { css: valueStyle, children: value }),
53425
+ isFetching && /* @__PURE__ */ jsx242(EuiLoadingSpinner, {})
53520
53426
  ] })
53521
53427
  ] })
53522
53428
  ] }) }) });
@@ -53539,15 +53445,15 @@ import { EuiFlexGroup as EuiFlexGroup30, EuiFlexItem as EuiFlexItem34, EuiIcon a
53539
53445
 
53540
53446
  // src/components/WfoOptionalLink/WfoOptionalLink.tsx
53541
53447
  import Link14 from "next/link";
53542
- import { jsx as jsx244 } from "@emotion/react/jsx-runtime";
53448
+ import { jsx as jsx243 } from "@emotion/react/jsx-runtime";
53543
53449
  var WfoOptionalLink = ({
53544
53450
  children,
53545
53451
  href
53546
53452
  }) => {
53547
53453
  if (!href) {
53548
- return /* @__PURE__ */ jsx244("span", { children });
53454
+ return /* @__PURE__ */ jsx243("span", { children });
53549
53455
  }
53550
- return /* @__PURE__ */ jsx244(Link14, { href, children });
53456
+ return /* @__PURE__ */ jsx243(Link14, { href, children });
53551
53457
  };
53552
53458
 
53553
53459
  // src/components/WfoSummary/WfoSummaryCardList/styles.ts
@@ -53597,7 +53503,7 @@ var getWfoSummaryCardListStyles = ({ theme }) => {
53597
53503
  };
53598
53504
 
53599
53505
  // src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardListItem.tsx
53600
- import { jsx as jsx245, jsxs as jsxs133 } from "@emotion/react/jsx-runtime";
53506
+ import { jsx as jsx244, jsxs as jsxs133 } from "@emotion/react/jsx-runtime";
53601
53507
  var WfoSummaryCardListItem = ({
53602
53508
  title,
53603
53509
  value,
@@ -53610,9 +53516,9 @@ var WfoSummaryCardListItem = ({
53610
53516
  listItemSubtitleStyle,
53611
53517
  listItemHighlightIconStyle
53612
53518
  } = useWithOrchestratorTheme(getWfoSummaryCardListStyles);
53613
- return /* @__PURE__ */ jsx245(WfoOptionalLink, { href: url, children: /* @__PURE__ */ jsxs133(EuiFlexGroup30, { css: listItemContainerStyle, gutterSize: "none", children: [
53519
+ return /* @__PURE__ */ jsx244(WfoOptionalLink, { href: url, children: /* @__PURE__ */ jsxs133(EuiFlexGroup30, { css: listItemContainerStyle, gutterSize: "none", children: [
53614
53520
  /* @__PURE__ */ jsxs133(EuiFlexItem34, { children: [
53615
- /* @__PURE__ */ jsx245(
53521
+ /* @__PURE__ */ jsx244(
53616
53522
  EuiTextColor,
53617
53523
  {
53618
53524
  color: url ? theme.colors.link : theme.colors.title,
@@ -53620,22 +53526,22 @@ var WfoSummaryCardListItem = ({
53620
53526
  children: title
53621
53527
  }
53622
53528
  ),
53623
- /* @__PURE__ */ jsx245(EuiTextColor, { css: listItemSubtitleStyle, children: value })
53529
+ /* @__PURE__ */ jsx244(EuiTextColor, { css: listItemSubtitleStyle, children: value })
53624
53530
  ] }),
53625
- /* @__PURE__ */ jsx245(
53531
+ /* @__PURE__ */ jsx244(
53626
53532
  EuiFlexItem34,
53627
53533
  {
53628
53534
  className: url ? "highlight-icon" : void 0,
53629
53535
  grow: false,
53630
53536
  css: listItemHighlightIconStyle,
53631
- children: /* @__PURE__ */ jsx245(EuiIcon5, { type: "sortRight", color: "primary" })
53537
+ children: /* @__PURE__ */ jsx244(EuiIcon5, { type: "sortRight", color: "primary" })
53632
53538
  }
53633
53539
  )
53634
53540
  ] }) });
53635
53541
  };
53636
53542
 
53637
53543
  // src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardList.tsx
53638
- import { jsx as jsx246, jsxs as jsxs134 } from "@emotion/react/jsx-runtime";
53544
+ import { jsx as jsx245, jsxs as jsxs134 } from "@emotion/react/jsx-runtime";
53639
53545
  var WfoSummaryCardList = ({
53640
53546
  title,
53641
53547
  items,
@@ -53645,7 +53551,7 @@ var WfoSummaryCardList = ({
53645
53551
  const router = useRouter17();
53646
53552
  const euiScrollBarStyle = useEuiScrollBar3();
53647
53553
  const { listContainerStyle, listHeaderStyle, listStyle } = useWithOrchestratorTheme(getWfoSummaryCardListStyles);
53648
- return /* @__PURE__ */ jsx246(EuiFlexItem35, { children: /* @__PURE__ */ jsxs134(
53554
+ return /* @__PURE__ */ jsx245(EuiFlexItem35, { children: /* @__PURE__ */ jsxs134(
53649
53555
  EuiPanel11,
53650
53556
  {
53651
53557
  css: listContainerStyle,
@@ -53654,10 +53560,10 @@ var WfoSummaryCardList = ({
53654
53560
  paddingSize: "l",
53655
53561
  children: [
53656
53562
  /* @__PURE__ */ jsxs134("div", { children: [
53657
- /* @__PURE__ */ jsx246("p", { css: listHeaderStyle, children: title }),
53658
- /* @__PURE__ */ jsx246(EuiSpacer27, { size: "m" }),
53659
- /* @__PURE__ */ jsx246(EuiSkeletonText, { isLoading, lines: 10, children: /* @__PURE__ */ jsx246("div", { css: [listStyle, euiScrollBarStyle], children: items?.map((item, index) => /* @__PURE__ */ jsxs134("div", { children: [
53660
- /* @__PURE__ */ jsx246(
53563
+ /* @__PURE__ */ jsx245("p", { css: listHeaderStyle, children: title }),
53564
+ /* @__PURE__ */ jsx245(EuiSpacer27, { size: "m" }),
53565
+ /* @__PURE__ */ jsx245(EuiSkeletonText, { isLoading, lines: 10, children: /* @__PURE__ */ jsx245("div", { css: [listStyle, euiScrollBarStyle], children: items?.map((item, index) => /* @__PURE__ */ jsxs134("div", { children: [
53566
+ /* @__PURE__ */ jsx245(
53661
53567
  WfoSummaryCardListItem,
53662
53568
  {
53663
53569
  title: item.title,
@@ -53665,11 +53571,11 @@ var WfoSummaryCardList = ({
53665
53571
  url: item.url
53666
53572
  }
53667
53573
  ),
53668
- index === items.length - 1 ? null : /* @__PURE__ */ jsx246(EuiHorizontalRule10, { margin: "none" })
53574
+ index === items.length - 1 ? null : /* @__PURE__ */ jsx245(EuiHorizontalRule10, { margin: "none" })
53669
53575
  ] }, index)) }) })
53670
53576
  ] }),
53671
- /* @__PURE__ */ jsx246(EuiSpacer27, { size: "m" }),
53672
- button && /* @__PURE__ */ jsx246(
53577
+ /* @__PURE__ */ jsx245(EuiSpacer27, { size: "m" }),
53578
+ button && /* @__PURE__ */ jsx245(
53673
53579
  EuiButton18,
53674
53580
  {
53675
53581
  fullWidth: true,
@@ -53684,10 +53590,10 @@ var WfoSummaryCardList = ({
53684
53590
 
53685
53591
  // src/components/WfoSummary/WfoSummaryCards.tsx
53686
53592
  import { EuiFlexGrid as EuiFlexGrid2, useCurrentEuiBreakpoint } from "@elastic/eui";
53687
- import { jsx as jsx247 } from "@emotion/react/jsx-runtime";
53593
+ import { jsx as jsx246 } from "@emotion/react/jsx-runtime";
53688
53594
  var WfoSummaryCards = ({ children }) => {
53689
53595
  const currentBreakpoint = useCurrentEuiBreakpoint();
53690
- return /* @__PURE__ */ jsx247(
53596
+ return /* @__PURE__ */ jsx246(
53691
53597
  EuiFlexGrid2,
53692
53598
  {
53693
53599
  responsive: false,
@@ -53714,7 +53620,7 @@ var getWfoSummaryCardsStyles = ({ theme }) => {
53714
53620
  };
53715
53621
 
53716
53622
  // src/components/WfoSummary/WfoSummaryCard.tsx
53717
- import { jsx as jsx248, jsxs as jsxs135 } from "@emotion/react/jsx-runtime";
53623
+ import { jsx as jsx247, jsxs as jsxs135 } from "@emotion/react/jsx-runtime";
53718
53624
  var SummaryCardStatus = /* @__PURE__ */ ((SummaryCardStatus2) => {
53719
53625
  SummaryCardStatus2["Success"] = "Success";
53720
53626
  SummaryCardStatus2["Error"] = "Error";
@@ -53740,7 +53646,7 @@ var WfoSummaryCard = ({
53740
53646
  switch (status) {
53741
53647
  case "Success" /* Success */:
53742
53648
  return {
53743
- iconType: () => /* @__PURE__ */ jsx248(
53649
+ iconType: () => /* @__PURE__ */ jsx247(
53744
53650
  WfoCheckmarkCircleFill,
53745
53651
  {
53746
53652
  width: 32,
@@ -53752,7 +53658,7 @@ var WfoSummaryCard = ({
53752
53658
  };
53753
53659
  case "Error" /* Error */:
53754
53660
  return {
53755
- iconType: () => /* @__PURE__ */ jsx248(
53661
+ iconType: () => /* @__PURE__ */ jsx247(
53756
53662
  WfoXCircleFill,
53757
53663
  {
53758
53664
  width: 32,
@@ -53764,7 +53670,7 @@ var WfoSummaryCard = ({
53764
53670
  };
53765
53671
  case "Neutral" /* Neutral */:
53766
53672
  return {
53767
- iconType: () => /* @__PURE__ */ jsx248(
53673
+ iconType: () => /* @__PURE__ */ jsx247(
53768
53674
  WfoCubeFill,
53769
53675
  {
53770
53676
  width: 32,
@@ -53776,7 +53682,7 @@ var WfoSummaryCard = ({
53776
53682
  };
53777
53683
  default:
53778
53684
  return headerBadge ?? {
53779
- iconType: () => /* @__PURE__ */ jsx248(
53685
+ iconType: () => /* @__PURE__ */ jsx247(
53780
53686
  WfoCubeFill,
53781
53687
  {
53782
53688
  width: 32,
@@ -53789,7 +53695,7 @@ var WfoSummaryCard = ({
53789
53695
  }
53790
53696
  };
53791
53697
  return /* @__PURE__ */ jsxs135(EuiFlexItem36, { css: cardContainerStyle, children: [
53792
- /* @__PURE__ */ jsx248(
53698
+ /* @__PURE__ */ jsx247(
53793
53699
  WfoSummaryCardHeader,
53794
53700
  {
53795
53701
  text: headerTitle,
@@ -53798,8 +53704,8 @@ var WfoSummaryCard = ({
53798
53704
  ...getIconTypeAndColorForHeaderStatus(headerStatus)
53799
53705
  }
53800
53706
  ),
53801
- /* @__PURE__ */ jsx248(EuiSpacer28, { size: "m" }),
53802
- /* @__PURE__ */ jsx248(
53707
+ /* @__PURE__ */ jsx247(EuiSpacer28, { size: "m" }),
53708
+ /* @__PURE__ */ jsx247(
53803
53709
  WfoSummaryCardList,
53804
53710
  {
53805
53711
  title: listTitle,
@@ -53909,7 +53815,7 @@ var productsSummaryQueryVariables = {
53909
53815
  };
53910
53816
 
53911
53817
  // src/components/WfoSummary/WfoActiveWorkflowsSummaryCard.tsx
53912
- import { jsx as jsx249 } from "@emotion/react/jsx-runtime";
53818
+ import { jsx as jsx248 } from "@emotion/react/jsx-runtime";
53913
53819
  var WfoActiveWorkflowsSummaryCard = () => {
53914
53820
  const t = useTranslations83("startPage.activeWorkflows");
53915
53821
  const {
@@ -53917,7 +53823,7 @@ var WfoActiveWorkflowsSummaryCard = () => {
53917
53823
  isFetching,
53918
53824
  isLoading
53919
53825
  } = useGetProcessListSummaryQuery(activeWorkflowsListSummaryQueryVariables);
53920
- return /* @__PURE__ */ jsx249(
53826
+ return /* @__PURE__ */ jsx248(
53921
53827
  WfoSummaryCard,
53922
53828
  {
53923
53829
  headerTitle: t("headerTitle"),
@@ -53937,7 +53843,7 @@ var WfoActiveWorkflowsSummaryCard = () => {
53937
53843
 
53938
53844
  // src/components/WfoSummary/WfoFailedTasksSummaryCard.tsx
53939
53845
  import { useTranslations as useTranslations84 } from "next-intl";
53940
- import { jsx as jsx250 } from "@emotion/react/jsx-runtime";
53846
+ import { jsx as jsx249 } from "@emotion/react/jsx-runtime";
53941
53847
  var WfoFailedTasksSummaryCard = () => {
53942
53848
  const t = useTranslations84("startPage.failedTasks");
53943
53849
  const {
@@ -53945,7 +53851,7 @@ var WfoFailedTasksSummaryCard = () => {
53945
53851
  isFetching,
53946
53852
  isLoading
53947
53853
  } = useGetProcessListSummaryQuery(taskListSummaryQueryVariables);
53948
- return /* @__PURE__ */ jsx250(
53854
+ return /* @__PURE__ */ jsx249(
53949
53855
  WfoSummaryCard,
53950
53856
  {
53951
53857
  headerTitle: t("headerTitle"),
@@ -53965,7 +53871,7 @@ var WfoFailedTasksSummaryCard = () => {
53965
53871
 
53966
53872
  // src/components/WfoSummary/WfoLatestActiveSubscriptionsSummaryCard.tsx
53967
53873
  import { useTranslations as useTranslations85 } from "next-intl";
53968
- import { jsx as jsx251 } from "@emotion/react/jsx-runtime";
53874
+ import { jsx as jsx250 } from "@emotion/react/jsx-runtime";
53969
53875
  var WfoLatestActiveSubscriptionsSummaryCard = () => {
53970
53876
  const t = useTranslations85("startPage.activeSubscriptions");
53971
53877
  const {
@@ -53975,7 +53881,7 @@ var WfoLatestActiveSubscriptionsSummaryCard = () => {
53975
53881
  } = useGetSubscriptionSummaryListQuery(
53976
53882
  subscriptionsListSummaryQueryVariables
53977
53883
  );
53978
- return /* @__PURE__ */ jsx251(
53884
+ return /* @__PURE__ */ jsx250(
53979
53885
  WfoSummaryCard,
53980
53886
  {
53981
53887
  headerTitle: t("headerTitle"),
@@ -53995,7 +53901,7 @@ var WfoLatestActiveSubscriptionsSummaryCard = () => {
53995
53901
 
53996
53902
  // src/components/WfoSummary/WfoLatestOutOfSyncSubscriptionSummaryCard.tsx
53997
53903
  import { useTranslations as useTranslations86 } from "next-intl";
53998
- import { jsx as jsx252 } from "@emotion/react/jsx-runtime";
53904
+ import { jsx as jsx251 } from "@emotion/react/jsx-runtime";
53999
53905
  var WfoLatestOutOfSyncSubscriptionSummaryCard = () => {
54000
53906
  const t = useTranslations86("startPage.outOfSyncSubscriptions");
54001
53907
  const {
@@ -54010,7 +53916,7 @@ var WfoLatestOutOfSyncSubscriptionSummaryCard = () => {
54010
53916
  ["sortBy" /* SORT_BY */]: "field-startDate_order-ASC",
54011
53917
  ["queryString" /* QUERY_STRING */]: "status:(provisioning|active) insync:false"
54012
53918
  };
54013
- return /* @__PURE__ */ jsx252(
53919
+ return /* @__PURE__ */ jsx251(
54014
53920
  WfoSummaryCard,
54015
53921
  {
54016
53922
  headerTitle: t("headerTitle"),
@@ -54033,7 +53939,7 @@ var WfoLatestOutOfSyncSubscriptionSummaryCard = () => {
54033
53939
 
54034
53940
  // src/components/WfoSummary/WfoMyWorkflowsSummaryCard.tsx
54035
53941
  import { useTranslations as useTranslations87 } from "next-intl";
54036
- import { jsx as jsx253 } from "@emotion/react/jsx-runtime";
53942
+ import { jsx as jsx252 } from "@emotion/react/jsx-runtime";
54037
53943
  var WfoMyWorkflowsSummaryCard = ({
54038
53944
  username
54039
53945
  }) => {
@@ -54050,7 +53956,7 @@ var WfoMyWorkflowsSummaryCard = ({
54050
53956
  ["sortBy" /* SORT_BY */]: "field-lastModifiedAt_order-DESC",
54051
53957
  ["queryString" /* QUERY_STRING */]: `createdBy:"${username}"`
54052
53958
  };
54053
- return /* @__PURE__ */ jsx253(
53959
+ return /* @__PURE__ */ jsx252(
54054
53960
  WfoSummaryCard,
54055
53961
  {
54056
53962
  headerTitle: t("headerTitle"),
@@ -54073,7 +53979,7 @@ var WfoMyWorkflowsSummaryCard = ({
54073
53979
 
54074
53980
  // src/components/WfoSummary/WfoProductsSummaryCard.tsx
54075
53981
  import { useTranslations as useTranslations88 } from "next-intl";
54076
- import { jsx as jsx254, jsxs as jsxs136 } from "@emotion/react/jsx-runtime";
53982
+ import { jsx as jsx253, jsxs as jsxs136 } from "@emotion/react/jsx-runtime";
54077
53983
  var WfoProductsSummaryCard = () => {
54078
53984
  const t = useTranslations88("startPage.products");
54079
53985
  const {
@@ -54093,13 +53999,13 @@ var WfoProductsSummaryCard = () => {
54093
53999
  justifyContent: "space-between"
54094
54000
  },
54095
54001
  children: [
54096
- /* @__PURE__ */ jsx254("div", { children: product.name }),
54097
- /* @__PURE__ */ jsx254("div", { children: product.subscriptions.pageInfo.totalItems || 0 })
54002
+ /* @__PURE__ */ jsx253("div", { children: product.name }),
54003
+ /* @__PURE__ */ jsx253("div", { children: product.subscriptions.pageInfo.totalItems || 0 })
54098
54004
  ]
54099
54005
  }
54100
54006
  )
54101
54007
  })) ?? [];
54102
- return /* @__PURE__ */ jsx254(
54008
+ return /* @__PURE__ */ jsx253(
54103
54009
  WfoSummaryCard,
54104
54010
  {
54105
54011
  headerTitle: t("headerTitle"),
@@ -54115,7 +54021,7 @@ var WfoProductsSummaryCard = () => {
54115
54021
 
54116
54022
  // src/components/WfoTitleWithWebsocketBadge/WfoTitleWithWebsocketBadge.tsx
54117
54023
  import { EuiPageHeader as EuiPageHeader3 } from "@elastic/eui";
54118
- import { Fragment as Fragment61, jsx as jsx255, jsxs as jsxs137 } from "@emotion/react/jsx-runtime";
54024
+ import { Fragment as Fragment61, jsx as jsx254, jsxs as jsxs137 } from "@emotion/react/jsx-runtime";
54119
54025
  var WfoTitleWithWebsocketBadge = ({
54120
54026
  title
54121
54027
  }) => {
@@ -54123,9 +54029,9 @@ var WfoTitleWithWebsocketBadge = ({
54123
54029
  const pageTitle = useWebSockets ? /* @__PURE__ */ jsxs137(Fragment61, { children: [
54124
54030
  title,
54125
54031
  " ",
54126
- /* @__PURE__ */ jsx255(WfoWebsocketStatusBadge, {})
54032
+ /* @__PURE__ */ jsx254(WfoWebsocketStatusBadge, {})
54127
54033
  ] }) : title;
54128
- return /* @__PURE__ */ jsx255(EuiPageHeader3, { pageTitle });
54034
+ return /* @__PURE__ */ jsx254(EuiPageHeader3, { pageTitle });
54129
54035
  };
54130
54036
 
54131
54037
  // src/components/WfoRadioDropdown/WfoRadioDropdown.tsx
@@ -54136,7 +54042,7 @@ import {
54136
54042
  EuiPopover as EuiPopover9,
54137
54043
  EuiRadioGroup
54138
54044
  } from "@elastic/eui";
54139
- import { jsx as jsx256 } from "@emotion/react/jsx-runtime";
54045
+ import { jsx as jsx255 } from "@emotion/react/jsx-runtime";
54140
54046
  var WfoRadioDropdown = ({
54141
54047
  options,
54142
54048
  onUpdateOption,
@@ -54162,16 +54068,16 @@ var WfoRadioDropdown = ({
54162
54068
  id: option.id,
54163
54069
  label: option.label
54164
54070
  }));
54165
- return /* @__PURE__ */ jsx256(
54071
+ return /* @__PURE__ */ jsx255(
54166
54072
  EuiFlexGroup31,
54167
54073
  {
54168
54074
  gutterSize: "s",
54169
54075
  alignItems: "center",
54170
54076
  justifyContent: "flexEnd",
54171
- children: /* @__PURE__ */ jsx256(
54077
+ children: /* @__PURE__ */ jsx255(
54172
54078
  EuiPopover9,
54173
54079
  {
54174
- button: /* @__PURE__ */ jsx256(
54080
+ button: /* @__PURE__ */ jsx255(
54175
54081
  EuiButtonEmpty5,
54176
54082
  {
54177
54083
  size: "s",
@@ -54192,7 +54098,7 @@ var WfoRadioDropdown = ({
54192
54098
  isOpen,
54193
54099
  closePopover: handleClose,
54194
54100
  anchorPosition: "downLeft",
54195
- children: /* @__PURE__ */ jsx256(
54101
+ children: /* @__PURE__ */ jsx255(
54196
54102
  EuiRadioGroup,
54197
54103
  {
54198
54104
  options: radioGroupOptions,
@@ -54206,6 +54112,102 @@ var WfoRadioDropdown = ({
54206
54112
  );
54207
54113
  };
54208
54114
 
54115
+ // src/rtk/endpoints/subscriptionListMutation.ts
54116
+ var subscriptionListMutationApi = orchestratorApi.injectEndpoints({
54117
+ endpoints: (builder) => ({
54118
+ emptyQuery: builder.query({ query: () => ({}) }),
54119
+ emptyDetailQuery: builder.query({ query: () => ({}) }),
54120
+ updateSubscriptionNoteOptimistic: builder.mutation({
54121
+ queryFn: async () => ({ data: { mockResponse: true } }),
54122
+ async onQueryStarted({ queryName, subscriptionId, graphQlQueryVariables, ...patch }, { dispatch, queryFulfilled }) {
54123
+ const patchResult = dispatch(
54124
+ subscriptionListMutationApi.util.updateQueryData(
54125
+ // @ts-expect-error - Suggest ts ignore because of the type mismatch between emptyQuery and queryName
54126
+ queryName,
54127
+ graphQlQueryVariables,
54128
+ (draft) => {
54129
+ const subscription = draft.subscriptions.find(
54130
+ (item) => item.subscriptionId === subscriptionId
54131
+ );
54132
+ if (subscription) {
54133
+ subscription.note = patch.note;
54134
+ }
54135
+ }
54136
+ )
54137
+ );
54138
+ try {
54139
+ await queryFulfilled;
54140
+ } catch {
54141
+ patchResult.undo();
54142
+ }
54143
+ }
54144
+ }),
54145
+ updateSubscriptionDetailNoteOptimistic: builder.mutation({
54146
+ queryFn: async () => ({ data: { mockResponse: true } }),
54147
+ async onQueryStarted({ queryName, subscriptionId, ...patch }, { dispatch, queryFulfilled }) {
54148
+ const patchResult = dispatch(
54149
+ subscriptionListMutationApi.util.updateQueryData(
54150
+ // @ts-expect-error - Suggest ts ignore because of the type mismatch between emptyDetailQuery and queryName
54151
+ queryName,
54152
+ { subscriptionId },
54153
+ (draft) => {
54154
+ if (draft) {
54155
+ draft.subscription.note = patch.note;
54156
+ }
54157
+ }
54158
+ )
54159
+ );
54160
+ try {
54161
+ await queryFulfilled;
54162
+ } catch {
54163
+ patchResult.undo();
54164
+ }
54165
+ }
54166
+ })
54167
+ })
54168
+ });
54169
+ var {
54170
+ useUpdateSubscriptionNoteOptimisticMutation,
54171
+ useUpdateSubscriptionDetailNoteOptimisticMutation
54172
+ } = subscriptionListMutationApi;
54173
+
54174
+ // src/components/WfoInlineNoteEdit/WfoSubscriptionNoteEdit.tsx
54175
+ import { jsx as jsx256 } from "@emotion/react/jsx-runtime";
54176
+ var WfoSubscriptionNoteEdit = ({
54177
+ onlyShowOnHover = false,
54178
+ queryVariables,
54179
+ endpointName,
54180
+ subscriptionId,
54181
+ note
54182
+ }) => {
54183
+ const [startProcess] = useStartProcessMutation();
54184
+ const [updateSub] = useUpdateSubscriptionNoteOptimisticMutation();
54185
+ const triggerNoteModifyWorkflow = (note2) => {
54186
+ const noteModifyPayload = [
54187
+ { subscription_id: subscriptionId },
54188
+ { note: note2 === INVISIBLE_CHARACTER ? "" : note2 }
54189
+ ];
54190
+ startProcess({
54191
+ workflowName: "modify_note",
54192
+ userInputs: noteModifyPayload
54193
+ });
54194
+ updateSub({
54195
+ queryName: endpointName ?? "",
54196
+ subscriptionId,
54197
+ graphQlQueryVariables: queryVariables,
54198
+ note: note2
54199
+ });
54200
+ };
54201
+ return /* @__PURE__ */ jsx256(
54202
+ WfoInlineEdit,
54203
+ {
54204
+ value: note?.trim() ? note : INVISIBLE_CHARACTER,
54205
+ onlyShowOnHover,
54206
+ onSave: triggerNoteModifyWorkflow
54207
+ }
54208
+ );
54209
+ };
54210
+
54209
54211
  // src/components/WfoInlineNoteEdit/WfoSubscriptionDetailNoteEdit.tsx
54210
54212
  import { jsx as jsx257 } from "@emotion/react/jsx-runtime";
54211
54213
  var WfoSubscriptionDetailNoteEdit = ({ subscriptionId, onlyShowOnHover = false }) => {
@@ -55275,6 +55277,7 @@ export {
55275
55277
  ImsNodeIdField,
55276
55278
  ImsPortIdField,
55277
55279
  IpNetworkField,
55280
+ KEY_CELL_CLASS_NAME,
55278
55281
  LabelField,
55279
55282
  ListAddField,
55280
55283
  ListDelField,
@@ -55364,6 +55367,7 @@ export {
55364
55367
  TreeProvider,
55365
55368
  UnconnectedSelectField,
55366
55369
  UserInputFormWizard,
55370
+ VALUE_CELL_CLASS_NAME,
55367
55371
  VlanField,
55368
55372
  WFO_STATUS_COLOR_FIELD,
55369
55373
  WfoActiveWorkflowsSummaryCard,