@bexis2/bexis2-core-ui 0.4.39 → 0.4.40
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
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import Select from 'svelte-select';
|
|
5
5
|
import { onMount } from 'svelte';
|
|
6
|
+
import { createEventDispatcher } from 'svelte';
|
|
6
7
|
|
|
7
8
|
export let source;
|
|
8
9
|
export let target;
|
|
@@ -32,6 +33,8 @@
|
|
|
32
33
|
let groupBy;
|
|
33
34
|
$: groupBy;
|
|
34
35
|
|
|
36
|
+
const dispatch = createEventDispatcher();
|
|
37
|
+
|
|
35
38
|
function updateTarget(selection) {
|
|
36
39
|
console.log('updateTarget', target, selection, isMulti);
|
|
37
40
|
if (selection == undefined) {
|
|
@@ -40,6 +43,8 @@
|
|
|
40
43
|
return;
|
|
41
44
|
}
|
|
42
45
|
|
|
46
|
+
|
|
47
|
+
|
|
43
48
|
console.log('update');
|
|
44
49
|
//different cases
|
|
45
50
|
//a) source is complex model is simple return array
|
|
@@ -271,7 +276,8 @@
|
|
|
271
276
|
target = '';
|
|
272
277
|
}
|
|
273
278
|
|
|
274
|
-
|
|
279
|
+
dispatch('clear', e)
|
|
280
|
+
|
|
275
281
|
}
|
|
276
282
|
</script>
|
|
277
283
|
|
|
@@ -29,6 +29,7 @@ export default class MultiSelect extends SvelteComponent<{
|
|
|
29
29
|
filter: CustomEvent<any>;
|
|
30
30
|
error: CustomEvent<any>;
|
|
31
31
|
hoverItem: CustomEvent<any>;
|
|
32
|
+
clear: CustomEvent<any>;
|
|
32
33
|
} & {
|
|
33
34
|
[evt: string]: CustomEvent<any>;
|
|
34
35
|
}, {}> {
|
|
@@ -67,6 +68,7 @@ declare const __propDef: {
|
|
|
67
68
|
filter: CustomEvent<any>;
|
|
68
69
|
error: CustomEvent<any>;
|
|
69
70
|
hoverItem: CustomEvent<any>;
|
|
71
|
+
clear: CustomEvent<any>;
|
|
70
72
|
} & {
|
|
71
73
|
[evt: string]: CustomEvent<any>;
|
|
72
74
|
};
|
package/package.json
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import Select from 'svelte-select';
|
|
5
5
|
import { onMount } from 'svelte';
|
|
6
|
+
import { createEventDispatcher } from 'svelte';
|
|
6
7
|
|
|
7
8
|
export let source;
|
|
8
9
|
export let target;
|
|
@@ -32,6 +33,8 @@
|
|
|
32
33
|
let groupBy;
|
|
33
34
|
$: groupBy;
|
|
34
35
|
|
|
36
|
+
const dispatch = createEventDispatcher();
|
|
37
|
+
|
|
35
38
|
function updateTarget(selection) {
|
|
36
39
|
console.log('updateTarget', target, selection, isMulti);
|
|
37
40
|
if (selection == undefined) {
|
|
@@ -40,6 +43,8 @@
|
|
|
40
43
|
return;
|
|
41
44
|
}
|
|
42
45
|
|
|
46
|
+
|
|
47
|
+
|
|
43
48
|
console.log('update');
|
|
44
49
|
//different cases
|
|
45
50
|
//a) source is complex model is simple return array
|
|
@@ -271,7 +276,8 @@
|
|
|
271
276
|
target = '';
|
|
272
277
|
}
|
|
273
278
|
|
|
274
|
-
|
|
279
|
+
dispatch('clear', e)
|
|
280
|
+
|
|
275
281
|
}
|
|
276
282
|
</script>
|
|
277
283
|
|