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
package/components/icon.svelte
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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';
|
|
6
|
-
import { useTheme } from '../shared/use-theme';
|
|
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
|
+
import { useTheme } from '../shared/use-theme.js';
|
|
7
7
|
|
|
8
8
|
export let style = undefined;
|
|
9
9
|
|
|
@@ -92,7 +92,8 @@
|
|
|
92
92
|
class={iconClasses}
|
|
93
93
|
bind:this={el}
|
|
94
94
|
{...restProps($$restProps)}
|
|
95
|
-
use:useTooltip={{ tooltip, tooltipTrigger }}
|
|
95
|
+
use:useTooltip={{ tooltip, tooltipTrigger }}
|
|
96
|
+
>
|
|
96
97
|
{iconText || ''}
|
|
97
98
|
<slot />
|
|
98
99
|
</i>
|
package/components/input.svelte
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { createEventDispatcher, onMount, afterUpdate, 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
|
import Toggle from './toggle.svelte';
|
|
8
8
|
import Range from './range.svelte';
|
|
9
9
|
import TextEditor from './text-editor.svelte';
|
package/components/link.svelte
CHANGED
|
@@ -6,14 +6,14 @@
|
|
|
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 { useSmartSelect } from '../shared/use-smart-select';
|
|
14
|
-
import { useRouteProps } from '../shared/use-route-props';
|
|
15
|
-
import { useIcon } from '../shared/use-icon';
|
|
16
|
-
import { getReactiveContext } from '../shared/get-reactive-context';
|
|
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 { useSmartSelect } from '../shared/use-smart-select.js';
|
|
14
|
+
import { useRouteProps } from '../shared/use-route-props.js';
|
|
15
|
+
import { useIcon } from '../shared/use-icon.js';
|
|
16
|
+
import { getReactiveContext } from '../shared/get-reactive-context.js';
|
|
17
17
|
|
|
18
18
|
import UseIcon from './use-icon.svelte';
|
|
19
19
|
import Badge from './badge.svelte';
|
|
@@ -44,6 +44,10 @@
|
|
|
44
44
|
let el;
|
|
45
45
|
let f7SmartSelect;
|
|
46
46
|
|
|
47
|
+
export function smartSelectInstance() {
|
|
48
|
+
return f7SmartSelect;
|
|
49
|
+
}
|
|
50
|
+
|
|
47
51
|
let TabbarContext =
|
|
48
52
|
getReactiveContext('TabbarContext', (newValue) => {
|
|
49
53
|
TabbarContext = newValue;
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
routerClasses,
|
|
7
7
|
actionsAttrs,
|
|
8
8
|
actionsClasses,
|
|
9
|
-
} from '../shared/mixins';
|
|
10
|
-
import { classNames, extend, plainText, isStringProp, 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';
|
|
9
|
+
} from '../shared/mixins.js';
|
|
10
|
+
import { classNames, extend, plainText, isStringProp, 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
14
|
|
|
15
15
|
const emit = createEmitter(createEventDispatcher, $$props);
|
|
16
16
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import { colorClasses } from '../shared/mixins';
|
|
3
|
-
import { classNames } from '../shared/utils';
|
|
4
|
-
import { restProps } from '../shared/rest-props';
|
|
5
|
-
import { setReactiveContext } from '../shared/set-reactive-context';
|
|
6
|
-
import { getReactiveContext } from '../shared/get-reactive-context';
|
|
2
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
3
|
+
import { classNames } from '../shared/utils.js';
|
|
4
|
+
import { restProps } from '../shared/rest-props.js';
|
|
5
|
+
import { setReactiveContext } from '../shared/set-reactive-context.js';
|
|
6
|
+
import { getReactiveContext } from '../shared/get-reactive-context.js';
|
|
7
7
|
|
|
8
8
|
let className = undefined;
|
|
9
9
|
export { className as class };
|
|
@@ -42,8 +42,11 @@
|
|
|
42
42
|
|
|
43
43
|
<div
|
|
44
44
|
class={classes}
|
|
45
|
-
data-sortable-move-elements={typeof sortableMoveElements !== 'undefined'
|
|
46
|
-
|
|
45
|
+
data-sortable-move-elements={typeof sortableMoveElements !== 'undefined'
|
|
46
|
+
? sortableMoveElements.toString()
|
|
47
|
+
: undefined}
|
|
48
|
+
{...restProps($$restProps)}
|
|
49
|
+
>
|
|
47
50
|
<ul>
|
|
48
51
|
<slot />
|
|
49
52
|
</ul>
|
|
@@ -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,10 +1,10 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { createEventDispatcher, onMount, afterUpdate, onDestroy } from 'svelte';
|
|
3
|
-
import { colorClasses } from '../shared/mixins';
|
|
4
|
-
import { classNames, extend, plainText, createEmitter } from '../shared/utils';
|
|
5
|
-
import { restProps } from '../shared/rest-props';
|
|
6
|
-
import { app, f7ready } from '../shared/f7';
|
|
7
|
-
import { getReactiveContext } from '../shared/get-reactive-context';
|
|
3
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
4
|
+
import { classNames, extend, plainText, createEmitter } from '../shared/utils.js';
|
|
5
|
+
import { restProps } from '../shared/rest-props.js';
|
|
6
|
+
import { app, f7ready } from '../shared/f7.js';
|
|
7
|
+
import { getReactiveContext } from '../shared/get-reactive-context.js';
|
|
8
8
|
|
|
9
9
|
import TextEditor from './text-editor.svelte';
|
|
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,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 };
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
routerAttrs,
|
|
7
7
|
actionsClasses,
|
|
8
8
|
actionsAttrs,
|
|
9
|
-
} from '../shared/mixins';
|
|
10
|
-
import { classNames, plainText, isStringProp, createEmitter } from '../shared/utils';
|
|
11
|
-
import { restProps } from '../shared/rest-props';
|
|
12
|
-
import { app, f7ready } from '../shared/f7';
|
|
13
|
-
import { useTooltip } from '../shared/use-tooltip';
|
|
14
|
-
import { useSmartSelect } from '../shared/use-smart-select';
|
|
15
|
-
import { useRouteProps } from '../shared/use-route-props';
|
|
16
|
-
import { getReactiveContext } from '../shared/get-reactive-context';
|
|
9
|
+
} from '../shared/mixins.js';
|
|
10
|
+
import { classNames, plainText, isStringProp, createEmitter } from '../shared/utils.js';
|
|
11
|
+
import { restProps } from '../shared/rest-props.js';
|
|
12
|
+
import { app, f7ready } from '../shared/f7.js';
|
|
13
|
+
import { useTooltip } from '../shared/use-tooltip.js';
|
|
14
|
+
import { useSmartSelect } from '../shared/use-smart-select.js';
|
|
15
|
+
import { useRouteProps } from '../shared/use-route-props.js';
|
|
16
|
+
import { getReactiveContext } from '../shared/get-reactive-context.js';
|
|
17
17
|
|
|
18
18
|
import Badge from './badge.svelte';
|
|
19
19
|
|
package/components/list.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ interface ListProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap['div
|
|
|
55
55
|
onSortableEnable ?: (...args: any[]) => void;
|
|
56
56
|
onSortableDisable ?: (...args: any[]) => void;
|
|
57
57
|
onSortableSort ?: (sortData?: any) => void;
|
|
58
|
+
onSortableMove ?: (itemEl?: any) => void;
|
|
58
59
|
onTabShow ?: (el?: HTMLElement) => void;
|
|
59
60
|
onTabHide ?: (el?: HTMLElement) => void;
|
|
60
61
|
}
|
|
@@ -63,7 +64,7 @@ interface ListProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap['div
|
|
|
63
64
|
|
|
64
65
|
class List extends SvelteComponentTyped<
|
|
65
66
|
ListProps,
|
|
66
|
-
{ submit: CustomEvent<void>; sortableEnable: CustomEvent<void>; sortableDisable: CustomEvent<void>; sortableSort: CustomEvent<void>; virtualItemBeforeInsert: CustomEvent<void>; virtualBeforeClear: CustomEvent<void>; virtualItemsBeforeInsert: CustomEvent<void>; virtualItemsAfterInsert: CustomEvent<void>; },
|
|
67
|
+
{ submit: CustomEvent<void>; sortableEnable: CustomEvent<void>; sortableDisable: CustomEvent<void>; sortableSort: CustomEvent<void>; sortableMove: CustomEvent<void>; virtualItemBeforeInsert: CustomEvent<void>; virtualBeforeClear: CustomEvent<void>; virtualItemsBeforeInsert: CustomEvent<void>; virtualItemsAfterInsert: CustomEvent<void>; },
|
|
67
68
|
{ 'before-list' : {}; 'list' : {}; 'default' : {}; 'after-list' : {}; }
|
|
68
69
|
> {}
|
|
69
70
|
|
package/components/list.svelte
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { createEventDispatcher, onMount, onDestroy } from 'svelte';
|
|
3
|
-
import { colorClasses } from '../shared/mixins';
|
|
4
|
-
import { classNames, extend, createEmitter } from '../shared/utils';
|
|
5
|
-
import { restProps } from '../shared/rest-props';
|
|
6
|
-
import { app, f7ready } from '../shared/f7';
|
|
7
|
-
import { useTab } from '../shared/use-tab';
|
|
8
|
-
import { setReactiveContext } from '../shared/set-reactive-context';
|
|
3
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
4
|
+
import { classNames, extend, createEmitter } from '../shared/utils.js';
|
|
5
|
+
import { restProps } from '../shared/rest-props.js';
|
|
6
|
+
import { app, f7ready } from '../shared/f7.js';
|
|
7
|
+
import { useTab } from '../shared/use-tab.js';
|
|
8
|
+
import { setReactiveContext } from '../shared/set-reactive-context.js';
|
|
9
9
|
|
|
10
10
|
const emit = createEmitter(createEventDispatcher, $$props);
|
|
11
11
|
|
|
@@ -131,6 +131,10 @@
|
|
|
131
131
|
if (listEl !== el) return;
|
|
132
132
|
emit('sortableSort', [sortData]);
|
|
133
133
|
}
|
|
134
|
+
function onSortableMove(listItemEl, listEl) {
|
|
135
|
+
if (listEl !== el) return;
|
|
136
|
+
emit('sortableMove', [listItemEl, listEl]);
|
|
137
|
+
}
|
|
134
138
|
|
|
135
139
|
useTab(() => el, emit);
|
|
136
140
|
|
|
@@ -139,6 +143,7 @@
|
|
|
139
143
|
app.f7.on('sortableEnable', onSortableEnable);
|
|
140
144
|
app.f7.on('sortableDisable', onSortableDisable);
|
|
141
145
|
app.f7.on('sortableSort', onSortableSort);
|
|
146
|
+
app.f7.on('sortableMove', onSortableMove);
|
|
142
147
|
|
|
143
148
|
if (!virtualList) return;
|
|
144
149
|
const vlParams = virtualListParams || {};
|
|
@@ -178,6 +183,7 @@
|
|
|
178
183
|
app.f7.off('sortableEnable', onSortableEnable);
|
|
179
184
|
app.f7.off('sortableDisable', onSortableDisable);
|
|
180
185
|
app.f7.off('sortableSort', onSortableSort);
|
|
186
|
+
app.f7.off('sortableMove', onSortableMove);
|
|
181
187
|
|
|
182
188
|
if (f7VirtualList && f7VirtualList.destroy) {
|
|
183
189
|
f7VirtualList.destroy();
|
|
@@ -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, 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
|
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
routerClasses,
|
|
7
7
|
actionsAttrs,
|
|
8
8
|
actionsClasses,
|
|
9
|
-
} from '../shared/mixins';
|
|
10
|
-
import { classNames, extend, plainText, createEmitter } from '../shared/utils';
|
|
11
|
-
import { restProps } from '../shared/rest-props';
|
|
12
|
-
import { useRouteProps } from '../shared/use-route-props';
|
|
9
|
+
} from '../shared/mixins.js';
|
|
10
|
+
import { classNames, extend, plainText, createEmitter } from '../shared/utils.js';
|
|
11
|
+
import { restProps } from '../shared/rest-props.js';
|
|
12
|
+
import { useRouteProps } from '../shared/use-route-props.js';
|
|
13
13
|
|
|
14
14
|
const emit = createEmitter(createEventDispatcher, $$props);
|
|
15
15
|
|
|
@@ -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 };
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
routerClasses,
|
|
7
7
|
actionsAttrs,
|
|
8
8
|
actionsClasses,
|
|
9
|
-
} from '../shared/mixins';
|
|
10
|
-
import { classNames, extend, plainText, createEmitter } from '../shared/utils';
|
|
11
|
-
import { restProps } from '../shared/rest-props';
|
|
12
|
-
import { app, f7ready } from '../shared/f7';
|
|
13
|
-
import { useTooltip } from '../shared/use-tooltip';
|
|
14
|
-
import { useRouteProps } from '../shared/use-route-props';
|
|
15
|
-
import { useIcon } from '../shared/use-icon';
|
|
9
|
+
} from '../shared/mixins.js';
|
|
10
|
+
import { classNames, extend, plainText, createEmitter } from '../shared/utils.js';
|
|
11
|
+
import { restProps } from '../shared/rest-props.js';
|
|
12
|
+
import { app, f7ready } from '../shared/f7.js';
|
|
13
|
+
import { useTooltip } from '../shared/use-tooltip.js';
|
|
14
|
+
import { useRouteProps } from '../shared/use-route-props.js';
|
|
15
|
+
import { useIcon } from '../shared/use-icon.js';
|
|
16
16
|
|
|
17
17
|
import UseIcon from './use-icon.svelte';
|
|
18
18
|
|
package/components/menu.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,9 +1,9 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
/* eslint-disable no-undef */
|
|
3
3
|
import { createEventDispatcher } from 'svelte';
|
|
4
|
-
import { colorClasses } from '../shared/mixins';
|
|
5
|
-
import { classNames, plainText, createEmitter } from '../shared/utils';
|
|
6
|
-
import { restProps } from '../shared/rest-props';
|
|
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
7
|
|
|
8
8
|
const emit = createEmitter(createEventDispatcher, $$props);
|
|
9
9
|
|
|
@@ -1,8 +1,8 @@
|
|
|
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';
|
|
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
|
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
<img src={image} />
|
|
30
30
|
{/if}
|
|
31
31
|
{#if deletable}
|
|
32
|
-
<span on:click={onDeleteClick}
|
|
32
|
+
<span on:click={onDeleteClick} class="messagebar-attachment-delete" />
|
|
33
33
|
{/if}
|
|
34
34
|
<slot />
|
|
35
35
|
</div>
|
|
@@ -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 } 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
|
|
|
@@ -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,9 +1,9 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { createEventDispatcher, onMount, onDestroy, afterUpdate } from 'svelte';
|
|
3
|
-
import { colorClasses } from '../shared/mixins';
|
|
4
|
-
import { classNames, noUndefinedProps, 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, noUndefinedProps, 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 Link from './link.svelte';
|
|
9
9
|
import Input from './input.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,9 +1,9 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { onMount, onDestroy, beforeUpdate, afterUpdate } from 'svelte';
|
|
3
|
-
import { colorClasses } from '../shared/mixins';
|
|
4
|
-
import { classNames, noUndefinedProps } 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, noUndefinedProps } from '../shared/utils.js';
|
|
5
|
+
import { restProps } from '../shared/rest-props.js';
|
|
6
|
+
import { app, f7ready } from '../shared/f7.js';
|
|
7
7
|
|
|
8
8
|
let className = undefined;
|
|
9
9
|
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, createEmitter } from '../shared/utils';
|
|
5
|
-
import { restProps } from '../shared/rest-props';
|
|
6
|
-
import { useTheme } from '../shared/use-theme';
|
|
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 { useTheme } from '../shared/use-theme.js';
|
|
7
7
|
|
|
8
8
|
import Link from './link.svelte';
|
|
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,7 +1,7 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import { colorClasses } from '../shared/mixins';
|
|
3
|
-
import { classNames, plainText } from '../shared/utils';
|
|
4
|
-
import { restProps } from '../shared/rest-props';
|
|
2
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
3
|
+
import { classNames, plainText } 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/navbar.svelte
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { createEventDispatcher, onMount, onDestroy, 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 { f7ready, app } from '../shared/f7';
|
|
7
|
-
import { useTheme } from '../shared/use-theme';
|
|
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 { f7ready, app } from '../shared/f7.js';
|
|
7
|
+
import { useTheme } from '../shared/use-theme.js';
|
|
8
8
|
|
|
9
9
|
import NavLeft from './nav-left.svelte';
|
|
10
10
|
import NavTitle from './nav-title.svelte';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { onMount, onDestroy, createEventDispatcher } from 'svelte';
|
|
3
|
-
import { restProps } from '../shared/rest-props';
|
|
4
|
-
import { colorClasses } from '../shared/mixins';
|
|
5
|
-
import { classNames, createEmitter } from '../shared/utils';
|
|
6
|
-
import { app, f7ready } from '../shared/f7';
|
|
7
|
-
import { useTab } from '../shared/use-tab';
|
|
3
|
+
import { restProps } from '../shared/rest-props.js';
|
|
4
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
5
|
+
import { classNames, createEmitter } from '../shared/utils.js';
|
|
6
|
+
import { app, f7ready } from '../shared/f7.js';
|
|
7
|
+
import { useTab } from '../shared/use-tab.js';
|
|
8
8
|
|
|
9
9
|
import Preloader from './preloader.svelte';
|
|
10
10
|
|
package/components/page.svelte
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { onMount, afterUpdate, onDestroy, createEventDispatcher } from 'svelte';
|
|
3
|
-
import { restProps } from '../shared/rest-props';
|
|
4
|
-
import { colorClasses } from '../shared/mixins';
|
|
5
|
-
import { classNames, createEmitter } from '../shared/utils';
|
|
6
|
-
import { app, f7ready } from '../shared/f7';
|
|
3
|
+
import { restProps } from '../shared/rest-props.js';
|
|
4
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
5
|
+
import { classNames, createEmitter } from '../shared/utils.js';
|
|
6
|
+
import { app, f7ready } from '../shared/f7.js';
|
|
7
7
|
|
|
8
8
|
import PageContent from './page-content.svelte';
|
|
9
9
|
|
package/components/panel.svelte
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { onMount, onDestroy, createEventDispatcher } from 'svelte';
|
|
3
|
-
import { restProps } from '../shared/rest-props';
|
|
4
|
-
import { colorClasses } from '../shared/mixins';
|
|
5
|
-
import { classNames, noUndefinedProps, createEmitter } from '../shared/utils';
|
|
6
|
-
import { app, f7ready } from '../shared/f7';
|
|
3
|
+
import { restProps } from '../shared/rest-props.js';
|
|
4
|
+
import { colorClasses } from '../shared/mixins.js';
|
|
5
|
+
import { classNames, noUndefinedProps, createEmitter } from '../shared/utils.js';
|
|
6
|
+
import { app, f7ready } from '../shared/f7.js';
|
|
7
7
|
|
|
8
8
|
const emit = createEmitter(createEventDispatcher, $$props);
|
|
9
9
|
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
export let side = undefined;
|
|
14
14
|
export let effect = undefined;
|
|
15
|
+
// svelte-ignore unused-export-let
|
|
15
16
|
export let cover = false;
|
|
16
17
|
export let reveal = false;
|
|
17
18
|
export let push = false;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { createEventDispatcher, onMount, onDestroy } from 'svelte';
|
|
3
3
|
|
|
4
|
-
import { extend, createEmitter } from '../shared/utils';
|
|
5
|
-
import { app, f7ready } from '../shared/f7';
|
|
4
|
+
import { extend, createEmitter } from '../shared/utils.js';
|
|
5
|
+
import { app, f7ready } from '../shared/f7.js';
|
|
6
6
|
|
|
7
7
|
const emit = createEmitter(createEventDispatcher, $$props);
|
|
8
8
|
|