y200subcontrols 0.0.324 → 0.0.326
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/dist/components/BooleanPresenter.svelte +38 -0
- package/dist/components/BooleanPresenter.svelte.d.ts +18 -0
- package/dist/components/ConfirmModalDialog.svelte +1 -1
- package/dist/components/DataTable.svelte +188 -0
- package/dist/components/DataTable.svelte.d.ts +34 -0
- package/dist/components/DataTableCell.svelte +19 -0
- package/dist/components/DataTableCell.svelte.d.ts +21 -0
- package/dist/components/DataTableMenuButton.svelte +112 -0
- package/dist/components/DataTableMenuButton.svelte.d.ts +26 -0
- package/dist/components/DataTableRow.svelte +5 -0
- package/dist/components/DataTableRow.svelte.d.ts +18 -0
- package/dist/components/DatePresenter.svelte +22 -0
- package/dist/components/DatePresenter.svelte.d.ts +19 -0
- package/dist/components/LabeledDatePicker.svelte +101 -0
- package/dist/components/LabeledDatePicker.svelte.d.ts +35 -0
- package/dist/components/LabeledFormInput.svelte +16 -7
- package/dist/components/LabeledPasswordInput.svelte +5 -3
- package/dist/components/LabeledPasswordInput.svelte.d.ts +1 -0
- package/dist/components/LabeledTextArea.svelte +64 -0
- package/dist/components/LabeledTextArea.svelte.d.ts +30 -0
- package/dist/components/types.d.ts +6 -0
- package/dist/index.d.ts +9 -1
- package/dist/index.js +9 -1
- package/package.json +1 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<script>export let value;
|
|
2
|
+
</script>
|
|
3
|
+
|
|
4
|
+
{#if value}
|
|
5
|
+
<svg
|
|
6
|
+
class="w-5 h-5 text-emerald-500"
|
|
7
|
+
aria-hidden="true"
|
|
8
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
9
|
+
width="24"
|
|
10
|
+
height="24"
|
|
11
|
+
fill="currentColor"
|
|
12
|
+
viewBox="0 0 24 24"
|
|
13
|
+
>
|
|
14
|
+
<path
|
|
15
|
+
fill-rule="evenodd"
|
|
16
|
+
d="M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm13.707-1.293a1 1 0 0 0-1.414-1.414L11 12.586l-1.793-1.793a1 1 0 0 0-1.414 1.414l2.5 2.5a1 1 0 0 0 1.414 0l4-4Z"
|
|
17
|
+
clip-rule="evenodd"
|
|
18
|
+
/>
|
|
19
|
+
</svg>
|
|
20
|
+
{:else}
|
|
21
|
+
<svg
|
|
22
|
+
class="w-5 h-5 text-red-500"
|
|
23
|
+
aria-hidden="true"
|
|
24
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
25
|
+
width="24"
|
|
26
|
+
height="24"
|
|
27
|
+
fill="none"
|
|
28
|
+
viewBox="0 0 24 24"
|
|
29
|
+
>
|
|
30
|
+
<path
|
|
31
|
+
stroke="currentColor"
|
|
32
|
+
stroke-linecap="round"
|
|
33
|
+
stroke-linejoin="round"
|
|
34
|
+
stroke-width="2"
|
|
35
|
+
d="m15 9-6 6m0-6 6 6m6-3a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
|
|
36
|
+
/>
|
|
37
|
+
</svg>
|
|
38
|
+
{/if}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
value: boolean | undefined;
|
|
5
|
+
};
|
|
6
|
+
events: {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
};
|
|
9
|
+
slots: {};
|
|
10
|
+
exports?: {} | undefined;
|
|
11
|
+
bindings?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
export type BooleanPresenterProps = typeof __propDef.props;
|
|
14
|
+
export type BooleanPresenterEvents = typeof __propDef.events;
|
|
15
|
+
export type BooleanPresenterSlots = typeof __propDef.slots;
|
|
16
|
+
export default class BooleanPresenter extends SvelteComponent<BooleanPresenterProps, BooleanPresenterEvents, BooleanPresenterSlots> {
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -30,7 +30,7 @@ export async function showDialog() {
|
|
|
30
30
|
</script>
|
|
31
31
|
|
|
32
32
|
<ModalDialog bind:this={dialog} showCloseButton={false} allowSubmit={false}>
|
|
33
|
-
<slot slot="title">Title goes here</slot>
|
|
33
|
+
<slot slot="title" >Title goes here</slot>
|
|
34
34
|
<div
|
|
35
35
|
class="flex
|
|
36
36
|
{style === 'warning' ? 'text-amber-500' : ''}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
<script>import { createEventDispatcher } from "svelte";
|
|
2
|
+
export let allowAdd = true;
|
|
3
|
+
export let allowSearch = true;
|
|
4
|
+
export let showSearch = true;
|
|
5
|
+
export let isBusy = false;
|
|
6
|
+
export let popupMenuItems = void 0;
|
|
7
|
+
export let hasAdvancedSearch = false;
|
|
8
|
+
export let searchHint = "Search";
|
|
9
|
+
let isMenuOpen = false;
|
|
10
|
+
let isAdvancedSearchOpen = false;
|
|
11
|
+
const dispatch = createEventDispatcher();
|
|
12
|
+
function handleSearchRequested(event) {
|
|
13
|
+
const target = event.target;
|
|
14
|
+
const value = target?.value;
|
|
15
|
+
if (event.key === "Enter" || !value || value === "") {
|
|
16
|
+
dispatch("search", {
|
|
17
|
+
value
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function toggleAdvancedSearch() {
|
|
22
|
+
if (isAdvancedSearchOpen === true) {
|
|
23
|
+
closeAdvancedSearch();
|
|
24
|
+
} else {
|
|
25
|
+
openAdvancedSearch();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function openAdvancedSearch() {
|
|
29
|
+
isAdvancedSearchOpen = true;
|
|
30
|
+
}
|
|
31
|
+
function closeAdvancedSearch() {
|
|
32
|
+
isAdvancedSearchOpen = false;
|
|
33
|
+
}
|
|
34
|
+
</script>
|
|
35
|
+
|
|
36
|
+
<div
|
|
37
|
+
class="border border-slate-300 bg-white p-2 flex rounded mt-2 shadow {hasAdvancedSearch
|
|
38
|
+
? 'mb-0'
|
|
39
|
+
: 'mb-2'}
|
|
40
|
+
{isAdvancedSearchOpen ? 'rounded-b-none shadow-none' : ''}
|
|
41
|
+
"
|
|
42
|
+
>
|
|
43
|
+
<h1 class="text-2xl">
|
|
44
|
+
<slot name="title">Header goes here</slot>
|
|
45
|
+
</h1>
|
|
46
|
+
<div class="ml-auto my-auto flex">
|
|
47
|
+
{#if showSearch}
|
|
48
|
+
<div class="relative">
|
|
49
|
+
<input
|
|
50
|
+
disabled={!allowSearch || isBusy}
|
|
51
|
+
type="text"
|
|
52
|
+
class="border border-slate-300 rounded-md pl-2 pr-8 py-1.5
|
|
53
|
+
focus:border-indigo-500 focus:ring ring-indigo-500/30 focus:outline-none
|
|
54
|
+
md:min-w-[250px] lg:min-w-[300px]
|
|
55
|
+
rounded-r-none disabled:bg-slate-200 disabled:text-slate-400
|
|
56
|
+
"
|
|
57
|
+
placeholder={searchHint}
|
|
58
|
+
on:keyup={handleSearchRequested}
|
|
59
|
+
/>
|
|
60
|
+
<div class="absolute right-0 inset-y-0 w-8 flex">
|
|
61
|
+
<i class="bi bi-search m-auto text-slate-400"></i>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
{/if}
|
|
65
|
+
<button
|
|
66
|
+
disabled={isBusy}
|
|
67
|
+
title="Reload data"
|
|
68
|
+
type="button"
|
|
69
|
+
class="px-3 py-1.5 bg-emerald-500 text-emerald-50 first:rounded-l-md
|
|
70
|
+
focus:outline-none focus:ring ring-emerald-500/20 active:z-[500]
|
|
71
|
+
hover:bg-emerald-600 disabled:bg-slate-100 disabled:text-slate-300
|
|
72
|
+
last-of-type:rounded-r-md"
|
|
73
|
+
on:click={() => dispatch('refresh')}
|
|
74
|
+
>
|
|
75
|
+
<i class="bi bi-arrow-clockwise"></i>
|
|
76
|
+
</button>
|
|
77
|
+
{#if allowAdd}
|
|
78
|
+
<button
|
|
79
|
+
disabled={isBusy}
|
|
80
|
+
title="Add New Item"
|
|
81
|
+
type="button"
|
|
82
|
+
class="px-3 py-1.5 bg-blue-500 text-blue-50
|
|
83
|
+
focus:outline-none focus:ring ring-blue-500/20 active:z-[500]
|
|
84
|
+
hover:bg-blue-600 disabled:bg-slate-100 disabled:text-slate-300
|
|
85
|
+
last-of-type:rounded-r-md"
|
|
86
|
+
on:click={() => dispatch('addnew')}
|
|
87
|
+
>
|
|
88
|
+
<i class="bi bi-plus-lg"></i>
|
|
89
|
+
</button>
|
|
90
|
+
{/if}
|
|
91
|
+
{#if hasAdvancedSearch}
|
|
92
|
+
<div class="my-auto">
|
|
93
|
+
<button
|
|
94
|
+
disabled={isBusy}
|
|
95
|
+
on:click={toggleAdvancedSearch}
|
|
96
|
+
type="button"
|
|
97
|
+
class="mx-1 w-9 h-9 bg-white border border-slate-300
|
|
98
|
+
text-slate-500
|
|
99
|
+
hover:bg-slate-100 rounded-full my-auto
|
|
100
|
+
disabled:bg-slate-100 disabled:text-slate-300
|
|
101
|
+
transition-all ease-in-out duration-150"
|
|
102
|
+
>
|
|
103
|
+
<i
|
|
104
|
+
class="bi bi-chevron-down pointer-events-none block {isAdvancedSearchOpen
|
|
105
|
+
? 'rotate-0'
|
|
106
|
+
: 'rotate-180'}
|
|
107
|
+
transition-transform duration-150 ease-in-out
|
|
108
|
+
"
|
|
109
|
+
/>
|
|
110
|
+
</button>
|
|
111
|
+
</div>
|
|
112
|
+
{/if}
|
|
113
|
+
</div>
|
|
114
|
+
{#if popupMenuItems && popupMenuItems.length > 0}
|
|
115
|
+
<div class=" mx-2 relative my-auto">
|
|
116
|
+
<button
|
|
117
|
+
type="button"
|
|
118
|
+
class="px-3 py-1.5 text-blue-500 border border-blue-500 rounded
|
|
119
|
+
hover:bg-blue-50 active:bg-blue-500 active:text-blue-50 outline-blue-600 h-full
|
|
120
|
+
disabled:text-slate-300"
|
|
121
|
+
on:click={() => (isMenuOpen = true)}
|
|
122
|
+
>
|
|
123
|
+
<i class="bi bi-three-dots"></i>
|
|
124
|
+
</button>
|
|
125
|
+
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
126
|
+
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
|
127
|
+
<div
|
|
128
|
+
class="fixed inset-0 {isMenuOpen ? 'block' : 'hidden'} "
|
|
129
|
+
on:click={() => (isMenuOpen = false)}
|
|
130
|
+
/>
|
|
131
|
+
<div
|
|
132
|
+
class="absolute right-0 mt-1
|
|
133
|
+
bg-white border border-slate-300 shadow-lg rounded z-[1001]
|
|
134
|
+
transition-all ease-in-out duration-300 min-w-[220px]
|
|
135
|
+
grid
|
|
136
|
+
"
|
|
137
|
+
style="visibility: {isMenuOpen ? 'visible' : 'hidden'};grid-template-rows:{isMenuOpen
|
|
138
|
+
? '1fr'
|
|
139
|
+
: '0fr'};"
|
|
140
|
+
>
|
|
141
|
+
<div class="overflow-hidden">
|
|
142
|
+
<ul class="py-2 divide-y min-w-fit">
|
|
143
|
+
{#each popupMenuItems as menuItem (menuItem.id)}
|
|
144
|
+
<li class="flex">
|
|
145
|
+
<button
|
|
146
|
+
disabled={menuItem.disabled}
|
|
147
|
+
class="space-x-1 px-2 text-slate-600 hover:bg-slate-500/20
|
|
148
|
+
block flex-grow py-1 text-left active:text-slate-50 active:bg-slate-500
|
|
149
|
+
transition-all ease-in-out duration-300 focus:outline-none outline-none
|
|
150
|
+
disabled:text-slate-300 disabled:hover:bg-transparent whitespace-nowrap"
|
|
151
|
+
type="button"
|
|
152
|
+
on:click={() => {
|
|
153
|
+
menuItem.action();
|
|
154
|
+
isMenuOpen = false;
|
|
155
|
+
}}
|
|
156
|
+
>
|
|
157
|
+
{@html menuItem.content}
|
|
158
|
+
</button>
|
|
159
|
+
</li>
|
|
160
|
+
{/each}
|
|
161
|
+
</ul>
|
|
162
|
+
</div>
|
|
163
|
+
</div>
|
|
164
|
+
</div>
|
|
165
|
+
{/if}
|
|
166
|
+
</div>
|
|
167
|
+
<div
|
|
168
|
+
class="{hasAdvancedSearch ? 'grid' : 'hidden'} mb-2
|
|
169
|
+
{isAdvancedSearchOpen ? 'bg-slate-50 border border-slate-300 shadow' : ''}
|
|
170
|
+
transition-all duration-300 ease-linear
|
|
171
|
+
"
|
|
172
|
+
style={isAdvancedSearchOpen ? 'grid-template-rows:1fr;' : 'grid-template-rows:0fr;'}
|
|
173
|
+
>
|
|
174
|
+
<div class={isAdvancedSearchOpen ? '' : 'overflow-hidden'}>
|
|
175
|
+
<slot name="advancedsearch" />
|
|
176
|
+
</div>
|
|
177
|
+
</div>
|
|
178
|
+
|
|
179
|
+
<div class="bg-white border border-slate-300 shadow-md my-1">
|
|
180
|
+
<table class="w-full border-collapse">
|
|
181
|
+
<thead class="bg-gray-500 text-gray-50 border-b-2 border-b-gray-700">
|
|
182
|
+
<slot name="header" />
|
|
183
|
+
</thead>
|
|
184
|
+
<tbody>
|
|
185
|
+
<slot />
|
|
186
|
+
</tbody>
|
|
187
|
+
</table>
|
|
188
|
+
</div>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import type { PopupMenuItem } from './types.js';
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
allowAdd?: boolean;
|
|
6
|
+
allowSearch?: boolean;
|
|
7
|
+
showSearch?: boolean;
|
|
8
|
+
isBusy?: boolean;
|
|
9
|
+
popupMenuItems?: PopupMenuItem[] | undefined;
|
|
10
|
+
hasAdvancedSearch?: boolean;
|
|
11
|
+
searchHint?: string;
|
|
12
|
+
};
|
|
13
|
+
events: {
|
|
14
|
+
refresh: CustomEvent<any>;
|
|
15
|
+
addnew: CustomEvent<any>;
|
|
16
|
+
search: CustomEvent<any>;
|
|
17
|
+
} & {
|
|
18
|
+
[evt: string]: CustomEvent<any>;
|
|
19
|
+
};
|
|
20
|
+
slots: {
|
|
21
|
+
title: {};
|
|
22
|
+
advancedsearch: {};
|
|
23
|
+
header: {};
|
|
24
|
+
default: {};
|
|
25
|
+
};
|
|
26
|
+
exports?: {} | undefined;
|
|
27
|
+
bindings?: string | undefined;
|
|
28
|
+
};
|
|
29
|
+
export type DataTableProps = typeof __propDef.props;
|
|
30
|
+
export type DataTableEvents = typeof __propDef.events;
|
|
31
|
+
export type DataTableSlots = typeof __propDef.slots;
|
|
32
|
+
export default class DataTable extends SvelteComponent<DataTableProps, DataTableEvents, DataTableSlots> {
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<script>export let isHeader = false;
|
|
2
|
+
export let width = void 0;
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
{#if isHeader}
|
|
6
|
+
<th
|
|
7
|
+
class="px-2 py-1.5 border-r border-r-slate-300 last-of-type:border-r-0 text-left"
|
|
8
|
+
style={width === undefined ? '' : `width:${width}px`}
|
|
9
|
+
>
|
|
10
|
+
<slot />
|
|
11
|
+
</th>
|
|
12
|
+
{:else}
|
|
13
|
+
<td
|
|
14
|
+
class="px-2 py-1.5 border-r border-r-slate-300 last-of-type:border-r-0"
|
|
15
|
+
style={width === undefined ? '' : `width:${width}px`}
|
|
16
|
+
>
|
|
17
|
+
<slot />
|
|
18
|
+
</td>
|
|
19
|
+
{/if}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
isHeader?: boolean;
|
|
5
|
+
width?: number | undefined;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {
|
|
11
|
+
default: {};
|
|
12
|
+
};
|
|
13
|
+
exports?: {} | undefined;
|
|
14
|
+
bindings?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
export type DataTableCellProps = typeof __propDef.props;
|
|
17
|
+
export type DataTableCellEvents = typeof __propDef.events;
|
|
18
|
+
export type DataTableCellSlots = typeof __propDef.slots;
|
|
19
|
+
export default class DataTableCell extends SvelteComponent<DataTableCellProps, DataTableCellEvents, DataTableCellSlots> {
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
<script>import { createEventDispatcher, onMount } from "svelte";
|
|
2
|
+
import ConfirmModalDialog from "./ConfirmModalDialog.svelte";
|
|
3
|
+
export let allowDelete = true;
|
|
4
|
+
export let showEdit = true;
|
|
5
|
+
export let showDelete = true;
|
|
6
|
+
let deleteDialog;
|
|
7
|
+
let menuOpen = false;
|
|
8
|
+
let menuItemContainer;
|
|
9
|
+
const dispatch = createEventDispatcher();
|
|
10
|
+
const menuButtonStyle = `space-x-1 px-2 text-slate-600 hover:bg-slate-500/20
|
|
11
|
+
block w-full py-1 text-left active:text-slate-50 active:bg-slate-500
|
|
12
|
+
transition-all ease-in-out duration-300 focus:outline-none outline-none
|
|
13
|
+
disabled:text-slate-300 disabled:hover:bg-transparent
|
|
14
|
+
`;
|
|
15
|
+
export let menuWidth = 200;
|
|
16
|
+
function openMenu() {
|
|
17
|
+
menuOpen = true;
|
|
18
|
+
}
|
|
19
|
+
function closeMenu() {
|
|
20
|
+
menuOpen = false;
|
|
21
|
+
}
|
|
22
|
+
function editMenuItemClicked(_) {
|
|
23
|
+
dispatch("edit");
|
|
24
|
+
}
|
|
25
|
+
async function deleteMenuItemClicked() {
|
|
26
|
+
const result = await deleteDialog.showDialog();
|
|
27
|
+
if (result === "accept") {
|
|
28
|
+
dispatch("delete");
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
onMount(() => {
|
|
32
|
+
const buttons = menuItemContainer.querySelectorAll('[data-menu-item="true"]');
|
|
33
|
+
for (const button of buttons) {
|
|
34
|
+
button.addEventListener("click", () => closeMenu());
|
|
35
|
+
if (button.className === "") {
|
|
36
|
+
button.className = menuButtonStyle;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
</script>
|
|
41
|
+
|
|
42
|
+
<div class="relative">
|
|
43
|
+
<button
|
|
44
|
+
type="button"
|
|
45
|
+
class="px-3 py-1 rounded bg-emerald-500 text-emerald-50"
|
|
46
|
+
on:click={openMenu}
|
|
47
|
+
>
|
|
48
|
+
<i class="bi bi-three-dots-vertical"></i>
|
|
49
|
+
</button>
|
|
50
|
+
{#if true}
|
|
51
|
+
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
52
|
+
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
|
53
|
+
<div
|
|
54
|
+
class="fixed {menuOpen ? 'block' : 'hidden'} inset-0 bg-black/20 z-[1000]"
|
|
55
|
+
on:click={closeMenu}
|
|
56
|
+
/>
|
|
57
|
+
<div
|
|
58
|
+
class="absolute right-0
|
|
59
|
+
bg-white border border-slate-300 shadow-md rounded z-[1001]
|
|
60
|
+
transition-all ease-in-out duration-300
|
|
61
|
+
grid
|
|
62
|
+
"
|
|
63
|
+
style="visibility: {menuOpen ? 'visible' : 'hidden'};grid-template-rows:{menuOpen
|
|
64
|
+
? '1fr'
|
|
65
|
+
: '0fr'}; width:{menuWidth}px;"
|
|
66
|
+
>
|
|
67
|
+
<div class="overflow-hidden">
|
|
68
|
+
<ul class="py-2" bind:this={menuItemContainer}>
|
|
69
|
+
{#if showEdit}
|
|
70
|
+
<li>
|
|
71
|
+
<button
|
|
72
|
+
on:click={editMenuItemClicked}
|
|
73
|
+
data-menu-item="true"
|
|
74
|
+
type="button"
|
|
75
|
+
class={menuButtonStyle}
|
|
76
|
+
>
|
|
77
|
+
<i class="bi bi-pencil-square"></i>
|
|
78
|
+
<span>Edit</span>
|
|
79
|
+
</button>
|
|
80
|
+
</li>
|
|
81
|
+
{/if}
|
|
82
|
+
<slot />
|
|
83
|
+
{#if showDelete}
|
|
84
|
+
<li class="border-t border-t-slate-300">
|
|
85
|
+
<button
|
|
86
|
+
disabled={!allowDelete}
|
|
87
|
+
on:click={deleteMenuItemClicked}
|
|
88
|
+
data-menu-item="true"
|
|
89
|
+
type="button"
|
|
90
|
+
class="space-x-1 px-2 text-red-600 hover:bg-red-500/20
|
|
91
|
+
block w-full py-1 text-left active:text-red-50 active:bg-red-500
|
|
92
|
+
transition-all ease-in-out duration-300 focus:outline-none outline-none
|
|
93
|
+
disabled:text-slate-300 disabled:hover:bg-transparent
|
|
94
|
+
"
|
|
95
|
+
>
|
|
96
|
+
<i class="bi bi-trash"></i>
|
|
97
|
+
<span>Delete</span>
|
|
98
|
+
</button>
|
|
99
|
+
</li>
|
|
100
|
+
{/if}
|
|
101
|
+
</ul>
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
104
|
+
{/if}
|
|
105
|
+
</div>
|
|
106
|
+
<ConfirmModalDialog
|
|
107
|
+
bind:this={deleteDialog}
|
|
108
|
+
style="danger"
|
|
109
|
+
message="Are you sure you want to delete this record"
|
|
110
|
+
>
|
|
111
|
+
<span> Confirm Delete </span>
|
|
112
|
+
</ConfirmModalDialog>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
allowDelete?: boolean;
|
|
5
|
+
showEdit?: boolean;
|
|
6
|
+
showDelete?: boolean;
|
|
7
|
+
menuWidth?: number;
|
|
8
|
+
};
|
|
9
|
+
events: {
|
|
10
|
+
edit: CustomEvent<any>;
|
|
11
|
+
delete: CustomEvent<any>;
|
|
12
|
+
} & {
|
|
13
|
+
[evt: string]: CustomEvent<any>;
|
|
14
|
+
};
|
|
15
|
+
slots: {
|
|
16
|
+
default: {};
|
|
17
|
+
};
|
|
18
|
+
exports?: {} | undefined;
|
|
19
|
+
bindings?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
export type DataTableMenuButtonProps = typeof __propDef.props;
|
|
22
|
+
export type DataTableMenuButtonEvents = typeof __propDef.events;
|
|
23
|
+
export type DataTableMenuButtonSlots = typeof __propDef.slots;
|
|
24
|
+
export default class DataTableMenuButton extends SvelteComponent<DataTableMenuButtonProps, DataTableMenuButtonEvents, DataTableMenuButtonSlots> {
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {
|
|
8
|
+
default: {};
|
|
9
|
+
};
|
|
10
|
+
exports?: {} | undefined;
|
|
11
|
+
bindings?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
export type DataTableRowProps = typeof __propDef.props;
|
|
14
|
+
export type DataTableRowEvents = typeof __propDef.events;
|
|
15
|
+
export type DataTableRowSlots = typeof __propDef.slots;
|
|
16
|
+
export default class DataTableRow extends SvelteComponent<DataTableRowProps, DataTableRowEvents, DataTableRowSlots> {
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script>export let date;
|
|
2
|
+
export let showTimeStamp = true;
|
|
3
|
+
let dateFormatted = "";
|
|
4
|
+
$: {
|
|
5
|
+
if (typeof date === "string") {
|
|
6
|
+
date = new Date(date);
|
|
7
|
+
}
|
|
8
|
+
if (date) {
|
|
9
|
+
const formatter = new Intl.DateTimeFormat(void 0, {
|
|
10
|
+
dateStyle: "short",
|
|
11
|
+
timeStyle: showTimeStamp ? "short" : void 0
|
|
12
|
+
});
|
|
13
|
+
dateFormatted = formatter.format(date);
|
|
14
|
+
} else {
|
|
15
|
+
dateFormatted = "N/A";
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<span>
|
|
21
|
+
{dateFormatted}
|
|
22
|
+
</span>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
date: Date | string;
|
|
5
|
+
showTimeStamp?: boolean;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {};
|
|
11
|
+
exports?: {} | undefined;
|
|
12
|
+
bindings?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
export type DatePresenterProps = typeof __propDef.props;
|
|
15
|
+
export type DatePresenterEvents = typeof __propDef.events;
|
|
16
|
+
export type DatePresenterSlots = typeof __propDef.slots;
|
|
17
|
+
export default class DatePresenter extends SvelteComponent<DatePresenterProps, DatePresenterEvents, DatePresenterSlots> {
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
<script>import { onMount, createEventDispatcher } from "svelte";
|
|
2
|
+
import LabeledFormInput from "./LabeledFormInput.svelte";
|
|
3
|
+
export let labelText = void 0;
|
|
4
|
+
export let id = void 0;
|
|
5
|
+
export let readonly = false;
|
|
6
|
+
export let required = false;
|
|
7
|
+
export let value = void 0;
|
|
8
|
+
export let name = void 0;
|
|
9
|
+
export let placeholder = void 0;
|
|
10
|
+
export let validationText = void 0;
|
|
11
|
+
export let autocomplete = "off";
|
|
12
|
+
export let input = void 0;
|
|
13
|
+
export let customCss = "";
|
|
14
|
+
export let visible = true;
|
|
15
|
+
export let inputType = "datetime-local";
|
|
16
|
+
export let disabled = false;
|
|
17
|
+
let _value = "";
|
|
18
|
+
function padZero(num) {
|
|
19
|
+
return num > 9 ? `${num}` : `0${num}`;
|
|
20
|
+
}
|
|
21
|
+
$: {
|
|
22
|
+
if (value) {
|
|
23
|
+
if (typeof value === "string") {
|
|
24
|
+
value = new Date(value);
|
|
25
|
+
}
|
|
26
|
+
const year = value.getFullYear();
|
|
27
|
+
const month = value.getMonth() + 1;
|
|
28
|
+
const day = value.getDate();
|
|
29
|
+
_value = `${year}-${padZero(month)}-${padZero(day)}`;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
const dispatch = createEventDispatcher();
|
|
33
|
+
export let isValid = true;
|
|
34
|
+
let inputContainer;
|
|
35
|
+
function validateElement(event) {
|
|
36
|
+
if (input.dataset.validated !== "true") {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
isValid = input.checkValidity();
|
|
40
|
+
if (input.type === "number") {
|
|
41
|
+
console.clear();
|
|
42
|
+
console.log(value, isValid);
|
|
43
|
+
}
|
|
44
|
+
dispatch("validated", isValid);
|
|
45
|
+
}
|
|
46
|
+
function handleChange(event) {
|
|
47
|
+
const target = event.target;
|
|
48
|
+
_value = target.value;
|
|
49
|
+
if (_value === "" || _value === void 0) {
|
|
50
|
+
value = void 0;
|
|
51
|
+
dispatch("dateChanged", {
|
|
52
|
+
date: void 0
|
|
53
|
+
});
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
const parts = _value.split("-");
|
|
57
|
+
const year = Number(parts[0]);
|
|
58
|
+
const month = Number(parts[1]);
|
|
59
|
+
const dayOfMonth = Number(parts[2]);
|
|
60
|
+
const _date = new Date(year, month - 1, dayOfMonth);
|
|
61
|
+
value = _date;
|
|
62
|
+
dispatch("dateChanged", {
|
|
63
|
+
date: _date
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
onMount(() => {
|
|
67
|
+
if (id === void 0) {
|
|
68
|
+
let r = (Math.random() + 1).toString(36).substring(2);
|
|
69
|
+
id = `input${r}`;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
</script>
|
|
73
|
+
|
|
74
|
+
<LabeledFormInput
|
|
75
|
+
{labelText}
|
|
76
|
+
{id}
|
|
77
|
+
{validationText}
|
|
78
|
+
bind:isValid
|
|
79
|
+
{name}
|
|
80
|
+
{required}
|
|
81
|
+
{placeholder}
|
|
82
|
+
on:validated={validateElement}
|
|
83
|
+
{customCss}
|
|
84
|
+
{visible}
|
|
85
|
+
autoApplyCss={true}
|
|
86
|
+
>
|
|
87
|
+
<input
|
|
88
|
+
bind:this={input}
|
|
89
|
+
{disabled}
|
|
90
|
+
{id}
|
|
91
|
+
data-input="true"
|
|
92
|
+
type={inputType}
|
|
93
|
+
{required}
|
|
94
|
+
{autocomplete}
|
|
95
|
+
value={_value}
|
|
96
|
+
{placeholder}
|
|
97
|
+
{name}
|
|
98
|
+
on:change={handleChange}
|
|
99
|
+
{readonly}
|
|
100
|
+
/>
|
|
101
|
+
</LabeledFormInput>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
labelText?: string | undefined;
|
|
5
|
+
id?: string | undefined;
|
|
6
|
+
readonly?: boolean;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
value?: Date | undefined;
|
|
9
|
+
name?: string | undefined;
|
|
10
|
+
placeholder?: string | undefined;
|
|
11
|
+
validationText?: string | undefined;
|
|
12
|
+
autocomplete?: string | undefined;
|
|
13
|
+
input?: HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement | any | undefined;
|
|
14
|
+
customCss?: string;
|
|
15
|
+
visible?: boolean;
|
|
16
|
+
inputType?: "date" | "datetime-local";
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
isValid?: boolean;
|
|
19
|
+
};
|
|
20
|
+
events: {
|
|
21
|
+
validated: CustomEvent<any>;
|
|
22
|
+
dateChanged: CustomEvent<any>;
|
|
23
|
+
} & {
|
|
24
|
+
[evt: string]: CustomEvent<any>;
|
|
25
|
+
};
|
|
26
|
+
slots: {};
|
|
27
|
+
exports?: {} | undefined;
|
|
28
|
+
bindings?: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
export type LabeledDatePickerProps = typeof __propDef.props;
|
|
31
|
+
export type LabeledDatePickerEvents = typeof __propDef.events;
|
|
32
|
+
export type LabeledDatePickerSlots = typeof __propDef.slots;
|
|
33
|
+
export default class LabeledDatePicker extends SvelteComponent<LabeledDatePickerProps, LabeledDatePickerEvents, LabeledDatePickerSlots> {
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
@@ -18,6 +18,18 @@ export let allowZero = false;
|
|
|
18
18
|
export let disabled = false;
|
|
19
19
|
const dispatch = createEventDispatcher();
|
|
20
20
|
export let isValid = true;
|
|
21
|
+
let inputCss = `
|
|
22
|
+
border peer block w-full rounded shadow-sm bg-white text-neutral-900
|
|
23
|
+
${size === "sm" ? "py-1 px-2 text-sm" : ""}
|
|
24
|
+
${size === "md" ? "py-1.5 px-2 text-base" : ""}
|
|
25
|
+
${size === "lg" ? "py-2 px-2 text-lg" : ""}
|
|
26
|
+
focus:outline-none focus:ring
|
|
27
|
+
read-only:bg-neutral-100
|
|
28
|
+
dark:read-only:bg-neutral-800
|
|
29
|
+
placeholder:text-sm placeholder:font-thin
|
|
30
|
+
dark:bg-slate-900 dark:text-neutral-100 {numeric ? 'hide-browser-appearance' : ''}
|
|
31
|
+
${!isValid ? "border-pink-600 dark:border-pink-500 focus:ring-pink-600/20 dark:focus:ring-pink-600/40" : "dark:border-slate-600 border-slate-300 focus:ring-teal-500/20 dark:focus:ring-teal-500/30"}
|
|
32
|
+
${customCss}`;
|
|
21
33
|
let inputContainer;
|
|
22
34
|
function validateElement(event) {
|
|
23
35
|
if (input.dataset.validated !== "true") {
|
|
@@ -36,7 +48,7 @@ onMount(() => {
|
|
|
36
48
|
let r = (Math.random() + 1).toString(36).substring(2);
|
|
37
49
|
id = `input${r}`;
|
|
38
50
|
}
|
|
39
|
-
let elem = inputContainer.querySelector(
|
|
51
|
+
let elem = inputContainer.querySelector('[data-input="true"]');
|
|
40
52
|
if (elem) {
|
|
41
53
|
elem.dataset.requiresValidation = "true";
|
|
42
54
|
input = elem;
|
|
@@ -51,11 +63,7 @@ onMount(() => {
|
|
|
51
63
|
_input.placeholder = placeholder ?? "";
|
|
52
64
|
}
|
|
53
65
|
if (autoApplyCss) {
|
|
54
|
-
elem.className =
|
|
55
|
-
focus:outline-none focus:ring read-only:bg-neutral-100
|
|
56
|
-
placeholder:text-sm placeholder:font-thin
|
|
57
|
-
dark:bg-slate-900 dark:text-neutral-100
|
|
58
|
-
${!isValid ? "border-pink-600 dark:border-pink-500 focus:ring-pink-600/20 dark:focus:ring-pink-600/40" : "dark:border-slate-600 border-slate-300 focus:ring-blue-500/20 dark:focus:ring-blue-500/30"} ${customCss}`;
|
|
66
|
+
elem.className = inputCss;
|
|
59
67
|
}
|
|
60
68
|
}
|
|
61
69
|
if (numeric && input) {
|
|
@@ -79,6 +87,7 @@ onMount(() => {
|
|
|
79
87
|
<div bind:this={inputContainer}>
|
|
80
88
|
<slot>
|
|
81
89
|
<input
|
|
90
|
+
data-input="true"
|
|
82
91
|
bind:this={input}
|
|
83
92
|
{disabled}
|
|
84
93
|
{id}
|
|
@@ -93,7 +102,7 @@ onMount(() => {
|
|
|
93
102
|
read-only:bg-neutral-100
|
|
94
103
|
dark:read-only:bg-neutral-800
|
|
95
104
|
placeholder:text-sm placeholder:font-thin
|
|
96
|
-
dark:bg-slate-900 dark:text-neutral-100 {numeric ? '
|
|
105
|
+
dark:bg-slate-900 dark:text-neutral-100 {numeric ? '' : ''}
|
|
97
106
|
{!isValid
|
|
98
107
|
? 'border-pink-600 dark:border-pink-500 focus:ring-pink-600/20 dark:focus:ring-pink-600/40'
|
|
99
108
|
: 'dark:border-slate-600 border-slate-300 focus:ring-teal-500/20 dark:focus:ring-teal-500/30'}
|
|
@@ -11,6 +11,7 @@ export let placeholder = void 0;
|
|
|
11
11
|
export let validationText = void 0;
|
|
12
12
|
export let customCss = "";
|
|
13
13
|
export let customValidation = void 0;
|
|
14
|
+
export let disabled = false;
|
|
14
15
|
let input;
|
|
15
16
|
let isValid = true;
|
|
16
17
|
let inputType = "password";
|
|
@@ -67,6 +68,7 @@ onMount(() => {
|
|
|
67
68
|
{name}
|
|
68
69
|
{readonly}
|
|
69
70
|
{required}
|
|
71
|
+
{disabled}
|
|
70
72
|
bind:value
|
|
71
73
|
on:change
|
|
72
74
|
/>
|
|
@@ -79,7 +81,7 @@ onMount(() => {
|
|
|
79
81
|
>
|
|
80
82
|
{#if inputType === 'password'}
|
|
81
83
|
<svg
|
|
82
|
-
class="w-5 h-5
|
|
84
|
+
class="w-5 h-5"
|
|
83
85
|
aria-hidden="true"
|
|
84
86
|
xmlns="http://www.w3.org/2000/svg"
|
|
85
87
|
width="24"
|
|
@@ -96,7 +98,7 @@ onMount(() => {
|
|
|
96
98
|
</svg>
|
|
97
99
|
{:else}
|
|
98
100
|
<svg
|
|
99
|
-
class="w-5 h-5
|
|
101
|
+
class="w-5 h-5"
|
|
100
102
|
aria-hidden="true"
|
|
101
103
|
xmlns="http://www.w3.org/2000/svg"
|
|
102
104
|
width="24"
|
|
@@ -112,7 +114,7 @@ onMount(() => {
|
|
|
112
114
|
d="M3.933 13.909A4.357 4.357 0 0 1 3 12c0-1 4-6 9-6m7.6 3.8A5.068 5.068 0 0 1 21 12c0 1-3 6-9 6-.314 0-.62-.014-.918-.04M5 19 19 5m-4 7a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"
|
|
113
115
|
/>
|
|
114
116
|
</svg>
|
|
115
|
-
{/if}
|
|
117
|
+
{/if}
|
|
116
118
|
</button>
|
|
117
119
|
</div>
|
|
118
120
|
</LabeledFormInput>
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
<script>import { createEventDispatcher, onMount } from "svelte";
|
|
2
|
+
import LabeledInput from "./LabeledFormInput.svelte";
|
|
3
|
+
export let labelText = void 0;
|
|
4
|
+
export let id = void 0;
|
|
5
|
+
export let readonly = false;
|
|
6
|
+
export let required = false;
|
|
7
|
+
export let value = void 0;
|
|
8
|
+
export let name = void 0;
|
|
9
|
+
export let placeholder = void 0;
|
|
10
|
+
export let validationText = void 0;
|
|
11
|
+
export let customCss = "";
|
|
12
|
+
export let customValidation = void 0;
|
|
13
|
+
export let rows = 5;
|
|
14
|
+
const dispatch = createEventDispatcher();
|
|
15
|
+
let input;
|
|
16
|
+
let isValid = true;
|
|
17
|
+
function handleValidated(event) {
|
|
18
|
+
if (customValidation) {
|
|
19
|
+
isValid = event.detail && customValidation();
|
|
20
|
+
} else {
|
|
21
|
+
isValid = event.detail;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function validateElement() {
|
|
25
|
+
if (input.dataset.validated !== "true") {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
isValid = input.checkValidity();
|
|
29
|
+
dispatch("validated", isValid);
|
|
30
|
+
}
|
|
31
|
+
onMount(() => {
|
|
32
|
+
if (id === void 0) {
|
|
33
|
+
let r = (Math.random() + 1).toString(36).substring(2);
|
|
34
|
+
id = `input${r}`;
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
</script>
|
|
38
|
+
|
|
39
|
+
<LabeledInput
|
|
40
|
+
{labelText}
|
|
41
|
+
{id}
|
|
42
|
+
{validationText}
|
|
43
|
+
{isValid}
|
|
44
|
+
{name}
|
|
45
|
+
{required}
|
|
46
|
+
{placeholder}
|
|
47
|
+
{customCss}
|
|
48
|
+
autoApplyCss={true}
|
|
49
|
+
on:validated={handleValidated}
|
|
50
|
+
>
|
|
51
|
+
<textarea
|
|
52
|
+
data-input="true"
|
|
53
|
+
bind:this={input}
|
|
54
|
+
|
|
55
|
+
bind:value
|
|
56
|
+
{id}
|
|
57
|
+
{name}
|
|
58
|
+
{required}
|
|
59
|
+
{placeholder}
|
|
60
|
+
{readonly}
|
|
61
|
+
{rows}
|
|
62
|
+
data-requires-validation={required}
|
|
63
|
+
/>
|
|
64
|
+
</LabeledInput>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
labelText?: string | undefined;
|
|
5
|
+
id?: string | undefined;
|
|
6
|
+
readonly?: boolean;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
value?: string | number | undefined;
|
|
9
|
+
name?: string | undefined;
|
|
10
|
+
placeholder?: string | undefined;
|
|
11
|
+
validationText?: string | undefined;
|
|
12
|
+
customCss?: string;
|
|
13
|
+
customValidation?: (() => Boolean) | undefined;
|
|
14
|
+
rows?: number;
|
|
15
|
+
};
|
|
16
|
+
events: {
|
|
17
|
+
validated: CustomEvent<any>;
|
|
18
|
+
} & {
|
|
19
|
+
[evt: string]: CustomEvent<any>;
|
|
20
|
+
};
|
|
21
|
+
slots: {};
|
|
22
|
+
exports?: {} | undefined;
|
|
23
|
+
bindings?: string | undefined;
|
|
24
|
+
};
|
|
25
|
+
export type LabeledTextAreaProps = typeof __propDef.props;
|
|
26
|
+
export type LabeledTextAreaEvents = typeof __propDef.events;
|
|
27
|
+
export type LabeledTextAreaSlots = typeof __propDef.slots;
|
|
28
|
+
export default class LabeledTextArea extends SvelteComponent<LabeledTextAreaProps, LabeledTextAreaEvents, LabeledTextAreaSlots> {
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
export type Size = 'sm' | 'md' | 'lg';
|
|
2
2
|
export type ColorThemes = 'red' | 'dark' | 'indigo' | 'teal' | 'blue' | 'purple' | 'slate';
|
|
3
|
+
export type PopupMenuItem = {
|
|
4
|
+
id: number;
|
|
5
|
+
content: string;
|
|
6
|
+
action: (param?: any | undefined) => {};
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -10,4 +10,12 @@ import Alert from "./components/Alert.svelte";
|
|
|
10
10
|
import HyperLink from "./components/HyperLink.svelte";
|
|
11
11
|
import LabeledSelect from "./components/LabeledSelect.svelte";
|
|
12
12
|
import ModalDialog from "./components/ModalDialog.svelte";
|
|
13
|
-
|
|
13
|
+
import BooleanPresenter from "./components/BooleanPresenter.svelte";
|
|
14
|
+
import DatePresenter from "./components/DatePresenter.svelte";
|
|
15
|
+
import DataTable from "./components/DataTable.svelte";
|
|
16
|
+
import DataTableCell from "./components/DataTableCell.svelte";
|
|
17
|
+
import DataTableRow from "./components/DataTableRow.svelte";
|
|
18
|
+
import DataTableMenuButton from "./components/DataTableMenuButton.svelte";
|
|
19
|
+
import LabeledDatePicker from "./components/LabeledDatePicker.svelte";
|
|
20
|
+
import LabeledTextArea from "./components/LabeledTextArea.svelte";
|
|
21
|
+
export { Button, LoadingIndicator, Card, CardHeader, Form, ToggleButton, LabeledFormInput, LabeledPasswordInput, Alert, HyperLink, LabeledSelect, ModalDialog, BooleanPresenter, DataTable, DataTableCell, DataTableRow, DataTableMenuButton, DatePresenter, LabeledDatePicker, LabeledTextArea };
|
package/dist/index.js
CHANGED
|
@@ -11,4 +11,12 @@ import Alert from "./components/Alert.svelte";
|
|
|
11
11
|
import HyperLink from "./components/HyperLink.svelte";
|
|
12
12
|
import LabeledSelect from "./components/LabeledSelect.svelte";
|
|
13
13
|
import ModalDialog from "./components/ModalDialog.svelte";
|
|
14
|
-
|
|
14
|
+
import BooleanPresenter from "./components/BooleanPresenter.svelte";
|
|
15
|
+
import DatePresenter from "./components/DatePresenter.svelte";
|
|
16
|
+
import DataTable from "./components/DataTable.svelte";
|
|
17
|
+
import DataTableCell from "./components/DataTableCell.svelte";
|
|
18
|
+
import DataTableRow from "./components/DataTableRow.svelte";
|
|
19
|
+
import DataTableMenuButton from "./components/DataTableMenuButton.svelte";
|
|
20
|
+
import LabeledDatePicker from "./components/LabeledDatePicker.svelte";
|
|
21
|
+
import LabeledTextArea from "./components/LabeledTextArea.svelte";
|
|
22
|
+
export { Button, LoadingIndicator, Card, CardHeader, Form, ToggleButton, LabeledFormInput, LabeledPasswordInput, Alert, HyperLink, LabeledSelect, ModalDialog, BooleanPresenter, DataTable, DataTableCell, DataTableRow, DataTableMenuButton, DatePresenter, LabeledDatePicker, LabeledTextArea };
|