framework7-vue 7.0.0-beta.15 → 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.
Files changed (105) hide show
  1. package/components/accordion-content.js +3 -3
  2. package/components/accordion-item.js +7 -6
  3. package/components/accordion-toggle.js +3 -3
  4. package/components/accordion.js +3 -3
  5. package/components/actions-button.js +12 -9
  6. package/components/actions-group.js +3 -3
  7. package/components/actions-label.js +11 -7
  8. package/components/actions.js +7 -6
  9. package/components/app.js +3 -3
  10. package/components/appbar.js +5 -5
  11. package/components/area-chart.js +48 -41
  12. package/components/badge.js +3 -3
  13. package/components/block-footer.js +3 -3
  14. package/components/block-header.js +3 -3
  15. package/components/block-title.js +5 -4
  16. package/components/block.js +7 -6
  17. package/components/breadcrumbs-collapsed.js +3 -3
  18. package/components/breadcrumbs-item.js +4 -4
  19. package/components/breadcrumbs-separator.js +2 -2
  20. package/components/breadcrumbs.js +2 -2
  21. package/components/button.js +5 -5
  22. package/components/card-content.js +3 -3
  23. package/components/card-footer.js +3 -3
  24. package/components/card-header.js +3 -3
  25. package/components/card.js +10 -8
  26. package/components/checkbox.js +14 -10
  27. package/components/chip.js +14 -11
  28. package/components/col.js +7 -6
  29. package/components/fab-backdrop.js +3 -3
  30. package/components/fab-button.js +13 -9
  31. package/components/fab-buttons.js +3 -3
  32. package/components/fab.js +5 -4
  33. package/components/gauge.js +16 -9
  34. package/components/icon.js +5 -5
  35. package/components/input.js +25 -8
  36. package/components/link.js +8 -7
  37. package/components/list-button.js +9 -6
  38. package/components/list-group.js +5 -4
  39. package/components/list-index.js +7 -6
  40. package/components/list-input.js +25 -8
  41. package/components/list-item-cell.js +3 -3
  42. package/components/list-item-row.js +3 -3
  43. package/components/list-item.js +17 -15
  44. package/components/list.js +5 -4
  45. package/components/login-screen-title.js +3 -3
  46. package/components/login-screen.js +7 -6
  47. package/components/menu-dropdown-item.js +9 -6
  48. package/components/menu-dropdown.js +6 -6
  49. package/components/menu-item.js +7 -6
  50. package/components/menu.js +4 -4
  51. package/components/message.js +47 -29
  52. package/components/messagebar-attachment.js +17 -10
  53. package/components/messagebar-attachments.js +3 -3
  54. package/components/messagebar-sheet-image.js +16 -11
  55. package/components/messagebar-sheet-item.js +3 -3
  56. package/components/messagebar-sheet.js +3 -3
  57. package/components/messagebar.js +5 -4
  58. package/components/messages-title.js +3 -3
  59. package/components/messages.js +7 -6
  60. package/components/nav-left.js +9 -7
  61. package/components/nav-right.js +3 -3
  62. package/components/nav-title-large.js +4 -4
  63. package/components/nav-title.js +4 -4
  64. package/components/navbar.js +12 -11
  65. package/components/page-content.js +14 -12
  66. package/components/page.js +5 -4
  67. package/components/panel.js +13 -8
  68. package/components/photo-browser.js +4 -3
  69. package/components/pie-chart.js +25 -21
  70. package/components/popover.js +9 -8
  71. package/components/popup.js +7 -6
  72. package/components/preloader.js +15 -12
  73. package/components/progressbar.js +7 -6
  74. package/components/radio.js +14 -10
  75. package/components/range.js +10 -8
  76. package/components/row.js +7 -6
  77. package/components/searchbar.js +29 -15
  78. package/components/segmented.js +3 -3
  79. package/components/sheet.js +5 -4
  80. package/components/stepper.js +24 -14
  81. package/components/subnavbar.js +4 -4
  82. package/components/swipeout-actions.js +3 -3
  83. package/components/swipeout-button.js +13 -8
  84. package/components/tab.js +7 -6
  85. package/components/tabs.js +7 -7
  86. package/components/text-editor.js +8 -7
  87. package/components/toggle.js +14 -10
  88. package/components/toolbar.js +8 -7
  89. package/components/treeview-item.js +11 -10
  90. package/components/treeview.js +3 -3
  91. package/components/use-icon.js +4 -4
  92. package/components/view.js +5 -4
  93. package/components/views.js +3 -3
  94. package/framework7-vue-bundle.js +2 -2
  95. package/framework7-vue-web-types.json +1 -1
  96. package/framework7-vue.js +2 -2
  97. package/package.json +1 -1
  98. package/shared/components-router.js +23 -20
  99. package/shared/f7.js +9 -1
  100. package/shared/modal-state-classes.js +5 -4
  101. package/shared/plugin.js +5 -1
  102. package/shared/use-icon.js +5 -1
  103. package/shared/use-route-props.js +4 -3
  104. package/shared/use-store.js +5 -5
  105. package/shared/utils.js +16 -3
