@bexis2/bexis2-core-ui 0.2.24 → 0.2.25
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/README.md
CHANGED
|
@@ -83,7 +83,9 @@ async function handleSubmit() {
|
|
|
83
83
|
if (response.status == 200) {
|
|
84
84
|
dispatch("submited");
|
|
85
85
|
let message = files.accepted.length + " is/are uploaded";
|
|
86
|
-
|
|
86
|
+
let fileList = [];
|
|
87
|
+
files.accepted.forEach((f) => fileList.push(f.name));
|
|
88
|
+
dispatch("success", { text: message, files: fileList });
|
|
87
89
|
files.accepted = [];
|
|
88
90
|
}
|
|
89
91
|
}
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
$: groupBy;
|
|
33
33
|
|
|
34
34
|
function updateTarget(selection) {
|
|
35
|
-
console.log("UPDATE target",selection);
|
|
35
|
+
//console.log("UPDATE target",selection);
|
|
36
36
|
//different cases
|
|
37
37
|
//a) source is complex model is simple return array
|
|
38
38
|
if (complexSource && !complexTarget && isLoaded && isMulti) {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
|
|
69
69
|
if (complexSource && !complexTarget && isLoaded && !isMulti) {
|
|
70
70
|
target = selection[itemLabel];
|
|
71
|
-
console.log('selection', selection);
|
|
71
|
+
//console.log('selection', selection);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
//console.log('selection ' + title, selection);
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
onMount(async () => {
|
|
79
|
-
|
|
79
|
+
//console.log("OnMount", target)
|
|
80
80
|
if(complexSource && complexTarget) // after on mount a setValue is needed when data is complex
|
|
81
81
|
{
|
|
82
82
|
setValue(target);
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
});
|
|
85
85
|
|
|
86
86
|
function setValue(t) {
|
|
87
|
-
console.log("Set Value",t);
|
|
87
|
+
//console.log("Set Value",t);
|
|
88
88
|
//a) source is complex model is simple
|
|
89
89
|
if (complexSource && !complexTarget && isMulti) {
|
|
90
90
|
let items = [];
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
|
|
111
111
|
//b) simple liust and simple model
|
|
112
112
|
if (!complexSource && !complexTarget && isMulti) {
|
|
113
|
-
console.log('b) simple liust and simple model');
|
|
113
|
+
//console.log('b) simple liust and simple model');
|
|
114
114
|
//console.log('source', source);
|
|
115
115
|
//console.log("target",t);
|
|
116
116
|
isLoaded = true;
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
isLoaded = true;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
console.log(t,value)
|
|
151
|
+
//console.log(t,value)
|
|
152
152
|
}
|
|
153
153
|
</script>
|
|
154
154
|
|
package/package.json
CHANGED
|
@@ -147,7 +147,12 @@
|
|
|
147
147
|
dispatch('submited');
|
|
148
148
|
|
|
149
149
|
let message = files.accepted.length + ' is/are uploaded';
|
|
150
|
-
|
|
150
|
+
|
|
151
|
+
let fileList:string[] = [];
|
|
152
|
+
files.accepted.forEach(f => fileList.push(f.name))
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
dispatch('success', { text: message , files: fileList});
|
|
151
156
|
|
|
152
157
|
files.accepted = [];
|
|
153
158
|
}
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
$: groupBy;
|
|
33
33
|
|
|
34
34
|
function updateTarget(selection) {
|
|
35
|
-
console.log("UPDATE target",selection);
|
|
35
|
+
//console.log("UPDATE target",selection);
|
|
36
36
|
//different cases
|
|
37
37
|
//a) source is complex model is simple return array
|
|
38
38
|
if (complexSource && !complexTarget && isLoaded && isMulti) {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
|
|
69
69
|
if (complexSource && !complexTarget && isLoaded && !isMulti) {
|
|
70
70
|
target = selection[itemLabel];
|
|
71
|
-
console.log('selection', selection);
|
|
71
|
+
//console.log('selection', selection);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
//console.log('selection ' + title, selection);
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
onMount(async () => {
|
|
79
|
-
|
|
79
|
+
//console.log("OnMount", target)
|
|
80
80
|
if(complexSource && complexTarget) // after on mount a setValue is needed when data is complex
|
|
81
81
|
{
|
|
82
82
|
setValue(target);
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
});
|
|
85
85
|
|
|
86
86
|
function setValue(t) {
|
|
87
|
-
console.log("Set Value",t);
|
|
87
|
+
//console.log("Set Value",t);
|
|
88
88
|
//a) source is complex model is simple
|
|
89
89
|
if (complexSource && !complexTarget && isMulti) {
|
|
90
90
|
let items = [];
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
|
|
111
111
|
//b) simple liust and simple model
|
|
112
112
|
if (!complexSource && !complexTarget && isMulti) {
|
|
113
|
-
console.log('b) simple liust and simple model');
|
|
113
|
+
//console.log('b) simple liust and simple model');
|
|
114
114
|
//console.log('source', source);
|
|
115
115
|
//console.log("target",t);
|
|
116
116
|
isLoaded = true;
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
isLoaded = true;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
console.log(t,value)
|
|
151
|
+
//console.log(t,value)
|
|
152
152
|
}
|
|
153
153
|
</script>
|
|
154
154
|
|