@bexis2/bexis2-core-ui 0.4.78 → 0.4.80

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
@@ -1,4 +1,8 @@
1
1
  # bexis-core-ui
2
+ ## 0.4.80
3
+ - Multiselect
4
+ - check if groupItem is set or not
5
+
2
6
  ## 0.4.78
3
7
  - Fileuploader
4
8
  - after submited add the responce to the event
@@ -11,7 +11,7 @@
11
11
  export let title;
12
12
  export let itemId = 'value';
13
13
  export let itemLabel = 'label';
14
- export let itemGroup = 'group';
14
+ export let itemGroup = '';
15
15
  export let isMulti = true;
16
16
  export let complexSource = false;
17
17
  export let complexTarget = false;
@@ -60,6 +60,7 @@
60
60
  }
61
61
  }
62
62
 
63
+ // source and target are simple but multiple selection is allowed, then the target needs to be set as array of values
63
64
  if (!complexSource && !complexTarget && isLoaded && isMulti) {
64
65
  target = [];
65
66
 
@@ -68,6 +69,7 @@
68
69
  }
69
70
  }
70
71
 
72
+ //source and target are complex and multiple selection is allowed, then the target needs to be set as array of objects
71
73
  if (complexSource && complexTarget && isLoaded && isMulti) {
72
74
  //console.log("both complex",selection);
73
75
  target = selection;
@@ -117,7 +119,7 @@
117
119
  if (items.length > 0) {
118
120
  value = items;
119
121
  }
120
- ////console.log(value);
122
+ //console.log(value);
121
123
  groupBy = (item) => item[itemGroup];
122
124
  }
123
125
 
@@ -169,7 +171,7 @@
169
171
 
170
172
  if (complexSource && complexTarget) {
171
173
  value = t;
172
- groupBy = (item) => item[itemGroup];
174
+ //groupBy = (item) => item[itemGroup];
173
175
  }
174
176
 
175
177
  if (complexSource && !complexTarget) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bexis2/bexis2-core-ui",
3
- "version": "0.4.78",
3
+ "version": "0.4.80",
4
4
  "private": false,
5
5
  "description": "Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).",
6
6
  "keywords": [
@@ -11,7 +11,7 @@
11
11
  export let title;
12
12
  export let itemId = 'value';
13
13
  export let itemLabel = 'label';
14
- export let itemGroup = 'group';
14
+ export let itemGroup = '';
15
15
  export let isMulti = true;
16
16
  export let complexSource = false;
17
17
  export let complexTarget = false;
@@ -60,6 +60,7 @@
60
60
  }
61
61
  }
62
62
 
63
+ // source and target are simple but multiple selection is allowed, then the target needs to be set as array of values
63
64
  if (!complexSource && !complexTarget && isLoaded && isMulti) {
64
65
  target = [];
65
66
 
@@ -68,6 +69,7 @@
68
69
  }
69
70
  }
70
71
 
72
+ //source and target are complex and multiple selection is allowed, then the target needs to be set as array of objects
71
73
  if (complexSource && complexTarget && isLoaded && isMulti) {
72
74
  //console.log("both complex",selection);
73
75
  target = selection;
@@ -117,7 +119,7 @@
117
119
  if (items.length > 0) {
118
120
  value = items;
119
121
  }
120
- ////console.log(value);
122
+ //console.log(value);
121
123
  groupBy = (item) => item[itemGroup];
122
124
  }
123
125
 
@@ -169,7 +171,7 @@
169
171
 
170
172
  if (complexSource && complexTarget) {
171
173
  value = t;
172
- groupBy = (item) => item[itemGroup];
174
+ //groupBy = (item) => item[itemGroup];
173
175
  }
174
176
 
175
177
  if (complexSource && !complexTarget) {