@bexis2/bexis2-core-ui 0.2.11 → 0.2.13
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 +273 -214
- package/dist/components/Table/Table.svelte +85 -85
- package/dist/components/Table/TableFilter.svelte +8 -8
- package/dist/components/Table/TablePagination.svelte +38 -38
- package/dist/components/file/FileUploader.svelte +34 -34
- package/dist/components/form/Checkbox.svelte.d.ts +1 -1
- package/dist/components/form/DropdownKvP.svelte +5 -11
- package/dist/components/form/InputContainer.svelte +20 -19
- package/dist/components/form/MultiSelect.svelte +163 -178
- package/dist/components/form/TextArea.svelte +13 -13
- package/dist/components/form/TextInput.svelte +0 -2
- package/dist/components/page/Alert.svelte +28 -30
- package/dist/components/page/BackToTop.svelte +30 -30
- package/dist/components/page/Docs.svelte +22 -19
- package/dist/components/page/Docs.svelte.d.ts +1 -1
- package/dist/components/page/ErrorMessage.svelte +8 -8
- package/dist/components/page/Footer.svelte +5 -5
- package/dist/components/page/Header.svelte +5 -4
- package/dist/components/page/HelpPopUp.svelte +31 -25
- package/dist/components/page/HelpPopUp.svelte.d.ts +5 -12
- package/dist/components/page/Page.svelte +57 -67
- package/dist/components/page/Page.svelte.d.ts +2 -2
- package/dist/components/page/PageCaller.js +19 -21
- package/dist/components/page/Spinner.svelte +9 -10
- package/dist/components/page/Spinner.svelte.d.ts +1 -1
- package/dist/components/page/breadcrumb/Breadcrumb.svelte +19 -23
- package/dist/components/page/menu/Menu.svelte +48 -22
- package/dist/components/page/menu/MenuBar.svelte +8 -14
- package/dist/components/page/menu/MenuBar.svelte.d.ts +1 -1
- package/dist/components/page/menu/MenuDataCaller.js +10 -11
- package/dist/components/page/menu/MenuItem.svelte +28 -15
- package/dist/components/page/menu/MenuItem.svelte.d.ts +2 -1
- package/dist/components/page/menu/MenuSublist.svelte +14 -16
- package/dist/components/page/menu/MenuSublist.svelte.d.ts +2 -3
- package/dist/components/page/menu/SettingsBar.svelte +22 -14
- package/dist/components/page/menu/SettingsBar.svelte.d.ts +2 -2
- package/dist/css/core.ui.postcss +10 -7
- package/dist/css/themes/theme-bexis2.css +12 -13
- package/dist/index.d.ts +3 -5
- package/dist/index.js +5 -5
- package/dist/models/Enums.d.ts +18 -0
- package/dist/models/Enums.js +22 -0
- package/dist/models/Models.d.ts +18 -0
- package/dist/models/Models.js +1 -2
- package/dist/models/Page.d.ts +31 -0
- package/dist/services/BaseCaller.js +16 -21
- package/dist/stores/pageStores.d.ts +4 -4
- package/dist/stores/pageStores.js +27 -27
- package/package.json +2 -2
- package/src/lib/components/Table/Table.svelte +246 -246
- package/src/lib/components/Table/TableFilter.svelte +8 -8
- package/src/lib/components/Table/TablePagination.svelte +61 -61
- package/src/lib/components/Table/filter.ts +141 -141
- package/src/lib/components/file/FileUploader.svelte +184 -184
- package/src/lib/components/form/Checkbox.svelte +1 -1
- package/src/lib/components/form/DateInput.svelte +0 -1
- package/src/lib/components/form/DropdownKvP.svelte +5 -11
- package/src/lib/components/form/InputContainer.svelte +36 -44
- package/src/lib/components/form/MultiSelect.svelte +163 -178
- package/src/lib/components/form/NumberInput.svelte +3 -5
- package/src/lib/components/form/TextArea.svelte +26 -27
- package/src/lib/components/form/TextInput.svelte +2 -5
- package/src/lib/components/page/Alert.svelte +41 -45
- package/src/lib/components/page/BackToTop.svelte +30 -30
- package/src/lib/components/page/Docs.svelte +46 -44
- package/src/lib/components/page/ErrorMessage.svelte +10 -12
- package/src/lib/components/page/Footer.svelte +18 -22
- package/src/lib/components/page/Header.svelte +18 -21
- package/src/lib/components/page/HelpPopUp.svelte +72 -66
- package/src/lib/components/page/Page.svelte +96 -109
- package/src/lib/components/page/PageCaller.js +19 -21
- package/src/lib/components/page/Spinner.svelte +13 -15
- package/src/lib/components/page/breadcrumb/Breadcrumb.svelte +31 -43
- package/src/lib/components/page/menu/Menu.svelte +61 -43
- package/src/lib/components/page/menu/MenuBar.svelte +18 -29
- package/src/lib/components/page/menu/MenuDataCaller.js +10 -11
- package/src/lib/components/page/menu/MenuItem.svelte +45 -34
- package/src/lib/components/page/menu/MenuSublist.svelte +33 -41
- package/src/lib/components/page/menu/SettingsBar.svelte +39 -37
- package/src/lib/css/core.ui.postcss +10 -7
- package/src/lib/css/themes/theme-bexis2.css +12 -13
- package/src/lib/index.ts +78 -77
- package/src/lib/models/Enums.ts +32 -11
- package/src/lib/models/Models.ts +136 -113
- package/src/lib/models/Page.ts +40 -41
- package/src/lib/services/BaseCaller.js +16 -21
- package/src/lib/stores/apiStores.ts +31 -32
- package/src/lib/stores/pageStores.ts +121 -126
|
@@ -1,35 +1,61 @@
|
|
|
1
1
|
<script>import { onMount } from "svelte";
|
|
2
|
-
import { get } from "svelte/store";
|
|
3
2
|
import { getMenuItems } from "./MenuDataCaller";
|
|
4
3
|
import { menuStore } from "../../../stores/pageStores";
|
|
5
4
|
import MenuBar from "./MenuBar.svelte";
|
|
6
5
|
import SettingsBar from "./SettingsBar.svelte";
|
|
6
|
+
import Fa from "svelte-fa/src/fa.svelte";
|
|
7
|
+
import { faBars } from "@fortawesome/free-solid-svg-icons";
|
|
8
|
+
import { Accordion } from "@skeletonlabs/skeleton";
|
|
7
9
|
onMount(async () => {
|
|
8
10
|
let m = await getMenuItems();
|
|
9
11
|
menuStore.set(m);
|
|
10
12
|
});
|
|
13
|
+
let hamburger = true;
|
|
11
14
|
</script>
|
|
12
|
-
{#if $menuStore!== undefined}
|
|
13
15
|
|
|
14
|
-
<div class="flex flex-row md:flex px-3 py-2 bg-tertiary-50 text-surface-800 z-50 shadow-md">
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
{#if $menuStore !== undefined}
|
|
18
|
+
<div
|
|
19
|
+
class="sm:flex h-min flex-row w-full justify-between items-center md:flex px-3 py-2 bg-tertiary-50 text-surface-800 z-50 shadow-md"
|
|
20
|
+
>
|
|
21
|
+
<div class="flex justify-between gap-5">
|
|
22
|
+
<div class="basis-8">
|
|
23
|
+
{#if $menuStore.Logo}
|
|
24
|
+
<img
|
|
25
|
+
src="data:{$menuStore.Logo.Mime};charset=utf-8;base64, {$menuStore.Logo.Data}"
|
|
26
|
+
alt={$menuStore.Logo.Name}
|
|
27
|
+
style="height:40px;"
|
|
28
|
+
/>
|
|
29
|
+
{/if}
|
|
30
|
+
</div>
|
|
31
|
+
<button
|
|
32
|
+
class="w-min h-min variant-ghost-surface aspect-square p-3 rounded-lg sm:hidden justify-end btn"
|
|
33
|
+
on:click|preventDefault={() => (hamburger = !hamburger)}
|
|
34
|
+
>
|
|
35
|
+
<Fa icon={faBars} />
|
|
36
|
+
</button>
|
|
37
|
+
</div>
|
|
21
38
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
39
|
+
<div class="sm:flex w-full h-full sm:h-10" class:hidden={hamburger}>
|
|
40
|
+
<div class="sm:flex justify-between w-full">
|
|
41
|
+
<Accordion>
|
|
42
|
+
<div class="sm:flex w-full justify-between">
|
|
43
|
+
<!-- <div class="sm:flex items-center sm:gap-5 px-1 text-lg justify-start gap-2 py-0"> -->
|
|
44
|
+
<MenuBar menuBar={$menuStore.MenuBar} />
|
|
45
|
+
<MenuBar menuBar={$menuStore.Extended} />
|
|
46
|
+
<!-- </div> -->
|
|
47
|
+
<!-- <div class="sm:flex items-center sm:gap-5 px-1 text-lg justify-end gap-2"> -->
|
|
48
|
+
<div class="grid w-full sm:flex gap-2 justify-auto sm:justify-end">
|
|
49
|
+
<MenuBar menuBar={$menuStore.AccountBar} />
|
|
50
|
+
<MenuBar menuBar={$menuStore.LaunchBar} />
|
|
51
|
+
<SettingsBar menuBar={$menuStore.Settings} />
|
|
52
|
+
<!-- </div> -->
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
</Accordion>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
{:else}
|
|
60
|
+
<div class="placeholder h-14 bg-tertiary-50 shadow-md" />
|
|
61
|
+
{/if}
|
|
@@ -1,21 +1,15 @@
|
|
|
1
|
-
|
|
2
1
|
<script>import { computePosition, autoUpdate, offset, shift, flip, arrow } from "@floating-ui/dom";
|
|
3
2
|
import { storePopup } from "@skeletonlabs/skeleton";
|
|
4
3
|
storePopup.set({ computePosition, autoUpdate, offset, shift, flip, arrow });
|
|
5
4
|
import Item from "./MenuItem.svelte";
|
|
6
5
|
export let menuBar;
|
|
7
6
|
let comboboxValue;
|
|
8
|
-
let radomNumber = Math.floor(Math.random() * 100);
|
|
9
7
|
</script>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
{/if}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
8
|
+
|
|
9
|
+
{#if menuBar}
|
|
10
|
+
<div class="h-full place-self-center sm:flex gap-2 w-full sm:w-auto">
|
|
11
|
+
{#each menuBar as menubarItem}
|
|
12
|
+
<Item {menubarItem} {comboboxValue} />
|
|
13
|
+
{/each}
|
|
14
|
+
</div>
|
|
15
|
+
{/if}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {Api} from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
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,4 +1,4 @@
|
|
|
1
|
-
<script>import { popup } from "@skeletonlabs/skeleton";
|
|
1
|
+
<script>import { Accordion, AccordionItem, popup } from "@skeletonlabs/skeleton";
|
|
2
2
|
import MenuSublist from "./MenuSublist.svelte";
|
|
3
3
|
import { goTo } from "../../../services/BaseCaller";
|
|
4
4
|
export let menubarItem;
|
|
@@ -7,25 +7,38 @@ let id = Math.floor(Math.random() * 100).toString();
|
|
|
7
7
|
let popupCombobox = {
|
|
8
8
|
event: "click",
|
|
9
9
|
target: id,
|
|
10
|
-
placement: "bottom",
|
|
10
|
+
placement: "bottom-start",
|
|
11
11
|
// Close the popup when the item is clicked
|
|
12
12
|
closeQuery: ".listbox-item"
|
|
13
13
|
};
|
|
14
14
|
</script>
|
|
15
|
-
{#if menubarItem.Items.length<1}
|
|
16
|
-
|
|
17
|
-
<button use:popup={popupCombobox} on:click={()=> goTo(menubarItem.Url)}>
|
|
18
|
-
<span class="capitalize">{comboboxValue ?? menubarItem.Title}</span>
|
|
19
|
-
</button>
|
|
20
15
|
|
|
16
|
+
{#if menubarItem.Items.length < 1}
|
|
17
|
+
<div class="p-2">
|
|
18
|
+
<button class="grid" use:popup={popupCombobox} on:click={() => goTo(menubarItem.Url)}>
|
|
19
|
+
<span class="capitalize">{comboboxValue ?? menubarItem.Title}</span>
|
|
20
|
+
</button>
|
|
21
|
+
</div>
|
|
21
22
|
{:else}
|
|
23
|
+
<div class="sm:hidden block">
|
|
24
|
+
<AccordionItem padding="p-2">
|
|
25
|
+
<svelte:fragment slot="summary"
|
|
26
|
+
><button class="flex items-center gap-x-1">
|
|
27
|
+
<span class="capitalize">{menubarItem.Title}</span>
|
|
28
|
+
</button></svelte:fragment
|
|
29
|
+
>
|
|
30
|
+
<svelte:fragment slot="content"
|
|
31
|
+
><MenuSublist {id} items={menubarItem.Items} /></svelte:fragment
|
|
32
|
+
></AccordionItem
|
|
33
|
+
>
|
|
34
|
+
</div>
|
|
35
|
+
<div class="hidden sm:block place-self-center" use:popup={popupCombobox}>
|
|
36
|
+
<button class="flex items-center gap-x-1 px-2">
|
|
37
|
+
<span class="capitalize">{menubarItem.Title}▾</span>
|
|
38
|
+
</button>
|
|
22
39
|
|
|
23
|
-
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</button>
|
|
28
|
-
|
|
29
|
-
<MenuSublist {id} items={menubarItem.Items} />
|
|
30
|
-
|
|
40
|
+
<div class="z-50 w-max" data-popup={id}>
|
|
41
|
+
<MenuSublist {id} items={menubarItem.Items} />
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
31
44
|
{/if}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<script>import { ListBox, ListBoxItem } from "@skeletonlabs/skeleton";
|
|
2
2
|
import { goTo } from "../../../services/BaseCaller";
|
|
3
|
-
export let id;
|
|
4
3
|
export let items;
|
|
5
4
|
let lastModule = "";
|
|
6
5
|
let first = true;
|
|
@@ -18,18 +17,17 @@ function isNewModule(module) {
|
|
|
18
17
|
}
|
|
19
18
|
</script>
|
|
20
19
|
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
</div>
|
|
20
|
+
<ListBox class="sm:bg-white sm:border">
|
|
21
|
+
{#each items as item}
|
|
22
|
+
{#if isNewModule(item.Module)}<hr class="text-surface-800" />{/if}
|
|
23
|
+
<ListBoxItem
|
|
24
|
+
class="text-md sm:text-sm text-surface-800 py-1 hover:text-secondary-500 bg-transparent hover:bg-surface-200"
|
|
25
|
+
bind:group={item.Title}
|
|
26
|
+
name="medium"
|
|
27
|
+
value={item.Title}
|
|
28
|
+
on:click={() => goTo(item.Url)}
|
|
29
|
+
>
|
|
30
|
+
{item.Title}
|
|
31
|
+
</ListBoxItem>
|
|
32
|
+
{/each}
|
|
33
|
+
</ListBox>
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import type {
|
|
2
|
+
import type { menuItemType } from '../../../models/Page';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
|
|
6
|
-
items: MenuItem[];
|
|
5
|
+
items: menuItemType[];
|
|
7
6
|
};
|
|
8
7
|
events: {
|
|
9
8
|
[evt: string]: CustomEvent<any>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
<script>import { popup } from "@skeletonlabs/skeleton";
|
|
2
|
-
import {
|
|
2
|
+
import { AccordionItem } from "@skeletonlabs/skeleton";
|
|
3
3
|
import Fa from "svelte-fa/src/fa.svelte";
|
|
4
4
|
import { faCog } from "@fortawesome/free-solid-svg-icons";
|
|
5
|
-
import { goTo } from "../../../services/BaseCaller";
|
|
6
5
|
export let menuBar;
|
|
7
6
|
import MenuSublist from "./MenuSublist.svelte";
|
|
8
7
|
let popupCombobox = {
|
|
@@ -13,16 +12,25 @@ let popupCombobox = {
|
|
|
13
12
|
closeQuery: ".listbox-item"
|
|
14
13
|
};
|
|
15
14
|
</script>
|
|
16
|
-
|
|
17
|
-
{#if menuBar}
|
|
18
|
-
<button class="flex items-center gap-x-1 text-sm text-surface-800" use:popup={popupCombobox}>
|
|
19
|
-
<span class="capitalize"><Fa icon={faCog} /></span>
|
|
20
|
-
|
|
21
|
-
</button>
|
|
22
15
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
16
|
+
{#if menuBar}
|
|
17
|
+
<div class="sm:hidden">
|
|
18
|
+
<AccordionItem padding="p-2">
|
|
19
|
+
<svelte:fragment slot="summary"
|
|
20
|
+
><button class="flex items-center gap-x-1 text-sm text-surface-800 w-5 h-full">
|
|
21
|
+
<span class="capitalize"><Fa icon={faCog} /></span>
|
|
22
|
+
</button></svelte:fragment
|
|
23
|
+
>
|
|
24
|
+
<svelte:fragment slot="content"><MenuSublist items={menuBar} /></svelte:fragment>
|
|
25
|
+
</AccordionItem>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="hidden sm:block place-self-center" use:popup={popupCombobox}>
|
|
28
|
+
<button class="flex items-center gap-x-1">
|
|
29
|
+
<div class="hidden sm:block" />
|
|
30
|
+
<span class="capitalize"><Fa icon={faCog} /></span>
|
|
31
|
+
</button>
|
|
32
|
+
<div class="z-50 w-max" data-popup="settings">
|
|
33
|
+
<MenuSublist items={menuBar} />
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
{/if}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import type {
|
|
2
|
+
import type { menuItemType } from '../../../models/Page';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
menuBar:
|
|
5
|
+
menuBar: menuItemType[];
|
|
6
6
|
};
|
|
7
7
|
events: {
|
|
8
8
|
[evt: string]: CustomEvent<any>;
|
package/dist/css/core.ui.postcss
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
/*place global styles here */
|
|
2
|
-
html,
|
|
2
|
+
html,
|
|
3
|
+
body {
|
|
4
|
+
@apply h-full;
|
|
5
|
+
}
|
|
3
6
|
|
|
4
|
-
h1{
|
|
5
|
-
|
|
7
|
+
h1 {
|
|
8
|
+
@apply text-primary-500;
|
|
6
9
|
}
|
|
7
10
|
|
|
8
11
|
:root {
|
|
9
|
-
--background:rgb(var(--color-surface-200))
|
|
10
|
-
|
|
12
|
+
--background: rgb(var(--color-surface-200));
|
|
13
|
+
}
|
|
11
14
|
|
|
12
|
-
|
|
13
|
-
--tw-ring-color
|
|
15
|
+
[type='text']:focus {
|
|
16
|
+
--tw-ring-color: #00000;
|
|
14
17
|
}
|
|
@@ -82,16 +82,15 @@
|
|
|
82
82
|
--color-error-700: 191 0 0; /* ⬅ #bf0000 */
|
|
83
83
|
--color-error-800: 153 0 0; /* ⬅ #990000 */
|
|
84
84
|
--color-error-900: 125 0 0; /* ⬅ #7d0000 */
|
|
85
|
-
/* surface | #c7c7c7 */
|
|
86
|
-
--color-surface-50: 247 247 247; /* ⬅ #f7f7f7 */
|
|
87
|
-
--color-surface-100: 244 244 244; /* ⬅ #f4f4f4 */
|
|
88
|
-
--color-surface-200: 241 241 241; /* ⬅ #f1f1f1 */
|
|
89
|
-
--color-surface-300: 233 233 233; /* ⬅ #e9e9e9 */
|
|
90
|
-
--color-surface-400: 216 216 216; /* ⬅ #d8d8d8 */
|
|
91
|
-
--color-surface-500: 199 199 199; /* ⬅ #c7c7c7 */
|
|
92
|
-
--color-surface-600: 179 179 179; /* ⬅ #b3b3b3 */
|
|
93
|
-
--color-surface-700: 149 149 149; /* ⬅ #959595 */
|
|
94
|
-
--color-surface-800: 119 119 119; /* ⬅ #777777 */
|
|
95
|
-
--color-surface-900: 98 98 98; /* ⬅ #626262 */
|
|
96
|
-
|
|
97
|
-
}
|
|
85
|
+
/* surface | #c7c7c7 */
|
|
86
|
+
--color-surface-50: 247 247 247; /* ⬅ #f7f7f7 */
|
|
87
|
+
--color-surface-100: 244 244 244; /* ⬅ #f4f4f4 */
|
|
88
|
+
--color-surface-200: 241 241 241; /* ⬅ #f1f1f1 */
|
|
89
|
+
--color-surface-300: 233 233 233; /* ⬅ #e9e9e9 */
|
|
90
|
+
--color-surface-400: 216 216 216; /* ⬅ #d8d8d8 */
|
|
91
|
+
--color-surface-500: 199 199 199; /* ⬅ #c7c7c7 */
|
|
92
|
+
--color-surface-600: 179 179 179; /* ⬅ #b3b3b3 */
|
|
93
|
+
--color-surface-700: 149 149 149; /* ⬅ #959595 */
|
|
94
|
+
--color-surface-800: 119 119 119; /* ⬅ #777777 */
|
|
95
|
+
--color-surface-900: 98 98 98; /* ⬅ #626262 */
|
|
96
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import ListView from './components/ListView.svelte';
|
|
2
|
-
import TableView from './TableView.svelte';
|
|
3
1
|
import FileIcon from './components/file/FileIcon.svelte';
|
|
4
2
|
import FileInfo from './components/file/FileInfo.svelte';
|
|
5
3
|
import FileUploader from './components/file/FileUploader.svelte';
|
|
@@ -23,12 +21,12 @@ import { columnFilter, searchFilter } from './components/Table/filter';
|
|
|
23
21
|
import type { TableConfig, Columns, Column } from './models/Models';
|
|
24
22
|
export { Checkbox, CheckboxKVPList, CheckboxList, DateInput, DropdownKVP, MultiSelect, NumberInput, TextArea, TextInput };
|
|
25
23
|
export { FileInfo, FileIcon, FileUploader };
|
|
26
|
-
export {
|
|
24
|
+
export { Spinner, Page, Alert, Menu, ErrorMessage };
|
|
27
25
|
export { Api } from './services/Api.js';
|
|
28
26
|
export { host, username, password, setApiConfig } from './stores/apiStores.js';
|
|
29
|
-
export type { userType, inputType, fileUploaderModel, linkType, listItemType, keyValuePairType } from './models/Models.js';
|
|
27
|
+
export type { userType, inputType, fileUploaderModel, linkType, listItemType, keyValuePairType, fileInfoType, fileReaderInfoType, asciiFileReaderInfoType } from './models/Models.js';
|
|
30
28
|
export { helpStore } from './stores/pageStores';
|
|
31
29
|
export type { helpStoreType, helpItemType } from './models/Models';
|
|
32
|
-
export { positionType, pageContentLayoutType } from './models/Enums';
|
|
30
|
+
export { positionType, pageContentLayoutType, decimalCharacterType, orientationType, textMarkerType, textSeperatorType } from './models/Enums';
|
|
33
31
|
export { Table, TableFilter, columnFilter, searchFilter };
|
|
34
32
|
export type { TableConfig, Columns, Column };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Reexport your entry components here
|
|
2
|
-
import ListView from './components/ListView.svelte';
|
|
3
|
-
import TableView from './TableView.svelte';
|
|
2
|
+
// import ListView from './components/ListView.svelte';
|
|
3
|
+
// import TableView from './TableView.svelte';
|
|
4
4
|
import FileIcon from './components/file/FileIcon.svelte';
|
|
5
5
|
import FileInfo from './components/file/FileInfo.svelte';
|
|
6
6
|
import FileUploader from './components/file/FileUploader.svelte';
|
|
@@ -10,7 +10,7 @@ import Page from './components/page/Page.svelte';
|
|
|
10
10
|
import Alert from './components/page/Alert.svelte';
|
|
11
11
|
import Menu from './components/page/menu/Menu.svelte';
|
|
12
12
|
import ErrorMessage from './components/page/ErrorMessage.svelte';
|
|
13
|
-
// input
|
|
13
|
+
// input
|
|
14
14
|
import Checkbox from './components/form/Checkbox.svelte';
|
|
15
15
|
import CheckboxKVPList from './components/form/CheckboxKvPList.svelte';
|
|
16
16
|
import CheckboxList from './components/form/CheckboxList.svelte';
|
|
@@ -29,13 +29,13 @@ export { Checkbox, CheckboxKVPList, CheckboxList, DateInput, DropdownKVP, MultiS
|
|
|
29
29
|
//File
|
|
30
30
|
export { FileInfo, FileIcon, FileUploader };
|
|
31
31
|
//others
|
|
32
|
-
export {
|
|
32
|
+
export { Spinner, Page, Alert, Menu, ErrorMessage };
|
|
33
33
|
//Api
|
|
34
34
|
export { Api } from './services/Api.js';
|
|
35
35
|
export { host, username, password, setApiConfig } from './stores/apiStores.js';
|
|
36
36
|
//help
|
|
37
37
|
export { helpStore } from './stores/pageStores';
|
|
38
38
|
//enum
|
|
39
|
-
export { positionType, pageContentLayoutType } from './models/Enums';
|
|
39
|
+
export { positionType, pageContentLayoutType, decimalCharacterType, orientationType, textMarkerType, textSeperatorType } from './models/Enums';
|
|
40
40
|
// Table
|
|
41
41
|
export { Table, TableFilter, columnFilter, searchFilter };
|
package/dist/models/Enums.d.ts
CHANGED
|
@@ -7,3 +7,21 @@ export declare enum pageContentLayoutType {
|
|
|
7
7
|
full = "full",
|
|
8
8
|
center = "center"
|
|
9
9
|
}
|
|
10
|
+
export declare enum decimalCharacterType {
|
|
11
|
+
point = 0,
|
|
12
|
+
comma = 1
|
|
13
|
+
}
|
|
14
|
+
export declare enum orientationType {
|
|
15
|
+
columnwise = 0,
|
|
16
|
+
rowwise = 1
|
|
17
|
+
}
|
|
18
|
+
export declare enum textSeperatorType {
|
|
19
|
+
tab = 9,
|
|
20
|
+
comma = 44,
|
|
21
|
+
semicolon = 59,
|
|
22
|
+
space = 32
|
|
23
|
+
}
|
|
24
|
+
export declare enum textMarkerType {
|
|
25
|
+
quotes = 0,
|
|
26
|
+
doubleQuotes = 1
|
|
27
|
+
}
|
package/dist/models/Enums.js
CHANGED
|
@@ -9,3 +9,25 @@ export var pageContentLayoutType;
|
|
|
9
9
|
pageContentLayoutType["full"] = "full";
|
|
10
10
|
pageContentLayoutType["center"] = "center";
|
|
11
11
|
})(pageContentLayoutType || (pageContentLayoutType = {}));
|
|
12
|
+
export var decimalCharacterType;
|
|
13
|
+
(function (decimalCharacterType) {
|
|
14
|
+
decimalCharacterType[decimalCharacterType["point"] = 0] = "point";
|
|
15
|
+
decimalCharacterType[decimalCharacterType["comma"] = 1] = "comma";
|
|
16
|
+
})(decimalCharacterType || (decimalCharacterType = {}));
|
|
17
|
+
export var orientationType;
|
|
18
|
+
(function (orientationType) {
|
|
19
|
+
orientationType[orientationType["columnwise"] = 0] = "columnwise";
|
|
20
|
+
orientationType[orientationType["rowwise"] = 1] = "rowwise";
|
|
21
|
+
})(orientationType || (orientationType = {}));
|
|
22
|
+
export var textSeperatorType;
|
|
23
|
+
(function (textSeperatorType) {
|
|
24
|
+
textSeperatorType[textSeperatorType["tab"] = 9] = "tab";
|
|
25
|
+
textSeperatorType[textSeperatorType["comma"] = 44] = "comma";
|
|
26
|
+
textSeperatorType[textSeperatorType["semicolon"] = 59] = "semicolon";
|
|
27
|
+
textSeperatorType[textSeperatorType["space"] = 32] = "space";
|
|
28
|
+
})(textSeperatorType || (textSeperatorType = {}));
|
|
29
|
+
export var textMarkerType;
|
|
30
|
+
(function (textMarkerType) {
|
|
31
|
+
textMarkerType[textMarkerType["quotes"] = 0] = "quotes";
|
|
32
|
+
textMarkerType[textMarkerType["doubleQuotes"] = 1] = "doubleQuotes";
|
|
33
|
+
})(textMarkerType || (textMarkerType = {}));
|
package/dist/models/Models.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { SvelteComponent } from 'svelte';
|
|
2
2
|
import type { ColumnFilterFn } from 'svelte-headless-table/lib/plugins';
|
|
3
3
|
import type { Writable } from 'svelte/store';
|
|
4
|
+
import { decimalCharacterType, orientationType, textMarkerType, textSeperatorType } from './Enums';
|
|
4
5
|
export interface linkType {
|
|
5
6
|
label: string;
|
|
6
7
|
url: string;
|
|
@@ -28,6 +29,23 @@ export interface fileUploaderModel {
|
|
|
28
29
|
multiple: boolean;
|
|
29
30
|
maxSize: number;
|
|
30
31
|
lastModification: Date;
|
|
32
|
+
allFilesReadable: boolean;
|
|
33
|
+
asciiFileReaderInfo: asciiFileReaderInfoType;
|
|
34
|
+
}
|
|
35
|
+
export interface asciiFileReaderInfoType extends fileReaderInfoType {
|
|
36
|
+
cells: boolean[];
|
|
37
|
+
seperator: textSeperatorType;
|
|
38
|
+
textMarker: textMarkerType;
|
|
39
|
+
}
|
|
40
|
+
export interface fileReaderInfoType {
|
|
41
|
+
decimal: decimalCharacterType;
|
|
42
|
+
orientation: orientationType;
|
|
43
|
+
offset: number;
|
|
44
|
+
variables: number;
|
|
45
|
+
data: number;
|
|
46
|
+
unit: number;
|
|
47
|
+
description: number;
|
|
48
|
+
dateformat: string;
|
|
31
49
|
}
|
|
32
50
|
export interface filesType {
|
|
33
51
|
accepted: Blob[];
|
package/dist/models/Models.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
;
|
|
2
|
-
export {};
|
|
1
|
+
import { decimalCharacterType, orientationType, textMarkerType, textSeperatorType } from './Enums';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/********************************** */
|
|
2
|
+
export interface breadcrumbItemType {
|
|
3
|
+
label: string;
|
|
4
|
+
link: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class BreadcrumbModel {
|
|
7
|
+
items: breadcrumbItemType[];
|
|
8
|
+
constructor();
|
|
9
|
+
}
|
|
10
|
+
/********************************** */
|
|
11
|
+
export declare class MenuModel {
|
|
12
|
+
Logo: logoType;
|
|
13
|
+
LaunchBar: menuItemType[];
|
|
14
|
+
MenuBar: menuItemType[];
|
|
15
|
+
AccountBar: menuItemType[];
|
|
16
|
+
Settings: menuItemType[];
|
|
17
|
+
Extended: menuItemType[];
|
|
18
|
+
}
|
|
19
|
+
export interface menuItemType {
|
|
20
|
+
Title: string;
|
|
21
|
+
Url: string;
|
|
22
|
+
Target: string;
|
|
23
|
+
Module: string;
|
|
24
|
+
Items: menuItemType[];
|
|
25
|
+
}
|
|
26
|
+
export interface logoType {
|
|
27
|
+
Mime: string;
|
|
28
|
+
Name: string;
|
|
29
|
+
Data: string;
|
|
30
|
+
Height: number;
|
|
31
|
+
}
|
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
// Implementations for all the calls for the pokemon endpoints.
|
|
2
|
-
//import Api from "./Api";
|
|
3
|
-
import { host } from
|
|
4
|
-
|
|
5
|
-
// go to a internal action
|
|
6
|
-
export const goTo = async (url,intern=true) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
// Implementations for all the calls for the pokemon endpoints.
|
|
2
|
+
//import Api from "./Api";
|
|
3
|
+
import { host } from '../stores/apiStores';
|
|
4
|
+
|
|
5
|
+
// go to a internal action
|
|
6
|
+
export const goTo = async (url, intern = true) => {
|
|
7
|
+
if (intern == true) {
|
|
8
|
+
// go to inside bexis2
|
|
9
|
+
if (window != null && host != null && url != null) {
|
|
10
|
+
window.open(host + url, '_self')?.focus();
|
|
11
|
+
}
|
|
12
|
+
} // go to a external page
|
|
13
|
+
else {
|
|
14
|
+
window.open(url, '_blank')?.focus();
|
|
15
|
+
}
|
|
16
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { helpItemType, helpStoreType } from
|
|
2
|
-
import type { breadcrumbItemType } from
|
|
3
|
-
import { BreadcrumbModel } from
|
|
1
|
+
import type { helpItemType, helpStoreType } from '../models/Models';
|
|
2
|
+
import type { MenuModel, breadcrumbItemType } from '../models/Page';
|
|
3
|
+
import { BreadcrumbModel } from '../models/Page';
|
|
4
4
|
export declare const helpStore: {
|
|
5
5
|
subscribe: (this: void, run: import("svelte/store").Subscriber<helpStoreType>, invalidate?: ((value?: helpStoreType | undefined) => void) | undefined) => import("svelte/store").Unsubscriber;
|
|
6
6
|
set: (this: void, value: helpStoreType) => void;
|
|
@@ -15,7 +15,7 @@ export declare const helpStore: {
|
|
|
15
15
|
reset: () => void;
|
|
16
16
|
clear: () => void;
|
|
17
17
|
};
|
|
18
|
-
export declare const menuStore: import("svelte/store").Writable<
|
|
18
|
+
export declare const menuStore: import("svelte/store").Writable<MenuModel>;
|
|
19
19
|
export declare const breadcrumbStore: {
|
|
20
20
|
subscribe: (this: void, run: import("svelte/store").Subscriber<BreadcrumbModel>, invalidate?: ((value?: BreadcrumbModel | undefined) => void) | undefined) => import("svelte/store").Unsubscriber;
|
|
21
21
|
set: (this: void, value: BreadcrumbModel) => void;
|