framework7-vue 8.0.0-beta.1 → 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.
@@ -5,11 +5,10 @@ function render(_ctx, _cache) {
5
5
  }, [_renderSlot(_ctx.$slots, "before-inner"), _ctx.inner ? (_openBlock(), _createElementBlock("div", {
6
6
  key: 0,
7
7
  class: _normalizeClass(_ctx.innerClasses)
8
- }, [_renderSlot(_ctx.$slots, "default")], 2 /* CLASS */)) : _renderSlot(_ctx.$slots, "default", {
8
+ }, [_renderSlot(_ctx.$slots, "default")], 2)) : _renderSlot(_ctx.$slots, "default", {
9
9
  key: 1
10
- }), _renderSlot(_ctx.$slots, "after-inner")], 2 /* CLASS */);
10
+ }), _renderSlot(_ctx.$slots, "after-inner")], 2);
11
11
  }
12
-
13
12
  import { computed } from 'vue';
14
13
  import { classNames } from '../shared/utils.js';
15
14
  import { colorClasses, colorProps } from '../shared/mixins.js';
package/components/col.js CHANGED
@@ -8,9 +8,9 @@ function render(_ctx, _cache) {
8
8
  ref: "elRef",
9
9
  class: _normalizeClass(_ctx.classes)
10
10
  }, {
11
- default: _withCtx(() => [_renderSlot(_ctx.$slots, "default"), _ctx.resizable && _ctx.resizableHandler ? (_openBlock(), _createElementBlock("span", _hoisted_1)) : _createCommentVNode("v-if", true)]),
12
- _: 3 /* FORWARDED */
13
- }, 8 /* PROPS */, ["class"]);
11
+ default: _withCtx(() => [_renderSlot(_ctx.$slots, "default"), _ctx.resizable && _ctx.resizableHandler ? (_openBlock(), _createElementBlock("span", _hoisted_1)) : _createCommentVNode("", true)]),
12
+ _: 3
13
+ }, 8, ["class"]);
14
14
  }
15
15
  import { ref, computed, onBeforeUnmount, onMounted } from 'vue';
16
16
  import { classNames } from '../shared/utils.js';
@@ -2,9 +2,8 @@ import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock
2
2
  function render(_ctx, _cache) {
3
3
  return _openBlock(), _createElementBlock("div", {
4
4
  class: _normalizeClass(_ctx.classes)
5
- }, [_renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
5
+ }, [_renderSlot(_ctx.$slots, "default")], 2);
6
6
  }
7
-
8
7
  import { computed } from 'vue';
9
8
  import { classNames } from '../shared/utils.js';
10
9
  import { colorClasses, colorProps } from '../shared/mixins.js';
@@ -2,9 +2,8 @@ import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock
2
2
  function render(_ctx, _cache) {
3
3
  return _openBlock(), _createElementBlock("div", {
4
4
  class: _normalizeClass(_ctx.classes)
5
- }, [_renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
5
+ }, [_renderSlot(_ctx.$slots, "default")], 2);
6
6
  }
7
-
8
7
  import { computed } from 'vue';
9
8
  import { classNames } from '../shared/utils.js';
10
9
  import { colorClasses, colorProps } from '../shared/mixins.js';
@@ -125,6 +125,10 @@ declare const ListItem: DefineComponent<
125
125
  type: StringConstructor;
126
126
  },
127
127
 
128
+ checkboxIcon: {
129
+ type: StringConstructor;
130
+ },
131
+
128
132
  checked: {
129
133
  type: BooleanConstructor;
130
134
  },
