framework7-vue 8.2.0 → 8.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -75,6 +75,21 @@ declare const Sheet: DefineComponent<
75
75
  default: undefined;
76
76
  },
77
77
 
78
+ breakpoints: {
79
+ type: ArrayConstructor;
80
+ default: () => undefined;
81
+ },
82
+
83
+ backdropBreakpoint: {
84
+ type: NumberConstructor;
85
+ default: undefined;
86
+ },
87
+
88
+ pushBreakpoint: {
89
+ type: NumberConstructor;
90
+ default: undefined;
91
+ },
92
+
78
93
  color: {
79
94
  type: StringConstructor;
80
95
  },
@@ -109,8 +124,8 @@ declare const Sheet: DefineComponent<
109
124
  {},
110
125
  ComponentOptionsMixin,
111
126
  ComponentOptionsMixin,
112
- ("sheet:stepprogress" | "sheet:stepopen" | "sheet:stepclose" | "sheet:open" | "sheet:opened" | "sheet:close" | "sheet:closed" | "update:opened")[],
113
- "sheet:stepprogress" | "sheet:stepopen" | "sheet:stepclose" | "sheet:open" | "sheet:opened" | "sheet:close" | "sheet:closed" | "update:opened"
127
+ ("sheet:stepprogress" | "sheet:stepopen" | "sheet:stepclose" | "sheet:open" | "sheet:opened" | "sheet:close" | "sheet:closed" | "sheet:breakpoint" | "update:opened")[],
128
+ "sheet:stepprogress" | "sheet:stepopen" | "sheet:stepclose" | "sheet:open" | "sheet:opened" | "sheet:close" | "sheet:closed" | "sheet:breakpoint" | "update:opened"
114
129
  >;
115
130
 
116
131
  export default Sheet;
@@ -51,9 +51,21 @@ export default {
51
51
  type: [String, Object],
52
52
  default: undefined
53
53
  },
54
+ breakpoints: {
55
+ type: Array,
56
+ default: () => undefined
57
+ },
58
+ backdropBreakpoint: {
59
+ type: Number,
60
+ default: undefined
61
+ },
62
+ pushBreakpoint: {
63
+ type: Number,
64
+ default: undefined
65
+ },
54
66
  ...colorProps
55
67
  },
56
- emits: ['sheet:stepprogress', 'sheet:stepopen', 'sheet:stepclose', 'sheet:open', 'sheet:opened', 'sheet:close', 'sheet:closed', 'update:opened'],
68
+ emits: ['sheet:stepprogress', 'sheet:stepopen', 'sheet:stepclose', 'sheet:open', 'sheet:opened', 'sheet:close', 'sheet:closed', 'sheet:breakpoint', 'update:opened'],
57
69
  setup(props, _ref) {
58
70
  let {
59
71
  emit,
@@ -64,6 +76,9 @@ export default {
64
76
  let isOpened = props.opened;
65
77
  let isClosing = false;
66
78
  const elRef = ref(null);
79
+ const onBreakpoint = (instance, breakpoint) => {
80
+ emit('sheet:breakpoint', instance, breakpoint);
81
+ };
67
82
  const onStepProgress = (instance, progress) => {
68
83
  emit('sheet:stepprogress', instance, progress);
69
84
  };
@@ -103,7 +118,8 @@ export default {
103
118
  closed: onClosed,
104
119
  stepOpen: onStepOpen,
105
120
  stepClose: onStepClose,
106
- stepProgress: onStepProgress
121
+ stepProgress: onStepProgress,
122
+ breakpoint: onBreakpoint
107
123
  }
108
124
  };
109
125
  const {
@@ -116,7 +132,10 @@ export default {
116
132
  swipeToClose,
117
133
  swipeToStep,
118
134
  swipeHandler,
119
- containerEl
135
+ containerEl,
136
+ breakpoints,
137
+ backdropBreakpoint,
138
+ pushBreakpoint
120
139
  } = props;
121
140
  if (typeof animate !== 'undefined') sheetParams.animate = animate;
122
141
  if (typeof backdrop !== 'undefined') sheetParams.backdrop = backdrop;
@@ -128,6 +147,9 @@ export default {
128
147
  if (typeof swipeToStep !== 'undefined') sheetParams.swipeToStep = swipeToStep;
129
148
  if (typeof swipeHandler !== 'undefined') sheetParams.swipeHandler = swipeHandler;
130
149
  if (typeof containerEl !== 'undefined') sheetParams.containerEl = containerEl;
150
+ if (typeof breakpoints !== 'undefined') sheetParams.breakpoints = breakpoints;
151
+ if (typeof backdropBreakpoint !== 'undefined') sheetParams.backdropBreakpoint = backdropBreakpoint;
152
+ if (typeof pushBreakpoint !== 'undefined') sheetParams.pushBreakpoint = pushBreakpoint;
131
153
  f7ready(() => {
132
154
  f7Sheet = f7.sheet.create(sheetParams);
133
155
  if (props.opened) {
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json-schema.org/draft-04/schema#",
3
3
  "framework": "vue",
4
4
  "name": "framework7-vue",
5
- "version": "8.2.0",
5
+ "version": "8.3.1",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "types-syntax": "typescript",
package/framework7-vue.js CHANGED
@@ -1,13 +1,13 @@
1
1
  /**
2
- * Framework7 Vue 8.2.0
2
+ * Framework7 Vue 8.3.1
3
3
  * Build full featured iOS & Android apps using Framework7 & Vue
4
4
  * https://framework7.io/vue/
5
5
  *
6
- * Copyright 2014-2023 Vladimir Kharlampidi
6
+ * Copyright 2014-2024 Vladimir Kharlampidi
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: July 6, 2023
10
+ * Released on: February 5, 2024
11
11
  */
12
12
  import Framework7Vue from './shared/plugin.js';
13
13
  import { f7, f7ready, theme } from './shared/f7.js';
package/package.json CHANGED
@@ -1,11 +1,17 @@
1
1
  {
2
2
  "name": "framework7-vue",
3
- "version": "8.2.0",
3
+ "version": "8.3.1",
4
4
  "description": "Build full featured iOS & Android apps using Framework7 & Vue",
5
5
  "type": "module",
6
6
  "exports": {
7
- ".": "./framework7-vue.js",
8
- "./bundle": "./framework7-vue-bundle.js",
7
+ ".": {
8
+ "import": "./framework7-vue.js",
9
+ "types": "./framework7-vue.d.ts"
10
+ },
11
+ "./bundle": {
12
+ "import": "./framework7-vue-bundle.js",
13
+ "types": "./framework7-vue.d.ts"
14
+ },
9
15
  "./components/*": "./components/*",
10
16
  "./shared/*": "./shared/*"
11
17
  },
@@ -55,5 +61,5 @@
55
61
  "type": "patreon",
56
62
  "url": "https://www.patreon.com/framework7"
57
63
  },
58
- "releaseDate": "July 6, 2023"
64
+ "releaseDate": "February 5, 2024"
59
65
  }