@kontur.candy/tools 2.222.0 → 2.223.2

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.
Files changed (33) hide show
  1. package/distr/Common/CandyApiClient/CandyApiClient.js +25 -63
  2. package/distr/Common/CandyApiClient/CandyApiClient.js.map +1 -1
  3. package/distr/Common/CandyApiClient/DigestApiClient/Types/DigestQueryFilter.js.map +1 -1
  4. package/distr/Common/CandyApiClient/FakeCandyApiClient.js +6 -12
  5. package/distr/Common/CandyApiClient/FakeCandyApiClient.js.map +1 -1
  6. package/distr/Common/CandyApiClient/ICandyApiClient.js.map +1 -1
  7. package/distr/Common/CandyApiClient/Types/DraftActions/CombineFufResult.js +2 -1
  8. package/distr/Common/CandyApiClient/Types/DraftActions/CombineFufResult.js.map +1 -1
  9. package/distr/Common/CandyApiClient/Types/DraftActions/FileProperties.js.map +1 -1
  10. package/distr/Common/CandyApiClient/Types/DraftActions/NeedNormalizationError.js +9 -0
  11. package/distr/Common/CandyApiClient/Types/DraftActions/NeedNormalizationError.js.map +1 -0
  12. package/distr/Common/ModelPath/ModelPathHelper.js +5 -0
  13. package/distr/Common/ModelPath/ModelPathHelper.js.map +1 -1
  14. package/distr/Common/PathConstants.js +6 -1
  15. package/distr/Common/PathConstants.js.map +1 -1
  16. package/distr/Common/TypingUtils.js +2 -2
  17. package/distr/Common/TypingUtils.js.map +1 -1
  18. package/distr/Tools/src/CLICommands/BuildForms/RunBuildForms.js +1 -1
  19. package/distr/Tools/src/CLICommands/BuildForms/RunBuildForms.js.map +1 -1
  20. package/distr/Tools/src/CLICommands/BuildServer/ResourcesControllers/DevServers/BuildFormDevServer.js +1 -1
  21. package/distr/Tools/src/CLICommands/BuildServer/ResourcesControllers/DevServers/BuildFormDevServer.js.map +1 -1
  22. package/distr/Tools/src/CLICommands/DevBuild/RunDevBuild.js +1 -1
  23. package/distr/Tools/src/CLICommands/DevBuild/RunDevBuild.js.map +1 -1
  24. package/distr/Tools/src/Commons/TasksCore/FileSystemEntriesProducer.js +40 -8
  25. package/distr/Tools/src/Commons/TasksCore/FileSystemEntriesProducer.js.map +1 -1
  26. package/distr/Tools/src/LocalServerFrontEndDist/enhancedClient.js +1 -1
  27. package/distr/Tools/src/LocalServerFrontEndDist/index.js +1 -1
  28. package/distr/Tools/src/LocalServerFrontEndDist/index.js.map +1 -1
  29. package/distr/Tools/src/StaticFilesForProductionResourcesDir/client.js +41 -25
  30. package/distr/Tools/src/StaticFilesForProductionResourcesDir/client.js.map +1 -1
  31. package/distr/Tools/src/StaticFilesForProductionResourcesDir/client.min.js +40 -24
  32. package/distr/Tools/src/StaticFilesForProductionResourcesDir/client.min.js.map +1 -1
  33. package/package.json +2 -3
@@ -327,7 +327,7 @@
327
327
  });
328
328
  };
329
329
  }
330
- function U(e, t) {
330
+ function R(e, t) {
331
331
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
332
332
  }
333
333
  function C(e, t) {
@@ -336,7 +336,7 @@
336
336
  o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, r(o.key), o);
337
337
  }
338
338
  }
