@processmaker/screen-builder 3.8.15 → 3.8.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@processmaker/screen-builder",
3
- "version": "3.8.15",
3
+ "version": "3.8.17",
4
4
  "scripts": {
5
5
  "dev": "VITE_COVERAGE=true vite",
6
6
  "build": "vite build",
@@ -12,6 +12,9 @@
12
12
  "storybook": "storybook dev -p 6006",
13
13
  "build-storybook": "storybook build",
14
14
  "test-storybook": "test-storybook",
15
+ "test": "jest tests/unit --no-coverage",
16
+ "test:coverage": "jest tests/unit --coverage",
17
+ "test:variables": "jest tests/unit/VariablesToSubmit.spec.js --no-coverage",
15
18
  "serve": "npm run dev"
16
19
  },
17
20
  "main": "./dist/vue-form-builder.umd.js",
@@ -72,6 +75,7 @@
72
75
  "@vue/test-utils": "^1.1.1",
73
76
  "axios": "^1.6.0",
74
77
  "babel-core": "7.0.0-bridge.0",
78
+ "babel-jest": "^26.6.3",
75
79
  "babel-plugin-istanbul": "^6.1.1",
76
80
  "bootstrap": "^4.5.3",
77
81
  "bootstrap-vue": "^2.19.0",
@@ -93,6 +97,9 @@
93
97
  "i18next": "^15.0.8",
94
98
  "identity-obj-proxy": "^3.0.0",
95
99
  "inputmask": "^5.0.7",
100
+ "jest-environment-jsdom": "^30.2.0",
101
+ "jest-serializer-vue": "^2.0.2",
102
+ "jest-transform-stub": "^2.0.0",
96
103
  "mustache": "^3.0.1",
97
104
  "nyc": "^15.1.0",
98
105
  "prettier": "2.7.1",
@@ -107,6 +114,7 @@
107
114
  "vite-plugin-monaco-editor": "^1.1.0",
108
115
  "vue": "^2.6.12",
109
116
  "vue-deepset": "^0.6.3",
117
+ "vue-jest": "^3.0.7",
110
118
  "vue-template-compiler": "^2.6.14",
111
119
  "vue-uniq-ids": "^1.0.0",
112
120
  "vue-upload-component": "^2.8.14",
