@bexis2/bexis2-core-ui 0.4.96 → 0.4.98
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 +104 -25
- package/dist/components/CodeEditor/CodeEditor.svelte +2 -2
- package/dist/components/Facets/ShowMore.svelte +4 -6
- package/dist/components/File/FileUploader.svelte +6 -3
- package/dist/components/Table/Table.svelte +26 -5
- package/dist/components/Table/TableContent.svelte +222 -22
- package/dist/components/Table/TablePaginationServer.svelte +27 -8
- package/dist/components/Table/clientDB.d.ts +22 -0
- package/dist/components/Table/clientDB.js +236 -0
- package/dist/components/Table/filter.js +5 -1
- package/dist/components/Table/tableWorker.d.ts +1 -0
- package/dist/components/Table/tableWorker.js +179 -0
- package/dist/components/Table/utils.d.ts +1 -2
- package/dist/components/Table/utils.js +45 -26
- package/dist/components/form/CheckboxKvPList.svelte +15 -15
- package/dist/components/form/CheckboxList.svelte +1 -1
- package/dist/components/form/DateInput.svelte +12 -1
- package/dist/components/form/DatePickerInput.svelte +51 -29
- package/dist/components/form/Dropdown.svelte +14 -3
- package/dist/components/form/DropdownKvP.svelte +13 -2
- package/dist/components/form/InputContainer.svelte +17 -15
- package/dist/components/form/MultiSelect.svelte +30 -29
- package/dist/components/form/NumberInput.svelte +12 -1
- package/dist/components/form/TextArea.svelte +12 -1
- package/dist/components/form/TextInput.svelte +12 -1
- package/dist/components/page/Alert.svelte +5 -1
- package/dist/components/page/BackToTop.svelte +3 -1
- package/dist/components/page/Docs.svelte +9 -2
- package/dist/components/page/GoToTop.svelte +14 -15
- package/dist/components/page/Page.svelte +50 -56
- package/dist/components/page/breadcrumb/BreadcrumbDataCaller.js +11 -15
- package/dist/components/page/menu/MenuAccountBar.svelte +1 -5
- package/dist/components/page/menu/MenuDataCaller.js +1 -1
- package/dist/components/page/menu/MenuItem.svelte +9 -7
- package/dist/components/page/menu/MenuSublist.svelte +7 -5
- package/dist/components/page/menu/SettingsBar.svelte +4 -1
- package/dist/components/toggle/Toggle.svelte +9 -9
- package/dist/css/core.ui.postcss +1 -2
- package/dist/services/Api.js +4 -4
- package/dist/services/BaseCaller.js +1 -1
- package/package.json +114 -114
- package/src/lib/components/CodeEditor/CodeEditor.svelte +4 -4
- package/src/lib/components/Facets/Facets.svelte +2 -2
- package/src/lib/components/Facets/ShowMore.svelte +4 -6
- package/src/lib/components/File/FileUploader.svelte +17 -14
- package/src/lib/components/Table/Table.svelte +31 -10
- package/src/lib/components/Table/TableContent.svelte +258 -33
- package/src/lib/components/Table/TableFilter.svelte +7 -2
- package/src/lib/components/Table/TablePagination.svelte +6 -2
- package/src/lib/components/Table/TablePaginationServer.svelte +36 -10
- package/src/lib/components/Table/clientDB.js +236 -0
- package/src/lib/components/Table/filter.ts +27 -23
- package/src/lib/components/Table/tableWorker.js +179 -0
- package/src/lib/components/Table/utils.ts +75 -56
- package/src/lib/components/form/Checkbox.svelte +1 -1
- package/src/lib/components/form/CheckboxKvPList.svelte +15 -16
- package/src/lib/components/form/CheckboxList.svelte +1 -1
- package/src/lib/components/form/DateInput.svelte +13 -2
- package/src/lib/components/form/DatePickerInput.svelte +51 -29
- package/src/lib/components/form/Dropdown.svelte +14 -3
- package/src/lib/components/form/DropdownKvP.svelte +13 -2
- package/src/lib/components/form/InputContainer.svelte +18 -17
- package/src/lib/components/form/MultiSelect.svelte +30 -29
- package/src/lib/components/form/NumberInput.svelte +21 -12
- package/src/lib/components/form/TextArea.svelte +13 -2
- package/src/lib/components/form/TextInput.svelte +13 -2
- package/src/lib/components/page/Alert.svelte +5 -1
- package/src/lib/components/page/BackToTop.svelte +3 -1
- package/src/lib/components/page/Docs.svelte +9 -2
- package/src/lib/components/page/GoToTop.svelte +14 -15
- package/src/lib/components/page/Notification.svelte +1 -1
- package/src/lib/components/page/Page.svelte +67 -78
- package/src/lib/components/page/breadcrumb/Breadcrumb.svelte +2 -3
- package/src/lib/components/page/breadcrumb/BreadcrumbDataCaller.js +11 -15
- package/src/lib/components/page/menu/MenuAccountBar.svelte +1 -6
- package/src/lib/components/page/menu/MenuDataCaller.js +1 -1
- package/src/lib/components/page/menu/MenuItem.svelte +10 -8
- package/src/lib/components/page/menu/MenuSublist.svelte +35 -41
- package/src/lib/components/page/menu/SettingsBar.svelte +5 -2
- package/src/lib/components/toggle/Toggle.svelte +28 -30
- package/src/lib/css/core.ui.postcss +1 -2
- package/src/lib/index.ts +1 -2
- package/src/lib/services/Api.ts +21 -20
- package/src/lib/services/BaseCaller.js +1 -1
- package/src/lib/stores/apiStores.ts +1 -5
- package/src/lib/stores/pageStores.ts +0 -2
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
|
|
33
33
|
$: value = '';
|
|
34
34
|
$: updateTarget(value);
|
|
35
|
-
$: target, setValue(target);
|
|
35
|
+
$: (target, setValue(target));
|
|
36
36
|
|
|
37
37
|
let groupBy;
|
|
38
|
-
$: groupBy = itemGroup ? (item) => item[itemGroup] : undefined;
|
|
38
|
+
$: groupBy = itemGroup ? (item) => item[itemGroup] : undefined;
|
|
39
39
|
|
|
40
40
|
const dispatch = createEventDispatcher();
|
|
41
41
|
|
|
@@ -47,8 +47,6 @@
|
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
52
50
|
//console.log('update');
|
|
53
51
|
//different cases
|
|
54
52
|
//a) source is complex model is simple return array
|
|
@@ -151,28 +149,23 @@
|
|
|
151
149
|
if (!isMulti) {
|
|
152
150
|
//console.log("onmount",complexSource,complexTarget,value,target)
|
|
153
151
|
if (!complexSource && !complexTarget) {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
152
|
+
if (groupBy) {
|
|
153
|
+
// if groupby is set, the value needs to be set as object with label and value, otherwise the select component does not recognize the value
|
|
154
|
+
value = {
|
|
155
|
+
value: t,
|
|
156
|
+
label: t
|
|
157
|
+
};
|
|
158
|
+
} else // if there is no groupby, the value can be set as simple value, otherwise the select component does not recognize the value
|
|
159
|
+
{
|
|
160
|
+
if (t === null || t === undefined || t === '') {
|
|
161
|
+
value = '';
|
|
162
|
+
} else {
|
|
157
163
|
value = {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
164
|
+
value: t,
|
|
165
|
+
label: t
|
|
166
|
+
};
|
|
161
167
|
}
|
|
162
|
-
|
|
163
|
-
{
|
|
164
|
-
if(t === null || t === undefined || t === '') {
|
|
165
|
-
value = ''
|
|
166
|
-
}
|
|
167
|
-
else
|
|
168
|
-
{
|
|
169
|
-
value = {
|
|
170
|
-
value: t,
|
|
171
|
-
label: t
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
168
|
+
}
|
|
176
169
|
}
|
|
177
170
|
|
|
178
171
|
if (complexSource && complexTarget) {
|
|
@@ -304,13 +297,22 @@
|
|
|
304
297
|
target = '';
|
|
305
298
|
}
|
|
306
299
|
|
|
307
|
-
dispatch('clear', e)
|
|
308
|
-
|
|
300
|
+
dispatch('clear', e);
|
|
309
301
|
}
|
|
310
|
-
|
|
311
302
|
</script>
|
|
312
303
|
|
|
313
|
-
<InputContainer
|
|
304
|
+
<InputContainer
|
|
305
|
+
{id}
|
|
306
|
+
label={title}
|
|
307
|
+
{feedback}
|
|
308
|
+
{required}
|
|
309
|
+
{help}
|
|
310
|
+
{description}
|
|
311
|
+
{showDescription}
|
|
312
|
+
{showIcon}
|
|
313
|
+
on:showDescription
|
|
314
|
+
on:hideDescription
|
|
315
|
+
>
|
|
314
316
|
<Select
|
|
315
317
|
{id}
|
|
316
318
|
items={source}
|
|
@@ -320,7 +322,6 @@
|
|
|
320
322
|
multiple={isMulti}
|
|
321
323
|
bind:value
|
|
322
324
|
{placeholder}
|
|
323
|
-
|
|
324
325
|
hasError={invalid}
|
|
325
326
|
{loading}
|
|
326
327
|
{clearable}
|
|
@@ -24,7 +24,18 @@ $: if (min != void 0 && parseInt(value) < min) {
|
|
|
24
24
|
}
|
|
25
25
|
</script>
|
|
26
26
|
|
|
27
|
-
<InputContainer
|
|
27
|
+
<InputContainer
|
|
28
|
+
{id}
|
|
29
|
+
{label}
|
|
30
|
+
{feedback}
|
|
31
|
+
{required}
|
|
32
|
+
{help}
|
|
33
|
+
{description}
|
|
34
|
+
{showDescription}
|
|
35
|
+
{showIcon}
|
|
36
|
+
on:showDescription
|
|
37
|
+
on:hideDescription
|
|
38
|
+
>
|
|
28
39
|
<input
|
|
29
40
|
{id}
|
|
30
41
|
class="input variant-form-material dark:bg-zinc-700 bg-zinc-50 placeholder:text-gray-400"
|
|
@@ -14,7 +14,18 @@ export let showDescription = false;
|
|
|
14
14
|
export let showIcon = false;
|
|
15
15
|
</script>
|
|
16
16
|
|
|
17
|
-
<InputContainer
|
|
17
|
+
<InputContainer
|
|
18
|
+
{id}
|
|
19
|
+
{label}
|
|
20
|
+
{feedback}
|
|
21
|
+
{required}
|
|
22
|
+
{help}
|
|
23
|
+
{description}
|
|
24
|
+
{showDescription}
|
|
25
|
+
{showIcon}
|
|
26
|
+
on:showDescription
|
|
27
|
+
on:hideDescription
|
|
28
|
+
>
|
|
18
29
|
<textarea
|
|
19
30
|
{id}
|
|
20
31
|
class="textarea variant-form-material dark:bg-zinc-700 bg-zinc-50 placeholder:text-gray-400"
|
|
@@ -14,7 +14,18 @@ export let showDescription = false;
|
|
|
14
14
|
export let showIcon = false;
|
|
15
15
|
</script>
|
|
16
16
|
|
|
17
|
-
<InputContainer
|
|
17
|
+
<InputContainer
|
|
18
|
+
{id}
|
|
19
|
+
{label}
|
|
20
|
+
{feedback}
|
|
21
|
+
{required}
|
|
22
|
+
{help}
|
|
23
|
+
{description}
|
|
24
|
+
{showDescription}
|
|
25
|
+
{showIcon}
|
|
26
|
+
on:showDescription
|
|
27
|
+
on:hideDescription
|
|
28
|
+
>
|
|
18
29
|
<input
|
|
19
30
|
{id}
|
|
20
31
|
class="input variant-form-material dark:bg-zinc-700 bg-zinc-50 placeholder:text-gray-400"
|
|
@@ -27,7 +27,11 @@ $: show = true;
|
|
|
27
27
|
<slot name="actions" />
|
|
28
28
|
|
|
29
29
|
{#if deleteBtn}
|
|
30
|
-
<button
|
|
30
|
+
<button
|
|
31
|
+
class="btn hover:text-primary-100"
|
|
32
|
+
title="Close alert"
|
|
33
|
+
on:click={() => (show = false)}
|
|
34
|
+
>
|
|
31
35
|
<Fa icon={faXmark} />
|
|
32
36
|
</button>
|
|
33
37
|
{/if}
|
|
@@ -26,5 +26,7 @@
|
|
|
26
26
|
<svelte:window on:scroll={handleOnScroll} />
|
|
27
27
|
|
|
28
28
|
<div class="w-full items-center">
|
|
29
|
-
<button class="btn ring back-to-top" title="Back to top" on:click={goTop} class:hidden
|
|
29
|
+
<button class="btn ring back-to-top" title="Back to top" on:click={goTop} class:hidden
|
|
30
|
+
>Back to top</button
|
|
31
|
+
>
|
|
30
32
|
</div>
|
|
@@ -29,9 +29,16 @@ const noteSettings = {
|
|
|
29
29
|
{/if}
|
|
30
30
|
|
|
31
31
|
{#each links as link}
|
|
32
|
-
<span
|
|
32
|
+
<span
|
|
33
|
+
role="button"
|
|
34
|
+
tabindex="0"
|
|
35
|
+
title={link.label}
|
|
36
|
+
class="chip variant-soft hover:variant-filled"
|
|
37
|
+
on:click={() => goTo(link.url, false)}
|
|
38
|
+
on:keypress={() => goTo(link.url, false)}
|
|
39
|
+
>
|
|
33
40
|
<span>
|
|
34
|
-
{#if link.label.toLowerCase()=='manual'}
|
|
41
|
+
{#if link.label.toLowerCase() == 'manual'}
|
|
35
42
|
<Fa icon={faBook} />
|
|
36
43
|
{:else}
|
|
37
44
|
{link.label}
|
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
<script>
|
|
2
|
+
import Fa from 'svelte-fa';
|
|
3
|
+
import { faAngleUp } from '@fortawesome/free-solid-svg-icons';
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
import { faAngleUp } from '@fortawesome/free-solid-svg-icons';
|
|
5
|
+
export let showAtPixel = 1000;
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
let scrollHeight = 0;
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
const gotoTop = () => {
|
|
10
|
+
window.scrollTo({ top: 0, behavior: 'smooth' });
|
|
11
|
+
};
|
|
9
12
|
|
|
10
|
-
|
|
11
|
-
window.scrollTo({ top: 0, behavior: 'smooth' })
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
$: showGotoTop = scrollHeight > showAtPixel;
|
|
13
|
+
$: showGotoTop = scrollHeight > showAtPixel;
|
|
15
14
|
</script>
|
|
16
15
|
|
|
17
16
|
{#if showGotoTop}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
<button
|
|
18
|
+
id="gotToTop"
|
|
19
|
+
title="Go to top"
|
|
20
|
+
class="btn variant-filled-warning fixed bottom-5 right-20 shadow-md"
|
|
21
|
+
on:click={gotoTop}><Fa icon={faAngleUp} /></button
|
|
22
|
+
>
|
|
24
23
|
{/if}
|
|
25
24
|
|
|
26
25
|
<svelte:window bind:scrollY={scrollHeight} />
|
|
@@ -50,70 +50,64 @@ function scrollToTop() {
|
|
|
50
50
|
</script>
|
|
51
51
|
|
|
52
52
|
<div class="app" bind:this={app}>
|
|
53
|
-
<AppShell>
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
<div class="grid grid-cols-2">
|
|
64
|
-
<Breadcrumb bind:title />
|
|
65
|
-
<Docs {links} {note} />
|
|
66
|
-
</div>
|
|
67
|
-
</svelte:fragment>
|
|
68
|
-
</AppBar>
|
|
69
|
-
</svelte:fragment>
|
|
53
|
+
<AppShell>
|
|
54
|
+
<!--header-->
|
|
55
|
+
<svelte:fragment slot="header">
|
|
56
|
+
<AppBar padding="0" spacing="space-y-0" background="white">
|
|
57
|
+
<svelte:fragment slot="headline">
|
|
58
|
+
<Header />
|
|
59
|
+
{#if true}
|
|
60
|
+
<Menu />
|
|
61
|
+
{/if}
|
|
70
62
|
|
|
71
|
-
|
|
63
|
+
<div class="grid grid-cols-2">
|
|
64
|
+
<Breadcrumb bind:title />
|
|
65
|
+
<Docs {links} {note} />
|
|
66
|
+
</div>
|
|
67
|
+
</svelte:fragment>
|
|
68
|
+
</AppBar>
|
|
69
|
+
</svelte:fragment>
|
|
72
70
|
|
|
73
|
-
|
|
71
|
+
<slot name="description" />
|
|
74
72
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
73
|
+
{#if aftIsReady}
|
|
74
|
+
<div class="flex flex-initial space-x-5">
|
|
75
|
+
{#if $$slots.left}
|
|
76
|
+
<div class="p-5 flex-shrink-0 w-96 w-min-96 border-y border-solid border-surface-500">
|
|
77
|
+
<slot name="left" />
|
|
78
|
+
</div>
|
|
79
|
+
{/if}
|
|
81
80
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
81
|
+
{#if contentLayoutType === pageContentLayoutType.center}
|
|
82
|
+
<div class="flex justify-center w-screen">
|
|
83
|
+
<div class="w-full max-w-7xl p-5 space-y-5 border-y border-solid border-surface-500">
|
|
84
|
+
<slot />
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
{/if}
|
|
89
88
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
89
|
+
{#if contentLayoutType === pageContentLayoutType.full}
|
|
90
|
+
<div class="p-5 space-y-5 border-y border-solid border-surface-500 w-screen">
|
|
91
|
+
<slot />
|
|
92
|
+
</div>
|
|
93
|
+
{/if}
|
|
95
94
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
{#if $$slots.right}
|
|
96
|
+
<div class=" p-5 fixed flex-shrink-0 w-96 border-y border-solid border-surface-500">
|
|
97
|
+
<slot name="right" />
|
|
98
|
+
</div>
|
|
99
|
+
{/if}
|
|
99
100
|
</div>
|
|
100
101
|
{/if}
|
|
101
|
-
</div>
|
|
102
|
-
|
|
103
|
-
{/if}
|
|
104
|
-
|
|
105
|
-
<GoToTop/>
|
|
106
|
-
<HelpPopUp active={help} />
|
|
107
|
-
<Notification />
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
<svelte:fragment slot="footer">
|
|
111
|
-
{#if footer}
|
|
112
|
-
<Footer />
|
|
113
|
-
{/if}
|
|
114
102
|
|
|
115
|
-
|
|
103
|
+
<GoToTop />
|
|
104
|
+
<HelpPopUp active={help} />
|
|
105
|
+
<Notification />
|
|
116
106
|
|
|
117
|
-
|
|
107
|
+
<svelte:fragment slot="footer">
|
|
108
|
+
{#if footer}
|
|
109
|
+
<Footer />
|
|
110
|
+
{/if}
|
|
111
|
+
</svelte:fragment>
|
|
112
|
+
</AppShell>
|
|
118
113
|
</div>
|
|
119
|
-
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
import { Api } from '../../../services/Api';
|
|
2
2
|
|
|
3
3
|
export const getApplicationName = async () => {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const response = await Api.get(`/Home/GetApplicationName`);
|
|
4
|
+
try {
|
|
5
|
+
const response = await Api.get(`/Home/GetApplicationName`);
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return "BEXIS2"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
7
|
+
if (response.status == 200) {
|
|
8
|
+
return response.data;
|
|
9
|
+
} else {
|
|
10
|
+
return 'BEXIS2';
|
|
11
|
+
}
|
|
12
|
+
} catch (error) {
|
|
13
|
+
return 'BEXIS2';
|
|
14
|
+
}
|
|
15
|
+
};
|
|
@@ -8,12 +8,8 @@ let comboboxValue;
|
|
|
8
8
|
|
|
9
9
|
{#if menuBar}
|
|
10
10
|
<div class="h-full place-self-center sm:flex gap-2 w-full sm:w-auto">
|
|
11
|
-
|
|
12
11
|
{#each menuBar as menubarItem}
|
|
13
|
-
|
|
14
|
-
<Item {menubarItem} {comboboxValue} />
|
|
15
|
-
|
|
12
|
+
<Item {menubarItem} {comboboxValue} />
|
|
16
13
|
{/each}
|
|
17
|
-
|
|
18
14
|
</div>
|
|
19
15
|
{/if}
|
|
@@ -16,10 +16,11 @@ let popupCombobox = {
|
|
|
16
16
|
|
|
17
17
|
{#if menubarItem.Items.length < 1}
|
|
18
18
|
<div class="p-2">
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
<button id={id + 'bt'} class="grid" use:popup={popupCombobox}>
|
|
20
|
+
<a class="grid" href={menubarItem.Url} target={menubarItem.Target}>
|
|
21
|
+
<span class="capitalize whitespace-nowrap text-lg hover:text-secondary-500"
|
|
22
|
+
>{comboboxValue ?? menubarItem.Title}</span
|
|
23
|
+
>
|
|
23
24
|
</a>
|
|
24
25
|
</button>
|
|
25
26
|
</div>
|
|
@@ -34,12 +35,13 @@ let popupCombobox = {
|
|
|
34
35
|
<svelte:fragment slot="content"
|
|
35
36
|
><MenuSublist {id} items={menubarItem.Items} /></svelte:fragment
|
|
36
37
|
>
|
|
37
|
-
|
|
38
|
-
>
|
|
38
|
+
</AccordionItem>
|
|
39
39
|
</div>
|
|
40
40
|
<div class="hidden sm:block place-self-center" use:popup={popupCombobox}>
|
|
41
41
|
<button id={idLabel} class="flex items-center gap-x-1 px-2">
|
|
42
|
-
<span class="capitalize text-lg whitespace-nowrap hover:text-secondary-500"
|
|
42
|
+
<span class="capitalize text-lg whitespace-nowrap hover:text-secondary-500"
|
|
43
|
+
>{menubarItem.Title}▾</span
|
|
44
|
+
>
|
|
43
45
|
</button>
|
|
44
46
|
|
|
45
47
|
<div class="z-50 w-max" data-popup={id}>
|
|
@@ -54,14 +54,16 @@ async function logOffFn() {
|
|
|
54
54
|
<ListBoxItem
|
|
55
55
|
class="text-md sm:text-sm text-surface-800 py-1 hover:text-secondary-500 bg-transparent hover:bg-surface-200"
|
|
56
56
|
bind:group={item.Title}
|
|
57
|
-
|
|
58
57
|
name="medium"
|
|
59
58
|
value={item.Title}
|
|
60
|
-
|
|
61
59
|
>
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
<a
|
|
61
|
+
id={'menu-' + item.Title.replaceAll(' ', '-')}
|
|
62
|
+
href={item.Url}
|
|
63
|
+
target={item.Target}
|
|
64
|
+
class="w-full block"
|
|
65
|
+
on:click|preventDefault={() => clickFn(item)}>{item.Title}</a
|
|
66
|
+
>
|
|
64
67
|
</ListBoxItem>
|
|
65
|
-
|
|
66
68
|
{/each}
|
|
67
69
|
</ListBox>
|
|
@@ -18,7 +18,10 @@ let popupCombobox = {
|
|
|
18
18
|
<div class="sm:hidden">
|
|
19
19
|
<AccordionItem padding="p-2">
|
|
20
20
|
<svelte:fragment slot="summary"
|
|
21
|
-
><button
|
|
21
|
+
><button
|
|
22
|
+
id="settings"
|
|
23
|
+
class="flex items-center gap-x-1 text-sm text-surface-800 w-5 h-full"
|
|
24
|
+
>
|
|
22
25
|
<span class="capitalize"><Fa icon={faCog} /></span>
|
|
23
26
|
</button></svelte:fragment
|
|
24
27
|
>
|
|
@@ -26,25 +26,25 @@ $: mode;
|
|
|
26
26
|
|
|
27
27
|
<div
|
|
28
28
|
class="lightswitch-track {classesTrack}"
|
|
29
|
-
on:click={()=>mode
|
|
29
|
+
on:click={() => (mode = !mode)}
|
|
30
30
|
on:click
|
|
31
|
-
on:keydown={()=>mode
|
|
31
|
+
on:keydown={() => (mode = !mode)}
|
|
32
32
|
on:keydown
|
|
33
33
|
on:keyup
|
|
34
34
|
on:keypress
|
|
35
35
|
role="switch"
|
|
36
36
|
aria-label="Light Switch"
|
|
37
|
-
|
|
37
|
+
aria-checked={mode}
|
|
38
38
|
title="xyz"
|
|
39
39
|
tabindex="0"
|
|
40
40
|
>
|
|
41
41
|
<!-- Thumb -->
|
|
42
42
|
<div class="lightswitch-thumb {classesThumb}">
|
|
43
43
|
<!-- SVG -->
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
{#if mode}
|
|
45
|
+
<Fa icon={faPen} color="white" />
|
|
46
|
+
{:else}
|
|
47
|
+
<Fa icon={faTrash} />
|
|
48
|
+
{/if}
|
|
49
49
|
</div>
|
|
50
|
-
</div>
|
|
50
|
+
</div>
|
package/dist/css/core.ui.postcss
CHANGED
package/dist/services/Api.js
CHANGED
|
@@ -11,7 +11,7 @@ const apiRequest = (method, url, request, customHeaders = {}, customConfig = {})
|
|
|
11
11
|
const requestVerificationToken = csrfToken;
|
|
12
12
|
const headers = {
|
|
13
13
|
authorization: 'Basic ' + btoa(username + ':' + password),
|
|
14
|
-
|
|
14
|
+
__RequestVerificationToken: requestVerificationToken,
|
|
15
15
|
...customHeaders
|
|
16
16
|
};
|
|
17
17
|
//using the axios instance to perform the request that received from each http method
|
|
@@ -27,16 +27,16 @@ const apiRequest = (method, url, request, customHeaders = {}, customConfig = {})
|
|
|
27
27
|
return Promise.resolve(res);
|
|
28
28
|
})
|
|
29
29
|
.catch((er) => {
|
|
30
|
-
console.log(
|
|
30
|
+
console.log('🚀 ~ apiRequest ~ err:', er);
|
|
31
31
|
const err = er.response;
|
|
32
32
|
let error = {
|
|
33
33
|
status: err.status,
|
|
34
34
|
statusText: err.statusText,
|
|
35
35
|
error: err.data.error,
|
|
36
|
-
stackTrace: err.data.stackTrace
|
|
36
|
+
stackTrace: err.data.stackTrace
|
|
37
37
|
};
|
|
38
38
|
errorStore.set(error);
|
|
39
|
-
console.log(
|
|
39
|
+
console.log('🚀 ~ apiRequest ~ error:', error);
|
|
40
40
|
return Promise.reject(new Error(error.error));
|
|
41
41
|
});
|
|
42
42
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { host } from '../stores/apiStores';
|
|
4
4
|
|
|
5
5
|
// go to a internal action
|
|
6
|
-
export const goTo = async (url, intern = true, target=
|
|
6
|
+
export const goTo = async (url, intern = true, target = '_self') => {
|
|
7
7
|
if (intern == true) {
|
|
8
8
|
// go to inside bexis2
|
|
9
9
|
if (window != null && host != null && url != null) {
|