@redneckz/wildless-cms-uni-blocks 0.14.667 → 0.14.668
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/bundle/bundle.umd.js +9 -2
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/utils/dateToISO.d.ts +1 -0
- package/dist/components/CreditCardForm/getSixthStepData.js +2 -2
- package/dist/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/dist/utils/dateToISO.d.ts +1 -0
- package/dist/utils/dateToISO.js +10 -0
- package/dist/utils/dateToISO.js.map +1 -0
- package/lib/components/CreditCardForm/getSixthStepData.js +2 -2
- package/lib/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/lib/utils/dateToISO.d.ts +1 -0
- package/lib/utils/dateToISO.js +7 -0
- package/lib/utils/dateToISO.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +9 -2
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/utils/dateToISO.d.ts +1 -0
- package/mobile/dist/components/CreditCardForm/getSixthStepData.js +2 -2
- package/mobile/dist/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/mobile/dist/utils/dateToISO.d.ts +1 -0
- package/mobile/dist/utils/dateToISO.js +10 -0
- package/mobile/dist/utils/dateToISO.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/getSixthStepData.js +2 -2
- package/mobile/lib/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/mobile/lib/utils/dateToISO.d.ts +1 -0
- package/mobile/lib/utils/dateToISO.js +7 -0
- package/mobile/lib/utils/dateToISO.js.map +1 -0
- package/mobile/src/components/CreditCardForm/getSixthStepData.ts +2 -2
- package/mobile/src/utils/dateToISO.ts +7 -0
- package/package.json +1 -1
- package/src/components/CreditCardForm/getSixthStepData.ts +2 -2
- package/src/utils/dateToISO.ts +7 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dateToISO: (date: string | Date) => string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.getSixthStepData = exports.getDeliveryData = void 0;
|
|
3
|
-
const
|
|
3
|
+
const dateToISO_1 = require("../../utils/dateToISO");
|
|
4
4
|
const utils_1 = require("../CreditForm/utils");
|
|
5
5
|
const getDeliveryData = (formData) => {
|
|
6
6
|
const { methodObtain, deliveryDate = '' } = formData;
|
|
7
7
|
return {
|
|
8
8
|
courierDeliveryFlg: methodObtain === 'courier',
|
|
9
|
-
deliveryDate: (0,
|
|
9
|
+
deliveryDate: (0, dateToISO_1.dateToISO)(deliveryDate),
|
|
10
10
|
deliveryTimeCd: { value: 'TIME_2' },
|
|
11
11
|
};
|
|
12
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSixthStepData.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/getSixthStepData.ts"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"getSixthStepData.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/getSixthStepData.ts"],"names":[],"mappings":";;AAAA,qDAAkD;AAElD,+CAA8D;AAEvD,MAAM,eAAe,GAAG,CAAC,QAAmB,EAAE,EAAE;IACrD,MAAM,EAAE,YAAY,EAAE,YAAY,GAAG,EAAE,EAAE,GAAG,QAAQ,CAAC;IAErD,OAAO;QACL,kBAAkB,EAAE,YAAY,KAAK,SAAS;QAC9C,YAAY,EAAE,IAAA,qBAAS,EAAC,YAAY,CAAC;QACrC,cAAc,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE;KACpC,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,eAAe,mBAQ1B;AAEK,MAAM,gBAAgB,GAAG,CAAC,QAAmB,EAAE,EAAE;IACtD,MAAM,EAAE,cAAc,EAAE,GAAG,QAAQ,CAAC;IAEpC,OAAO;QACL,oBAAoB,EAAE,IAAA,+BAAuB,EAAC,EAAE,cAAc,EAAE,CAAC;KAClE,CAAC;AACJ,CAAC,CAAC;AANW,QAAA,gBAAgB,oBAM3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dateToISO: (date: string | Date) => string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.dateToISO = void 0;
|
|
3
|
+
const dateToISO = (date) => {
|
|
4
|
+
if (!date) {
|
|
5
|
+
return '';
|
|
6
|
+
}
|
|
7
|
+
return new Date(date).toISOString().split('.')[0];
|
|
8
|
+
};
|
|
9
|
+
exports.dateToISO = dateToISO;
|
|
10
|
+
//# sourceMappingURL=dateToISO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dateToISO.js","sourceRoot":"","sources":["../../src/utils/dateToISO.ts"],"names":[],"mappings":";;AAAO,MAAM,SAAS,GAAG,CAAC,IAAmB,EAAE,EAAE;IAC/C,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,EAAE,CAAC;KACX;IAED,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AACpD,CAAC,CAAC;AANW,QAAA,SAAS,aAMpB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { dateToISO } from '../../utils/dateToISO.js';
|
|
2
2
|
import { getParticipantAddresses } from '../CreditForm/utils.js';
|
|
3
3
|
export const getDeliveryData = (formData) => {
|
|
4
4
|
const { methodObtain, deliveryDate = '' } = formData;
|
|
5
5
|
return {
|
|
6
6
|
courierDeliveryFlg: methodObtain === 'courier',
|
|
7
|
-
deliveryDate:
|
|
7
|
+
deliveryDate: dateToISO(deliveryDate),
|
|
8
8
|
deliveryTimeCd: { value: 'TIME_2' },
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSixthStepData.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/getSixthStepData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"getSixthStepData.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/getSixthStepData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,QAAmB,EAAE,EAAE;IACrD,MAAM,EAAE,YAAY,EAAE,YAAY,GAAG,EAAE,EAAE,GAAG,QAAQ,CAAC;IAErD,OAAO;QACL,kBAAkB,EAAE,YAAY,KAAK,SAAS;QAC9C,YAAY,EAAE,SAAS,CAAC,YAAY,CAAC;QACrC,cAAc,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE;KACpC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,QAAmB,EAAE,EAAE;IACtD,MAAM,EAAE,cAAc,EAAE,GAAG,QAAQ,CAAC;IAEpC,OAAO;QACL,oBAAoB,EAAE,uBAAuB,CAAC,EAAE,cAAc,EAAE,CAAC;KAClE,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dateToISO: (date: string | Date) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dateToISO.js","sourceRoot":"","sources":["../../src/utils/dateToISO.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,IAAmB,EAAE,EAAE;IAC/C,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,EAAE,CAAC;KACX;IAED,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AACpD,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { dateToISO } from '../../utils/dateToISO';
|
|
2
2
|
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
3
3
|
import { getParticipantAddresses } from '../CreditForm/utils';
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@ export const getDeliveryData = (formData: FormState) => {
|
|
|
7
7
|
|
|
8
8
|
return {
|
|
9
9
|
courierDeliveryFlg: methodObtain === 'courier',
|
|
10
|
-
deliveryDate:
|
|
10
|
+
deliveryDate: dateToISO(deliveryDate),
|
|
11
11
|
deliveryTimeCd: { value: 'TIME_2' },
|
|
12
12
|
};
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { dateToISO } from '../../utils/dateToISO';
|
|
2
2
|
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
3
3
|
import { getParticipantAddresses } from '../CreditForm/utils';
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@ export const getDeliveryData = (formData: FormState) => {
|
|
|
7
7
|
|
|
8
8
|
return {
|
|
9
9
|
courierDeliveryFlg: methodObtain === 'courier',
|
|
10
|
-
deliveryDate:
|
|
10
|
+
deliveryDate: dateToISO(deliveryDate),
|
|
11
11
|
deliveryTimeCd: { value: 'TIME_2' },
|
|
12
12
|
};
|
|
13
13
|
};
|