@bpmn-io/form-js-viewer 0.12.0 → 0.12.2
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/assets/form-js.css +14 -8
- package/dist/index.cjs +25 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +25 -17
- package/dist/index.es.js.map +1 -1
- package/dist/types/Form.d.ts +2 -2
- package/dist/types/render/components/icons/index.d.ts +1 -16
- package/package.json +3 -3
- /package/dist/types/{src/types.d.ts → types.d.ts} +0 -0
package/dist/index.es.js
CHANGED
|
@@ -1887,11 +1887,17 @@ function InputAdorner(props) {
|
|
|
1887
1887
|
children: [pre !== null && jsxs("span", {
|
|
1888
1888
|
class: "fjs-input-adornment border-right border-radius-left",
|
|
1889
1889
|
onClick: onAdornmentClick,
|
|
1890
|
-
children: [" ", pre
|
|
1890
|
+
children: [" ", isString(pre) ? jsx("span", {
|
|
1891
|
+
class: "fjs-input-adornment-text",
|
|
1892
|
+
children: pre
|
|
1893
|
+
}) : pre, " "]
|
|
1891
1894
|
}), children, post !== null && jsxs("span", {
|
|
1892
1895
|
class: "fjs-input-adornment border-left border-radius-right",
|
|
1893
1896
|
onClick: onAdornmentClick,
|
|
1894
|
-
children: [" ", post
|
|
1897
|
+
children: [" ", isString(post) ? jsx("span", {
|
|
1898
|
+
class: "fjs-input-adornment-text",
|
|
1899
|
+
children: post
|
|
1900
|
+
}) : post, " "]
|
|
1895
1901
|
})]
|
|
1896
1902
|
});
|
|
1897
1903
|
}
|
|
@@ -4003,21 +4009,23 @@ var ImageIcon = (({
|
|
|
4003
4009
|
fill: "#000"
|
|
4004
4010
|
})));
|
|
4005
4011
|
|
|
4006
|
-
const iconsByType = {
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4012
|
+
const iconsByType = type => {
|
|
4013
|
+
return {
|
|
4014
|
+
button: ButtonIcon,
|
|
4015
|
+
checkbox: CheckboxIcon,
|
|
4016
|
+
checklist: ChecklistIcon,
|
|
4017
|
+
columns: ColumnsIcon,
|
|
4018
|
+
datetime: DatetimeIcon,
|
|
4019
|
+
image: ImageIcon,
|
|
4020
|
+
number: NumberIcon,
|
|
4021
|
+
radio: RadioIcon,
|
|
4022
|
+
select: SelectIcon,
|
|
4023
|
+
taglist: TaglistIcon,
|
|
4024
|
+
text: TextIcon,
|
|
4025
|
+
textfield: TextfieldIcon,
|
|
4026
|
+
textarea: TextareaIcon,
|
|
4027
|
+
default: FormIcon
|
|
4028
|
+
}[type];
|
|
4021
4029
|
};
|
|
4022
4030
|
|
|
4023
4031
|
const formFields = [Button, Checkbox, Checklist, Default, Image, Numberfield, Datetime, Radio, Select, Taglist, Text, Textfield, Textarea];
|