@kontur.candy/tools 2.221.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.
- package/distr/Common/CandyApiClient/CandyApiClient.js +25 -63
- package/distr/Common/CandyApiClient/CandyApiClient.js.map +1 -1
- package/distr/Common/CandyApiClient/DigestApiClient/Types/DigestQueryFilter.js.map +1 -1
- package/distr/Common/CandyApiClient/FakeCandyApiClient.js +6 -12
- package/distr/Common/CandyApiClient/FakeCandyApiClient.js.map +1 -1
- package/distr/Common/CandyApiClient/ICandyApiClient.js.map +1 -1
- package/distr/Common/CandyApiClient/Types/DraftActions/CombineFufResult.js +2 -1
- package/distr/Common/CandyApiClient/Types/DraftActions/CombineFufResult.js.map +1 -1
- package/distr/Common/CandyApiClient/Types/DraftActions/FileProperties.js.map +1 -1
- package/distr/Common/CandyApiClient/Types/DraftActions/NeedNormalizationError.js +9 -0
- package/distr/Common/CandyApiClient/Types/DraftActions/NeedNormalizationError.js.map +1 -0
- package/distr/Common/ModelPath/AbsoluteModelFieldPath.js +1 -1
- package/distr/Common/ModelPath/AbsoluteModelFieldPath.js.map +1 -1
- package/distr/Common/ModelPath/ModelPathHelper.js +11 -0
- package/distr/Common/ModelPath/ModelPathHelper.js.map +1 -1
- package/distr/Common/PathConstants.js +6 -1
- package/distr/Common/PathConstants.js.map +1 -1
- package/distr/Common/SerializationUtils.js +14 -0
- package/distr/Common/SerializationUtils.js.map +1 -0
- package/distr/Common/TypingUtils.js +2 -2
- package/distr/Common/TypingUtils.js.map +1 -1
- package/distr/Tools/src/CLICommands/BuildForms/RunBuildForms.js +1 -1
- package/distr/Tools/src/CLICommands/BuildForms/RunBuildForms.js.map +1 -1
- package/distr/Tools/src/CLICommands/BuildServer/ResourcesControllers/BuildServerBackendResourcesController.js +4 -6
- package/distr/Tools/src/CLICommands/BuildServer/ResourcesControllers/BuildServerBackendResourcesController.js.map +1 -1
- package/distr/Tools/src/CLICommands/BuildServer/ResourcesControllers/BuildServerBackendResourcesUpdatesController.js +34 -29
- package/distr/Tools/src/CLICommands/BuildServer/ResourcesControllers/BuildServerBackendResourcesUpdatesController.js.map +1 -1
- package/distr/Tools/src/CLICommands/BuildServer/ResourcesControllers/BuildServerBuildFormsController.js +9 -0
- package/distr/Tools/src/CLICommands/BuildServer/ResourcesControllers/BuildServerBuildFormsController.js.map +1 -1
- package/distr/Tools/src/CLICommands/BuildServer/ResourcesControllers/BuildServerFormInfoController.js +11 -0
- package/distr/Tools/src/CLICommands/BuildServer/ResourcesControllers/BuildServerFormInfoController.js.map +1 -1
- package/distr/Tools/src/CLICommands/BuildServer/ResourcesControllers/DevServers/BuildFormDevServer.js +1 -1
- package/distr/Tools/src/CLICommands/BuildServer/ResourcesControllers/DevServers/BuildFormDevServer.js.map +1 -1
- package/distr/Tools/src/CLICommands/BuildServer/RunBuildServer.js +2 -2
- package/distr/Tools/src/CLICommands/BuildServer/RunBuildServer.js.map +1 -1
- package/distr/Tools/src/CLICommands/DevBuild/RunDevBuild.js +1 -1
- package/distr/Tools/src/CLICommands/DevBuild/RunDevBuild.js.map +1 -1
- package/distr/Tools/src/CLICommands/SugarExtractor/ExtractTextsFromSugarController.js +10 -1
- package/distr/Tools/src/CLICommands/SugarExtractor/ExtractTextsFromSugarController.js.map +1 -1
- package/distr/Tools/src/Commons/GitUtils.js +17 -0
- package/distr/Tools/src/Commons/GitUtils.js.map +1 -0
- package/distr/Tools/src/Commons/TasksCore/FileSystemEntriesProducer.js +40 -8
- package/distr/Tools/src/Commons/TasksCore/FileSystemEntriesProducer.js.map +1 -1
- package/distr/Tools/src/LocalServerFrontEndDist/enhancedClient.js +1 -1
- package/distr/Tools/src/LocalServerFrontEndDist/index.js +1 -1
- package/distr/Tools/src/LocalServerFrontEndDist/index.js.map +1 -1
- package/distr/Tools/src/StaticFilesForProductionResourcesDir/client.js +41 -25
- package/distr/Tools/src/StaticFilesForProductionResourcesDir/client.js.map +1 -1
- package/distr/Tools/src/StaticFilesForProductionResourcesDir/client.min.js +40 -24
- package/distr/Tools/src/StaticFilesForProductionResourcesDir/client.min.js.map +1 -1
- package/package.json +2 -3
|
@@ -252,8 +252,8 @@
|
|
|
252
252
|
return e;
|
|
253
253
|
}, "ensureIsArray", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Common\\TypingUtils.ts"), o.register(s, "arrayHasLength", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Common\\TypingUtils.ts"), o.register(f, "arrayIsNotEmpty", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Common\\TypingUtils.ts"), o.register(function (e) {
|
|
254
254
|
return e.length > 0;
|
|
255
|
-
}, "arrayHasAtLeastOneItem", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Common\\TypingUtils.ts"), o.register(function (e) {
|
|
256
|
-
if (!f(e)) throw new Error("Array must be not empty");
|
|
255
|
+
}, "arrayHasAtLeastOneItem", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Common\\TypingUtils.ts"), o.register(function (e, t) {
|
|
256
|
+
if (!f(e)) throw new Error(null != t ? t : "Array must be not empty");
|
|
257
257
|
}, "ensureArrayIsNotEmpty", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Common\\TypingUtils.ts"), o.register(function (e, t) {
|
|
258
258
|
if (!s(e, t)) throw new Error("Array should has length ".concat(t));
|
|
259
259
|
}, "ensureArrayHasLength", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Common\\TypingUtils.ts"), o.register(function (e, t) {
|
|
@@ -552,18 +552,18 @@
|
|
|
552
552
|
}
|
|
553
553
|
return r;
|
|
554
554
|
}
|
|
555
|
-
function
|
|
555
|
+
function M(e) {
|
|
556
556
|
for (var t = 1; t < arguments.length; t++) {
|
|
557
557
|
var r = null != arguments[t] ? arguments[t] : {};
|
|
558
558
|
t % 2 ? x(Object(r), !0).forEach(function (t) {
|
|
559
|
-
|
|
559
|
+
H(e, t, r[t]);
|
|
560
560
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : x(Object(r)).forEach(function (t) {
|
|
561
561
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
|
|
562
562
|
});
|
|
563
563
|
}
|
|
564
564
|
return e;
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function H(e, t, r) {
|
|
567
567
|
return (t = function (e) {
|
|
568
568
|
var t = function (e) {
|
|
569
569
|
if ("object" != j(e) || !e) return e;
|
|
@@ -589,15 +589,15 @@
|
|
|
589
589
|
return n;
|
|
590
590
|
}
|
|
591
591
|
function U() {}
|
|
592
|
-
function
|
|
592
|
+
function D(e) {
|
|
593
593
|
return "string" == typeof e ? "false" !== e && "true" === e : Boolean(e);
|
|
594
594
|
}
|
|
595
|
-
function
|
|
595
|
+
function G() {
|
|
596
596
|
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "",
|
|
597
597
|
t = r.g.CF.keformsUrl || "";
|
|
598
598
|
return "".concat(t, "/").concat(e).replace(/([^:])\/{2,}/g, "$1/");
|
|
599
599
|
}
|
|
600
|
-
function
|
|
600
|
+
function R(e, t) {
|
|
601
601
|
if (void 0 === t) return e;
|
|
602
602
|
for (var r = [], n = 0, o = Object.keys(t); n < o.length; n++) {
|
|
603
603
|
var i = o[n],
|
|
@@ -606,7 +606,7 @@
|
|
|
606
606
|
}
|
|
607
607
|
return 0 === r.length ? e : e + "?" + r.join("&");
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function N(e) {
|
|
610
610
|
return new RegExp("^(?:".concat(e.replace(/\./g, "\\.").replace(/\*/g, "[a-z0-9-._]+"), ")$")).test(r.g.location.host);
|
|
611
611
|
}
|
|
612
612
|
function q(e) {
|
|
@@ -664,7 +664,7 @@
|
|
|
664
664
|
});
|
|
665
665
|
});
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function W(e, t) {
|
|
668
668
|
var n = e.gfv,
|
|
669
669
|
o = e.engineVersion;
|
|
670
670
|
if (r.g.CF.entryPoint[n]) t();else {
|
|
@@ -675,17 +675,17 @@
|
|
|
675
675
|
resourceZone: e.resourceZone
|
|
676
676
|
};
|
|
677
677
|
u.push(function (e) {
|
|
678
|
-
return S.q.styleSheet(
|
|
678
|
+
return S.q.styleSheet(G(R("static/public/styles/".concat(n).concat(a, ".css"), c)), !0, e);
|
|
679
679
|
}), u.push(function (e) {
|
|
680
|
-
return S.q.script(
|
|
680
|
+
return S.q.script(G(R("static/public/scripts/".concat(n).concat(a, ".js"), c)), e);
|
|
681
681
|
}), i && u.push(function (e) {
|
|
682
|
-
return S.q.styleSheet(
|
|
682
|
+
return S.q.styleSheet(G(R("static/public/styles/candy_".concat(o).concat(a, ".css"), c)), !1, e);
|
|
683
683
|
}, function (e) {
|
|
684
|
-
return S.q.script(
|
|
684
|
+
return S.q.script(G(R("static/public/scripts/candy_".concat(o).concat(a, ".js"), c)), e);
|
|
685
685
|
}), K(u, t);
|
|
686
686
|
}
|
|
687
687
|
}
|
|
688
|
-
function
|
|
688
|
+
function V(e, t, n) {
|
|
689
689
|
var o;
|
|
690
690
|
(null !== (o = r.g.CF.entryPoint[t.gfv]) && void 0 !== o ? o : (0, O.ku)("Form entry point ".concat(t.gfv, " not found.")))(e, t).then(function (e) {
|
|
691
691
|
var t = e.publicForm || (0, I.v)(e);
|
|
@@ -702,9 +702,9 @@
|
|
|
702
702
|
a = null,
|
|
703
703
|
u = t.ns,
|
|
704
704
|
c = t.draftId;
|
|
705
|
-
if (
|
|
705
|
+
if (N(B.r.konturDomains) ? B.r.authorized ? c ? u || (a = new Error("options.ns is required")) : a = new Error("options.draftId is required") : a = new Error("user.unauthenticated") : a = new Error("domain.untrusted"), a) i(a);else {
|
|
706
706
|
var l = null !== (n = t.resourceZone) && void 0 !== n ? n : q("resourceZone"),
|
|
707
|
-
s =
|
|
707
|
+
s = R(G((0, T.I)({
|
|
708
708
|
ns: u,
|
|
709
709
|
draftId: c
|
|
710
710
|
})), {
|
|
@@ -727,7 +727,7 @@
|
|
|
727
727
|
s,
|
|
728
728
|
f = n.gfv,
|
|
729
729
|
d = n.engineVersion,
|
|
730
|
-
y =
|
|
730
|
+
y = M(M(M({
|
|
731
731
|
authorized: B.r.authorized,
|
|
732
732
|
cauldronApiUrl: B.r.cauldronApiUrl,
|
|
733
733
|
isTestServer: B.r.isTestServer,
|
|
@@ -736,7 +736,8 @@
|
|
|
736
736
|
normativeUrl: B.r.normativeUrl,
|
|
737
737
|
konturDomains: B.r.konturDomains,
|
|
738
738
|
showNavigationSidebar: null === (o = t.showNavigationSidebar) || void 0 === o || o,
|
|
739
|
-
onRemoveAttachment: t.onRemoveAttachment
|
|
739
|
+
onRemoveAttachment: t.onRemoveAttachment,
|
|
740
|
+
onClearAttachment: t.onClearAttachment
|
|
740
741
|
}, t), n), {}, {
|
|
741
742
|
gfv: f,
|
|
742
743
|
engineVersion: d,
|
|
@@ -746,7 +747,7 @@
|
|
|
746
747
|
isDisabledCloseAndSaveButton: null !== (s = t.isDisabledCloseAndSaveButton) && void 0 !== s && s,
|
|
747
748
|
resourceZone: l
|
|
748
749
|
});
|
|
749
|
-
|
|
750
|
+
W({
|
|
750
751
|
gfv: y.gfv,
|
|
751
752
|
engineVersion: y.engineVersion,
|
|
752
753
|
resourceZone: y.resourceZone,
|
|
@@ -754,7 +755,7 @@
|
|
|
754
755
|
}, function (n) {
|
|
755
756
|
if (!n && r.g.CF.entryPoint[f]) {
|
|
756
757
|
var o = z(d);
|
|
757
|
-
|
|
758
|
+
V(e, M(M({}, y), {}, {
|
|
758
759
|
templatesApi: t.templatesApi,
|
|
759
760
|
renderForm: o
|
|
760
761
|
}), i);
|
|
@@ -769,14 +770,14 @@
|
|
|
769
770
|
J = {
|
|
770
771
|
start: Z,
|
|
771
772
|
entryPoint: {},
|
|
772
|
-
partialRenderingForIE8:
|
|
773
|
+
partialRenderingForIE8: D("{partialRenderingForIE8}"),
|
|
773
774
|
keformsUrl: "{keformsUrl}",
|
|
774
775
|
staffServiceUrl: "{staffServiceUrl}",
|
|
775
776
|
picklistUrl: "{picklistApiUrl}",
|
|
776
777
|
nidusUrl: "{nidusApiUrl}",
|
|
777
778
|
fsPrinterUrl: "{fsprinterApiUrl}"
|
|
778
779
|
};
|
|
779
|
-
r.g.CF = J, ($ = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.default : void 0) && ($.register(U, "defaultCallback", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), $.register(
|
|
780
|
+
r.g.CF = J, ($ = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.default : void 0) && ($.register(U, "defaultCallback", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), $.register(D, "parseBool", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), $.register(G, "url", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), $.register(R, "buildUrl", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), $.register(N, "isAllowed", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), $.register(q, "getParameterByName", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), $.register(K, "runParallel", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), $.register(function (e, t) {
|
|
780
781
|
try {
|
|
781
782
|
var r,
|
|
782
783
|
n,
|
|
@@ -798,7 +799,7 @@
|
|
|
798
799
|
} catch (e) {
|
|
799
800
|
return !1;
|
|
800
801
|
}
|
|
801
|
-
}, "isEngineVersionGreaterThanOrEqual", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), $.register(
|
|
802
|
+
}, "isEngineVersionGreaterThanOrEqual", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), $.register(W, "loadForm", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), $.register(V, "renderForm", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), $.register(z, "getEngineEntryPoint", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), $.register(Z, "start", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), $.register(J, "CandyClientExports", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts")), (Y = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.leaveModule : void 0) && Y(e);
|
|
802
803
|
},
|
|
803
804
|
171: function (e, t, r) {
|
|
804
805
|
var n;
|
|
@@ -1597,13 +1598,28 @@
|
|
|
1597
1598
|
value: function (e, t, r) {
|
|
1598
1599
|
return Promise.resolve([]);
|
|
1599
1600
|
}
|
|
1601
|
+
}, {
|
|
1602
|
+
key: "clearFormWithReload",
|
|
1603
|
+
value: (_clearFormWithReload = _asyncToGenerator(_regeneratorRuntime().mark(function e() {
|
|
1604
|
+
return _regeneratorRuntime().wrap(function (e) {
|
|
1605
|
+
for (;;) switch (e.prev = e.next) {
|
|
1606
|
+
case 0:
|
|
1607
|
+
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_0__.EH();
|
|
1608
|
+
case 1:
|
|
1609
|
+
case "end":
|
|
1610
|
+
return e.stop();
|
|
1611
|
+
}
|
|
1612
|
+
}, e);
|
|
1613
|
+
})), function () {
|
|
1614
|
+
return _clearFormWithReload.apply(this, arguments);
|
|
1615
|
+
})
|
|
1600
1616
|
}, {
|
|
1601
1617
|
key: "__reactstandin__regenerateByEval",
|
|
1602
1618
|
value: function __reactstandin__regenerateByEval(key, code) {
|
|
1603
1619
|
this[key] = eval(code);
|
|
1604
1620
|
}
|
|
1605
1621
|
}]);
|
|
1606
|
-
var _reloadInner, _INTERNAL__getSelectFunctionForDisableEmployeeInSS, _validateChildrenByPath;
|
|
1622
|
+
var _clearFormWithReload, _reloadInner, _INTERNAL__getSelectFunctionForDisableEmployeeInSS, _validateChildrenByPath;
|
|
1607
1623
|
}(),
|
|
1608
1624
|
reactHotLoader,
|
|
1609
1625
|
leaveModule;
|