formiojs-eorion 0.1.27 → 0.1.29
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 +11 -0
- package/components/DataChinaGrid/editForm/Data.edit.display.js +19 -0
- package/components/DataChinaGridRow/Data.js +11 -0
- package/components/DataChinaGridRow/editForm/Data.edit.display.js +19 -0
- package/components/button/Button.js +14 -1
- package/components/iconButton/IconButton.js +14 -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.29';
|
|
1728
1728
|
Formio.pathType = '';
|
|
1729
1729
|
Formio.events = new _EventEmitter.default();
|
|
1730
1730
|
Formio.cdn = new _CDN.default();
|
|
@@ -115,6 +115,17 @@ 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
|
+
if (window.openNewUrlByQmx) {
|
|
120
|
+
window.openNewUrlByQmx(_this2.parseTpl(_this2.component['click-event-url'], {
|
|
121
|
+
data: _this2.rootValue
|
|
122
|
+
}));
|
|
123
|
+
} else {
|
|
124
|
+
window.open(_this2.parseTpl(_this2.component['click-event-url'], {
|
|
125
|
+
data: _this2.rootValue
|
|
126
|
+
}));
|
|
127
|
+
}
|
|
128
|
+
break;
|
|
118
129
|
}
|
|
119
130
|
});
|
|
120
131
|
}
|
|
@@ -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,17 @@ 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
|
+
if (window.openNewUrlByQmx) {
|
|
121
|
+
window.openNewUrlByQmx(_this2.parseTpl(_this2.component['click-event-url'], {
|
|
122
|
+
data: _this2.rootValue
|
|
123
|
+
}));
|
|
124
|
+
} else {
|
|
125
|
+
window.open(_this2.parseTpl(_this2.component['click-event-url'], {
|
|
126
|
+
data: _this2.rootValue
|
|
127
|
+
}));
|
|
128
|
+
}
|
|
129
|
+
break;
|
|
119
130
|
}
|
|
120
131
|
});
|
|
121
132
|
}
|
|
@@ -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,23 @@ 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
|
+
if (window.openNewUrlByQmx) {
|
|
471
|
+
window.openNewUrlByQmx(this.parseTpl(this.component['url'], {
|
|
472
|
+
data: this.rootValue
|
|
473
|
+
}));
|
|
474
|
+
} else {
|
|
475
|
+
window.open(this.parseTpl(this.component['url'], {
|
|
476
|
+
data: this.rootValue
|
|
477
|
+
}));
|
|
478
|
+
}
|
|
479
|
+
break;
|
|
467
480
|
}
|
|
468
481
|
}
|
|
469
482
|
}, {
|
|
@@ -103,10 +103,23 @@ 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
|
+
if (window.openNewUrlByQmx) {
|
|
114
|
+
window.openNewUrlByQmx(_this.parseTpl(_this.component['click-event-url'], {
|
|
115
|
+
data: _this.rootValue
|
|
116
|
+
}));
|
|
117
|
+
} else {
|
|
118
|
+
window.open(_this.parseTpl(_this.component['click-event-url'], {
|
|
119
|
+
data: _this.rootValue
|
|
120
|
+
}));
|
|
121
|
+
}
|
|
122
|
+
break;
|
|
110
123
|
}
|
|
111
124
|
});
|
|
112
125
|
}
|
|
@@ -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: {
|