339
- function R(e, t, r) {
339
+ function U(e, t, r) {
340
340
  return t && C(e.prototype, t), r && C(e, r), Object.defineProperty(e, "prototype", {
341
341
  writable: !1
342
342
  }), e;
@@ -344,9 +344,9 @@
344
344
  T.polyfill = !0, i.fetch || (i.fetch = T, i.Headers = m, i.Request = O, i.Response = j);
345
345
  var I = function () {
346
346
  function e() {
347
- U(this, e);
347
+ R(this, e);
348
348
  }
349
- return R(e, null, [{
349
+ return U(e, null, [{
350
350
  key: "diagnoseNetworkError",
351
351
  value: (t = B(regeneratorRuntime.mark(function e(t) {
352
352
  var r, n;
@@ -514,15 +514,15 @@
514
514
  }
515
515
  var G = function (e) {
516
516
  function t() {
517
- return U(this, t), q(this, t, ["Operation not implemented"]);
517
+ return R(this, t), q(this, t, ["Operation not implemented"]);
518
518
  }
519
- return N(t, e), R(t);
519
+ return N(t, e), U(t);
520
520
  }(function (e) {
521
521
  function t(e) {
522
522
  var r;
523
- return U(this, t), (r = q(this, t, [e])).name = r.constructor.name, r;
523
+ return R(this, t), (r = q(this, t, [e])).name = r.constructor.name, r;
524
524
  }
525
- return N(t, e), R(t);
525
+ return N(t, e), U(t);
526
526
  }(z(Error)));
527
527
  function V(e, t) {
528
528
  var r = Object.keys(e);
@@ -560,14 +560,14 @@
560
560
  return null == r ? {} : n({}, t, r.value);
561
561
  });
562
562
  }
563
- function X(e) {
563
+ function W(e) {
564
564
  return e.reduce(function (e, t) {
565
565
  return Z(Z({}, e), t);
566
566
  }, {});
567
567
  }
568
- var W = function () {
569
- return R(function e(t) {
570
- U(this, e), this.form = void 0, this.form = t;
568
+ var X = function () {
569
+ return U(function e(t) {
570
+ R(this, e), this.form = void 0, this.form = t;
571
571
  }, [{
572
572
  key: "navigateByHighlanderPaths",
573
573
  value: function (e) {
@@ -600,7 +600,7 @@
600
600
  }
601
601
  }, {
602
602
  key: "validateChildrenByPath",
603
- value: (o = B(regeneratorRuntime.mark(function e(t) {
603
+ value: (i = B(regeneratorRuntime.mark(function e(t) {
604
604
  return regeneratorRuntime.wrap(function (e) {
605
605
  for (;;) switch (e.prev = e.next) {
606
606
  case 0:
@@ -611,7 +611,7 @@
611
611
  }
612
612
  }, e);
613
613
  })), function (e) {
614
- return o.apply(this, arguments);
614
+ return i.apply(this, arguments);
615
615
  })
616
616
  }, {
617
617
  key: "__INTERNAL__importFromEmployeeService",
@@ -620,7 +620,7 @@
620
620
  }
621
621
  }, {
622
622
  key: "__INTERNAL__getSelectFunctionForDisableEmployeeInSS",
623
- value: (r = B(regeneratorRuntime.mark(function e(t) {
623
+ value: (o = B(regeneratorRuntime.mark(function e(t) {
624
624
  return regeneratorRuntime.wrap(function (e) {
625
625
  for (;;) switch (e.prev = e.next) {
626
626
  case 0:
@@ -631,7 +631,7 @@
631
631
  }
632
632
  }, e);
633
633
  })), function (e) {
634
- return r.apply(this, arguments);
634
+ return o.apply(this, arguments);
635
635
  })
636
636
  }, {
637
637
  key: "getModalUnitOpenedInstance",
@@ -739,7 +739,7 @@
739
739
  }
740
740
  }, {
741
741
  key: "reloadInner",
742
- value: (e = B(regeneratorRuntime.mark(function e() {
742
+ value: (r = B(regeneratorRuntime.mark(function e() {
743
743
  return regeneratorRuntime.wrap(function (e) {
744
744
  for (;;) switch (e.prev = e.next) {
745
745
  case 0:
@@ -750,7 +750,7 @@
750
750
  }
751
751
  }, e);
752
752
  })), function () {
753
- return e.apply(this, arguments);
753
+ return r.apply(this, arguments);
754
754
  })
755
755
  }, {
756
756
  key: "getWorkingEventsForEmployee",
@@ -792,13 +792,13 @@
792
792
  key: "get",
793
793
  value: function (e) {
794
794
  var t = this;
795
- if (Array.isArray(e)) return X(e.map(function (e) {
795
+ if (Array.isArray(e)) return W(e.map(function (e) {
796
796
  return J(t.form.model.getChunk(e));
797
797
  }).reduce(function (e, t) {
798
798
  return e.concat(t);
799
799
  }, []));
800
- if ("string" == typeof e) return X(J(this.form.model.getChunk(e)));
801
- if (void 0 === e) return X(J(this.form.model.getChunk(this.form.settings.formRoot)));
800
+ if ("string" == typeof e) return W(J(this.form.model.getChunk(e)));
801
+ if (void 0 === e) return W(J(this.form.model.getChunk(this.form.settings.formRoot)));
802
802
  throw new Error("form.get() parameter should be string path or array of paths");
803
803
  }
804
804
  }, {
@@ -916,8 +916,23 @@
916
916
  value: function (e, t, r) {
917
917
  return Promise.resolve([]);
918
918
  }
919
+ }, {
920
+ key: "clearFormWithReload",
921
+ value: (e = B(regeneratorRuntime.mark(function e() {
922
+ return regeneratorRuntime.wrap(function (e) {
923
+ for (;;) switch (e.prev = e.next) {
924
+ case 0:
925
+ throw new G();
926
+ case 1:
927
+ case "end":
928
+ return e.stop();
929
+ }
930
+ }, e);
931
+ })), function () {
932
+ return e.apply(this, arguments);
933
+ })
919
934
  }]);
920
- var e, r, o;
935
+ var e, r, o, i;
921
936
  }();
922
937
  function K(e, t) {
923
938
  var r = Object.keys(e);
@@ -1043,7 +1058,8 @@
1043
1058
  normativeUrl: D.normativeUrl,
1044
1059
  konturDomains: D.konturDomains,
1045
1060
  showNavigationSidebar: null === (o = r.showNavigationSidebar) || void 0 === o || o,
1046
- onRemoveAttachment: r.onRemoveAttachment
1061
+ onRemoveAttachment: r.onRemoveAttachment,
1062
+ onClearAttachment: r.onClearAttachment
1047
1063
  }, r), n), {}, {
1048
1064
  gfv: f,
1049
1065
  engineVersion: h,
@@ -1099,7 +1115,7 @@
1099
1115
  throw "string" == typeof e || null == e ? new Error(null != e ? e : "Undefined is not allowed") : e;
1100
1116
  }("Form entry point ".concat(r.gfv, " not found.")))(t, r).then(function (e) {
1101
1117
  var t = e.publicForm || function (e) {
1102
- return new W(e);
1118
+ return new X(e);
1103
1119
  }(e);
1104
1120
  n(null, t);
1105
1121
  }).catch(n);