@bexis2/bexis2-core-ui 0.1.4 → 0.1.6
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 +148 -127
- package/dist/components/Table/Table.svelte +16 -11
- package/dist/components/Table/TableFilter.svelte +1 -1
- package/dist/components/file/FileUploader.svelte +34 -42
- package/dist/components/form/DropdownKvP.svelte +3 -3
- package/dist/components/form/DropdownKvP.svelte.d.ts +2 -2
- package/dist/components/form/MultiSelect.svelte +23 -23
- package/dist/components/form/MultiSelect.svelte.d.ts +6 -6
- package/dist/models/Models.d.ts +1 -0
- package/dist/stores/apistore.js +2 -2
- package/package.json +2 -2
- package/src/lib/components/Table/Table.svelte +22 -12
- package/src/lib/components/Table/TableFilter.svelte +1 -1
- package/src/lib/components/file/FileUploader.svelte +184 -184
- package/src/lib/components/form/DropdownKvP.svelte +3 -3
- package/src/lib/components/form/MultiSelect.svelte +23 -23
- package/src/lib/models/Models.ts +11 -13
- package/src/lib/stores/apistore.ts +32 -31
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import { writable } from 'svelte/store';
|
|
2
|
-
|
|
3
|
-
export let host = 'window.location.origin';
|
|
4
|
-
export let username = '';
|
|
5
|
-
export let password = '';
|
|
6
|
-
|
|
7
|
-
const hostStore = writable(''); //writable(window.location.origin);
|
|
8
|
-
const usernameStore = writable('');
|
|
9
|
-
const passwordStore = writable('');
|
|
10
|
-
|
|
11
|
-
hostStore.subscribe((value) => {
|
|
12
|
-
host = value;
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
usernameStore.subscribe((value) => {
|
|
16
|
-
username = value;
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
passwordStore.subscribe((value) => {
|
|
20
|
-
password = value;
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
export function setApiConfig(_host: string, _user: string, _pw: string) {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
import { writable } from 'svelte/store';
|
|
2
|
+
|
|
3
|
+
export let host = 'window.location.origin';
|
|
4
|
+
export let username = '';
|
|
5
|
+
export let password = '';
|
|
6
|
+
|
|
7
|
+
const hostStore = writable(''); //writable(window.location.origin);
|
|
8
|
+
const usernameStore = writable('');
|
|
9
|
+
const passwordStore = writable('');
|
|
10
|
+
|
|
11
|
+
hostStore.subscribe((value) => {
|
|
12
|
+
host = value;
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
usernameStore.subscribe((value) => {
|
|
16
|
+
username = value;
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
passwordStore.subscribe((value) => {
|
|
20
|
+
password = value;
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
export function setApiConfig(_host: string, _user: string, _pw: string) {
|
|
24
|
+
|
|
25
|
+
console.log('overwrite api settings');
|
|
26
|
+
|
|
27
|
+
hostStore.update((h) => (h = _host));
|
|
28
|
+
usernameStore.update((u) => (u = _user));
|
|
29
|
+
passwordStore.update((p) => (p = _pw));
|
|
30
|
+
|
|
31
|
+
//console.log('overwrite host',_host);
|
|
32
|
+
}
|