@bpmn-io/properties-panel 0.13.1 → 0.15.0-feelEditor.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/CHANGELOG.md +10 -0
- package/assets/properties-panel.css +104 -9
- package/dist/index.esm.js +4049 -68
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4052 -66
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,16 @@ All notable changes to [`@bpmn-io/properties-panel`](https://github.com/bpmn-io/
|
|
|
6
6
|
|
|
7
7
|
___Note:__ Yet to be released changes appear here._
|
|
8
8
|
|
|
9
|
+
## 0.14.0
|
|
10
|
+
|
|
11
|
+
* `FEAT`: enable multiple and empty state ([#69](https://github.com/bpmn-io/properties-panel/issues/69))
|
|
12
|
+
* `FEAT`: make group headers sticky ([#151](https://github.com/bpmn-io/properties-panel/pull/151))
|
|
13
|
+
* `FIX`: fix outline on header buttons ([#148](https://github.com/bpmn-io/properties-panel/pull/148))
|
|
14
|
+
|
|
15
|
+
## 0.13.2
|
|
16
|
+
|
|
17
|
+
* `FIX`: remove unnecessary scroll padding ([#145](https://github.com/bpmn-io/properties-panel/pull/145))
|
|
18
|
+
|
|
9
19
|
## 0.13.1
|
|
10
20
|
|
|
11
21
|
* `FIX`: add accessible title for documentation ref ([#144](https://github.com/bpmn-io/properties-panel/pull/144))
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
--color-grey-225-10-95: hsl(225, 10%, 95%);
|
|
13
13
|
--color-grey-225-10-97: hsl(225, 10%, 97%);
|
|
14
14
|
|
|
15
|
+
--color-blue-205-100-35: hsl(205, 100%, 35%);
|
|
15
16
|
--color-blue-205-100-45: hsl(205, 100%, 45%);
|
|
16
17
|
--color-blue-205-100-50: hsl(205, 100%, 50%);
|
|
17
18
|
--color-blue-205-100-95: hsl(205, 100%, 95%);
|
|
@@ -36,7 +37,8 @@
|
|
|
36
37
|
--description-code-border-color: var(--color-grey-225-10-85);
|
|
37
38
|
--description-list-item-color: var(--color-grey-225-10-35);
|
|
38
39
|
|
|
39
|
-
--placeholder-color: var(--color-grey-225-10-
|
|
40
|
+
--placeholder-color: var(--color-grey-225-10-35);
|
|
41
|
+
--placeholder-background-color: var(--color-grey-225-10-95);
|
|
40
42
|
|
|
41
43
|
--header-background-color: var(--color-grey-225-10-95);
|
|
42
44
|
--header-icon-fill-color: var(--color-grey-225-10-15);
|
|
@@ -45,6 +47,9 @@
|
|
|
45
47
|
--group-background-color: var(--color-white);
|
|
46
48
|
--group-bottom-border-color: var(--color-grey-225-10-75);
|
|
47
49
|
|
|
50
|
+
--sticky-group-background-color: var(--color-grey-225-10-95);
|
|
51
|
+
--sticky-group-bottom-border-color: var(--color-grey-225-10-75);
|
|
52
|
+
|
|
48
53
|
--add-entry-fill-color: var(--color-grey-225-10-35);
|
|
49
54
|
--add-entry-hover-fill-color: var(--color-white);
|
|
50
55
|
--add-entry-hover-background-color: var(--color-blue-205-100-50);
|
|
@@ -94,6 +99,10 @@
|
|
|
94
99
|
--dropdown-item-hover-background-color: var(--color-grey-225-10-95);
|
|
95
100
|
--dropdown-separator-background-color: var(--color-grey-225-10-75);
|
|
96
101
|
|
|
102
|
+
--svg-stroke-color: var(--color-grey-225-10-35);
|
|
103
|
+
|
|
104
|
+
--feel-indicator-background-color: var(--color-grey-225-10-90);
|
|
105
|
+
|
|
97
106
|
--text-size-base: 14px;
|
|
98
107
|
--text-size-small: 13px;
|
|
99
108
|
--text-size-smallest: 12px;
|
|
@@ -128,11 +137,27 @@
|
|
|
128
137
|
flex: 1;
|
|
129
138
|
}
|
|
130
139
|
|
|
140
|
+
/**
|
|
141
|
+
* Placeholder (empty, multi select, ...)
|
|
142
|
+
*/
|
|
131
143
|
.bio-properties-panel-placeholder {
|
|
132
|
-
|
|
144
|
+
position: absolute;
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-direction: column;
|
|
147
|
+
justify-content: center;
|
|
148
|
+
align-items: center;
|
|
149
|
+
top: 0;
|
|
150
|
+
right: 0;
|
|
151
|
+
bottom: 0;
|
|
152
|
+
left: 0;
|
|
153
|
+
background-color: var(--placeholder-background-color);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.bio-properties-panel-placeholder-text {
|
|
133
157
|
color: var(--placeholder-color);
|
|
134
158
|
font-size: var(--text-size-base);
|
|
135
159
|
text-align: center;
|
|
160
|
+
margin: 12px 48px;
|
|
136
161
|
}
|
|
137
162
|
|
|
138
163
|
/**
|
|
@@ -144,7 +169,6 @@
|
|
|
144
169
|
align-items: center;
|
|
145
170
|
font-size: var(--text-size-base);
|
|
146
171
|
padding: 16px 10px;
|
|
147
|
-
margin-bottom: 2px;
|
|
148
172
|
background-color: var(--header-background-color);
|
|
149
173
|
border-bottom: 1px solid var(--header-bottom-border-color);
|
|
150
174
|
width: 100%;
|
|
@@ -197,7 +221,6 @@
|
|
|
197
221
|
overflow-y: auto;
|
|
198
222
|
overflow-x: hidden;
|
|
199
223
|
flex: 1;
|
|
200
|
-
padding-bottom: 70px;
|
|
201
224
|
}
|
|
202
225
|
|
|
203
226
|
/**
|
|
@@ -206,10 +229,10 @@
|
|
|
206
229
|
.bio-properties-panel-group {
|
|
207
230
|
background-color: var(--group-background-color);
|
|
208
231
|
border-bottom: 1px solid var(--group-bottom-border-color);
|
|
232
|
+
position: relative;
|
|
209
233
|
}
|
|
210
234
|
|
|
211
235
|
.bio-properties-panel-group-header {
|
|
212
|
-
position: relative;
|
|
213
236
|
display: flex;
|
|
214
237
|
flex-direction: row;
|
|
215
238
|
align-items: center;
|
|
@@ -217,6 +240,12 @@
|
|
|
217
240
|
height: 32px;
|
|
218
241
|
user-select: none;
|
|
219
242
|
justify-content: space-between;
|
|
243
|
+
margin-bottom: -1px; /* avoid double borders */
|
|
244
|
+
position: relative; /* browsers not supporting sticky */
|
|
245
|
+
position: -webkit-sticky; /* for safari */
|
|
246
|
+
position: sticky;
|
|
247
|
+
top: 0;
|
|
248
|
+
z-index: 1;
|
|
220
249
|
}
|
|
221
250
|
|
|
222
251
|
.bio-properties-panel-group-header .bio-properties-panel-group-header-title {
|
|
@@ -230,6 +259,11 @@
|
|
|
230
259
|
font-weight: 500;
|
|
231
260
|
}
|
|
232
261
|
|
|
262
|
+
.bio-properties-panel-group-header.sticky {
|
|
263
|
+
background-color: var(--sticky-group-background-color);
|
|
264
|
+
border-bottom: 1px solid var(--sticky-group-bottom-border-color);
|
|
265
|
+
}
|
|
266
|
+
|
|
233
267
|
.bio-properties-panel-group-header-buttons {
|
|
234
268
|
display: flex;
|
|
235
269
|
}
|
|
@@ -259,7 +293,6 @@
|
|
|
259
293
|
|
|
260
294
|
.bio-properties-panel-group-header.empty .bio-properties-panel-add-entry {
|
|
261
295
|
margin-right: 69px;
|
|
262
|
-
padding-left: 6px;
|
|
263
296
|
}
|
|
264
297
|
|
|
265
298
|
.bio-properties-panel-group-header.empty .bio-properties-panel-add-entry:hover {
|
|
@@ -269,7 +302,7 @@
|
|
|
269
302
|
.bio-properties-panel-group-header.empty .bio-properties-panel-add-entry-label {
|
|
270
303
|
display: none;
|
|
271
304
|
color: var(--add-entry-label-color);
|
|
272
|
-
padding:
|
|
305
|
+
padding: 0 6px 0 2px;
|
|
273
306
|
}
|
|
274
307
|
|
|
275
308
|
.bio-properties-panel-group-header-button.bio-properties-panel-add-entry:hover {
|
|
@@ -418,12 +451,19 @@ textarea.bio-properties-panel-input,
|
|
|
418
451
|
width: 100%;
|
|
419
452
|
}
|
|
420
453
|
|
|
421
|
-
.bio-properties-panel-input:focus
|
|
454
|
+
.bio-properties-panel-input:focus,
|
|
455
|
+
.bio-properties-panel-input:focus-within {
|
|
422
456
|
outline: none;
|
|
423
457
|
background-color: var(--input-focus-background-color);
|
|
424
458
|
border: 1px solid var(--input-focus-border-color);
|
|
425
459
|
}
|
|
426
460
|
|
|
461
|
+
.bio-properties-panel-textfield:focus-within,
|
|
462
|
+
.bio-properties-panel-feel-entry:focus-within {
|
|
463
|
+
--input-background-color: var(--input-focus-background-color);
|
|
464
|
+
--input-border-color: var(--input-focus-border-color);
|
|
465
|
+
}
|
|
466
|
+
|
|
427
467
|
.bio-properties-panel-input:disabled {
|
|
428
468
|
border-color: var(--input-disabled-border-color);
|
|
429
469
|
background-color: var(--input-disabled-background-color);
|
|
@@ -893,10 +933,65 @@ textarea.bio-properties-panel-input {
|
|
|
893
933
|
display: inline-block;
|
|
894
934
|
height: 16px;
|
|
895
935
|
vertical-align: text-bottom;
|
|
896
|
-
padding: 0
|
|
936
|
+
padding: 0;
|
|
937
|
+
margin: 0 3px;
|
|
938
|
+
justify-content: center;
|
|
939
|
+
align-items: center;
|
|
940
|
+
align-self: center;
|
|
941
|
+
border: none;
|
|
942
|
+
background: none;
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
.bio-properties-panel-feel-icon.optional {
|
|
946
|
+
cursor: pointer;
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
.bio-properties-panel-feel-icon.active {
|
|
950
|
+
color: var(--add-entry-hover-background-color);
|
|
951
|
+
--svg-stroke-color: var(--color-blue-205-100-35);
|
|
897
952
|
}
|
|
898
953
|
|
|
899
954
|
.bio-properties-panel-feel-icon svg {
|
|
900
955
|
width: 16px;
|
|
901
956
|
height: 16px;
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
.feel-editor-container {
|
|
960
|
+
position: relative;
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
.feel-editor-container.active {
|
|
964
|
+
font-family: var(--font-family-monospace);
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
.bio-properties-panel-feel-container {
|
|
968
|
+
position: relative;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
.bio-properties-panel-feel-container .feel-editor-container>div {
|
|
972
|
+
position: static;
|
|
973
|
+
padding-left: 2.4em !important;
|
|
974
|
+
min-height: 28px;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
.cm-scroller {
|
|
978
|
+
overflow-x: hidden !important;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
.FeelToggle {
|
|
982
|
+
position: absolute;
|
|
983
|
+
height: 100%;
|
|
984
|
+
width: 2em;
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
.FeelToggle button {
|
|
988
|
+
position: absolute;
|
|
989
|
+
right: auto;
|
|
990
|
+
border: 1px solid var(--input-border-color);
|
|
991
|
+
background-color: var(--feel-indicator-background-color);
|
|
992
|
+
border-right: 0px;
|
|
993
|
+
border-radius: 2px 0 0 2px;
|
|
994
|
+
z-index: 100;
|
|
995
|
+
height: 100%;
|
|
996
|
+
width: 2em;
|
|
902
997
|
}
|