@bexis2/bexis2-core-ui 0.2.31 → 0.3.0
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 +9 -1
- package/dist/TableView.svelte +1 -1
- package/dist/components/CodeEditor/CodeEditor.svelte +2 -1
- package/dist/components/File/FileIcon.svelte +45 -45
- package/dist/components/File/FileInfo.svelte +13 -13
- package/dist/components/ListView.svelte +5 -5
- package/dist/components/Table/Table.svelte +87 -25
- package/dist/components/Table/TableFilter.svelte +1 -1
- package/dist/components/form/Checkbox.svelte +13 -13
- package/dist/components/form/CheckboxKvPList.svelte +16 -16
- package/dist/components/form/CheckboxList.svelte +10 -10
- package/dist/components/form/DateInput.svelte +14 -14
- package/dist/components/form/DropdownKvP.svelte +54 -54
- package/dist/components/form/DropdownKvP.svelte.d.ts +2 -2
- package/dist/components/form/MultiSelect.svelte +5 -6
- package/dist/components/form/MultiSelect.svelte.d.ts +2 -2
- package/dist/components/form/NumberInput.svelte +15 -15
- package/dist/components/form/TextArea.svelte +14 -14
- package/dist/components/form/TextInput.svelte +15 -15
- package/dist/components/page/Alert.svelte +28 -28
- package/dist/components/page/BackToTop.svelte +30 -30
- package/dist/components/page/Docs.svelte +22 -22
- package/dist/components/page/ErrorMessage.svelte +8 -8
- package/dist/components/page/Footer.svelte +5 -5
- package/dist/components/page/Header.svelte +5 -5
- package/dist/components/page/HelpPopUp.svelte +30 -30
- package/dist/components/page/Notification.svelte +39 -1
- package/dist/components/page/Page.svelte +1 -2
- package/dist/components/page/PageCaller.js +19 -19
- package/dist/components/page/Spinner.svelte +14 -14
- package/dist/components/page/breadcrumb/Breadcrumb.svelte +6 -2
- package/dist/components/page/menu/MenuDataCaller.js +10 -10
- package/dist/css/core.ui.postcss +17 -17
- package/dist/css/themes/theme-bexis2.css +96 -96
- package/dist/css/themes/theme-crimson.css +101 -101
- package/dist/css/themes/theme-gold-nouveau.css +140 -140
- package/dist/css/themes/theme-hamlindigo.css +112 -112
- package/dist/css/themes/theme-modern.css +127 -127
- package/dist/css/themes/theme-rocket.css +119 -119
- package/dist/css/themes/theme-sahara.css +128 -128
- package/dist/css/themes/theme-seafoam.css +122 -122
- package/dist/css/themes/theme-seasonal.css +115 -115
- package/dist/css/themes/theme-skeleton.css +118 -118
- package/dist/css/themes/theme-vintage.css +125 -125
- package/dist/models/Models.d.ts +3 -0
- package/dist/services/BaseCaller.js +16 -16
- package/dist/stores/apiStores.js +2 -0
- package/dist/stores/pageStores.d.ts +1 -4
- package/dist/stores/pageStores.js +3 -41
- package/dist/themes/theme-bexis2.d.ts +2 -0
- package/dist/themes/theme-bexis2.js +99 -0
- package/package.json +4 -2
- package/src/lib/TableView.svelte +1 -1
- package/src/lib/components/CodeEditor/CodeEditor.svelte +2 -1
- package/src/lib/components/ListView.svelte +11 -11
- package/src/lib/components/Table/Table.svelte +107 -26
- package/src/lib/components/Table/TableFilter.svelte +2 -1
- package/src/lib/components/Table/filter.ts +141 -141
- package/src/lib/components/{File → file}/FileIcon.svelte +45 -45
- package/src/lib/components/{File → file}/FileInfo.svelte +13 -13
- package/src/lib/components/{File → file}/FileUploader.svelte +3 -4
- package/src/lib/components/form/Checkbox.svelte +24 -24
- package/src/lib/components/form/CheckboxKvPList.svelte +29 -29
- package/src/lib/components/form/CheckboxList.svelte +21 -21
- package/src/lib/components/form/DateInput.svelte +27 -27
- package/src/lib/components/form/DropdownKvP.svelte +54 -54
- package/src/lib/components/form/MultiSelect.svelte +5 -6
- package/src/lib/components/form/NumberInput.svelte +30 -30
- package/src/lib/components/form/TextArea.svelte +28 -28
- package/src/lib/components/form/TextInput.svelte +28 -28
- package/src/lib/components/page/Alert.svelte +41 -41
- package/src/lib/components/page/BackToTop.svelte +30 -30
- package/src/lib/components/page/Docs.svelte +46 -46
- package/src/lib/components/page/ErrorMessage.svelte +10 -10
- package/src/lib/components/page/Footer.svelte +18 -18
- package/src/lib/components/page/Header.svelte +18 -18
- package/src/lib/components/page/HelpPopUp.svelte +72 -72
- package/src/lib/components/page/Notification.svelte +56 -1
- package/src/lib/components/page/Page.svelte +3 -4
- package/src/lib/components/page/PageCaller.js +19 -19
- package/src/lib/components/page/Spinner.svelte +20 -20
- package/src/lib/components/page/breadcrumb/Breadcrumb.svelte +8 -6
- package/src/lib/components/page/menu/MenuDataCaller.js +10 -10
- package/src/lib/css/core.ui.postcss +17 -17
- package/src/lib/css/themes/theme-bexis2.css +96 -96
- package/src/lib/css/themes/theme-crimson.css +101 -101
- package/src/lib/css/themes/theme-gold-nouveau.css +140 -140
- package/src/lib/css/themes/theme-hamlindigo.css +112 -112
- package/src/lib/css/themes/theme-modern.css +127 -127
- package/src/lib/css/themes/theme-rocket.css +119 -119
- package/src/lib/css/themes/theme-sahara.css +128 -128
- package/src/lib/css/themes/theme-seafoam.css +122 -122
- package/src/lib/css/themes/theme-seasonal.css +115 -115
- package/src/lib/css/themes/theme-skeleton.css +118 -118
- package/src/lib/css/themes/theme-vintage.css +125 -125
- package/src/lib/models/Models.ts +9 -6
- package/src/lib/models/Page.ts +40 -40
- package/src/lib/services/Api.ts +55 -55
- package/src/lib/services/BaseCaller.js +16 -16
- package/src/lib/stores/apiStores.ts +34 -31
- package/src/lib/stores/pageStores.ts +11 -53
- package/src/lib/themes/theme-bexis2.ts +103 -0
|
@@ -10,18 +10,18 @@ export let feedback = [""];
|
|
|
10
10
|
export let placeholder = "";
|
|
11
11
|
export let help = false;
|
|
12
12
|
export let disabled = false;
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<InputContainer {id} {label} {feedback} {required} {help}>
|
|
16
|
-
<input
|
|
17
|
-
{id}
|
|
18
|
-
class="input variant-form-material"
|
|
19
|
-
type="number"
|
|
20
|
-
class:input-success={valid}
|
|
21
|
-
class:input-error={invalid}
|
|
22
|
-
bind:value
|
|
23
|
-
on:input
|
|
24
|
-
{placeholder}
|
|
25
|
-
{disabled}
|
|
26
|
-
/>
|
|
27
|
-
</InputContainer>
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<InputContainer {id} {label} {feedback} {required} {help}>
|
|
16
|
+
<input
|
|
17
|
+
{id}
|
|
18
|
+
class="input variant-form-material"
|
|
19
|
+
type="number"
|
|
20
|
+
class:input-success={valid}
|
|
21
|
+
class:input-error={invalid}
|
|
22
|
+
bind:value
|
|
23
|
+
on:input
|
|
24
|
+
{placeholder}
|
|
25
|
+
{disabled}
|
|
26
|
+
/>
|
|
27
|
+
</InputContainer>
|
|
@@ -9,17 +9,17 @@ export let feedback = [""];
|
|
|
9
9
|
export let placeholder = "";
|
|
10
10
|
export let help = false;
|
|
11
11
|
export let disabled = false;
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<InputContainer {id} {label} {feedback} {required} {help}>
|
|
15
|
-
<textarea
|
|
16
|
-
{id}
|
|
17
|
-
class="textarea variant-form-material"
|
|
18
|
-
class:input-success={valid}
|
|
19
|
-
class:input-error={invalid}
|
|
20
|
-
bind:value
|
|
21
|
-
on:input
|
|
22
|
-
{placeholder}
|
|
23
|
-
{disabled}
|
|
24
|
-
/>
|
|
25
|
-
</InputContainer>
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<InputContainer {id} {label} {feedback} {required} {help}>
|
|
15
|
+
<textarea
|
|
16
|
+
{id}
|
|
17
|
+
class="textarea variant-form-material"
|
|
18
|
+
class:input-success={valid}
|
|
19
|
+
class:input-error={invalid}
|
|
20
|
+
bind:value
|
|
21
|
+
on:input
|
|
22
|
+
{placeholder}
|
|
23
|
+
{disabled}
|
|
24
|
+
/>
|
|
25
|
+
</InputContainer>
|
|
@@ -9,18 +9,18 @@ export let feedback = [""];
|
|
|
9
9
|
export let placeholder = "";
|
|
10
10
|
export let help = false;
|
|
11
11
|
export let disabled = false;
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<InputContainer {id} {label} {feedback} {required} {help}>
|
|
15
|
-
<input
|
|
16
|
-
{id}
|
|
17
|
-
class="input variant-form-material"
|
|
18
|
-
type="text"
|
|
19
|
-
class:input-success={valid}
|
|
20
|
-
class:input-error={invalid}
|
|
21
|
-
bind:value
|
|
22
|
-
on:input
|
|
23
|
-
{placeholder}
|
|
24
|
-
{disabled}
|
|
25
|
-
/>
|
|
26
|
-
</InputContainer>
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<InputContainer {id} {label} {feedback} {required} {help}>
|
|
15
|
+
<input
|
|
16
|
+
{id}
|
|
17
|
+
class="input variant-form-material"
|
|
18
|
+
type="text"
|
|
19
|
+
class:input-success={valid}
|
|
20
|
+
class:input-error={invalid}
|
|
21
|
+
bind:value
|
|
22
|
+
on:input
|
|
23
|
+
{placeholder}
|
|
24
|
+
{disabled}
|
|
25
|
+
/>
|
|
26
|
+
</InputContainer>
|
|
@@ -7,31 +7,31 @@ export let cssClass = "";
|
|
|
7
7
|
export let deleteBtn = true;
|
|
8
8
|
$:
|
|
9
9
|
show = true;
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
{#if show}
|
|
13
|
-
<aside class="alert {cssClass}" transition:fade|local={{ duration: 100 }}>
|
|
14
|
-
<!-- Icon -->
|
|
15
|
-
<!-- <div>(icon)</div> -->
|
|
16
|
-
<!-- Message -->
|
|
17
|
-
<div class="alert-message">
|
|
18
|
-
{#if title}
|
|
19
|
-
<h3 class="h3">{title}</h3>
|
|
20
|
-
{/if}
|
|
21
|
-
<p>
|
|
22
|
-
{message}
|
|
23
|
-
<slot />
|
|
24
|
-
</p>
|
|
25
|
-
</div>
|
|
26
|
-
<!-- Actions -->
|
|
27
|
-
<div class="alert-actions">
|
|
28
|
-
<slot name="actions" />
|
|
29
|
-
|
|
30
|
-
{#if deleteBtn}
|
|
31
|
-
<button class="btn hover:text-primary-100" on:click={() => (show = false)}>
|
|
32
|
-
<Fa icon={faXmark} />
|
|
33
|
-
</button>
|
|
34
|
-
{/if}
|
|
35
|
-
</div>
|
|
36
|
-
</aside>
|
|
37
|
-
{/if}
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
{#if show}
|
|
13
|
+
<aside class="alert {cssClass}" transition:fade|local={{ duration: 100 }}>
|
|
14
|
+
<!-- Icon -->
|
|
15
|
+
<!-- <div>(icon)</div> -->
|
|
16
|
+
<!-- Message -->
|
|
17
|
+
<div class="alert-message">
|
|
18
|
+
{#if title}
|
|
19
|
+
<h3 class="h3">{title}</h3>
|
|
20
|
+
{/if}
|
|
21
|
+
<p>
|
|
22
|
+
{message}
|
|
23
|
+
<slot />
|
|
24
|
+
</p>
|
|
25
|
+
</div>
|
|
26
|
+
<!-- Actions -->
|
|
27
|
+
<div class="alert-actions">
|
|
28
|
+
<slot name="actions" />
|
|
29
|
+
|
|
30
|
+
{#if deleteBtn}
|
|
31
|
+
<button class="btn hover:text-primary-100" on:click={() => (show = false)}>
|
|
32
|
+
<Fa icon={faXmark} />
|
|
33
|
+
</button>
|
|
34
|
+
{/if}
|
|
35
|
+
</div>
|
|
36
|
+
</aside>
|
|
37
|
+
{/if}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export let showOnPx = 150;
|
|
3
|
-
let hidden = true;
|
|
4
|
-
|
|
5
|
-
function goTop() {
|
|
6
|
-
document.body.scrollIntoView();
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
function scrollContainer() {
|
|
10
|
-
return document.documentElement || document.body;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
function handleOnScroll() {
|
|
14
|
-
if (!scrollContainer()) {
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
if (scrollContainer().scrollTop > showOnPx) {
|
|
19
|
-
hidden = false;
|
|
20
|
-
} else {
|
|
21
|
-
hidden = true;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
</script>
|
|
25
|
-
|
|
26
|
-
<svelte:window on:scroll={handleOnScroll} />
|
|
27
|
-
|
|
28
|
-
<div class="w-full items-center">
|
|
29
|
-
<button class="btn ring back-to-top" on:click={goTop} class:hidden>Back to top</button>
|
|
30
|
-
</div>
|
|
1
|
+
<script>
|
|
2
|
+
export let showOnPx = 150;
|
|
3
|
+
let hidden = true;
|
|
4
|
+
|
|
5
|
+
function goTop() {
|
|
6
|
+
document.body.scrollIntoView();
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
function scrollContainer() {
|
|
10
|
+
return document.documentElement || document.body;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function handleOnScroll() {
|
|
14
|
+
if (!scrollContainer()) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
if (scrollContainer().scrollTop > showOnPx) {
|
|
19
|
+
hidden = false;
|
|
20
|
+
} else {
|
|
21
|
+
hidden = true;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<svelte:window on:scroll={handleOnScroll} />
|
|
27
|
+
|
|
28
|
+
<div class="w-full items-center">
|
|
29
|
+
<button class="btn ring back-to-top" on:click={goTop} class:hidden>Back to top</button>
|
|
30
|
+
</div>
|
|
@@ -12,25 +12,25 @@ const noteSettings = {
|
|
|
12
12
|
target: "noteTarget",
|
|
13
13
|
placement: "bottom"
|
|
14
14
|
};
|
|
15
|
-
</script>
|
|
16
|
-
|
|
17
|
-
<div class="text-right p-2">
|
|
18
|
-
{#if note}
|
|
19
|
-
<span class="chip variant-soft hover:variant-filled" use:popup={noteSettings}>
|
|
20
|
-
<span><Fa icon={faQuestion} /></span>
|
|
21
|
-
</span>
|
|
22
|
-
|
|
23
|
-
<div
|
|
24
|
-
class="card p-4 variant-filled-primary w-60 z-50 text-left shadow-md"
|
|
25
|
-
data-popup="noteTarget"
|
|
26
|
-
>
|
|
27
|
-
{note}
|
|
28
|
-
</div>
|
|
29
|
-
{/if}
|
|
30
|
-
|
|
31
|
-
{#each links as link}
|
|
32
|
-
<span class="chip variant-soft hover:variant-filled" on:click={() => goTo(link.url, false)}>
|
|
33
|
-
<span>{link.label}</span>
|
|
34
|
-
</span>
|
|
35
|
-
{/each}
|
|
36
|
-
</div>
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<div class="text-right p-2">
|
|
18
|
+
{#if note}
|
|
19
|
+
<span class="chip variant-soft hover:variant-filled" use:popup={noteSettings}>
|
|
20
|
+
<span><Fa icon={faQuestion} /></span>
|
|
21
|
+
</span>
|
|
22
|
+
|
|
23
|
+
<div
|
|
24
|
+
class="card p-4 variant-filled-primary w-60 z-50 text-left shadow-md"
|
|
25
|
+
data-popup="noteTarget"
|
|
26
|
+
>
|
|
27
|
+
{note}
|
|
28
|
+
</div>
|
|
29
|
+
{/if}
|
|
30
|
+
|
|
31
|
+
{#each links as link}
|
|
32
|
+
<span class="chip variant-soft hover:variant-filled" on:click={() => goTo(link.url, false)}>
|
|
33
|
+
<span>{link.label}</span>
|
|
34
|
+
</span>
|
|
35
|
+
{/each}
|
|
36
|
+
</div>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script>export let error;
|
|
2
|
-
</script>
|
|
3
|
-
|
|
4
|
-
<div class="card bg-error-300 border-solid border-2 border-error-500 shadow-md max-w-md">
|
|
5
|
-
<div class="p-5 space-y-4">
|
|
6
|
-
<h3 class="h3">{error.name}</h3>
|
|
7
|
-
<p>{error.message}</p>
|
|
8
|
-
</div>
|
|
9
|
-
</div>
|
|
2
|
+
</script>
|
|
3
|
+
|
|
4
|
+
<div class="card bg-error-300 border-solid border-2 border-error-500 shadow-md max-w-md">
|
|
5
|
+
<div class="p-5 space-y-4">
|
|
6
|
+
<h3 class="h3">{error.name}</h3>
|
|
7
|
+
<p>{error.message}</p>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
@@ -26,33 +26,33 @@ async function resetItemId() {
|
|
|
26
26
|
await delay(100);
|
|
27
27
|
helpStore.resetItemId();
|
|
28
28
|
}
|
|
29
|
-
</script>
|
|
30
|
-
|
|
31
|
-
{#if active}
|
|
32
|
-
<button
|
|
33
|
-
id="helpButton"
|
|
34
|
-
class="chip variant-filled-warning fixed bottom-5 right-10 shadow-md"
|
|
35
|
-
use:popup={helpClick}><Fa icon={faQuestion} /></button
|
|
36
|
-
>
|
|
37
|
-
|
|
38
|
-
<div
|
|
39
|
-
class="card bg-primary-300 border-solid border-2 border-primary-500 shadow-md"
|
|
40
|
-
data-popup="helpTarget"
|
|
41
|
-
>
|
|
42
|
-
{#if helpItem && helpItem.id}
|
|
43
|
-
<div class="p-5 w-96 space-y-4" id={'helpPopup.' + helpItem.id}>
|
|
44
|
-
<h3 class="h3">{helpItem.name}</h3>
|
|
45
|
-
<p>{@html helpItem.description}</p>
|
|
46
|
-
{#if helpItem.link}
|
|
47
|
-
<p><a class="anchor" href={helpItem.link}>... read more</a></p>
|
|
48
|
-
{/if}
|
|
49
|
-
</div>
|
|
50
|
-
{:else}
|
|
51
|
-
<div class="p-5 w-96 space-y-4" id="helpPopup">
|
|
52
|
-
<h3 class="h3">Help</h3>
|
|
53
|
-
<p>Hover over the Element, you like to know more about.</p>
|
|
54
|
-
</div>
|
|
55
|
-
{/if}
|
|
56
|
-
<div class="arrow variant-filled-primary" />
|
|
57
|
-
</div>
|
|
58
|
-
{/if}
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
{#if active}
|
|
32
|
+
<button
|
|
33
|
+
id="helpButton"
|
|
34
|
+
class="chip variant-filled-warning fixed bottom-5 right-10 shadow-md"
|
|
35
|
+
use:popup={helpClick}><Fa icon={faQuestion} /></button
|
|
36
|
+
>
|
|
37
|
+
|
|
38
|
+
<div
|
|
39
|
+
class="card bg-primary-300 border-solid border-2 border-primary-500 shadow-md"
|
|
40
|
+
data-popup="helpTarget"
|
|
41
|
+
>
|
|
42
|
+
{#if helpItem && helpItem.id}
|
|
43
|
+
<div class="p-5 w-96 space-y-4" id={'helpPopup.' + helpItem.id}>
|
|
44
|
+
<h3 class="h3">{helpItem.name}</h3>
|
|
45
|
+
<p>{@html helpItem.description}</p>
|
|
46
|
+
{#if helpItem.link}
|
|
47
|
+
<p><a class="anchor" href={helpItem.link}>... read more</a></p>
|
|
48
|
+
{/if}
|
|
49
|
+
</div>
|
|
50
|
+
{:else}
|
|
51
|
+
<div class="p-5 w-96 space-y-4" id="helpPopup">
|
|
52
|
+
<h3 class="h3">Help</h3>
|
|
53
|
+
<p>Hover over the Element, you like to know more about.</p>
|
|
54
|
+
</div>
|
|
55
|
+
{/if}
|
|
56
|
+
<div class="arrow variant-filled-primary" />
|
|
57
|
+
</div>
|
|
58
|
+
{/if}
|
|
@@ -1,8 +1,46 @@
|
|
|
1
|
-
<script>import {
|
|
1
|
+
<script>import { onMount } from "svelte";
|
|
2
|
+
import { Toast, getToastStore } from "@skeletonlabs/skeleton";
|
|
2
3
|
import { notificationStore } from "../../stores/pageStores";
|
|
4
|
+
import { notificationType } from "../../models/Enums";
|
|
5
|
+
const toastStore = getToastStore();
|
|
3
6
|
let btnStyle;
|
|
4
7
|
$:
|
|
5
8
|
btnStyle = $notificationStore === void 0 || $notificationStore.btnStyle === void 0 ? notificationStore.getBtnStyle() : $notificationStore.btnStyle;
|
|
9
|
+
$:
|
|
10
|
+
$notificationStore, triggerToast();
|
|
11
|
+
onMount(() => {
|
|
12
|
+
toastStore.clear();
|
|
13
|
+
});
|
|
14
|
+
function triggerToast() {
|
|
15
|
+
toastStore.clear();
|
|
16
|
+
const timeout = 3e4;
|
|
17
|
+
let classes = "";
|
|
18
|
+
if ($notificationStore.message != void 0 && $notificationStore.message != "") {
|
|
19
|
+
switch ($notificationStore.notificationType) {
|
|
20
|
+
case notificationType.success:
|
|
21
|
+
classes = "bg-success-300 border-solid border-2 border-success-500 shadow-md text-surface-900";
|
|
22
|
+
break;
|
|
23
|
+
case notificationType.warning:
|
|
24
|
+
classes = "bg-warning-300 border-solid border-2 border-warning-500 shadow-md text-surface-900";
|
|
25
|
+
break;
|
|
26
|
+
case notificationType.error:
|
|
27
|
+
classes = "bg-error-300 border-solid border-2 border-error-500 shadow-md text-surface-900";
|
|
28
|
+
break;
|
|
29
|
+
case notificationType.surface:
|
|
30
|
+
classes = "bg-surface-300 border-solid border-2 border-surface-500 shadow-md text-surface-900";
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
const notificationToast = {
|
|
34
|
+
classes,
|
|
35
|
+
message: $notificationStore.message,
|
|
36
|
+
timeout,
|
|
37
|
+
callback: () => {
|
|
38
|
+
toastStore.clear();
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
toastStore.trigger(notificationToast);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
6
44
|
</script>
|
|
7
45
|
|
|
8
46
|
<Toast position="t" buttonDismiss={btnStyle} />
|
|
@@ -11,7 +11,6 @@ import { computePosition, autoUpdate, offset, shift, flip, arrow } from "@floati
|
|
|
11
11
|
import { storePopup } from "@skeletonlabs/skeleton";
|
|
12
12
|
import { breadcrumbStore } from "../../stores/pageStores";
|
|
13
13
|
storePopup.set({ computePosition, autoUpdate, offset, shift, flip, arrow });
|
|
14
|
-
import { helpStore } from "../../stores/pageStores";
|
|
15
14
|
import Docs from "./Docs.svelte";
|
|
16
15
|
export let title = "";
|
|
17
16
|
export let note = "";
|
|
@@ -39,7 +38,7 @@ onMount(async () => {
|
|
|
39
38
|
{/if}
|
|
40
39
|
|
|
41
40
|
<div class="grid grid-cols-2">
|
|
42
|
-
<Breadcrumb bind:title
|
|
41
|
+
<Breadcrumb bind:title />
|
|
43
42
|
<Docs {links} {note} />
|
|
44
43
|
</div>
|
|
45
44
|
</svelte:fragment>
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Api } from '../../services/Api';
|
|
2
|
-
|
|
3
|
-
export const getFooter = async () => {
|
|
4
|
-
try {
|
|
5
|
-
const response = await Api.get('/footer');
|
|
6
|
-
return response.data;
|
|
7
|
-
} catch (error) {
|
|
8
|
-
console.error(error);
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export const getHeader = async () => {
|
|
13
|
-
try {
|
|
14
|
-
const response = await Api.get('/header');
|
|
15
|
-
return response.data;
|
|
16
|
-
} catch (error) {
|
|
17
|
-
console.error(error);
|
|
18
|
-
}
|
|
19
|
-
};
|
|
1
|
+
import { Api } from '../../services/Api';
|
|
2
|
+
|
|
3
|
+
export const getFooter = async () => {
|
|
4
|
+
try {
|
|
5
|
+
const response = await Api.get('/footer');
|
|
6
|
+
return response.data;
|
|
7
|
+
} catch (error) {
|
|
8
|
+
console.error(error);
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const getHeader = async () => {
|
|
13
|
+
try {
|
|
14
|
+
const response = await Api.get('/header');
|
|
15
|
+
return response.data;
|
|
16
|
+
} catch (error) {
|
|
17
|
+
console.error(error);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
export let textCss = "text-surface-600";
|
|
3
3
|
export let label = "";
|
|
4
4
|
export let position = positionType.center;
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
|
-
<div class="flex justify-{position} items-{position} h-full w-full gap-5 pt-2 {textCss}">
|
|
8
|
-
<div
|
|
9
|
-
class="inline-block h-8 w-8 animate-spin rounded-full border-4 border-solid border-current border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite]"
|
|
10
|
-
role="status"
|
|
11
|
-
>
|
|
12
|
-
<span
|
|
13
|
-
class="!absolute !-m-px !h-px !w-px !overflow-hidden !whitespace-nowrap !border-0 !p-0 ![clip:rect(0,0,0,0)]"
|
|
14
|
-
>Loading...</span
|
|
15
|
-
>
|
|
16
|
-
</div>
|
|
17
|
-
<span>{label}</span>
|
|
18
|
-
</div>
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<div class="flex justify-{position} items-{position} h-full w-full gap-5 pt-2 {textCss}">
|
|
8
|
+
<div
|
|
9
|
+
class="inline-block h-8 w-8 animate-spin rounded-full border-4 border-solid border-current border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite]"
|
|
10
|
+
role="status"
|
|
11
|
+
>
|
|
12
|
+
<span
|
|
13
|
+
class="!absolute !-m-px !h-px !w-px !overflow-hidden !whitespace-nowrap !border-0 !p-0 ![clip:rect(0,0,0,0)]"
|
|
14
|
+
>Loading...</span
|
|
15
|
+
>
|
|
16
|
+
</div>
|
|
17
|
+
<span>{label}</span>
|
|
18
|
+
</div>
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
<script>import { breadcrumbStore } from "../../../stores/pageStores";
|
|
2
|
+
import { browser } from "$app/environment";
|
|
3
|
+
import { base } from "$app/paths";
|
|
2
4
|
export let title;
|
|
3
5
|
$:
|
|
4
6
|
update(title);
|
|
5
7
|
function update(t) {
|
|
6
|
-
|
|
8
|
+
if (browser) {
|
|
9
|
+
breadcrumbStore.updateItem({ label: t, link: window.location.pathname });
|
|
10
|
+
}
|
|
7
11
|
}
|
|
8
12
|
let list = [];
|
|
9
13
|
$:
|
|
@@ -17,7 +21,7 @@ $:
|
|
|
17
21
|
<div class="px-5 py-2">
|
|
18
22
|
<ol class="breadcrumb -p50">
|
|
19
23
|
<!--default home-->
|
|
20
|
-
<li class="crumb"><a class="anchor" href={'/'}>Home</a></li>
|
|
24
|
+
<li class="crumb"><a class="anchor" href={base + '/'}>Home</a></li>
|
|
21
25
|
<li class="crumb-separator" aria-hidden>›</li>
|
|
22
26
|
|
|
23
27
|
{#each list as crumb, i}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Api } from '../../../services/Api';
|
|
2
|
-
|
|
3
|
-
export const getMenuItems = async () => {
|
|
4
|
-
try {
|
|
5
|
-
const response = await Api.get('/menu');
|
|
6
|
-
return response.data;
|
|
7
|
-
} catch (error) {
|
|
8
|
-
console.error(error);
|
|
9
|
-
}
|
|
10
|
-
};
|
|
1
|
+
import { Api } from '../../../services/Api';
|
|
2
|
+
|
|
3
|
+
export const getMenuItems = async () => {
|
|
4
|
+
try {
|
|
5
|
+
const response = await Api.get('/menu');
|
|
6
|
+
return response.data;
|
|
7
|
+
} catch (error) {
|
|
8
|
+
console.error(error);
|
|
9
|
+
}
|
|
10
|
+
};
|
package/dist/css/core.ui.postcss
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/*place global styles here */
|
|
2
|
-
html,
|
|
3
|
-
body {
|
|
4
|
-
@apply h-full;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
h1 {
|
|
8
|
-
@apply text-primary-500;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
:root {
|
|
12
|
-
--background: rgb(var(--color-surface-200));
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
[type='text']:focus {
|
|
16
|
-
--tw-ring-color: #00000;
|
|
17
|
-
}
|
|
1
|
+
/*place global styles here */
|
|
2
|
+
html,
|
|
3
|
+
body {
|
|
4
|
+
@apply h-full;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
h1 {
|
|
8
|
+
@apply text-primary-500;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:root {
|
|
12
|
+
--background: rgb(var(--color-surface-200));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[type='text']:focus {
|
|
16
|
+
--tw-ring-color: #00000;
|
|
17
|
+
}
|