Skip to content

Commit

Permalink
[#156] Update dist & version to v2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wayangalihpratama committed Apr 25, 2024
1 parent ca6f744 commit 3b658a0
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 10 deletions.
10 changes: 7 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39206,9 +39206,9 @@ var Webform = function Webform(_ref) {
var _forms$question_group2;
var values = filterFormValues(form.getFieldsValue(), forms);
var errors = form.getFieldsError();
var remapErrors = [].concat(new Set(errors === null || errors === void 0 ? void 0 : errors.map(function (e) {
var remapErrors = lodash.uniq(errors === null || errors === void 0 ? void 0 : errors.map(function (e) {
return e.name[0];
}))).filter(function (e) {
})).filter(function (e) {
return !e.toString().includes('other');
});
var data = Object.keys(values).map(function (k) {
Expand Down Expand Up @@ -39293,7 +39293,11 @@ var Webform = function Webform(_ref) {
onChange({
current: value,
values: values,
progress: filled.length / remapErrors.length * 100
progress: filled.length / remapErrors.length * 100,
filledQIds: filled.map(function (a) {
return a.id;
}),
errorQIds: remapErrors
});
}
}, [autoSave, form, forms, onChange]);
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

12 changes: 8 additions & 4 deletions dist/index.modern.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React__default, { createContext, useContext, useEffect, forwardRef, createElement, useState, useCallback, useRef, useMemo, Fragment } from 'react';
import { Form, Row, Col, Button, InputNumber, message, Table, Select, Input, Popconfirm, List, Space, Drawer, Tag, Spin, Cascader, DatePicker, Divider, Radio, TreeSelect, Image as Image$1, Upload, Card } from 'antd';
import 'antd/dist/antd.min.css';
import { orderBy, intersection, chain, groupBy, cloneDeep, isEmpty, get, maxBy, range, take as take$1, takeRight as takeRight$1 } from 'lodash';
import { orderBy, intersection, chain, groupBy, cloneDeep, isEmpty, get, uniq, maxBy, range, take as take$1, takeRight as takeRight$1 } from 'lodash';
import { v4 } from 'uuid';
import ReactHtmlParser from 'react-html-parser';
import { getByTag } from 'locale-codes';
Expand Down Expand Up @@ -39203,9 +39203,9 @@ var Webform = function Webform(_ref) {
var _forms$question_group2;
var values = filterFormValues(form.getFieldsValue(), forms);
var errors = form.getFieldsError();
var remapErrors = [].concat(new Set(errors === null || errors === void 0 ? void 0 : errors.map(function (e) {
var remapErrors = uniq(errors === null || errors === void 0 ? void 0 : errors.map(function (e) {
return e.name[0];
}))).filter(function (e) {
})).filter(function (e) {
return !e.toString().includes('other');
});
var data = Object.keys(values).map(function (k) {
Expand Down Expand Up @@ -39290,7 +39290,11 @@ var Webform = function Webform(_ref) {
onChange({
current: value,
values: values,
progress: filled.length / remapErrors.length * 100
progress: filled.length / remapErrors.length * 100,
filledQIds: filled.map(function (a) {
return a.id;
}),
errorQIds: remapErrors
});
}
}, [autoSave, form, forms, onChange]);
Expand Down
2 changes: 1 addition & 1 deletion dist/index.modern.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "akvo-react-form",
"version": "2.4.9",
"version": "2.5.0",
"description": "Simple react component for building webforms",
"license": "AGPL-3.0",
"repository": "akvo/akvo-react-form",
Expand Down

0 comments on commit 3b658a0

Please sign in to comment.