eservices-core 1.0.341 → 1.0.344

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.d.ts CHANGED
@@ -93,8 +93,9 @@ import WidgetSection from "./widgets/section/widget-section.vue";
93
93
  import WidgetTableController from "./widgets/tables/table-with-form/widget-table-controller.vue";
94
94
  import WidgetSpinner from "./widgets/spinner/WidgetSpinner.vue";
95
95
  import WidgetTable from './widgets/tables/table-with-form/widget-table.vue';
96
+ import WidgetForm from "./widgets/forms/naomi/WidgetForm.vue";
96
97
  import ModalValidation from "./widgets/modals/modal-validation/modal-validation.vue";
97
- export { ModalValidation, WidgetTable, WidgetTableController, WidgetSpinner, WidgetBreadcrumbs, WidgetCommunication, WidgetList, WidgetSection };
98
+ export { WidgetForm, ModalValidation, WidgetTable, WidgetTableController, WidgetSpinner, WidgetBreadcrumbs, WidgetCommunication, WidgetList, WidgetSection };
98
99
  import valuesToUpperCase from "./utils/values-to-upper-case";
99
100
  declare const utils: {
100
101
  valuesToUpperCase: typeof valuesToUpperCase;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * eservices-core v1.0.341
2
+ * eservices-core v1.0.344
3
3
  * (c) 2022 ESERVICES
4
4
  */
5
5
  'use strict';
@@ -412,7 +412,7 @@ const _hoisted_2$B = {
412
412
  key: 0,
413
413
  class: "input-title"
414
414
  };
415
- const _hoisted_3$s = {
415
+ const _hoisted_3$t = {
416
416
  key: 0,
417
417
  class: "input-title_required"
418
418
  };
@@ -431,7 +431,7 @@ function render$p(_ctx, _cache, $props, $setup, $data, $options) {
431
431
  ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_2$B, [
432
432
  vue.createTextVNode(vue.toDisplayString(_ctx.title) + " ", 1 /* TEXT */),
433
433
  (_ctx.required)
434
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$s, "*"))
434
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$t, "*"))
435
435
  : vue.createCommentVNode("v-if", true)
436
436
  ]))
437
437
  : vue.createCommentVNode("v-if", true),
@@ -573,7 +573,7 @@ const _hoisted_2$A = {
573
573
  key: 0,
574
574
  class: "input-title"
575
575
  };
576
- const _hoisted_3$r = {
576
+ const _hoisted_3$s = {
577
577
  key: 0,
578
578
  class: "color__text_red"
579
579
  };
@@ -601,7 +601,7 @@ function render$m(_ctx, _cache, $props, $setup, $data, $options) {
601
601
  ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_2$A, [
602
602
  vue.createTextVNode(vue.toDisplayString(_ctx.title) + " ", 1 /* TEXT */),
603
603
  (_ctx.required)
604
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$r, "*"))
604
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$s, "*"))
605
605
  : vue.createCommentVNode("v-if", true)
606
606
  ]))
607
607
  : vue.createCommentVNode("v-if", true),
@@ -782,7 +782,7 @@ const _hoisted_2$z = {
782
782
  key: 0,
783
783
  class: "process-info input-file__wait text_size_sm"
784
784
  };
785
- const _hoisted_3$q = {
785
+ const _hoisted_3$r = {
786
786
  key: 1,
787
787
  class: "process-info input-file__error text_size_sm text_error"
788
788
  };
@@ -804,7 +804,7 @@ function render$l(_ctx, _cache, $props, $setup, $data, $options) {
804
804
  ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_2$z, "Loading..."))
805
805
  : vue.createCommentVNode("v-if", true),
806
806
  (_ctx.pw.error)
807
- ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_3$q, "Error load file"))
807
+ ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_3$r, "Error load file"))
808
808
  : vue.createCommentVNode("v-if", true)
809
809
  ]))
810
810
  }
