@bpmn-io/properties-panel 3.19.0 → 3.20.0
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/index.esm.js +28 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +28 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -974,6 +974,7 @@ const CodeEditor = forwardRef((props, ref) => {
|
|
|
974
974
|
onFeelToggle = noop$5,
|
|
975
975
|
onLint = noop$5,
|
|
976
976
|
onPopupOpen = noop$5,
|
|
977
|
+
placeholder,
|
|
977
978
|
popupOpen,
|
|
978
979
|
disabled,
|
|
979
980
|
tooltipContainer,
|
|
@@ -1010,6 +1011,7 @@ const CodeEditor = forwardRef((props, ref) => {
|
|
|
1010
1011
|
onChange: handleInput,
|
|
1011
1012
|
onKeyDown: onKeyDown,
|
|
1012
1013
|
onLint: onLint,
|
|
1014
|
+
placeholder: placeholder,
|
|
1013
1015
|
tooltipContainer: tooltipContainer,
|
|
1014
1016
|
value: localValue,
|
|
1015
1017
|
variables: variables,
|
|
@@ -1039,6 +1041,12 @@ const CodeEditor = forwardRef((props, ref) => {
|
|
|
1039
1041
|
}
|
|
1040
1042
|
editor.setVariables(variables);
|
|
1041
1043
|
}, [variables]);
|
|
1044
|
+
useEffect(() => {
|
|
1045
|
+
if (!editor) {
|
|
1046
|
+
return;
|
|
1047
|
+
}
|
|
1048
|
+
editor.setPlaceholder(placeholder);
|
|
1049
|
+
}, [placeholder]);
|
|
1042
1050
|
const handleClick = () => {
|
|
1043
1051
|
ref.current.focus();
|
|
1044
1052
|
};
|
|
@@ -1944,6 +1952,7 @@ function FeelTextfieldComponent(props) {
|
|
|
1944
1952
|
hostLanguage,
|
|
1945
1953
|
onInput,
|
|
1946
1954
|
onError,
|
|
1955
|
+
placeholder,
|
|
1947
1956
|
feel,
|
|
1948
1957
|
value = '',
|
|
1949
1958
|
disabled = false,
|
|
@@ -2118,6 +2127,7 @@ function FeelTextfieldComponent(props) {
|
|
|
2118
2127
|
},
|
|
2119
2128
|
onLint: handleLint,
|
|
2120
2129
|
onPopupOpen: handlePopupOpen,
|
|
2130
|
+
placeholder: placeholder,
|
|
2121
2131
|
value: feelOnlyValue,
|
|
2122
2132
|
variables: variables,
|
|
2123
2133
|
ref: editorRef,
|
|
@@ -2146,7 +2156,8 @@ const OptionalFeelInput = forwardRef((props, ref) => {
|
|
|
2146
2156
|
onInput,
|
|
2147
2157
|
value,
|
|
2148
2158
|
onFocus,
|
|
2149
|
-
onBlur
|
|
2159
|
+
onBlur,
|
|
2160
|
+
placeholder
|
|
2150
2161
|
} = props;
|
|
2151
2162
|
const inputRef = useRef();
|
|
2152
2163
|
|
|
@@ -2179,6 +2190,7 @@ const OptionalFeelInput = forwardRef((props, ref) => {
|
|
|
2179
2190
|
onInput: e => onInput(e.target.value),
|
|
2180
2191
|
onFocus: onFocus,
|
|
2181
2192
|
onBlur: onBlur,
|
|
2193
|
+
placeholder: placeholder,
|
|
2182
2194
|
value: value || ''
|
|
2183
2195
|
});
|
|
2184
2196
|
});
|
|
@@ -2236,7 +2248,8 @@ const OptionalFeelTextArea = forwardRef((props, ref) => {
|
|
|
2236
2248
|
onInput,
|
|
2237
2249
|
value,
|
|
2238
2250
|
onFocus,
|
|
2239
|
-
onBlur
|
|
2251
|
+
onBlur,
|
|
2252
|
+
placeholder
|
|
2240
2253
|
} = props;
|
|
2241
2254
|
const inputRef = useRef();
|
|
2242
2255
|
|
|
@@ -2264,6 +2277,7 @@ const OptionalFeelTextArea = forwardRef((props, ref) => {
|
|
|
2264
2277
|
onInput: e => onInput(e.target.value),
|
|
2265
2278
|
onFocus: onFocus,
|
|
2266
2279
|
onBlur: onBlur,
|
|
2280
|
+
placeholder: placeholder,
|
|
2267
2281
|
value: value || '',
|
|
2268
2282
|
"data-gramm": "false"
|
|
2269
2283
|
});
|
|
@@ -2359,6 +2373,7 @@ const OptionalFeelCheckbox = forwardRef((props, ref) => {
|
|
|
2359
2373
|
* @param {Function} props.variables
|
|
2360
2374
|
* @param {Function} props.onFocus
|
|
2361
2375
|
* @param {Function} props.onBlur
|
|
2376
|
+
* @param {string} [props.placeholder]
|
|
2362
2377
|
* @param {string|import('preact').Component} props.tooltip
|
|
2363
2378
|
*/
|
|
2364
2379
|
function FeelEntry(props) {
|
|
@@ -2381,6 +2396,7 @@ function FeelEntry(props) {
|
|
|
2381
2396
|
variables,
|
|
2382
2397
|
onFocus,
|
|
2383
2398
|
onBlur,
|
|
2399
|
+
placeholder,
|
|
2384
2400
|
tooltip
|
|
2385
2401
|
} = props;
|
|
2386
2402
|
const [validationError, setValidationError] = useState(null);
|
|
@@ -2424,6 +2440,7 @@ function FeelEntry(props) {
|
|
|
2424
2440
|
onError: onError,
|
|
2425
2441
|
onFocus: onFocus,
|
|
2426
2442
|
onBlur: onBlur,
|
|
2443
|
+
placeholder: placeholder,
|
|
2427
2444
|
example: example,
|
|
2428
2445
|
hostLanguage: hostLanguage,
|
|
2429
2446
|
singleLine: singleLine,
|
|
@@ -2492,6 +2509,7 @@ function FeelNumberEntry(props) {
|
|
|
2492
2509
|
* @param {Function} props.variables
|
|
2493
2510
|
* @param {Function} props.onFocus
|
|
2494
2511
|
* @param {Function} props.onBlur
|
|
2512
|
+
* @param {string} [props.placeholder]
|
|
2495
2513
|
*/
|
|
2496
2514
|
function FeelTextAreaEntry(props) {
|
|
2497
2515
|
return jsx(FeelEntry, {
|
|
@@ -3926,6 +3944,7 @@ function TextArea(props) {
|
|
|
3926
3944
|
onFocus,
|
|
3927
3945
|
onBlur,
|
|
3928
3946
|
autoResize,
|
|
3947
|
+
placeholder,
|
|
3929
3948
|
rows = autoResize ? 1 : 2,
|
|
3930
3949
|
tooltip
|
|
3931
3950
|
} = props;
|
|
@@ -3968,6 +3987,7 @@ function TextArea(props) {
|
|
|
3968
3987
|
onInput: handleInput,
|
|
3969
3988
|
onFocus: onFocus,
|
|
3970
3989
|
onBlur: onBlur,
|
|
3990
|
+
placeholder: placeholder,
|
|
3971
3991
|
rows: rows,
|
|
3972
3992
|
value: localValue,
|
|
3973
3993
|
disabled: disabled,
|
|
@@ -4007,6 +4027,7 @@ function TextAreaEntry(props) {
|
|
|
4007
4027
|
validate,
|
|
4008
4028
|
onFocus,
|
|
4009
4029
|
onBlur,
|
|
4030
|
+
placeholder,
|
|
4010
4031
|
autoResize,
|
|
4011
4032
|
tooltip
|
|
4012
4033
|
} = props;
|
|
@@ -4042,6 +4063,7 @@ function TextAreaEntry(props) {
|
|
|
4042
4063
|
debounce: debounce,
|
|
4043
4064
|
monospace: monospace,
|
|
4044
4065
|
disabled: disabled,
|
|
4066
|
+
placeholder: placeholder,
|
|
4045
4067
|
autoResize: autoResize,
|
|
4046
4068
|
tooltip: tooltip,
|
|
4047
4069
|
element: element
|
|
@@ -4074,6 +4096,7 @@ function Textfield(props) {
|
|
|
4074
4096
|
onInput,
|
|
4075
4097
|
onFocus,
|
|
4076
4098
|
onBlur,
|
|
4099
|
+
placeholder,
|
|
4077
4100
|
value = '',
|
|
4078
4101
|
tooltip
|
|
4079
4102
|
} = props;
|
|
@@ -4115,6 +4138,7 @@ function Textfield(props) {
|
|
|
4115
4138
|
onInput: handleInput,
|
|
4116
4139
|
onFocus: onFocus,
|
|
4117
4140
|
onBlur: onBlur,
|
|
4141
|
+
placeholder: placeholder,
|
|
4118
4142
|
value: localValue
|
|
4119
4143
|
})]
|
|
4120
4144
|
});
|
|
@@ -4148,6 +4172,7 @@ function TextfieldEntry(props) {
|
|
|
4148
4172
|
validate,
|
|
4149
4173
|
onFocus,
|
|
4150
4174
|
onBlur,
|
|
4175
|
+
placeholder,
|
|
4151
4176
|
tooltip
|
|
4152
4177
|
} = props;
|
|
4153
4178
|
const globalError = useError(id);
|
|
@@ -4179,6 +4204,7 @@ function TextfieldEntry(props) {
|
|
|
4179
4204
|
onInput: onInput,
|
|
4180
4205
|
onFocus: onFocus,
|
|
4181
4206
|
onBlur: onBlur,
|
|
4207
|
+
placeholder: placeholder,
|
|
4182
4208
|
value: value,
|
|
4183
4209
|
tooltip: tooltip,
|
|
4184
4210
|
element: element
|