@bexis2/bexis2-core-ui 0.2.24 → 0.2.26
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 +7 -0
- package/dist/components/file/FileUploader.svelte +3 -1
- package/dist/components/form/MultiSelect.svelte +6 -6
- package/dist/components/page/Page.svelte +3 -2
- package/dist/components/page/Page.svelte.d.ts +1 -0
- package/dist/components/page/menu/MenuItem.svelte +1 -1
- package/package.json +4 -5
- package/src/lib/components/file/FileUploader.svelte +6 -1
- package/src/lib/components/form/MultiSelect.svelte +6 -6
- package/src/lib/components/page/Page.svelte +3 -2
- package/src/lib/components/page/menu/MenuItem.svelte +1 -1
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
|
|
|
@@ -20,6 +20,7 @@ export let menu = true;
|
|
|
20
20
|
export let footer = true;
|
|
21
21
|
export let help = false;
|
|
22
22
|
export let contentLayoutType = pageContentLayoutType.center;
|
|
23
|
+
export let fixLeft = true;
|
|
23
24
|
onMount(async () => {
|
|
24
25
|
console.log("page");
|
|
25
26
|
breadcrumbStore.clean();
|
|
@@ -53,7 +54,7 @@ onMount(async () => {
|
|
|
53
54
|
|
|
54
55
|
<div class="flex flex-initial space-x-5">
|
|
55
56
|
{#if $$slots.left}
|
|
56
|
-
<div class="p-5 flex-shrink-0 w-96 w-min-96 border-y border-solid border-surface-500">
|
|
57
|
+
<div class="p-5 fixed flex-shrink-0 w-96 w-min-96 border-y border-solid border-surface-500" class:fixed={fixLeft}>
|
|
57
58
|
<slot name="left" />
|
|
58
59
|
</div>
|
|
59
60
|
{/if}
|
|
@@ -73,7 +74,7 @@ onMount(async () => {
|
|
|
73
74
|
{/if}
|
|
74
75
|
|
|
75
76
|
{#if $$slots.right}
|
|
76
|
-
<div class=" p-5 flex-shrink-0 w-96 border-y border-solid border-surface-500">
|
|
77
|
+
<div class=" p-5 fixed flex-shrink-0 w-96 border-y border-solid border-surface-500">
|
|
77
78
|
<slot name="right" />
|
|
78
79
|
</div>
|
|
79
80
|
{/if}
|
|
@@ -16,7 +16,7 @@ let popupCombobox = {
|
|
|
16
16
|
{#if menubarItem.Items.length < 1}
|
|
17
17
|
<div class="p-2">
|
|
18
18
|
<button class="grid" use:popup={popupCombobox} on:click={() => goTo(menubarItem.Url)}>
|
|
19
|
-
<span class="capitalize">{comboboxValue ?? menubarItem.Title}</span>
|
|
19
|
+
<span class="capitalize whitespace-nowrap">{comboboxValue ?? menubarItem.Title}</span>
|
|
20
20
|
</button>
|
|
21
21
|
</div>
|
|
22
22
|
{:else}
|
package/package.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bexis2/bexis2-core-ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.26",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite dev",
|
|
7
|
-
"package": "svelte-package",
|
|
8
7
|
"build": "vite build",
|
|
9
8
|
"build package": "svelte-kit sync && svelte-package --watch",
|
|
10
9
|
"preview": "vite preview",
|
|
@@ -14,9 +13,9 @@
|
|
|
14
13
|
"test:unit": "vitest",
|
|
15
14
|
"lint": "prettier --plugin-search-dir . --check . && eslint .",
|
|
16
15
|
"format": "prettier --plugin-search-dir . --write .",
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"publish": "npm publish --access public"
|
|
16
|
+
"1.npm - update package infos": "npm init --scope bexis2",
|
|
17
|
+
"2.npm - package": "svelte-package",
|
|
18
|
+
"3.npm - publish": "npm publish --access public"
|
|
20
19
|
},
|
|
21
20
|
"devDependencies": {
|
|
22
21
|
"@playwright/test": "^1.36.2",
|
|
@@ -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
|
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
export let footer: boolean = true;
|
|
34
34
|
export let help: boolean = false;
|
|
35
35
|
export let contentLayoutType: pageContentLayoutType = pageContentLayoutType.center;
|
|
36
|
+
export let fixLeft:boolean = true;
|
|
36
37
|
|
|
37
38
|
onMount(async () => {
|
|
38
39
|
console.log('page');
|
|
@@ -67,7 +68,7 @@
|
|
|
67
68
|
|
|
68
69
|
<div class="flex flex-initial space-x-5">
|
|
69
70
|
{#if $$slots.left}
|
|
70
|
-
<div class="p-5 flex-shrink-0 w-96 w-min-96 border-y border-solid border-surface-500">
|
|
71
|
+
<div class="p-5 fixed flex-shrink-0 w-96 w-min-96 border-y border-solid border-surface-500" class:fixed={fixLeft}>
|
|
71
72
|
<slot name="left" />
|
|
72
73
|
</div>
|
|
73
74
|
{/if}
|
|
@@ -87,7 +88,7 @@
|
|
|
87
88
|
{/if}
|
|
88
89
|
|
|
89
90
|
{#if $$slots.right}
|
|
90
|
-
<div class=" p-5 flex-shrink-0 w-96 border-y border-solid border-surface-500">
|
|
91
|
+
<div class=" p-5 fixed flex-shrink-0 w-96 border-y border-solid border-surface-500">
|
|
91
92
|
<slot name="right" />
|
|
92
93
|
</div>
|
|
93
94
|
{/if}
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
{#if menubarItem.Items.length < 1}
|
|
28
28
|
<div class="p-2">
|
|
29
29
|
<button class="grid" use:popup={popupCombobox} on:click={() => goTo(menubarItem.Url)}>
|
|
30
|
-
<span class="capitalize">{comboboxValue ?? menubarItem.Title}</span>
|
|
30
|
+
<span class="capitalize whitespace-nowrap">{comboboxValue ?? menubarItem.Title}</span>
|
|
31
31
|
</button>
|
|
32
32
|
</div>
|
|
33
33
|
{:else}
|