framework7-svelte 9.1.3 → 9.3.0

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.
@@ -44,6 +44,7 @@
44
44
  const icon = $derived(useIcon(restProps));
45
45
 
46
46
  function onDeleteClick(e) {
47
+ e.stopPropagation();
47
48
  restProps.onDelete?.(e);
48
49
  restProps.ondelete?.(e);
49
50
  }
@@ -6,6 +6,7 @@ import { SmartSelect } from 'framework7/types';
6
6
 
7
7
 
8
8
  interface Props {
9
+ disabled?: boolean;
9
10
  noLinkClass?: boolean;
10
11
  text?: string | Snippet;
11
12
  tabLink?: boolean | string;
@@ -18,6 +18,7 @@
18
18
 
19
19
  let {
20
20
  class: className,
21
+ disabled = false,
21
22
  noLinkClass = false,
22
23
  text = undefined,
23
24
  tabLink = undefined,
@@ -57,6 +58,8 @@
57
58
  target,
58
59
  'data-tab': (isStringProp(tabLink) && tabLink) || undefined,
59
60
  ...restProps,
61
+ 'aria-disabled': disabled || restProps['aria-disabled'],
62
+ tabindex: disabled ? -1 : restProps.tabindex,
60
63
  },
61
64
  routerAttrs(restProps),
62
65
  actionsAttrs(restProps),
@@ -72,6 +75,7 @@
72
75
  classNames(
73
76
  className,
74
77
  {
78
+ disabled,
75
79
  link: !(noLinkClass || isTabbarIcons),
76
80
  'icon-only': iconOnlyComputed,
77
81
  'tab-link': tabLink || tabLink === '',
@@ -86,9 +90,14 @@
86
90
 
87
91
  const icon = $derived(useIcon(restProps));
88
92
 
89
- function onClick() {
90
- restProps.onClick?.();
91
- restProps.onclick?.();
93
+ function onClick(e) {
94
+ if (disabled) {
95
+ e.preventDefault();
96
+ e.stopPropagation();
97
+ return;
98
+ }
99
+ restProps.onClick?.(e);
100
+ restProps.onclick?.(e);
92
101
  }
93
102
 
94
103
  useSmartSelect(
@@ -104,8 +113,8 @@
104
113
  <a
105
114
  bind:this={el}
106
115
  class={classes}
107
- onclick={onClick}
108
116
  {...attrs}
117
+ onclick={onClick}
109
118
  use:useTooltip={{ tooltip, tooltipTrigger }}
110
119
  use:useRouteProps={routeProps}
111
120
  >
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Framework7 Svelte 9.1.3
2
+ * Framework7 Svelte 9.3.0
3
3
  * Build full featured iOS & Android apps using Framework7 & Svelte
4
4
  * https://framework7.io/svelte/
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: August 25, 2026
10
+ * Released on: October 30, 2026
11
11
  */
12
12
  import Framework7Svelte from './shared/plugin.js';
13
13
  import { f7, f7ready, theme, app } from './shared/f7.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "framework7-svelte",
3
- "version": "9.1.3",
3
+ "version": "9.3.0",
4
4
  "description": "Build full featured iOS & Android apps using Framework7 & Svelte",
5
5
  "type": "module",
6
6
  "svelte": "./framework7-svelte.js",
@@ -50,5 +50,5 @@
50
50
  "type": "patreon",
51
51
  "url": "https://www.patreon.com/framework7"
52
52
  },
53
- "releaseDate": "August 25, 2026"
53
+ "releaseDate": "October 30, 2026"
54
54
  }