@formio/js 5.0.0-dev.5711.e2e3657 → 5.0.0-dev.5713.ee12658

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.
@@ -1130,7 +1130,7 @@ class Webform extends NestedDataComponent_1.default {
1130
1130
  });
1131
1131
  const displayedErrors = [];
1132
1132
  if (errors.length) {
1133
- errors = lodash_1.default.uniqBy(errors, (error) => { var _a, _b; return [error.message, (_a = error.component) === null || _a === void 0 ? void 0 : _a.id, (_b = error.context) === null || _b === void 0 ? void 0 : _b.path].join(); });
1133
+ errors = lodash_1.default.uniqBy(errors, (error) => error.message);
1134
1134
  const createListItem = (message, index) => {
1135
1135
  var _a, _b, _c;
1136
1136
  const err = errors[index];
@@ -5,6 +5,36 @@ declare const _default: ({
5
5
  key: string;
6
6
  label: string;
7
7
  tooltip: string;
8
+ conditional?: undefined;
9
+ defaultValue?: undefined;
10
+ ignore?: undefined;
11
+ } | {
12
+ type: string;
13
+ input: boolean;
14
+ weight: number;
15
+ key: string;
16
+ label: string;
17
+ conditional: {
18
+ show: boolean;
19
+ conjunction: string;
20
+ conditions: {
21
+ component: string;
22
+ operator: string;
23
+ value: boolean;
24
+ }[];
25
+ };
26
+ defaultValue: string;
27
+ tooltip?: undefined;
28
+ ignore?: undefined;
29
+ } | {
30
+ type: string;
31
+ input: boolean;
32
+ weight: number;
33
+ key: string;
34
+ label: string;
35
+ defaultValue: string;
36
+ tooltip?: undefined;
37
+ conditional?: undefined;
8
38
  ignore?: undefined;
9
39
  } | {
10
40
  key: string;
@@ -14,5 +44,7 @@ declare const _default: ({
14
44
  weight?: undefined;
15
45
  label?: undefined;
16
46
  tooltip?: undefined;
47
+ conditional?: undefined;
48
+ defaultValue?: undefined;
17
49
  })[];
18
50
  export default _default;
@@ -10,9 +10,36 @@ exports.default = [
10
10
  tooltip: 'Separate thousands by local delimiter.'
11
11
  },
12
12
  {
13
- type: 'number',
13
+ type: "textfield",
14
14
  input: true,
15
15
  weight: 80,
16
+ key: "thousandsSeparator",
17
+ label: "Thousands Separator",
18
+ conditional: {
19
+ show: true,
20
+ conjunction: "all",
21
+ conditions: [
22
+ {
23
+ component: "delimiter",
24
+ operator: "isEqual",
25
+ value: true
26
+ }
27
+ ]
28
+ },
29
+ defaultValue: ","
30
+ },
31
+ {
32
+ type: "textfield",
33
+ input: true,
34
+ weight: 90,
35
+ key: "decimalSymbol",
36
+ label: "Decimal Symbol",
37
+ defaultValue: "."
38
+ },
39
+ {
40
+ type: 'number',
41
+ input: true,
42
+ weight: 100,
16
43
  key: 'decimalLimit',
17
44
  label: 'Decimal Places',
18
45
  tooltip: 'The maximum number of decimal places.'
@@ -20,7 +47,7 @@ exports.default = [
20
47
  {
21
48
  type: 'checkbox',
22
49
  input: true,
23
- weight: 90,
50
+ weight: 110,
24
51
  key: 'requireDecimal',
25
52
  label: 'Require Decimal',
26
53
  tooltip: 'Always show decimals, even if trailing zeros.'
@@ -1134,7 +1134,7 @@ export default class Webform extends NestedDataComponent {
1134
1134
  });
1135
1135
  const displayedErrors = [];
1136
1136
  if (errors.length) {
1137
- errors = _.uniqBy(errors, (error) => [error.message, error.component?.id, error.context?.path].join());
1137
+ errors = _.uniqBy(errors, (error) => error.message);
1138
1138
  const createListItem = (message, index) => {
1139
1139
  const err = errors[index];
1140
1140
  const messageFromIndex = !_.isUndefined(index) && errors && errors[index];
@@ -5,6 +5,36 @@ declare const _default: ({
5
5
  key: string;
6
6
  label: string;
7
7
  tooltip: string;
8
+ conditional?: undefined;
9
+ defaultValue?: undefined;
10
+ ignore?: undefined;
11
+ } | {
12
+ type: string;
13
+ input: boolean;
14
+ weight: number;
15
+ key: string;
16
+ label: string;
17
+ conditional: {
18
+ show: boolean;
19
+ conjunction: string;
20
+ conditions: {
21
+ component: string;
22
+ operator: string;
23
+ value: boolean;
24
+ }[];
25
+ };
26
+ defaultValue: string;
27
+ tooltip?: undefined;
28
+ ignore?: undefined;
29
+ } | {
30
+ type: string;
31
+ input: boolean;
32
+ weight: number;
33
+ key: string;
34
+ label: string;
35
+ defaultValue: string;
36
+ tooltip?: undefined;
37
+ conditional?: undefined;
8
38
  ignore?: undefined;
9
39
  } | {
10
40
  key: string;
@@ -14,5 +44,7 @@ declare const _default: ({
14
44
  weight?: undefined;
15
45
  label?: undefined;
16
46
  tooltip?: undefined;
47
+ conditional?: undefined;
48
+ defaultValue?: undefined;
17
49
  })[];
18
50
  export default _default;
@@ -8,9 +8,36 @@ export default [
8
8
  tooltip: 'Separate thousands by local delimiter.'
9
9
  },
10
10
  {
11
- type: 'number',
11
+ type: "textfield",
12
12
  input: true,
13
13
  weight: 80,
14
+ key: "thousandsSeparator",
15
+ label: "Thousands Separator",
16
+ conditional: {
17
+ show: true,
18
+ conjunction: "all",
19
+ conditions: [
20
+ {
21
+ component: "delimiter",
22
+ operator: "isEqual",
23
+ value: true
24
+ }
25
+ ]
26
+ },
27
+ defaultValue: ","
28
+ },
29
+ {
30
+ type: "textfield",
31
+ input: true,
32
+ weight: 90,
33
+ key: "decimalSymbol",
34
+ label: "Decimal Symbol",
35
+ defaultValue: "."
36
+ },
37
+ {
38
+ type: 'number',
39
+ input: true,
40
+ weight: 100,
14
41
  key: 'decimalLimit',
15
42
  label: 'Decimal Places',
16
43
  tooltip: 'The maximum number of decimal places.'
@@ -18,7 +45,7 @@ export default [
18
45
  {
19
46
  type: 'checkbox',
20
47
  input: true,
21
- weight: 90,
48
+ weight: 110,
22
49
  key: 'requireDecimal',
23
50
  label: 'Require Decimal',
24
51
  tooltip: 'Always show decimals, even if trailing zeros.'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0-dev.5711.e2e3657",
3
+ "version": "5.0.0-dev.5713.ee12658",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {