@redneckz/wildless-cms-uni-blocks 0.14.174 → 0.14.176
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/bin/migration-scripts/0.14.169.js +1 -1
- package/bin/migration-scripts/0.14.175.js +28 -0
- package/bundle/bundle.umd.js +3 -6
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/ApplicationForm/renderAgreementWithSubmit.js +1 -1
- package/dist/components/ApplicationForm/renderAgreementWithSubmit.js.map +1 -1
- package/dist/components/Calculator/getBonus.js +1 -4
- package/dist/components/Calculator/getBonus.js.map +1 -1
- package/lib/components/ApplicationForm/renderAgreementWithSubmit.js +1 -1
- package/lib/components/ApplicationForm/renderAgreementWithSubmit.js.map +1 -1
- package/lib/components/Calculator/getBonus.js +1 -4
- package/lib/components/Calculator/getBonus.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +3 -6
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderAgreementWithSubmit.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderAgreementWithSubmit.js.map +1 -1
- package/mobile/dist/components/Calculator/getBonus.js +1 -4
- package/mobile/dist/components/Calculator/getBonus.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderAgreementWithSubmit.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderAgreementWithSubmit.js.map +1 -1
- package/mobile/lib/components/Calculator/getBonus.js +1 -4
- package/mobile/lib/components/Calculator/getBonus.js.map +1 -1
- package/mobile/src/components/ApplicationForm/renderAgreementWithSubmit.tsx +1 -1
- package/mobile/src/components/Calculator/getBonus.ts +0 -6
- package/package.json +1 -1
- package/src/components/ApplicationForm/renderAgreementWithSubmit.tsx +1 -1
- package/src/components/Calculator/getBonus.ts +0 -6
|
@@ -7,6 +7,6 @@ const withValidator_1 = require("../../validation/withValidator");
|
|
|
7
7
|
const Footnote_1 = require("./Footnote");
|
|
8
8
|
const renderSubmitButton_1 = require("./renderSubmitButton");
|
|
9
9
|
const validators_1 = require("./validators");
|
|
10
|
-
const renderAgreementWithSubmit = (consentDataProcessing, link, button) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex col-span-2 gap-m flex-col lg:flex-row w-full justify-between items-baseline", children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex gap-3", children: [(0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { ...consentDataProcessing }), (0, jsx_runtime_1.jsx)(Footnote_1.Footnote, {
|
|
10
|
+
const renderAgreementWithSubmit = (consentDataProcessing, link, button) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex col-span-2 gap-m flex-col lg:flex-row w-full justify-between items-baseline", children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex gap-3", children: [(0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { ...consentDataProcessing }), (0, jsx_runtime_1.jsx)(Footnote_1.Footnote, { link: link })] }), (0, renderErrorText_1.renderErrorText)((0, withValidator_1.withValidator)(consentDataProcessing, validators_1.checkboxValidator).error)] }), (0, renderSubmitButton_1.renderSubmitButton)(button)] }));
|
|
11
11
|
exports.renderAgreementWithSubmit = renderAgreementWithSubmit;
|
|
12
12
|
//# sourceMappingURL=renderAgreementWithSubmit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderAgreementWithSubmit.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderAgreementWithSubmit.tsx"],"names":[],"mappings":";;;AAEA,6DAA0D;AAC1D,wEAAqE;AACrE,kEAA+D;AAE/D,yCAAsC;AACtC,6DAA0D;AAC1D,6CAAiD;AAE1C,MAAM,yBAAyB,GAAG,CACvC,qBAA0C,EAC1C,IAAgB,EAChB,MAA0B,EAC1B,EAAE,CAAC,CACH,iCAAK,SAAS,EAAC,kFAAkF,aAC/F,4CACE,iCAAK,SAAS,EAAC,YAAY,aACzB,uBAAC,mBAAQ,OAAK,qBAAqB,GAAI,EACvC,uBAAC,mBAAQ,IAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"renderAgreementWithSubmit.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderAgreementWithSubmit.tsx"],"names":[],"mappings":";;;AAEA,6DAA0D;AAC1D,wEAAqE;AACrE,kEAA+D;AAE/D,yCAAsC;AACtC,6DAA0D;AAC1D,6CAAiD;AAE1C,MAAM,yBAAyB,GAAG,CACvC,qBAA0C,EAC1C,IAAgB,EAChB,MAA0B,EAC1B,EAAE,CAAC,CACH,iCAAK,SAAS,EAAC,kFAAkF,aAC/F,4CACE,iCAAK,SAAS,EAAC,YAAY,aACzB,uBAAC,mBAAQ,OAAK,qBAAqB,GAAI,EACvC,uBAAC,mBAAQ,IAAC,IAAI,EAAE,IAAI,GAAI,IACpB,EACL,IAAA,iCAAe,EAAC,IAAA,6BAAa,EAAC,qBAAqB,EAAE,8BAAiB,CAAC,CAAC,KAAK,CAAC,IAC3E,EACL,IAAA,uCAAkB,EAAC,MAAM,CAAC,IACvB,CACP,CAAC;AAfW,QAAA,yBAAyB,6BAepC"}
|
|
@@ -2,10 +2,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.getBonus = void 0;
|
|
3
3
|
const constants_1 = require("./constants");
|
|
4
4
|
const getBonus = (params, bonusTravelValue, bonusOtherValue) => {
|
|
5
|
-
const {
|
|
6
|
-
if (bonusTravelValue === minSumTravel && bonusOtherValue === minSumOther) {
|
|
7
|
-
return [0, 0];
|
|
8
|
-
}
|
|
5
|
+
const { maxBonus, prefMonthsNum, prefTravelBonusRate, prefRestBonusRate, travelBonusRate, restBonusRate, } = params;
|
|
9
6
|
const prefBonus = Math.min(Math.round(prefTravelBonusRate * bonusTravelValue) +
|
|
10
7
|
Math.round(prefRestBonusRate * bonusOtherValue), maxBonus);
|
|
11
8
|
const bonus = Math.min(Math.round(travelBonusRate * bonusTravelValue) + Math.round(restBonusRate * bonusOtherValue), maxBonus);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBonus.js","sourceRoot":"","sources":["../../../src/components/Calculator/getBonus.ts"],"names":[],"mappings":";;AAAA,2CAA6C;AAGtC,MAAM,QAAQ,GAAG,CACtB,MAAuC,EACvC,gBAAwB,EACxB,eAAuB,EACvB,EAAE;IACF,MAAM,EACJ,
|
|
1
|
+
{"version":3,"file":"getBonus.js","sourceRoot":"","sources":["../../../src/components/Calculator/getBonus.ts"],"names":[],"mappings":";;AAAA,2CAA6C;AAGtC,MAAM,QAAQ,GAAG,CACtB,MAAuC,EACvC,gBAAwB,EACxB,eAAuB,EACvB,EAAE;IACF,MAAM,EACJ,QAAQ,EACR,aAAa,EACb,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,aAAa,GACd,GAAG,MAAM,CAAC;IAEX,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CACxB,IAAI,CAAC,KAAK,CAAC,mBAAmB,GAAG,gBAAgB,CAAC;QAChD,IAAI,CAAC,KAAK,CAAC,iBAAiB,GAAG,eAAe,CAAC,EACjD,QAAQ,CACT,CAAC;IAEF,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CACpB,IAAI,CAAC,KAAK,CAAC,eAAe,GAAG,gBAAgB,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,GAAG,eAAe,CAAC,EAC5F,QAAQ,CACT,CAAC;IAEF,MAAM,SAAS,GAAG,SAAS,GAAG,aAAa,GAAG,KAAK,GAAG,CAAC,0BAAc,GAAG,aAAa,CAAC,CAAC;IAEvF,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AAChC,CAAC,CAAC;AA5BW,QAAA,QAAQ,YA4BnB"}
|
|
@@ -5,5 +5,5 @@ import { withValidator } from '../../validation/withValidator.js';
|
|
|
5
5
|
import { Footnote } from './Footnote.js';
|
|
6
6
|
import { renderSubmitButton } from './renderSubmitButton.js';
|
|
7
7
|
import { checkboxValidator } from './validators.js';
|
|
8
|
-
export const renderAgreementWithSubmit = (consentDataProcessing, link, button) => (_jsxs("div", { className: "flex col-span-2 gap-m flex-col lg:flex-row w-full justify-between items-baseline", children: [_jsxs("div", { children: [_jsxs("div", { className: "flex gap-3", children: [_jsx(Checkbox, { ...consentDataProcessing }), _jsx(Footnote, {
|
|
8
|
+
export const renderAgreementWithSubmit = (consentDataProcessing, link, button) => (_jsxs("div", { className: "flex col-span-2 gap-m flex-col lg:flex-row w-full justify-between items-baseline", children: [_jsxs("div", { children: [_jsxs("div", { className: "flex gap-3", children: [_jsx(Checkbox, { ...consentDataProcessing }), _jsx(Footnote, { link: link })] }), renderErrorText(withValidator(consentDataProcessing, checkboxValidator).error)] }), renderSubmitButton(button)] }));
|
|
9
9
|
//# sourceMappingURL=renderAgreementWithSubmit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderAgreementWithSubmit.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderAgreementWithSubmit.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,CAAC,MAAM,yBAAyB,GAAG,CACvC,qBAA0C,EAC1C,IAAgB,EAChB,MAA0B,EAC1B,EAAE,CAAC,CACH,eAAK,SAAS,EAAC,kFAAkF,aAC/F,0BACE,eAAK,SAAS,EAAC,YAAY,aACzB,KAAC,QAAQ,OAAK,qBAAqB,GAAI,EACvC,KAAC,QAAQ,IAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"renderAgreementWithSubmit.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderAgreementWithSubmit.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,CAAC,MAAM,yBAAyB,GAAG,CACvC,qBAA0C,EAC1C,IAAgB,EAChB,MAA0B,EAC1B,EAAE,CAAC,CACH,eAAK,SAAS,EAAC,kFAAkF,aAC/F,0BACE,eAAK,SAAS,EAAC,YAAY,aACzB,KAAC,QAAQ,OAAK,qBAAqB,GAAI,EACvC,KAAC,QAAQ,IAAC,IAAI,EAAE,IAAI,GAAI,IACpB,EACL,eAAe,CAAC,aAAa,CAAC,qBAAqB,EAAE,iBAAiB,CAAC,CAAC,KAAK,CAAC,IAC3E,EACL,kBAAkB,CAAC,MAAM,CAAC,IACvB,CACP,CAAC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { MONTHS_IN_YEAR } from './constants.js';
|
|
2
2
|
export const getBonus = (params, bonusTravelValue, bonusOtherValue) => {
|
|
3
|
-
const {
|
|
4
|
-
if (bonusTravelValue === minSumTravel && bonusOtherValue === minSumOther) {
|
|
5
|
-
return [0, 0];
|
|
6
|
-
}
|
|
3
|
+
const { maxBonus, prefMonthsNum, prefTravelBonusRate, prefRestBonusRate, travelBonusRate, restBonusRate, } = params;
|
|
7
4
|
const prefBonus = Math.min(Math.round(prefTravelBonusRate * bonusTravelValue) +
|
|
8
5
|
Math.round(prefRestBonusRate * bonusOtherValue), maxBonus);
|
|
9
6
|
const bonus = Math.min(Math.round(travelBonusRate * bonusTravelValue) + Math.round(restBonusRate * bonusOtherValue), maxBonus);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBonus.js","sourceRoot":"","sources":["../../../src/components/Calculator/getBonus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG7C,MAAM,CAAC,MAAM,QAAQ,GAAG,CACtB,MAAuC,EACvC,gBAAwB,EACxB,eAAuB,EACvB,EAAE;IACF,MAAM,EACJ,
|
|
1
|
+
{"version":3,"file":"getBonus.js","sourceRoot":"","sources":["../../../src/components/Calculator/getBonus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG7C,MAAM,CAAC,MAAM,QAAQ,GAAG,CACtB,MAAuC,EACvC,gBAAwB,EACxB,eAAuB,EACvB,EAAE;IACF,MAAM,EACJ,QAAQ,EACR,aAAa,EACb,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,aAAa,GACd,GAAG,MAAM,CAAC;IAEX,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CACxB,IAAI,CAAC,KAAK,CAAC,mBAAmB,GAAG,gBAAgB,CAAC;QAChD,IAAI,CAAC,KAAK,CAAC,iBAAiB,GAAG,eAAe,CAAC,EACjD,QAAQ,CACT,CAAC;IAEF,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CACpB,IAAI,CAAC,KAAK,CAAC,eAAe,GAAG,gBAAgB,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,GAAG,eAAe,CAAC,EAC5F,QAAQ,CACT,CAAC;IAEF,MAAM,SAAS,GAAG,SAAS,GAAG,aAAa,GAAG,KAAK,GAAG,CAAC,cAAc,GAAG,aAAa,CAAC,CAAC;IAEvF,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AAChC,CAAC,CAAC"}
|
|
@@ -17,7 +17,7 @@ export const renderAgreementWithSubmit = (
|
|
|
17
17
|
<div>
|
|
18
18
|
<div className="flex gap-3">
|
|
19
19
|
<Checkbox {...consentDataProcessing} />
|
|
20
|
-
<Footnote
|
|
20
|
+
<Footnote link={link} />
|
|
21
21
|
</div>
|
|
22
22
|
{renderErrorText(withValidator(consentDataProcessing, checkboxValidator).error)}
|
|
23
23
|
</div>
|
|
@@ -7,8 +7,6 @@ export const getBonus = (
|
|
|
7
7
|
bonusOtherValue: number,
|
|
8
8
|
) => {
|
|
9
9
|
const {
|
|
10
|
-
minSumTravel,
|
|
11
|
-
minSumOther,
|
|
12
10
|
maxBonus,
|
|
13
11
|
prefMonthsNum,
|
|
14
12
|
prefTravelBonusRate,
|
|
@@ -17,10 +15,6 @@ export const getBonus = (
|
|
|
17
15
|
restBonusRate,
|
|
18
16
|
} = params;
|
|
19
17
|
|
|
20
|
-
if (bonusTravelValue === minSumTravel && bonusOtherValue === minSumOther) {
|
|
21
|
-
return [0, 0];
|
|
22
|
-
}
|
|
23
|
-
|
|
24
18
|
const prefBonus = Math.min(
|
|
25
19
|
Math.round(prefTravelBonusRate * bonusTravelValue) +
|
|
26
20
|
Math.round(prefRestBonusRate * bonusOtherValue),
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@ export const renderAgreementWithSubmit = (
|
|
|
17
17
|
<div>
|
|
18
18
|
<div className="flex gap-3">
|
|
19
19
|
<Checkbox {...consentDataProcessing} />
|
|
20
|
-
<Footnote
|
|
20
|
+
<Footnote link={link} />
|
|
21
21
|
</div>
|
|
22
22
|
{renderErrorText(withValidator(consentDataProcessing, checkboxValidator).error)}
|
|
23
23
|
</div>
|
|
@@ -7,8 +7,6 @@ export const getBonus = (
|
|
|
7
7
|
bonusOtherValue: number,
|
|
8
8
|
) => {
|
|
9
9
|
const {
|
|
10
|
-
minSumTravel,
|
|
11
|
-
minSumOther,
|
|
12
10
|
maxBonus,
|
|
13
11
|
prefMonthsNum,
|
|
14
12
|
prefTravelBonusRate,
|
|
@@ -17,10 +15,6 @@ export const getBonus = (
|
|
|
17
15
|
restBonusRate,
|
|
18
16
|
} = params;
|
|
19
17
|
|
|
20
|
-
if (bonusTravelValue === minSumTravel && bonusOtherValue === minSumOther) {
|
|
21
|
-
return [0, 0];
|
|
22
|
-
}
|
|
23
|
-
|
|
24
18
|
const prefBonus = Math.min(
|
|
25
19
|
Math.round(prefTravelBonusRate * bonusTravelValue) +
|
|
26
20
|
Math.round(prefRestBonusRate * bonusOtherValue),
|