@softwareone/spi-sv5-library 1.13.0 → 1.14.1
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 +0 -5
- package/dist/Accordion/Accordion.svelte +2 -7
- package/dist/Accordion/Accordion.svelte.d.ts +2 -2
- package/dist/Announcement/Announcement.svelte +1 -1
- package/dist/Announcement/Announcement.svelte.d.ts +1 -1
- package/dist/Avatar/Avatar.svelte +2 -2
- package/dist/Avatar/Avatar.svelte.d.ts +2 -2
- package/dist/Button/Button.svelte +2 -2
- package/dist/Button/Button.svelte.d.ts +2 -2
- package/dist/Card/Card.svelte +2 -2
- package/dist/Card/Card.svelte.d.ts +2 -2
- package/dist/Chips/Chips.svelte +3 -3
- package/dist/Chips/Chips.svelte.d.ts +3 -3
- package/dist/Confirmation/Confirmation.svelte +44 -0
- package/dist/Confirmation/Confirmation.svelte.d.ts +11 -0
- package/dist/Controls/AttachFile/AttachFile.svelte +1 -1
- package/dist/Controls/AttachFile/AttachFile.svelte.d.ts +1 -1
- package/dist/Controls/AttachFile/Warnings.svelte +2 -2
- package/dist/Controls/AttachFile/Warnings.svelte.d.ts +2 -2
- package/dist/Controls/Input/Input.svelte +3 -3
- package/dist/Controls/Input/Input.svelte.d.ts +3 -3
- package/dist/Controls/Label/Label.svelte +1 -1
- package/dist/Controls/Label/Label.svelte.d.ts +1 -1
- package/dist/Controls/RadioGroup/RadioGroup.svelte +4 -4
- package/dist/Controls/RadioGroup/RadioGroup.svelte.d.ts +4 -4
- package/dist/Controls/Select/Select.svelte +22 -10
- package/dist/Controls/Select/Select.svelte.d.ts +3 -3
- package/dist/Controls/TextArea/TextArea.svelte +3 -3
- package/dist/Controls/TextArea/TextArea.svelte.d.ts +3 -3
- package/dist/Controls/Toggle/Toggle.svelte +3 -3
- package/dist/Controls/Toggle/Toggle.svelte.d.ts +3 -3
- package/dist/DeleteConfirmation/DeleteConfirmation.svelte +7 -11
- package/dist/DeleteConfirmation/DeleteConfirmation.svelte.d.ts +3 -4
- package/dist/ErrorPage/ErrorPage.svelte +2 -2
- package/dist/ErrorPage/ErrorPage.svelte.d.ts +2 -2
- package/dist/Footer/Footer.svelte +3 -2
- package/dist/Footer/Footer.svelte.d.ts +2 -2
- package/dist/Header/Header.svelte +3 -3
- package/dist/Header/Header.svelte.d.ts +3 -3
- package/dist/HighlightPanel/HighlightPanel.svelte +2 -2
- package/dist/HighlightPanel/HighlightPanel.svelte.d.ts +2 -2
- package/dist/HighlightPanel/enums.d.ts +12 -0
- package/dist/HighlightPanel/{highlightPanelState.svelte.d.ts → types.d.ts} +1 -12
- package/dist/Home/Home.svelte +2 -2
- package/dist/Home/Home.svelte.d.ts +2 -2
- package/dist/Menu/Menu.svelte +3 -3
- package/dist/Menu/Menu.svelte.d.ts +3 -3
- package/dist/Menu/MenuItem.svelte +3 -3
- package/dist/Menu/MenuItem.svelte.d.ts +3 -3
- package/dist/Menu/Sidebar.svelte +1 -1
- package/dist/Menu/Sidebar.svelte.d.ts +1 -1
- package/dist/Menu/{MenuState.svelte.d.ts → types.d.ts} +0 -1
- package/dist/Menu/utils.d.ts +2 -0
- package/dist/Modal/Modal.svelte +1 -1
- package/dist/Modal/Modal.svelte.d.ts +1 -1
- package/dist/Modal/ModalContent.svelte +2 -2
- package/dist/Modal/ModalContent.svelte.d.ts +2 -2
- package/dist/Modal/ModalFooter.svelte +1 -1
- package/dist/Modal/ModalFooter.svelte.d.ts +1 -1
- package/dist/Modal/ModalHeader.svelte +1 -1
- package/dist/Modal/ModalHeader.svelte.d.ts +1 -1
- package/dist/Notification/Notification.svelte +10 -1
- package/dist/Notification/Notification.svelte.d.ts +8 -1
- package/dist/Processing/Processing.svelte +8 -2
- package/dist/Processing/Processing.svelte.d.ts +7 -2
- package/dist/ProgressPage/ProgressPage.svelte +3 -3
- package/dist/ProgressPage/ProgressPage.svelte.d.ts +3 -3
- package/dist/ProgressWizard/ProgressWizard.svelte +2 -2
- package/dist/ProgressWizard/ProgressWizard.svelte.d.ts +2 -2
- package/dist/ProgressWizard/context.d.ts +1 -1
- package/dist/ProgressWizard/{progressWizardState.svelte.d.ts → types.d.ts} +0 -1
- package/dist/ProgressWizard/utils.d.ts +2 -0
- package/dist/Spinner/Spinner.svelte +2 -2
- package/dist/Spinner/Spinner.svelte.d.ts +2 -2
- package/dist/Switcher/Switcher.svelte +2 -2
- package/dist/Switcher/Switcher.svelte.d.ts +2 -2
- package/dist/Table/AdvancedFilter.svelte +1 -1
- package/dist/Table/Header.svelte +1 -1
- package/dist/Table/Table.svelte +1 -1
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/Tabs/Tabs.svelte +2 -2
- package/dist/Tabs/Tabs.svelte.d.ts +2 -2
- package/dist/Toast/Toast.svelte +3 -3
- package/dist/Toast/Toast.svelte.d.ts +2 -2
- package/dist/Toast/{toastState.svelte.d.ts → state.svelte.d.ts} +1 -6
- package/dist/Toast/types.d.ts +7 -0
- package/dist/Toast/types.js +1 -0
- package/dist/Tooltip/Tooltip.svelte +2 -2
- package/dist/Tooltip/Tooltip.svelte.d.ts +2 -2
- package/dist/Waffle/Waffle.svelte +1 -1
- package/dist/Waffle/Waffle.svelte.d.ts +1 -1
- package/dist/Waffle/types.js +1 -0
- package/dist/index.d.ts +28 -32
- package/dist/index.js +18 -19
- package/package.json +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.svelte +0 -78
- package/dist/Breadcrumbs/Breadcrumbs.svelte.d.ts +0 -18
- package/dist/Breadcrumbs/breadcrumbsState.svelte.d.ts +0 -8
- package/dist/Breadcrumbs/breadcrumbsState.svelte.js +0 -24
- package/dist/Notification/notificationState.svelte.d.ts +0 -9
- package/dist/Processing/processingState.svelte.d.ts +0 -6
- /package/dist/Announcement/{AnnouncementState.svelte.d.ts → types.d.ts} +0 -0
- /package/dist/Announcement/{AnnouncementState.svelte.js → types.js} +0 -0
- /package/dist/Chips/{chipsState.svelte.d.ts → enums.d.ts} +0 -0
- /package/dist/Chips/{chipsState.svelte.js → enums.js} +0 -0
- /package/dist/Controls/Label/{labelState.svelte.d.ts → types.d.ts} +0 -0
- /package/dist/Controls/Label/{labelState.svelte.js → types.js} +0 -0
- /package/dist/Controls/RadioGroup/{radioGroupState.svelte.d.ts → types.d.ts} +0 -0
- /package/dist/Controls/RadioGroup/{radioGroupState.svelte.js → types.js} +0 -0
- /package/dist/Controls/Select/{selectState.svelte.d.ts → types.d.ts} +0 -0
- /package/dist/Controls/Select/{selectState.svelte.js → types.js} +0 -0
- /package/dist/HighlightPanel/{highlightPanelState.svelte.js → enums.js} +0 -0
- /package/dist/{Modal/modalState.svelte.js → HighlightPanel/types.js} +0 -0
- /package/dist/{Notification/notificationState.svelte.js → Menu/types.js} +0 -0
- /package/dist/Menu/{MenuState.svelte.js → utils.js} +0 -0
- /package/dist/Modal/{modalState.svelte.d.ts → types.d.ts} +0 -0
- /package/dist/{Processing/processingState.svelte.js → Modal/types.js} +0 -0
- /package/dist/{Switcher/switcherState.svelte.js → ProgressWizard/types.js} +0 -0
- /package/dist/ProgressWizard/{progressWizardState.svelte.js → utils.js} +0 -0
- /package/dist/Switcher/{switcherState.svelte.d.ts → types.d.ts} +0 -0
- /package/dist/{Waffle/waffleState.svelte.js → Switcher/types.js} +0 -0
- /package/dist/Table/{util.d.ts → utils.d.ts} +0 -0
- /package/dist/Table/{util.js → utils.js} +0 -0
- /package/dist/Tabs/{tabsState.svelte.d.ts → types.d.ts} +0 -0
- /package/dist/Tabs/{tabsState.svelte.js → types.js} +0 -0
- /package/dist/Toast/{toastState.svelte.js → state.svelte.js} +0 -0
- /package/dist/Waffle/{waffleState.svelte.d.ts → types.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
interface
|
|
1
|
+
interface Props {
|
|
2
2
|
status: number;
|
|
3
3
|
title?: string;
|
|
4
4
|
}
|
|
5
|
-
declare const ErrorPage: import("svelte").Component<
|
|
5
|
+
declare const ErrorPage: import("svelte").Component<Props, {}, "">;
|
|
6
6
|
type ErrorPage = ReturnType<typeof ErrorPage>;
|
|
7
7
|
export default ErrorPage;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
interface
|
|
2
|
+
interface Props {
|
|
3
3
|
homeUrl?: string;
|
|
4
4
|
logoUrl?: string;
|
|
5
5
|
documentationUrl?: string;
|
|
6
6
|
}
|
|
7
|
+
|
|
7
8
|
let {
|
|
8
9
|
homeUrl = '/',
|
|
9
10
|
logoUrl = '/softwareone-logo-white.svg',
|
|
10
11
|
documentationUrl = 'https://softwareone-internal.atlassian.net/wiki/spaces/ATM/pages/17961910574/Services+Portal+BackOffice'
|
|
11
|
-
}:
|
|
12
|
+
}: Props = $props();
|
|
12
13
|
</script>
|
|
13
14
|
|
|
14
15
|
<footer class="footer-section">
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
interface
|
|
1
|
+
interface Props {
|
|
2
2
|
homeUrl?: string;
|
|
3
3
|
logoUrl?: string;
|
|
4
4
|
documentationUrl?: string;
|
|
5
5
|
}
|
|
6
|
-
declare const Footer: import("svelte").Component<
|
|
6
|
+
declare const Footer: import("svelte").Component<Props, {}, "">;
|
|
7
7
|
type Footer = ReturnType<typeof Footer>;
|
|
8
8
|
export default Footer;
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import Announcement from '../Announcement/Announcement.svelte';
|
|
4
4
|
import Menu from '../Menu/Menu.svelte';
|
|
5
5
|
import Waffle from '../Waffle/Waffle.svelte';
|
|
6
|
-
import type { WaffleItem } from '../Waffle/
|
|
6
|
+
import type { WaffleItem } from '../Waffle/types.js';
|
|
7
7
|
import HeaderAccount from './HeaderAccount.svelte';
|
|
8
8
|
import HeaderLoader from './HeaderLoader.svelte';
|
|
9
9
|
import HeaderLogo from './HeaderLogo.svelte';
|
|
10
10
|
|
|
11
|
-
interface
|
|
11
|
+
interface Props {
|
|
12
12
|
title?: string;
|
|
13
13
|
homeUrl?: string;
|
|
14
14
|
hideAccount?: boolean;
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
profileMenuItems,
|
|
39
39
|
announcementItems,
|
|
40
40
|
onreadannouncementitems
|
|
41
|
-
}:
|
|
41
|
+
}: Props = $props();
|
|
42
42
|
|
|
43
43
|
let showWaffle = $state(false);
|
|
44
44
|
let showMenu = $state(false);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AnnouncementItem, MenuItem } from '../index.js';
|
|
2
|
-
import type { WaffleItem } from '../Waffle/
|
|
3
|
-
interface
|
|
2
|
+
import type { WaffleItem } from '../Waffle/types.js';
|
|
3
|
+
interface Props {
|
|
4
4
|
title?: string;
|
|
5
5
|
homeUrl?: string;
|
|
6
6
|
hideAccount?: boolean;
|
|
@@ -15,6 +15,6 @@ interface HeaderProps {
|
|
|
15
15
|
announcementItems?: AnnouncementItem[];
|
|
16
16
|
onreadannouncementitems?: VoidFunction;
|
|
17
17
|
}
|
|
18
|
-
declare const Header: import("svelte").Component<
|
|
18
|
+
declare const Header: import("svelte").Component<Props, {}, "">;
|
|
19
19
|
type Header = ReturnType<typeof Header>;
|
|
20
20
|
export default Header;
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
import { Avatar, Chips, ColumnType, ImageType, type HighlightPanelColumn } from '../index.js';
|
|
5
5
|
|
|
6
|
-
interface
|
|
6
|
+
interface Props {
|
|
7
7
|
columns: HighlightPanelColumn[];
|
|
8
8
|
buttonSection?: Snippet;
|
|
9
9
|
distributionType?: 'flex' | 'flex-column' | 'grid';
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
let { columns, distributionType = 'flex', buttonSection }:
|
|
12
|
+
let { columns, distributionType = 'flex', buttonSection }: Props = $props();
|
|
13
13
|
</script>
|
|
14
14
|
|
|
15
15
|
<div class="highlight-panel">
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
import { type HighlightPanelColumn } from '../index.js';
|
|
3
|
-
interface
|
|
3
|
+
interface Props {
|
|
4
4
|
columns: HighlightPanelColumn[];
|
|
5
5
|
buttonSection?: Snippet;
|
|
6
6
|
distributionType?: 'flex' | 'flex-column' | 'grid';
|
|
7
7
|
}
|
|
8
|
-
declare const HighlightPanel: import("svelte").Component<
|
|
8
|
+
declare const HighlightPanel: import("svelte").Component<Props, {}, "">;
|
|
9
9
|
type HighlightPanel = ReturnType<typeof HighlightPanel>;
|
|
10
10
|
export default HighlightPanel;
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
import type { ChipType } from '../index.js';
|
|
3
|
-
|
|
4
|
-
Default = "image",
|
|
5
|
-
Avatar = "avatar",
|
|
6
|
-
Material = "material"
|
|
7
|
-
}
|
|
8
|
-
export declare enum ColumnType {
|
|
9
|
-
Text = "text",
|
|
10
|
-
Link = "link",
|
|
11
|
-
Image = "image",
|
|
12
|
-
Status = "status",
|
|
13
|
-
Custom = "custom"
|
|
14
|
-
}
|
|
3
|
+
import type { ColumnType, ImageType } from './enums.js';
|
|
15
4
|
type BaseColumn = {
|
|
16
5
|
label: string;
|
|
17
6
|
value: string;
|
package/dist/Home/Home.svelte
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { HomeItem } from '../index.js';
|
|
3
3
|
|
|
4
|
-
interface
|
|
4
|
+
interface Props {
|
|
5
5
|
title: string;
|
|
6
6
|
homeItems: HomeItem[];
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
let { title, homeItems }:
|
|
9
|
+
let { title, homeItems }: Props = $props();
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
12
|
<h1 class="home-title">
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { HomeItem } from '../index.js';
|
|
2
|
-
interface
|
|
2
|
+
interface Props {
|
|
3
3
|
title: string;
|
|
4
4
|
homeItems: HomeItem[];
|
|
5
5
|
}
|
|
6
|
-
declare const Home: import("svelte").Component<
|
|
6
|
+
declare const Home: import("svelte").Component<Props, {}, "">;
|
|
7
7
|
type Home = ReturnType<typeof Home>;
|
|
8
8
|
export default Home;
|
package/dist/Menu/Menu.svelte
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
import { fade } from 'svelte/transition';
|
|
4
4
|
|
|
5
5
|
import MainMenuItem from './MenuItem.svelte';
|
|
6
|
-
import type { MenuItem } from './
|
|
6
|
+
import type { MenuItem } from './types.js';
|
|
7
7
|
|
|
8
|
-
interface
|
|
8
|
+
interface Props {
|
|
9
9
|
menuItems: MenuItem[];
|
|
10
10
|
showMenu: boolean;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
let { menuItems, showMenu = $bindable(false) }:
|
|
13
|
+
let { menuItems, showMenu = $bindable(false) }: Props = $props();
|
|
14
14
|
|
|
15
15
|
let activeItem = $state('');
|
|
16
16
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { MenuItem } from './
|
|
2
|
-
interface
|
|
1
|
+
import type { MenuItem } from './types.js';
|
|
2
|
+
interface Props {
|
|
3
3
|
menuItems: MenuItem[];
|
|
4
4
|
showMenu: boolean;
|
|
5
5
|
}
|
|
6
|
-
declare const Menu: import("svelte").Component<
|
|
6
|
+
declare const Menu: import("svelte").Component<Props, {}, "showMenu">;
|
|
7
7
|
type Menu = ReturnType<typeof Menu>;
|
|
8
8
|
export default Menu;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { Tooltip } from '../index.js';
|
|
3
|
-
import type { MenuItem } from './
|
|
3
|
+
import type { MenuItem } from './types.js';
|
|
4
4
|
|
|
5
|
-
interface
|
|
5
|
+
interface Props {
|
|
6
6
|
item: MenuItem;
|
|
7
7
|
isCollapsed: boolean;
|
|
8
8
|
onClick?: (item: MenuItem) => void;
|
|
9
9
|
activeItem: boolean;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
let { item, isCollapsed = false, onClick, activeItem }:
|
|
12
|
+
let { item, isCollapsed = false, onClick, activeItem }: Props = $props();
|
|
13
13
|
</script>
|
|
14
14
|
|
|
15
15
|
<li>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { MenuItem } from './
|
|
2
|
-
interface
|
|
1
|
+
import type { MenuItem } from './types.js';
|
|
2
|
+
interface Props {
|
|
3
3
|
item: MenuItem;
|
|
4
4
|
isCollapsed: boolean;
|
|
5
5
|
onClick?: (item: MenuItem) => void;
|
|
6
6
|
activeItem: boolean;
|
|
7
7
|
}
|
|
8
|
-
declare const MenuItem: import("svelte").Component<
|
|
8
|
+
declare const MenuItem: import("svelte").Component<Props, {}, "">;
|
|
9
9
|
type MenuItem = ReturnType<typeof MenuItem>;
|
|
10
10
|
export default MenuItem;
|
package/dist/Menu/Sidebar.svelte
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { fade } from 'svelte/transition';
|
|
4
4
|
|
|
5
5
|
import SidebarMenuItem from './MenuItem.svelte';
|
|
6
|
-
import type { MenuItem, SubMenuItem } from './
|
|
6
|
+
import type { MenuItem, SubMenuItem } from './types.js';
|
|
7
7
|
|
|
8
8
|
interface Props {
|
|
9
9
|
subMenuItems: SubMenuItem[];
|
package/dist/Modal/Modal.svelte
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import ModalContent from './ModalContent.svelte';
|
|
5
5
|
import ModalFooter from './ModalFooter.svelte';
|
|
6
6
|
import ModalHeader from './ModalHeader.svelte';
|
|
7
|
-
import type { ModalProps } from './
|
|
7
|
+
import type { ModalProps } from './types.js';
|
|
8
8
|
|
|
9
9
|
let {
|
|
10
10
|
// eslint-disable-next-line no-useless-assignment
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { Snippet } from 'svelte';
|
|
3
3
|
|
|
4
|
-
interface
|
|
4
|
+
interface Props {
|
|
5
5
|
content?: Snippet;
|
|
6
6
|
disablePadding?: boolean;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
let { content, disablePadding = false }:
|
|
9
|
+
let { content, disablePadding = false }: Props = $props();
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
12
|
<div class="modal-content" class:padding={!disablePadding}>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
|
-
interface
|
|
2
|
+
interface Props {
|
|
3
3
|
content?: Snippet;
|
|
4
4
|
disablePadding?: boolean;
|
|
5
5
|
}
|
|
6
|
-
declare const ModalContent: import("svelte").Component<
|
|
6
|
+
declare const ModalContent: import("svelte").Component<Props, {}, "">;
|
|
7
7
|
type ModalContent = ReturnType<typeof ModalContent>;
|
|
8
8
|
export default ModalContent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import Button from '../Button/Button.svelte';
|
|
3
|
-
import type { ModalFooterProps } from './
|
|
3
|
+
import type { ModalFooterProps } from './types.js';
|
|
4
4
|
|
|
5
5
|
let { footer, onclose }: ModalFooterProps & { onclose: VoidFunction } = $props();
|
|
6
6
|
</script>
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type {
|
|
2
|
+
import type { Snippet } from 'svelte';
|
|
3
|
+
|
|
4
|
+
type NotificationType = 'info' | 'success' | 'warning' | 'danger' | 'neutral';
|
|
5
|
+
|
|
6
|
+
interface NotificationProps {
|
|
7
|
+
title?: string;
|
|
8
|
+
type: NotificationType;
|
|
9
|
+
disableBorder?: boolean;
|
|
10
|
+
content: Snippet;
|
|
11
|
+
}
|
|
3
12
|
|
|
4
13
|
let { title, disableBorder = false, content, type }: NotificationProps = $props();
|
|
5
14
|
</script>
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
2
|
+
type NotificationType = 'info' | 'success' | 'warning' | 'danger' | 'neutral';
|
|
3
|
+
interface NotificationProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
type: NotificationType;
|
|
6
|
+
disableBorder?: boolean;
|
|
7
|
+
content: Snippet;
|
|
8
|
+
}
|
|
2
9
|
declare const Notification: import("svelte").Component<NotificationProps, {}, "">;
|
|
3
10
|
type Notification = ReturnType<typeof Notification>;
|
|
4
11
|
export default Notification;
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import Modal from '../Modal/Modal.svelte';
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
title?: string;
|
|
6
|
+
text?: string;
|
|
7
|
+
show?: boolean;
|
|
8
|
+
asModal?: boolean;
|
|
9
|
+
}
|
|
4
10
|
|
|
5
11
|
let {
|
|
6
12
|
title = 'Processing your request',
|
|
7
13
|
text = '',
|
|
8
14
|
show = $bindable(true),
|
|
9
15
|
asModal = false
|
|
10
|
-
}:
|
|
16
|
+
}: Props = $props();
|
|
11
17
|
</script>
|
|
12
18
|
|
|
13
19
|
{#snippet processingContent()}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
interface Props {
|
|
2
|
+
title?: string;
|
|
3
|
+
text?: string;
|
|
4
|
+
show?: boolean;
|
|
5
|
+
asModal?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const Processing: import("svelte").Component<Props, {}, "show">;
|
|
3
8
|
type Processing = ReturnType<typeof Processing>;
|
|
4
9
|
export default Processing;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { Button } from '../index.js';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
interface Props {
|
|
5
5
|
iconName: string;
|
|
6
6
|
title: string;
|
|
7
7
|
description?: string;
|
|
8
8
|
documentationUrl?: string;
|
|
9
9
|
onclick?: VoidFunction;
|
|
10
10
|
buttonText?: string;
|
|
11
|
-
}
|
|
11
|
+
}
|
|
12
12
|
|
|
13
13
|
let {
|
|
14
14
|
iconName,
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
documentationUrl = '',
|
|
18
18
|
onclick,
|
|
19
19
|
buttonText = 'Save'
|
|
20
|
-
}:
|
|
20
|
+
}: Props = $props();
|
|
21
21
|
</script>
|
|
22
22
|
|
|
23
23
|
<article class="progress-page">
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
interface Props {
|
|
2
2
|
iconName: string;
|
|
3
3
|
title: string;
|
|
4
4
|
description?: string;
|
|
5
5
|
documentationUrl?: string;
|
|
6
6
|
onclick?: VoidFunction;
|
|
7
7
|
buttonText?: string;
|
|
8
|
-
}
|
|
9
|
-
declare const ProgressPage: import("svelte").Component<
|
|
8
|
+
}
|
|
9
|
+
declare const ProgressPage: import("svelte").Component<Props, {}, "">;
|
|
10
10
|
type ProgressPage = ReturnType<typeof ProgressPage>;
|
|
11
11
|
export default ProgressPage;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import { Button, ErrorPage, type ProgressWizardStep } from '../index.js';
|
|
5
5
|
|
|
6
|
-
interface
|
|
6
|
+
interface Props {
|
|
7
7
|
steps: ProgressWizardStep[];
|
|
8
8
|
currentStep: number;
|
|
9
9
|
readonly?: boolean;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
content,
|
|
22
22
|
additionalButtons,
|
|
23
23
|
oncancel
|
|
24
|
-
}:
|
|
24
|
+
}: Props = $props();
|
|
25
25
|
|
|
26
26
|
const allStepsDisabled = $derived<boolean>(steps.every((step) => step.disabled));
|
|
27
27
|
const firstActiveStep = $derived<number>(steps.findIndex((step) => !step.disabled) + 1);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Snippet } from 'svelte';
|
|
2
2
|
import { type ProgressWizardStep } from '../index.js';
|
|
3
|
-
interface
|
|
3
|
+
interface Props {
|
|
4
4
|
steps: ProgressWizardStep[];
|
|
5
5
|
currentStep: number;
|
|
6
6
|
readonly?: boolean;
|
|
@@ -9,6 +9,6 @@ interface ProgressWizardProps {
|
|
|
9
9
|
additionalButtons: Snippet<[lastActiveStep: number]>;
|
|
10
10
|
oncancel: VoidFunction;
|
|
11
11
|
}
|
|
12
|
-
declare const ProgressWizard: import("svelte").Component<
|
|
12
|
+
declare const ProgressWizard: import("svelte").Component<Props, {}, "currentStep">;
|
|
13
13
|
type ProgressWizard = ReturnType<typeof ProgressWizard>;
|
|
14
14
|
export default ProgressWizard;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Writable } from 'svelte/store';
|
|
2
|
-
import type { ProgressWizardStep } from './
|
|
2
|
+
import type { ProgressWizardStep } from './types.js';
|
|
3
3
|
export declare const setProgressWizardStepsContext: (steps: ProgressWizardStep[]) => Writable<{
|
|
4
4
|
title: string;
|
|
5
5
|
description?: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
interface
|
|
2
|
+
interface Props {
|
|
3
3
|
show: boolean;
|
|
4
4
|
size?: 'sm' | 'md' | 'lg';
|
|
5
5
|
isFixedPosition?: boolean;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
let { show = $bindable(false), size = 'lg', isFixedPosition = false }:
|
|
8
|
+
let { show = $bindable(false), size = 'lg', isFixedPosition = false }: Props = $props();
|
|
9
9
|
|
|
10
10
|
const pixelSizes: Record<string, number> = {
|
|
11
11
|
sm: 16,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
interface
|
|
1
|
+
interface Props {
|
|
2
2
|
show: boolean;
|
|
3
3
|
size?: 'sm' | 'md' | 'lg';
|
|
4
4
|
isFixedPosition?: boolean;
|
|
5
5
|
}
|
|
6
|
-
declare const Spinner: import("svelte").Component<
|
|
6
|
+
declare const Spinner: import("svelte").Component<Props, {}, "show">;
|
|
7
7
|
type Spinner = ReturnType<typeof Spinner>;
|
|
8
8
|
export default Spinner;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { type SwitcherOption } from '../index.js';
|
|
3
3
|
|
|
4
|
-
interface
|
|
4
|
+
interface Props {
|
|
5
5
|
options: string[] | SwitcherOption[];
|
|
6
6
|
value?: string | null;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
let { options, value = $bindable() }:
|
|
9
|
+
let { options, value = $bindable() }: Props = $props();
|
|
10
10
|
|
|
11
11
|
const isStringArray = (items: string[] | SwitcherOption[]): items is string[] =>
|
|
12
12
|
typeof items[0] === 'string';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type SwitcherOption } from '../index.js';
|
|
2
|
-
interface
|
|
2
|
+
interface Props {
|
|
3
3
|
options: string[] | SwitcherOption[];
|
|
4
4
|
value?: string | null;
|
|
5
5
|
}
|
|
6
|
-
declare const Switcher: import("svelte").Component<
|
|
6
|
+
declare const Switcher: import("svelte").Component<Props, {}, "value">;
|
|
7
7
|
type Switcher = ReturnType<typeof Switcher>;
|
|
8
8
|
export default Switcher;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import type { Column } from './adapter/index.js';
|
|
6
6
|
import { Operation } from './consts.js';
|
|
7
7
|
import { type Filter } from './types.js';
|
|
8
|
-
import { sanitizeFilters } from './
|
|
8
|
+
import { sanitizeFilters } from './utils.js';
|
|
9
9
|
|
|
10
10
|
interface Props {
|
|
11
11
|
columns: Column<T, unknown>[];
|
package/dist/Table/Header.svelte
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import { Search } from '../index.js';
|
|
5
5
|
import { FlexRender, type HeaderGroup, type RowData } from './adapter/index.js';
|
|
6
|
-
import { sanitizeFilters } from './
|
|
6
|
+
import { sanitizeFilters } from './utils.js';
|
|
7
7
|
|
|
8
8
|
interface Props {
|
|
9
9
|
headerGroups: HeaderGroup<T>[];
|
package/dist/Table/Table.svelte
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
import Header from './Header.svelte';
|
|
32
32
|
import Skeleton from './Skeleton.svelte';
|
|
33
33
|
import { type Filter, type Pagination } from './types.js';
|
|
34
|
-
import { createCheckedColumn, getPage, getPageLimit } from './
|
|
34
|
+
import { createCheckedColumn, getPage, getPageLimit } from './utils.js';
|
|
35
35
|
|
|
36
36
|
interface Props {
|
|
37
37
|
columns: ColumnDef<T, any>[];
|
package/dist/Table/index.d.ts
CHANGED
|
@@ -5,4 +5,4 @@ export { ColumnFormat, type ExcelSetting } from './excel-setting.js';
|
|
|
5
5
|
export * from './excel.js';
|
|
6
6
|
export { default as Table } from './Table.svelte';
|
|
7
7
|
export type { Action, Pagination, Filter } from './types.js';
|
|
8
|
-
export { createActionsColumn, createStaticTable, getPage, getPageLimit, sanitizeFilters } from './
|
|
8
|
+
export { createActionsColumn, createStaticTable, getPage, getPageLimit, sanitizeFilters } from './utils.js';
|
package/dist/Table/index.js
CHANGED
|
@@ -4,4 +4,4 @@ export * from './context.js';
|
|
|
4
4
|
export { ColumnFormat } from './excel-setting.js';
|
|
5
5
|
export * from './excel.js';
|
|
6
6
|
export { default as Table } from './Table.svelte';
|
|
7
|
-
export { createActionsColumn, createStaticTable, getPage, getPageLimit, sanitizeFilters } from './
|
|
7
|
+
export { createActionsColumn, createStaticTable, getPage, getPageLimit, sanitizeFilters } from './utils.js';
|
package/dist/Tabs/Tabs.svelte
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
|
|
4
4
|
import type { Tab } from '../index.js';
|
|
5
5
|
|
|
6
|
-
interface
|
|
6
|
+
interface Props {
|
|
7
7
|
tabs: Tab[];
|
|
8
8
|
activeTab?: number;
|
|
9
9
|
children?: Snippet;
|
|
10
10
|
onchange?: (index: number) => void;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
let { tabs = [], activeTab = 0, children, onchange }:
|
|
13
|
+
let { tabs = [], activeTab = 0, children, onchange }: Props = $props();
|
|
14
14
|
|
|
15
15
|
const handleClick = (index: number) => (): void => {
|
|
16
16
|
activeTab = index;
|