@bpmn-io/form-js-playground 1.3.0-alpha.0 → 1.3.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/LICENSE CHANGED
@@ -1,23 +1,23 @@
1
- Copyright (c) 2021-present Camunda Services GmbH
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of
4
- this software and associated documentation files (the "Software"), to deal in the
5
- Software without restriction, including without limitation the rights to use, copy,
6
- modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
7
- and to permit persons to whom the Software is furnished to do so, subject to the
8
- following conditions:
9
-
10
- The above copyright notice and this permission notice shall be included in all
11
- copies or substantial portions of the Software.
12
-
13
- The source code responsible for displaying the bpmn.io project watermark that
14
- links back to https://bpmn.io as part of rendered diagrams MUST NOT be
15
- removed or changed. When this software is being used in a website or application,
16
- the watermark must stay fully visible and not visually overlapped by other elements.
17
-
18
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
19
- INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
20
- PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
21
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
22
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
1
+ Copyright (c) 2021-present Camunda Services GmbH
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
4
+ this software and associated documentation files (the "Software"), to deal in the
5
+ Software without restriction, including without limitation the rights to use, copy,
6
+ modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
7
+ and to permit persons to whom the Software is furnished to do so, subject to the
8
+ following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ The source code responsible for displaying the bpmn.io project watermark that
14
+ links back to https://bpmn.io as part of rendered diagrams MUST NOT be
15
+ removed or changed. When this software is being used in a website or application,
16
+ the watermark must stay fully visible and not visually overlapped by other elements.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
19
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
20
+ PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
21
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
22
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
23
23
  OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,260 +1,260 @@