@@ -188,6 +188,7 @@ export default {
188
188
  checkbox: Boolean,
189
189
  radio: Boolean,
190
190
  radioIcon: String,
191
+ checkboxIcon: String,
191
192
  checked: Boolean,
192
193
  indeterminate: Boolean,
193
194
  name: String,
@@ -376,6 +377,8 @@ export default {
376
377
  const itemContentClasses = computed(() => classNames('item-content', {
377
378
  'item-checkbox': props.checkbox,
378
379
  'item-radio': props.radio,
380
+ 'item-checkbox-icon-start': props.checkbox && props.checkboxIcon === 'start',
381
+ 'item-checkbox-icon-end': props.checkbox && props.checkboxIcon === 'end',
379
382
  'item-radio-icon-start': props.radio && props.radioIcon === 'start',
380
383
  'item-radio-icon-end': props.radio && props.radioIcon === 'end'
381
384
  }, colorClasses(props)));
@@ -7,9 +7,8 @@ function render(_ctx, _cache) {
7
7
  onClick: _cache[0] || (_cache[0] = function () {
8
8
  return _ctx.onClick && _ctx.onClick(...arguments);
9
9
  })
10
- }), [_createTextVNode(_toDisplayString(_ctx.text) + " ", 1 /* TEXT */), _renderSlot(_ctx.$slots, "default")], 16 /* FULL_PROPS */);
10
+ }), [_createTextVNode(_toDisplayString(_ctx.text) + " ", 1), _renderSlot(_ctx.$slots, "default")], 16);
11
11
  }
12
-
13
12
  import { computed, ref } from 'vue';
14
13
  import { classNames } from '../shared/utils.js';
15
14
  import { colorClasses, colorProps, routerProps, routerAttrs, routerClasses, actionsProps, actionsAttrs, actionsClasses } from '../shared/mixins.js';
@@ -7,9 +7,8 @@ function render(_ctx, _cache) {
7
7
  style: _normalizeStyle({
8
8
  height: _ctx.contentHeight
9
9
  })
10
- }, [_renderSlot(_ctx.$slots, "default")], 4 /* STYLE */)], 2 /* CLASS */);
10
+ }, [_renderSlot(_ctx.$slots, "default")], 4)], 2);
11
11
  }
12
-
13
12
  import { computed } from 'vue';
14
13
  import { classNames } from '../shared/utils.js';
15
14
  import { colorClasses, colorProps } from '../shared/mixins.js';
@@ -11,12 +11,12 @@ function render(_ctx, _cache) {
11
11
  }, _ctx.attrs, {
12
12
  onClick: _ctx.onClick
13
13
  }), {
14
- default: _withCtx(() => [_ctx.text || _ctx.$slots.text || _ctx.icon ? (_openBlock(), _createElementBlock("div", _hoisted_1, [_createTextVNode(_toDisplayString(_ctx.text) + " ", 1 /* TEXT */), _ctx.icon ? (_openBlock(), _createBlock(_component_f7_use_icon, {
14
+ default: _withCtx(() => [_ctx.text || _ctx.$slots.text || _ctx.icon ? (_openBlock(), _createElementBlock("div", _hoisted_1, [_createTextVNode(_toDisplayString(_ctx.text) + " ", 1), _ctx.icon ? (_openBlock(), _createBlock(_component_f7_use_icon, {
15
15
  key: 0,
16
16
  icon: _ctx.icon
17
- }, null, 8 /* PROPS */, ["icon"])) : _createCommentVNode("v-if", true), _renderSlot(_ctx.$slots, "text")])) : _createCommentVNode("v-if", true), _renderSlot(_ctx.$slots, "default")]),
18
- _: 3 /* FORWARDED */
19
- }, 16 /* FULL_PROPS */, ["class", "onClick"]);
17
+ }, null, 8, ["icon"])) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "text")])) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "default")]),
18
+ _: 3
19
+ }, 16, ["class", "onClick"]);
20
20
  }
21
21
  import { ref, computed, onMounted, onBeforeUnmount } from 'vue';
22
22
  import { classNames } from '../shared/utils.js';
@@ -5,9 +5,8 @@ const _hoisted_1 = {
5
5
  function render(_ctx, _cache) {
6
6
  return _openBlock(), _createElementBlock("div", {
7
7
  class: _normalizeClass(_ctx.classes)
8
- }, [_createElementVNode("div", _hoisted_1, [_renderSlot(_ctx.$slots, "default")])], 2 /* CLASS */);
8
+ }, [_createElementVNode("div", _hoisted_1, [_renderSlot(_ctx.$slots, "default")])], 2);
9
9
  }
