@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/assets/form-js.css
CHANGED
|
@@ -215,23 +215,22 @@
|
|
|
215
215
|
padding: 8px;
|
|
216
216
|
width: auto !important;
|
|
217
217
|
min-width: 34px;
|
|
218
|
+
display: flex;
|
|
219
|
+
overflow: hidden;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.fjs-container .fjs-input-adornment span {
|
|
223
|
+
width: 100%;
|
|
218
224
|
text-align: center;
|
|
219
225
|
overflow: hidden;
|
|
220
226
|
text-overflow: ellipsis;
|
|
221
|
-
|
|
227
|
+
white-space: nowrap;
|
|
222
228
|
}
|
|
223
229
|
|
|
224
230
|
.fjs-container .fjs-input-adornment svg {
|
|
225
|
-
display: block;
|
|
226
231
|
margin: auto;
|
|
227
|
-
width: 15px;
|
|
228
232
|
}
|
|
229
233
|
|
|
230
|
-
.fjs-container .fjs-input-adornment span {
|
|
231
|
-
color: var(--color-background-adornment);
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
|
|
235
234
|
.fjs-container .fjs-input[type='text'],
|
|
236
235
|
.fjs-container .fjs-input[type='email'],
|
|
237
236
|
.fjs-container .fjs-input[type='tel'],
|
|
@@ -267,6 +266,11 @@
|
|
|
267
266
|
width: 100%;
|
|
268
267
|
}
|
|
269
268
|
|
|
269
|
+
.fjs-container .fjs-timepicker-anchor {
|
|
270
|
+
height: 100%;
|
|
271
|
+
display: flex;
|
|
272
|
+
}
|
|
273
|
+
|
|
270
274
|
.fjs-container .fjs-form-field-datetime .fjs-input-adornment svg {
|
|
271
275
|
color: var(--color-icon-base);
|
|
272
276
|
}
|
|
@@ -347,6 +351,8 @@
|
|
|
347
351
|
|
|
348
352
|
.fjs-container .flatpickr-wrapper {
|
|
349
353
|
width: 100%;
|
|
354
|
+
height: 100%;
|
|
355
|
+
display: flex;
|
|
350
356
|
}
|
|
351
357
|
|
|
352
358
|
.fjs-container .fjs-textarea {
|
package/dist/index.cjs
CHANGED
|
@@ -1889,11 +1889,17 @@ function InputAdorner(props) {
|
|
|
1889
1889
|
children: [pre !== null && jsxRuntime.jsxs("span", {
|
|
1890
1890
|
class: "fjs-input-adornment border-right border-radius-left",
|
|
1891
1891
|
onClick: onAdornmentClick,
|
|
1892
|
-
children: [" ", pre
|
|
1892
|
+
children: [" ", minDash.isString(pre) ? jsxRuntime.jsx("span", {
|
|
1893
|
+
class: "fjs-input-adornment-text",
|
|
1894
|
+
children: pre
|
|
1895
|
+
}) : pre, " "]
|
|
1893
1896
|
}), children, post !== null && jsxRuntime.jsxs("span", {
|
|
1894
1897
|
class: "fjs-input-adornment border-left border-radius-right",
|
|
1895
1898
|
onClick: onAdornmentClick,
|
|
1896
|
-
children: [" ", post
|
|
1899
|
+
children: [" ", minDash.isString(post) ? jsxRuntime.jsx("span", {
|
|
1900
|
+
class: "fjs-input-adornment-text",
|
|
1901
|
+
children: post
|
|
1902
|
+
}) : post, " "]
|
|
1897
1903
|
})]
|
|
1898
1904
|
});
|
|
1899
1905
|
}
|
|
@@ -4005,21 +4011,23 @@ var ImageIcon = (({
|
|
|
4005
4011
|
fill: "#000"
|
|
4006
4012
|
})));
|
|
4007
4013
|
|
|
4008
|
-
const iconsByType = {
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4014
|
+
const iconsByType = type => {
|
|
4015
|
+
return {
|
|
4016
|
+
button: ButtonIcon,
|
|
4017
|
+
checkbox: CheckboxIcon,
|
|
4018
|
+
checklist: ChecklistIcon,
|
|
4019
|
+
columns: ColumnsIcon,
|
|
4020
|
+
datetime: DatetimeIcon,
|
|
4021
|
+
image: ImageIcon,
|
|
4022
|
+
number: NumberIcon,
|
|
4023
|
+
radio: RadioIcon,
|
|
4024
|
+
select: SelectIcon,
|
|
4025
|
+
taglist: TaglistIcon,
|
|
4026
|
+
text: TextIcon,
|
|
4027
|
+
textfield: TextfieldIcon,
|
|
4028
|
+
textarea: TextareaIcon,
|
|
4029
|
+
default: FormIcon
|
|
4030
|
+
}[type];
|
|
4023
4031
|
};
|
|
4024
4032
|
|
|
4025
4033
|
const formFields = [Button, Checkbox, Checklist, Default, Image, Numberfield, Datetime, Radio, Select, Taglist, Text, Textfield, Textarea];
|