1
- /**
2
- * file-drop.css
3
- */
4
- .drop-overlay {
5
- position: fixed;
6
- top: 0;
7
- left: 0;
8
- bottom: 0;
9
- right: 0;
10
-
11
- padding: 50px;
12
-
13
- background: rgba(255, 255, 255, .9);
14
-
15
- z-index: 1000;
16
- }
17
-
18
- .drop-overlay .box {
19
- text-align: center;
20
- border: dashed 4px #CCC;
21
- height: 100%;
22
- width: 100%;
23
- display: table;
24
- }
25
-
26
- .drop-overlay .label {
27
- font-size: 26px;
28
- color: #888;
29
- margin: auto;
30
-
31
- display: table-cell;
32
- vertical-align: middle;
33
- }
34
- .fjs-pgl-root {
35
- --color-button-hover: var(--color-grey-225-10-95);
36
-
37
- --color-section-border: var(--color-grey-225-10-55);
38
- --color-section-header-background: var(--color-grey-225-10-95);
39
- --color-section-header-border-bottom: var(--color-grey-225-10-75);
40
-
41
- --color-palette-container-background: var(--color-grey-225-10-97);
42
- --color-palette-container-border: var(--color-grey-225-10-80);
43
-
44
- --color-properties-container-background: var(--color-white);
45
-
46
- --color-text: var(--color-grey-225-10-15);
47
-
48
- --font-family: 'IBM Plex Sans', sans-serif;
49
- --font-family-monospace: 'IBM Plex Mono', monospace;
50
-
51
- --modal-zindex: 100;
52
- }
53
-
54
- .fjs-pgl-root {
55
- width: 100%;
56
- height: 100%;
57
-
58
- position: relative;
59
- display: flex;
60
-
61
- font-family: var(--font-family);
62
- }
63
-
64
- .fjs-pgl-main {
65
- width: calc(100% - 450px);
66
- height: 100%;
67
-
68
- display: grid;
69
- grid-template-columns: 50% 50%;
70
- grid-template-rows: 70% 30%;
71
- }
72
-
73
- /**
74
- * Palette
75
- */
76
- .fjs-pgl-palette-container {
77
- height: 100%;
78
- background-color: var(--color-palette-container-background);
79
- border-right: solid 1px var(--color-palette-container-border);
80
- overflow-y: auto;
81
- flex-shrink: 0;
82
- }
83
-
84
- .fjs-pgl-palette-container .fjs-palette-container {
85
- height: 100%;
86
- border-right: none;
87
- }
88
-
89
- /**
90
- * Properties Panel
91
- */
92
- .fjs-pgl-properties-container {
93
- position: relative;
94
- display: flex;
95
- height: 100%;
96
- width: 250px;
97
- overflow-y: auto;
98
- background-color: var(--color-properties-container-background);
99
- }
100
-
101
- .fjs-pgl-properties-container .fjs-properties-container {
102
- --properties-panel-width: 250px;
103
- }
104
-
105
- .fjs-pgl-properties-container .bio-properties-panel {
106
- --font-family: var(--font-family);
107
- }
108
-
109
- /**
110
- * Section
111
- */
112
- .fjs-pgl-section {
113
- display: flex;
114
- flex-direction: column;
115
- justify-content: stretch;
116
- }
117
-
118
- .fjs-pgl-section:nth-child(1),
119
- .fjs-pgl-section:nth-child(2) {
120
- border-bottom: double 3px var(--color-section-border);
121
- }
122
-
123
- .fjs-pgl-section:nth-child(1),
124
- .fjs-pgl-section:nth-child(3) {
125
- border-right: double 3px var(--color-section-border);
126
- }
127
-
128
- .fjs-pgl-section .header {
129
- background: var(--color-section-header-background);
130
- font-size: 1rem;
131
- margin: 0;
132
- line-height: 2em;
133
- padding: .2em .5em;
134
- border-bottom: solid 1px var(--color-section-header-border-bottom);
135
- }
136
-
137
- .fjs-pgl-section .header-items {
138
- float: right;
139
- }
140
-
141
- .fjs-pgl-section .body {
142
- flex: 1;
143
- overflow: hidden;
144
- }
145
-
146
- .fjs-pgl-modal {
147
- z-index: var(--modal-zindex);
148
- }
149
-
150
- .fjs-pgl-modal .fjs-pgl-modal-backdrop {
151
- background: rgba(0 0 0 / .5);
152
- position: absolute;
153
- top: 0;
154
- left: 0;
155
- bottom: 0;
156
- right: 0;
157
- z-index: var(--modal-zindex);
158
- }
159
-
160
- .fjs-pgl-modal-content {
161
- position: absolute;
162
- top: 50%;
163
- left: 50%;
164
- max-width: 100%;
165
- width: 500px;
166
- overflow-y: auto;
167
- max-height: 80%;
168
- transform: translate(-40%, -50%);
169
- z-index: var(--modal-zindex);
170
-
171
- font-size: 14px;
172
-
173
- padding: 20px;
174
-
175
- background: var(--color-white);
176
- }
177
-
178
- .fjs-pgl-modal-content textarea {
179
- width: 100%;
180
- height: 300px;
181
- overflow: auto;
182
- }
183
-
184
- .fjs-pgl-modal-footer {
185
- margin-top: 20px;
186
-
187
- text-align: right;
188
- }
189
-
190
- .fjs-pgl-form-container {
191
- height: 100%;
192
- width: 100%;
193
- overflow: hidden;
194
- }
195
-
196
- .fjs-pgl-form-container .fjs-container .cds--grid .cds--row {
197
- margin-left: -1rem;
198
- margin-right: -1rem;
199
- }
200
-
201
- .fjs-pgl-form-container .fjs-form-editor {
202
- width: 100%;
203
- }
204
-
205
- .fjs-pgl-text-container {
206
- height: 100%;
207
- width: 100%;
208
- box-sizing: border-box;
209
- border: none;
210
- border-radius: 0;
211
- position: relative;
212
- }
213
-
214
- .fjs-pgl-text-container > .cm-editor {
215
- font-size: .9em;
216
- height: 100%;
217
- position: absolute !important;
218
- top: 0;
219
- left: 0;
220
- right: 0;
221
- bottom: 0;
222
- }
223
-
224
- .fjs-pgl-text-container > .cm-editor > .cm-scroller {
225
- font-family: var(--font-family-monospace);
226
- overflow: auto !important;
227
- }
228
-
229
- .fjs-pgl-form-container > .fjs-container {
230
- overflow: auto;
231
- }
232
-
233
- .fjs-pgl-button {
234
- color: var(--color-text);
235
- background-color: var(--color-white);
236
-
237
- border-width: 1px;
238
- border-style: solid;
239
- border-radius: 3px;
240
-
241
- font-family: var(--font-family);
242
- }
243
-
244
- .fjs-pgl-button-default {
245
- padding: 7px 10px;
246
- }
247
-
248
- .fjs-pgl-button:hover {
249
- background-color: var(--color-button-hover);
250
- }
251
-
252
- .fjs-pgl-button + .fjs-pgl-button {
253
- margin-left: 1em;
254
- }
255
-
256
- .fjs-pgl-parent {
257
- width: 100%;
258
- height: 100%;
259
- }
1
+ /**
2
+ * file-drop.css
3
+ */
4
+ .drop-overlay {
5
+ position: fixed;
6
+ top: 0;
7
+ left: 0;
8
+ bottom: 0;
9
+ right: 0;
10
+
11
+ padding: 50px;
12
+
13
+ background: rgba(255, 255, 255, .9);
14
+
15
+ z-index: 1000;
16
+ }
17
+
18
+ .drop-overlay .box {
19
+ text-align: center;
20
+ border: dashed 4px #CCC;
21
+ height: 100%;
22
+ width: 100%;
23
+ display: table;
24
+ }
25
+
26
+ .drop-overlay .label {
27
+ font-size: 26px;
28
+ color: #888;
29
+ margin: auto;
30
+
31
+ display: table-cell;
32
+ vertical-align: middle;
33
+ }
34
+ .fjs-pgl-root {
35
+ --color-button-hover: var(--color-grey-225-10-95);
36
+
37
+ --color-section-border: var(--color-grey-225-10-55);
38
+ --color-section-header-background: var(--color-grey-225-10-95);
39
+ --color-section-header-border-bottom: var(--color-grey-225-10-75);
40
+
41
+ --color-palette-container-background: var(--color-grey-225-10-97);
42
+ --color-palette-container-border: var(--color-grey-225-10-80);
43
+
44
+ --color-properties-container-background: var(--color-white);
45
+
46
+ --color-text: var(--color-grey-225-10-15);
47
+
48
+ --font-family: 'IBM Plex Sans', sans-serif;
49
+ --font-family-monospace: 'IBM Plex Mono', monospace;
50
+
51
+ --modal-zindex: 100;
52
+ }
53
+
54
+ .fjs-pgl-root {
55
+ width: 100%;
56
+ height: 100%;
57
+
58
+ position: relative;
59
+ display: flex;
60
+
61
+ font-family: var(--font-family);
62
+ }
63
+
64
+ .fjs-pgl-main {
65
+ width: calc(100% - 450px);
66
+ height: 100%;
67
+
68
+ display: grid;
69
+ grid-template-columns: 50% 50%;
70
+ grid-template-rows: 70% 30%;
71
+ }
72
+
73
+ /**
74
+ * Palette
75
+ */
76
+ .fjs-pgl-palette-container {
77
+ height: 100%;
78
+ background-color: var(--color-palette-container-background);
79
+ border-right: solid 1px var(--color-palette-container-border);
80
+ overflow-y: auto;
81
+ flex-shrink: 0;
82
+ }
83
+
84
+ .fjs-pgl-palette-container .fjs-palette-container {
85
+ height: 100%;
86
+ border-right: none;
87
+ }
88
+
89
+ /**
90
+ * Properties Panel
91
+ */
92
+ .fjs-pgl-properties-container {
93
+ position: relative;
94
+ display: flex;
95
+ height: 100%;
96
+ width: 250px;
97
+ overflow-y: auto;
98
+ background-color: var(--color-properties-container-background);
99
+ }
100
+
101
+ .fjs-pgl-properties-container .fjs-properties-container {
102
+ --properties-panel-width: 250px;
103
+ }
104
+
105
+ .fjs-pgl-properties-container .bio-properties-panel {
106
+ --font-family: var(--font-family);
107
+ }
108
+
109
+ /**
110
+ * Section
111
+ */
112
+ .fjs-pgl-section {
113
+ display: flex;
114
+ flex-direction: column;
115
+ justify-content: stretch;
116
+ }
117
+
118
+ .fjs-pgl-section:nth-child(1),
119
+ .fjs-pgl-section:nth-child(2) {
120
+ border-bottom: double 3px var(--color-section-border);
121
+ }
122
+
123
+ .fjs-pgl-section:nth-child(1),
124
+ .fjs-pgl-section:nth-child(3) {
125
+ border-right: double 3px var(--color-section-border);
126
+ }
127
+
128
+ .fjs-pgl-section .header {
129
+ background: var(--color-section-header-background);
130
+ font-size: 1rem;
131
+ margin: 0;
132
+ line-height: 2em;
133
+ padding: .2em .5em;
134
+ border-bottom: solid 1px var(--color-section-header-border-bottom);
135
+ }
136
+
137
+ .fjs-pgl-section .header-items {
138
+ float: right;
139
+ }
140
+
141
+ .fjs-pgl-section .body {
142
+ flex: 1;
143
+ overflow: hidden;
144
+ }
145
+
146
+ .fjs-pgl-modal {
147
+ z-index: var(--modal-zindex);
148
+ }
149
+
150
+ .fjs-pgl-modal .fjs-pgl-modal-backdrop {
151
+ background: rgba(0 0 0 / .5);
152
+ position: absolute;
153
+ top: 0;
154
+ left: 0;
155
+ bottom: 0;
156
+ right: 0;
157
+ z-index: var(--modal-zindex);
158
+ }
159
+
160
+ .fjs-pgl-modal-content {
161
+ position: absolute;
162
+ top: 50%;
163
+ left: 50%;
164
+ max-width: 100%;
165
+ width: 500px;
166
+ overflow-y: auto;
167
+ max-height: 80%;
168
+ transform: translate(-40%, -50%);
169
+ z-index: var(--modal-zindex);
170
+
171
+ font-size: 14px;
172
+
173
+ padding: 20px;
174
+
175
+ background: var(--color-white);
176
+ }
177
+
178
+ .fjs-pgl-modal-content textarea {
179
+ width: 100%;
180
+ height: 300px;
181
+ overflow: auto;
182
+ }
183
+
184
+ .fjs-pgl-modal-footer {
185
+ margin-top: 20px;
186
+
187
+ text-align: right;
188
+ }
189
+
190
+ .fjs-pgl-form-container {
191
+ height: 100%;
192
+ width: 100%;
193
+ overflow: hidden;
194
+ }
195
+
196
+ .fjs-pgl-form-container .fjs-container .cds--grid .cds--row {
197
+ margin-left: -1rem;
198
+ margin-right: -1rem;
199
+ }
200
+
201
+ .fjs-pgl-form-container .fjs-form-editor {
202
+ width: 100%;
203
+ }
204
+
205
+ .fjs-pgl-text-container {
206
+ height: 100%;
207
+ width: 100%;
208
+ box-sizing: border-box;
209
+ border: none;
210
+ border-radius: 0;
211
+ position: relative;
212
+ }
213
+
214
+ .fjs-pgl-text-container > .cm-editor {
215
+ font-size: .9em;
216
+ height: 100%;
217
+ position: absolute !important;
218
+ top: 0;
219
+ left: 0;
220
+ right: 0;
221
+ bottom: 0;
222
+ }
223
+
224
+ .fjs-pgl-text-container > .cm-editor > .cm-scroller {
225
+ font-family: var(--font-family-monospace);
226
+ overflow: auto !important;
227
+ }
228
+
229
+ .fjs-pgl-form-container > .fjs-container {
230
+ overflow: auto;
231
+ }
232
+
233
+ .fjs-pgl-button {
234
+ color: var(--color-text);
235
+ background-color: var(--color-white);
236
+
237
+ border-width: 1px;
238
+ border-style: solid;
239
+ border-radius: 3px;
240
+
241
+ font-family: var(--font-family);
242
+ }
243
+
244
+ .fjs-pgl-button-default {
245
+ padding: 7px 10px;
246
+ }
247
+
248
+ .fjs-pgl-button:hover {
249
+ background-color: var(--color-button-hover);
250
+ }
251
+
252
+ .fjs-pgl-button + .fjs-pgl-button {
253
+ margin-left: 1em;
254
+ }
255
+
256
+ .fjs-pgl-parent {
257
+ width: 100%;
258
+ height: 100%;
259
+ }
260
260