formiojs-eorion 0.1.27 → 0.1.28
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/Formio.js +1 -1
- package/components/DataChinaGrid/Data.js +5 -0
- package/components/DataChinaGrid/editForm/Data.edit.display.js +19 -0
- package/components/DataChinaGridRow/Data.js +5 -0
- package/components/DataChinaGridRow/editForm/Data.edit.display.js +19 -0
- package/components/button/Button.js +8 -1
- package/components/iconButton/IconButton.js +8 -1
- package/components/iconButton/editForm/IconButton.edit.display.js +4 -1
- package/dist/formio.contrib.js +2 -2
- package/dist/formio.contrib.min.js +1 -1
- package/dist/formio.contrib.min.js.LICENSE.txt +1 -1
- package/dist/formio.embed.min.js.LICENSE.txt +1 -1
- package/dist/formio.form.js +8 -8
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.form.min.js.LICENSE.txt +1 -1
- package/dist/formio.full.js +8 -8
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.full.min.js.LICENSE.txt +1 -1
- package/dist/formio.js +1 -1
- package/dist/formio.min.js +1 -1
- package/dist/formio.min.js.LICENSE.txt +1 -1
- package/dist/formio.utils.min.js.LICENSE.txt +1 -1
- package/package.json +1 -1
package/Formio.js
CHANGED
|
@@ -1724,7 +1724,7 @@ Formio.projectUrlSet = false;
|
|
|
1724
1724
|
Formio.plugins = [];
|
|
1725
1725
|
Formio.cache = {};
|
|
1726
1726
|
Formio.Providers = _providers.default;
|
|
1727
|
-
Formio.version = '0.1.
|
|
1727
|
+
Formio.version = '0.1.28';
|
|
1728
1728
|
Formio.pathType = '';
|
|
1729
1729
|
Formio.events = new _EventEmitter.default();
|
|
1730
1730
|
Formio.cdn = new _CDN.default();
|
|
@@ -115,6 +115,11 @@ var DataChinaGrid = /*#__PURE__*/function (_Component) {
|
|
|
115
115
|
// 切换tab
|
|
116
116
|
Formio.forms[_this2.currentForm.id].getComponent(_this2.component['click-event-tab-id']).setTabByKey(_this2.component['click-event-tab-key']);
|
|
117
117
|
break;
|
|
118
|
+
case 'openUrl':
|
|
119
|
+
window.open(_this2.parseTpl(_this2.component['click-event-url'], {
|
|
120
|
+
data: _this2.rootValue
|
|
121
|
+
}));
|
|
122
|
+
break;
|
|
118
123
|
}
|
|
119
124
|
});
|
|
120
125
|
}
|
|
@@ -312,12 +312,31 @@ var _default = [{
|
|
|
312
312
|
}, {
|
|
313
313
|
label: '切换标签',
|
|
314
314
|
value: 'setTab'
|
|
315
|
+
}, {
|
|
316
|
+
label: 'Open URL',
|
|
317
|
+
value: 'openUrl'
|
|
315
318
|
}]
|
|
316
319
|
},
|
|
317
320
|
type: 'select',
|
|
318
321
|
input: true,
|
|
319
322
|
label: '事件类型',
|
|
320
323
|
dataSrc: 'values'
|
|
324
|
+
}, {
|
|
325
|
+
type: 'input',
|
|
326
|
+
label: 'Url',
|
|
327
|
+
key: 'click-event-url',
|
|
328
|
+
input: true,
|
|
329
|
+
tooltip: '',
|
|
330
|
+
conditional: {
|
|
331
|
+
json: {
|
|
332
|
+
in: [{
|
|
333
|
+
var: 'data.click-event-type'
|
|
334
|
+
}, ['newIntent', 'openUrl']]
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
validate: {
|
|
338
|
+
required: true
|
|
339
|
+
}
|
|
321
340
|
}, {
|
|
322
341
|
type: 'select',
|
|
323
342
|
input: true,
|
|
@@ -116,6 +116,11 @@ var DataChinaGridRow = /*#__PURE__*/function (_Component) {
|
|
|
116
116
|
// 切换tab
|
|
117
117
|
Formio.forms[_this2.currentForm.id].getComponent(_this2.component['click-event-tab-id']).setTabByKey(_this2.component['click-event-tab-key']);
|
|
118
118
|
break;
|
|
119
|
+
case 'openUrl':
|
|
120
|
+
window.open(_this2.parseTpl(_this2.component['click-event-url'], {
|
|
121
|
+
data: _this2.rootValue
|
|
122
|
+
}));
|
|
123
|
+
break;
|
|
119
124
|
}
|
|
120
125
|
});
|
|
121
126
|
}
|
|
@@ -319,12 +319,31 @@ var _default = [{
|
|
|
319
319
|
}, {
|
|
320
320
|
label: '切换标签',
|
|
321
321
|
value: 'setTab'
|
|
322
|
+
}, {
|
|
323
|
+
label: 'Open URL',
|
|
324
|
+
value: 'openUrl'
|
|
322
325
|
}]
|
|
323
326
|
},
|
|
324
327
|
type: 'select',
|
|
325
328
|
input: true,
|
|
326
329
|
label: '事件类型',
|
|
327
330
|
dataSrc: 'values'
|
|
331
|
+
}, {
|
|
332
|
+
type: 'input',
|
|
333
|
+
label: 'Url',
|
|
334
|
+
key: 'click-event-url',
|
|
335
|
+
input: true,
|
|
336
|
+
tooltip: '',
|
|
337
|
+
conditional: {
|
|
338
|
+
json: {
|
|
339
|
+
in: [{
|
|
340
|
+
var: 'data.click-event-type'
|
|
341
|
+
}, ['newIntent', 'openUrl']]
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
validate: {
|
|
345
|
+
required: true
|
|
346
|
+
}
|
|
328
347
|
}, {
|
|
329
348
|
type: 'select',
|
|
330
349
|
input: true,
|
|
@@ -460,10 +460,17 @@ var ButtonComponent = /*#__PURE__*/function (_Field) {
|
|
|
460
460
|
var elink = document.createElement('a');
|
|
461
461
|
elink.style.display = 'none';
|
|
462
462
|
elink.target = "_blank";
|
|
463
|
-
elink.href = this.component["url"]
|
|
463
|
+
elink.href = this.parseTpl(this.component["url"], {
|
|
464
|
+
data: this.rootValue
|
|
465
|
+
});
|
|
464
466
|
document.body.appendChild(elink);
|
|
465
467
|
elink.click();
|
|
466
468
|
break;
|
|
469
|
+
case 'openUrl':
|
|
470
|
+
window.open(this.parseTpl(this.component["url"], {
|
|
471
|
+
data: this.rootValue
|
|
472
|
+
}));
|
|
473
|
+
break;
|
|
467
474
|
}
|
|
468
475
|
}
|
|
469
476
|
}, {
|
|
@@ -103,10 +103,17 @@ var IconButton = /*#__PURE__*/function (_FieldComponent) {
|
|
|
103
103
|
var elink = document.createElement('a');
|
|
104
104
|
elink.style.display = 'none';
|
|
105
105
|
elink.target = "_blank";
|
|
106
|
-
elink.href = _this.component[
|
|
106
|
+
elink.href = _this.parseTpl(_this.component['click-event-url'], {
|
|
107
|
+
data: _this.rootValue
|
|
108
|
+
});
|
|
107
109
|
document.body.appendChild(elink);
|
|
108
110
|
elink.click();
|
|
109
111
|
break;
|
|
112
|
+
case 'openUrl':
|
|
113
|
+
window.open(_this.parseTpl(_this.component['click-event-url'], {
|
|
114
|
+
data: _this.rootValue
|
|
115
|
+
}));
|
|
116
|
+
break;
|
|
110
117
|
}
|
|
111
118
|
});
|
|
112
119
|
}
|
|
@@ -74,6 +74,9 @@ var _default = [{
|
|
|
74
74
|
}, {
|
|
75
75
|
label: '打开网址',
|
|
76
76
|
value: 'newIntent'
|
|
77
|
+
}, {
|
|
78
|
+
label: 'Open URL',
|
|
79
|
+
value: 'openUrl'
|
|
77
80
|
}]
|
|
78
81
|
},
|
|
79
82
|
type: 'select',
|
|
@@ -120,7 +123,7 @@ var _default = [{
|
|
|
120
123
|
json: {
|
|
121
124
|
in: [{
|
|
122
125
|
var: 'data.click-event-type'
|
|
123
|
-
}, ['newIntent']]
|
|
126
|
+
}, ['newIntent', 'openUrl']]
|
|
124
127
|
}
|
|
125
128
|
},
|
|
126
129
|
validate: {
|