@@ -55,10 +55,11 @@ export default {
55
55
  },
56
56
  emits: ['sheet:stepprogress', 'sheet:stepopen', 'sheet:stepclose', 'sheet:open', 'sheet:opened', 'sheet:close', 'sheet:closed', 'update:opened'],
57
57
 
58
- setup(props, {
59
- emit,
60
- slots
61
- }) {
58
+ setup(props, _ref) {
59
+ let {
60
+ emit,
61
+ slots
62
+ } = _ref;
62
63
  let f7Sheet = null; // eslint-disable-next-line
63
64
 
64
65
  let isOpened = props.opened;
@@ -1,21 +1,24 @@
1
- import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString } from "vue";
1
+ import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass } from "vue";
2
2
  const _hoisted_1 = {
3
3
  key: 0,
4
4
  class: "stepper-input-wrap"
5
5
  };
6
- const _hoisted_2 = {
6
+ const _hoisted_2 = ["id", "name", "type", "min", "max", "step", "value", "readonly"];
7
+ const _hoisted_3 = {
7
8
  key: 1,
8
9
  class: "stepper-value"
9
10
  };
10
11
 
11
12
  function render(_ctx, _cache) {
12
- return _openBlock(), _createBlock("div", {
13
+ return _openBlock(), _createElementBlock("div", {
13
14
  ref: "elRef",
14
- class: _ctx.classes
15
- }, [_createVNode("div", {
15
+ class: _normalizeClass(_ctx.classes)
16
+ }, [_createElementVNode("div", {
16
17
  class: "stepper-button-minus",
17
- onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onMinusClick && _ctx.onMinusClick(...args))
18
- }), _ctx.input && !_ctx.buttonsOnly ? (_openBlock(), _createBlock("div", _hoisted_1, [_createVNode("input", {
18
+ onClick: _cache[0] || (_cache[0] = function () {
19
+ return _ctx.onMinusClick && _ctx.onMinusClick(...arguments);
20
+ })
21
+ }), _ctx.input && !_ctx.buttonsOnly ? (_openBlock(), _createElementBlock("div", _hoisted_1, [_createElementVNode("input", {
19
22
  id: _ctx.inputId,
20
23
  name: _ctx.name,
21
24
  type: _ctx.inputType,
@@ -24,11 +27,17 @@ function render(_ctx, _cache) {
24
27
  step: _ctx.inputType === 'number' ? _ctx.step : undefined,
25
28
  value: _ctx.value,
26
29
  readonly: _ctx.inputReadonly,
27
- onInput: _cache[2] || (_cache[2] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
28
- onChange: _cache[3] || (_cache[3] = (...args) => _ctx.onChange && _ctx.onChange(...args))
29
- }, null, 40, ["id", "name", "type", "min", "max", "step", "value", "readonly"])])) : _createCommentVNode("", true), !_ctx.input && !_ctx.buttonsOnly ? (_openBlock(), _createBlock("div", _hoisted_2, _toDisplayString(_ctx.value), 1)) : _createCommentVNode("", true), _createVNode("div", {
30
+ onInput: _cache[1] || (_cache[1] = function () {
31
+ return _ctx.onInput && _ctx.onInput(...arguments);
32
+ }),
33
+ onChange: _cache[2] || (_cache[2] = function () {
34
+ return _ctx.onChange && _ctx.onChange(...arguments);
35
+ })
36
+ }, null, 40, _hoisted_2)])) : _createCommentVNode("", true), !_ctx.input && !_ctx.buttonsOnly ? (_openBlock(), _createElementBlock("div", _hoisted_3, _toDisplayString(_ctx.value), 1)) : _createCommentVNode("", true), _createElementVNode("div", {
30
37
  class: "stepper-button-plus",
31
- onClick: _cache[4] || (_cache[4] = (...args) => _ctx.onPlusClick && _ctx.onPlusClick(...args))
38
+ onClick: _cache[3] || (_cache[3] = function () {
39
+ return _ctx.onPlusClick && _ctx.onPlusClick(...arguments);
40
+ })
32
41
  })], 2);
33
42
  }
34
43
 
@@ -125,9 +134,10 @@ export default {
125
134
  },
126
135
  emits: ['input', 'change', 'stepper:minusclick', 'stepper:plusclick', 'stepper:change', 'update:value'],
127
136
 
128
- setup(props, {
129
- emit
130
- }) {
137
+ setup(props, _ref) {
138
+ let {
139
+ emit
140
+ } = _ref;
131
141
  let f7Stepper = null;
132
142
  const elRef = ref(null);
133
143
 
@@ -1,4 +1,4 @@
1
- import { toDisplayString as _toDisplayString, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot } from "vue";
1
+ import { toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass } from "vue";
2
2
  const _hoisted_1 = {
3
3
  key: 0,
4
4
  class: "subnavbar-inner"
@@ -9,9 +9,9 @@ const _hoisted_2 = {
9
9
  };
10
10
 
11
11
  function render(_ctx, _cache) {
12
- return _openBlock(), _createBlock("div", {
13
- class: _ctx.classes
14
- }, [_ctx.inner ? (_openBlock(), _createBlock("div", _hoisted_1, [_ctx.title ? (_openBlock(), _createBlock("div", _hoisted_2, _toDisplayString(_ctx.title), 1)) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "default")])) : _renderSlot(_ctx.$slots, "default", {
12
+ return _openBlock(), _createElementBlock("div", {
13
+ class: _normalizeClass(_ctx.classes)
14
+ }, [_ctx.inner ? (_openBlock(), _createElementBlock("div", _hoisted_1, [_ctx.title ? (_openBlock(), _createElementBlock("div", _hoisted_2, _toDisplayString(_ctx.title), 1)) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "default")])) : _renderSlot(_ctx.$slots, "default", {
15
15
  key: 1
16
16
  })], 2);
17
17
  }
@@ -1,8 +1,8 @@
1
- import { renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock } from "vue";
1
+ import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
2
 
3
3
  function render(_ctx, _cache) {
4
- return _openBlock(), _createBlock("div", {
5
- class: _ctx.classes
4
+ return _openBlock(), _createElementBlock("div", {
5
+ class: _normalizeClass(_ctx.classes)
6
6
  }, [_renderSlot(_ctx.$slots, "default")], 2);
7
7
  }
8
8
 
@@ -1,13 +1,16 @@
1
- import { toDisplayString as _toDisplayString, renderSlot as _renderSlot, createTextVNode as _createTextVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue";
1
+ import { toDisplayString as _toDisplayString, renderSlot as _renderSlot, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
+ const _hoisted_1 = ["href", "data-confirm", "data-confirm-title"];
2
3
 
3
4
  function render(_ctx, _cache) {
4
- return _openBlock(), _createBlock("a", {
5
+ return _openBlock(), _createElementBlock("a", {
5
6
  href: _ctx.href || '#',
6
7
  "data-confirm": _ctx.confirmText || undefined,
7
8
  "data-confirm-title": _ctx.confirmTitle || undefined,
8
- class: _ctx.classes,
9
- onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClick && _ctx.onClick(...args))
10
- }, [_createTextVNode(_toDisplayString(_ctx.text) + " ", 1), _renderSlot(_ctx.$slots, "default")], 10, ["href", "data-confirm", "data-confirm-title"]);
9
+ class: _normalizeClass(_ctx.classes),
10
+ onClick: _cache[0] || (_cache[0] = function () {
11
+ return _ctx.onClick && _ctx.onClick(...arguments);
12
+ })
13
+ }, [_createTextVNode(_toDisplayString(_ctx.text) + " ", 1), _renderSlot(_ctx.$slots, "default")], 10, _hoisted_1);
11
14
  }
12
15
 
13
16
  import { computed } from 'vue';
@@ -28,9 +31,11 @@ export default {
28
31
  },
29
32
  emits: ['click'],
30
33
 
31
- setup(props, {
32
- emit
33
- }) {
34
+ setup(props, _ref) {
35
+ let {
36
+ emit
37
+ } = _ref;
38
+
34
39
  const onClick = e => {
35
40
  emit('click', e);
36
41
  };
package/components/tab.js CHANGED
@@ -1,9 +1,9 @@
1
- import { resolveDynamicComponent as _resolveDynamicComponent, mergeProps as _mergeProps, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot } from "vue";
1
+ import { resolveDynamicComponent as _resolveDynamicComponent, mergeProps as _mergeProps, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, createElementBlock as _createElementBlock } from "vue";
2
2
 
3
3
  function render(_ctx, _cache) {
4
- return _openBlock(), _createBlock("div", {
4
+ return _openBlock(), _createElementBlock("div", {
5
5
  ref: "elRef",
6
- class: _ctx.classes
6
+ class: _normalizeClass(_ctx.classes)
7
7
  }, [_ctx.tabContent ? (_openBlock(), _createBlock(_resolveDynamicComponent(_ctx.getComponent(_ctx.tabContent)), _mergeProps({
8
8
  key: 0,
9
9
  key: _ctx.tabContent.id
@@ -26,9 +26,10 @@ export default {
26
26
  },
27
27
  emits: ['tab:show', 'tab:hide'],
28
28
 
29
- setup(props, {
30
- emit
31
- }) {
29
+ setup(props, _ref) {
30
+ let {
31
+ emit
32
+ } = _ref;
32
33
  const elRef = ref(null);
33
34
  const routerData = ref(null);
34
35
  const route = inject('f7route', null);
@@ -1,16 +1,16 @@
1
- import { renderSlot as _renderSlot, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode } from "vue";
1
+ import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode } from "vue";
2
2
 
3
3
  function render(_ctx, _cache) {
4
- return _ctx.animated || _ctx.swipeable ? (_openBlock(), _createBlock("div", {
4
+ return _ctx.animated || _ctx.swipeable ? (_openBlock(), _createElementBlock("div", {
5
5
  key: 0,
6
6
  ref: "elRef",
7
- class: _ctx.classNames(_ctx.wrapClasses, _ctx.classes)
8
- }, [_createVNode("div", {
9
- class: _ctx.tabsClasses
10
- }, [_renderSlot(_ctx.$slots, "default")], 2)], 2)) : (_openBlock(), _createBlock("div", {
7
+ class: _normalizeClass(_ctx.classNames(_ctx.wrapClasses, _ctx.classes))
8
+ }, [_createElementVNode("div", {
9
+ class: _normalizeClass(_ctx.tabsClasses)
10
+ }, [_renderSlot(_ctx.$slots, "default")], 2)], 2)) : (_openBlock(), _createElementBlock("div", {
11
11
  key: 1,
12
12
  ref: "elRef",
13
- class: _ctx.classNames(_ctx.tabsClasses, _ctx.classes)
13
+ class: _normalizeClass(_ctx.classNames(_ctx.tabsClasses, _ctx.classes))
14
14
  }, [_renderSlot(_ctx.$slots, "default")], 2));
15
15
  }
16
16
 
@@ -1,14 +1,14 @@
1
- import { renderSlot as _renderSlot, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue";
1
+ import { renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
2
  const _hoisted_1 = {
3
3
  class: "text-editor-content",
4
4
  contenteditable: ""
5
5
  };
6
6
 
7
7
  function render(_ctx, _cache) {
8
- return _openBlock(), _createBlock("div", {
8
+ return _openBlock(), _createElementBlock("div", {
9
9
  ref: "elRef",
10
- class: _ctx.classes
11
- }, [_renderSlot(_ctx.$slots, "root-start"), _createVNode("div", _hoisted_1, [_renderSlot(_ctx.$slots, "default")]), _renderSlot(_ctx.$slots, "root-end"), _renderSlot(_ctx.$slots, "root")], 2);
10
+ class: _normalizeClass(_ctx.classes)
11
+ }, [_renderSlot(_ctx.$slots, "root-start"), _createElementVNode("div", _hoisted_1, [_renderSlot(_ctx.$slots, "default")]), _renderSlot(_ctx.$slots, "root-end"), _renderSlot(_ctx.$slots, "root")], 2);
12
12
  }
13
13
 
14
14
  import { computed, ref, onMounted, onBeforeUnmount, watch } from 'vue';
@@ -57,9 +57,10 @@ export default {
57
57
  },
58
58
  emits: ['texteditor:change', 'texteditor:input', 'texteditor:focus', 'texteditor:blur', 'texteditor:buttonclick', 'texteditor:keyboardopen', 'texteditor:keyboardclose', 'texteditor:popoveropen', 'texteditor:popoverclose', 'texteditor:insertlink', 'texteditor:insertimage', 'texteditorChange', 'texteditorInput', 'texteditorFocus', 'texteditorBlur'],
59
59
 
60
- setup(props, {
61
- emit
62
- }) {
60
+ setup(props, _ref) {
61
+ let {
62
+ emit
63
+ } = _ref;
63
64
  let f7TextEditor = null;
64
65
  const elRef = ref(null);
65
66
 
@@ -1,22 +1,25 @@
1
- import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue";
1
+ import { createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
+ const _hoisted_1 = ["name", "disabled", "readonly", "checked", "value"];
2
3
 
3
- const _hoisted_1 = /*#__PURE__*/_createVNode("span", {
4
+ const _hoisted_2 = /*#__PURE__*/_createElementVNode("span", {
4
5
  class: "toggle-icon"
5
6
  }, null, -1);
6
7
 
7
8
  function render(_ctx, _cache) {
8
- return _openBlock(), _createBlock("label", {
9
+ return _openBlock(), _createElementBlock("label", {
9
10
  ref: "elRef",
10
- class: _ctx.classes
11
- }, [_createVNode("input", {
11
+ class: _normalizeClass(_ctx.classes)
12
+ }, [_createElementVNode("input", {
12
13
  type: "checkbox",
13
14
  name: _ctx.name,
14
15
  disabled: _ctx.disabled,
15
16
  readonly: _ctx.readonly,
16
17
  checked: _ctx.checked,
17
18
  value: _ctx.value,
18
- onChange: _cache[1] || (_cache[1] = (...args) => _ctx.onChange && _ctx.onChange(...args))
19
- }, null, 40, ["name", "disabled", "readonly", "checked", "value"]), _hoisted_1], 2);
19
+ onChange: _cache[0] || (_cache[0] = function () {
20
+ return _ctx.onChange && _ctx.onChange(...arguments);
21
+ })
22
+ }, null, 40, _hoisted_1), _hoisted_2], 2);
20
23
  }
21
24
 
22
25
  import { computed, ref, watch, onMounted, onBeforeUnmount } from 'vue';
@@ -43,9 +46,10 @@ export default {
43
46
  },
44
47
  emits: ['change', 'toggle:change', 'update:checked'],
45
48
 
46
- setup(props, {
47
- emit
48
- }) {
49
+ setup(props, _ref) {
50
+ let {
51
+ emit
52
+ } = _ref;
49
53
  let f7Toggle = null;
50
54
  const elRef = ref(null);
51
55
  useTooltip(elRef, props);
@@ -1,14 +1,14 @@
1
- import { renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode } from "vue";
1
+ import { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, normalizeClass as _normalizeClass } from "vue";
2
2
  const _hoisted_1 = {
3
3
  key: 0,
4
4
  className: "toolbar-inner"
5
5
  };
6
6
 
7
7
  function render(_ctx, _cache) {
8
- return _openBlock(), _createBlock("div", {
8
+ return _openBlock(), _createElementBlock("div", {
9
9
  ref: "elRef",
10
- class: _ctx.classes
11
- }, [_renderSlot(_ctx.$slots, "before-inner"), _ctx.inner ? (_openBlock(), _createBlock("div", _hoisted_1, [_renderSlot(_ctx.$slots, "default")])) : _renderSlot(_ctx.$slots, "default", {
10
+ class: _normalizeClass(_ctx.classes)
11
+ }, [_renderSlot(_ctx.$slots, "before-inner"), _ctx.inner ? (_openBlock(), _createElementBlock("div", _hoisted_1, [_renderSlot(_ctx.$slots, "default")])) : _renderSlot(_ctx.$slots, "default", {
12
12
  key: 1
13
13
  }), _renderSlot(_ctx.$slots, "after-inner")], 2);
14
14
  }
@@ -73,9 +73,10 @@ export default {
73
73
  },
74
74
  emits: ['toolbar:hide', 'toolbar:show'],
75
75
 
76
- setup(props, {
77
- emit
78
- }) {
76
+ setup(props, _ref) {
77
+ let {
78
+ emit
79
+ } = _ref;
79
80
  const elRef = ref(null);
80
81
  const theme = useTheme();
81
82
 
@@ -1,4 +1,4 @@
1
- import { renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createVNode as _createVNode, resolveDynamicComponent as _resolveDynamicComponent, mergeProps as _mergeProps, withCtx as _withCtx } from "vue";
1
+ import { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, createBlock as _createBlock, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createElementVNode as _createElementVNode, resolveDynamicComponent as _resolveDynamicComponent, mergeProps as _mergeProps, withCtx as _withCtx, normalizeClass as _normalizeClass } from "vue";
2
2
  const _hoisted_1 = {
3
3
  key: 0,
4
4
  className: "treeview-toggle"
@@ -17,20 +17,20 @@ const _hoisted_4 = {
17
17
  function render(_ctx, _cache) {
18
18
  const _component_f7_use_icon = _resolveComponent("f7-use-icon");
19
19
 
20
- return _openBlock(), _createBlock("div", {
20
+ return _openBlock(), _createElementBlock("div", {
21
21
  ref: "elRef",
22
- class: _ctx.classes
22
+ class: _normalizeClass(_ctx.classes)
23
23
  }, [(_openBlock(), _createBlock(_resolveDynamicComponent(_ctx.itemRootTag), _mergeProps({
24
24
  class: _ctx.itemRootClasses
25
25
  }, _ctx.itemRootAttrs, {
26
26
  onClick: _ctx.onClick
27
27
  }), {
28
- default: _withCtx(() => [_renderSlot(_ctx.$slots, "root-start"), _ctx.needToggle ? (_openBlock(), _createBlock("div", _hoisted_1)) : _createCommentVNode("", true), _createVNode("div", _hoisted_2, [_renderSlot(_ctx.$slots, "content-start"), _ctx.icon ? (_openBlock(), _createBlock(_component_f7_use_icon, {
28
+ default: _withCtx(() => [_renderSlot(_ctx.$slots, "root-start"), _ctx.needToggle ? (_openBlock(), _createElementBlock("div", _hoisted_1)) : _createCommentVNode("", true), _createElementVNode("div", _hoisted_2, [_renderSlot(_ctx.$slots, "content-start"), _ctx.icon ? (_openBlock(), _createBlock(_component_f7_use_icon, {
29
29
  key: 0,
30
30
  icon: _ctx.icon
31
- }, null, 8, ["icon"])) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "media"), _createVNode("div", _hoisted_3, [_renderSlot(_ctx.$slots, "label-start"), _createTextVNode(" " + _toDisplayString(_ctx.label) + " ", 1), _renderSlot(_ctx.$slots, "label")]), _renderSlot(_ctx.$slots, "content"), _renderSlot(_ctx.$slots, "content-end")]), _renderSlot(_ctx.$slots, "root"), _renderSlot(_ctx.$slots, "root-end")]),
31
+ }, null, 8, ["icon"])) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "media"), _createElementVNode("div", _hoisted_3, [_renderSlot(_ctx.$slots, "label-start"), _createTextVNode(" " + _toDisplayString(_ctx.label) + " ", 1), _renderSlot(_ctx.$slots, "label")]), _renderSlot(_ctx.$slots, "content"), _renderSlot(_ctx.$slots, "content-end")]), _renderSlot(_ctx.$slots, "root"), _renderSlot(_ctx.$slots, "root-end")]),
32
32
  _: 3
33
- }, 16, ["class", "onClick"])), _ctx.hasChildren ? (_openBlock(), _createBlock("div", _hoisted_4, [_renderSlot(_ctx.$slots, "children-start"), _renderSlot(_ctx.$slots, "default"), _renderSlot(_ctx.$slots, "children")])) : _createCommentVNode("", true)], 2);
33
+ }, 16, ["class", "onClick"])), _ctx.hasChildren ? (_openBlock(), _createElementBlock("div", _hoisted_4, [_renderSlot(_ctx.$slots, "children-start"), _renderSlot(_ctx.$slots, "default"), _renderSlot(_ctx.$slots, "children")])) : _createCommentVNode("", true)], 2);
34
34
  }
35
35
 
36
36
  import { computed, ref, onMounted, onBeforeUnmount } from 'vue';
@@ -67,10 +67,11 @@ export default {
67
67
  },
68
68
  emits: ['click', 'treeview:open', 'treeview:close', 'treeview:loadchildren'],
69
69
 
70
- setup(props, {
71
- slots,
72
- emit
73
- }) {
70
+ setup(props, _ref) {
71
+ let {
72
+ slots,
73
+ emit
74
+ } = _ref;
74
75
  const elRef = ref(null);
75
76
  const hasChildren = computed(() => {
76
77
  return slots.default || slots.children || slots['children-start'];
@@ -1,8 +1,8 @@
1
- import { renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock } from "vue";
1
+ import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
2
 
3
3
  function render(_ctx, _cache) {
4
- return _openBlock(), _createBlock("div", {
5
- class: _ctx.classes
4
+ return _openBlock(), _createElementBlock("div", {
5
+ class: _normalizeClass(_ctx.classes)
6
6
  }, [_renderSlot(_ctx.$slots, "default")], 2);
7
7
  }
8
8
 
@@ -1,14 +1,14 @@
1
- import { toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, mergeProps as _mergeProps, createCommentVNode as _createCommentVNode } from "vue";
1
+ import { toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, mergeProps as _mergeProps, createCommentVNode as _createCommentVNode } from "vue";
2
2
 
3
3
  function render(_ctx, _cache) {
4
4
  const _component_f7_badge = _resolveComponent("f7-badge");
5
5
 
6
6
  const _component_f7_icon = _resolveComponent("f7-icon");
7
7
 
8
- return _openBlock(), _createBlock(_component_f7_icon, _ctx.icon.props, {
9
- default: _withCtx(() => [_ctx.icon.badge ? (_openBlock(), _createBlock(_component_f7_badge, _mergeProps({
8
+ return _openBlock(), _createBlock(_component_f7_icon, _normalizeProps(_guardReactiveProps(_ctx.icon.props)), {
9
+ default: _withCtx(() => [_ctx.icon.badge ? (_openBlock(), _createBlock(_component_f7_badge, _normalizeProps(_mergeProps({
10
10
  key: 0
11
- }, _ctx.icon.badge.props), {
11
+ }, _ctx.icon.badge.props)), {
12
12
  default: _withCtx(() => [_createTextVNode(_toDisplayString(_ctx.icon.badge.content), 1)]),
13
13
  _: 1
14
14
  }, 16)) : _createCommentVNode("", true)]),
@@ -185,10 +185,11 @@ export default {
185
185
  },
186
186
  emits: ['view:init', 'view:resize', 'swipeback:move', 'swipeback:beforechange', 'swipeback:afterchange', 'swipeback:beforereset', 'swipeback:afterreset', 'tab:hide', 'tab:show'],
187
187
 
188
- setup(props, {
189
- emit,
190
- slots
191
- }) {
188
+ setup(props, _ref) {
189
+ let {
190
+ emit,
191
+ slots
192
+ } = _ref;
192
193
  // const childrenArray = React.Children.toArray(children);
193
194
  // const initialPageComponent = childrenArray.filter((c) => c.props && c.props.initialPage)[0];
194
195
  // const restChildren = childrenArray.filter((c) => !c.props || !c.props.initialPage);
@@ -1,8 +1,8 @@
1
- import { renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock } from "vue";
1
+ import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
2
 
3
3
  function render(_ctx, _cache) {
4
- return _openBlock(), _createBlock("div", {
5
- class: _ctx.classes
4
+ return _openBlock(), _createElementBlock("div", {
5
+ class: _normalizeClass(_ctx.classes)
6
6
  }, [_renderSlot(_ctx.$slots, "default")], 2);
7
7
  }
8
8
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Framework7 Vue 7.0.0-beta.15
2
+ * Framework7 Vue 7.0.0-beta.20
3
3
  * Build full featured iOS & Android apps using Framework7 & Vue
4
4
  * https://framework7.io/vue/
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: April 11, 2022
10
+ * Released on: April 15, 2022
11
11
  */
12
12
  import Framework7Vue from './shared/plugin.js';
13
13
  import { f7, f7ready, theme } from './shared/f7.js';
@@ -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": "7.0.0-beta.15",
5
+ "version": "7.0.0-beta.20",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "types-syntax": "typescript",
package/framework7-vue.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Framework7 Vue 7.0.0-beta.15
2
+ * Framework7 Vue 7.0.0-beta.20
3
3
  * Build full featured iOS & Android apps using Framework7 & Vue
4
4
  * https://framework7.io/vue/
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: April 11, 2022
10
+ * Released on: April 15, 2022
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,6 +1,6 @@
1
1
  {
2
2
  "name": "framework7-vue",
3
- "version": "7.0.0-beta.15",
3
+ "version": "7.0.0-beta.20",
4
4
  "description": "Build full featured iOS & Android apps using Framework7 & Vue",
5
5
  "type": "module",
6
6
  "exports": {
@@ -26,13 +26,14 @@ export default {
26
26
  return routerOpenIn(router, navigateUrl, options);
27
27
  },
28
28
 
29
- pageComponentLoader({
30
- routerEl,
31
- component,
32
- options,
33
- resolve,
34
- reject
35
- }) {
29
+ pageComponentLoader(_ref) {
30
+ let {
31
+ routerEl,
32
+ component,
33
+ options,
34
+ resolve,
35
+ reject
36
+ } = _ref;
36
37
  const router = this;
37
38
  const routerId = router.id;
38
39
  const el = routerEl;
@@ -117,13 +118,14 @@ export default {
117
118
  }
118
119
  },
119
120
 
120
- tabComponentLoader({
121
- tabEl,
122
- component,
123
- options,
124
- resolve,
125
- reject
126
- } = {}) {
121
+ tabComponentLoader(_temp) {
122
+ let {
123
+ tabEl,
124
+ component,
125
+ options,
126
+ resolve,
127
+ reject
128
+ } = _temp === void 0 ? {} : _temp;
127
129
  const router = this;
128
130
  if (!tabEl) reject();
129
131
  let tabRouter;
@@ -179,12 +181,13 @@ export default {
179
181
  tabRouter.setTabContent(null);
180
182
  },
181
183
 
182
- modalComponentLoader({
183
- component,
184
- options,
185
- resolve,
186
- reject
187
- } = {}) {
184
+ modalComponentLoader(_temp2) {
185
+ let {
186
+ component,
187
+ options,
188
+ resolve,
189
+ reject
190
+ } = _temp2 === void 0 ? {} : _temp2;
188
191
  const router = this;
189
192
  const modalsRouter = f7routers.modals;
190
193
 
package/shared/f7.js CHANGED
@@ -31,7 +31,15 @@ const f7initEvents = () => {
31
31
  f7events = new Framework7.Events();
32
32
  };
33
33
 
34
- const f7init = (rootEl, params = {}, init = true) => {
34
+ const f7init = function (rootEl, params, init) {
35
+ if (params === void 0) {
36
+ params = {};
37
+ }
38
+
39
+ if (init === void 0) {
40
+ init = true;
41
+ }
42
+
35
43
  const f7Params = extend({}, params, {
36
44
  el: rootEl,
37
45
  init
@@ -1,7 +1,8 @@
1
- export const modalStateClasses = ({
2
- isOpened,
3
- isClosing
4
- } = {}) => {
1
+ export const modalStateClasses = function (_temp) {
2
+ let {
3
+ isOpened,
4
+ isClosing
5
+ } = _temp === void 0 ? {} : _temp;
5
6
  return {
6
7
  'modal-in': isOpened && !isClosing,
7
8
  'modal-out': isClosing
package/shared/plugin.js CHANGED
@@ -5,7 +5,11 @@ const Framework7Vue = {
5
5
  name: 'vuePlugin',
6
6
  installed: false,
7
7
 
8
- install(params = {}) {
8
+ install(params) {
9
+ if (params === void 0) {
10
+ params = {};
11
+ }
12
+
9
13
  if (Framework7Vue.installed) return;
10
14
  Framework7Vue.installed = true;
11
15
  f7initEvents();
@@ -1,4 +1,8 @@
1
- export const useIcon = (props = {}) => {
1
+ export const useIcon = function (props) {
2
+ if (props === void 0) {
3
+ props = {};
4
+ }
5
+
2
6
  const {
3
7
  icon,
4
8
  iconMaterial,
@@ -1,7 +1,8 @@
1
1
  import { onMounted, onUpdated } from 'vue';
2
- export const useRouteProps = (elRef, {
3
- routeProps
4
- } = {}) => {
2
+ export const useRouteProps = function (elRef, _temp) {
3
+ let {
4
+ routeProps
5
+ } = _temp === void 0 ? {} : _temp;
5
6
  onMounted(() => {
6
7
  if (elRef.value && routeProps) {
7
8
  elRef.value.f7RouteProps = routeProps;