node-red-contrib-mobius-flow-base 2.5.86-beta.63 → 2.5.86-beta.67
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.
|
@@ -25,25 +25,10 @@ if (typeof selectionIndex === undefined) {
|
|
|
25
25
|
let selectionIndex = 0;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
<input type="text" id="instance-search-hid" style="width:13%;" placeholder="HID">
|
|
30
|
-
<input type="text" id="instance-search-sid" style="width:8%;" placeholder="SID">
|
|
31
|
-
<input type="text" id="instance-search-pid" style="width:10%;" placeholder="PID">
|
|
32
|
-
<input type="text" id="instance-search-ins" style="width:10%;" placeholder="INS">
|
|
33
|
-
<input type="text" id="instance-search-rid" style="width:8%;" placeholder="RID">
|
|
34
|
-
`;
|
|
35
|
-
|
|
36
|
-
const instanceHtml = `
|
|
37
|
-
<input type="text" id="instance-search-hid" style="width:15%;" placeholder="HID">
|
|
38
|
-
<input type="text" id="instance-search-sid" style="width:10%;" placeholder="SID">
|
|
39
|
-
<input type="text" id="instance-search-pid" style="width:10%;" placeholder="PID">
|
|
40
|
-
<input type="text" id="instance-search-ins" style="width:10%;" placeholder="INS">
|
|
41
|
-
`;
|
|
42
|
-
|
|
43
|
-
function addMobsearchListButton(field, i) {
|
|
28
|
+
function addMobsearchListButton(field, i, opts) {
|
|
44
29
|
field.click(function () {
|
|
45
30
|
selectionIndex = i;
|
|
46
|
-
$(
|
|
31
|
+
$(`#${opts.containerRowName}`).hide();
|
|
47
32
|
$('#instance-search-sid').val('');
|
|
48
33
|
$('#instance-search-pid').val('');
|
|
49
34
|
$('#instance-search-ins').val('');
|
|
@@ -57,10 +42,24 @@ function addMobsearchListButton(field, i) {
|
|
|
57
42
|
function getMobsearch(mobiusSrvc, useRid, listed, opts) {
|
|
58
43
|
selectionIndex = 0;
|
|
59
44
|
|
|
45
|
+
const resourceHtml = `
|
|
46
|
+
<input type="text" id="instance-search-hid" style="width:13%;" placeholder="HID">
|
|
47
|
+
<input type="text" id="instance-search-sid" style="width:8%;" placeholder="SID">
|
|
48
|
+
<input type="text" id="instance-search-pid" style="width:10%;" placeholder="PID">
|
|
49
|
+
<input type="text" id="instance-search-ins" style="width:10%;" placeholder="INS">
|
|
50
|
+
<input type="text" id="instance-search-rid" style="width:8%;" placeholder="RID">
|
|
51
|
+
`;
|
|
52
|
+
|
|
53
|
+
const instanceHtml = `
|
|
54
|
+
<input type="text" id="instance-search-hid" style="width:15%;" placeholder="HID">
|
|
55
|
+
<input type="text" id="instance-search-sid" style="width:10%;" placeholder="SID">
|
|
56
|
+
<input type="text" id="instance-search-pid" style="width:10%;" placeholder="PID">
|
|
57
|
+
<input type="text" id="instance-search-ins" style="width:10%;" placeholder="INS">
|
|
58
|
+
`;
|
|
59
|
+
|
|
60
|
+
let uriFieldValue = '';
|
|
60
61
|
if (!listed) {
|
|
61
|
-
|
|
62
|
-
console.log($(`#${opts.uriFieldName}`).val());
|
|
63
|
-
$(`#${opts.uriFieldName}`).val($(`#${opts.uriFieldName}`).val());
|
|
62
|
+
uriFieldValue = $(`#${opts.uriFieldName}`).val();
|
|
64
63
|
}
|
|
65
64
|
|
|
66
65
|
//set level dependent html
|
|
@@ -474,4 +473,8 @@ function getMobsearch(mobiusSrvc, useRid, listed, opts) {
|
|
|
474
473
|
acceptCheck();
|
|
475
474
|
});
|
|
476
475
|
}
|
|
476
|
+
|
|
477
|
+
if (!listed) {
|
|
478
|
+
$(`#${opts.uriFieldName}`).val(uriFieldValue);
|
|
479
|
+
}
|
|
477
480
|
}
|
|
@@ -123,7 +123,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
|
|
123
123
|
if (!node.resources[i]) {
|
|
124
124
|
node.resources[i] = {uri: '', comment: ''}
|
|
125
125
|
}
|
|
126
|
-
addMobsearchListButton(searchField, i)
|
|
126
|
+
addMobsearchListButton(searchField, i, mobsearchOpts)
|
|
127
127
|
// *** END MOBSEARCH *** //
|
|
128
128
|
},
|
|
129
129
|
resizeItem: resizeResource
|
|
@@ -136,14 +136,14 @@ POSSIBILITY OF SUCH DAMAGE.
|
|
|
136
136
|
|
|
137
137
|
// *** MOBSEARCH *** //
|
|
138
138
|
|
|
139
|
-
|
|
139
|
+
mobsearchOpts = {
|
|
140
140
|
htmlElementId: 'mobsearch',
|
|
141
141
|
list: node.resources,
|
|
142
142
|
containerRowName: 'node-input-resources-container-row',
|
|
143
143
|
containerName: 'node-input-resources-container',
|
|
144
144
|
containerSecondFieldName: 'node-input-resources-comment',
|
|
145
145
|
};
|
|
146
|
-
initMobsearch.toRid_listed(mobiusSrvc,
|
|
146
|
+
initMobsearch.toRid_listed(mobiusSrvc, mobsearchOpts);
|
|
147
147
|
|
|
148
148
|
// *** END MOBSEARCH *** //
|
|
149
149
|
|
|
@@ -98,11 +98,18 @@ POSSIBILITY OF SUCH DAMAGE.
|
|
|
98
98
|
oneditprepare: function () {
|
|
99
99
|
var node = this;
|
|
100
100
|
let mobiusSrvc = $("#node-input-connection").val();
|
|
101
|
+
|
|
102
|
+
console.log('Foo');
|
|
103
|
+
console.log($("#node-input-resource").val());
|
|
104
|
+
|
|
101
105
|
opts = {
|
|
102
106
|
htmlElementId: 'mobsearch',
|
|
103
107
|
uriFieldName: 'node-input-resource'
|
|
104
108
|
};
|
|
105
109
|
initMobsearch.toRid(mobiusSrvc, opts);
|
|
110
|
+
|
|
111
|
+
console.log('Bar');
|
|
112
|
+
console.log($("#node-input-resource").val());
|
|
106
113
|
},
|
|
107
114
|
oneditsave: function() {
|
|
108
115
|
if($("#node-input-detailedOutput").prop('checked')) {
|