@thecb/components 9.1.0-beta.3 → 9.1.0-beta.5
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.esm.js
CHANGED
|
@@ -47881,18 +47881,21 @@ var createPartialAmountFormState = function createPartialAmountFormState(lineIte
|
|
|
47881
47881
|
var blockPartialPaymentOverpay = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
47882
47882
|
var formConfig = lineItems.reduce(function (acc, item) {
|
|
47883
47883
|
var validators = createPartialAmountFormValidators(item, lineItems, maximum, minimum, blockPartialPaymentOverpay);
|
|
47884
|
+
console.log("item and validators", item, validators);
|
|
47884
47885
|
return _objectSpread2(_objectSpread2({}, acc), {}, _defineProperty({}, item.id, {
|
|
47885
47886
|
validators: validators,
|
|
47886
47887
|
constraints: [onlyNaturals()],
|
|
47887
47888
|
defaultValue: String(item.amount)
|
|
47888
47889
|
}));
|
|
47889
47890
|
}, {});
|
|
47891
|
+
console.log("form config is", formConfig);
|
|
47890
47892
|
|
|
47891
47893
|
var _createFormState = createFormState(formConfig),
|
|
47892
47894
|
reducer = _createFormState.reducer,
|
|
47893
47895
|
mapStateToProps = _createFormState.mapStateToProps,
|
|
47894
47896
|
mapDispatchToProps = _createFormState.mapDispatchToProps;
|
|
47895
47897
|
|
|
47898
|
+
console.log("partial amount form reducer etc is", reducer, mapStateToProps, mapDispatchToProps);
|
|
47896
47899
|
return {
|
|
47897
47900
|
partialAmountFormReducer: reducer,
|
|
47898
47901
|
partialAmountFormMapStateToProps: mapStateToProps,
|