@bexis2/bexis2-core-ui 0.0.25 → 0.0.27
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 +47 -9
- package/dist/components/Table/TableFilter.svelte +95 -95
- package/dist/components/Table/TablePagination.svelte +38 -38
- package/dist/components/form/CheckboxKvPList.svelte +7 -1
- package/dist/components/form/DropdownKvP.svelte +4 -4
- package/dist/components/form/DropdownKvP.svelte.d.ts +10 -10
- package/dist/components/form/MultiSelect.svelte +6 -4
- package/dist/components/page/BackToTop.svelte +30 -0
- package/dist/components/page/BackToTop.svelte.d.ts +23 -0
- package/dist/components/page/Page.svelte +3 -0
- package/dist/components/page/Page.svelte.d.ts +27 -0
- package/dist/css/themes/theme-bexis2.css +24 -23
- package/dist/index.d.ts +7 -1
- package/dist/index.js +5 -0
- package/package.json +99 -101
- package/src/lib/components/Table/TableFilter.svelte +176 -176
- package/src/lib/components/Table/TablePagination.svelte +61 -61
- package/src/lib/components/form/CheckboxKvPList.svelte +7 -1
- package/src/lib/components/form/DropdownKvP.svelte +4 -4
- package/src/lib/components/form/MultiSelect.svelte +6 -4
- package/src/lib/components/page/BackToTop.svelte +30 -0
- package/src/lib/components/page/Page.svelte +3 -0
- package/src/lib/css/themes/theme-bexis2.css +24 -23
- package/src/lib/index.ts +58 -45
package/README.md
CHANGED
|
@@ -1,19 +1,57 @@
|
|
|
1
1
|
# bexis-core-ui
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## v0.0.27
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
### add
|
|
6
|
+
#### components
|
|
7
|
+
- Table
|
|
8
|
+
- TableFilter
|
|
9
|
+
- cloumnFilter
|
|
10
|
+
- searchFilter
|
|
6
11
|
|
|
7
|
-
|
|
12
|
+
#### types
|
|
13
|
+
- TableConfig
|
|
14
|
+
- Columns
|
|
15
|
+
- Column
|
|
16
|
+
- Input
|
|
17
|
+
|
|
18
|
+
<hr/>
|
|
19
|
+
|
|
20
|
+
## v0.0.26
|
|
21
|
+
|
|
22
|
+
### updates
|
|
23
|
+
|
|
24
|
+
- fix bugs in checkbox list
|
|
25
|
+
- fix bugs in multi select
|
|
8
26
|
|
|
9
|
-
|
|
27
|
+
<hr/>
|
|
28
|
+
|
|
29
|
+
## v0.0.25
|
|
30
|
+
|
|
31
|
+
### adds
|
|
32
|
+
#### components
|
|
33
|
+
- Spinner
|
|
34
|
+
- FileUploader
|
|
35
|
+
- FileInfo
|
|
36
|
+
- FileIcon
|
|
37
|
+
-
|
|
38
|
+
#### types
|
|
39
|
+
- FileUploaderModel
|
|
40
|
+
|
|
41
|
+
<hr/>
|
|
42
|
+
|
|
43
|
+
## v0.0.23
|
|
44
|
+
|
|
45
|
+
### updates
|
|
46
|
+
- update bexis 2 theme
|
|
10
47
|
|
|
48
|
+
### adds
|
|
11
49
|
- Checkbox
|
|
12
|
-
- CheckboxKVPList
|
|
13
|
-
- CheckboxList
|
|
14
|
-
- DateInput
|
|
15
|
-
- DropdownKVP
|
|
16
|
-
- MultiSelect
|
|
50
|
+
- CheckboxKVPList
|
|
51
|
+
- CheckboxList
|
|
52
|
+
- DateInput
|
|
53
|
+
- DropdownKVP
|
|
54
|
+
- MultiSelect
|
|
17
55
|
- NumberInput
|
|
18
56
|
- TextArea
|
|
19
57
|
- TextInput
|
|
@@ -71,98 +71,98 @@ const popupFeatured = {
|
|
|
71
71
|
placement: "bottom-start"
|
|
72
72
|
};
|
|
73
73
|
const type = typeof $values[0];
|
|
74
|
-
</script>
|
|
75
|
-
|
|
76
|
-
<form class="">
|
|
77
|
-
<button
|
|
78
|
-
class:variant-filled-primary={active}
|
|
79
|
-
class="btn w-max p-2"
|
|
80
|
-
type="button"
|
|
81
|
-
use:popup={popupFeatured}
|
|
82
|
-
>
|
|
83
|
-
<Fa icon={faFilter} size="12" />
|
|
84
|
-
</button>
|
|
85
|
-
|
|
86
|
-
<div data-popup={`${popupId}`}>
|
|
87
|
-
<div class="card p-3 absolute grid gap-2 shadow-lg z-10 w-min">
|
|
88
|
-
<button
|
|
89
|
-
class="btn variant-filled-primary btn-sm"
|
|
90
|
-
type="submit"
|
|
91
|
-
on:click={() => {
|
|
92
|
-
firstOption = 'isequal';
|
|
93
|
-
firstValue = undefined;
|
|
94
|
-
secondOption = 'isequal';
|
|
95
|
-
secondValue = undefined;
|
|
96
|
-
|
|
97
|
-
$filterValue = [firstOption, firstValue, secondOption, secondValue];
|
|
98
|
-
active = false;
|
|
99
|
-
}}>Clear Filter</button
|
|
100
|
-
>
|
|
101
|
-
|
|
102
|
-
<label for="" class="label normal-case text-sm">Show rows with value that</label>
|
|
103
|
-
<div class="grid gap-2 w-full">
|
|
104
|
-
<select
|
|
105
|
-
class="select border border-primary-500 text-sm p-1"
|
|
106
|
-
aria-label="Show rows with value that"
|
|
107
|
-
bind:value={firstOption}
|
|
108
|
-
on:click|stopPropagation
|
|
109
|
-
>
|
|
110
|
-
{#each options[type] as option (option)}
|
|
111
|
-
<option value={option.value}>{option.label}</option>
|
|
112
|
-
{/each}
|
|
113
|
-
</select>
|
|
114
|
-
{#if type === 'number'}
|
|
115
|
-
<input
|
|
116
|
-
type="number"
|
|
117
|
-
class="input p-1 border border-primary-500"
|
|
118
|
-
bind:value={firstValue}
|
|
119
|
-
on:click|stopPropagation
|
|
120
|
-
/>
|
|
121
|
-
{:else}
|
|
122
|
-
<input
|
|
123
|
-
type="text"
|
|
124
|
-
class="input p-1 border border-primary-500"
|
|
125
|
-
bind:value={firstValue}
|
|
126
|
-
on:click|stopPropagation
|
|
127
|
-
/>
|
|
128
|
-
{/if}
|
|
129
|
-
</div>
|
|
130
|
-
<label for="" class="label normal-case">And</label>
|
|
131
|
-
<div class="grid gap-2 w-max">
|
|
132
|
-
<select
|
|
133
|
-
class="select border border-primary-500 text-sm p-1"
|
|
134
|
-
aria-label="Show rows with value that"
|
|
135
|
-
bind:value={secondOption}
|
|
136
|
-
on:click|stopPropagation
|
|
137
|
-
>
|
|
138
|
-
{#each options[type] as option (option)}
|
|
139
|
-
<option value={option.value}>{option.label}</option>
|
|
140
|
-
{/each}
|
|
141
|
-
</select>
|
|
142
|
-
{#if type === 'number'}
|
|
143
|
-
<input
|
|
144
|
-
type="number"
|
|
145
|
-
class="input p-1 border border-primary-500"
|
|
146
|
-
bind:value={secondValue}
|
|
147
|
-
on:click|stopPropagation
|
|
148
|
-
/>
|
|
149
|
-
{:else}
|
|
150
|
-
<input
|
|
151
|
-
type="text"
|
|
152
|
-
class="input p-1 border border-primary-500"
|
|
153
|
-
bind:value={secondValue}
|
|
154
|
-
on:click|stopPropagation
|
|
155
|
-
/>
|
|
156
|
-
{/if}
|
|
157
|
-
</div>
|
|
158
|
-
<button
|
|
159
|
-
class="btn variant-filled-primary btn-sm"
|
|
160
|
-
type="submit"
|
|
161
|
-
on:click={() => {
|
|
162
|
-
active = firstValue?.toString().length > 0 || secondValue?.toString().length > 0;
|
|
163
|
-
$filterValue = [firstOption, firstValue, secondOption, secondValue];
|
|
164
|
-
}}>Submit</button
|
|
165
|
-
>
|
|
166
|
-
</div>
|
|
167
|
-
</div>
|
|
168
|
-
</form>
|
|
74
|
+
</script>
|
|
75
|
+
|
|
76
|
+
<form class="">
|
|
77
|
+
<button
|
|
78
|
+
class:variant-filled-primary={active}
|
|
79
|
+
class="btn w-max p-2"
|
|
80
|
+
type="button"
|
|
81
|
+
use:popup={popupFeatured}
|
|
82
|
+
>
|
|
83
|
+
<Fa icon={faFilter} size="12" />
|
|
84
|
+
</button>
|
|
85
|
+
|
|
86
|
+
<div data-popup={`${popupId}`}>
|
|
87
|
+
<div class="card p-3 absolute grid gap-2 shadow-lg z-10 w-min">
|
|
88
|
+
<button
|
|
89
|
+
class="btn variant-filled-primary btn-sm"
|
|
90
|
+
type="submit"
|
|
91
|
+
on:click|preventDefault={() => {
|
|
92
|
+
firstOption = 'isequal';
|
|
93
|
+
firstValue = undefined;
|
|
94
|
+
secondOption = 'isequal';
|
|
95
|
+
secondValue = undefined;
|
|
96
|
+
|
|
97
|
+
$filterValue = [firstOption, firstValue, secondOption, secondValue];
|
|
98
|
+
active = false;
|
|
99
|
+
}}>Clear Filter</button
|
|
100
|
+
>
|
|
101
|
+
|
|
102
|
+
<label for="" class="label normal-case text-sm">Show rows with value that</label>
|
|
103
|
+
<div class="grid gap-2 w-full">
|
|
104
|
+
<select
|
|
105
|
+
class="select border border-primary-500 text-sm p-1"
|
|
106
|
+
aria-label="Show rows with value that"
|
|
107
|
+
bind:value={firstOption}
|
|
108
|
+
on:click|stopPropagation
|
|
109
|
+
>
|
|
110
|
+
{#each options[type] as option (option)}
|
|
111
|
+
<option value={option.value}>{option.label}</option>
|
|
112
|
+
{/each}
|
|
113
|
+
</select>
|
|
114
|
+
{#if type === 'number'}
|
|
115
|
+
<input
|
|
116
|
+
type="number"
|
|
117
|
+
class="input p-1 border border-primary-500"
|
|
118
|
+
bind:value={firstValue}
|
|
119
|
+
on:click|stopPropagation
|
|
120
|
+
/>
|
|
121
|
+
{:else}
|
|
122
|
+
<input
|
|
123
|
+
type="text"
|
|
124
|
+
class="input p-1 border border-primary-500"
|
|
125
|
+
bind:value={firstValue}
|
|
126
|
+
on:click|stopPropagation
|
|
127
|
+
/>
|
|
128
|
+
{/if}
|
|
129
|
+
</div>
|
|
130
|
+
<label for="" class="label normal-case">And</label>
|
|
131
|
+
<div class="grid gap-2 w-max">
|
|
132
|
+
<select
|
|
133
|
+
class="select border border-primary-500 text-sm p-1"
|
|
134
|
+
aria-label="Show rows with value that"
|
|
135
|
+
bind:value={secondOption}
|
|
136
|
+
on:click|stopPropagation
|
|
137
|
+
>
|
|
138
|
+
{#each options[type] as option (option)}
|
|
139
|
+
<option value={option.value}>{option.label}</option>
|
|
140
|
+
{/each}
|
|
141
|
+
</select>
|
|
142
|
+
{#if type === 'number'}
|
|
143
|
+
<input
|
|
144
|
+
type="number"
|
|
145
|
+
class="input p-1 border border-primary-500"
|
|
146
|
+
bind:value={secondValue}
|
|
147
|
+
on:click|stopPropagation
|
|
148
|
+
/>
|
|
149
|
+
{:else}
|
|
150
|
+
<input
|
|
151
|
+
type="text"
|
|
152
|
+
class="input p-1 border border-primary-500"
|
|
153
|
+
bind:value={secondValue}
|
|
154
|
+
on:click|stopPropagation
|
|
155
|
+
/>
|
|
156
|
+
{/if}
|
|
157
|
+
</div>
|
|
158
|
+
<button
|
|
159
|
+
class="btn variant-filled-primary btn-sm"
|
|
160
|
+
type="submit"
|
|
161
|
+
on:click|preventDefault={() => {
|
|
162
|
+
active = firstValue?.toString().length > 0 || secondValue?.toString().length > 0;
|
|
163
|
+
$filterValue = [firstOption, firstValue, secondOption, secondValue];
|
|
164
|
+
}}>Submit</button
|
|
165
|
+
>
|
|
166
|
+
</div>
|
|
167
|
+
</div>
|
|
168
|
+
</form>
|
|
@@ -20,41 +20,41 @@ $:
|
|
|
20
20
|
goToNextPageDisabled = !$hasNextPage;
|
|
21
21
|
$:
|
|
22
22
|
goToPreviousPageDisabled = !$hasPreviousPage;
|
|
23
|
-
</script>
|
|
24
|
-
|
|
25
|
-
<div class="flex justify-center gap-1">
|
|
26
|
-
<button
|
|
27
|
-
class="btn btn-sm variant-filled-primary"
|
|
28
|
-
on:click={goToFirstPage}
|
|
29
|
-
disabled={goToFirstPageDisabled}
|
|
30
|
-
>
|
|
31
|
-
<Fa icon={faAnglesLeft} /></button
|
|
32
|
-
>
|
|
33
|
-
<button
|
|
34
|
-
class="btn btn-sm variant-filled-primary"
|
|
35
|
-
on:click={goToPreviousPage}
|
|
36
|
-
disabled={goToPreviousPageDisabled}><Fa icon={faAngleLeft} /></button
|
|
37
|
-
>
|
|
38
|
-
|
|
39
|
-
<select
|
|
40
|
-
name="pageSize"
|
|
41
|
-
id="pageSize"
|
|
42
|
-
class="select btn btn-sm variant-filled-primary w-min font-bold"
|
|
43
|
-
bind:value={$pageSize}
|
|
44
|
-
>
|
|
45
|
-
{#each pageSizes as size}
|
|
46
|
-
<option value={size}>{size}</option>
|
|
47
|
-
{/each}
|
|
48
|
-
</select>
|
|
49
|
-
|
|
50
|
-
<button
|
|
51
|
-
class="btn btn-sm variant-filled-primary"
|
|
52
|
-
on:click={goToNextPage}
|
|
53
|
-
disabled={goToNextPageDisabled}><Fa icon={faAngleRight} /></button
|
|
54
|
-
>
|
|
55
|
-
<button
|
|
56
|
-
class="btn btn-sm variant-filled-primary"
|
|
57
|
-
on:click={goToLastPage}
|
|
58
|
-
disabled={goToLastPageDisabled}><Fa icon={faAnglesRight} /></button
|
|
59
|
-
>
|
|
60
|
-
</div>
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<div class="flex justify-center gap-1">
|
|
26
|
+
<button
|
|
27
|
+
class="btn btn-sm variant-filled-primary"
|
|
28
|
+
on:click|preventDefault={goToFirstPage}
|
|
29
|
+
disabled={goToFirstPageDisabled}
|
|
30
|
+
>
|
|
31
|
+
<Fa icon={faAnglesLeft} /></button
|
|
32
|
+
>
|
|
33
|
+
<button
|
|
34
|
+
class="btn btn-sm variant-filled-primary"
|
|
35
|
+
on:click|preventDefault={goToPreviousPage}
|
|
36
|
+
disabled={goToPreviousPageDisabled}><Fa icon={faAngleLeft} /></button
|
|
37
|
+
>
|
|
38
|
+
|
|
39
|
+
<select
|
|
40
|
+
name="pageSize"
|
|
41
|
+
id="pageSize"
|
|
42
|
+
class="select btn btn-sm variant-filled-primary w-min font-bold"
|
|
43
|
+
bind:value={$pageSize}
|
|
44
|
+
>
|
|
45
|
+
{#each pageSizes as size}
|
|
46
|
+
<option value={size}>{size}</option>
|
|
47
|
+
{/each}
|
|
48
|
+
</select>
|
|
49
|
+
|
|
50
|
+
<button
|
|
51
|
+
class="btn btn-sm variant-filled-primary"
|
|
52
|
+
on:click|preventDefault={goToNextPage}
|
|
53
|
+
disabled={goToNextPageDisabled}><Fa icon={faAngleRight} /></button
|
|
54
|
+
>
|
|
55
|
+
<button
|
|
56
|
+
class="btn btn-sm variant-filled-primary"
|
|
57
|
+
on:click|preventDefault={goToLastPage}
|
|
58
|
+
disabled={goToLastPageDisabled}><Fa icon={faAnglesRight} /></button
|
|
59
|
+
>
|
|
60
|
+
</div>
|
|
@@ -11,7 +11,13 @@ let feedback;
|
|
|
11
11
|
<InputContainer label={title} {feedback} {required}>
|
|
12
12
|
{#each source as item}
|
|
13
13
|
<label class="flex items-center space-x-2" for={key}>
|
|
14
|
-
<input
|
|
14
|
+
<input
|
|
15
|
+
class="checkbox"
|
|
16
|
+
type="checkbox"
|
|
17
|
+
bind:group={target}
|
|
18
|
+
checked={item.key}
|
|
19
|
+
value={item.key}
|
|
20
|
+
/>
|
|
15
21
|
<p>{item.value}</p>
|
|
16
22
|
</label>
|
|
17
23
|
{/each}
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
export let source;
|
|
6
6
|
export let target;
|
|
7
7
|
export let title;
|
|
8
|
-
export let valid;
|
|
9
|
-
export let invalid;
|
|
10
|
-
export let feedback;
|
|
11
|
-
export let required;
|
|
8
|
+
export let valid = false;
|
|
9
|
+
export let invalid = false;
|
|
10
|
+
export let feedback = [''];
|
|
11
|
+
export let required = false;
|
|
12
12
|
|
|
13
13
|
$: selected = null;
|
|
14
14
|
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} DropdownKvPEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} DropdownKvPSlots */
|
|
4
4
|
export default class DropdownKvP extends SvelteComponentTyped<{
|
|
5
|
+
target: any;
|
|
5
6
|
id: any;
|
|
6
7
|
source: any;
|
|
7
|
-
target: any;
|
|
8
8
|
title: any;
|
|
9
|
-
|
|
10
|
-
invalid
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
required?: boolean | undefined;
|
|
10
|
+
invalid?: boolean | undefined;
|
|
11
|
+
valid?: boolean | undefined;
|
|
12
|
+
feedback?: string[] | undefined;
|
|
13
13
|
}, {
|
|
14
14
|
change: Event;
|
|
15
15
|
select: Event;
|
|
@@ -23,14 +23,14 @@ export type DropdownKvPSlots = typeof __propDef.slots;
|
|
|
23
23
|
import { SvelteComponentTyped } from "svelte";
|
|
24
24
|
declare const __propDef: {
|
|
25
25
|
props: {
|
|
26
|
+
target: any;
|
|
26
27
|
id: any;
|
|
27
28
|
source: any;
|
|
28
|
-
target: any;
|
|
29
29
|
title: any;
|
|
30
|
-
|
|
31
|
-
invalid
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
required?: boolean | undefined;
|
|
31
|
+
invalid?: boolean | undefined;
|
|
32
|
+
valid?: boolean | undefined;
|
|
33
|
+
feedback?: string[] | undefined;
|
|
34
34
|
};
|
|
35
35
|
events: {
|
|
36
36
|
change: Event;
|
|
@@ -22,14 +22,16 @@
|
|
|
22
22
|
|
|
23
23
|
function updateTarget(selection) {
|
|
24
24
|
//diffrent cases
|
|
25
|
-
|
|
25
|
+
console.log('------');
|
|
26
26
|
|
|
27
27
|
//a) source is complex model is simple
|
|
28
28
|
if (isComplex && !isTargetComplex && isLoaded) {
|
|
29
|
+
console.log('a) source is complex model is simple');
|
|
30
|
+
|
|
29
31
|
target = [];
|
|
30
32
|
for (let i in selection) {
|
|
31
33
|
let item = selection[i];
|
|
32
|
-
target.push(item
|
|
34
|
+
target.push(item[itemId]);
|
|
33
35
|
}
|
|
34
36
|
}
|
|
35
37
|
|
|
@@ -39,8 +41,8 @@
|
|
|
39
41
|
target.push(selection[i].value);
|
|
40
42
|
}
|
|
41
43
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
+
console.log('selection ' + title, selection);
|
|
45
|
+
console.log('target ' + title, target);
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
onMount(async () => {
|
|
@@ -0,0 +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>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} BackToTopProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} BackToTopEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} BackToTopSlots */
|
|
4
|
+
export default class BackToTop extends SvelteComponentTyped<{
|
|
5
|
+
showOnPx?: number | undefined;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {}> {
|
|
9
|
+
}
|
|
10
|
+
export type BackToTopProps = typeof __propDef.props;
|
|
11
|
+
export type BackToTopEvents = typeof __propDef.events;
|
|
12
|
+
export type BackToTopSlots = typeof __propDef.slots;
|
|
13
|
+
import { SvelteComponentTyped } from "svelte";
|
|
14
|
+
declare const __propDef: {
|
|
15
|
+
props: {
|
|
16
|
+
showOnPx?: number | undefined;
|
|
17
|
+
};
|
|
18
|
+
events: {
|
|
19
|
+
[evt: string]: CustomEvent<any>;
|
|
20
|
+
};
|
|
21
|
+
slots: {};
|
|
22
|
+
};
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
import { SvelteComponentTyped } from "svelte";
|
|
16
|
+
declare const __propDef: {
|
|
17
|
+
props: {
|
|
18
|
+
[x: string]: never;
|
|
19
|
+
};
|
|
20
|
+
events: {
|
|
21
|
+
[evt: string]: CustomEvent<any>;
|
|
22
|
+
};
|
|
23
|
+
slots: {
|
|
24
|
+
default: {};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -60,17 +60,17 @@
|
|
|
60
60
|
--color-success-700: 56 136 50; /* ⬅ #388832 */
|
|
61
61
|
--color-success-800: 45 109 40; /* ⬅ #2d6d28 */
|
|
62
62
|
--color-success-900: 37 89 33; /* ⬅ #255921 */
|
|
63
|
-
/* warning | #
|
|
64
|
-
--color-warning-50:
|
|
65
|
-
--color-warning-100:
|
|
66
|
-
--color-warning-200:
|
|
67
|
-
--color-warning-300:
|
|
68
|
-
--color-warning-400:
|
|
69
|
-
--color-warning-500:
|
|
70
|
-
--color-warning-600:
|
|
71
|
-
--color-warning-700:
|
|
72
|
-
--color-warning-800:
|
|
73
|
-
--color-warning-900:
|
|
63
|
+
/* warning | #EAB308 */
|
|
64
|
+
--color-warning-50: 252 244 218; /* ⬅ #fcf4da */
|
|
65
|
+
--color-warning-100: 251 240 206; /* ⬅ #fbf0ce */
|
|
66
|
+
--color-warning-200: 250 236 193; /* ⬅ #faecc1 */
|
|
67
|
+
--color-warning-300: 247 225 156; /* ⬅ #f7e19c */
|
|
68
|
+
--color-warning-400: 240 202 82; /* ⬅ #f0ca52 */
|
|
69
|
+
--color-warning-500: 234 179 8; /* ⬅ #EAB308 */
|
|
70
|
+
--color-warning-600: 211 161 7; /* ⬅ #d3a107 */
|
|
71
|
+
--color-warning-700: 176 134 6; /* ⬅ #b08606 */
|
|
72
|
+
--color-warning-800: 140 107 5; /* ⬅ #8c6b05 */
|
|
73
|
+
--color-warning-900: 115 88 4; /* ⬅ #735804 */
|
|
74
74
|
/* error | #FF0000 */
|
|
75
75
|
--color-error-50: 255 217 217; /* ⬅ #ffd9d9 */
|
|
76
76
|
--color-error-100: 255 204 204; /* ⬅ #ffcccc */
|
|
@@ -82,15 +82,16 @@
|
|
|
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
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
85
|
+
/* surface | #dddddd */
|
|
86
|
+
--color-surface-50: 250 250 250; /* ⬅ #fafafa */
|
|
87
|
+
--color-surface-100: 248 248 248; /* ⬅ #f8f8f8 */
|
|
88
|
+
--color-surface-200: 247 247 247; /* ⬅ #f7f7f7 */
|
|
89
|
+
--color-surface-300: 241 241 241; /* ⬅ #f1f1f1 */
|
|
90
|
+
--color-surface-400: 231 231 231; /* ⬅ #e7e7e7 */
|
|
91
|
+
--color-surface-500: 221 221 221; /* ⬅ #dddddd */
|
|
92
|
+
--color-surface-600: 199 199 199; /* ⬅ #c7c7c7 */
|
|
93
|
+
--color-surface-700: 166 166 166; /* ⬅ #a6a6a6 */
|
|
94
|
+
--color-surface-800: 133 133 133; /* ⬅ #858585 */
|
|
95
|
+
--color-surface-900: 80 80 80; /* ⬅ #6c6c6c */
|
|
96
|
+
|
|
97
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -13,9 +13,15 @@ import MultiSelect from './components/form/MultiSelect.svelte';
|
|
|
13
13
|
import NumberInput from './components/form/NumberInput.svelte';
|
|
14
14
|
import TextInput from './components/form/TextInput.svelte';
|
|
15
15
|
import TextArea from './components/form/TextArea.svelte';
|
|
16
|
+
import Table from './components/Table/Table.svelte';
|
|
17
|
+
import TableFilter from './components/Table/TableFilter.svelte';
|
|
18
|
+
import { columnFilter, searchFilter } from './components/Table/filter';
|
|
19
|
+
import type { TableConfig, Columns, Column } from './models/Models';
|
|
16
20
|
export { Checkbox, CheckboxKVPList, CheckboxList, DateInput, DropdownKVP, MultiSelect, NumberInput, TextArea, TextInput };
|
|
17
21
|
export { FileInfo, FileIcon, FileUploader };
|
|
18
22
|
export { ListView, TableView, Spinner };
|
|
19
23
|
export { Api } from './services/Api.js';
|
|
20
24
|
export { host, username, password, setApiConfig } from './stores/apistore.js';
|
|
21
|
-
export type { user, FileUploaderModel } from './models/Models.js';
|
|
25
|
+
export type { user, Input, FileUploaderModel } from './models/Models.js';
|
|
26
|
+
export { Table, TableFilter, columnFilter, searchFilter };
|
|
27
|
+
export type { TableConfig, Columns, Column };
|
package/dist/index.js
CHANGED
|
@@ -14,6 +14,9 @@ import MultiSelect from './components/form/MultiSelect.svelte';
|
|
|
14
14
|
import NumberInput from './components/form/NumberInput.svelte';
|
|
15
15
|
import TextInput from './components/form/TextInput.svelte';
|
|
16
16
|
import TextArea from './components/form/TextArea.svelte';
|
|
17
|
+
import Table from './components/Table/Table.svelte';
|
|
18
|
+
import TableFilter from './components/Table/TableFilter.svelte';
|
|
19
|
+
import { columnFilter, searchFilter } from './components/Table/filter';
|
|
17
20
|
//Form
|
|
18
21
|
export { Checkbox, CheckboxKVPList, CheckboxList, DateInput, DropdownKVP, MultiSelect, NumberInput, TextArea, TextInput };
|
|
19
22
|
//File
|
|
@@ -23,3 +26,5 @@ export { ListView, TableView, Spinner };
|
|
|
23
26
|
//Api
|
|
24
27
|
export { Api } from './services/Api.js';
|
|
25
28
|
export { host, username, password, setApiConfig } from './stores/apistore.js';
|
|
29
|
+
// Table
|
|
30
|
+
export { Table, TableFilter, columnFilter, searchFilter };
|