@bexis2/bexis2-core-ui 0.0.3 → 0.0.4
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/.eslintignore +13 -0
- package/.eslintrc.cjs +20 -0
- package/.prettierignore +13 -0
- package/.prettierrc +9 -0
- package/.vscode/settings.json +99 -0
- package/{TableView.svelte.d.ts → dist/TableView.svelte.d.ts} +23 -23
- package/{components → dist/components}/File/FileIcon.svelte.d.ts +23 -23
- package/{components → dist/components}/File/FileInfo.svelte.d.ts +27 -27
- package/dist/components/File/FileUploader.svelte +217 -0
- package/{components → dist/components}/File/FileUploader.svelte.d.ts +44 -27
- package/{components → dist/components}/ListView.svelte.d.ts +14 -14
- package/dist/components/Spinner/Spinner.svelte +8 -0
- package/dist/components/Spinner/Spinner.svelte.d.ts +23 -0
- package/{index.d.ts → dist/index.d.ts} +9 -9
- package/{index.js → dist/index.js} +9 -9
- package/{models → dist/models}/Models.d.ts +31 -31
- package/{models → dist/models}/Models.js +1 -1
- package/{services → dist/services}/Api.d.ts +7 -7
- package/{services → dist/services}/Api.js +44 -44
- package/{stores → dist/stores}/apistore.d.ts +4 -4
- package/{stores → dist/stores}/apistore.js +22 -22
- package/package.json +36 -168
- package/playwright.config.ts +11 -0
- package/postcss.config.cjs +6 -0
- package/src/app.d.ts +11 -0
- package/src/app.html +15 -0
- package/src/app.postcss +2 -0
- package/src/index.test.ts +7 -0
- package/src/lib/TableView.svelte +1 -0
- package/src/lib/components/File/FileIcon.svelte +49 -0
- package/src/lib/components/File/FileInfo.svelte +14 -0
- package/src/lib/components/File/FileUploader.svelte +217 -0
- package/src/lib/components/ListView.svelte +13 -0
- package/src/lib/components/Spinner/Spinner.svelte +8 -0
- package/src/lib/css/core.ui.postcss +2 -0
- package/src/lib/css/themes/theme-crimson.css +100 -0
- package/src/lib/css/themes/theme-gold-nouveau.css +140 -0
- package/src/lib/css/themes/theme-hamlindigo.css +111 -0
- package/src/lib/css/themes/theme-modern.css +127 -0
- package/src/lib/css/themes/theme-rocket.css +119 -0
- package/src/lib/css/themes/theme-sahara.css +128 -0
- package/src/lib/css/themes/theme-seafoam.css +121 -0
- package/src/lib/css/themes/theme-seasonal.css +115 -0
- package/src/lib/css/themes/theme-skeleton.css +118 -0
- package/src/lib/css/themes/theme-vintage.css +125 -0
- package/src/lib/index.ts +19 -0
- package/src/lib/models/Models.ts +39 -0
- package/src/lib/services/Api.ts +58 -0
- package/src/lib/stores/apistore.ts +32 -0
- package/src/routes/+layout.svelte +10 -0
- package/src/routes/+page.svelte +0 -0
- package/static/favicon.png +0 -0
- package/svelte.config.js +18 -0
- package/tailwind.config.cjs +9 -0
- package/tests/test.ts +6 -0
- package/tsconfig.json +19 -0
- package/vite.config.ts +9 -0
- package/components/File/FileUploader.svelte +0 -135
- /package/{TableView.svelte → dist/TableView.svelte} +0 -0
- /package/{components → dist/components}/File/FileIcon.svelte +0 -0
- /package/{components → dist/components}/File/FileInfo.svelte +0 -0
- /package/{components → dist/components}/ListView.svelte +0 -0
- /package/{css → dist/css}/core.ui.postcss +0 -0
- /package/{css → dist/css}/themes/theme-crimson.css +0 -0
- /package/{css → dist/css}/themes/theme-gold-nouveau.css +0 -0
- /package/{css → dist/css}/themes/theme-hamlindigo.css +0 -0
- /package/{css → dist/css}/themes/theme-modern.css +0 -0
- /package/{css → dist/css}/themes/theme-rocket.css +0 -0
- /package/{css → dist/css}/themes/theme-sahara.css +0 -0
- /package/{css → dist/css}/themes/theme-seafoam.css +0 -0
- /package/{css → dist/css}/themes/theme-seasonal.css +0 -0
- /package/{css → dist/css}/themes/theme-skeleton.css +0 -0
- /package/{css → dist/css}/themes/theme-vintage.css +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// Reexport your entry components here
|
|
2
|
-
import ListView from './components/ListView.svelte';
|
|
3
|
-
import TableView from './TableView.svelte';
|
|
4
|
-
import FileIcon from './components/File/FileIcon.svelte';
|
|
5
|
-
import FileInfo from './components/File/FileInfo.svelte';
|
|
6
|
-
import FileUploader from './components/File/FileUploader.svelte';
|
|
7
|
-
export { ListView, TableView, FileInfo, FileIcon, FileUploader };
|
|
8
|
-
export { Api } from './services/Api.js';
|
|
9
|
-
export { host, username, password, setApiConfig } from './stores/apistore.js';
|
|
1
|
+
// Reexport your entry components here
|
|
2
|
+
import ListView from './components/ListView.svelte';
|
|
3
|
+
import TableView from './TableView.svelte';
|
|
4
|
+
import FileIcon from './components/File/FileIcon.svelte';
|
|
5
|
+
import FileInfo from './components/File/FileInfo.svelte';
|
|
6
|
+
import FileUploader from './components/File/FileUploader.svelte';
|
|
7
|
+
export { ListView, TableView, FileInfo, FileIcon, FileUploader };
|
|
8
|
+
export { Api } from './services/Api.js';
|
|
9
|
+
export { host, username, password, setApiConfig } from './stores/apistore.js';
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
export interface FileInfo {
|
|
2
|
-
name: string;
|
|
3
|
-
type: string;
|
|
4
|
-
lenght: number;
|
|
5
|
-
description: string;
|
|
6
|
-
validationHash: string;
|
|
7
|
-
}
|
|
8
|
-
export interface FileUploaderModel {
|
|
9
|
-
accept: string[];
|
|
10
|
-
existingFiles: FileInfo[];
|
|
11
|
-
descriptionType: number;
|
|
12
|
-
multiple: boolean;
|
|
13
|
-
maxSize: number;
|
|
14
|
-
lastModification: Date;
|
|
15
|
-
}
|
|
16
|
-
export interface Files {
|
|
17
|
-
accepted: Blob[];
|
|
18
|
-
rejected: Blob[];
|
|
19
|
-
}
|
|
20
|
-
export type user = {
|
|
21
|
-
name: string;
|
|
22
|
-
};
|
|
23
|
-
export interface FileObj {
|
|
24
|
-
path: string;
|
|
25
|
-
lastModified: number;
|
|
26
|
-
lastModifiedDate: Date;
|
|
27
|
-
name: string;
|
|
28
|
-
size: number;
|
|
29
|
-
type: string;
|
|
30
|
-
webkitRelativePath: string;
|
|
31
|
-
}
|
|
1
|
+
export interface FileInfo {
|
|
2
|
+
name: string;
|
|
3
|
+
type: string;
|
|
4
|
+
lenght: number;
|
|
5
|
+
description: string;
|
|
6
|
+
validationHash: string;
|
|
7
|
+
}
|
|
8
|
+
export interface FileUploaderModel {
|
|
9
|
+
accept: string[];
|
|
10
|
+
existingFiles: FileInfo[];
|
|
11
|
+
descriptionType: number;
|
|
12
|
+
multiple: boolean;
|
|
13
|
+
maxSize: number;
|
|
14
|
+
lastModification: Date;
|
|
15
|
+
}
|
|
16
|
+
export interface Files {
|
|
17
|
+
accepted: Blob[];
|
|
18
|
+
rejected: Blob[];
|
|
19
|
+
}
|
|
20
|
+
export type user = {
|
|
21
|
+
name: string;
|
|
22
|
+
};
|
|
23
|
+
export interface FileObj {
|
|
24
|
+
path: string;
|
|
25
|
+
lastModified: number;
|
|
26
|
+
lastModifiedDate: Date;
|
|
27
|
+
name: string;
|
|
28
|
+
size: number;
|
|
29
|
+
type: string;
|
|
30
|
+
webkitRelativePath: string;
|
|
31
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const Api: {
|
|
2
|
-
get: (url: any, request?: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
3
|
-
delete: (url: any, request: any) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
4
|
-
post: (url: any, request: any) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
5
|
-
put: (url: any, request: any) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
6
|
-
patch: (url: any, request: any) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
7
|
-
};
|
|
1
|
+
export declare const Api: {
|
|
2
|
+
get: (url: any, request?: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
3
|
+
delete: (url: any, request: any) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
4
|
+
post: (url: any, request: any) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
5
|
+
put: (url: any, request: any) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
6
|
+
patch: (url: any, request: any) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
7
|
+
};
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
// Api.js
|
|
2
|
-
import axios from "axios";
|
|
3
|
-
import { host, username, password } from "../stores/apistore";
|
|
4
|
-
console.log("setup axios");
|
|
5
|
-
// implement a method to execute all the request from here.
|
|
6
|
-
const apiRequest = (method, url, request) => {
|
|
7
|
-
// Create a instance of axios to use the same base url.
|
|
8
|
-
const axiosAPI = axios.create({
|
|
9
|
-
baseURL: host
|
|
10
|
-
});
|
|
11
|
-
const headers = {
|
|
12
|
-
authorization: 'Basic ' + btoa(username + ":" + password)
|
|
13
|
-
};
|
|
14
|
-
//using the axios instance to perform the request that received from each http method
|
|
15
|
-
return axiosAPI({
|
|
16
|
-
method,
|
|
17
|
-
url,
|
|
18
|
-
data: request,
|
|
19
|
-
headers
|
|
20
|
-
}).then(res => {
|
|
21
|
-
return Promise.resolve(res);
|
|
22
|
-
})
|
|
23
|
-
.catch(err => {
|
|
24
|
-
return Promise.reject(err);
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
// function to execute the http get request
|
|
28
|
-
const get = (url, request = "") => apiRequest("get", url, request);
|
|
29
|
-
// function to execute the http delete request
|
|
30
|
-
const deleteRequest = (url, request) => apiRequest("delete", url, request);
|
|
31
|
-
// function to execute the http post request
|
|
32
|
-
const post = (url, request) => apiRequest("post", url, request);
|
|
33
|
-
// function to execute the http put request
|
|
34
|
-
const put = (url, request) => apiRequest("put", url, request);
|
|
35
|
-
// function to execute the http path request
|
|
36
|
-
const patch = (url, request) => apiRequest("patch", url, request);
|
|
37
|
-
// expose your method to other services or actions
|
|
38
|
-
export const Api = {
|
|
39
|
-
get,
|
|
40
|
-
delete: deleteRequest,
|
|
41
|
-
post,
|
|
42
|
-
put,
|
|
43
|
-
patch
|
|
44
|
-
};
|
|
1
|
+
// Api.js
|
|
2
|
+
import axios from "axios";
|
|
3
|
+
import { host, username, password } from "../stores/apistore";
|
|
4
|
+
console.log("setup axios");
|
|
5
|
+
// implement a method to execute all the request from here.
|
|
6
|
+
const apiRequest = (method, url, request) => {
|
|
7
|
+
// Create a instance of axios to use the same base url.
|
|
8
|
+
const axiosAPI = axios.create({
|
|
9
|
+
baseURL: host
|
|
10
|
+
});
|
|
11
|
+
const headers = {
|
|
12
|
+
authorization: 'Basic ' + btoa(username + ":" + password)
|
|
13
|
+
};
|
|
14
|
+
//using the axios instance to perform the request that received from each http method
|
|
15
|
+
return axiosAPI({
|
|
16
|
+
method,
|
|
17
|
+
url,
|
|
18
|
+
data: request,
|
|
19
|
+
headers
|
|
20
|
+
}).then(res => {
|
|
21
|
+
return Promise.resolve(res);
|
|
22
|
+
})
|
|
23
|
+
.catch(err => {
|
|
24
|
+
return Promise.reject(err);
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
// function to execute the http get request
|
|
28
|
+
const get = (url, request = "") => apiRequest("get", url, request);
|
|
29
|
+
// function to execute the http delete request
|
|
30
|
+
const deleteRequest = (url, request) => apiRequest("delete", url, request);
|
|
31
|
+
// function to execute the http post request
|
|
32
|
+
const post = (url, request) => apiRequest("post", url, request);
|
|
33
|
+
// function to execute the http put request
|
|
34
|
+
const put = (url, request) => apiRequest("put", url, request);
|
|
35
|
+
// function to execute the http path request
|
|
36
|
+
const patch = (url, request) => apiRequest("patch", url, request);
|
|
37
|
+
// expose your method to other services or actions
|
|
38
|
+
export const Api = {
|
|
39
|
+
get,
|
|
40
|
+
delete: deleteRequest,
|
|
41
|
+
post,
|
|
42
|
+
put,
|
|
43
|
+
patch
|
|
44
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare let host: string;
|
|
2
|
-
export declare let username: string;
|
|
3
|
-
export declare let password: string;
|
|
4
|
-
export declare function setApiConfig(_host: string, _user: string, _pw: string): void;
|
|
1
|
+
export declare let host: string;
|
|
2
|
+
export declare let username: string;
|
|
3
|
+
export declare let password: string;
|
|
4
|
+
export declare function setApiConfig(_host: string, _user: string, _pw: string): void;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { writable } from 'svelte/store';
|
|
2
|
-
export let host = "window.location.origin";
|
|
3
|
-
export let username = "";
|
|
4
|
-
export let password = "";
|
|
5
|
-
const hostStore = writable(""); //writable(window.location.origin);
|
|
6
|
-
const usernameStore = writable("");
|
|
7
|
-
const passwordStore = writable("");
|
|
8
|
-
hostStore.subscribe(value => {
|
|
9
|
-
host = value;
|
|
10
|
-
});
|
|
11
|
-
usernameStore.subscribe(value => {
|
|
12
|
-
username = value;
|
|
13
|
-
});
|
|
14
|
-
passwordStore.subscribe(value => {
|
|
15
|
-
password = value;
|
|
16
|
-
});
|
|
17
|
-
export function setApiConfig(_host, _user, _pw) {
|
|
18
|
-
console.log("overwrite settings");
|
|
19
|
-
hostStore.update(h => h = _host);
|
|
20
|
-
usernameStore.update(u => u = _user);
|
|
21
|
-
passwordStore.update(p => p = _pw);
|
|
22
|
-
}
|
|
1
|
+
import { writable } from 'svelte/store';
|
|
2
|
+
export let host = "window.location.origin";
|
|
3
|
+
export let username = "";
|
|
4
|
+
export let password = "";
|
|
5
|
+
const hostStore = writable(""); //writable(window.location.origin);
|
|
6
|
+
const usernameStore = writable("");
|
|
7
|
+
const passwordStore = writable("");
|
|
8
|
+
hostStore.subscribe(value => {
|
|
9
|
+
host = value;
|
|
10
|
+
});
|
|
11
|
+
usernameStore.subscribe(value => {
|
|
12
|
+
username = value;
|
|
13
|
+
});
|
|
14
|
+
passwordStore.subscribe(value => {
|
|
15
|
+
password = value;
|
|
16
|
+
});
|
|
17
|
+
export function setApiConfig(_host, _user, _pw) {
|
|
18
|
+
console.log("overwrite settings");
|
|
19
|
+
hostStore.update(h => h = _host);
|
|
20
|
+
usernameStore.update(u => u = _user);
|
|
21
|
+
passwordStore.update(p => p = _pw);
|
|
22
|
+
}
|
package/package.json
CHANGED
|
@@ -1,24 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bexis2/bexis2-core-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"private": false,
|
|
5
|
+
"scripts": {
|
|
6
|
+
"dev": "vite dev",
|
|
7
|
+
"package": "svelte-package `./package/`",
|
|
8
|
+
"build": "vite build sync --watch",
|
|
9
|
+
"preview": "vite preview",
|
|
10
|
+
"test": "playwright test",
|
|
11
|
+
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
12
|
+
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
13
|
+
"test:unit": "vitest",
|
|
14
|
+
"lint": "prettier --plugin-search-dir . --check . && eslint .",
|
|
15
|
+
"format": "prettier --plugin-search-dir . --write .",
|
|
16
|
+
"init": "npm init --scope bexis2",
|
|
17
|
+
"link": "npm link",
|
|
18
|
+
"publish": "npm publish --access public"
|
|
19
|
+
},
|
|
5
20
|
"devDependencies": {
|
|
6
21
|
"@playwright/test": "^1.28.1",
|
|
7
|
-
"@
|
|
8
|
-
"@sveltejs/
|
|
9
|
-
"@sveltejs/
|
|
22
|
+
"@skeletonlabs/skeleton": "^1.2.5",
|
|
23
|
+
"@sveltejs/adapter-auto": "^2.0.0",
|
|
24
|
+
"@sveltejs/kit": "^1.5.0",
|
|
10
25
|
"@typescript-eslint/eslint-plugin": "^5.45.0",
|
|
11
26
|
"@typescript-eslint/parser": "^5.45.0",
|
|
27
|
+
"autoprefixer": "^10.4.14",
|
|
12
28
|
"eslint": "^8.28.0",
|
|
13
29
|
"eslint-config-prettier": "^8.5.0",
|
|
14
30
|
"eslint-plugin-svelte3": "^4.0.0",
|
|
31
|
+
"postcss": "^8.4.23",
|
|
15
32
|
"prettier": "^2.8.0",
|
|
16
33
|
"prettier-plugin-svelte": "^2.8.1",
|
|
17
|
-
"svelte": "^3.
|
|
18
|
-
"svelte-check": "^
|
|
34
|
+
"svelte": "^3.54.0",
|
|
35
|
+
"svelte-check": "^3.0.1",
|
|
36
|
+
"tailwindcss": "^3.3.2",
|
|
19
37
|
"tslib": "^2.4.1",
|
|
20
|
-
"typescript": "^
|
|
21
|
-
"vite": "^4.
|
|
38
|
+
"typescript": "^5.0.0",
|
|
39
|
+
"vite": "^4.3.0",
|
|
40
|
+
"vitest": "^0.25.3"
|
|
22
41
|
},
|
|
23
42
|
"type": "module",
|
|
24
43
|
"module": "./src/lib/index.ts",
|
|
@@ -33,144 +52,11 @@
|
|
|
33
52
|
"@fortawesome/fontawesome-svg-core": "^6.2.1",
|
|
34
53
|
"@fortawesome/free-regular-svg-icons": "^6.2.1",
|
|
35
54
|
"@fortawesome/free-solid-svg-icons": "^6.2.1",
|
|
55
|
+
"@sveltejs/package": "^2.0.2",
|
|
36
56
|
"axios": "^1.2.1",
|
|
37
|
-
"
|
|
38
|
-
"esbuild": "^0.16.6",
|
|
39
|
-
"escape-string-regexp": "^4.0.0",
|
|
40
|
-
"eslint-scope": "^5.1.1",
|
|
41
|
-
"eslint-utils": "^3.0.0",
|
|
42
|
-
"eslint-visitor-keys": "^3.3.0",
|
|
43
|
-
"esm-env": "^1.0.0",
|
|
44
|
-
"espree": "^9.4.1",
|
|
45
|
-
"esquery": "^1.4.0",
|
|
46
|
-
"esrecurse": "^4.3.0",
|
|
47
|
-
"estraverse": "^4.3.0",
|
|
48
|
-
"esutils": "^2.0.3",
|
|
49
|
-
"fast-deep-equal": "^3.1.3",
|
|
50
|
-
"fast-glob": "^3.2.12",
|
|
51
|
-
"fast-json-stable-stringify": "^2.1.0",
|
|
52
|
-
"fast-levenshtein": "^2.0.6",
|
|
53
|
-
"fastq": "^1.14.0",
|
|
54
|
-
"file-entry-cache": "^6.0.1",
|
|
55
|
-
"fill-range": "^7.0.1",
|
|
56
|
-
"find-up": "^5.0.0",
|
|
57
|
-
"flat-cache": "^3.0.4",
|
|
58
|
-
"flatted": "^3.2.7",
|
|
59
|
-
"fs.realpath": "^1.0.0",
|
|
60
|
-
"function-bind": "^1.1.1",
|
|
61
|
-
"glob": "^7.2.3",
|
|
62
|
-
"glob-parent": "^5.1.2",
|
|
63
|
-
"globals": "^13.19.0",
|
|
64
|
-
"globalyzer": "^0.1.0",
|
|
65
|
-
"globby": "^11.1.0",
|
|
66
|
-
"globrex": "^0.1.2",
|
|
67
|
-
"graceful-fs": "^4.2.10",
|
|
68
|
-
"grapheme-splitter": "^1.0.4",
|
|
69
|
-
"has": "^1.0.3",
|
|
70
|
-
"has-flag": "^4.0.0",
|
|
71
|
-
"ignore": "^5.2.1",
|
|
72
|
-
"import-fresh": "^3.3.0",
|
|
73
|
-
"import-meta-resolve": "^2.2.0",
|
|
74
|
-
"imurmurhash": "^0.1.4",
|
|
75
|
-
"inflight": "^1.0.6",
|
|
76
|
-
"inherits": "^2.0.4",
|
|
77
|
-
"is-binary-path": "^2.1.0",
|
|
78
|
-
"is-core-module": "^2.11.0",
|
|
79
|
-
"is-extglob": "^2.1.1",
|
|
80
|
-
"is-glob": "^4.0.3",
|
|
81
|
-
"is-number": "^7.0.0",
|
|
82
|
-
"is-path-inside": "^3.0.3",
|
|
83
|
-
"isexe": "^2.0.0",
|
|
84
|
-
"js-sdsl": "^4.2.0",
|
|
85
|
-
"js-yaml": "^4.1.0",
|
|
86
|
-
"json-schema-traverse": "^0.4.1",
|
|
87
|
-
"json-stable-stringify-without-jsonify": "^1.0.1",
|
|
88
|
-
"kleur": "^4.1.5",
|
|
89
|
-
"levn": "^0.4.1",
|
|
90
|
-
"locate-path": "^6.0.0",
|
|
91
|
-
"lodash.merge": "^4.6.2",
|
|
92
|
-
"lower-case": "^2.0.2",
|
|
93
|
-
"lru-cache": "^6.0.0",
|
|
94
|
-
"magic-string": "^0.27.0",
|
|
95
|
-
"merge2": "^1.4.1",
|
|
96
|
-
"micromatch": "^4.0.5",
|
|
97
|
-
"mime": "^3.0.0",
|
|
98
|
-
"min-indent": "^1.0.1",
|
|
99
|
-
"minimatch": "^3.1.2",
|
|
100
|
-
"minimist": "^1.2.7",
|
|
101
|
-
"mkdirp": "^0.5.6",
|
|
102
|
-
"mri": "^1.2.0",
|
|
103
|
-
"mrmime": "^1.0.1",
|
|
104
|
-
"ms": "^2.1.2",
|
|
105
|
-
"nanoid": "^3.3.4",
|
|
106
|
-
"natural-compare": "^1.4.0",
|
|
107
|
-
"natural-compare-lite": "^1.4.0",
|
|
108
|
-
"no-case": "^3.0.4",
|
|
109
|
-
"normalize-path": "^3.0.0",
|
|
110
|
-
"once": "^1.4.0",
|
|
111
|
-
"optionator": "^0.9.1",
|
|
112
|
-
"p-limit": "^3.1.0",
|
|
113
|
-
"p-locate": "^5.0.0",
|
|
114
|
-
"parent-module": "^1.0.1",
|
|
115
|
-
"pascal-case": "^3.1.2",
|
|
116
|
-
"path-exists": "^4.0.0",
|
|
117
|
-
"path-is-absolute": "^1.0.1",
|
|
118
|
-
"path-key": "^3.1.1",
|
|
119
|
-
"path-parse": "^1.0.7",
|
|
120
|
-
"path-type": "^4.0.0",
|
|
121
|
-
"picocolors": "^1.0.0",
|
|
122
|
-
"picomatch": "^2.3.1",
|
|
123
|
-
"playwright-core": "^1.28.1",
|
|
124
|
-
"postcss": "^8.4.20",
|
|
125
|
-
"prelude-ls": "^1.2.1",
|
|
126
|
-
"punycode": "^2.1.1",
|
|
127
|
-
"queue-microtask": "^1.2.3",
|
|
128
|
-
"readdirp": "^3.6.0",
|
|
129
|
-
"regexpp": "^3.2.0",
|
|
130
|
-
"resolve": "^1.22.1",
|
|
131
|
-
"resolve-from": "^4.0.0",
|
|
132
|
-
"reusify": "^1.0.4",
|
|
133
|
-
"rimraf": "^3.0.2",
|
|
134
|
-
"rollup": "^3.7.4",
|
|
135
|
-
"run-parallel": "^1.2.0",
|
|
136
|
-
"sade": "^1.8.1",
|
|
137
|
-
"sander": "^0.5.1",
|
|
138
|
-
"semver": "^7.3.8",
|
|
139
|
-
"set-cookie-parser": "^2.5.1",
|
|
140
|
-
"shebang-command": "^2.0.0",
|
|
141
|
-
"shebang-regex": "^3.0.0",
|
|
142
|
-
"sirv": "^2.0.2",
|
|
143
|
-
"slash": "^3.0.0",
|
|
144
|
-
"sorcery": "^0.10.0",
|
|
145
|
-
"source-map-js": "^1.0.2",
|
|
146
|
-
"sourcemap-codec": "^1.4.8",
|
|
147
|
-
"streamsearch": "^1.1.0",
|
|
148
|
-
"strip-ansi": "^6.0.1",
|
|
149
|
-
"strip-indent": "^3.0.0",
|
|
150
|
-
"strip-json-comments": "^3.1.1",
|
|
151
|
-
"supports-color": "^7.2.0",
|
|
152
|
-
"supports-preserve-symlinks-flag": "^1.0.0",
|
|
57
|
+
"svelte": "^3.54.0",
|
|
153
58
|
"svelte-fa": "^3.0.3",
|
|
154
|
-
"svelte-file-dropzone": "^
|
|
155
|
-
"svelte-hmr": "^0.15.1",
|
|
156
|
-
"svelte-preprocess": "^4.10.7",
|
|
157
|
-
"svelte2tsx": "^0.5.22",
|
|
158
|
-
"sveltestrap": "^5.10.0",
|
|
159
|
-
"text-table": "^0.2.0",
|
|
160
|
-
"tiny-glob": "^0.2.9",
|
|
161
|
-
"to-regex-range": "^5.0.1",
|
|
162
|
-
"totalist": "^3.0.0",
|
|
163
|
-
"tsutils": "^3.21.0",
|
|
164
|
-
"type-check": "^0.4.0",
|
|
165
|
-
"type-fest": "^0.20.2",
|
|
166
|
-
"undici": "^5.14.0",
|
|
167
|
-
"uri-js": "^4.4.1",
|
|
168
|
-
"vitefu": "^0.2.3",
|
|
169
|
-
"which": "^2.0.2",
|
|
170
|
-
"word-wrap": "^1.2.3",
|
|
171
|
-
"wrappy": "^1.0.2",
|
|
172
|
-
"yallist": "^4.0.0",
|
|
173
|
-
"yocto-queue": "^0.1.0"
|
|
59
|
+
"svelte-file-dropzone": "^2.0.1"
|
|
174
60
|
},
|
|
175
61
|
"author": "David Schöne",
|
|
176
62
|
"license": "ISC",
|
|
@@ -187,27 +73,9 @@
|
|
|
187
73
|
"libary"
|
|
188
74
|
],
|
|
189
75
|
"exports": {
|
|
190
|
-
"
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
"./css/themes/theme-crimson.css": "./css/themes/theme-crimson.css",
|
|
197
|
-
"./css/themes/theme-gold-nouveau.css": "./css/themes/theme-gold-nouveau.css",
|
|
198
|
-
"./css/themes/theme-hamlindigo.css": "./css/themes/theme-hamlindigo.css",
|
|
199
|
-
"./css/themes/theme-modern.css": "./css/themes/theme-modern.css",
|
|
200
|
-
"./css/themes/theme-rocket.css": "./css/themes/theme-rocket.css",
|
|
201
|
-
"./css/themes/theme-sahara.css": "./css/themes/theme-sahara.css",
|
|
202
|
-
"./css/themes/theme-seafoam.css": "./css/themes/theme-seafoam.css",
|
|
203
|
-
"./css/themes/theme-seasonal.css": "./css/themes/theme-seasonal.css",
|
|
204
|
-
"./css/themes/theme-skeleton.css": "./css/themes/theme-skeleton.css",
|
|
205
|
-
"./css/themes/theme-vintage.css": "./css/themes/theme-vintage.css",
|
|
206
|
-
".": "./index.js",
|
|
207
|
-
"./models/Models": "./models/Models.js",
|
|
208
|
-
"./services/Api": "./services/Api.js",
|
|
209
|
-
"./stores/apistore": "./stores/apistore.js",
|
|
210
|
-
"./TableView.svelte": "./TableView.svelte"
|
|
211
|
-
},
|
|
212
|
-
"svelte": "./index.js"
|
|
213
|
-
}
|
|
76
|
+
".": {
|
|
77
|
+
"types": "./dist/index.d.ts",
|
|
78
|
+
"svelte": "./dist/index.js"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
package/src/app.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="@sveltejs/kit" />
|
|
2
|
+
|
|
3
|
+
// See https://kit.svelte.dev/docs/types#app
|
|
4
|
+
// for information about these interfaces
|
|
5
|
+
// and what to do when importing types
|
|
6
|
+
declare namespace App {
|
|
7
|
+
// interface Error {}
|
|
8
|
+
// interface Locals {}
|
|
9
|
+
// interface PageData {}
|
|
10
|
+
// interface Platform {}
|
|
11
|
+
}
|
package/src/app.html
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
10
|
+
%sveltekit.head%
|
|
11
|
+
</head>
|
|
12
|
+
<body>
|
|
13
|
+
<div>%sveltekit.body%</div>
|
|
14
|
+
</body>
|
|
15
|
+
</html>
|
package/src/app.postcss
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<h1>table</h1>
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
|
|
3
|
+
import Fa from 'svelte-fa'
|
|
4
|
+
import { faFileAudio } from '@fortawesome/free-regular-svg-icons'
|
|
5
|
+
import { faFileVideo } from '@fortawesome/free-regular-svg-icons'
|
|
6
|
+
import { faFileWord } from '@fortawesome/free-regular-svg-icons'
|
|
7
|
+
import { faFilePdf } from '@fortawesome/free-regular-svg-icons'
|
|
8
|
+
import { faFileExcel } from '@fortawesome/free-regular-svg-icons'
|
|
9
|
+
import { faFileAlt } from '@fortawesome/free-regular-svg-icons'
|
|
10
|
+
import { faFileImage } from '@fortawesome/free-regular-svg-icons'
|
|
11
|
+
import { faFileArchive } from '@fortawesome/free-regular-svg-icons'
|
|
12
|
+
|
|
13
|
+
export let type = "";
|
|
14
|
+
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
{#if type.includes("excel") || type.includes("spreadsheetml")}
|
|
18
|
+
<Fa icon={faFileExcel} />
|
|
19
|
+
{/if}
|
|
20
|
+
|
|
21
|
+
{#if type.includes("text")}
|
|
22
|
+
<Fa icon={faFileAlt} />
|
|
23
|
+
{/if}
|
|
24
|
+
|
|
25
|
+
{#if type.includes("image")}
|
|
26
|
+
<Fa icon={faFileImage} />
|
|
27
|
+
{/if}
|
|
28
|
+
|
|
29
|
+
{#if type.includes("audio")}
|
|
30
|
+
<Fa icon={faFileAudio} />
|
|
31
|
+
{/if}
|
|
32
|
+
|
|
33
|
+
{#if type.includes("video")}
|
|
34
|
+
<Fa icon={faFileVideo} />
|
|
35
|
+
{/if}
|
|
36
|
+
|
|
37
|
+
{#if type.includes("word")}
|
|
38
|
+
<Fa icon={faFileWord} />
|
|
39
|
+
{/if}
|
|
40
|
+
|
|
41
|
+
{#if type.includes("pdf")}
|
|
42
|
+
<Fa icon={faFilePdf} />
|
|
43
|
+
{/if}
|
|
44
|
+
|
|
45
|
+
{#if type.includes("zip")}
|
|
46
|
+
<Fa icon={faFileArchive} />
|
|
47
|
+
{/if}
|
|
48
|
+
|
|
49
|
+
|