@bpmn-io/properties-panel 3.41.1 → 3.41.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/properties-panel.css +21 -36
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -569,42 +569,6 @@ textarea.bio-properties-panel-input {
|
|
|
569
569
|
resize: vertical;
|
|
570
570
|
}
|
|
571
571
|
|
|
572
|
-
/**
|
|
573
|
-
* JSON Editor (CodeMirror)
|
|
574
|
-
*/
|
|
575
|
-
|
|
576
|
-
.bio-properties-panel-json-editor .cm-editor {
|
|
577
|
-
border: 1px solid var(--input-border-color);
|
|
578
|
-
border-radius: 2px;
|
|
579
|
-
background-color: var(--input-background-color);
|
|
580
|
-
font-size: var(--text-size-base);
|
|
581
|
-
font-family: var(--font-family-monospace);
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
.bio-properties-panel-json-editor .cm-editor.cm-focused {
|
|
585
|
-
outline: none;
|
|
586
|
-
background-color: var(--input-focus-background-color);
|
|
587
|
-
border-color: var(--input-focus-border-color);
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
.bio-properties-panel-json-editor .cm-scroller {
|
|
591
|
-
overflow: auto;
|
|
592
|
-
max-height: 215px;
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
.bio-properties-panel-json-editor .cm-content {
|
|
596
|
-
padding-right: 18px;
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
.bio-properties-panel-entry.has-error .bio-properties-panel-json-editor .cm-editor {
|
|
600
|
-
border-color: var(--input-error-border-color);
|
|
601
|
-
background-color: var(--input-error-background-color);
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
.bio-properties-panel-entry.has-error .bio-properties-panel-json-editor .cm-editor.cm-focused {
|
|
605
|
-
border-color: var(--input-error-focus-border-color);
|
|
606
|
-
}
|
|
607
|
-
|
|
608
572
|
.bio-properties-panel-entry.has-error .bio-properties-panel-input,
|
|
609
573
|
.bio-properties-panel-entry.has-error .bio-properties-panel-feel-editor__open-popup-placeholder {
|
|
610
574
|
border-color: var(--input-error-border-color);
|
|
@@ -635,6 +599,27 @@ textarea.bio-properties-panel-input {
|
|
|
635
599
|
margin: auto;
|
|
636
600
|
}
|
|
637
601
|
|
|
602
|
+
/**
|
|
603
|
+
* JSON Editor (CodeMirror)
|
|
604
|
+
*/
|
|
605
|
+
|
|
606
|
+
.bio-properties-panel-json-editor .bio-properties-panel-input {
|
|
607
|
+
padding: 0;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
.bio-properties-panel-json-editor .cm-editor {
|
|
611
|
+
font-family: var(--font-family-monospace);
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
.bio-properties-panel-json-editor .cm-editor.cm-focused {
|
|
615
|
+
outline: none;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
.bio-properties-panel-json-editor .cm-scroller {
|
|
619
|
+
overflow: auto;
|
|
620
|
+
max-height: 215px;
|
|
621
|
+
}
|
|
622
|
+
|
|
638
623
|
/**
|
|
639
624
|
* Toggle Switch
|
|
640
625
|
*/
|
package/dist/index.esm.js
CHANGED
|
@@ -1923,6 +1923,7 @@ function JsonEditor(props) {
|
|
|
1923
1923
|
children: label
|
|
1924
1924
|
})
|
|
1925
1925
|
}), jsx("div", {
|
|
1926
|
+
class: classnames('bio-properties-panel-input', value && 'edited'),
|
|
1926
1927
|
ref: containerRef
|
|
1927
1928
|
})]
|
|
1928
1929
|
});
|
|
@@ -2001,8 +2002,7 @@ function JsonEditorEntry(props) {
|
|
|
2001
2002
|
* Check if the JSON editor entry has been edited.
|
|
2002
2003
|
*/
|
|
2003
2004
|
function isEdited$8(node) {
|
|
2004
|
-
|
|
2005
|
-
return cmContent ? cmContent.textContent.trim().length > 0 : false;
|
|
2005
|
+
return node && node.classList.contains('edited');
|
|
2006
2006
|
}
|
|
2007
2007
|
|
|
2008
2008
|
// helpers /////////////////
|