framework7-svelte 7.0.0-beta.2 → 7.0.0-beta.20
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/components/accordion-content.svelte +3 -3
- package/components/accordion-item.svelte +4 -4
- package/components/accordion-toggle.svelte +3 -3
- package/components/accordion.svelte +3 -3
- package/components/actions-button.svelte +4 -4
- package/components/actions-group.svelte +3 -3
- package/components/actions-label.svelte +3 -3
- package/components/actions.svelte +5 -5
- package/components/app.svelte +3 -3
- package/components/appbar.svelte +3 -3
- package/components/area-chart.svelte +3 -3
- package/components/badge.svelte +4 -4
- package/components/block-footer.svelte +3 -3
- package/components/block-header.svelte +3 -3
- package/components/block-title.svelte +3 -3
- package/components/block.svelte +4 -4
- package/components/breadcrumbs-collapsed.d.ts +17 -0
- package/components/breadcrumbs-collapsed.svelte +21 -0
- package/components/breadcrumbs-item.d.ts +18 -0
- package/components/breadcrumbs-item.svelte +15 -0
- package/components/breadcrumbs-separator.d.ts +17 -0
- package/components/breadcrumbs-separator.svelte +11 -0
- package/components/breadcrumbs.d.ts +17 -0
- package/components/breadcrumbs.svelte +13 -0
- package/components/button.svelte +6 -6
- package/components/card-content.svelte +3 -3
- package/components/card-footer.svelte +3 -3
- package/components/card-header.svelte +3 -3
- package/components/card.svelte +4 -4
- package/components/checkbox.svelte +5 -4
- package/components/chip.svelte +5 -5
- package/components/col.svelte +4 -4
- package/components/fab-backdrop.svelte +2 -2
- package/components/fab-button.svelte +5 -5
- package/components/fab-buttons.svelte +3 -3
- package/components/fab.svelte +5 -5
- package/components/gauge.svelte +16 -9
- package/components/icon.svelte +7 -6
- package/components/input.svelte +4 -4
- package/components/link.svelte +12 -8
- package/components/list-button.svelte +5 -5
- package/components/list-group.svelte +10 -7
- package/components/list-index.svelte +4 -4
- package/components/list-input.svelte +5 -5
- package/components/list-item-cell.svelte +3 -3
- package/components/list-item-row.svelte +3 -3
- package/components/list-item.svelte +8 -8
- package/components/list.d.ts +2 -1
- package/components/list.svelte +12 -6
- package/components/login-screen-title.svelte +3 -3
- package/components/login-screen.svelte +5 -5
- package/components/menu-dropdown-item.svelte +4 -4
- package/components/menu-dropdown.svelte +3 -3
- package/components/menu-item.svelte +7 -7
- package/components/menu.svelte +3 -3
- package/components/message.svelte +3 -3
- package/components/messagebar-attachment.svelte +4 -4
- package/components/messagebar-attachments.svelte +3 -3
- package/components/messagebar-sheet-image.svelte +3 -3
- package/components/messagebar-sheet-item.svelte +3 -3
- package/components/messagebar-sheet.svelte +3 -3
- package/components/messagebar.svelte +4 -4
- package/components/messages-title.svelte +3 -3
- package/components/messages.svelte +4 -4
- package/components/nav-left.svelte +4 -4
- package/components/nav-right.svelte +3 -3
- package/components/nav-title-large.svelte +3 -3
- package/components/nav-title.svelte +3 -3
- package/components/navbar.svelte +5 -5
- package/components/page-content.svelte +5 -5
- package/components/page.svelte +4 -4
- package/components/panel.svelte +5 -4
- package/components/photo-browser.svelte +2 -2
- package/components/pie-chart.svelte +3 -3
- package/components/popover.svelte +5 -5
- package/components/popup.svelte +5 -5
- package/components/preloader.svelte +4 -4
- package/components/progressbar.svelte +4 -4
- package/components/radio.svelte +5 -4
- package/components/range.svelte +4 -4
- package/components/routable-modals.svelte +1 -1
- package/components/row.svelte +4 -4
- package/components/searchbar.svelte +4 -4
- package/components/segmented.svelte +3 -3
- package/components/sheet.svelte +12 -5
- package/components/skeleton-avatar.d.ts +1 -0
- package/components/skeleton-avatar.js +1 -0
- package/components/skeleton-block.d.ts +1 -0
- package/components/skeleton-block.js +1 -0
- package/components/skeleton-image.d.ts +1 -0
- package/components/skeleton-image.js +1 -0
- package/components/skeleton-text.d.ts +1 -0
- package/components/skeleton-text.js +1 -0
- package/components/stepper.svelte +4 -4
- package/components/subnavbar.svelte +3 -3
- package/components/swipeout-actions.svelte +3 -3
- package/components/swipeout-button.svelte +5 -4
- package/components/swiper-slide.d.ts +1 -0
- package/components/swiper-slide.js +1 -0
- package/components/swiper.d.ts +1 -0
- package/components/swiper.js +1 -0
- package/components/tab.svelte +5 -5
- package/components/tabs.svelte +3 -3
- package/components/text-editor.svelte +4 -4
- package/components/toggle.svelte +5 -5
- package/components/toolbar.svelte +6 -6
- package/components/treeview-item.svelte +5 -5
- package/components/treeview.svelte +3 -3
- package/components/view.d.ts +1 -0
- package/components/view.svelte +9 -7
- package/components/views.svelte +3 -3
- package/framework7-svelte.d.ts +5 -1
- package/framework7-svelte.js +11 -7
- package/package.json +3 -1
- package/shared/components-router.js +30 -22
- package/shared/f7.js +31 -23
- package/shared/get-router-initial-component.js +1 -1
- package/shared/mixins.js +3 -3
- package/shared/modal-state-classes.js +5 -4
- package/shared/plugin.js +9 -4
- package/shared/rest-props.js +6 -2
- package/shared/router-open-in-component.svelte +41 -0
- package/shared/router-open-in.js +47 -0
- package/shared/use-icon.js +5 -1
- package/shared/use-smart-select.js +2 -2
- package/shared/use-store.js +10 -10
- package/shared/use-tab.js +1 -1
- package/shared/use-theme.js +1 -1
- package/shared/use-tooltip.js +6 -4
- package/shared/utils.js +11 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import { colorClasses } from '../shared/mixins';
|
|
3
|
-
import { classNames } from '../shared/utils';
|
|
4
|
-
import { restProps } from '../shared/rest-props';
|
|
2
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
3
|
+
import { classNames } from '../shared/utils.js';
|
|
4
|
+
import { restProps } from '../shared/rest-props.js';
|
|
5
5
|
|
|
6
6
|
let className = undefined;
|
|
7
7
|
export { className as class };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { createEventDispatcher, onMount, onDestroy } from 'svelte';
|
|
3
|
-
import { colorClasses } from '../shared/mixins';
|
|
4
|
-
import { classNames, createEmitter } from '../shared/utils';
|
|
5
|
-
import { restProps } from '../shared/rest-props';
|
|
6
|
-
import { app, f7ready } from '../shared/f7';
|
|
3
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
4
|
+
import { classNames, createEmitter } from '../shared/utils.js';
|
|
5
|
+
import { restProps } from '../shared/rest-props.js';
|
|
6
|
+
import { app, f7ready } from '../shared/f7.js';
|
|
7
7
|
|
|
8
8
|
const emit = createEmitter(createEventDispatcher, $$props);
|
|
9
9
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import { colorClasses } from '../shared/mixins';
|
|
3
|
-
import { classNames } from '../shared/utils';
|
|
4
|
-
import { restProps } from '../shared/rest-props';
|
|
2
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
3
|
+
import { classNames } from '../shared/utils.js';
|
|
4
|
+
import { restProps } from '../shared/rest-props.js';
|
|
5
5
|
|
|
6
6
|
let className = undefined;
|
|
7
7
|
export { className as class };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import { colorClasses } from '../shared/mixins';
|
|
3
|
-
import { classNames } from '../shared/utils';
|
|
4
|
-
import { restProps } from '../shared/rest-props';
|
|
2
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
3
|
+
import { classNames } from '../shared/utils.js';
|
|
4
|
+
import { restProps } from '../shared/rest-props.js';
|
|
5
5
|
|
|
6
6
|
let className = undefined;
|
|
7
7
|
export { className as class };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { createEventDispatcher } from 'svelte';
|
|
3
3
|
|
|
4
|
-
import { colorClasses } from '../shared/mixins';
|
|
5
|
-
import { classNames, createEmitter } from '../shared/utils';
|
|
6
|
-
import { restProps } from '../shared/rest-props';
|
|
7
|
-
import { app } from '../shared/f7';
|
|
4
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
5
|
+
import { classNames, createEmitter } from '../shared/utils.js';
|
|
6
|
+
import { restProps } from '../shared/rest-props.js';
|
|
7
|
+
import { app } from '../shared/f7.js';
|
|
8
8
|
|
|
9
9
|
const emit = createEmitter(createEventDispatcher, $$props);
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import { colorClasses } from '../shared/mixins';
|
|
3
|
-
import { classNames } from '../shared/utils';
|
|
4
|
-
import { restProps } from '../shared/rest-props';
|
|
2
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
3
|
+
import { classNames } from '../shared/utils.js';
|
|
4
|
+
import { restProps } from '../shared/rest-props.js';
|
|
5
5
|
|
|
6
6
|
let className = undefined;
|
|
7
7
|
export { className as class };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { createEventDispatcher } from 'svelte';
|
|
3
3
|
|
|
4
|
-
import { colorClasses } from '../shared/mixins';
|
|
5
|
-
import { classNames, createEmitter } from '../shared/utils';
|
|
6
|
-
import { restProps } from '../shared/rest-props';
|
|
4
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
5
|
+
import { classNames, createEmitter } from '../shared/utils.js';
|
|
6
|
+
import { restProps } from '../shared/rest-props.js';
|
|
7
7
|
|
|
8
8
|
const emit = createEmitter(createEventDispatcher, $$props);
|
|
9
9
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { createEventDispatcher, onMount, onDestroy } from 'svelte';
|
|
3
|
-
import { colorClasses } from '../shared/mixins';
|
|
4
|
-
import { classNames, createEmitter } from '../shared/utils';
|
|
5
|
-
import { restProps } from '../shared/rest-props';
|
|
6
|
-
import { app, f7ready } from '../shared/f7';
|
|
7
|
-
import { modalStateClasses } from '../shared/modal-state-classes';
|
|
3
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
4
|
+
import { classNames, createEmitter } from '../shared/utils.js';
|
|
5
|
+
import { restProps } from '../shared/rest-props.js';
|
|
6
|
+
import { app, f7ready } from '../shared/f7.js';
|
|
7
|
+
import { modalStateClasses } from '../shared/modal-state-classes.js';
|
|
8
8
|
|
|
9
9
|
const emit = createEmitter(createEventDispatcher, $$props);
|
|
10
10
|
|
package/components/app.svelte
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { onMount } from 'svelte';
|
|
3
|
-
import { app, f7init } from '../shared/f7';
|
|
4
|
-
import { colorClasses } from '../shared/mixins';
|
|
5
|
-
import { classNames, noUndefinedProps } from '../shared/utils';
|
|
3
|
+
import { app, f7init } from '../shared/f7.js';
|
|
4
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
5
|
+
import { classNames, noUndefinedProps } from '../shared/utils.js';
|
|
6
6
|
|
|
7
7
|
import RoutableModals from './routable-modals.svelte';
|
|
8
8
|
|
package/components/appbar.svelte
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import { colorClasses } from '../shared/mixins';
|
|
3
|
-
import { classNames } from '../shared/utils';
|
|
4
|
-
import { restProps } from '../shared/rest-props';
|
|
2
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
3
|
+
import { classNames } from '../shared/utils.js';
|
|
4
|
+
import { restProps } from '../shared/rest-props.js';
|
|
5
5
|
|
|
6
6
|
let className = undefined;
|
|
7
7
|
export { className as class };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { createEventDispatcher, onDestroy, onMount } from 'svelte';
|
|
3
|
-
import { classNames, createEmitter } from '../shared/utils';
|
|
4
|
-
import { restProps } from '../shared/rest-props';
|
|
5
|
-
import { app } from '../shared/f7';
|
|
3
|
+
import { classNames, createEmitter } from '../shared/utils.js';
|
|
4
|
+
import { restProps } from '../shared/rest-props.js';
|
|
5
|
+
import { app } from '../shared/f7.js';
|
|
6
6
|
|
|
7
7
|
const emit = createEmitter(createEventDispatcher, $$props);
|
|
8
8
|
|
package/components/badge.svelte
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import { colorClasses } from '../shared/mixins';
|
|
3
|
-
import { classNames } from '../shared/utils';
|
|
4
|
-
import { restProps } from '../shared/rest-props';
|
|
5
|
-
import { useTooltip } from '../shared/use-tooltip';
|
|
2
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
3
|
+
import { classNames } from '../shared/utils.js';
|
|
4
|
+
import { restProps } from '../shared/rest-props.js';
|
|
5
|
+
import { useTooltip } from '../shared/use-tooltip.js';
|
|
6
6
|
|
|
7
7
|
let className = undefined;
|
|
8
8
|
export { className as class };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import { colorClasses } from '../shared/mixins';
|
|
3
|
-
import { classNames } from '../shared/utils';
|
|
4
|
-
import { restProps } from '../shared/rest-props';
|
|
2
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
3
|
+
import { classNames } from '../shared/utils.js';
|
|
4
|
+
import { restProps } from '../shared/rest-props.js';
|
|
5
5
|
|
|
6
6
|
let className = undefined;
|
|
7
7
|
export { className as class };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import { restProps } from '../shared/rest-props';
|
|
3
|
-
import { colorClasses } from '../shared/mixins';
|
|
4
|
-
import { classNames } from '../shared/utils';
|
|
2
|
+
import { restProps } from '../shared/rest-props.js';
|
|
3
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
4
|
+
import { classNames } from '../shared/utils.js';
|
|
5
5
|
|
|
6
6
|
let className = undefined;
|
|
7
7
|
export { className as class };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import { colorClasses } from '../shared/mixins';
|
|
3
|
-
import { classNames } from '../shared/utils';
|
|
4
|
-
import { restProps } from '../shared/rest-props';
|
|
2
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
3
|
+
import { classNames } from '../shared/utils.js';
|
|
4
|
+
import { restProps } from '../shared/rest-props.js';
|
|
5
5
|
|
|
6
6
|
export let large = false;
|
|
7
7
|
export let medium = false;
|
package/components/block.svelte
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { createEventDispatcher } from 'svelte';
|
|
3
|
-
import { colorClasses } from '../shared/mixins';
|
|
4
|
-
import { classNames, createEmitter } from '../shared/utils';
|
|
5
|
-
import { restProps } from '../shared/rest-props';
|
|
6
|
-
import { useTab } from '../shared/use-tab';
|
|
3
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
4
|
+
import { classNames, createEmitter } from '../shared/utils.js';
|
|
5
|
+
import { restProps } from '../shared/rest-props.js';
|
|
6
|
+
import { useTab } from '../shared/use-tab.js';
|
|
7
7
|
|
|
8
8
|
const emit = createEmitter(createEventDispatcher, $$props);
|
|
9
9
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
import { SvelteComponentTyped } from 'svelte';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
interface BreadcrumbsCollapsedProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap['div']> {
|
|
6
|
+
onClick ?: (event?: any) => void;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class BreadcrumbsCollapsed extends SvelteComponentTyped<
|
|
12
|
+
BreadcrumbsCollapsedProps,
|
|
13
|
+
{ click: CustomEvent<void>; },
|
|
14
|
+
{ 'default' : {}; }
|
|
15
|
+
> {}
|
|
16
|
+
|
|
17
|
+
export default BreadcrumbsCollapsed;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import { createEventDispatcher } from 'svelte';
|
|
3
|
+
import { classNames, createEmitter } from '../shared/utils.js';
|
|
4
|
+
import { restProps } from '../shared/rest-props.js';
|
|
5
|
+
|
|
6
|
+
let className = undefined;
|
|
7
|
+
export { className as class };
|
|
8
|
+
|
|
9
|
+
$: classes = classNames(className, 'breadcrumbs-collapsed');
|
|
10
|
+
|
|
11
|
+
const emit = createEmitter(createEventDispatcher, $$props);
|
|
12
|
+
|
|
13
|
+
function onClick() {
|
|
14
|
+
emit('click');
|
|
15
|
+
}
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<div class={classes} {...restProps($$restProps)} on:click={onClick}>
|
|
19
|
+
<span />
|
|
20
|
+
<slot />
|
|
21
|
+
</div>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
import { SvelteComponentTyped } from 'svelte';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
interface BreadcrumbsItemProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap['div']> {
|
|
6
|
+
onClick ?: (event?: any) => void;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class BreadcrumbsItem extends SvelteComponentTyped<
|
|
13
|
+
BreadcrumbsItemProps,
|
|
14
|
+
{ },
|
|
15
|
+
{ 'default' : {}; }
|
|
16
|
+
> {}
|
|
17
|
+
|
|
18
|
+
export default BreadcrumbsItem;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import { classNames } from '../shared/utils.js';
|
|
3
|
+
import { restProps } from '../shared/rest-props.js';
|
|
4
|
+
|
|
5
|
+
export let active = false;
|
|
6
|
+
|
|
7
|
+
let className = undefined;
|
|
8
|
+
export { className as class };
|
|
9
|
+
|
|
10
|
+
$: classes = classNames(className, 'breadcrumbs-item', active && 'breadcrumbs-item-active');
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<div class={classes} {...restProps($$restProps)}>
|
|
14
|
+
<slot />
|
|
15
|
+
</div>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
import { SvelteComponentTyped } from 'svelte';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
interface BreadcrumbsSeparatorProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap['div']> {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class BreadcrumbsSeparator extends SvelteComponentTyped<
|
|
12
|
+
BreadcrumbsSeparatorProps,
|
|
13
|
+
{ },
|
|
14
|
+
{ }
|
|
15
|
+
> {}
|
|
16
|
+
|
|
17
|
+
export default BreadcrumbsSeparator;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import { classNames } from '../shared/utils.js';
|
|
3
|
+
import { restProps } from '../shared/rest-props.js';
|
|
4
|
+
|
|
5
|
+
let className = undefined;
|
|
6
|
+
export { className as class };
|
|
7
|
+
|
|
8
|
+
$: classes = classNames(className, 'breadcrumbs-separator');
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<div class={classes} {...restProps($$restProps)} />
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
import { SvelteComponentTyped } from 'svelte';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
interface BreadcrumbsProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap['div']> {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class Breadcrumbs extends SvelteComponentTyped<
|
|
12
|
+
BreadcrumbsProps,
|
|
13
|
+
{ },
|
|
14
|
+
{ 'default' : {}; }
|
|
15
|
+
> {}
|
|
16
|
+
|
|
17
|
+
export default Breadcrumbs;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import { classNames } from '../shared/utils.js';
|
|
3
|
+
import { restProps } from '../shared/rest-props.js';
|
|
4
|
+
|
|
5
|
+
let className = undefined;
|
|
6
|
+
export { className as class };
|
|
7
|
+
|
|
8
|
+
$: classes = classNames(className, 'breadcrumbs');
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<div class={classes} {...restProps($$restProps)}>
|
|
12
|
+
<slot />
|
|
13
|
+
</div>
|
package/components/button.svelte
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
routerClasses,
|
|
7
7
|
actionsAttrs,
|
|
8
8
|
actionsClasses,
|
|
9
|
-
} from '../shared/mixins';
|
|
10
|
-
import { classNames, extend, isStringProp, plainText, createEmitter } from '../shared/utils';
|
|
11
|
-
import { restProps } from '../shared/rest-props';
|
|
12
|
-
import { useTooltip } from '../shared/use-tooltip';
|
|
13
|
-
import { useRouteProps } from '../shared/use-route-props';
|
|
14
|
-
import { useIcon } from '../shared/use-icon';
|
|
9
|
+
} from '../shared/mixins.js';
|
|
10
|
+
import { classNames, extend, isStringProp, plainText, createEmitter } from '../shared/utils.js';
|
|
11
|
+
import { restProps } from '../shared/rest-props.js';
|
|
12
|
+
import { useTooltip } from '../shared/use-tooltip.js';
|
|
13
|
+
import { useRouteProps } from '../shared/use-route-props.js';
|
|
14
|
+
import { useIcon } from '../shared/use-icon.js';
|
|
15
15
|
|
|
16
16
|
import UseIcon from './use-icon.svelte';
|
|
17
17
|
import Preloader from './preloader.svelte';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import { colorClasses } from '../shared/mixins';
|
|
3
|
-
import { classNames } from '../shared/utils';
|
|
4
|
-
import { restProps } from '../shared/rest-props';
|
|
2
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
3
|
+
import { classNames } from '../shared/utils.js';
|
|
4
|
+
import { restProps } from '../shared/rest-props.js';
|
|
5
5
|
|
|
6
6
|
let className = undefined;
|
|
7
7
|
export { className as class };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import { colorClasses } from '../shared/mixins';
|
|
3
|
-
import { classNames } from '../shared/utils';
|
|
4
|
-
import { restProps } from '../shared/rest-props';
|
|
2
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
3
|
+
import { classNames } from '../shared/utils.js';
|
|
4
|
+
import { restProps } from '../shared/rest-props.js';
|
|
5
5
|
|
|
6
6
|
let className = undefined;
|
|
7
7
|
export { className as class };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import { colorClasses } from '../shared/mixins';
|
|
3
|
-
import { classNames } from '../shared/utils';
|
|
4
|
-
import { restProps } from '../shared/rest-props';
|
|
2
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
3
|
+
import { classNames } from '../shared/utils.js';
|
|
4
|
+
import { restProps } from '../shared/rest-props.js';
|
|
5
5
|
|
|
6
6
|
let className = undefined;
|
|
7
7
|
export { className as class };
|
package/components/card.svelte
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { createEventDispatcher, onMount, onDestroy } from 'svelte';
|
|
3
|
-
import { colorClasses } from '../shared/mixins';
|
|
4
|
-
import { classNames, plainText, createEmitter } from '../shared/utils';
|
|
5
|
-
import { restProps } from '../shared/rest-props';
|
|
6
|
-
import { app, f7ready } from '../shared/f7';
|
|
3
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
4
|
+
import { classNames, plainText, createEmitter } from '../shared/utils.js';
|
|
5
|
+
import { restProps } from '../shared/rest-props.js';
|
|
6
|
+
import { app, f7ready } from '../shared/f7.js';
|
|
7
7
|
|
|
8
8
|
import CardHeader from './card-header.svelte';
|
|
9
9
|
import CardContent from './card-content.svelte';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { createEventDispatcher, onMount, afterUpdate } from 'svelte';
|
|
3
|
-
import { colorClasses } from '../shared/mixins';
|
|
4
|
-
import { classNames, createEmitter } from '../shared/utils';
|
|
5
|
-
import { restProps } from '../shared/rest-props';
|
|
3
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
4
|
+
import { classNames, createEmitter } from '../shared/utils.js';
|
|
5
|
+
import { restProps } from '../shared/rest-props.js';
|
|
6
6
|
|
|
7
7
|
const emit = createEmitter(createEventDispatcher, $$props);
|
|
8
8
|
|
|
@@ -54,7 +54,8 @@
|
|
|
54
54
|
{disabled}
|
|
55
55
|
{readonly}
|
|
56
56
|
{checked}
|
|
57
|
-
on:change={onChange}
|
|
57
|
+
on:change={onChange}
|
|
58
|
+
/>
|
|
58
59
|
<i class="icon-checkbox" />
|
|
59
60
|
<slot />
|
|
60
61
|
</label>
|
package/components/chip.svelte
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { createEventDispatcher } from 'svelte';
|
|
3
3
|
|
|
4
|
-
import { colorClasses } from '../shared/mixins';
|
|
5
|
-
import { classNames, plainText, createEmitter } from '../shared/utils';
|
|
6
|
-
import { restProps } from '../shared/rest-props';
|
|
7
|
-
import { useTooltip } from '../shared/use-tooltip';
|
|
8
|
-
import { useIcon } from '../shared/use-icon';
|
|
4
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
5
|
+
import { classNames, plainText, createEmitter } from '../shared/utils.js';
|
|
6
|
+
import { restProps } from '../shared/rest-props.js';
|
|
7
|
+
import { useTooltip } from '../shared/use-tooltip.js';
|
|
8
|
+
import { useIcon } from '../shared/use-icon.js';
|
|
9
9
|
|
|
10
10
|
import UseIcon from './use-icon.svelte';
|
|
11
11
|
|
package/components/col.svelte
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { createEventDispatcher, onMount, onDestroy } from 'svelte';
|
|
3
|
-
import { colorClasses } from '../shared/mixins';
|
|
4
|
-
import { classNames, createEmitter } from '../shared/utils';
|
|
5
|
-
import { restProps } from '../shared/rest-props';
|
|
6
|
-
import { app, f7ready } from '../shared/f7';
|
|
3
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
4
|
+
import { classNames, createEmitter } from '../shared/utils.js';
|
|
5
|
+
import { restProps } from '../shared/rest-props.js';
|
|
6
|
+
import { app, f7ready } from '../shared/f7.js';
|
|
7
7
|
|
|
8
8
|
const emit = createEmitter(createEventDispatcher, $$props);
|
|
9
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import { classNames } from '../shared/utils';
|
|
3
|
-
import { restProps } from '../shared/rest-props';
|
|
2
|
+
import { classNames } from '../shared/utils.js';
|
|
3
|
+
import { restProps } from '../shared/rest-props.js';
|
|
4
4
|
|
|
5
5
|
let className = undefined;
|
|
6
6
|
export { className as class };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { createEventDispatcher } from 'svelte';
|
|
3
|
-
import { colorClasses } from '../shared/mixins';
|
|
4
|
-
import { classNames, plainText, createEmitter } from '../shared/utils';
|
|
5
|
-
import { restProps } from '../shared/rest-props';
|
|
6
|
-
import { useTooltip } from '../shared/use-tooltip';
|
|
3
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
4
|
+
import { classNames, plainText, createEmitter } from '../shared/utils.js';
|
|
5
|
+
import { restProps } from '../shared/rest-props.js';
|
|
6
|
+
import { useTooltip } from '../shared/use-tooltip.js';
|
|
7
7
|
|
|
8
8
|
const emit = createEmitter(createEventDispatcher, $$props);
|
|
9
9
|
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
<!-- svelte-ignore a11y-missing-attribute -->
|
|
36
36
|
<a
|
|
37
37
|
bind:this={el}
|
|
38
|
-
|
|
38
|
+
{target}
|
|
39
39
|
class={classes}
|
|
40
40
|
on:click={onClick}
|
|
41
41
|
{...restProps($$restProps)}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import { colorClasses } from '../shared/mixins';
|
|
3
|
-
import { classNames } from '../shared/utils';
|
|
4
|
-
import { restProps } from '../shared/rest-props';
|
|
2
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
3
|
+
import { classNames } from '../shared/utils.js';
|
|
4
|
+
import { restProps } from '../shared/rest-props.js';
|
|
5
5
|
|
|
6
6
|
let className = undefined;
|
|
7
7
|
export { className as class };
|
package/components/fab.svelte
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { createEventDispatcher, onMount, afterUpdate } from 'svelte';
|
|
3
|
-
import { colorClasses } from '../shared/mixins';
|
|
4
|
-
import { classNames, plainText, createEmitter } from '../shared/utils';
|
|
5
|
-
import { restProps } from '../shared/rest-props';
|
|
6
|
-
import { app, f7ready } from '../shared/f7';
|
|
7
|
-
import { useTooltip } from '../shared/use-tooltip';
|
|
3
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
4
|
+
import { classNames, plainText, createEmitter } from '../shared/utils.js';
|
|
5
|
+
import { restProps } from '../shared/rest-props.js';
|
|
6
|
+
import { app, f7ready } from '../shared/f7.js';
|
|
7
|
+
import { useTooltip } from '../shared/use-tooltip.js';
|
|
8
8
|
|
|
9
9
|
const emit = createEmitter(createEventDispatcher, $$props);
|
|
10
10
|
|
package/components/gauge.svelte
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import { classNames } from '../shared/utils';
|
|
3
|
-
import { restProps } from '../shared/rest-props';
|
|
2
|
+
import { classNames } from '../shared/utils.js';
|
|
3
|
+
import { restProps } from '../shared/rest-props.js';
|
|
4
4
|
|
|
5
5
|
let className = undefined;
|
|
6
6
|
export { className as class };
|
|
@@ -34,14 +34,16 @@
|
|
|
34
34
|
class="gauge-svg"
|
|
35
35
|
width={`${size}px`}
|
|
36
36
|
height={`${semiCircle ? size / 2 : size}px`}
|
|
37
|
-
viewBox={`0 0 ${size} ${semiCircle ? size / 2 : size}`}
|
|
37
|
+
viewBox={`0 0 ${size} ${semiCircle ? size / 2 : size}`}
|
|
38
|
+
>
|
|
38
39
|
{#if semiCircle}
|
|
39
40
|
<path
|
|
40
41
|
class="gauge-back-semi"
|
|
41
42
|
d={`M${size - borderWidth / 2},${size / 2} a1,1 0 0,0 -${size - borderWidth},0`}
|
|
42
43
|
stroke={borderBgColor}
|
|
43
44
|
stroke-width={borderWidth}
|
|
44
|
-
fill={bgColor || 'none'}
|
|
45
|
+
fill={bgColor || 'none'}
|
|
46
|
+
/>
|
|
45
47
|
<path
|
|
46
48
|
class="gauge-front-semi"
|
|
47
49
|
d={`M${size - borderWidth / 2},${size / 2} a1,1 0 0,0 -${size - borderWidth},0`}
|
|
@@ -49,7 +51,8 @@
|
|
|
49
51
|
stroke-width={borderWidth}
|
|
50
52
|
stroke-dasharray={length / 2}
|
|
51
53
|
stroke-dashoffset={(length / 2) * (1 + progress)}
|
|
52
|
-
fill={borderBgColor ? 'none' : bgColor || 'none'}
|
|
54
|
+
fill={borderBgColor ? 'none' : bgColor || 'none'}
|
|
55
|
+
/>
|
|
53
56
|
{/if}
|
|
54
57
|
{#if !semiCircle}
|
|
55
58
|
{#if borderBgColor}
|
|
@@ -60,7 +63,8 @@
|
|
|
60
63
|
fill={bgColor || 'none'}
|
|
61
64
|
cx={size / 2}
|
|
62
65
|
cy={size / 2}
|
|
63
|
-
r={radius}
|
|
66
|
+
r={radius}
|
|
67
|
+
/>
|
|
64
68
|
{/if}
|
|
65
69
|
<circle
|
|
66
70
|
class="gauge-front-circle"
|
|
@@ -72,7 +76,8 @@
|
|
|
72
76
|
fill={borderBgColor ? 'none' : bgColor || 'none'}
|
|
73
77
|
cx={size / 2}
|
|
74
78
|
cy={size / 2}
|
|
75
|
-
r={radius}
|
|
79
|
+
r={radius}
|
|
80
|
+
/>
|
|
76
81
|
{/if}
|
|
77
82
|
{#if valueText}
|
|
78
83
|
<text
|
|
@@ -84,7 +89,8 @@
|
|
|
84
89
|
fill={valueTextColor}
|
|
85
90
|
dy={semiCircle ? (labelText ? -labelFontSize - 15 : -5) : 0}
|
|
86
91
|
text-anchor="middle"
|
|
87
|
-
dominant-baseline={!semiCircle ? 'middle' : null}
|
|
92
|
+
dominant-baseline={!semiCircle ? 'middle' : null}
|
|
93
|
+
>
|
|
88
94
|
{valueText}
|
|
89
95
|
</text>
|
|
90
96
|
{/if}
|
|
@@ -98,7 +104,8 @@
|
|
|
98
104
|
fill={labelTextColor}
|
|
99
105
|
dy={semiCircle ? -5 : valueText ? valueFontSize / 2 + 10 : 0}
|
|
100
106
|
text-anchor="middle"
|
|
101
|
-
dominant-baseline={!semiCircle ? 'middle' : null}
|
|
107
|
+
dominant-baseline={!semiCircle ? 'middle' : null}
|
|
108
|
+
>
|
|
102
109
|
{labelText}
|
|
103
110
|
</text>
|
|
104
111
|
{/if}
|