@@ -840,14 +840,14 @@ var script$T = {
840
840
  const _withScopeId$9 = n => (vue.pushScopeId("data-v-3fc725fe"),n=n(),vue.popScopeId(),n);
841
841
  const _hoisted_1$O = { class: "widget-input__container" };
842
842
  const _hoisted_2$y = { class: "input-container__content" };
843
- const _hoisted_3$p = /*#__PURE__*/ _withScopeId$9(() => /*#__PURE__*/vue.createElementVNode("div", { class: "widget-input__underline" }, null, -1 /* HOISTED */));
843
+ const _hoisted_3$q = /*#__PURE__*/ _withScopeId$9(() => /*#__PURE__*/vue.createElementVNode("div", { class: "widget-input__underline" }, null, -1 /* HOISTED */));
844
844
 
845
845
  function render$k(_ctx, _cache, $props, $setup, $data, $options) {
846
846
  return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$O, [
847
847
  vue.createElementVNode("div", _hoisted_2$y, [
848
848
  vue.renderSlot(_ctx.$slots, "default")
849
849
  ]),
850
- _hoisted_3$p,
850
+ _hoisted_3$q,
851
851
  ($props.placeholder)
852
852
  ? (vue.openBlock(), vue.createElementBlock("p", {
853
853
  key: 0,
@@ -1005,7 +1005,7 @@ const _hoisted_2$x = {
1005
1005
  key: 0,
1006
1006
  class: "color__text_red"
1007
1007
  };
1008
- const _hoisted_3$o = ["disabled", "error"];
1008
+ const _hoisted_3$p = ["disabled", "error"];
1009
1009
  const _hoisted_4$j = ["type", "placeholder", "disabled", "error", "value"];
1010
1010
  const _hoisted_5$d = {
1011
1011
  key: 1,
@@ -1054,7 +1054,7 @@ function render$i(_ctx, _cache, $props, $setup, $data, $options) {
1054
1054
  (_ctx.errorMessage)
1055
1055
  ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_5$d, vue.toDisplayString(_ctx.errorMessage), 1 /* TEXT */))
1056
1056
  : vue.createCommentVNode("v-if", true)
1057
- ], 8 /* PROPS */, _hoisted_3$o)
1057
+ ], 8 /* PROPS */, _hoisted_3$p)
1058
1058
  ], 64 /* STABLE_FRAGMENT */))
1059
1059
  }
1060
1060
 
@@ -1263,7 +1263,7 @@ var script$N = {
1263
1263
 
1264
1264
  const _hoisted_1$J = { class: "widget-form flex_column" };
1265
1265
  const _hoisted_2$u = { class: "widget-form__head flex" };
1266
- const _hoisted_3$n = { class: "widget-form__head-functions flex" };
1266
+ const _hoisted_3$o = { class: "widget-form__head-functions flex" };
1267
1267
  const _hoisted_4$i = { class: "widget-form__body" };
1268
1268
 
1269
1269
  function render$e(_ctx, _cache, $props, $setup, $data, $options) {
@@ -1281,7 +1281,7 @@ function render$e(_ctx, _cache, $props, $setup, $data, $options) {
1281
1281
  values: $props.button
1282
1282
  }, null, 8 /* PROPS */, ["values"]))
1283
1283
  : vue.createCommentVNode("v-if", true),
