@bexis2/bexis2-core-ui 0.0.27 → 0.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist/components/page/Page.svelte +23 -3
- package/dist/components/page/Page.svelte.d.ts +10 -15
- package/dist/css/core.ui.postcss +10 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4 -1
- package/dist/models/Models.d.ts +4 -0
- package/package.json +3 -3
- package/src/lib/components/page/Page.svelte +28 -3
- package/src/lib/css/core.ui.postcss +10 -0
- package/src/lib/index.ts +4 -1
- package/src/lib/models/Models.ts +8 -0
- package/dist/css/core.ui.css +0 -5
- package/src/lib/css/core.ui.css +0 -5
package/README.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
<script>export let title = "";
|
|
2
|
+
export let note = "";
|
|
3
|
+
export let links = [];
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
<div class="px-5 grid gap-5" >
|
|
7
|
+
<h1>{title}</h1>
|
|
8
|
+
{#if note}
|
|
9
|
+
<blockquote class="blockquote">{note}</blockquote>
|
|
10
|
+
{/if}
|
|
11
|
+
|
|
12
|
+
<slot name="description" />
|
|
13
|
+
|
|
14
|
+
{#if links.length>0}
|
|
15
|
+
<div class="py-5">
|
|
16
|
+
{#each links as link}
|
|
17
|
+
<a class="chip variant-ringed" href={link.url}>{link.label}</a>
|
|
18
|
+
{/each}
|
|
19
|
+
</div>
|
|
20
|
+
{/if}
|
|
21
|
+
<slot/>
|
|
22
|
+
</div>
|
|
23
|
+
|
|
@@ -1,27 +1,22 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} PageProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} PageEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} PageSlots */
|
|
4
|
-
export default class Page extends SvelteComponentTyped<{
|
|
5
|
-
[x: string]: never;
|
|
6
|
-
}, {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
}, {
|
|
9
|
-
default: {};
|
|
10
|
-
}> {
|
|
11
|
-
}
|
|
12
|
-
export type PageProps = typeof __propDef.props;
|
|
13
|
-
export type PageEvents = typeof __propDef.events;
|
|
14
|
-
export type PageSlots = typeof __propDef.slots;
|
|
15
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { Link } from "../../models/Models";
|
|
16
3
|
declare const __propDef: {
|
|
17
4
|
props: {
|
|
18
|
-
|
|
5
|
+
title?: string | undefined;
|
|
6
|
+
note?: string | undefined;
|
|
7
|
+
links?: Link[] | undefined;
|
|
19
8
|
};
|
|
20
9
|
events: {
|
|
21
10
|
[evt: string]: CustomEvent<any>;
|
|
22
11
|
};
|
|
23
12
|
slots: {
|
|
13
|
+
description: {};
|
|
24
14
|
default: {};
|
|
25
15
|
};
|
|
26
16
|
};
|
|
17
|
+
export type PageProps = typeof __propDef.props;
|
|
18
|
+
export type PageEvents = typeof __propDef.events;
|
|
19
|
+
export type PageSlots = typeof __propDef.slots;
|
|
20
|
+
export default class Page extends SvelteComponentTyped<PageProps, PageEvents, PageSlots> {
|
|
21
|
+
}
|
|
27
22
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import FileIcon from './components/file/FileIcon.svelte';
|
|
|
4
4
|
import FileInfo from './components/file/FileInfo.svelte';
|
|
5
5
|
import FileUploader from './components/file/FileUploader.svelte';
|
|
6
6
|
import Spinner from './components/spinner/Spinner.svelte';
|
|
7
|
+
import Page from './components/page/Page.svelte';
|
|
7
8
|
import Checkbox from './components/form/Checkbox.svelte';
|
|
8
9
|
import CheckboxKVPList from './components/form/CheckboxKvPList.svelte';
|
|
9
10
|
import CheckboxList from './components/form/CheckboxList.svelte';
|
|
@@ -19,7 +20,7 @@ import { columnFilter, searchFilter } from './components/Table/filter';
|
|
|
19
20
|
import type { TableConfig, Columns, Column } from './models/Models';
|
|
20
21
|
export { Checkbox, CheckboxKVPList, CheckboxList, DateInput, DropdownKVP, MultiSelect, NumberInput, TextArea, TextInput };
|
|
21
22
|
export { FileInfo, FileIcon, FileUploader };
|
|
22
|
-
export { ListView, TableView, Spinner };
|
|
23
|
+
export { ListView, TableView, Spinner, Page };
|
|
23
24
|
export { Api } from './services/Api.js';
|
|
24
25
|
export { host, username, password, setApiConfig } from './stores/apistore.js';
|
|
25
26
|
export type { user, Input, FileUploaderModel } from './models/Models.js';
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,10 @@ 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';
|
|
7
|
+
//page
|
|
7
8
|
import Spinner from './components/spinner/Spinner.svelte';
|
|
9
|
+
import Page from './components/page/Page.svelte';
|
|
10
|
+
// input
|
|
8
11
|
import Checkbox from './components/form/Checkbox.svelte';
|
|
9
12
|
import CheckboxKVPList from './components/form/CheckboxKvPList.svelte';
|
|
10
13
|
import CheckboxList from './components/form/CheckboxList.svelte';
|
|
@@ -22,7 +25,7 @@ export { Checkbox, CheckboxKVPList, CheckboxList, DateInput, DropdownKVP, MultiS
|
|
|
22
25
|
//File
|
|
23
26
|
export { FileInfo, FileIcon, FileUploader };
|
|
24
27
|
//others
|
|
25
|
-
export { ListView, TableView, Spinner };
|
|
28
|
+
export { ListView, TableView, Spinner, Page };
|
|
26
29
|
//Api
|
|
27
30
|
export { Api } from './services/Api.js';
|
|
28
31
|
export { host, username, password, setApiConfig } from './stores/apistore.js';
|
package/dist/models/Models.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
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
|
+
export interface Link {
|
|
5
|
+
label: string;
|
|
6
|
+
url: string;
|
|
7
|
+
}
|
|
4
8
|
export interface Input {
|
|
5
9
|
id: string;
|
|
6
10
|
label: string;
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bexis2/bexis2-core-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.28",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
|
-
"dev": "vite dev
|
|
6
|
+
"dev": "vite dev",
|
|
7
7
|
"package": "svelte-package --watch",
|
|
8
8
|
"build": "vite build",
|
|
9
9
|
"build package": "svelte-kit sync && svelte-package --watch",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@playwright/test": "^1.28.1",
|
|
23
|
-
"@skeletonlabs/skeleton": "^1.
|
|
23
|
+
"@skeletonlabs/skeleton": "^1.6.0",
|
|
24
24
|
"@sveltejs/adapter-auto": "^2.0.0",
|
|
25
25
|
"@sveltejs/adapter-static": "^2.0.2",
|
|
26
26
|
"@sveltejs/kit": "^1.5.0",
|
|
@@ -1,3 +1,28 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
|
|
3
|
+
import type { Link } from "$lib/models/Models";
|
|
4
|
+
|
|
5
|
+
export let title = "";
|
|
6
|
+
export let note = "";
|
|
7
|
+
export let links:Link[]=[];
|
|
8
|
+
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<div class="px-5 grid gap-5" >
|
|
12
|
+
<h1>{title}</h1>
|
|
13
|
+
{#if note}
|
|
14
|
+
<blockquote class="blockquote">{note}</blockquote>
|
|
15
|
+
{/if}
|
|
16
|
+
|
|
17
|
+
<slot name="description" />
|
|
18
|
+
|
|
19
|
+
{#if links.length>0}
|
|
20
|
+
<div class="py-5">
|
|
21
|
+
{#each links as link}
|
|
22
|
+
<a class="chip variant-ringed" href={link.url}>{link.label}</a>
|
|
23
|
+
{/each}
|
|
24
|
+
</div>
|
|
25
|
+
{/if}
|
|
26
|
+
<slot/>
|
|
27
|
+
</div>
|
|
28
|
+
|
package/src/lib/index.ts
CHANGED
|
@@ -6,8 +6,11 @@ import FileIcon from './components/file/FileIcon.svelte';
|
|
|
6
6
|
import FileInfo from './components/file/FileInfo.svelte';
|
|
7
7
|
import FileUploader from './components/file/FileUploader.svelte';
|
|
8
8
|
|
|
9
|
+
//page
|
|
9
10
|
import Spinner from './components/spinner/Spinner.svelte';
|
|
11
|
+
import Page from './components/page/Page.svelte';
|
|
10
12
|
|
|
13
|
+
// input
|
|
11
14
|
import Checkbox from './components/form/Checkbox.svelte';
|
|
12
15
|
import CheckboxKVPList from './components/form/CheckboxKvPList.svelte';
|
|
13
16
|
import CheckboxList from './components/form/CheckboxList.svelte';
|
|
@@ -40,7 +43,7 @@ export {
|
|
|
40
43
|
export { FileInfo, FileIcon, FileUploader };
|
|
41
44
|
|
|
42
45
|
//others
|
|
43
|
-
export { ListView, TableView, Spinner };
|
|
46
|
+
export { ListView, TableView, Spinner, Page };
|
|
44
47
|
|
|
45
48
|
//Api
|
|
46
49
|
export { Api } from './services/Api.js';
|
package/src/lib/models/Models.ts
CHANGED
|
@@ -2,6 +2,14 @@ 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
4
|
|
|
5
|
+
// page
|
|
6
|
+
export interface Link
|
|
7
|
+
{
|
|
8
|
+
label:string,
|
|
9
|
+
url:string
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// Form
|
|
5
13
|
export interface Input {
|
|
6
14
|
id: string;
|
|
7
15
|
label: string;
|
package/dist/css/core.ui.css
DELETED