@@ -1,45 +1,45 @@
1
1
  export default [
2
2
  {
3
- name: 'Variable',
3
+ name: "Variable",
4
4
  fields: [
5
- { name: 'name', hideFor: 'FormImage' },
6
- 'fieldValue',
7
- 'label',
8
- 'dataFormat',
9
- 'dataMask',
10
- 'validation',
11
- 'readonly',
12
- 'disabled',
13
- 'initiallyChecked',
14
- 'screen',
15
- 'multipleUpload',
16
- 'linkUrl',
17
- 'collection',
18
- 'record',
19
- 'collectionmode',
20
- 'submitCollectionCheck',
5
+ { name: "name", hideFor: "FormImage" },
6
+ "fieldValue",
7
+ "label",
8
+ "dataFormat",
9
+ "dataMask",
10
+ "validation",
11
+ "readonly",
12
+ "disabled",
13
+ "initiallyChecked",
14
+ "screen",
15
+ "multipleUpload",
16
+ "linkUrl",
17
+ "collection",
18
+ "record",
19
+ "collectionmode",
20
+ "submitCollectionCheck"
21
21
  ],
22
- open: true,
22
+ open: true
23
23
  },
24
24
  {
25
- name: 'Configuration',
25
+ name: "Configuration",
26
26
  fields: [
27
- { name: 'name', showFor: 'FormImage' },
28
- 'image',
29
- 'eventData',
30
- 'tooltip',
31
- 'type',
32
- 'placeholder',
33
- 'content',
34
- 'helper',
35
- 'Multiselect checkbox (doesn’t exist)',
36
- 'richtext',
37
- 'rows',
38
- { name: 'options', showFor: 'FormMultiColumn' },
39
- 'form',
40
- 'editable',
27
+ { name: "name", showFor: "FormImage" },
28
+ "image",
29
+ "eventData",
30
+ "tooltip",
31
+ "type",
32
+ "placeholder",
33
+ "content",
34
+ "helper",
35
+ "Multiselect checkbox (doesn’t exist)",
36
+ "richtext",
37
+ "rows",
38
+ { name: "options", showFor: "FormMultiColumn" },
39
+ "form",
40
+ "editable"
41
41
  ],
42
- open: false,
42
+ open: false
43
43
  },
44
44
  {
45
45
  name(control) {
@@ -50,43 +50,54 @@ export default [
50
50
  return control.component === "FormRecordList" ? "Columns" : "Data Source";
51
51
  },
52
52
  fields: [
53
- 'fields',
54
- 'paginationOption',
55
- { name: 'options', hideFor: 'FormMultiColumn' },
53
+ "fields",
54
+ "paginationOption",
55
+ { name: "options", hideFor: "FormMultiColumn" }
56
56
  ],
57
- open: false,
57
+ open: false
58
58
  },
59
59
  {
60
- name: 'Design',
60
+ name: "Design",
61
61
  fields: ['color', 'bgcolor', 'variant', 'variantStyle', 'toggle', 'height', 'width', 'designerMode', 'bgcolormodern'],
62
- open: false,
62
+ open: false
63
63
  },
64
64
  {
65
- name: 'Advanced',
66
- fields: ['conditionalHide', 'deviceVisibility', 'customCssSelector', 'defaultValue', 'showForDesktop',
67
- {name: 'customFormatter', showFor: 'FormInput'},
68
- {name: 'ariaLabel', showFor: 'FormInput'},
69
- {name: 'ariaLabel', showFor: 'FormSelectList'},
70
- {name: 'ariaLabel', showFor: 'FormDatePicker'},
71
- {name: 'ariaLabel', showFor: 'FormCheckbox'},
72
- {name: 'ariaLabel', showFor: 'FormDatePicker'},
73
- {name: 'ariaLabel', showFor: 'FileUpload'},
74
- {name: 'ariaLabel', showFor: 'FileDownload'},
75
- {name: 'ariaLabel', showFor: 'FormSelectList'},
76
- {name: 'ariaLabel', showFor: 'FormButton'},
77
- {name: 'ariaLabel', showFor: 'FormTextArea'},
78
- {name: 'tabindex', showFor: 'FormInput'},
79
- {name: 'tabindex', showFor: 'FormSelectList'},
80
- {name: 'tabindex', showFor: 'FormDatePicker'},
81
- {name: 'tabindex', showFor: 'FormCheckbox'},
82
- {name: 'tabindex', showFor: 'FormDatePicker'},
83
- {name: 'tabindex', showFor: 'FileUpload'},
84
- {name: 'tabindex', showFor: 'FileDownload'},
85
- {name: 'tabindex', showFor: 'FormSelectList'},
86
- {name: 'tabindex', showFor: 'FormButton'},
87
- {name: 'tabindex', showFor: 'FormTextArea'},
88
- {name: 'encryptedConfig', showFor: 'FormInput'},
65
+ name: "Advanced",
66
+ fields: [
67
+ "conditionalHide",
68
+ "deviceVisibility",
69
+ "customCssSelector",
70
+ "defaultValue",
71
+ "showForDesktop",
72
+ {name: "customFormatter", showFor: "FormInput"},
73
+ {name: "encryptedConfig", showFor: "FormInput"},
74
+ {name: "variablesToSubmit", showFor: "FormButton"},
89
75
  ],
90
- open: false,
76
+ open: false
91
77
  },
78
+ {
79
+ name: "Accessibility",
80
+ fields: [
81
+ { name: "ariaLabel", showFor: "FormInput" },
82
+ { name: "ariaLabel", showFor: "FormSelectList" },
83
+ { name: "ariaLabel", showFor: "FormDatePicker" },
84
+ { name: "ariaLabel", showFor: "FormCheckbox" },
85
+ { name: "ariaLabel", showFor: "FormDatePicker" },
86
+ { name: "ariaLabel", showFor: "FileUpload" },
87
+ { name: "ariaLabel", showFor: "FileDownload" },
88
+ { name: "ariaLabel", showFor: "FormSelectList" },
89
+ { name: "ariaLabel", showFor: "FormButton" },
90
+ { name: "ariaLabel", showFor: "FormTextArea" },
91
+ { name: "tabindex", showFor: "FormInput" },
92
+ { name: "tabindex", showFor: "FormSelectList" },
93
+ { name: "tabindex", showFor: "FormDatePicker" },
94
+ { name: "tabindex", showFor: "FormCheckbox" },
95
+ { name: "tabindex", showFor: "FileUpload" },
96
+ { name: "tabindex", showFor: "FileDownload" },
97
+ { name: "tabindex", showFor: "FormSelectList" },
98
+ { name: "tabindex", showFor: "FormButton" },
99
+ { name: "tabindex", showFor: "FormTextArea" }
100
+ ],
101
+ open: false
102
+ }
92
103
  ];
@@ -32,3 +32,4 @@ export { default as LabelSubmitButton } from "./label-submit-button.vue";
32
32
  export { default as AnalyticsSelector } from "./analytics-selector.vue";
33
33
  export { default as EncryptedConfig } from "./encrypted-config.vue";
34
34
  export { default as CodeEditor } from "./code-editor.vue";
35
+ export { default as VariablesToSubmit } from "./variables-to-submit.vue";