sveltacular 0.0.76 → 0.0.77
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/forms/bool-box/bool-box.svelte +4 -5
- package/dist/forms/bool-box/bool-box.svelte.d.ts +5 -3
- package/dist/forms/button/button.svelte.d.ts +11 -9
- package/dist/forms/check-box/check-box-group.svelte.d.ts +9 -7
- package/dist/forms/check-box/check-box.svelte.d.ts +5 -3
- package/dist/forms/combo/new-or-existing-combo.svelte.d.ts +12 -10
- package/dist/forms/date-box/date-box.svelte +3 -6
- package/dist/forms/date-box/date-box.svelte.d.ts +9 -7
- package/dist/forms/file-area/file-area.svelte +11 -22
- package/dist/forms/file-area/file-area.svelte.d.ts +5 -3
- package/dist/forms/file-box/file-box.svelte.d.ts +11 -9
- package/dist/forms/form-field.svelte +2 -4
- package/dist/forms/form-field.svelte.d.ts +3 -1
- package/dist/forms/form-footer.svelte.d.ts +2 -0
- package/dist/forms/form-header.svelte.d.ts +4 -2
- package/dist/forms/form-label.svelte.d.ts +4 -2
- package/dist/forms/form-section.svelte.d.ts +3 -1
- package/dist/forms/form.svelte.d.ts +4 -2
- package/dist/forms/info-box/info-box.svelte.d.ts +3 -1
- package/dist/forms/list-box/list-box.svelte +9 -18
- package/dist/forms/list-box/list-box.svelte.d.ts +9 -7
- package/dist/forms/money-box/money-box.svelte +17 -31
- package/dist/forms/money-box/money-box.svelte.d.ts +11 -9
- package/dist/forms/number-box/number-box.svelte +7 -14
- package/dist/forms/number-box/number-box.svelte.d.ts +12 -10
- package/dist/forms/phone-box/phone-box.svelte +8 -16
- package/dist/forms/phone-box/phone-box.svelte.d.ts +4 -2
- package/dist/forms/radio-group/radio-box.svelte.d.ts +3 -1
- package/dist/forms/radio-group/radio-group.svelte.d.ts +7 -5
- package/dist/forms/switch-box/switch-box.svelte.d.ts +4 -2
- package/dist/forms/text-area/text-area.svelte.d.ts +9 -7
- package/dist/forms/text-box/text-box.svelte.d.ts +14 -12
- package/dist/forms/url-box/url-box.svelte.d.ts +6 -4
- package/dist/generic/address/address.svelte +4 -6
- package/dist/generic/address/address.svelte.d.ts +7 -5
- package/dist/generic/card/card-container.svelte +1 -2
- package/dist/generic/card/card-container.svelte.d.ts +4 -2
- package/dist/generic/card/card.svelte +2 -4
- package/dist/generic/card/card.svelte.d.ts +3 -1
- package/dist/generic/date/date-time.svelte +19 -25
- package/dist/generic/date/date-time.svelte.d.ts +6 -4
- package/dist/generic/divider/divider.svelte.d.ts +2 -0
- package/dist/generic/dot/dot.svelte.d.ts +5 -3
- package/dist/generic/dropdown-item/dropdown-item.svelte.d.ts +3 -1
- package/dist/generic/email/email.svelte.d.ts +3 -1
- package/dist/generic/empty/empty.svelte.d.ts +7 -5
- package/dist/generic/header/header.svelte.d.ts +6 -4
- package/dist/generic/link/link.svelte.d.ts +5 -3
- package/dist/generic/list/list-item.svelte.d.ts +2 -0
- package/dist/generic/list/list.svelte.d.ts +4 -2
- package/dist/generic/menu/menu.svelte +3 -6
- package/dist/generic/menu/menu.svelte.d.ts +10 -8
- package/dist/generic/notice/notice.svelte +3 -4
- package/dist/generic/notice/notice.svelte.d.ts +6 -4
- package/dist/generic/overlay.svelte.d.ts +3 -1
- package/dist/generic/panel/panel.svelte.d.ts +3 -1
- package/dist/generic/phone/phone.svelte +4 -8
- package/dist/generic/phone/phone.svelte.d.ts +3 -1
- package/dist/generic/pill/pill.svelte.d.ts +7 -5
- package/dist/generic/scorecard/scorecard.svelte +3 -6
- package/dist/generic/scorecard/scorecard.svelte.d.ts +3 -1
- package/dist/generic/section/section.svelte.d.ts +6 -4
- package/dist/generic/toaster/toaster.svelte.d.ts +2 -0
- package/dist/helpers/ago.d.ts +1 -1
- package/dist/helpers/subscribable.d.ts +0 -1
- package/dist/icons/angle-right-icon.svelte.d.ts +2 -0
- package/dist/icons/angle-up-icon.svelte.d.ts +2 -0
- package/dist/icons/check-icon.svelte.d.ts +2 -0
- package/dist/icons/envelope-icon.svelte.d.ts +2 -0
- package/dist/icons/folder-open-icon.svelte.d.ts +2 -0
- package/dist/icons/hamburger-icon.svelte.d.ts +2 -0
- package/dist/icons/home-icon.svelte.d.ts +2 -0
- package/dist/icons/link-icon.svelte.d.ts +2 -0
- package/dist/icons/mobile-phone-icon.svelte.d.ts +2 -0
- package/dist/icons/phone-icon.svelte.d.ts +2 -0
- package/dist/icons/svg-icon.svelte +2 -4
- package/dist/icons/svg-icon.svelte.d.ts +9 -7
- package/dist/icons/upload-icon.svelte.d.ts +2 -0
- package/dist/images/icon.svelte.d.ts +3 -1
- package/dist/images/image.svelte +2 -4
- package/dist/images/image.svelte.d.ts +7 -5
- package/dist/layout/flex-col.svelte +6 -12
- package/dist/layout/flex-col.svelte.d.ts +8 -6
- package/dist/layout/flex-item.svelte.d.ts +4 -2
- package/dist/layout/flex-row.svelte +6 -12
- package/dist/layout/flex-row.svelte.d.ts +10 -8
- package/dist/layout/grid.svelte.d.ts +2 -0
- package/dist/modals/alert.svelte.d.ts +7 -5
- package/dist/modals/confirm.svelte.d.ts +9 -7
- package/dist/modals/dialog-body.svelte.d.ts +2 -0
- package/dist/modals/dialog-close-button.svelte.d.ts +3 -1
- package/dist/modals/dialog-footer.svelte.d.ts +2 -0
- package/dist/modals/dialog-header.svelte.d.ts +2 -0
- package/dist/modals/dialog-window.svelte.d.ts +3 -1
- package/dist/modals/modal.svelte +2 -4
- package/dist/modals/modal.svelte.d.ts +6 -4
- package/dist/modals/prompt.svelte +1 -2
- package/dist/modals/prompt.svelte.d.ts +12 -10
- package/dist/navigation/accordian/accordian.svelte.d.ts +3 -1
- package/dist/navigation/app-bar/app-bar.svelte +0 -8
- package/dist/navigation/app-bar/app-bar.svelte.d.ts +6 -4
- package/dist/navigation/app-bar/app-branding.svelte.d.ts +2 -0
- package/dist/navigation/app-bar/app-logo.svelte.d.ts +2 -0
- package/dist/navigation/app-bar/app-nav-item.svelte +1 -2
- package/dist/navigation/app-bar/app-nav-item.svelte.d.ts +2 -0
- package/dist/navigation/app-bar/app-nav.svelte.d.ts +4 -2
- package/dist/navigation/breadcrumbs/breadcrumbs.svelte +1 -2
- package/dist/navigation/breadcrumbs/breadcrumbs.svelte.d.ts +7 -5
- package/dist/navigation/dropdown-button/dropdown-button.svelte +1 -2
- package/dist/navigation/dropdown-button/dropdown-button.svelte.d.ts +5 -3
- package/dist/navigation/pagination/pagination.svelte +17 -22
- package/dist/navigation/pagination/pagination.svelte.d.ts +7 -5
- package/dist/navigation/side-bar/side-bar.svelte.d.ts +3 -1
- package/dist/navigation/tabs/tab-group.svelte +3 -6
- package/dist/navigation/tabs/tab-group.svelte.d.ts +3 -1
- package/dist/navigation/tabs/tab.svelte +1 -2
- package/dist/navigation/tabs/tab.svelte.d.ts +3 -1
- package/dist/navigation/wizard/wizard-step.svelte +2 -4
- package/dist/navigation/wizard/wizard-step.svelte.d.ts +2 -0
- package/dist/navigation/wizard/wizard.svelte +8 -16
- package/dist/navigation/wizard/wizard.svelte.d.ts +6 -4
- package/dist/placeholders/loading.svelte.d.ts +3 -1
- package/dist/placeholders/progress.svelte.d.ts +3 -1
- package/dist/placeholders/skeleton-input.svelte.d.ts +3 -1
- package/dist/placeholders/skeleton-text.svelte +1 -2
- package/dist/placeholders/skeleton-text.svelte.d.ts +5 -3
- package/dist/tables/data-grid.svelte +17 -34
- package/dist/tables/data-grid.svelte.d.ts +7 -5
- package/dist/tables/table-body.svelte.d.ts +2 -0
- package/dist/tables/table-caption.svelte.d.ts +4 -2
- package/dist/tables/table-cell.svelte +1 -2
- package/dist/tables/table-cell.svelte.d.ts +3 -1
- package/dist/tables/table-footer-cell.svelte.d.ts +3 -1
- package/dist/tables/table-footer-row.svelte.d.ts +2 -0
- package/dist/tables/table-footer.svelte.d.ts +2 -0
- package/dist/tables/table-header-cell.svelte +5 -6
- package/dist/tables/table-header-cell.svelte.d.ts +3 -1
- package/dist/tables/table-header-row.svelte.d.ts +2 -0
- package/dist/tables/table-header.svelte.d.ts +2 -0
- package/dist/tables/table-row.svelte.d.ts +2 -0
- package/dist/tables/table.svelte.d.ts +2 -0
- package/dist/timeline/timeline-item.svelte.d.ts +5 -3
- package/dist/timeline/timeline.svelte.d.ts +2 -0
- package/dist/typography/code-block.svelte.d.ts +3 -1
- package/dist/typography/headline.svelte.d.ts +4 -2
- package/dist/typography/paragraph.svelte.d.ts +2 -0
- package/dist/typography/subtitle.svelte.d.ts +4 -2
- package/dist/typography/text.svelte.d.ts +5 -3
- package/package.json +32 -32
|
@@ -6,18 +6,12 @@ export let wrap = false;
|
|
|
6
6
|
export let justifyContent = "space-between";
|
|
7
7
|
export let alignItems = "stretch";
|
|
8
8
|
export let alignContent = "stretch";
|
|
9
|
-
$:
|
|
10
|
-
|
|
11
|
-
$:
|
|
12
|
-
|
|
13
|
-
$:
|
|
14
|
-
|
|
15
|
-
$:
|
|
16
|
-
_alignContent = ["start", "end"].includes(alignContent) ? `flex-${alignContent}` : ["between", "around"].includes(alignContent) ? `space-${alignContent}` : alignContent;
|
|
17
|
-
$:
|
|
18
|
-
_alignItems = ["start", "end"].includes(alignItems) ? `flex-${alignItems}` : alignItems;
|
|
19
|
-
$:
|
|
20
|
-
_gap = typeof gap === "number" ? `${gap}px` : gap;
|
|
9
|
+
$: _marginTop = typeof marginTop === "number" ? `${marginTop}px` : marginTop;
|
|
10
|
+
$: _marginBottom = typeof marginBottom === "number" ? `${marginBottom}px` : marginBottom;
|
|
11
|
+
$: _justifyContent = ["start", "end"].includes(justifyContent) ? `flex-${justifyContent}` : ["between", "around", "evenly"].includes(justifyContent) ? `space-${justifyContent}` : justifyContent;
|
|
12
|
+
$: _alignContent = ["start", "end"].includes(alignContent) ? `flex-${alignContent}` : ["between", "around"].includes(alignContent) ? `space-${alignContent}` : alignContent;
|
|
13
|
+
$: _alignItems = ["start", "end"].includes(alignItems) ? `flex-${alignItems}` : alignItems;
|
|
14
|
+
$: _gap = typeof gap === "number" ? `${gap}px` : gap;
|
|
21
15
|
</script>
|
|
22
16
|
|
|
23
17
|
<div
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
marginBottom?: string | number
|
|
5
|
-
marginTop?: string | number
|
|
6
|
-
gap?: string | number
|
|
7
|
-
size?: "
|
|
8
|
-
wrap?: boolean
|
|
9
|
-
justifyContent?: "start" | "center" | "end" | "
|
|
10
|
-
alignItems?: "
|
|
11
|
-
alignContent?: "start" | "center" | "end" | "
|
|
4
|
+
marginBottom?: string | number;
|
|
5
|
+
marginTop?: string | number;
|
|
6
|
+
gap?: string | number;
|
|
7
|
+
size?: "auto" | "full";
|
|
8
|
+
wrap?: boolean;
|
|
9
|
+
justifyContent?: "start" | "center" | "end" | "space-between" | "space-around" | "space-evenly" | "stretch" | "baseline";
|
|
10
|
+
alignItems?: "start" | "center" | "end" | "stretch" | "auto";
|
|
11
|
+
alignContent?: "start" | "center" | "end" | "space-between" | "space-around" | "stretch";
|
|
12
12
|
};
|
|
13
13
|
events: {
|
|
14
14
|
[evt: string]: CustomEvent<any>;
|
|
@@ -16,6 +16,8 @@ declare const __propDef: {
|
|
|
16
16
|
slots: {
|
|
17
17
|
default: {};
|
|
18
18
|
};
|
|
19
|
+
exports?: {} | undefined;
|
|
20
|
+
bindings?: string | undefined;
|
|
19
21
|
};
|
|
20
22
|
export type FlexRowProps = typeof __propDef.props;
|
|
21
23
|
export type FlexRowEvents = typeof __propDef.events;
|
|
@@ -2,12 +2,12 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
import type { FormFieldSizeOptions } from '../types/form.js';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
open?: boolean
|
|
5
|
+
open?: boolean;
|
|
6
6
|
title?: string | undefined;
|
|
7
|
-
size?: FormFieldSizeOptions
|
|
8
|
-
buttonText?: string
|
|
9
|
-
buttonStyle?: "primary" | "secondary" | "danger"
|
|
10
|
-
showCloseButton?: boolean
|
|
7
|
+
size?: FormFieldSizeOptions;
|
|
8
|
+
buttonText?: string;
|
|
9
|
+
buttonStyle?: "primary" | "secondary" | "danger";
|
|
10
|
+
showCloseButton?: boolean;
|
|
11
11
|
};
|
|
12
12
|
events: {
|
|
13
13
|
close: CustomEvent<void>;
|
|
@@ -17,6 +17,8 @@ declare const __propDef: {
|
|
|
17
17
|
slots: {
|
|
18
18
|
default: {};
|
|
19
19
|
};
|
|
20
|
+
exports?: {} | undefined;
|
|
21
|
+
bindings?: string | undefined;
|
|
20
22
|
};
|
|
21
23
|
export type AlertProps = typeof __propDef.props;
|
|
22
24
|
export type AlertEvents = typeof __propDef.events;
|
|
@@ -2,14 +2,14 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
import type { FormFieldSizeOptions } from '../types/form.js';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
open?: boolean
|
|
5
|
+
open?: boolean;
|
|
6
6
|
title?: string | undefined;
|
|
7
|
-
size?: FormFieldSizeOptions
|
|
8
|
-
yesText?: string
|
|
9
|
-
noText?: string
|
|
10
|
-
yesStyle?: "primary" | "secondary" | "danger"
|
|
11
|
-
noStyle?: "primary" | "secondary" | "danger"
|
|
12
|
-
showCloseButton?: boolean
|
|
7
|
+
size?: FormFieldSizeOptions;
|
|
8
|
+
yesText?: string;
|
|
9
|
+
noText?: string;
|
|
10
|
+
yesStyle?: "primary" | "secondary" | "danger";
|
|
11
|
+
noStyle?: "primary" | "secondary" | "danger";
|
|
12
|
+
showCloseButton?: boolean;
|
|
13
13
|
};
|
|
14
14
|
events: {
|
|
15
15
|
yes: CustomEvent<void>;
|
|
@@ -20,6 +20,8 @@ declare const __propDef: {
|
|
|
20
20
|
slots: {
|
|
21
21
|
default: {};
|
|
22
22
|
};
|
|
23
|
+
exports?: {} | undefined;
|
|
24
|
+
bindings?: string | undefined;
|
|
23
25
|
};
|
|
24
26
|
export type ConfirmProps = typeof __propDef.props;
|
|
25
27
|
export type ConfirmEvents = typeof __propDef.events;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
show?: boolean
|
|
4
|
+
show?: boolean;
|
|
5
5
|
};
|
|
6
6
|
events: {
|
|
7
7
|
click: CustomEvent<void>;
|
|
@@ -9,6 +9,8 @@ declare const __propDef: {
|
|
|
9
9
|
[evt: string]: CustomEvent<any>;
|
|
10
10
|
};
|
|
11
11
|
slots: {};
|
|
12
|
+
exports?: {} | undefined;
|
|
13
|
+
bindings?: string | undefined;
|
|
12
14
|
};
|
|
13
15
|
export type DialogCloseButtonProps = typeof __propDef.props;
|
|
14
16
|
export type DialogCloseButtonEvents = typeof __propDef.events;
|
|
@@ -2,7 +2,7 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
import type { FormFieldSizeOptions } from '../types/form.js';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
size?: FormFieldSizeOptions
|
|
5
|
+
size?: FormFieldSizeOptions;
|
|
6
6
|
};
|
|
7
7
|
events: {
|
|
8
8
|
[evt: string]: CustomEvent<any>;
|
|
@@ -10,6 +10,8 @@ declare const __propDef: {
|
|
|
10
10
|
slots: {
|
|
11
11
|
default: {};
|
|
12
12
|
};
|
|
13
|
+
exports?: {} | undefined;
|
|
14
|
+
bindings?: string | undefined;
|
|
13
15
|
};
|
|
14
16
|
export type DialogWindowProps = typeof __propDef.props;
|
|
15
17
|
export type DialogWindowEvents = typeof __propDef.events;
|
package/dist/modals/modal.svelte
CHANGED
|
@@ -9,13 +9,11 @@ export let size = "md";
|
|
|
9
9
|
export let showCloseButton = true;
|
|
10
10
|
export let dismissable = true;
|
|
11
11
|
const close = () => {
|
|
12
|
-
if (!dismissable)
|
|
13
|
-
return;
|
|
12
|
+
if (!dismissable) return;
|
|
14
13
|
dispatch("close");
|
|
15
14
|
open = false;
|
|
16
15
|
};
|
|
17
|
-
$:
|
|
18
|
-
_showCloseButton = dismissable && showCloseButton;
|
|
16
|
+
$: _showCloseButton = dismissable && showCloseButton;
|
|
19
17
|
</script>
|
|
20
18
|
|
|
21
19
|
{#if open}
|
|
@@ -2,10 +2,10 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
import type { FormFieldSizeOptions } from '../types/form.js';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
open?: boolean
|
|
6
|
-
size?: FormFieldSizeOptions
|
|
7
|
-
showCloseButton?: boolean
|
|
8
|
-
dismissable?: boolean
|
|
5
|
+
open?: boolean;
|
|
6
|
+
size?: FormFieldSizeOptions;
|
|
7
|
+
showCloseButton?: boolean;
|
|
8
|
+
dismissable?: boolean;
|
|
9
9
|
};
|
|
10
10
|
events: {
|
|
11
11
|
close: CustomEvent<void>;
|
|
@@ -15,6 +15,8 @@ declare const __propDef: {
|
|
|
15
15
|
slots: {
|
|
16
16
|
default: {};
|
|
17
17
|
};
|
|
18
|
+
exports?: {} | undefined;
|
|
19
|
+
bindings?: string | undefined;
|
|
18
20
|
};
|
|
19
21
|
export type ModalProps = typeof __propDef.props;
|
|
20
22
|
export type ModalEvents = typeof __propDef.events;
|
|
@@ -2,17 +2,17 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
import type { AllowedTextInputTypes, FormFieldSizeOptions } from '../types/form.js';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
open?: boolean
|
|
5
|
+
open?: boolean;
|
|
6
6
|
title?: string | undefined;
|
|
7
|
-
size?: FormFieldSizeOptions
|
|
8
|
-
okText?: string
|
|
9
|
-
cancelText?: string
|
|
10
|
-
okStyle?: "primary" | "secondary" | "danger"
|
|
11
|
-
cancelStyle?: "primary" | "secondary" | "danger"
|
|
12
|
-
showCloseButton?: boolean
|
|
13
|
-
placeholder?: string
|
|
14
|
-
type?: AllowedTextInputTypes
|
|
15
|
-
required?: boolean
|
|
7
|
+
size?: FormFieldSizeOptions;
|
|
8
|
+
okText?: string;
|
|
9
|
+
cancelText?: string;
|
|
10
|
+
okStyle?: "primary" | "secondary" | "danger";
|
|
11
|
+
cancelStyle?: "primary" | "secondary" | "danger";
|
|
12
|
+
showCloseButton?: boolean;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
type?: AllowedTextInputTypes;
|
|
15
|
+
required?: boolean;
|
|
16
16
|
};
|
|
17
17
|
events: {
|
|
18
18
|
ok: CustomEvent<string>;
|
|
@@ -23,6 +23,8 @@ declare const __propDef: {
|
|
|
23
23
|
slots: {
|
|
24
24
|
default: {};
|
|
25
25
|
};
|
|
26
|
+
exports?: {} | undefined;
|
|
27
|
+
bindings?: string | undefined;
|
|
26
28
|
};
|
|
27
29
|
export type PromptProps = typeof __propDef.props;
|
|
28
30
|
export type PromptEvents = typeof __propDef.events;
|
|
@@ -2,7 +2,7 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
4
|
title: string;
|
|
5
|
-
expanded?: boolean
|
|
5
|
+
expanded?: boolean;
|
|
6
6
|
};
|
|
7
7
|
events: {
|
|
8
8
|
[evt: string]: CustomEvent<any>;
|
|
@@ -10,6 +10,8 @@ declare const __propDef: {
|
|
|
10
10
|
slots: {
|
|
11
11
|
default: {};
|
|
12
12
|
};
|
|
13
|
+
exports?: {} | undefined;
|
|
14
|
+
bindings?: string | undefined;
|
|
13
15
|
};
|
|
14
16
|
export type AccordianProps = typeof __propDef.props;
|
|
15
17
|
export type AccordianEvents = typeof __propDef.events;
|
|
@@ -30,14 +30,6 @@ setContext("app-bar", {
|
|
|
30
30
|
height: 3rem;
|
|
31
31
|
font-family: var(--base-font-family, sans-serif);
|
|
32
32
|
}
|
|
33
|
-
header a {
|
|
34
|
-
color: var(--nav-link, rgb(33, 150, 243));
|
|
35
|
-
text-decoration: none;
|
|
36
|
-
}
|
|
37
|
-
header a:hover {
|
|
38
|
-
color: var(--nav-link-hover, rgb(66, 165, 245));
|
|
39
|
-
text-decoration: underline;
|
|
40
|
-
}
|
|
41
33
|
header.fixed {
|
|
42
34
|
position: fixed;
|
|
43
35
|
}
|
|
@@ -2,10 +2,10 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
import type { FormFieldSizeOptions } from '../../types/form.js';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
isFixed?: boolean
|
|
6
|
-
position?: "top" | "bottom"
|
|
7
|
-
size?: FormFieldSizeOptions | "xs"
|
|
8
|
-
padding?:
|
|
5
|
+
isFixed?: boolean;
|
|
6
|
+
position?: "top" | "bottom";
|
|
7
|
+
size?: FormFieldSizeOptions | "xs";
|
|
8
|
+
padding?: "none" | FormFieldSizeOptions;
|
|
9
9
|
};
|
|
10
10
|
events: {
|
|
11
11
|
[evt: string]: CustomEvent<any>;
|
|
@@ -13,6 +13,8 @@ declare const __propDef: {
|
|
|
13
13
|
slots: {
|
|
14
14
|
default: {};
|
|
15
15
|
};
|
|
16
|
+
exports?: {} | undefined;
|
|
17
|
+
bindings?: string | undefined;
|
|
16
18
|
};
|
|
17
19
|
export type AppBarProps = typeof __propDef.props;
|
|
18
20
|
export type AppBarEvents = typeof __propDef.events;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
align?: "
|
|
5
|
-
spacing?: "none" | "
|
|
4
|
+
align?: "left" | "center" | "right" | "start" | "end";
|
|
5
|
+
spacing?: "none" | "tight" | "medium" | "loose" | "space-evenly" | "space-around" | "space-between";
|
|
6
6
|
};
|
|
7
7
|
events: {
|
|
8
8
|
[evt: string]: CustomEvent<any>;
|
|
@@ -10,6 +10,8 @@ declare const __propDef: {
|
|
|
10
10
|
slots: {
|
|
11
11
|
default: {};
|
|
12
12
|
};
|
|
13
|
+
exports?: {} | undefined;
|
|
14
|
+
bindings?: string | undefined;
|
|
13
15
|
};
|
|
14
16
|
export type AppNavProps = typeof __propDef.props;
|
|
15
17
|
export type AppNavEvents = typeof __propDef.events;
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
homeUrl?: string | null
|
|
4
|
+
homeUrl?: string | null;
|
|
5
5
|
crumbs?: (string | {
|
|
6
6
|
label: string;
|
|
7
|
-
href?: string
|
|
8
|
-
})[]
|
|
9
|
-
size?: "sm" | "md" | "lg"
|
|
10
|
-
separator?: string
|
|
7
|
+
href?: string;
|
|
8
|
+
})[];
|
|
9
|
+
size?: "sm" | "md" | "lg";
|
|
10
|
+
separator?: string;
|
|
11
11
|
};
|
|
12
12
|
events: {
|
|
13
13
|
[evt: string]: CustomEvent<any>;
|
|
14
14
|
};
|
|
15
15
|
slots: {};
|
|
16
|
+
exports?: {} | undefined;
|
|
17
|
+
bindings?: string | undefined;
|
|
16
18
|
};
|
|
17
19
|
export type BreadcrumbsProps = typeof __propDef.props;
|
|
18
20
|
export type BreadcrumbsEvents = typeof __propDef.events;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
open?: boolean
|
|
4
|
+
open?: boolean;
|
|
5
5
|
text?: string | undefined;
|
|
6
|
-
style?: "
|
|
7
|
-
icon?: "
|
|
6
|
+
style?: "standard" | "ghost";
|
|
7
|
+
icon?: "arrow" | "none";
|
|
8
8
|
};
|
|
9
9
|
events: {
|
|
10
10
|
[evt: string]: CustomEvent<any>;
|
|
@@ -12,6 +12,8 @@ declare const __propDef: {
|
|
|
12
12
|
slots: {
|
|
13
13
|
default: {};
|
|
14
14
|
};
|
|
15
|
+
exports?: {} | undefined;
|
|
16
|
+
bindings?: string | undefined;
|
|
15
17
|
};
|
|
16
18
|
export type DropdownButtonProps = typeof __propDef.props;
|
|
17
19
|
export type DropdownButtonEvents = typeof __propDef.events;
|
|
@@ -6,31 +6,26 @@ export let style = "default";
|
|
|
6
6
|
export let size = "md";
|
|
7
7
|
const dispatch = createEventDispatcher();
|
|
8
8
|
const changePage = (page) => {
|
|
9
|
-
if (page < 1 || page > totalPages)
|
|
10
|
-
return;
|
|
9
|
+
if (page < 1 || page > totalPages) return;
|
|
11
10
|
currentPage = page;
|
|
12
11
|
dispatch("page", page);
|
|
13
12
|
};
|
|
14
|
-
$:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
$:
|
|
31
|
-
showFirst = currentPage > 4;
|
|
32
|
-
$:
|
|
33
|
-
showLast = currentPage < totalPages - 3;
|
|
13
|
+
$: previousPages = currentPage > 1 ? (() => {
|
|
14
|
+
const pages = [];
|
|
15
|
+
for (let i = currentPage - 1; i > 0 && i >= currentPage - 3; i--) {
|
|
16
|
+
pages.push(i);
|
|
17
|
+
}
|
|
18
|
+
return pages.reverse();
|
|
19
|
+
})() : [];
|
|
20
|
+
$: nextPages = currentPage < totalPages ? (() => {
|
|
21
|
+
const pages = [];
|
|
22
|
+
for (let i = currentPage + 1; i <= totalPages && i <= currentPage + 3; i++) {
|
|
23
|
+
pages.push(i);
|
|
24
|
+
}
|
|
25
|
+
return pages;
|
|
26
|
+
})() : [];
|
|
27
|
+
$: showFirst = currentPage > 4;
|
|
28
|
+
$: showLast = currentPage < totalPages - 3;
|
|
34
29
|
</script>
|
|
35
30
|
|
|
36
31
|
<nav class="{align} {style} {size}">
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
currentPage?: number
|
|
5
|
-
totalPages?: number
|
|
6
|
-
align?: "
|
|
7
|
-
style?: "default" | "flat"
|
|
8
|
-
size?: "sm" | "md" | "lg" | "xl"
|
|
4
|
+
currentPage?: number;
|
|
5
|
+
totalPages?: number;
|
|
6
|
+
align?: "center" | "start" | "end";
|
|
7
|
+
style?: "default" | "flat";
|
|
8
|
+
size?: "sm" | "md" | "lg" | "xl";
|
|
9
9
|
};
|
|
10
10
|
events: {
|
|
11
11
|
page: CustomEvent<number>;
|
|
@@ -13,6 +13,8 @@ declare const __propDef: {
|
|
|
13
13
|
[evt: string]: CustomEvent<any>;
|
|
14
14
|
};
|
|
15
15
|
slots: {};
|
|
16
|
+
exports?: {} | undefined;
|
|
17
|
+
bindings?: string | undefined;
|
|
16
18
|
};
|
|
17
19
|
export type PaginationProps = typeof __propDef.props;
|
|
18
20
|
export type PaginationEvents = typeof __propDef.events;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
open?: boolean
|
|
4
|
+
open?: boolean;
|
|
5
5
|
};
|
|
6
6
|
events: {
|
|
7
7
|
[evt: string]: CustomEvent<any>;
|
|
@@ -9,6 +9,8 @@ declare const __propDef: {
|
|
|
9
9
|
slots: {
|
|
10
10
|
default: {};
|
|
11
11
|
};
|
|
12
|
+
exports?: {} | undefined;
|
|
13
|
+
bindings?: string | undefined;
|
|
12
14
|
};
|
|
13
15
|
export type SideBarProps = typeof __propDef.props;
|
|
14
16
|
export type SideBarEvents = typeof __propDef.events;
|
|
@@ -15,16 +15,13 @@ const tabExists = (id) => {
|
|
|
15
15
|
};
|
|
16
16
|
let timeout = null;
|
|
17
17
|
const checkActive = () => {
|
|
18
|
-
if (timeout)
|
|
19
|
-
clearTimeout(timeout);
|
|
18
|
+
if (timeout) clearTimeout(timeout);
|
|
20
19
|
timeout = setTimeout(() => {
|
|
21
20
|
const anchor = getAnchor();
|
|
22
|
-
if (anchor && tabExists(anchor))
|
|
23
|
-
active.set(anchor);
|
|
21
|
+
if (anchor && tabExists(anchor)) active.set(anchor);
|
|
24
22
|
else {
|
|
25
23
|
const defaultActiveTab = $tabs.find((tab) => tab.defaultActive);
|
|
26
|
-
if (defaultActiveTab)
|
|
27
|
-
active.set(defaultActiveTab.id);
|
|
24
|
+
if (defaultActiveTab) active.set(defaultActiveTab.id);
|
|
28
25
|
}
|
|
29
26
|
}, 10);
|
|
30
27
|
};
|
|
@@ -2,7 +2,7 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
import { type TabStyle } from './tab-context.js';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
style?: TabStyle
|
|
5
|
+
style?: TabStyle;
|
|
6
6
|
};
|
|
7
7
|
events: {
|
|
8
8
|
change: CustomEvent<string | null>;
|
|
@@ -12,6 +12,8 @@ declare const __propDef: {
|
|
|
12
12
|
slots: {
|
|
13
13
|
default: {};
|
|
14
14
|
};
|
|
15
|
+
exports?: {} | undefined;
|
|
16
|
+
bindings?: string | undefined;
|
|
15
17
|
};
|
|
16
18
|
export type TabGroupProps = typeof __propDef.props;
|
|
17
19
|
export type TabGroupEvents = typeof __propDef.events;
|
|
@@ -14,8 +14,7 @@ const _id = getId();
|
|
|
14
14
|
ctx.register(_id, title, active);
|
|
15
15
|
const unsubscribe = ctx.active.subscribe((selectedId) => {
|
|
16
16
|
active = selectedId === _id;
|
|
17
|
-
if (active)
|
|
18
|
-
dispatch("selected", _id);
|
|
17
|
+
if (active) dispatch("selected", _id);
|
|
19
18
|
if (active && href) {
|
|
20
19
|
console.log("Navigating to", href);
|
|
21
20
|
navigateTo(href);
|
|
@@ -3,7 +3,7 @@ declare const __propDef: {
|
|
|
3
3
|
props: {
|
|
4
4
|
title: string;
|
|
5
5
|
href?: string | undefined;
|
|
6
|
-
active?: boolean
|
|
6
|
+
active?: boolean;
|
|
7
7
|
id?: string | undefined;
|
|
8
8
|
};
|
|
9
9
|
events: {
|
|
@@ -14,6 +14,8 @@ declare const __propDef: {
|
|
|
14
14
|
slots: {
|
|
15
15
|
default: {};
|
|
16
16
|
};
|
|
17
|
+
exports?: {} | undefined;
|
|
18
|
+
bindings?: string | undefined;
|
|
17
19
|
};
|
|
18
20
|
export type TabProps = typeof __propDef.props;
|
|
19
21
|
export type TabEvents = typeof __propDef.events;
|
|
@@ -5,10 +5,8 @@ const state = wizard.state;
|
|
|
5
5
|
export let step;
|
|
6
6
|
export let subtitle;
|
|
7
7
|
wizard.register(step, subtitle);
|
|
8
|
-
$:
|
|
9
|
-
|
|
10
|
-
$:
|
|
11
|
-
errors = $state.errors;
|
|
8
|
+
$: isCurrentStep = $state.currentStep === step;
|
|
9
|
+
$: errors = $state.errors;
|
|
12
10
|
</script>
|
|
13
11
|
|
|
14
12
|
<div class="step {isCurrentStep ? 'current' : ''}">
|