1284
- vue.createElementVNode("div", _hoisted_3$n, [
1284
+ vue.createElementVNode("div", _hoisted_3$o, [
1285
1285
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.functions, (elem, index) => {
1286
1286
  return (vue.openBlock(), vue.createBlock(_component_widget_form_function_item, {
1287
1287
  key: index,
@@ -1343,7 +1343,7 @@ script$M.__file = "core/widgets/forms/naomi/WidgetFormImage.vue";
1343
1343
 
1344
1344
  const _hoisted_1$H = { class: "widget-form-info flex" };
1345
1345
  const _hoisted_2$s = { class: "form-titles" };
1346
- const _hoisted_3$m = { class: "form-title margin-0" };
1346
+ const _hoisted_3$n = { class: "form-title margin-0" };
1347
1347
  const _hoisted_4$h = { class: "form-info text_size_md margin-0" };
1348
1348
  const _hoisted_5$c = {
1349
1349
  key: 0,
@@ -1361,7 +1361,7 @@ var script$L = /*#__PURE__*/ vue.defineComponent({
1361
1361
  return (_ctx, _cache) => {
1362
1362
  return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$H, [
1363
1363
  vue.createElementVNode("div", _hoisted_2$s, [
1364
- vue.createElementVNode("p", _hoisted_3$m, vue.toDisplayString(__props.title), 1 /* TEXT */),
1364
+ vue.createElementVNode("p", _hoisted_3$n, vue.toDisplayString(__props.title), 1 /* TEXT */),
1365
1365
  vue.createElementVNode("p", _hoisted_4$h, vue.toDisplayString(__props.info), 1 /* TEXT */)
1366
1366
  ]),
1367
1367
  (__props.label)
@@ -1411,7 +1411,7 @@ script$K.__file = "core/widgets/spinner/WidgetSpinner.vue";
1411
1411
 
1412
1412
  const _hoisted_1$G = { class: "widget-button-wrap" };
1413
1413
  const _hoisted_2$r = { class: "multi-button" };
1414
- const _hoisted_3$l = { class: "widget-button-list" };
1414
+ const _hoisted_3$m = { class: "widget-button-list" };
1415
1415
  const _hoisted_4$g = ["onClick"];
1416
1416
  const _hoisted_5$b = { class: "button__side" };
1417
1417
  const _hoisted_6$4 = {
@@ -1449,7 +1449,7 @@ var script$J = /*#__PURE__*/ vue.defineComponent({
1449
1449
  onClick: _cache[0] || (_cache[0] = ($event) => (toggle()))
1450
1450
  }, vue.toDisplayString(__props.title), 1 /* TEXT */))
1451
1451
  : vue.createCommentVNode("v-if", true),
1452
- vue.createElementVNode("div", _hoisted_3$l, [
1452
+ vue.createElementVNode("div", _hoisted_3$m, [
1453
1453
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.array, (elem, index) => {
1454
1454
  return (vue.openBlock(), vue.createElementBlock("p", {
1455
1455
  class: "button__content-title",
@@ -1491,7 +1491,7 @@ script$J.__file = "core/widgets/buttons/multi-button/WidgetMultiButton.vue";
1491
1491
 
1492
1492
  const _hoisted_1$F = { class: "wrap__widget-form" };
1493
1493
  const _hoisted_2$q = { class: "widget-form" };
1494
- const _hoisted_3$k = { class: "widget-form__head" };
1494
+ const _hoisted_3$l = { class: "widget-form__head" };
1495
1495
  const _hoisted_4$f = { class: "widget-form__body" };
1496
1496
  var script$I = /*#__PURE__*/ vue.defineComponent({
1497
1497
  __name: 'WidgetForm',
@@ -1507,7 +1507,7 @@ var script$I = /*#__PURE__*/ vue.defineComponent({
1507
1507
  return (_ctx, _cache) => {
1508
1508
  return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$F, [
1509
1509
  vue.createElementVNode("div", _hoisted_2$q, [
1510
- vue.createElementVNode("div", _hoisted_3$k, [
1510
+ vue.createElementVNode("div", _hoisted_3$l, [
1511
1511
  vue.createVNode(script$M, {
1512
1512
  icon: __props.icon,
1513
1513
  image: __props.image
@@ -1597,7 +1597,7 @@ var script$G = {
1597
1597
 
1598
1598
  const _hoisted_1$D = { class: "form-container" };
1599
1599
  const _hoisted_2$p = { class: "form-container__head flex" };
1600
- const _hoisted_3$j = { class: "form-container__head-title title_md flex_full" };
1600
+ const _hoisted_3$k = { class: "form-container__head-title title_md flex_full" };
1601
1601
  const _hoisted_4$e = {
1602
1602
  key: 0,
1603
1603
  class: "title_md"
@@ -1609,7 +1609,7 @@ function render$d(_ctx, _cache, $props, $setup, $data, $options) {
1609
1609
 
1610
1610
  return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$D, [
1611
1611
  vue.createElementVNode("div", _hoisted_2$p, [
1612
- vue.createElementVNode("p", _hoisted_3$j, vue.toDisplayString($props.title), 1 /* TEXT */),
1612
+ vue.createElementVNode("p", _hoisted_3$k, vue.toDisplayString($props.title), 1 /* TEXT */),
1613
1613
  ($props.rightTitle)
1614
1614
  ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_4$e, vue.toDisplayString($props.rightTitle), 1 /* TEXT */))
1615
1615
  : vue.createCommentVNode("v-if", true),
@@ -1654,7 +1654,7 @@ script$G.__file = "core/widgets/containers/ContainerForm.vue";
1654
1654
 
1655
1655
  const _hoisted_1$C = { class: "form-container-item__title flex" };
1656
1656
  const _hoisted_2$o = { class: "" };
1657
- const _hoisted_3$i = {
1657
+ const _hoisted_3$j = {
1658
1658
  key: 0,
1659
1659
  class: ""
1660
1660
  };
@@ -1677,7 +1677,7 @@ function render$c(_ctx, _cache, $props, $setup, $data, $options) {
1677
1677
  vue.renderSlot(_ctx.$slots, "default")
1678
1678
  ], 2 /* CLASS */),
1679
1679
  ($props.subTitle)
1680
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$i, [
1680
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$j, [
1681
1681
  vue.createElementVNode("span", _hoisted_4$d, vue.toDisplayString($props.subTitle), 1 /* TEXT */),
1682
1682
  vue.renderSlot(_ctx.$slots, "centerRight")
1683
1683
  ]))
@@ -1703,14 +1703,14 @@ var script$E = {
1703
1703
 
1704
1704
  const _hoisted_1$B = { class: "container-auth-wrap" };
1705
1705
  const _hoisted_2$n = { class: "container-auth-sidebar" };
1706
- const _hoisted_3$h = { class: "container-auth-main" };
1706
+ const _hoisted_3$i = { class: "container-auth-main" };
1707
1707
 
1708
1708
  function render$b(_ctx, _cache, $props, $setup, $data, $options) {
1709
1709
  return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$B, [
1710
1710
  vue.createElementVNode("div", _hoisted_2$n, [
1711
1711
  vue.renderSlot(_ctx.$slots, "side")
1712
1712
  ]),
1713
- vue.createElementVNode("div", _hoisted_3$h, [
1713
+ vue.createElementVNode("div", _hoisted_3$i, [
1714
1714
  vue.renderSlot(_ctx.$slots, "default")
1715
1715
  ])
1716
1716
  ]))
@@ -2939,12 +2939,12 @@ var script$A = {
2939
2939
  const _withScopeId$8 = n => (vue.pushScopeId("data-v-36a6079a"),n=n(),vue.popScopeId(),n);
2940
2940
  const _hoisted_1$y = { class: "separator" };
2941
2941
  const _hoisted_2$l = /*#__PURE__*/ _withScopeId$8(() => /*#__PURE__*/vue.createElementVNode("div", null, null, -1 /* HOISTED */));
2942
- const _hoisted_3$g = [
2942
+ const _hoisted_3$h = [
2943
2943
  _hoisted_2$l
2944
2944
  ];
2945
2945
 
2946
2946
  function render$8(_ctx, _cache, $props, $setup, $data, $options) {
2947
- return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$y, _hoisted_3$g))
2947
+ return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$y, _hoisted_3$h))
2948
2948
  }
2949
2949
 
2950
2950
  var css_248z$x = "\n.separator[data-v-36a6079a]{\r\n display: flex;\r\n height: 100%;\r\n cursor: col-resize;\r\n\r\n user-select: none;\n}\n.separator>div[data-v-36a6079a]{\r\n width: 1px;\r\n background-color: #979797;\n}\r\n";
@@ -3040,7 +3040,7 @@ const _hoisted_1$x = {
3040
3040
  ref: "refHead"
3041
3041
  };
3042
3042
  const _hoisted_2$k = ["onClick"];
3043
- const _hoisted_3$f = { class: "head-cell" };
3043
+ const _hoisted_3$g = { class: "head-cell" };
3044
3044
  const _hoisted_4$c = { class: "head-cell-label" };
3045
3045
 
3046
3046
  function render$7(_ctx, _cache, $props, $setup, $data, $options) {
@@ -3050,7 +3050,7 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
3050
3050
  key: index,
3051
3051
  onClick: $event => (_ctx.$emit('sort', elem.name))
3052
3052
  }, [
3053
- vue.createElementVNode("div", _hoisted_3$f, [
3053
+ vue.createElementVNode("div", _hoisted_3$g, [
3054
3054
  vue.createElementVNode("p", _hoisted_4$c, vue.toDisplayString(elem.title), 1 /* TEXT */),
3055
3055
  vue.createElementVNode("div", null, [
3056
3056
  ($props.orderConfig.field === elem.name)
@@ -4047,14 +4047,14 @@ var script$q = {
4047
4047
 
4048
4048
  const _hoisted_1$q = { class: "widget-error" };
4049
4049
  const _hoisted_2$i = { class: "widget-error-wrap" };
4050
- const _hoisted_3$e = { class: "widget-error-main" };
4050
+ const _hoisted_3$f = { class: "widget-error-main" };
4051
4051
  const _hoisted_4$b = { class: "widget-error-text widget-error-message" };
4052
4052
  const _hoisted_5$8 = { class: "widget-error__container-close" };
4053
4053
 
4054
4054
  function render$4(_ctx, _cache, $props, $setup, $data, $options) {
4055
4055
  return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$q, [
4056
4056
  vue.createElementVNode("div", _hoisted_2$i, [
4057
- vue.createElementVNode("div", _hoisted_3$e, [
4057
+ vue.createElementVNode("div", _hoisted_3$f, [
4058
4058
  vue.createElementVNode("p", _hoisted_4$b, vue.toDisplayString($props.message), 1 /* TEXT */)
4059
4059
  ]),
4060
4060
  ($props.isGroup)
@@ -4349,7 +4349,7 @@ function renderInput(inputProps, type) {
4349
4349
 
4350
4350
  const _hoisted_1$n = { class: "form-section" };
4351
4351
  const _hoisted_2$h = { class: "form-section__header" };
4352
- const _hoisted_3$d = { class: "form-section__header-title" };
4352
+ const _hoisted_3$e = { class: "form-section__header-title" };
4353
4353
  const _hoisted_4$a = { class: "form-section__body" };
4354
4354
  var script$n = /*#__PURE__*/ vue.defineComponent({
4355
4355
  __name: 'FormSection',
@@ -4361,7 +4361,7 @@ var script$n = /*#__PURE__*/ vue.defineComponent({
4361
4361
  return (_ctx, _cache) => {
4362
4362
  return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$n, [
4363
4363
  vue.createElementVNode("div", _hoisted_2$h, [
4364
- vue.createElementVNode("p", _hoisted_3$d, vue.toDisplayString(__props.title), 1 /* TEXT */)
4364
+ vue.createElementVNode("p", _hoisted_3$e, vue.toDisplayString(__props.title), 1 /* TEXT */)
4365
4365
  ]),
4366
4366
  vue.createElementVNode("div", _hoisted_4$a, [
4367
4367
  vue.renderSlot(_ctx.$slots, "default")
@@ -4439,12 +4439,12 @@ var script$m = {
4439
4439
  const _withScopeId$7 = n => (vue.pushScopeId("data-v-19107abc"),n=n(),vue.popScopeId(),n);
4440
4440
  const _hoisted_1$m = { class: "form-body-wrap" };
4441
4441
  const _hoisted_2$g = /*#__PURE__*/ _withScopeId$7(() => /*#__PURE__*/vue.createElementVNode("div", { class: "form-body-wrap__header" }, null, -1 /* HOISTED */));
4442
- const _hoisted_3$c = { class: "form-body-wrap__content" };
4442
+ const _hoisted_3$d = { class: "form-body-wrap__content" };
4443
4443
 
4444
4444
  function render(_ctx, _cache, $props, $setup, $data, $options) {
4445
4445
  return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$m, [
4446
4446
  _hoisted_2$g,
4447
- vue.createElementVNode("div", _hoisted_3$c, [
4447
+ vue.createElementVNode("div", _hoisted_3$d, [
4448
4448
  vue.renderSlot(_ctx.$slots, "default")
4449
4449
  ])
4450
4450
  ]))
@@ -4665,11 +4665,13 @@ var ApplicationManager = new class ApplicationManager {
4665
4665
  return __awaiter(this, void 0, void 0, function* () {
4666
4666
  try {
4667
4667
  const result = yield clientService.getClientData();
4668
+ console.log(result);
4668
4669
  this.isReady.value = true;
4669
- Object.assign(this.person, result);
4670
+ this.person.value = result;
4671
+ this.organizations.value = result.organizations;
4670
4672
  if (!this.currentContextId.value)
4671
4673
  this.setCurrentContext(result.id);
4672
- this.organizations.value = result.organizations;
4674
+ console.log(this.person.value);
4673
4675
  }
4674
4676
  catch (e) {
4675
4677
  ErrorStorageSystem.add(e);
@@ -4712,6 +4714,9 @@ class authService {
4712
4714
  })
4713
4715
  .catch(authService.parseError);
4714
4716
  }
4717
+ /**
4718
+ * @deprecated
4719
+ * */
4715
4720
  static registration(values) {
4716
4721
  values.AppName = configuration.applicationName;
4717
4722
  return Request(configuration.identityServerURL + "/api/Authenticate/Registration", {
@@ -4724,6 +4729,41 @@ class authService {
4724
4729
  })
4725
4730
  .catch(authService.parseError);
4726
4731
  }
4732
+ static parseProcessAnswer(answer) {
4733
+ const wrongStatus = ['PhoneCodeIncorrect', 'EmailCodeIncorrect'];
4734
+ const status = answer.statusName;
4735
+ if (wrongStatus.includes(status))
4736
+ throw CoreError.UndefinedError(status);
4737
+ return answer;
4738
+ }
4739
+ static startRegistrationProcess(values) {
4740
+ return authService.requestStepRegistrationProcess('StartRegistration', values);
4741
+ }
4742
+ static confirmPhoneRegistrationProcess(values) {
4743
+ return authService.requestStepRegistrationProcess('ConfirmPhoneNumberByRegistration', values);
4744
+ }
4745
+ static confirmEmailRegistrationProcess(values) {
4746
+ return authService.requestStepRegistrationProcess('ConfirmEmailByRegistration', values);
4747
+ }
4748
+ static finishEmailRegistrationProcess(values) {
4749
+ return authService.requestStepRegistrationProcess('FinishRegistration', values);
4750
+ }
4751
+ /**
4752
+ * @description Steps of registration process are the same. Current method provide one requestInterface for all
4753
+ * steps.
4754
+ * */
4755
+ static requestStepRegistrationProcess(name, values) {
4756
+ return Request(`${configuration.identityServerURL}api/Authenticate/${name}`, {
4757
+ method: 'POST',
4758
+ headers: {
4759
+ 'Content-Type': 'application/json',
4760
+ },
4761
+ credentials: 'include',
4762
+ body: JSON.stringify(values)
4763
+ })
4764
+ .catch(authService.parseError)
4765
+ .then(authService.parseProcessAnswer);
4766
+ }
4727
4767
  }
4728
4768
 
4729
4769
  class ActionService {
@@ -4758,7 +4798,7 @@ styleInject(css_248z$l);
4758
4798
 
4759
4799
  const _hoisted_1$l = { class: "container-navigation-row" };
4760
4800
  const _hoisted_2$f = { class: "navigation-row__title text_size_md" };
4761
- const _hoisted_3$b = {
4801
+ const _hoisted_3$c = {
4762
4802
  key: 0,
4763
4803
  class: "navigation-row-children"
4764
4804
  };
@@ -4830,7 +4870,7 @@ var script$l = /*#__PURE__*/ vue.defineComponent({
4830
4870
  : vue.createCommentVNode("v-if", true)
4831
4871
  ], 2 /* CLASS */),
4832
4872
  (vue.unref(activeRow))
4833
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$b, [
4873
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$c, [
4834
4874
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.record.children, (elem, index) => {
4835
4875
  return (vue.openBlock(), vue.createBlock(script$l, {
4836
4876
  key: index,
@@ -4922,7 +4962,7 @@ const _hoisted_1$i = {
4922
4962
  class: "popup-person cursor_pointer"
4923
4963
  };
4924
4964
  const _hoisted_2$d = /*#__PURE__*/ _withScopeId$6(() => /*#__PURE__*/ vue.createElementVNode("p", { class: "popup-person-title" }, "Switch to person", -1 /* HOISTED */));
4925
- const _hoisted_3$a = [
4965
+ const _hoisted_3$b = [
4926
4966
  _hoisted_2$d
4927
4967
  ];
4928
4968
  var script$i = /*#__PURE__*/ vue.defineComponent({
@@ -4934,7 +4974,7 @@ var script$i = /*#__PURE__*/ vue.defineComponent({
4934
4974
  setup(__props) {
4935
4975
  return (_ctx, _cache) => {
4936
4976
  return (__props.person.id !== __props.currentContextId)
4937
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$i, _hoisted_3$a))
4977
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$i, _hoisted_3$b))
4938
4978
  : vue.createCommentVNode("v-if", true);
4939
4979
  };
4940
4980
  }
@@ -4948,7 +4988,7 @@ script$i.__file = "core/widgets/interface/user-popup-switch-person.vue";
4948
4988
 
4949
4989
  const _hoisted_1$h = { class: "organization" };
4950
4990
  const _hoisted_2$c = { class: "organization-image" };
4951
- const _hoisted_3$9 = ["src"];
4991
+ const _hoisted_3$a = ["src"];
4952
4992
  const _hoisted_4$9 = { class: "organization-body" };
4953
4993
  const _hoisted_5$7 = { class: "organization-name" };
4954
4994
  var script$h = /*#__PURE__*/ vue.defineComponent({
@@ -4964,7 +5004,7 @@ var script$h = /*#__PURE__*/ vue.defineComponent({
4964
5004
  vue.createElementVNode("img", {
4965
5005
  src: __props.photo || '/static-folder/images/organization-photo.svg',
4966
5006
  alt: "organization-logo"
4967
- }, null, 8 /* PROPS */, _hoisted_3$9)
5007
+ }, null, 8 /* PROPS */, _hoisted_3$a)
4968
5008
  ]),
4969
5009
  vue.createElementVNode("div", _hoisted_4$9, [
4970
5010
  vue.createElementVNode("p", _hoisted_5$7, vue.toDisplayString(__props.name), 1 /* TEXT */)
@@ -5025,7 +5065,7 @@ script$g.__file = "core/widgets/interface/user-popup-switch-organization.vue";
5025
5065
 
5026
5066
  const _hoisted_1$f = { class: "widget-popup" };
5027
5067
  const _hoisted_2$a = { class: "popup-current-context popup-section" };
5028
- const _hoisted_3$8 = ["src"];
5068
+ const _hoisted_3$9 = ["src"];
5029
5069
  const _hoisted_4$8 = { class: "popup-current-context__info" };
5030
5070
  const _hoisted_5$6 = { class: "info-title text_bold text_md info-paragraph" };
5031
5071
  const _hoisted_6$3 = { class: "info-id info-paragraph" };
@@ -5050,7 +5090,7 @@ var script$f = /*#__PURE__*/ vue.defineComponent({
5050
5090
  class: "popup-current-context__avatar",
5051
5091
  src: vue.unref(person).photo,
5052
5092
  alt: "avatar"
5053
- }, null, 8 /* PROPS */, _hoisted_3$8),
5093
+ }, null, 8 /* PROPS */, _hoisted_3$9),
5054
5094
  vue.createElementVNode("div", _hoisted_4$8, [
5055
5095
  vue.createElementVNode("p", _hoisted_5$6, vue.toDisplayString(vue.unref(person).email), 1 /* TEXT */),
5056
5096
  vue.createElementVNode("p", _hoisted_6$3, "ID: " + vue.toDisplayString(vue.unref(person).id), 1 /* TEXT */)
@@ -5090,7 +5130,7 @@ script$f.__file = "core/widgets/interface/interface-user-popup.vue";
5090
5130
 
5091
5131
  const _hoisted_1$e = { class: "position_relative" };
5092
5132
  const _hoisted_2$9 = { class: "user-card-labels" };
5093
- const _hoisted_3$7 = { class: "user-card__current-name text_md text_bold" };
5133
+ const _hoisted_3$8 = { class: "user-card__current-name text_md text_bold" };
5094
5134
  const _hoisted_4$7 = {
5095
5135
  key: 0,
5096
5136
  class: "user-card__person-name text_md text_bold"
@@ -5099,7 +5139,6 @@ const _hoisted_5$5 = ["src"];
5099
5139
  var script$e = /*#__PURE__*/ vue.defineComponent({
5100
5140
  __name: 'interface-user-card',
5101
5141
  props: {
5102
- user: { type: null, required: true },
5103
5142
  popup: { type: null, required: true }
5104
5143
  },
5105
5144
  setup(__props) {
@@ -5122,7 +5161,7 @@ var script$e = /*#__PURE__*/ vue.defineComponent({
5122
5161
  onClick: _cache[0] || (_cache[0] = vue.withModifiers(($event) => (active.value = !active.value), ["stop"]))
5123
5162
  }, [
5124
5163
  vue.createElementVNode("div", _hoisted_2$9, [
5125
- vue.createElementVNode("p", _hoisted_3$7, vue.toDisplayString(vue.unref(currentContext).name), 1 /* TEXT */),
5164
+ vue.createElementVNode("p", _hoisted_3$8, vue.toDisplayString(vue.unref(currentContext).name), 1 /* TEXT */),
5126
5165
  vue.createVNode(vue.Transition, { name: "slide-up" }, {
5127
5166
  default: vue.withCtx(() => [
5128
5167
  (vue.unref(person).id !== vue.unref(currentContext).id)
@@ -5177,22 +5216,32 @@ script$e.__file = "core/widgets/interface/interface-user-card.vue";
5177
5216
  const _withScopeId$4 = n => (vue.pushScopeId("data-v-3ab490e9"), n = n(), vue.popScopeId(), n);
5178
5217
  const _hoisted_1$d = { class: "interface-header flex" };
5179
5218
  const _hoisted_2$8 = /*#__PURE__*/ _withScopeId$4(() => /*#__PURE__*/ vue.createElementVNode("div", null, null, -1 /* HOISTED */));
5219
+ const _hoisted_3$7 = { class: "interface-user-card" };
5180
5220
  var script$d = /*#__PURE__*/ vue.defineComponent({
5181
5221
  __name: 'interface-header',
5182
5222
  props: {
5183
5223
  popup: { type: null, required: true }
5184
5224
  },
5185
5225
  setup(__props) {
5226
+ const currentContextId = ApplicationManager.currentContextId;
5186
5227
  return (_ctx, _cache) => {
5187
5228
  return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$d, [
5188
5229
  _hoisted_2$8,
5189
- vue.createVNode(script$e, { popup: __props.popup }, null, 8 /* PROPS */, ["popup"])
5230
+ vue.createElementVNode("div", _hoisted_3$7, [
5231
+ (vue.unref(currentContextId) === null)
5232
+ ? (vue.openBlock(), vue.createBlock(script$K, { key: 0 }))
5233
+ : (vue.openBlock(), vue.createBlock(script$e, {
5234
+ key: 1,
5235
+ popup: __props.popup,
5236
+ style: { "height": "100%" }
5237
+ }, null, 8 /* PROPS */, ["popup"]))
5238
+ ])
5190
5239
  ]));
5191
5240
  };
5192
5241
  }
5193
5242
  });
5194
5243
 
5195
- var css_248z$d = "\n.interface-header[data-v-3ab490e9] {\r\n background-color: var(--primary);\r\n justify-content: space-between;\n}\r\n";
5244
+ var css_248z$d = "\n.interface-header[data-v-3ab490e9] {\r\n background-color: var(--primary);\r\n justify-content: space-between;\n}\n.interface-user-card[data-v-3ab490e9]{\r\n\t\tmin-width: 30px;\r\n\t\tdisplay:flex;\r\n\t\talign-items: center;\r\n\t\tplace-content: center;\r\n\t\tgrid-template-rows: 1fr;\n}\r\n";
5196
5245
  styleInject(css_248z$d);
5197
5246
 
5198
5247
  script$d.__scopeId = "data-v-3ab490e9";
@@ -5991,6 +6040,7 @@ exports.ProcessWrap = ProcessWrap;
5991
6040
  exports.Table = Table;
5992
6041
  exports.WidgetBreadcrumbs = script$a;
5993
6042
  exports.WidgetCommunication = script$4;
6043
+ exports.WidgetForm = script$I;
5994
6044
  exports.WidgetList = script$y;
5995
6045
  exports.WidgetSection = script$3;
5996
6046
  exports.WidgetSpinner = script$K;
@@ -15,6 +15,29 @@ interface ResponseInterface {
15
15
  export default class authService {
16
16
  static parseError(data: ResponseInterface): void;
17
17
  static login(values: LoginValues): Promise<any>;
18
+ /**
19
+ * @deprecated
20
+ * */
18
21
  static registration(values: any): Promise<any>;
22
+ static parseProcessAnswer(answer: IRegistrationAnswer): IRegistrationAnswer;
23
+ static startRegistrationProcess(values: any): Promise<IRegistrationAnswer>;
24
+ static confirmPhoneRegistrationProcess(values: any): Promise<IRegistrationAnswer>;
25
+ static confirmEmailRegistrationProcess(values: any): Promise<IRegistrationAnswer>;
26
+ static finishEmailRegistrationProcess(values: any): Promise<IRegistrationAnswer>;
27
+ /**
28
+ * @description Steps of registration process are the same. Current method provide one requestInterface for all
29
+ * steps.
30
+ * */
31
+ static requestStepRegistrationProcess(name: string, values: any): Promise<IRegistrationAnswer>;
19
32
  }
33
+ interface IRegistrationAnswer {
34
+ appName: string;
35
+ maskedAddress: string;
36
+ otpCodeAttempts: number;
37
+ otpPrefix: string;
38
+ statusCode: number;
39
+ statusName: statusName;
40
+ token: string;
41
+ }
42
+ declare type statusName = 'EmailCodeRequired' | 'PhoneCodeRequired' | 'FinishRequired' | 'Registred' | 'EmailIncorrect' | 'PhoneIncorrect' | 'EmailCodeIncorrect' | 'PhoneCodeIncorrect' | 'EmailCodeExpired' | 'PhoneCodeExpired' | 'PasswordIncorrect' | 'TokenIncorrect' | 'ApplicationNotSupported';
20
43
  export {};
@@ -1,8 +1,4 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
- user: {
3
- type: any;
4
- required: true;
5
- };
6
2
  popup: {
7
3
  type: any;
8
4
  required: true;
@@ -10,10 +6,6 @@ declare const _default: import("vue").DefineComponent<{
10
6
  }, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
11
7
  [key: string]: any;
12
8
  }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
13
- user: {
14
- type: any;
15
- required: true;
16
- };
17
9
  popup: {
18
10
  type: any;
19
11
  required: true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eservices-core",
3
- "version": "1.0.341",
3
+ "version": "1.0.344",
4
4
  "description": "----",
5
5
  "author": "",
6
6
  "scripts": {