10
-
11
10
  import { computed } from 'vue';
12
11
  import { classNames } from '../shared/utils.js';
13
12
  import { colorClasses, colorProps } from '../shared/mixins.js';
package/components/row.js CHANGED
@@ -8,9 +8,9 @@ function render(_ctx, _cache) {
8
8
  ref: "elRef",
9
9
  class: _normalizeClass(_ctx.classes)
10
10
  }, {
11
- default: _withCtx(() => [_renderSlot(_ctx.$slots, "default"), _ctx.resizable && _ctx.resizableHandler ? (_openBlock(), _createElementBlock("span", _hoisted_1)) : _createCommentVNode("v-if", true)]),
12
- _: 3 /* FORWARDED */
13
- }, 8 /* PROPS */, ["class"]);
11
+ default: _withCtx(() => [_renderSlot(_ctx.$slots, "default"), _ctx.resizable && _ctx.resizableHandler ? (_openBlock(), _createElementBlock("span", _hoisted_1)) : _createCommentVNode("", true)]),
12
+ _: 3
13
+ }, 8, ["class"]);
14
14
  }
15
15
  import { ref, computed, onBeforeUnmount, onMounted } from 'vue';
16
16
  import { classNames } from '../shared/utils.js';
@@ -348,7 +348,9 @@ export default {
348
348
  } = page;
349
349
  let keys = [];
350
350
  const passProps = {};
351
- if (pageComponent && pageComponent.props) keys = Object.keys(pageComponent.props);
351
+ if (pageComponent && pageComponent.props) {
352
+ if (Array.isArray(pageComponent.props)) keys = pageComponent.props.filter(prop => typeof prop === 'string');else keys = Object.keys(pageComponent.props);
353
+ }
352
354
  keys.forEach(key => {
353
355
  if (key in pageProps) passProps[key] = pageProps[key];
354
356
  });
@@ -1,14 +1,3 @@
1
- /**
2
- * Framework7 Vue 8.0.0-beta.1
3
- * Build full featured iOS & Android apps using Framework7 & Vue
4
- * https://framework7.io/vue/
5
- *
6
- * Copyright 2014-2022 Vladimir Kharlampidi
7
- *
8
- * Released under the MIT License
9
- *
10
- * Released on: December 16, 2022
11
- */
12
1
  import Framework7Vue from './shared/plugin.js';
13
2
  import { f7, f7ready, theme } from './shared/f7.js';
14
3
  import { useStore } from './shared/use-store.js';
@@ -92,8 +81,6 @@ import f7Stepper from './components/stepper.js';
92
81
  import f7Subnavbar from './components/subnavbar.js';
93
82
  import f7SwipeoutActions from './components/swipeout-actions.js';
94
83
  import f7SwipeoutButton from './components/swipeout-button.js';
95
- import f7SwiperSlide from './components/swiper-slide.js';
96
- import f7Swiper from './components/swiper.js';
97
84
  import f7Tab from './components/tab.js';
98
85
  import f7Tabs from './components/tabs.js';
99
86
  import f7TextEditor from './components/text-editor.js';
@@ -105,7 +92,7 @@ import f7UseIcon from './components/use-icon.js';
105
92
  import f7View from './components/view.js';
106
93
  import f7Views from './components/views.js';
107
94
 
