framework7-svelte 7.1.5 → 8.0.0-beta.2
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/actions-button.d.ts +1 -1
- package/components/actions-button.svelte +2 -2
- package/components/actions-label.svelte +2 -2
- package/components/block.d.ts +17 -4
- package/components/block.svelte +34 -8
- package/components/button.d.ts +3 -7
- package/components/button.svelte +6 -12
- package/components/card.d.ts +5 -2
- package/components/card.svelte +10 -4
- package/components/chip.d.ts +0 -1
- package/components/icon.d.ts +0 -1
- package/components/icon.svelte +0 -9
- package/components/link.d.ts +0 -1
- package/components/link.svelte +3 -3
- package/components/list-index.d.ts +0 -1
- package/components/list-index.svelte +0 -2
- package/components/list-input.d.ts +0 -1
- package/components/list-input.svelte +0 -2
- package/components/list-item.d.ts +1 -1
- package/components/list-item.svelte +4 -3
- package/components/list.d.ts +21 -9
- package/components/list.svelte +42 -19
- package/components/messagebar-sheet-image.svelte +4 -1
- package/components/navbar.d.ts +1 -2
- package/components/navbar.svelte +3 -7
- package/components/page.d.ts +0 -1
- package/components/page.svelte +1 -16
- package/components/panel.d.ts +1 -0
- package/components/panel.svelte +3 -1
- package/components/popover.d.ts +1 -0
- package/components/popover.svelte +2 -0
- package/components/popup.svelte +1 -1
- package/components/preloader.svelte +7 -3
- package/components/searchbar.d.ts +1 -2
- package/components/searchbar.svelte +3 -5
- package/components/segmented.d.ts +0 -3
- package/components/segmented.svelte +2 -8
- package/components/stepper.d.ts +0 -5
- package/components/stepper.svelte +0 -10
- package/components/toolbar.d.ts +2 -6
- package/components/toolbar.svelte +6 -16
- package/components/treeview-item.d.ts +0 -1
- package/components/view.d.ts +0 -6
- package/framework7-svelte.d.ts +2 -14
- package/framework7-svelte.js +3 -14
- package/package.json +1 -1
- package/shared/components-router.js +0 -32
- package/shared/f7.js +6 -23
- package/shared/get-router-initial-component.js +0 -4
- package/shared/list-context.js +2 -0
- package/shared/mixins.js +2 -8
- package/shared/plugin.js +2 -16
- package/shared/rest-props.js +0 -1
- package/shared/router-context.js +2 -0
- package/shared/router-open-in.js +6 -9
- package/shared/set-reactive-context.js +0 -4
- package/shared/use-icon.js +1 -6
- package/shared/use-route-props.js +0 -3
- package/shared/use-smart-select.js +0 -1
- package/shared/use-store.js +2 -6
- package/shared/use-tab.js +0 -4
- package/shared/use-theme.js +0 -2
- package/shared/use-tooltip.js +0 -7
- package/shared/utils.js +0 -12
- package/components/appbar.d.ts +0 -30
- package/components/appbar.svelte +0 -38
- package/components/col.d.ts +0 -38
- package/components/col.svelte +0 -73
- package/components/list-item-cell.d.ts +0 -25
- package/components/list-item-cell.svelte +0 -14
- package/components/list-item-row.d.ts +0 -25
- package/components/list-item-row.svelte +0 -14
- package/components/menu-dropdown-item.d.ts +0 -70
- package/components/menu-dropdown-item.svelte +0 -73
- package/components/menu-dropdown.d.ts +0 -30
- package/components/menu-dropdown.svelte +0 -35
- package/components/menu-item.d.ts +0 -83
- package/components/menu-item.svelte +0 -138
- package/components/menu.d.ts +0 -25
- package/components/menu.svelte +0 -16
- package/components/row.d.ts +0 -33
- package/components/row.svelte +0 -63
- package/components/swiper-slide.d.ts +0 -4
- package/components/swiper-slide.js +0 -3
- package/components/swiper.d.ts +0 -4
- package/components/swiper.js +0 -3
- package/shared/tabbar-context.js +0 -5
|
@@ -3,7 +3,7 @@ import { SvelteComponentTyped } from 'svelte';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
interface ActionsButtonProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap['div']> {
|
|
6
|
-
|
|
6
|
+
strong?: boolean;
|
|
7
7
|
close?: boolean;
|
|
8
8
|
onClick ?: (event?: any) => void;
|
|
9
9
|
children?: React.ReactNode;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
let className = undefined;
|
|
12
12
|
export { className as class };
|
|
13
13
|
|
|
14
|
-
export let
|
|
14
|
+
export let strong = false;
|
|
15
15
|
export let close = true;
|
|
16
16
|
|
|
17
17
|
let el;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
className,
|
|
24
24
|
{
|
|
25
25
|
'actions-button': true,
|
|
26
|
-
'actions-button-
|
|
26
|
+
'actions-button-strong': strong,
|
|
27
27
|
},
|
|
28
28
|
colorClasses($$props),
|
|
29
29
|
);
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
let className = undefined;
|
|
11
11
|
export { className as class };
|
|
12
12
|
|
|
13
|
-
export let
|
|
13
|
+
export let strong = false;
|
|
14
14
|
|
|
15
15
|
$: classes = classNames(
|
|
16
16
|
className,
|
|
17
17
|
'actions-label',
|
|
18
18
|
{
|
|
19
|
-
'actions-button-
|
|
19
|
+
'actions-button-strong': strong,
|
|
20
20
|
},
|
|
21
21
|
colorClasses($$props),
|
|
22
22
|
);
|
package/components/block.d.ts
CHANGED
|
@@ -4,21 +4,34 @@ import { SvelteComponentTyped } from 'svelte';
|
|
|
4
4
|
|
|
5
5
|
interface BlockProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap['div']> {
|
|
6
6
|
inset?: boolean;
|
|
7
|
+
insetIos?: boolean;
|
|
8
|
+
insetMd?: boolean;
|
|
7
9
|
xsmallInset?: boolean;
|
|
10
|
+
xsmallInsetIos?: boolean;
|
|
11
|
+
xsmallInsetMd?: boolean;
|
|
8
12
|
smallInset?: boolean;
|
|
13
|
+
smallInsetIos?: boolean;
|
|
14
|
+
smallInsetMd?: boolean;
|
|
9
15
|
mediumInset?: boolean;
|
|
16
|
+
mediumInsetIos?: boolean;
|
|
17
|
+
mediumInsetMd?: boolean;
|
|
10
18
|
largeInset?: boolean;
|
|
19
|
+
largeInsetIos?: boolean;
|
|
20
|
+
largeInsetMd?: boolean;
|
|
11
21
|
xlargeInset?: boolean;
|
|
22
|
+
xlargeInsetIos?: boolean;
|
|
23
|
+
xlargeInsetMd?: boolean;
|
|
12
24
|
strong?: boolean;
|
|
25
|
+
strongIos?: boolean;
|
|
26
|
+
strongMd?: boolean;
|
|
27
|
+
outline?: boolean;
|
|
28
|
+
outlineIos?: boolean;
|
|
29
|
+
outlineMd?: boolean;
|
|
13
30
|
tabs?: boolean;
|
|
14
31
|
tab?: boolean;
|
|
15
32
|
tabActive?: boolean;
|
|
16
33
|
accordionList?: boolean;
|
|
17
34
|
accordionOpposite?: boolean;
|
|
18
|
-
noHairlines?: boolean;
|
|
19
|
-
noHairlinesMd?: boolean;
|
|
20
|
-
noHairlinesIos?: boolean;
|
|
21
|
-
noHairlinesAurora?: boolean;
|
|
22
35
|
onTabShow?: (el?: HTMLElement) => void;
|
|
23
36
|
onTabHide?: (el?: HTMLElement) => void;
|
|
24
37
|
children?: React.ReactNode;
|
package/components/block.svelte
CHANGED
|
@@ -8,21 +8,34 @@
|
|
|
8
8
|
const emit = createEmitter(createEventDispatcher, $$props);
|
|
9
9
|
|
|
10
10
|
export let inset = false;
|
|
11
|
+
export let insetIos = false;
|
|
12
|
+
export let insetMd = false;
|
|
11
13
|
export let xsmallInset = false;
|
|
14
|
+
export let xsmallInsetIos = false;
|
|
15
|
+
export let xsmallInsetMd = false;
|
|
12
16
|
export let smallInset = false;
|
|
17
|
+
export let smallInsetIos = false;
|
|
18
|
+
export let smallInsetMd = false;
|
|
13
19
|
export let mediumInset = false;
|
|
20
|
+
export let mediumInsetIos = false;
|
|
21
|
+
export let mediumInsetMd = false;
|
|
14
22
|
export let largeInset = false;
|
|
23
|
+
export let largeInsetIos = false;
|
|
24
|
+
export let largeInsetMd = false;
|
|
15
25
|
export let xlargeInset = false;
|
|
26
|
+
export let xlargeInsetIos = false;
|
|
27
|
+
export let xlargeInsetMd = false;
|
|
16
28
|
export let strong = false;
|
|
29
|
+
export let strongIos = false;
|
|
30
|
+
export let strongMd = false;
|
|
17
31
|
export let tabs = false;
|
|
18
32
|
export let tab = false;
|
|
19
33
|
export let tabActive = false;
|
|
20
34
|
export let accordionList = false;
|
|
21
35
|
export let accordionOpposite = false;
|
|
22
|
-
export let
|
|
23
|
-
export let
|
|
24
|
-
export let
|
|
25
|
-
export let noHairlinesAurora = false;
|
|
36
|
+
export let outline = false;
|
|
37
|
+
export let outlineMd = false;
|
|
38
|
+
export let outlineIos = false;
|
|
26
39
|
|
|
27
40
|
let className = undefined;
|
|
28
41
|
export { className as class };
|
|
@@ -34,21 +47,34 @@
|
|
|
34
47
|
'block',
|
|
35
48
|
{
|
|
36
49
|
inset,
|
|
50
|
+
'inset-ios': insetIos,
|
|
51
|
+
'inset-md': insetMd,
|
|
37
52
|
'xsmall-inset': xsmallInset,
|
|
53
|
+
'xsmall-inset-ios': xsmallInsetIos,
|
|
54
|
+
'xsmall-inset-md': xsmallInsetMd,
|
|
38
55
|
'small-inset': smallInset,
|
|
56
|
+
'small-inset-ios': smallInsetIos,
|
|
57
|
+
'small-inset-md': smallInsetMd,
|
|
39
58
|
'medium-inset': mediumInset,
|
|
59
|
+
'medium-inset-ios': mediumInsetIos,
|
|
60
|
+
'medium-inset-md': mediumInsetMd,
|
|
40
61
|
'large-inset': largeInset,
|
|
62
|
+
'large-inset-ios': largeInsetIos,
|
|
63
|
+
'large-inset-md': largeInsetMd,
|
|
41
64
|
'xlarge-inset': xlargeInset,
|
|
65
|
+
'xlarge-inset-ios': xlargeInsetIos,
|
|
66
|
+
'xlarge-inset-md': xlargeInsetMd,
|
|
42
67
|
'block-strong': strong,
|
|
68
|
+
'block-strong-ios': strongIos,
|
|
69
|
+
'block-strong-md': strongMd,
|
|
43
70
|
'accordion-list': accordionList,
|
|
44
71
|
'accordion-opposite': accordionOpposite,
|
|
45
72
|
tabs,
|
|
46
73
|
tab,
|
|
47
74
|
'tab-active': tabActive,
|
|
48
|
-
'
|
|
49
|
-
'
|
|
50
|
-
'
|
|
51
|
-
'no-hairlines-aurora': noHairlinesAurora,
|
|
75
|
+
'block-outline': outline,
|
|
76
|
+
'block-outline-md': outlineMd,
|
|
77
|
+
'block-outline-ios': outlineIos,
|
|
52
78
|
},
|
|
53
79
|
colorClasses($$props),
|
|
54
80
|
);
|
package/components/button.d.ts
CHANGED
|
@@ -12,27 +12,24 @@ interface ButtonProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap['d
|
|
|
12
12
|
round ?: boolean;
|
|
13
13
|
roundMd ?: boolean;
|
|
14
14
|
roundIos ?: boolean;
|
|
15
|
-
roundAurora ?: boolean;
|
|
16
15
|
fill ?: boolean;
|
|
17
16
|
fillMd ?: boolean;
|
|
18
17
|
fillIos ?: boolean;
|
|
19
|
-
|
|
18
|
+
tonal ?: boolean;
|
|
19
|
+
tonalMd ?: boolean;
|
|
20
|
+
tonalIos ?: boolean;
|
|
20
21
|
large ?: boolean;
|
|
21
22
|
largeMd ?: boolean;
|
|
22
23
|
largeIos ?: boolean;
|
|
23
|
-
largeAurora ?: boolean;
|
|
24
24
|
small ?: boolean;
|
|
25
25
|
smallMd ?: boolean;
|
|
26
26
|
smallIos ?: boolean;
|
|
27
|
-
smallAurora ?: boolean;
|
|
28
27
|
raised ?: boolean;
|
|
29
28
|
raisedMd ?: boolean;
|
|
30
29
|
raisedIos ?: boolean;
|
|
31
|
-
raisedAurora ?: boolean;
|
|
32
30
|
outline ?: boolean;
|
|
33
31
|
outlineMd ?: boolean;
|
|
34
32
|
outlineIos ?: boolean;
|
|
35
|
-
outlineAurora ?: boolean;
|
|
36
33
|
active ?: boolean;
|
|
37
34
|
disabled ?: boolean;
|
|
38
35
|
tooltip ?: string;
|
|
@@ -55,7 +52,6 @@ interface ButtonProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap['d
|
|
|
55
52
|
iconF7?: string;
|
|
56
53
|
iconIos?: string;
|
|
57
54
|
iconMd?: string;
|
|
58
|
-
iconAurora?: string;
|
|
59
55
|
iconColor?: string;
|
|
60
56
|
iconSize?: string | number;
|
|
61
57
|
back?: boolean;
|
package/components/button.svelte
CHANGED
|
@@ -30,27 +30,24 @@
|
|
|
30
30
|
export let round = false;
|
|
31
31
|
export let roundMd = false;
|
|
32
32
|
export let roundIos = false;
|
|
33
|
-
export let roundAurora = false;
|
|
34
33
|
export let fill = false;
|
|
35
34
|
export let fillMd = false;
|
|
36
35
|
export let fillIos = false;
|
|
37
|
-
export let
|
|
36
|
+
export let tonal = false;
|
|
37
|
+
export let tonalMd = false;
|
|
38
|
+
export let tonalIos = false;
|
|
38
39
|
export let large = false;
|
|
39
40
|
export let largeMd = false;
|
|
40
41
|
export let largeIos = false;
|
|
41
|
-
export let largeAurora = false;
|
|
42
42
|
export let small = false;
|
|
43
43
|
export let smallMd = false;
|
|
44
44
|
export let smallIos = false;
|
|
45
|
-
export let smallAurora = false;
|
|
46
45
|
export let raised = false;
|
|
47
46
|
export let raisedMd = false;
|
|
48
47
|
export let raisedIos = false;
|
|
49
|
-
export let raisedAurora = false;
|
|
50
48
|
export let outline = false;
|
|
51
49
|
export let outlineMd = false;
|
|
52
50
|
export let outlineIos = false;
|
|
53
|
-
export let outlineAurora = false;
|
|
54
51
|
export let active = false;
|
|
55
52
|
export let disabled = false;
|
|
56
53
|
export let tooltip = undefined;
|
|
@@ -86,28 +83,25 @@
|
|
|
86
83
|
|
|
87
84
|
'button-round': round,
|
|
88
85
|
'button-round-ios': roundIos,
|
|
89
|
-
'button-round-aurora': roundAurora,
|
|
90
86
|
'button-round-md': roundMd,
|
|
91
87
|
'button-fill': fill,
|
|
92
88
|
'button-fill-ios': fillIos,
|
|
93
|
-
'button-fill-aurora': fillAurora,
|
|
94
89
|
'button-fill-md': fillMd,
|
|
90
|
+
'button-tonal': tonal,
|
|
91
|
+
'button-tonal-ios': tonalIos,
|
|
92
|
+
'button-tonal-md': tonalMd,
|
|
95
93
|
'button-large': large,
|
|
96
94
|
'button-large-ios': largeIos,
|
|
97
|
-
'button-large-aurora': largeAurora,
|
|
98
95
|
'button-large-md': largeMd,
|
|
99
96
|
'button-small': small,
|
|
100
97
|
'button-small-ios': smallIos,
|
|
101
|
-
'button-small-aurora': smallAurora,
|
|
102
98
|
'button-small-md': smallMd,
|
|
103
99
|
'button-raised': raised,
|
|
104
100
|
'button-raised-ios': raisedIos,
|
|
105
|
-
'button-raised-aurora': raisedAurora,
|
|
106
101
|
'button-raised-md': raisedMd,
|
|
107
102
|
'button-active': active,
|
|
108
103
|
'button-outline': outline,
|
|
109
104
|
'button-outline-ios': outlineIos,
|
|
110
|
-
'button-outline-aurora': outlineAurora,
|
|
111
105
|
'button-outline-md': outlineMd,
|
|
112
106
|
'button-preloader': preloader,
|
|
113
107
|
'button-loading': loading,
|
package/components/card.d.ts
CHANGED
|
@@ -6,7 +6,12 @@ interface CardProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap['div
|
|
|
6
6
|
title ?: string | number;
|
|
7
7
|
content ?: string | number;
|
|
8
8
|
footer ?: string | number;
|
|
9
|
+
raised?: boolean;
|
|
9
10
|
outline ?: boolean;
|
|
11
|
+
outlineIos ?: boolean;
|
|
12
|
+
outlineMd ?: boolean;
|
|
13
|
+
headerDivider ?: boolean;
|
|
14
|
+
footerDivider ?: boolean;
|
|
10
15
|
expandable ?: boolean;
|
|
11
16
|
expandableAnimateWidth ?: boolean;
|
|
12
17
|
expandableOpened ?: boolean;
|
|
@@ -19,8 +24,6 @@ interface CardProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap['div
|
|
|
19
24
|
closeByBackdropClick ?: boolean;
|
|
20
25
|
backdrop ?: boolean;
|
|
21
26
|
backdropEl ?: string;
|
|
22
|
-
noShadow ?: boolean;
|
|
23
|
-
noBorder ?: boolean;
|
|
24
27
|
padding ?: boolean;
|
|
25
28
|
onCardBeforeOpen ?: (el?: HTMLElement, prevent?: any) => void;
|
|
26
29
|
onCardOpen ?: (el?: HTMLElement) => void;
|
package/components/card.svelte
CHANGED
|
@@ -17,7 +17,12 @@
|
|
|
17
17
|
export let title = undefined;
|
|
18
18
|
export let content = undefined;
|
|
19
19
|
export let footer = undefined;
|
|
20
|
+
export let raised = false;
|
|
20
21
|
export let outline = false;
|
|
22
|
+
export let outlineIos = false;
|
|
23
|
+
export let outlineMd = false;
|
|
24
|
+
export let headerDivider = false;
|
|
25
|
+
export let footerDivider = false;
|
|
21
26
|
export let expandable = false;
|
|
22
27
|
export let expandableAnimateWidth = false;
|
|
23
28
|
export let expandableOpened = false;
|
|
@@ -30,8 +35,6 @@
|
|
|
30
35
|
export let closeByBackdropClick = undefined;
|
|
31
36
|
export let backdrop = undefined;
|
|
32
37
|
export let backdropEl = undefined;
|
|
33
|
-
export let noShadow = false;
|
|
34
|
-
export let noBorder = false;
|
|
35
38
|
export let padding = true;
|
|
36
39
|
|
|
37
40
|
let el;
|
|
@@ -41,10 +44,13 @@
|
|
|
41
44
|
'card',
|
|
42
45
|
{
|
|
43
46
|
'card-outline': outline,
|
|
47
|
+
'card-outline-ios': outlineIos,
|
|
48
|
+
'card-outline-md': outlineMd,
|
|
49
|
+
'card-raised': raised,
|
|
50
|
+
'card-header-divider': headerDivider,
|
|
51
|
+
'card-footer-divider': footerDivider,
|
|
44
52
|
'card-expandable': expandable,
|
|
45
53
|
'card-expandable-animate-width': expandableAnimateWidth,
|
|
46
|
-
'no-shadow': noShadow,
|
|
47
|
-
'no-border': noBorder,
|
|
48
54
|
},
|
|
49
55
|
colorClasses($$props),
|
|
50
56
|
);
|
package/components/chip.d.ts
CHANGED
package/components/icon.d.ts
CHANGED
package/components/icon.svelte
CHANGED
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
export let f7 = undefined;
|
|
15
15
|
export let icon = undefined;
|
|
16
16
|
export let ios = undefined;
|
|
17
|
-
export let aurora = undefined;
|
|
18
17
|
export let md = undefined;
|
|
19
18
|
export let tooltip = undefined;
|
|
20
19
|
export let tooltipTrigger = undefined;
|
|
@@ -34,7 +33,6 @@
|
|
|
34
33
|
$: if (theme) {
|
|
35
34
|
if (theme.ios) themeIcon = ios;
|
|
36
35
|
if (theme.md) themeIcon = md;
|
|
37
|
-
if (theme.aurora) themeIcon = aurora;
|
|
38
36
|
}
|
|
39
37
|
|
|
40
38
|
$: if (themeIcon) {
|
|
@@ -76,13 +74,6 @@
|
|
|
76
74
|
textComputed = md.split(':')[1];
|
|
77
75
|
} else if (ios && t && t.ios && (ios.indexOf('material:') >= 0 || ios.indexOf('f7:') >= 0)) {
|
|
78
76
|
textComputed = ios.split(':')[1];
|
|
79
|
-
} else if (
|
|
80
|
-
aurora &&
|
|
81
|
-
t &&
|
|
82
|
-
t.aurora &&
|
|
83
|
-
(aurora.indexOf('material:') >= 0 || aurora.indexOf('f7:') >= 0)
|
|
84
|
-
) {
|
|
85
|
-
textComputed = aurora.split(':')[1];
|
|
86
77
|
}
|
|
87
78
|
return textComputed;
|
|
88
79
|
}
|
package/components/link.d.ts
CHANGED
package/components/link.svelte
CHANGED
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
TabbarContext = newValue;
|
|
54
54
|
}) || {};
|
|
55
55
|
|
|
56
|
-
$:
|
|
56
|
+
$: isTabbarIcons = tabbarLabel || TabbarContext.tabbarHasIcons;
|
|
57
57
|
|
|
58
58
|
$: hrefComputed = href === true ? '#' : href || undefined;
|
|
59
59
|
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
$: classes = classNames(
|
|
77
77
|
className,
|
|
78
78
|
{
|
|
79
|
-
link: !(noLinkClass ||
|
|
79
|
+
link: !(noLinkClass || isTabbarIcons),
|
|
80
80
|
'icon-only': iconOnlyComputed,
|
|
81
81
|
'tab-link': tabLink || tabLink === '',
|
|
82
82
|
'tab-link-active': tabLinkActive,
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
{/if}
|
|
117
117
|
<slot />
|
|
118
118
|
{#if typeof text !== 'undefined' || typeof badge !== 'undefined'}
|
|
119
|
-
<span class:tabbar-label={
|
|
119
|
+
<span class:tabbar-label={isTabbarIcons}>
|
|
120
120
|
{plainText(text)}
|
|
121
121
|
{#if typeof badge !== 'undefined'}<Badge color={badgeColor}>{plainText(badge)}</Badge>{/if}
|
|
122
122
|
</span>
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
export let label = false;
|
|
18
18
|
export let iosItemHeight = 14;
|
|
19
19
|
export let mdItemHeight = 14;
|
|
20
|
-
export let auroraItemHeight = 14;
|
|
21
20
|
|
|
22
21
|
export let f7Slot = 'fixed';
|
|
23
22
|
|
|
@@ -62,7 +61,6 @@
|
|
|
62
61
|
indexes,
|
|
63
62
|
iosItemHeight,
|
|
64
63
|
mdItemHeight,
|
|
65
|
-
auroraItemHeight,
|
|
66
64
|
scrollList,
|
|
67
65
|
label,
|
|
68
66
|
on: {
|
|
@@ -50,7 +50,6 @@ interface ListInputProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap
|
|
|
50
50
|
info ?: string;
|
|
51
51
|
outline ?: boolean;
|
|
52
52
|
label ?: string | number;
|
|
53
|
-
inlineLabel ?: boolean;
|
|
54
53
|
floatingLabel ?: boolean;
|
|
55
54
|
calendarParams ?: Calendar.Parameters;
|
|
56
55
|
colorPickerParams ?: ColorPicker.Parameters;
|
|
@@ -68,7 +68,6 @@
|
|
|
68
68
|
|
|
69
69
|
// Label
|
|
70
70
|
export let label = undefined;
|
|
71
|
-
export let inlineLabel = undefined;
|
|
72
71
|
export let floatingLabel = undefined;
|
|
73
72
|
|
|
74
73
|
// Datepicker
|
|
@@ -200,7 +199,6 @@
|
|
|
200
199
|
!wrap && { disabled },
|
|
201
200
|
!wrap && colorClasses($$props),
|
|
202
201
|
{
|
|
203
|
-
'inline-label': inlineLabel,
|
|
204
202
|
'item-input-outline': outline,
|
|
205
203
|
'item-input-focused': inputFocused,
|
|
206
204
|
'item-input-with-info': !!info || hasInfoSlots,
|
|
@@ -23,7 +23,6 @@ interface ListItemProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap[
|
|
|
23
23
|
badgeColor ?: string;
|
|
24
24
|
mediaItem ?: boolean;
|
|
25
25
|
mediaList ?: boolean;
|
|
26
|
-
divider ?: boolean;
|
|
27
26
|
groupTitle ?: boolean;
|
|
28
27
|
swipeout ?: boolean;
|
|
29
28
|
swipeoutOpened ?: boolean;
|
|
@@ -36,6 +35,7 @@ interface ListItemProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap[
|
|
|
36
35
|
noChevron ?: boolean;
|
|
37
36
|
chevronCenter ?: boolean;
|
|
38
37
|
checkbox ?: boolean;
|
|
38
|
+
checkboxIcon ?: boolean;
|
|
39
39
|
radio ?: boolean;
|
|
40
40
|
radioIcon ?: string;
|
|
41
41
|
checked ?: boolean;
|
|
@@ -47,7 +47,6 @@
|
|
|
47
47
|
|
|
48
48
|
export let mediaItem = false;
|
|
49
49
|
export let mediaList = false;
|
|
50
|
-
export let divider = false;
|
|
51
50
|
export let groupTitle = false;
|
|
52
51
|
export let swipeout = false;
|
|
53
52
|
export let swipeoutOpened = false;
|
|
@@ -66,6 +65,7 @@
|
|
|
66
65
|
|
|
67
66
|
// Inputs
|
|
68
67
|
export let checkbox = undefined;
|
|
68
|
+
export let checkboxIcon = undefined;
|
|
69
69
|
export let radio = undefined;
|
|
70
70
|
export let radioIcon = undefined;
|
|
71
71
|
export let checked = undefined;
|
|
@@ -103,7 +103,6 @@
|
|
|
103
103
|
$: liClasses = classNames(
|
|
104
104
|
className,
|
|
105
105
|
{
|
|
106
|
-
'item-divider': divider,
|
|
107
106
|
'list-group-title': groupTitle,
|
|
108
107
|
'media-item': isMedia,
|
|
109
108
|
swipeout,
|
|
@@ -123,6 +122,8 @@
|
|
|
123
122
|
{
|
|
124
123
|
'item-checkbox': checkbox,
|
|
125
124
|
'item-radio': radio,
|
|
125
|
+
'item-checkbox-icon-start': checkbox && checkboxIcon === 'start',
|
|
126
|
+
'item-checkbox-icon-end': checkbox && checkboxIcon === 'end',
|
|
126
127
|
'item-radio-icon-start': radio && radioIcon === 'start',
|
|
127
128
|
'item-radio-icon-end': radio && radioIcon === 'end',
|
|
128
129
|
},
|
|
@@ -315,7 +316,7 @@
|
|
|
315
316
|
</script>
|
|
316
317
|
|
|
317
318
|
<!-- svelte-ignore a11y-missing-attribute -->
|
|
318
|
-
{#if
|
|
319
|
+
{#if groupTitle}
|
|
319
320
|
<li
|
|
320
321
|
on:click={onClick}
|
|
321
322
|
bind:this={el}
|
package/components/list.d.ts
CHANGED
|
@@ -6,11 +6,32 @@ import { VirtualList } from 'framework7/types';
|
|
|
6
6
|
|
|
7
7
|
interface ListProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap['div']> {
|
|
8
8
|
inset ?: boolean;
|
|
9
|
+
insetIos ?: boolean;
|
|
10
|
+
insetMd ?: boolean;
|
|
9
11
|
xsmallInset ?: boolean;
|
|
12
|
+
xsmallInsetIos ?: boolean;
|
|
13
|
+
xsmallInsetMd ?: boolean;
|
|
10
14
|
smallInset ?: boolean;
|
|
15
|
+
smallInsetIos ?: boolean;
|
|
16
|
+
smallInsetMd ?: boolean;
|
|
11
17
|
mediumInset ?: boolean;
|
|
18
|
+
mediumInsetIos ?: boolean;
|
|
19
|
+
mediumInsetMd ?: boolean;
|
|
12
20
|
largeInset ?: boolean;
|
|
21
|
+
largeInsetIos ?: boolean;
|
|
22
|
+
largeInsetMd ?: boolean;
|
|
13
23
|
xlargeInset ?: boolean;
|
|
24
|
+
xlargeInsetIos ?: boolean;
|
|
25
|
+
xlargeInsetMd ?: boolean;
|
|
26
|
+
strong?: boolean;
|
|
27
|
+
strongIos?: boolean;
|
|
28
|
+
strongMd?: boolean;
|
|
29
|
+
outline?: boolean;
|
|
30
|
+
outlineIos?: boolean;
|
|
31
|
+
outlineMd?: boolean;
|
|
32
|
+
dividers?: boolean;
|
|
33
|
+
dividersIos?: boolean;
|
|
34
|
+
dividersMd?: boolean;
|
|
14
35
|
mediaList ?: boolean;
|
|
15
36
|
sortable ?: boolean;
|
|
16
37
|
sortableTapHold ?: boolean;
|
|
@@ -23,21 +44,12 @@ interface ListProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap['div
|
|
|
23
44
|
simpleList ?: boolean;
|
|
24
45
|
linksList ?: boolean;
|
|
25
46
|
menuList ?: boolean;
|
|
26
|
-
noHairlines ?: boolean;
|
|
27
|
-
noHairlinesBetween ?: boolean;
|
|
28
|
-
noHairlinesMd ?: boolean;
|
|
29
|
-
noHairlinesBetweenMd ?: boolean;
|
|
30
|
-
noHairlinesIos ?: boolean;
|
|
31
|
-
noHairlinesBetweenIos ?: boolean;
|
|
32
|
-
noHairlinesAurora ?: boolean;
|
|
33
|
-
noHairlinesBetweenAurora ?: boolean;
|
|
34
47
|
noChevron ?: boolean;
|
|
35
48
|
chevronCenter ?: boolean;
|
|
36
49
|
tab ?: boolean;
|
|
37
50
|
tabActive ?: boolean;
|
|
38
51
|
form ?: boolean;
|
|
39
52
|
formStoreData ?: boolean;
|
|
40
|
-
inlineLabels ?: boolean;
|
|
41
53
|
virtualList ?: boolean;
|
|
42
54
|
virtualListParams ?: Object;
|
|
43
55
|
color?: string;
|
package/components/list.svelte
CHANGED
|
@@ -15,11 +15,32 @@
|
|
|
15
15
|
export let ul = true;
|
|
16
16
|
|
|
17
17
|
export let inset = false;
|
|
18
|
+
export let insetIos = false;
|
|
19
|
+
export let insetMd = false;
|
|
18
20
|
export let xsmallInset = false;
|
|
21
|
+
export let xsmallInsetIos = false;
|
|
22
|
+
export let xsmallInsetMd = false;
|
|
19
23
|
export let smallInset = false;
|
|
24
|
+
export let smallInsetIos = false;
|
|
25
|
+
export let smallInsetMd = false;
|
|
20
26
|
export let mediumInset = false;
|
|
27
|
+
export let mediumInsetIos = false;
|
|
28
|
+
export let mediumInsetMd = false;
|
|
21
29
|
export let largeInset = false;
|
|
30
|
+
export let largeInsetIos = false;
|
|
31
|
+
export let largeInsetMd = false;
|
|
22
32
|
export let xlargeInset = false;
|
|
33
|
+
export let xlargeInsetIos = false;
|
|
34
|
+
export let xlargeInsetMd = false;
|
|
35
|
+
export let strong = false;
|
|
36
|
+
export let strongIos = false;
|
|
37
|
+
export let strongMd = false;
|
|
38
|
+
export let outline = false;
|
|
39
|
+
export let outlineIos = false;
|
|
40
|
+
export let outlineMd = false;
|
|
41
|
+
export let dividers = false;
|
|
42
|
+
export let dividersIos = false;
|
|
43
|
+
export let dividersMd = false;
|
|
23
44
|
export let mediaList = false;
|
|
24
45
|
export let sortable = false;
|
|
25
46
|
export let sortableTapHold = false;
|
|
@@ -33,15 +54,6 @@
|
|
|
33
54
|
export let linksList = false;
|
|
34
55
|
export let menuList = false;
|
|
35
56
|
|
|
36
|
-
export let noHairlines = false;
|
|
37
|
-
export let noHairlinesBetween = false;
|
|
38
|
-
export let noHairlinesMd = false;
|
|
39
|
-
export let noHairlinesBetweenMd = false;
|
|
40
|
-
export let noHairlinesIos = false;
|
|
41
|
-
export let noHairlinesBetweenIos = false;
|
|
42
|
-
export let noHairlinesAurora = false;
|
|
43
|
-
export let noHairlinesBetweenAurora = false;
|
|
44
|
-
|
|
45
57
|
// Links Chevron (Arrow) Icon
|
|
46
58
|
export let noChevron = false;
|
|
47
59
|
export let chevronCenter = false;
|
|
@@ -53,7 +65,6 @@
|
|
|
53
65
|
// Form
|
|
54
66
|
export let form = false;
|
|
55
67
|
export let formStoreData = false;
|
|
56
|
-
export let inlineLabels = false;
|
|
57
68
|
|
|
58
69
|
// Virtual List
|
|
59
70
|
export let virtualList = false;
|
|
@@ -74,11 +85,32 @@
|
|
|
74
85
|
'list',
|
|
75
86
|
{
|
|
76
87
|
inset,
|
|
88
|
+
'inset-ios': insetIos,
|
|
89
|
+
'inset-md': insetMd,
|
|
77
90
|
'xsmall-inset': xsmallInset,
|
|
91
|
+
'xsmall-inset-ios': xsmallInsetIos,
|
|
92
|
+
'xsmall-inset-md': xsmallInsetMd,
|
|
78
93
|
'small-inset': smallInset,
|
|
94
|
+
'small-inset-ios': smallInsetIos,
|
|
95
|
+
'small-inset-md': smallInsetMd,
|
|
79
96
|
'medium-inset': mediumInset,
|
|
97
|
+
'medium-inset-ios': mediumInsetIos,
|
|
98
|
+
'medium-inset-md': mediumInsetMd,
|
|
80
99
|
'large-inset': largeInset,
|
|
100
|
+
'large-inset-ios': largeInsetIos,
|
|
101
|
+
'large-inset-md': largeInsetMd,
|
|
81
102
|
'xlarge-inset': xlargeInset,
|
|
103
|
+
'xlarge-inset-ios': xlargeInsetIos,
|
|
104
|
+
'xlarge-inset-md': xlargeInsetMd,
|
|
105
|
+
'list-strong': strong,
|
|
106
|
+
'list-strong-ios': strongIos,
|
|
107
|
+
'list-strong-md': strongMd,
|
|
108
|
+
'list-outline': outline,
|
|
109
|
+
'list-outline-ios': outlineIos,
|
|
110
|
+
'list-outline-md': outlineMd,
|
|
111
|
+
'list-dividers': dividers,
|
|
112
|
+
'list-dividers-ios': dividersIos,
|
|
113
|
+
'list-dividers-md': dividersMd,
|
|
82
114
|
'media-list': mediaList,
|
|
83
115
|
'simple-list': simpleList,
|
|
84
116
|
'links-list': linksList,
|
|
@@ -93,16 +125,7 @@
|
|
|
93
125
|
'virtual-list': virtualList,
|
|
94
126
|
tab,
|
|
95
127
|
'tab-active': tabActive,
|
|
96
|
-
'no-hairlines': noHairlines,
|
|
97
|
-
'no-hairlines-md': noHairlinesMd,
|
|
98
|
-
'no-hairlines-ios': noHairlinesIos,
|
|
99
|
-
'no-hairlines-aurora': noHairlinesAurora,
|
|
100
|
-
'no-hairlines-between': noHairlinesBetween,
|
|
101
|
-
'no-hairlines-between-md': noHairlinesBetweenMd,
|
|
102
|
-
'no-hairlines-between-ios': noHairlinesBetweenIos,
|
|
103
|
-
'no-hairlines-between-aurora': noHairlinesBetweenAurora,
|
|
104
128
|
'form-store-data': formStoreData,
|
|
105
|
-
'inline-labels': inlineLabels,
|
|
106
129
|
'no-chevron': noChevron,
|
|
107
130
|
'chevron-center': chevronCenter,
|
|
108
131
|
},
|