@orchestrator-ui/orchestrator-ui-components 0.11.1 → 0.13.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
@@ -34572,9 +34572,9 @@ var getAxiosInstance = (apiPath, accessToken) => {
34572
34572
  };
34573
34573
 
34574
34574
  // src/api/index.ts
34575
- var CIM_FORMS_ENDPOINT = "surf/cim/forms/";
34576
34575
  var PROCESS_ENDPOINT = "processes/";
34577
34576
  var PRODUCTS_ENDPOINT = "products/";
34577
+ var FORMS_ENDPOINT = "surf/forms/";
34578
34578
  var BaseApiClient = class {
34579
34579
  constructor(apiPath, accessToken) {
34580
34580
  this.axiosFetch = (path, options = {}, headers = {}, showErrorDialog = true, result = true) => {
@@ -34614,11 +34614,18 @@ var BaseApiClient = class {
34614
34614
  this._axiosInstance = getAxiosInstance(apiPath, accessToken);
34615
34615
  }
34616
34616
  };
34617
- var ApiClientInterface = class extends BaseApiClient {
34618
- };
34619
- var ApiClient = class extends ApiClientInterface {
34617
+ var ApiClient = class extends BaseApiClient {
34620
34618
  constructor() {
34621
34619
  super(...arguments);
34620
+ this.startForm = (formKey, userInputs) => {
34621
+ return this.postPutJson(
34622
+ `${FORMS_ENDPOINT}${formKey}`,
34623
+ userInputs,
34624
+ "post",
34625
+ false,
34626
+ true
34627
+ );
34628
+ };
34622
34629
  this.startProcess = (workflowName, processInput) => {
34623
34630
  return this.postPutJson(
34624
34631
  `${PROCESS_ENDPOINT}${workflowName}`,
@@ -34643,15 +34650,6 @@ var ApiClient = class extends ApiClientInterface {
34643
34650
  this.productById = (productId) => {
34644
34651
  return this.fetchJson(`${PRODUCTS_ENDPOINT}${productId}`);
34645
34652
  };
34646
- this.cimStartForm = (formKey, userInputs) => {
34647
- return this.postPutJson(
34648
- `${CIM_FORMS_ENDPOINT}${formKey}`,
34649
- userInputs,
34650
- "post",
34651
- false,
34652
- true
34653
- );
34654
- };
34655
34653
  this.prefix_filters = () => {
34656
34654
  return this.fetchJson("surf/ipam/prefix_filters");
34657
34655
  };
@@ -40514,11 +40512,11 @@ var processApi = orchestratorApi.injectEndpoints({
40514
40512
  getProcessList: build.query({
40515
40513
  query: (variables) => ({ document: processListQuery, variables }),
40516
40514
  transformResponse: (response) => {
40517
- var _a, _b;
40518
- const processes = ((_a = response == null ? void 0 : response.processes) == null ? void 0 : _a.page) || [];
40515
+ var _a;
40516
+ const processes = response.processes.page || [];
40519
40517
  return {
40520
40518
  processes,
40521
- pageInfo: ((_b = response.processes) == null ? void 0 : _b.pageInfo) || {}
40519
+ pageInfo: ((_a = response.processes) == null ? void 0 : _a.pageInfo) || {}
40522
40520
  };
40523
40521
  }
40524
40522
  })
@@ -41313,7 +41311,7 @@ import { useContext as useContext6 } from "react";
41313
41311
  // src/hooks/useQueryWithFetch.ts
41314
41312
  import { useQuery as useQuery2 } from "react-query";
41315
41313
  import { signOut as signOut2 } from "next-auth/react";
41316
- var useQueryWithFetch = (url, queryVars, queryKey) => {
41314
+ var useQueryWithFetch = (url, queryVars, queryKey, options) => {
41317
41315
  const { session } = useWfoSession();
41318
41316
  const requestHeaders = {
41319
41317
  authorization: session ? `Bearer ${session.accessToken}` : ""
@@ -41331,7 +41329,11 @@ var useQueryWithFetch = (url, queryVars, queryKey) => {
41331
41329
  }
41332
41330
  return yield response.json();
41333
41331
  });
41334
- return useQuery2([queryKey, ...Object.values(queryVars)], fetchData);
41332
+ return useQuery2(
41333
+ [queryKey, ...Object.values(queryVars)],
41334
+ fetchData,
41335
+ options
41336
+ );
41335
41337
  };
41336
41338
 
41337
41339
  // src/hooks/useProcessStatusCountsQuery.ts
@@ -43290,6 +43292,13 @@ var camelToHuman = (value) => {
43290
43292
  const result = value.replace(/([A-Z])/g, " $1").trimStart();
43291
43293
  return result.charAt(0).toUpperCase() + result.slice(1);
43292
43294
  };
43295
+ var snakeToHuman = (value) => {
43296
+ const result = value.replace(/_/g, " ");
43297
+ return result.charAt(0) + result.slice(1);
43298
+ };
43299
+ var snakeToKebab = (value) => {
43300
+ return value.replace(/_/g, "-");
43301
+ };
43293
43302
 
43294
43303
  // src/utils/getProductNamesFromProcess.ts
43295
43304
  var getProductNamesFromProcess = (process2) => {
@@ -43308,6 +43317,11 @@ var getQueryVariablesForExport = (queryVariables) => __spreadProps(__spreadValue
43308
43317
  after: 0
43309
43318
  });
43310
43319
 
43320
+ // src/utils/onlyUnique.ts
43321
+ var onlyUnique = (value, index, array) => {
43322
+ return array.indexOf(value) === index;
43323
+ };
43324
+
43311
43325
  // src/components/WfoPageTemplate/WfoBreadcrumbs/WfoBreadcrumbs.tsx
43312
43326
  import { Fragment as Fragment2, jsx as jsx49, jsxs as jsxs34 } from "@emotion/react/jsx-runtime";
43313
43327
  var WfoBreadcrumbs = () => {
@@ -48105,48 +48119,9 @@ var GET_SUBSCRIPTION_DETAIL_GRAPHQL_QUERY = parse(gql6`
48105
48119
  }
48106
48120
  `);
48107
48121
 
48108
- // src/graphqlQueries/processDetailQuery.ts
48109
- import { gql as gql7 } from "graphql-request";
48110
- var GET_PROCESS_DETAIL_GRAPHQL_QUERY = parse(gql7`
48111
- query ProcessDetail($processId: String!) {
48112
- processes(filterBy: { value: $processId, field: "processId" }) {
48113
- page {
48114
- processId
48115
- lastStatus
48116
- createdBy
48117
- startedAt
48118
- lastModifiedAt
48119
- lastStep
48120
- workflowName
48121
- isTask
48122
- form
48123
- steps {
48124
- name
48125
- status
48126
- stepId
48127
- executed
48128
- stateDelta
48129
- }
48130
- customer {
48131
- fullname
48132
- }
48133
- subscriptions {
48134
- page {
48135
- product {
48136
- name
48137
- }
48138
- description
48139
- subscriptionId
48140
- }
48141
- }
48142
- }
48143
- }
48144
- }
48145
- `);
48146
-
48147
48122
  // src/graphqlQueries/subscriptionsDropdownOptionsQuery.ts
48148
- import { gql as gql8 } from "graphql-request";
48149
- var GET_SUBSCRIPTION_DROPDOWN_OPTIONS_GRAPHQL_QUERY = parse(gql8`
48123
+ import { gql as gql7 } from "graphql-request";
48124
+ var GET_SUBSCRIPTION_DROPDOWN_OPTIONS_GRAPHQL_QUERY = parse(gql7`
48150
48125
  query SubscriptionDropdownOptions($filterBy: [GraphqlFilter!]) {
48151
48126
  subscriptions(filterBy: $filterBy, first: 1000000, after: 0) {
48152
48127
  page {
@@ -48178,8 +48153,8 @@ function getSubscriptionDropdownOptionsGraphQlQuery() {
48178
48153
  }
48179
48154
 
48180
48155
  // src/graphqlQueries/processStepsQuery.ts
48181
- import { gql as gql9 } from "graphql-request";
48182
- var GET_PROCESS_STEPS_GRAPHQL_QUERY = parse(gql9`
48156
+ import { gql as gql8 } from "graphql-request";
48157
+ var GET_PROCESS_STEPS_GRAPHQL_QUERY = parse(gql8`
48183
48158
  query ProcessSteps($processName: String!) {
48184
48159
  workflows(filterBy: { field: "name", value: $processName }) {
48185
48160
  page {
@@ -48193,8 +48168,8 @@ var GET_PROCESS_STEPS_GRAPHQL_QUERY = parse(gql9`
48193
48168
  `);
48194
48169
 
48195
48170
  // src/graphqlQueries/processListQuery.ts
48196
- import { gql as gql10 } from "graphql-request";
48197
- var GET_PROCESS_LIST_SUMMARY_GRAPHQL_QUERY = parse(gql10`
48171
+ import { gql as gql9 } from "graphql-request";
48172
+ var GET_PROCESS_LIST_SUMMARY_GRAPHQL_QUERY = parse(gql9`
48198
48173
  query ProcessListSummary(
48199
48174
  $first: Int!
48200
48175
  $after: Int!
@@ -48222,7 +48197,7 @@ var GET_PROCESS_LIST_SUMMARY_GRAPHQL_QUERY = parse(gql10`
48222
48197
  }
48223
48198
  }
48224
48199
  `);
48225
- var GET_PROCESS_LIST_GRAPHQL_QUERY = parse(gql10`
48200
+ var GET_PROCESS_LIST_GRAPHQL_QUERY = parse(gql9`
48226
48201
  query ProcessList(
48227
48202
  $first: Int!
48228
48203
  $after: Int!
@@ -48324,8 +48299,8 @@ import Link2 from "next/link";
48324
48299
  import { EuiFlexGroup as EuiFlexGroup10, EuiFlexItem as EuiFlexItem9, EuiSpacer as EuiSpacer13, EuiSwitch as EuiSwitch2 } from "@elastic/eui";
48325
48300
 
48326
48301
  // src/graphqlQueries/relatedSubscriptionsQuery.ts
48327
- import { gql as gql11 } from "graphql-request";
48328
- var GET_RELATED_SUBSCRIPTIONS_GRAPHQL_QUERY = parse(gql11`
48302
+ import { gql as gql10 } from "graphql-request";
48303
+ var GET_RELATED_SUBSCRIPTIONS_GRAPHQL_QUERY = parse(gql10`
48329
48304
  query RelatedSubscriptions(
48330
48305
  $subscriptionId: String!
48331
48306
  $first: Int!
@@ -49858,13 +49833,35 @@ var WfoToastsList = () => {
49858
49833
  );
49859
49834
  };
49860
49835
 
49861
- // src/components/WfoForms/CreateForm.tsx
49862
- import { useCallback as useCallback4, useEffect as useEffect15, useState as useState26 } from "react";
49863
-
49864
- // src/components/WfoForms/UserInputFormWizard.tsx
49865
- import { useEffect as useEffect14, useState as useState25 } from "react";
49866
- import { useRouter as useRouter7 } from "next/router";
49867
- import hash from "object-hash";
49836
+ // src/components/WfoForms/AutoFields.tsx
49837
+ import { createElement } from "react";
49838
+ import { useForm } from "uniforms";
49839
+ import { AutoField } from "uniforms-unstyled";
49840
+ function AutoFields(_a) {
49841
+ var _b = _a, {
49842
+ autoField = AutoField,
49843
+ element = "section",
49844
+ fields,
49845
+ omitFields = []
49846
+ } = _b, props = __objRest(_b, [
49847
+ "autoField",
49848
+ "element",
49849
+ "fields",
49850
+ "omitFields"
49851
+ ]);
49852
+ const { schema } = useForm();
49853
+ return createElement(
49854
+ element,
49855
+ __spreadValues({}, props),
49856
+ (fields != null ? fields : schema.getSubfields()).filter((field) => !omitFields.includes(field)).map(
49857
+ (field) => createElement(autoField, {
49858
+ key: field,
49859
+ name: field,
49860
+ className: "form-input"
49861
+ })
49862
+ )
49863
+ );
49864
+ }
49868
49865
 
49869
49866
  // src/components/WfoForms/UserInputForm.tsx
49870
49867
  var import_cloneDeep2 = __toESM(require_cloneDeep(), 1);
@@ -49883,7 +49880,7 @@ import {
49883
49880
  } from "@elastic/eui";
49884
49881
 
49885
49882
  // src/components/WfoForms/AutoFieldLoader.tsx
49886
- import { AutoField as AutoField4 } from "uniforms-unstyled";
49883
+ import { AutoField as AutoField5 } from "uniforms-unstyled";
49887
49884
 
49888
49885
  // src/components/WfoForms/formFields/AcceptField.tsx
49889
49886
  import { useReducer } from "react";
@@ -50231,10 +50228,10 @@ var ErrorField = connectField4(Error2, {
50231
50228
  });
50232
50229
 
50233
50230
  // src/components/WfoForms/formFields/ErrorsField.tsx
50234
- import { filterDOMProps as filterDOMProps4, useForm } from "uniforms";
50231
+ import { filterDOMProps as filterDOMProps4, useForm as useForm2 } from "uniforms";
50235
50232
  import { jsx as jsx102, jsxs as jsxs65 } from "@emotion/react/jsx-runtime";
50236
50233
  var ErrorsField = (props) => {
50237
- const { error, schema } = useForm();
50234
+ const { error, schema } = useForm2();
50238
50235
  return !error && !props.children ? null : /* @__PURE__ */ jsxs65("div", __spreadProps(__spreadValues({}, filterDOMProps4(props)), { children: [
50239
50236
  props.children,
50240
50237
  /* @__PURE__ */ jsx102("ul", { children: schema.getErrorMessages(error).map((message, index) => /* @__PURE__ */ jsx102("li", { children: message }, index)) })
@@ -50393,10 +50390,10 @@ import { EuiFlexItem as EuiFlexItem14, EuiFormRow as EuiFormRow4, EuiText as Eui
50393
50390
 
50394
50391
  // src/components/WfoForms/formFields/ListItemField.tsx
50395
50392
  import { connectField as connectField8 } from "uniforms";
50396
- import { AutoField } from "uniforms-unstyled";
50393
+ import { AutoField as AutoField2 } from "uniforms-unstyled";
50397
50394
  import { jsx as jsx106, jsxs as jsxs68 } from "@emotion/react/jsx-runtime";
50398
50395
  function ListItem({
50399
- children = /* @__PURE__ */ jsx106(AutoField, { label: null, name: "" }),
50396
+ children = /* @__PURE__ */ jsx106(AutoField2, { label: null, name: "" }),
50400
50397
  outerList = false
50401
50398
  }) {
50402
50399
  return /* @__PURE__ */ jsxs68("li", { children: [
@@ -50583,13 +50580,13 @@ var ListField = connectField9(List);
50583
50580
 
50584
50581
  // src/components/WfoForms/formFields/ListSelectField.tsx
50585
50582
  var import_lodash3 = __toESM(require_lodash(), 1);
50586
- import { joinName as joinName5, useField as useField5, useForm as useForm3 } from "uniforms";
50583
+ import { joinName as joinName5, useField as useField5, useForm as useForm4 } from "uniforms";
50587
50584
 
50588
50585
  // src/components/WfoForms/formFields/SelectField.tsx
50589
50586
  var import_lodash2 = __toESM(require_lodash(), 1);
50590
50587
  import ReactSelect from "react-select";
50591
50588
  import { useTranslations as useTranslations26 } from "next-intl";
50592
- import { joinName as joinName4, useField as useField4, useForm as useForm2 } from "uniforms";
50589
+ import { joinName as joinName4, useField as useField4, useForm as useForm3 } from "uniforms";
50593
50590
  import { EuiFormRow as EuiFormRow5, EuiText as EuiText14 } from "@elastic/eui";
50594
50591
 
50595
50592
  // src/components/WfoForms/formFields/reactSelectStyles.ts
@@ -50670,7 +50667,7 @@ function UnconnectedSelectField(_a) {
50670
50667
  parentName = name;
50671
50668
  }
50672
50669
  const parent = useField4(parentName, {}, { absoluteName: true })[0];
50673
- const { model } = useForm2();
50670
+ const { model } = useForm3();
50674
50671
  if (parentName !== name) {
50675
50672
  if (parent.fieldType === Array && parent.uniqueItems) {
50676
50673
  const allValues = (0, import_lodash2.get)(model, parentName, []);
@@ -50772,7 +50769,7 @@ function ListSelectField(_a) {
50772
50769
  parentName = name;
50773
50770
  }
50774
50771
  const parent = useField5(parentName, {}, { absoluteName: true })[0];
50775
- const { model } = useForm3();
50772
+ const { model } = useForm4();
50776
50773
  if (parentName !== name) {
50777
50774
  if (parent.fieldType === Array && parent.uniqueItems) {
50778
50775
  const allValues = (0, import_lodash3.get)(model, parentName, []);
@@ -51047,7 +51044,7 @@ function Radio(_a) {
51047
51044
  var RadioField = connectField13(Radio, { kind: "leaf" });
51048
51045
 
51049
51046
  // src/components/WfoForms/formFields/SubmitField.tsx
51050
- import { filterDOMProps as filterDOMProps13, useForm as useForm4 } from "uniforms";
51047
+ import { filterDOMProps as filterDOMProps13, useForm as useForm5 } from "uniforms";
51051
51048
  import { jsx as jsx114 } from "@emotion/react/jsx-runtime";
51052
51049
  var SubmitField = (_a) => {
51053
51050
  var _b = _a, {
@@ -51061,7 +51058,7 @@ var SubmitField = (_a) => {
51061
51058
  "readOnly",
51062
51059
  "value"
51063
51060
  ]);
51064
- const { error, state } = useForm4();
51061
+ const { error, state } = useForm5();
51065
51062
  return /* @__PURE__ */ jsx114(
51066
51063
  "input",
51067
51064
  __spreadValues(__spreadValues({
@@ -51335,7 +51332,7 @@ import {
51335
51332
  filterDOMProps as filterDOMProps18,
51336
51333
  joinName as joinName6,
51337
51334
  useField as useField6,
51338
- useForm as useForm5
51335
+ useForm as useForm6
51339
51336
  } from "uniforms";
51340
51337
  import { EuiFieldText as EuiFieldText2, EuiFormRow as EuiFormRow12, EuiText as EuiText21 } from "@elastic/eui";
51341
51338
 
@@ -51525,7 +51522,7 @@ function ContactPersonName(_a) {
51525
51522
  ]);
51526
51523
  const axiosApiClient = useAxiosApiClient();
51527
51524
  const t = useTranslations28("pydanticForms");
51528
- const { model, onChange: formOnChange, schema } = useForm5();
51525
+ const { model, onChange: formOnChange, schema } = useForm6();
51529
51526
  const contactsPersonFieldNameArray = joinName6(null, name).slice(0, -1);
51530
51527
  const emailFieldName = joinName6(contactsPersonFieldNameArray, "email");
51531
51528
  const contactsFieldName = joinName6(
@@ -51950,7 +51947,7 @@ var LocationCodeField = connectField21(LocationCode, { kind: "leaf" });
51950
51947
  var import_get3 = __toESM(require_get(), 1);
51951
51948
  import { useEffect as useEffect13, useState as useState22 } from "react";
51952
51949
  import { useTranslations as useTranslations32 } from "next-intl";
51953
- import { connectField as connectField22, filterDOMProps as filterDOMProps22, joinName as joinName7, useForm as useForm6 } from "uniforms";
51950
+ import { connectField as connectField22, filterDOMProps as filterDOMProps22, joinName as joinName7, useForm as useForm7 } from "uniforms";
51954
51951
  import { EuiFieldText as EuiFieldText3, EuiFormRow as EuiFormRow14, EuiText as EuiText23 } from "@elastic/eui";
51955
51952
 
51956
51953
  // src/hooks/surf/useIsTaggedPort.ts
@@ -52053,7 +52050,7 @@ function Vlan(_a) {
52053
52050
  ]);
52054
52051
  const t = useTranslations32("pydanticForms");
52055
52052
  const axiosApiClient = useAxiosApiClient();
52056
- const { model, schema } = useForm6();
52053
+ const { model, schema } = useForm7();
52057
52054
  const initialValue = schema.getInitialValue(name, {});
52058
52055
  const nameArray = joinName7(null, name);
52059
52056
  const selfName = nameArray.slice(-1);
@@ -52165,7 +52162,7 @@ var VlanField = connectField22(Vlan, { kind: "leaf" });
52165
52162
 
52166
52163
  // src/components/WfoForms/formFields/NestField.tsx
52167
52164
  import { connectField as connectField23, filterDOMProps as filterDOMProps23, joinName as joinName8 } from "uniforms";
52168
- import { AutoField as AutoField2 } from "uniforms-unstyled";
52165
+ import { AutoField as AutoField3 } from "uniforms-unstyled";
52169
52166
  import {
52170
52167
  EuiDescribedFormGroup,
52171
52168
  EuiFlexGroup as EuiFlexGroup13,
@@ -52207,7 +52204,7 @@ function Nest(_a) {
52207
52204
  /* @__PURE__ */ jsx125(EuiText24, { size: "m", children: description })
52208
52205
  ] }),
52209
52206
  children || (fields == null ? void 0 : fields.map((field) => /* @__PURE__ */ jsx125(EuiFlexItem17, { children: /* @__PURE__ */ jsx125(
52210
- AutoField2,
52207
+ AutoField3,
52211
52208
  __spreadProps(__spreadValues({
52212
52209
  name: field
52213
52210
  }, itemProps), {
@@ -52225,7 +52222,7 @@ function Nest(_a) {
52225
52222
  description,
52226
52223
  className: `${className} nest-field`,
52227
52224
  children: children || (fields == null ? void 0 : fields.map((field) => /* @__PURE__ */ jsx125(
52228
- AutoField2,
52225
+ AutoField3,
52229
52226
  __spreadProps(__spreadValues({
52230
52227
  name: field
52231
52228
  }, itemProps), {
@@ -52242,7 +52239,7 @@ var NestField = connectField23(Nest);
52242
52239
  // src/components/WfoForms/formFields/OptGroupField.tsx
52243
52240
  import { useTranslations as useTranslations33 } from "next-intl";
52244
52241
  import { connectField as connectField24, filterDOMProps as filterDOMProps24, useField as useField7 } from "uniforms";
52245
- import { AutoField as AutoField3 } from "uniforms-unstyled";
52242
+ import { AutoField as AutoField4 } from "uniforms-unstyled";
52246
52243
  import { EuiDescribedFormGroup as EuiDescribedFormGroup2, EuiFlexItem as EuiFlexItem18, EuiFormRow as EuiFormRow15 } from "@elastic/eui";
52247
52244
  import { Fragment as Fragment23, jsx as jsx126, jsxs as jsxs75 } from "@emotion/react/jsx-runtime";
52248
52245
  filterDOMProps24.register("properties");
@@ -52278,7 +52275,7 @@ function OptGroup(_a) {
52278
52275
  children: /* @__PURE__ */ jsx126(BoolField, { name: "enabled", readOnly })
52279
52276
  }
52280
52277
  ) }),
52281
- enabled && (fields == null ? void 0 : fields.filter((field) => field !== "enabled").map((field) => /* @__PURE__ */ jsx126(EuiFlexItem18, { children: /* @__PURE__ */ jsx126(AutoField3, __spreadValues({ name: field }, itemProps)) }, field)))
52278
+ enabled && (fields == null ? void 0 : fields.filter((field) => field !== "enabled").map((field) => /* @__PURE__ */ jsx126(EuiFlexItem18, { children: /* @__PURE__ */ jsx126(AutoField4, __spreadValues({ name: field }, itemProps)) }, field)))
52282
52279
  ] })
52283
52280
  })
52284
52281
  );
@@ -52294,7 +52291,7 @@ import {
52294
52291
  filterDOMProps as filterDOMProps25,
52295
52292
  joinName as joinName9,
52296
52293
  useField as useField8,
52297
- useForm as useForm7
52294
+ useForm as useForm8
52298
52295
  } from "uniforms";
52299
52296
  import {
52300
52297
  EuiButtonIcon as EuiButtonIcon2,
@@ -52442,7 +52439,7 @@ function SubscriptionFieldDefinition(_a) {
52442
52439
  parentName = name;
52443
52440
  }
52444
52441
  const parent = useField8(parentName, {}, { absoluteName: true })[0];
52445
- const { model, schema } = useForm7();
52442
+ const { model, schema } = useForm8();
52446
52443
  const bandWithFromField = bandwidthKey ? (0, import_get4.default)(model, bandwidthKey) || schema.getInitialValue(bandwidthKey, {}) : void 0;
52447
52444
  const usedBandwidth = bandwidth || bandWithFromField;
52448
52445
  const usedCustomerId = customerKey ? (0, import_get4.default)(model, customerKey, "nonExistingOrgToFilterEverything") : customerId;
@@ -53537,37 +53534,7 @@ function autoFieldFunction(props, uniforms) {
53537
53534
  return DateField;
53538
53535
  }
53539
53536
  }
53540
- return AutoField4.defaultComponentDetector(props, uniforms);
53541
- }
53542
-
53543
- // src/components/WfoForms/AutoFields.tsx
53544
- import { createElement } from "react";
53545
- import { useForm as useForm8 } from "uniforms";
53546
- import { AutoField as AutoField5 } from "uniforms-unstyled";
53547
- function AutoFields(_a) {
53548
- var _b = _a, {
53549
- autoField = AutoField5,
53550
- element = "section",
53551
- fields,
53552
- omitFields = []
53553
- } = _b, props = __objRest(_b, [
53554
- "autoField",
53555
- "element",
53556
- "fields",
53557
- "omitFields"
53558
- ]);
53559
- const { schema } = useForm8();
53560
- return createElement(
53561
- element,
53562
- __spreadValues({}, props),
53563
- (fields != null ? fields : schema.getSubfields()).filter((field) => !omitFields.includes(field)).map(
53564
- (field) => createElement(autoField, {
53565
- key: field,
53566
- name: field,
53567
- className: "form-input"
53568
- })
53569
- )
53570
- );
53537
+ return AutoField5.defaultComponentDetector(props, uniforms);
53571
53538
  }
53572
53539
 
53573
53540
  // src/components/WfoForms/UserInputFormStyling.ts
@@ -54073,6 +54040,9 @@ function UserInputForm({
54073
54040
  var UserInputForm_default = UserInputForm;
54074
54041
 
54075
54042
  // src/components/WfoForms/UserInputFormWizard.tsx
54043
+ import { useEffect as useEffect14, useState as useState25 } from "react";
54044
+ import { useRouter as useRouter7 } from "next/router";
54045
+ import hash from "object-hash";
54076
54046
  import { jsx as jsx135 } from "@emotion/react/jsx-runtime";
54077
54047
  function stop2(e) {
54078
54048
  if (e !== void 0 && e !== null) {
@@ -54147,6 +54117,7 @@ function UserInputFormWizard({
54147
54117
  var UserInputFormWizard_default = UserInputFormWizard;
54148
54118
 
54149
54119
  // src/components/WfoForms/CreateForm.tsx
54120
+ import { useCallback as useCallback4, useEffect as useEffect15, useState as useState26 } from "react";
54150
54121
  import { jsx as jsx136 } from "@emotion/react/jsx-runtime";
54151
54122
  function CreateForm(props) {
54152
54123
  const { preselectedInput, formKey, handleSubmit, handleCancel } = props;
@@ -54155,7 +54126,7 @@ function CreateForm(props) {
54155
54126
  const apiClient = useAxiosApiClient();
54156
54127
  const submit = useCallback4(
54157
54128
  (userInputs) => {
54158
- return apiClient.cimStartForm(formKey, userInputs).then((form2) => {
54129
+ return apiClient.startForm(formKey, userInputs).then((form2) => {
54159
54130
  handleSubmit(form2);
54160
54131
  });
54161
54132
  },
@@ -54975,8 +54946,8 @@ import { useTranslations as useTranslations44 } from "next-intl";
54975
54946
  import { EuiBadgeGroup as EuiBadgeGroup5 } from "@elastic/eui";
54976
54947
 
54977
54948
  // src/graphqlQueries/workflows/workflowsQuery.ts
54978
- import { gql as gql12 } from "graphql-request";
54979
- var GET_WORKFLOWS_GRAPHQL_QUERY = parse(gql12`
54949
+ import { gql as gql11 } from "graphql-request";
54950
+ var GET_WORKFLOWS_GRAPHQL_QUERY = parse(gql11`
54980
54951
  query MetadataWorkflows(
54981
54952
  $first: Int!
54982
54953
  $after: Int!
@@ -55088,7 +55059,7 @@ var WfoWorkflowsPage = () => {
55088
55059
  productTags: {
55089
55060
  field: "productTags",
55090
55061
  name: t("productTags"),
55091
- render: (productTags) => /* @__PURE__ */ jsx148(Fragment32, { children: productTags == null ? void 0 : productTags.map((productTag, index) => /* @__PURE__ */ jsx148(
55062
+ render: (productTags) => /* @__PURE__ */ jsx148(Fragment32, { children: productTags == null ? void 0 : productTags.filter(onlyUnique).map((productTag, index) => /* @__PURE__ */ jsx148(
55092
55063
  WfoProductBlockBadge,
55093
55064
  {
55094
55065
  badgeType: "product_tag" /* PRODUCT_TAG */,
@@ -55096,7 +55067,7 @@ var WfoWorkflowsPage = () => {
55096
55067
  },
55097
55068
  index
55098
55069
  )) }),
55099
- renderDetails: (productTags) => /* @__PURE__ */ jsx148(EuiBadgeGroup5, { gutterSize: "s", children: productTags == null ? void 0 : productTags.map((productTag, index) => /* @__PURE__ */ jsx148(
55070
+ renderDetails: (productTags) => /* @__PURE__ */ jsx148(EuiBadgeGroup5, { gutterSize: "s", children: productTags == null ? void 0 : productTags.filter(onlyUnique).map((productTag, index) => /* @__PURE__ */ jsx148(
55100
55071
  WfoProductBlockBadge,
55101
55072
  {
55102
55073
  badgeType: "product_tag" /* PRODUCT_TAG */,
@@ -55229,6 +55200,59 @@ var WfoProcessListSubscriptionsCell = ({
55229
55200
  // src/pages/processes/WfoProcessDetailPage.tsx
55230
55201
  import { useEffect as useEffect22, useRef as useRef7, useState as useState36 } from "react";
55231
55202
 
55203
+ // src/rtk/endpoints/processDetail.ts
55204
+ var processDetailQuery = `query ProcessDetail($processId: String!) {
55205
+ processes(filterBy: { value: $processId, field: "processId" }) {
55206
+ page {
55207
+ processId
55208
+ lastStatus
55209
+ createdBy
55210
+ startedAt
55211
+ lastModifiedAt
55212
+ lastStep
55213
+ workflowName
55214
+ isTask
55215
+ form
55216
+ steps {
55217
+ name
55218
+ status
55219
+ stepId
55220
+ executed
55221
+ stateDelta
55222
+ }
55223
+ customer {
55224
+ fullname
55225
+ }
55226
+ subscriptions {
55227
+ page {
55228
+ product {
55229
+ name
55230
+ }
55231
+ description
55232
+ subscriptionId
55233
+ }
55234
+ }
55235
+ }
55236
+ }
55237
+ }`;
55238
+ var processDetailApi = orchestratorApi.injectEndpoints({
55239
+ endpoints: (builder) => ({
55240
+ getProcessDetail: builder.query({
55241
+ query: (variables) => ({
55242
+ document: processDetailQuery,
55243
+ variables
55244
+ }),
55245
+ transformResponse: (response) => {
55246
+ const processes = response.processes.page || [];
55247
+ return {
55248
+ processes
55249
+ };
55250
+ }
55251
+ })
55252
+ })
55253
+ });
55254
+ var { useGetProcessDetailQuery } = processDetailApi;
55255
+
55232
55256
  // src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
55233
55257
  import React43 from "react";
55234
55258
  import { useTranslations as useTranslations45 } from "next-intl";
@@ -56426,13 +56450,9 @@ var WfoProcessDetailPage = ({
56426
56450
  const stepListRef = useRef7(null);
56427
56451
  const [fetchInterval, setFetchInterval] = useState36();
56428
56452
  const [process2, setProcess] = useState36();
56429
- const { data, isLoading, isError: isError3 } = useQueryWithGraphql(
56430
- GET_PROCESS_DETAIL_GRAPHQL_QUERY,
56431
- {
56432
- processId
56433
- },
56434
- "processDetail",
56435
- { refetchInterval: fetchInterval, refetchOnWindowFocus: false }
56453
+ const { data, isLoading, isError: isError3 } = useGetProcessDetailQuery(
56454
+ { processId },
56455
+ { pollingInterval: fetchInterval }
56436
56456
  );
56437
56457
  if (isError3) {
56438
56458
  if (fetchInterval) {
@@ -56440,7 +56460,7 @@ var WfoProcessDetailPage = ({
56440
56460
  }
56441
56461
  }
56442
56462
  useEffect22(() => {
56443
- const process3 = data == null ? void 0 : data.processes.page[0];
56463
+ const process3 = data == null ? void 0 : data.processes[0];
56444
56464
  const lastStatus = process3 == null ? void 0 : process3.lastStatus.toLocaleLowerCase();
56445
56465
  const isInProgress = !(lastStatus && ProcessDoneStatuses.includes(lastStatus));
56446
56466
  setFetchInterval(
@@ -56448,7 +56468,7 @@ var WfoProcessDetailPage = ({
56448
56468
  );
56449
56469
  }, [data, processDetailRefetchInterval]);
56450
56470
  useEffect22(() => {
56451
- const fetchedProcessDetails = data == null ? void 0 : data.processes.page[0];
56471
+ const fetchedProcessDetails = data == null ? void 0 : data.processes[0];
56452
56472
  if (!process2) {
56453
56473
  setProcess(fetchedProcessDetails);
56454
56474
  return;
@@ -57068,7 +57088,7 @@ var WfoStartPage = () => {
57068
57088
  )) != null ? _d : [],
57069
57089
  button: {
57070
57090
  name: t("outOfSyncSubscriptions.buttonText"),
57071
- url: `${PATH_SUBSCRIPTIONS}?activeTab=ALL&sortBy=field-startDate_order-ASC&queryString=status%3A%28initial%7Cactive%29+insync%3Afalse`
57091
+ url: `${PATH_SUBSCRIPTIONS}?activeTab=ALL&sortBy=field-startDate_order-ASC&queryString=status%3A%28provisioning%7Cactive%29+insync%3Afalse`
57072
57092
  },
57073
57093
  isLoading: outOfSyncsubscriptionsSummaryIsFetching
57074
57094
  };
@@ -59276,7 +59296,6 @@ export {
59276
59296
  Environment,
59277
59297
  ErrorField,
59278
59298
  ErrorsField,
59279
- GET_PROCESS_DETAIL_GRAPHQL_QUERY,
59280
59299
  GET_PROCESS_LIST_GRAPHQL_QUERY,
59281
59300
  GET_PROCESS_LIST_SUMMARY_GRAPHQL_QUERY,
59282
59301
  GET_PROCESS_STEPS_GRAPHQL_QUERY,
@@ -59517,6 +59536,7 @@ export {
59517
59536
  localMomentToUtcTimestamp,
59518
59537
  mapColumnSortToEuiDataGridSorting,
59519
59538
  mapSortableAndFilterableValuesToTableColumnConfig,
59539
+ onlyUnique,
59520
59540
  orchestratorApi,
59521
59541
  parseDate,
59522
59542
  parseDateOrTimeRelativeToToday,
@@ -59530,6 +59550,8 @@ export {
59530
59550
  removeToastMessage,
59531
59551
  renderEmptyElementWhenNotAllowedByPolicy,
59532
59552
  setTableConfigToLocalStorage,
59553
+ snakeToHuman,
59554
+ snakeToKebab,
59533
59555
  stop,
59534
59556
  toastMessagesReducer,
59535
59557
  toastMessagesSlice,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orchestrator-ui/orchestrator-ui-components",
3
- "version": "0.11.1",
3
+ "version": "0.13.0",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "test": "jest",