108
- export { f7AccordionContent, f7AccordionItem, f7AccordionToggle, f7Accordion, f7ActionsButton, f7ActionsGroup, f7ActionsLabel, f7Actions, f7App, f7AreaChart, f7Badge, f7BlockFooter, f7BlockHeader, f7BlockTitle, f7Block, f7BreadcrumbsCollapsed, f7BreadcrumbsItem, f7BreadcrumbsSeparator, f7Breadcrumbs, f7Button, f7CardContent, f7CardFooter, f7CardHeader, f7Card, f7Checkbox, f7Chip, f7FabBackdrop, f7FabButton, f7FabButtons, f7Fab, f7Gauge, f7Icon, f7Input, f7Link, f7ListButton, f7ListGroup, f7ListIndex, f7ListInput, f7ListItem, f7List, f7LoginScreenTitle, f7LoginScreen, f7Message, f7MessagebarAttachment, f7MessagebarAttachments, f7MessagebarSheetImage, f7MessagebarSheetItem, f7MessagebarSheet, f7Messagebar, f7MessagesTitle, f7Messages, f7NavLeft, f7NavRight, f7NavTitleLarge, f7NavTitle, f7Navbar, f7PageContent, f7Page, f7Panel, f7PhotoBrowser, f7PieChart, f7Popover, f7Popup, f7Preloader, f7Progressbar, f7Radio, f7Range, f7RoutableModals, f7Searchbar, f7Segmented, f7Sheet, f7SkeletonAvatar, f7SkeletonBlock, f7SkeletonImage, f7SkeletonText, f7Stepper, f7Subnavbar, f7SwipeoutActions, f7SwipeoutButton, f7SwiperSlide, f7Swiper, f7Tab, f7Tabs, f7TextEditor, f7Toggle, f7Toolbar, f7TreeviewItem, f7Treeview, f7UseIcon, f7View, f7Views }
95
+ export { f7AccordionContent, f7AccordionItem, f7AccordionToggle, f7Accordion, f7ActionsButton, f7ActionsGroup, f7ActionsLabel, f7Actions, f7App, f7AreaChart, f7Badge, f7BlockFooter, f7BlockHeader, f7BlockTitle, f7Block, f7BreadcrumbsCollapsed, f7BreadcrumbsItem, f7BreadcrumbsSeparator, f7Breadcrumbs, f7Button, f7CardContent, f7CardFooter, f7CardHeader, f7Card, f7Checkbox, f7Chip, f7FabBackdrop, f7FabButton, f7FabButtons, f7Fab, f7Gauge, f7Icon, f7Input, f7Link, f7ListButton, f7ListGroup, f7ListIndex, f7ListInput, f7ListItem, f7List, f7LoginScreenTitle, f7LoginScreen, f7Message, f7MessagebarAttachment, f7MessagebarAttachments, f7MessagebarSheetImage, f7MessagebarSheetItem, f7MessagebarSheet, f7Messagebar, f7MessagesTitle, f7Messages, f7NavLeft, f7NavRight, f7NavTitleLarge, f7NavTitle, f7Navbar, f7PageContent, f7Page, f7Panel, f7PhotoBrowser, f7PieChart, f7Popover, f7Popup, f7Preloader, f7Progressbar, f7Radio, f7Range, f7RoutableModals, f7Searchbar, f7Segmented, f7Sheet, f7SkeletonAvatar, f7SkeletonBlock, f7SkeletonImage, f7SkeletonText, f7Stepper, f7Subnavbar, f7SwipeoutActions, f7SwipeoutButton, f7Tab, f7Tabs, f7TextEditor, f7Toggle, f7Toolbar, f7TreeviewItem, f7Treeview, f7UseIcon, f7View, f7Views }
109
96
  export { f7, f7ready, theme, useStore };
110
97
  export default Framework7Vue;
111
98
 
@@ -189,8 +176,6 @@ function registerComponents(app) {
189
176
  app.component('f7-subnavbar', f7Subnavbar);
190
177
  app.component('f7-swipeout-actions', f7SwipeoutActions);
191
178
  app.component('f7-swipeout-button', f7SwipeoutButton);
192
- app.component('f7-swiper-slide', f7SwiperSlide);
193
- app.component('f7-swiper', f7Swiper);
194
179
  app.component('f7-tab', f7Tab);
195
180
  app.component('f7-tabs', f7Tabs);
196
181
  app.component('f7-text-editor', f7TextEditor);