@bexis2/bexis2-core-ui 0.4.95 → 0.4.97
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 +105 -24
- 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 +31 -5
- package/dist/components/Table/TableContent.svelte +226 -27
- package/dist/components/Table/TableFilter.svelte +25 -12
- package/dist/components/Table/TableFilterServer.svelte +51 -6
- 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 +21 -2
- 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 +64 -31
- 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 +32 -5
- package/src/lib/components/Table/TableContent.svelte +261 -38
- package/src/lib/components/Table/TableFilter.svelte +34 -8
- package/src/lib/components/Table/TableFilterServer.svelte +65 -9
- 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 +44 -24
- package/src/lib/components/Table/tableWorker.js +179 -0
- package/src/lib/components/Table/utils.ts +80 -46
- 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
|
@@ -11,7 +11,7 @@ export let feedback;
|
|
|
11
11
|
<InputContainer label={title} {feedback} {required} {description}>
|
|
12
12
|
{#each source as item}
|
|
13
13
|
<label class="flex items-center space-x-2" for={item}>
|
|
14
|
-
<input class="checkbox" type="checkbox" bind:group={target} value={item} id={item}/>
|
|
14
|
+
<input class="checkbox" type="checkbox" bind:group={target} value={item} id={item} />
|
|
15
15
|
<p>{item}</p>
|
|
16
16
|
</label>
|
|
17
17
|
{/each}
|
|
@@ -13,7 +13,18 @@ export let showDescription = false;
|
|
|
13
13
|
export let showIcon = false;
|
|
14
14
|
</script>
|
|
15
15
|
|
|
16
|
-
<InputContainer
|
|
16
|
+
<InputContainer
|
|
17
|
+
{id}
|
|
18
|
+
{label}
|
|
19
|
+
{feedback}
|
|
20
|
+
{required}
|
|
21
|
+
{help}
|
|
22
|
+
{description}
|
|
23
|
+
{showDescription}
|
|
24
|
+
{showIcon}
|
|
25
|
+
on:showDescription
|
|
26
|
+
on:hideDescription
|
|
27
|
+
>
|
|
17
28
|
<input
|
|
18
29
|
{id}
|
|
19
30
|
class="input variant-form-material bg-zinc-50 dark:bg-zinc-700 placeholder:text-gray-400"
|
|
@@ -33,33 +33,55 @@ if (mode === "datetime") {
|
|
|
33
33
|
}
|
|
34
34
|
</script>
|
|
35
35
|
|
|
36
|
-
<InputContainer
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
36
|
+
<InputContainer
|
|
37
|
+
{id}
|
|
38
|
+
{label}
|
|
39
|
+
{feedback}
|
|
40
|
+
{required}
|
|
41
|
+
{help}
|
|
42
|
+
{description}
|
|
43
|
+
{showDescription}
|
|
44
|
+
{showIcon}
|
|
45
|
+
on:showDescription
|
|
46
|
+
on:hideDescription
|
|
47
|
+
>
|
|
48
|
+
<!-- 1. Wrap everything in a relative container so the icon positions against this boundary -->
|
|
49
|
+
<div class="relative w-full">
|
|
50
|
+
<SveltyPicker
|
|
51
|
+
{mode}
|
|
52
|
+
name={label}
|
|
53
|
+
{format}
|
|
54
|
+
{displayFormat}
|
|
55
|
+
{initialDate}
|
|
56
|
+
bind:value
|
|
57
|
+
on:input
|
|
58
|
+
on:change
|
|
59
|
+
{disabled}
|
|
60
|
+
{placeholder}
|
|
61
|
+
manualInput={true}
|
|
62
|
+
inputClasses="input variant-form-material bg-zinc-50 dark:bg-zinc-700 placeholder:text-gray-400 pr-10 {valid
|
|
63
|
+
? 'input-success'
|
|
64
|
+
: ''} {invalid ? 'input-error' : ''}"
|
|
65
|
+
/>
|
|
66
|
+
{#if mode === 'time'}
|
|
67
|
+
<Fa
|
|
68
|
+
icon={faClock}
|
|
69
|
+
class="absolute inset-y-2 right-0 flex items-center pr-3 pointer-events-none text-gray-400 dark:text-gray-300"
|
|
70
|
+
/>
|
|
71
|
+
{:else if mode === 'date'}
|
|
72
|
+
<Fa
|
|
73
|
+
icon={faCalendar}
|
|
74
|
+
class="absolute inset-y-2 right-0 flex items-center pr-3 pointer-events-none text-gray-400 dark:text-gray-300"
|
|
75
|
+
/>
|
|
76
|
+
{:else if mode === 'datetime'}
|
|
77
|
+
<Fa
|
|
78
|
+
icon={faCalendar}
|
|
79
|
+
class="absolute inset-y-2 right-5 flex items-center pr-3 pointer-events-none text-gray-400 dark:text-gray-300"
|
|
80
|
+
/>
|
|
81
|
+
<Fa
|
|
82
|
+
icon={faClock}
|
|
83
|
+
class="absolute inset-y-2 right-0 flex items-center pr-3 pointer-events-none text-gray-400 dark:text-gray-300"
|
|
84
|
+
/>
|
|
85
|
+
{/if}
|
|
86
|
+
</div>
|
|
65
87
|
</InputContainer>
|
|
@@ -20,16 +20,27 @@
|
|
|
20
20
|
|
|
21
21
|
function updatedSelectedValue(selection) {
|
|
22
22
|
if (selection != null) {
|
|
23
|
-
|
|
23
|
+
selected = selection;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
function updatedTarget(value) {
|
|
28
|
-
|
|
28
|
+
target = value;
|
|
29
29
|
}
|
|
30
30
|
</script>
|
|
31
31
|
|
|
32
|
-
<InputContainer
|
|
32
|
+
<InputContainer
|
|
33
|
+
{id}
|
|
34
|
+
label={title}
|
|
35
|
+
{feedback}
|
|
36
|
+
{required}
|
|
37
|
+
{help}
|
|
38
|
+
{description}
|
|
39
|
+
{showDescription}
|
|
40
|
+
{showIcon}
|
|
41
|
+
on:showDescription
|
|
42
|
+
on:hideDescription
|
|
43
|
+
>
|
|
33
44
|
<select
|
|
34
45
|
{id}
|
|
35
46
|
class="select variant-form-material dark:bg-zinc-700 bg-zinc-50 placeholder:text-gray-400"
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
export let required = false;
|
|
12
12
|
export let complexTarget = false;
|
|
13
13
|
export let help = false;
|
|
14
|
-
export
|
|
14
|
+
export let description = '';
|
|
15
15
|
export let showDescription = false;
|
|
16
16
|
export let showIcon = false;
|
|
17
17
|
$: selected = null;
|
|
@@ -38,7 +38,18 @@
|
|
|
38
38
|
}
|
|
39
39
|
</script>
|
|
40
40
|
|
|
41
|
-
<InputContainer
|
|
41
|
+
<InputContainer
|
|
42
|
+
{id}
|
|
43
|
+
label={title}
|
|
44
|
+
{feedback}
|
|
45
|
+
{required}
|
|
46
|
+
{help}
|
|
47
|
+
{description}
|
|
48
|
+
{showDescription}
|
|
49
|
+
{showIcon}
|
|
50
|
+
on:showDescription
|
|
51
|
+
on:hideDescription
|
|
52
|
+
>
|
|
42
53
|
<select
|
|
43
54
|
{id}
|
|
44
55
|
class="select variant-form-material dark:bg-zinc-700 bg-zinc-50 placeholder:text-gray-400"
|
|
@@ -36,33 +36,35 @@ export function onMouseOut() {
|
|
|
36
36
|
on:focus={onMouseOver}
|
|
37
37
|
on:mouseout={onMouseOut}
|
|
38
38
|
on:blur={onMouseOut}
|
|
39
|
-
on:focusin={onMouseOver}
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
on:focusin={onMouseOver}
|
|
40
|
+
on:focusout={onMouseOut}
|
|
42
41
|
>
|
|
43
|
-
<label class="label w-full flex" for=
|
|
42
|
+
<label class="label w-full flex" for={id}>
|
|
44
43
|
<span class="grow"
|
|
45
44
|
>{label}
|
|
46
|
-
{#if required}
|
|
45
|
+
{#if required}
|
|
46
|
+
<span class="text-xs text-red-600">*</span>
|
|
47
|
+
{/if}
|
|
47
48
|
</span>
|
|
48
49
|
{#if description && showIcon}
|
|
49
|
-
|
|
50
|
+
<button class="badge" on:click={() => (showDescription = !showDescription)}
|
|
51
|
+
><Fa icon={faQuestion} /></button
|
|
52
|
+
>
|
|
50
53
|
{/if}
|
|
51
54
|
</label>
|
|
52
55
|
|
|
53
|
-
|
|
54
56
|
{#if description && showDescription}
|
|
55
|
-
<div
|
|
57
|
+
<div class="card text-sm text-gray-500 p-2 mb-2">{@html description}</div>
|
|
56
58
|
{/if}
|
|
57
59
|
<slot />
|
|
58
60
|
<div class="min-h-5">
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
<span class="text-xs text-error-600">
|
|
62
|
+
{#if feedback}
|
|
63
|
+
<ul>
|
|
64
|
+
{#each feedback as message}
|
|
65
|
+
<li>{message}</li>
|
|
66
|
+
{/each}
|
|
67
|
+
</ul>
|
|
66
68
|
{/if}
|
|
67
69
|
</span>
|
|
68
70
|
</div>
|
|
@@ -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}
|