@bpmn-io/properties-panel 3.13.0 → 3.15.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/assets/properties-panel.css +0 -4
- package/dist/index.esm.js +31 -22
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +66 -63
- package/dist/index.js.map +1 -1
- package/package.json +28 -31
- package/preact/README.md +2 -2
- package/preact/compat/LICENSE +21 -0
- package/preact/compat/dist/compat.js +1 -1
- package/preact/compat/dist/compat.js.map +1 -1
- package/preact/compat/dist/compat.mjs +1 -1
- package/preact/compat/dist/compat.module.js +1 -1
- package/preact/compat/dist/compat.module.js.map +1 -1
- package/preact/compat/dist/compat.umd.js +1 -1
- package/preact/compat/dist/compat.umd.js.map +1 -1
- package/preact/compat/server.browser.js +7 -0
- package/preact/compat/server.mjs +7 -0
- package/preact/compat/src/index.d.ts +22 -8
- package/preact/compat/src/index.js +35 -3
- package/preact/compat/src/portals.js +26 -35
- package/preact/compat/src/suspense.js +9 -6
- package/preact/compat/src/util.js +0 -5
- package/preact/debug/LICENSE +21 -0
- package/preact/debug/dist/debug.js +1 -1
- package/preact/debug/dist/debug.js.map +1 -1
- package/preact/debug/dist/debug.mjs +1 -1
- package/preact/debug/dist/debug.module.js +1 -1
- package/preact/debug/dist/debug.module.js.map +1 -1
- package/preact/debug/dist/debug.umd.js +1 -1
- package/preact/debug/dist/debug.umd.js.map +1 -1
- package/preact/debug/src/debug.js +124 -42
- package/preact/devtools/LICENSE +21 -0
- package/preact/devtools/dist/devtools.js +1 -1
- package/preact/devtools/dist/devtools.js.map +1 -1
- package/preact/devtools/dist/devtools.mjs +1 -1
- package/preact/devtools/dist/devtools.module.js +1 -1
- package/preact/devtools/dist/devtools.module.js.map +1 -1
- package/preact/devtools/dist/devtools.umd.js +1 -1
- package/preact/devtools/dist/devtools.umd.js.map +1 -1
- package/preact/devtools/src/devtools.js +1 -1
- package/preact/dist/preact.js +1 -1
- package/preact/dist/preact.js.map +1 -1
- package/preact/dist/preact.min.js +1 -1
- package/preact/dist/preact.min.js.map +1 -1
- package/preact/dist/preact.min.module.js +1 -1
- package/preact/dist/preact.min.module.js.map +1 -1
- package/preact/dist/preact.min.umd.js +1 -1
- package/preact/dist/preact.min.umd.js.map +1 -1
- package/preact/dist/preact.mjs +1 -1
- package/preact/dist/preact.module.js +1 -1
- package/preact/dist/preact.module.js.map +1 -1
- package/preact/dist/preact.umd.js +1 -1
- package/preact/dist/preact.umd.js.map +1 -1
- package/preact/hooks/LICENSE +21 -0
- package/preact/jsx-runtime/LICENSE +21 -0
- package/preact/jsx-runtime/dist/jsxRuntime.js +1 -1
- package/preact/jsx-runtime/dist/jsxRuntime.js.map +1 -1
- package/preact/jsx-runtime/dist/jsxRuntime.mjs +1 -1
- package/preact/jsx-runtime/dist/jsxRuntime.module.js +1 -1
- package/preact/jsx-runtime/dist/jsxRuntime.module.js.map +1 -1
- package/preact/jsx-runtime/dist/jsxRuntime.umd.js +1 -1
- package/preact/jsx-runtime/dist/jsxRuntime.umd.js.map +1 -1
- package/preact/jsx-runtime/src/index.d.ts +10 -0
- package/preact/jsx-runtime/src/index.js +113 -4
- package/preact/jsx-runtime/src/utils.js +36 -0
- package/preact/package.json +4 -3
- package/preact/src/clone-element.js +6 -4
- package/preact/src/component.js +34 -28
- package/preact/src/constants.js +13 -1
- package/preact/src/create-context.js +3 -3
- package/preact/src/create-element.js +14 -11
- package/preact/src/diff/catch-error.js +11 -7
- package/preact/src/diff/children.js +321 -218
- package/preact/src/diff/index.js +188 -142
- package/preact/src/diff/props.js +31 -38
- package/preact/src/index.d.ts +38 -19
- package/preact/src/index.js +1 -1
- package/preact/src/internal.d.ts +183 -153
- package/preact/src/jsx.d.ts +883 -19
- package/preact/src/options.js +1 -1
- package/preact/src/render.js +11 -11
- package/preact/src/util.js +2 -2
- package/preact/test-utils/dist/testUtils.js +1 -1
- package/preact/test-utils/dist/testUtils.js.map +1 -1
- package/preact/test-utils/dist/testUtils.mjs +1 -1
- package/preact/test-utils/dist/testUtils.module.js +1 -1
- package/preact/test-utils/dist/testUtils.module.js.map +1 -1
- package/preact/test-utils/dist/testUtils.umd.js +1 -1
- package/preact/test-utils/dist/testUtils.umd.js.map +1 -1
- package/preact/test-utils/src/index.js +13 -5
|
@@ -1399,10 +1399,6 @@ textarea.bio-properties-panel-input {
|
|
|
1399
1399
|
cursor: pointer;
|
|
1400
1400
|
}
|
|
1401
1401
|
|
|
1402
|
-
.bio-properties-panel-open-feel-popup svg {
|
|
1403
|
-
background: var(--feel-open-popup-background-color);
|
|
1404
|
-
}
|
|
1405
|
-
|
|
1406
1402
|
.bio-properties-panel-feelers-editor-container:hover .bio-properties-panel-open-feel-popup,
|
|
1407
1403
|
.bio-properties-panel-feel-container:hover .bio-properties-panel-open-feel-popup,
|
|
1408
1404
|
.bio-properties-panel-feelers-editor-container:focus-within .bio-properties-panel-open-feel-popup,
|
package/dist/index.esm.js
CHANGED
|
@@ -134,6 +134,24 @@ HelpIcon.defaultProps = {
|
|
|
134
134
|
xmlns: "http://www.w3.org/2000/svg",
|
|
135
135
|
viewBox: "0 0 32 32"
|
|
136
136
|
};
|
|
137
|
+
var PopupIcon = function PopupIcon(props) {
|
|
138
|
+
return jsxs("svg", {
|
|
139
|
+
...props,
|
|
140
|
+
children: [jsx("path", {
|
|
141
|
+
fill: "currentColor",
|
|
142
|
+
d: "M28 4H10a2.006 2.006 0 0 0-2 2v14a2.006 2.006 0 0 0 2 2h18a2.006 2.006 0 0 0 2-2V6a2.006 2.006 0 0 0-2-2Zm0 16H10V6h18Z"
|
|
143
|
+
}), jsx("path", {
|
|
144
|
+
fill: "currentColor",
|
|
145
|
+
d: "M18 26H4V16h2v-2H4a2.006 2.006 0 0 0-2 2v10a2.006 2.006 0 0 0 2 2h14a2.006 2.006 0 0 0 2-2v-2h-2Z"
|
|
146
|
+
})]
|
|
147
|
+
});
|
|
148
|
+
};
|
|
149
|
+
PopupIcon.defaultProps = {
|
|
150
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
151
|
+
width: "16",
|
|
152
|
+
height: "16",
|
|
153
|
+
viewBox: "0 0 32 32"
|
|
154
|
+
};
|
|
137
155
|
|
|
138
156
|
function Header(props) {
|
|
139
157
|
const {
|
|
@@ -207,6 +225,7 @@ const ErrorsContext = createContext({
|
|
|
207
225
|
*
|
|
208
226
|
* @returns void
|
|
209
227
|
*/
|
|
228
|
+
|
|
210
229
|
const EventContext = createContext({
|
|
211
230
|
eventBus: null
|
|
212
231
|
});
|
|
@@ -1034,7 +1053,7 @@ const CodeEditor = forwardRef((props, ref) => {
|
|
|
1034
1053
|
title: "Open pop-up editor",
|
|
1035
1054
|
class: "bio-properties-panel-open-feel-popup",
|
|
1036
1055
|
onClick: () => onPopupOpen(),
|
|
1037
|
-
children: jsx(
|
|
1056
|
+
children: jsx(PopupIcon, {})
|
|
1038
1057
|
})]
|
|
1039
1058
|
});
|
|
1040
1059
|
});
|
|
@@ -1775,18 +1794,14 @@ function NumberField(props) {
|
|
|
1775
1794
|
} = props;
|
|
1776
1795
|
const [localValue, setLocalValue] = useState(value);
|
|
1777
1796
|
const handleInputCallback = useMemo(() => {
|
|
1778
|
-
return debounce(
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
value
|
|
1782
|
-
} = event.target;
|
|
1783
|
-
if (validity.valid) {
|
|
1784
|
-
onInput(value ? parseFloat(value) : undefined);
|
|
1797
|
+
return debounce(target => {
|
|
1798
|
+
if (target.validity.valid) {
|
|
1799
|
+
onInput(target.value ? parseFloat(target.value) : undefined);
|
|
1785
1800
|
}
|
|
1786
1801
|
});
|
|
1787
1802
|
}, [onInput, debounce]);
|
|
1788
1803
|
const handleInput = e => {
|
|
1789
|
-
handleInputCallback(e);
|
|
1804
|
+
handleInputCallback(e.target);
|
|
1790
1805
|
setLocalValue(e.target.value);
|
|
1791
1806
|
};
|
|
1792
1807
|
useEffect(() => {
|
|
@@ -3909,12 +3924,10 @@ function Simple(props) {
|
|
|
3909
3924
|
const value = getValue(element);
|
|
3910
3925
|
const [localValue, setLocalValue] = useState(value);
|
|
3911
3926
|
const handleInputCallback = useMemo(() => {
|
|
3912
|
-
return debounce((
|
|
3913
|
-
target
|
|
3914
|
-
}) => setValue(target.value.length ? target.value : undefined));
|
|
3927
|
+
return debounce(target => setValue(target.value.length ? target.value : undefined));
|
|
3915
3928
|
}, [setValue, debounce]);
|
|
3916
3929
|
const handleInput = e => {
|
|
3917
|
-
handleInputCallback(e);
|
|
3930
|
+
handleInputCallback(e.target);
|
|
3918
3931
|
setLocalValue(e.target.value);
|
|
3919
3932
|
};
|
|
3920
3933
|
useEffect(() => {
|
|
@@ -3976,12 +3989,10 @@ function TextArea(props) {
|
|
|
3976
3989
|
const [localValue, setLocalValue] = useState(value);
|
|
3977
3990
|
const ref = useShowEntryEvent(id);
|
|
3978
3991
|
const handleInputCallback = useMemo(() => {
|
|
3979
|
-
return debounce((
|
|
3980
|
-
target
|
|
3981
|
-
}) => onInput(target.value.length ? target.value : undefined));
|
|
3992
|
+
return debounce(target => onInput(target.value.length ? target.value : undefined));
|
|
3982
3993
|
}, [onInput, debounce]);
|
|
3983
3994
|
const handleInput = e => {
|
|
3984
|
-
handleInputCallback(e);
|
|
3995
|
+
handleInputCallback(e.target);
|
|
3985
3996
|
autoResize && resizeToContents(e.target);
|
|
3986
3997
|
setLocalValue(e.target.value);
|
|
3987
3998
|
};
|
|
@@ -4126,12 +4137,10 @@ function Textfield(props) {
|
|
|
4126
4137
|
const [localValue, setLocalValue] = useState(value || '');
|
|
4127
4138
|
const ref = useShowEntryEvent(id);
|
|
4128
4139
|
const handleInputCallback = useMemo(() => {
|
|
4129
|
-
return debounce((
|
|
4130
|
-
target
|
|
4131
|
-
}) => onInput(target.value.length ? target.value : undefined));
|
|
4140
|
+
return debounce(target => onInput(target.value.length ? target.value : undefined));
|
|
4132
4141
|
}, [onInput, debounce]);
|
|
4133
4142
|
const handleInput = e => {
|
|
4134
|
-
handleInputCallback(e);
|
|
4143
|
+
handleInputCallback(e.target);
|
|
4135
4144
|
setLocalValue(e.target.value);
|
|
4136
4145
|
};
|
|
4137
4146
|
useEffect(() => {
|
|
@@ -4308,5 +4317,5 @@ var index = {
|
|
|
4308
4317
|
feelPopup: ['type', FeelPopupModule]
|
|
4309
4318
|
};
|
|
4310
4319
|
|
|
4311
|
-
export { ArrowIcon, CheckboxEntry, CollapsibleEntry, CreateIcon, index$1 as DebounceInputModule, DeleteIcon, DescriptionContext, Description as DescriptionEntry, DragIcon, DropdownButton, ErrorsContext, EventContext, ExternalLinkIcon, FeelCheckboxEntry, FeelEntry, FeelIcon$1 as FeelIcon, FeelNumberEntry, index as FeelPopupModule, FeelTemplatingEntry, FeelTextAreaEntry, FeelToggleSwitchEntry, Group, Header, HeaderButton, HelpIcon, LayoutContext, List as ListEntry, ListGroup, ListItem, NumberFieldEntry, Placeholder, Popup, PropertiesPanel, LayoutContext as PropertiesPanelContext, SelectEntry, Simple as SimpleEntry, TemplatingEntry, TextAreaEntry, TextfieldEntry as TextFieldEntry, ToggleSwitchEntry, TooltipContext, isEdited$5 as isCheckboxEntryEdited, isEdited$6 as isFeelEntryEdited, isEdited$7 as isNumberFieldEntryEdited, isEdited$3 as isSelectEntryEdited, isEdited$2 as isSimpleEntryEdited, isEdited$4 as isTemplatingEntryEdited, isEdited$1 as isTextAreaEntryEdited, isEdited as isTextFieldEntryEdited, isEdited$8 as isToggleSwitchEntryEdited, useDescriptionContext, useError, useErrors, useEvent, useKeyFactory, useLayoutState, usePrevious, useShowEntryEvent, useStaticCallback, useStickyIntersectionObserver, useTooltipContext };
|
|
4320
|
+
export { ArrowIcon, CheckboxEntry, CollapsibleEntry, CreateIcon, index$1 as DebounceInputModule, DeleteIcon, DescriptionContext, Description as DescriptionEntry, DragIcon, DropdownButton, ErrorsContext, EventContext, ExternalLinkIcon, FeelCheckboxEntry, FeelEntry, FeelIcon$1 as FeelIcon, FeelNumberEntry, index as FeelPopupModule, FeelTemplatingEntry, FeelTextAreaEntry, FeelToggleSwitchEntry, Group, Header, HeaderButton, HelpIcon, LayoutContext, List as ListEntry, ListGroup, ListItem, NumberFieldEntry, Placeholder, Popup, PopupIcon, PropertiesPanel, LayoutContext as PropertiesPanelContext, SelectEntry, Simple as SimpleEntry, TemplatingEntry, TextAreaEntry, TextfieldEntry as TextFieldEntry, ToggleSwitchEntry, TooltipContext, isEdited$5 as isCheckboxEntryEdited, isEdited$6 as isFeelEntryEdited, isEdited$7 as isNumberFieldEntryEdited, isEdited$3 as isSelectEntryEdited, isEdited$2 as isSimpleEntryEdited, isEdited$4 as isTemplatingEntryEdited, isEdited$1 as isTextAreaEntryEdited, isEdited as isTextFieldEntryEdited, isEdited$8 as isToggleSwitchEntryEdited, useDescriptionContext, useError, useErrors, useEvent, useKeyFactory, useLayoutState, usePrevious, useShowEntryEvent, useStaticCallback, useStickyIntersectionObserver, useTooltipContext };
|
|
4312
4321
|
//# sourceMappingURL=index.esm.js.map
|