@bpmn-io/form-js-playground 0.11.0 → 0.11.1
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.
|
@@ -1,36 +1,4 @@
|
|
|
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
|
-
}.fjs-pgl-root {
|
|
1
|
+
.fjs-pgl-root {
|
|
34
2
|
--color-button-hover: var(--color-grey-225-10-95);
|
|
35
3
|
|
|
36
4
|
--color-section-border: var(--color-grey-225-10-55);
|
|
@@ -270,3 +238,36 @@
|
|
|
270
238
|
width: 100%;
|
|
271
239
|
height: 100%;
|
|
272
240
|
}
|
|
241
|
+
/**
|
|
242
|
+
* file-drop.css
|
|
243
|
+
*/
|
|
244
|
+
.drop-overlay {
|
|
245
|
+
position: fixed;
|
|
246
|
+
top: 0;
|
|
247
|
+
left: 0;
|
|
248
|
+
bottom: 0;
|
|
249
|
+
right: 0;
|
|
250
|
+
|
|
251
|
+
padding: 50px;
|
|
252
|
+
|
|
253
|
+
background: rgba(255, 255, 255, .9);
|
|
254
|
+
|
|
255
|
+
z-index: 1000;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.drop-overlay .box {
|
|
259
|
+
text-align: center;
|
|
260
|
+
border: dashed 4px #CCC;
|
|
261
|
+
height: 100%;
|
|
262
|
+
width: 100%;
|
|
263
|
+
display: table;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.drop-overlay .label {
|
|
267
|
+
font-size: 26px;
|
|
268
|
+
color: #888;
|
|
269
|
+
margin: auto;
|
|
270
|
+
|
|
271
|
+
display: table-cell;
|
|
272
|
+
vertical-align: middle;
|
|
273
|
+
}
|
|
@@ -48324,10 +48324,39 @@
|
|
|
48324
48324
|
}
|
|
48325
48325
|
}
|
|
48326
48326
|
KeyBehavior.$inject = ['eventBus', 'modeling'];
|
|
48327
|
+
class ValidateBehavior extends CommandInterceptor {
|
|
48328
|
+
constructor(eventBus) {
|
|
48329
|
+
super(eventBus);
|
|
48330
|
+
|
|
48331
|
+
/**
|
|
48332
|
+
* Remove custom validation if <validationType> is about to be added.
|
|
48333
|
+
*/
|
|
48334
|
+
// @ts-ignore-next-line
|
|
48335
|
+
this.preExecute('formField.edit', function (context) {
|
|
48336
|
+
const {
|
|
48337
|
+
properties
|
|
48338
|
+
} = context;
|
|
48339
|
+
const {
|
|
48340
|
+
validate = {}
|
|
48341
|
+
} = properties;
|
|
48342
|
+
if (validate.validationType) {
|
|
48343
|
+
const newValidate = {
|
|
48344
|
+
...validate
|
|
48345
|
+
};
|
|
48346
|
+
delete newValidate.minLength;
|
|
48347
|
+
delete newValidate.maxLength;
|
|
48348
|
+
delete newValidate.pattern;
|
|
48349
|
+
properties['validate'] = newValidate;
|
|
48350
|
+
}
|
|
48351
|
+
}, true);
|
|
48352
|
+
}
|
|
48353
|
+
}
|
|
48354
|
+
ValidateBehavior.$inject = ['eventBus'];
|
|
48327
48355
|
var behaviorModule = {
|
|
48328
|
-
__init__: ['idBehavior', 'keyBehavior'],
|
|
48356
|
+
__init__: ['idBehavior', 'keyBehavior', 'validateBehavior'],
|
|
48329
48357
|
idBehavior: ['type', IdBehavior],
|
|
48330
|
-
keyBehavior: ['type', KeyBehavior]
|
|
48358
|
+
keyBehavior: ['type', KeyBehavior],
|
|
48359
|
+
validateBehavior: ['type', ValidateBehavior]
|
|
48331
48360
|
};
|
|
48332
48361
|
|
|
48333
48362
|
/**
|
|
@@ -52950,6 +52979,7 @@
|
|
|
52950
52979
|
component: ValidationType,
|
|
52951
52980
|
getValue,
|
|
52952
52981
|
field,
|
|
52982
|
+
editField,
|
|
52953
52983
|
isEdited: isEdited$1,
|
|
52954
52984
|
onChange
|
|
52955
52985
|
});
|
|
@@ -53116,15 +53146,7 @@
|
|
|
53116
53146
|
onChange
|
|
53117
53147
|
} = props;
|
|
53118
53148
|
const debounce = useService('debounce');
|
|
53119
|
-
const clearCustomValidation = () => {
|
|
53120
|
-
onChange('minLength')(undefined);
|
|
53121
|
-
onChange('maxLength')(undefined);
|
|
53122
|
-
onChange('pattern')(undefined);
|
|
53123
|
-
};
|
|
53124
53149
|
const setValue = validationType => {
|
|
53125
|
-
if (validationType) {
|
|
53126
|
-
clearCustomValidation();
|
|
53127
|
-
}
|
|
53128
53150
|
onChange('validationType')(validationType || undefined);
|
|
53129
53151
|
};
|
|
53130
53152
|
return SelectEntry({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bpmn-io/form-js-playground",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "A form-js playground",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"url": "https://github.com/bpmn-io"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@bpmn-io/form-js-editor": "^0.11.
|
|
47
|
+
"@bpmn-io/form-js-editor": "^0.11.1",
|
|
48
48
|
"@bpmn-io/form-js-viewer": "^0.11.0",
|
|
49
49
|
"@codemirror/autocomplete": "^6.3.4",
|
|
50
50
|
"@codemirror/commands": "^6.1.2",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"rollup-plugin-css-only": "^3.1.0",
|
|
71
71
|
"style-loader": "^3.3.0"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "2e4734eae1e244d6a4b728893cd86c2f4de402e2"
|
|
74
74
|
}
|