framework7-vue 7.0.8 → 8.0.0-beta.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.
Files changed (144) hide show
  1. package/components/accordion-content.js +2 -5
  2. package/components/accordion-item.js +0 -13
  3. package/components/accordion-toggle.js +2 -5
  4. package/components/accordion.js +0 -4
  5. package/components/actions-button.d.ts +1 -1
  6. package/components/actions-button.js +2 -9
  7. package/components/actions-group.js +2 -5
  8. package/components/actions-label.d.ts +1 -1
  9. package/components/actions-label.js +2 -8
  10. package/components/actions.js +2 -14
  11. package/components/app.d.ts +7 -12
  12. package/components/app.js +11 -24
  13. package/components/appbar.js +2 -5
  14. package/components/area-chart.js +4 -41
  15. package/components/badge.js +0 -4
  16. package/components/block-footer.js +2 -5
  17. package/components/block-header.js +2 -5
  18. package/components/block-title.js +0 -4
  19. package/components/block.d.ts +61 -9
  20. package/components/block.js +52 -17
  21. package/components/breadcrumbs-collapsed.js +0 -5
  22. package/components/breadcrumbs-item.js +0 -4
  23. package/components/breadcrumbs-separator.js +0 -4
  24. package/components/breadcrumbs.js +0 -4
  25. package/components/button.d.ts +9 -25
  26. package/components/button.js +9 -25
  27. package/components/card-content.js +0 -4
  28. package/components/card-footer.js +2 -5
  29. package/components/card-header.js +2 -5
  30. package/components/card.d.ts +17 -5
  31. package/components/card.js +10 -20
  32. package/components/checkbox.js +0 -7
  33. package/components/chip.d.ts +0 -4
  34. package/components/chip.js +0 -7
  35. package/components/col.js +3 -9
  36. package/components/fab-backdrop.js +2 -5
  37. package/components/fab-button.js +0 -6
  38. package/components/fab-buttons.js +0 -4
  39. package/components/fab.js +0 -9
  40. package/components/gauge.js +0 -4
  41. package/components/icon.d.ts +0 -4
  42. package/components/icon.js +1 -18
  43. package/components/input.js +0 -56
  44. package/components/link.d.ts +0 -4
  45. package/components/link.js +4 -13
  46. package/components/list-button.js +0 -6
  47. package/components/list-group.js +0 -4
  48. package/components/list-index.d.ts +0 -5
  49. package/components/list-index.js +0 -14
  50. package/components/list-input.d.ts +0 -4
  51. package/components/list-input.js +0 -53
  52. package/components/list-item-cell.js +3 -5
  53. package/components/list-item-row.js +3 -5
  54. package/components/list-item.d.ts +0 -4
  55. package/components/list-item.js +9 -52
  56. package/components/list.d.ts +71 -23
  57. package/components/list.js +42 -33
  58. package/components/login-screen-title.js +2 -5
  59. package/components/login-screen.js +2 -17
  60. package/components/menu-dropdown-item.js +1 -6
  61. package/components/menu-dropdown.js +1 -4
  62. package/components/menu-item.js +4 -18
  63. package/components/menu.js +3 -5
  64. package/components/message.js +0 -16
  65. package/components/messagebar-attachment.js +0 -7
  66. package/components/messagebar-attachments.js +2 -5
  67. package/components/messagebar-sheet-image.js +7 -15
  68. package/components/messagebar-sheet-item.js +2 -5
  69. package/components/messagebar-sheet.js +2 -5
  70. package/components/messagebar.js +0 -16
  71. package/components/messages-title.js +2 -5
  72. package/components/messages.js +0 -13
  73. package/components/nav-left.js +0 -9
  74. package/components/nav-right.js +0 -4
  75. package/components/nav-title-large.js +2 -5
  76. package/components/nav-title.js +0 -4
  77. package/components/navbar.d.ts +5 -8
  78. package/components/navbar.js +6 -29
  79. package/components/page-content.js +0 -16
  80. package/components/page.d.ts +0 -4
  81. package/components/page.js +2 -67
  82. package/components/panel.d.ts +4 -0
  83. package/components/panel.js +2 -23
  84. package/components/photo-browser.js +2 -18
  85. package/components/pie-chart.js +4 -20
  86. package/components/popover.d.ts +5 -0
  87. package/components/popover.js +8 -16
  88. package/components/popup.js +3 -19
  89. package/components/preloader.js +4 -23
  90. package/components/progressbar.js +0 -6
  91. package/components/radio.js +0 -7
  92. package/components/range.js +0 -7
  93. package/components/routable-modals.js +0 -7
  94. package/components/row.js +3 -9
  95. package/components/searchbar.d.ts +5 -8
  96. package/components/searchbar.js +7 -28
  97. package/components/segmented.d.ts +0 -12
  98. package/components/segmented.js +2 -12
  99. package/components/sheet.js +2 -18
  100. package/components/stepper.d.ts +0 -20
  101. package/components/stepper.js +1 -27
  102. package/components/subnavbar.js +0 -4
  103. package/components/swipeout-actions.js +0 -6
  104. package/components/swipeout-button.js +0 -6
  105. package/components/tab.js +2 -15
  106. package/components/tabs.js +0 -4
  107. package/components/text-editor.js +0 -17
  108. package/components/toggle.js +0 -9
  109. package/components/toolbar.d.ts +4 -21
  110. package/components/toolbar.js +12 -34
  111. package/components/treeview-item.d.ts +0 -4
  112. package/components/treeview-item.js +0 -13
  113. package/components/treeview.js +2 -5
  114. package/components/use-icon.js +0 -4
  115. package/components/view.d.ts +0 -28
  116. package/components/view.js +4 -50
  117. package/components/views.js +0 -4
  118. package/framework7-vue-bundle.js +3 -21
  119. package/framework7-vue-web-types.json +1 -94
  120. package/framework7-vue.d.ts +3 -15
  121. package/framework7-vue.js +3 -12
  122. package/package.json +8 -1
  123. package/shared/components-router.js +0 -32
  124. package/shared/f7.js +5 -19
  125. package/shared/get-router-initial-component.js +0 -4
  126. package/shared/mixins.js +3 -15
  127. package/shared/plugin.js +2 -8
  128. package/shared/router-open-in.js +4 -13
  129. package/shared/use-icon.js +1 -6
  130. package/shared/use-smart-select.js +0 -1
  131. package/shared/use-store.js +2 -6
  132. package/shared/use-tab.js +0 -2
  133. package/shared/use-theme.js +0 -2
  134. package/shared/use-tooltip.js +0 -2
  135. package/shared/utils.js +0 -14
  136. package/components/appbar.d.ts +0 -67
  137. package/components/col.d.ts +0 -94
  138. package/components/list-item-cell.d.ts +0 -46
  139. package/components/list-item-row.d.ts +0 -46
  140. package/components/menu-dropdown-item.d.ts +0 -223
  141. package/components/menu-dropdown.d.ts +0 -66
  142. package/components/menu-item.d.ts +0 -267
  143. package/components/menu.d.ts +0 -46
  144. package/components/row.d.ts +0 -73
@@ -1,25 +1,22 @@
1
1
  import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
-
3
2
  function render(_ctx, _cache) {
4
3
  return _openBlock(), _createElementBlock("div", {
5
4
  class: _normalizeClass(_ctx.classes)
6
5
  }, [_renderSlot(_ctx.$slots, "default")], 2);
7
6
  }
8
-
9
7
  import { computed } from 'vue';
10
8
  import { classNames } from '../shared/utils.js';
11
9
  import { colorClasses, colorProps } from '../shared/mixins.js';
12
10
  export default {
13
11
  name: 'f7-accordion-content',
14
12
  render,
15
- props: { ...colorProps
13
+ props: {
14
+ ...colorProps
16
15
  },
17
-
18
16
  setup(props) {
19
17
  const classes = computed(() => classNames('accordion-item-content', colorClasses(props)));
20
18
  return {
21
19
  classes
22
20
  };
23
21
  }
24
-
25
22
  };
@@ -1,12 +1,10 @@
1
1
  import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
-
3
2
  function render(_ctx, _cache) {
4
3
  return _openBlock(), _createElementBlock("div", {
5
4
  ref: "elRef",
6
5
  class: _normalizeClass(_ctx.classes)
7
6
  }, [_renderSlot(_ctx.$slots, "default")], 2);
8
7
  }
9
-
10
8
  import { ref, computed, onBeforeUnmount, onMounted } from 'vue';
11
9
  import { classNames } from '../shared/utils.js';
12
10
  import { colorClasses, colorProps } from '../shared/mixins.js';
@@ -19,43 +17,35 @@ export default {
19
17
  ...colorProps
20
18
  },
21
19
  emits: ['accordion:beforeopen', 'accordion:open', 'accordion:opened', 'accordion:beforeclose', 'accordion:close', 'accordion:closed'],
22
-
23
20
  setup(props, _ref) {
24
21
  let {
25
22
  emit
26
23
  } = _ref;
27
24
  const elRef = ref(null);
28
-
29
25
  const onBeforeOpen = (el, prevent) => {
30
26
  if (elRef.value !== el) return;
31
27
  emit('accordion:beforeopen', prevent);
32
28
  };
33
-
34
29
  const onOpen = el => {
35
30
  if (elRef.value !== el) return;
36
31
  emit('accordion:open');
37
32
  };
38
-
39
33
  const onOpened = el => {
40
34
  if (elRef.value !== el) return;
41
35
  emit('accordion:opened');
42
36
  };
43
-
44
37
  const onBeforeClose = (el, prevent) => {
45
38
  if (elRef.value !== el) return;
46
39
  emit('accordion:beforeclose', prevent);
47
40
  };
48
-
49
41
  const onClose = el => {
50
42
  if (elRef.value !== el) return;
51
43
  emit('accordion:close');
52
44
  };
53
-
54
45
  const onClosed = el => {
55
46
  if (elRef.value !== el) return;
56
47
  emit('accordion:closed');
57
48
  };
58
-
59
49
  const attachEvents = () => {
60
50
  f7ready(() => {
61
51
  f7.on('accordionBeforeOpen', onBeforeOpen);
@@ -66,7 +56,6 @@ export default {
66
56
  f7.on('accordionClosed', onClosed);
67
57
  });
68
58
  };
69
-
70
59
  const detachEvents = () => {
71
60
  f7.off('accordionBeforeOpen', onBeforeOpen);
72
61
  f7.off('accordionOpen', onOpen);
@@ -75,7 +64,6 @@ export default {
75
64
  f7.off('accordionClose', onClose);
76
65
  f7.off('accordionClosed', onClosed);
77
66
  };
78
-
79
67
  onMounted(() => attachEvents());
80
68
  onBeforeUnmount(() => detachEvents());
81
69
  const classes = computed(() => classNames('accordion-item', {
@@ -86,5 +74,4 @@ export default {
86
74
  classes
87
75
  };
88
76
  }
89
-
90
77
  };
@@ -1,25 +1,22 @@
1
1
  import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
-
3
2
  function render(_ctx, _cache) {
4
3
  return _openBlock(), _createElementBlock("div", {
5
4
  class: _normalizeClass(_ctx.classes)
6
5
  }, [_renderSlot(_ctx.$slots, "default")], 2);
7
6
  }
8
-
9
7
  import { computed } from 'vue';
10
8
  import { classNames } from '../shared/utils.js';
11
9
  import { colorClasses, colorProps } from '../shared/mixins.js';
12
10
  export default {
13
11
  name: 'f7-accordion-toggle',
14
12
  render,
15
- props: { ...colorProps
13
+ props: {
14
+ ...colorProps
16
15
  },
17
-
18
16
  setup(props) {
19
17
  const classes = computed(() => classNames('accordion-item-toggle', colorClasses(props)));
20
18
  return {
21
19
  classes
22
20
  };
23
21
  }
24
-
25
22
  };
@@ -1,11 +1,9 @@
1
1
  import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
-
3
2
  function render(_ctx, _cache) {
4
3
  return _openBlock(), _createElementBlock("div", {
5
4
  class: _normalizeClass(_ctx.classes)
6
5
  }, [_renderSlot(_ctx.$slots, "default")], 2);
7
6
  }
8
-
9
7
  import { computed } from 'vue';
10
8
  import { classNames } from '../shared/utils.js';
11
9
  import { colorClasses, colorProps } from '../shared/mixins.js';
@@ -16,12 +14,10 @@ export default {
16
14
  accordionOpposite: Boolean,
17
15
  ...colorProps
18
16
  },
19
-
20
17
  setup(props) {
21
18
  const classes = computed(() => classNames('accordion-list', props.accordionOpposite && 'accordion-opposite', colorClasses(props)));
22
19
  return {
23
20
  classes
24
21
  };
25
22
  }
26
-
27
23
  };
@@ -5,7 +5,7 @@ import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
5
5
  declare const ActionsButton: DefineComponent<
6
6
  {
7
7
 
8
- bold: {
8
+ strong: {
9
9
  type: BooleanConstructor;
10
10
  },
11
11
 
@@ -6,7 +6,6 @@ const _hoisted_1 = {
6
6
  const _hoisted_2 = {
7
7
  class: "actions-button-text"
8
8
  };
9
-
10
9
  function render(_ctx, _cache) {
11
10
  return _openBlock(), _createElementBlock("div", {
12
11
  ref: "elRef",
@@ -16,7 +15,6 @@ function render(_ctx, _cache) {
16
15
  })
17
16
  }, [_ctx.hasMedia ? (_openBlock(), _createElementBlock("div", _hoisted_1, [_renderSlot(_ctx.$slots, "media")])) : _createCommentVNode("", true), _createElementVNode("div", _hoisted_2, [_renderSlot(_ctx.$slots, "default")])], 2);
18
17
  }
19
-
20
18
  import { computed, ref } from 'vue';
21
19
  import { classNames } from '../shared/utils.js';
22
20
  import { colorClasses, colorProps } from '../shared/mixins.js';
@@ -25,7 +23,7 @@ export default {
25
23
  name: 'f7-actions-button',
26
24
  render,
27
25
  props: {
28
- bold: Boolean,
26
+ strong: Boolean,
29
27
  close: {
30
28
  type: Boolean,
31
29
  default: true
@@ -33,26 +31,22 @@ export default {
33
31
  ...colorProps
34
32
  },
35
33
  emits: ['click'],
36
-
37
34
  setup(props, _ref) {
38
35
  let {
39
36
  slots,
40
37
  emit
41
38
  } = _ref;
42
39
  const elRef = ref(null);
43
-
44
40
  const onClick = e => {
45
41
  if (elRef.value && props.close && f7) {
46
42
  f7.actions.close(f7.$(elRef.value).parents('.actions-modal'));
47
43
  }
48
-
49
44
  emit('click', e);
50
45
  };
51
-
52
46
  const hasMedia = computed(() => slots && !!slots.media);
53
47
  const classes = computed(() => classNames({
54
48
  'actions-button': true,
55
- 'actions-button-bold': props.bold
49
+ 'actions-button-strong': props.strong
56
50
  }, colorClasses(props)));
57
51
  return {
58
52
  classes,
@@ -61,5 +55,4 @@ export default {
61
55
  onClick
62
56
  };
63
57
  }
64
-
65
58
  };
@@ -1,25 +1,22 @@
1
1
  import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
-
3
2
  function render(_ctx, _cache) {
4
3
  return _openBlock(), _createElementBlock("div", {
5
4
  class: _normalizeClass(_ctx.classes)
6
5
  }, [_renderSlot(_ctx.$slots, "default")], 2);
7
6
  }
8
-
9
7
  import { computed } from 'vue';
10
8
  import { classNames } from '../shared/utils.js';
11
9
  import { colorClasses, colorProps } from '../shared/mixins.js';
12
10
  export default {
13
11
  name: 'f7-actions-group',
14
12
  render,
15
- props: { ...colorProps
13
+ props: {
14
+ ...colorProps
16
15
  },
17
-
18
16
  setup(props) {
19
17
  const classes = computed(() => classNames('actions-group', colorClasses(props)));
20
18
  return {
21
19
  classes
22
20
  };
23
21
  }
24
-
25
22
  };
@@ -5,7 +5,7 @@ import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
5
5
  declare const ActionsLabel: DefineComponent<
6
6
  {
7
7
 
8
- bold: {
8
+ strong: {
9
9
  type: BooleanConstructor;
10
10
  },
11
11
 
@@ -1,5 +1,4 @@
1
1
  import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
-
3
2
  function render(_ctx, _cache) {
4
3
  return _openBlock(), _createElementBlock("div", {
5
4
  class: _normalizeClass(_ctx.classes),
@@ -8,7 +7,6 @@ function render(_ctx, _cache) {
8
7
  })
9
8
  }, [_renderSlot(_ctx.$slots, "default")], 2);
10
9
  }
11
-
12
10
  import { computed } from 'vue';
13
11
  import { classNames } from '../shared/utils.js';
14
12
  import { colorClasses, colorProps } from '../shared/mixins.js';
@@ -16,27 +14,23 @@ export default {
16
14
  name: 'f7-actions-label',
17
15
  render,
18
16
  props: {
19
- bold: Boolean,
17
+ strong: Boolean,
20
18
  ...colorProps
21
19
  },
22
20
  emits: ['click'],
23
-
24
21
  setup(props, _ref) {
25
22
  let {
26
23
  emit
27
24
  } = _ref;
28
-
29
25
  const onClick = e => {
30
26
  emit('click', e);
31
27
  };
32
-
33
28
  const classes = computed(() => classNames('actions-label', {
34
- 'actions-button-bold': props.bold
29
+ 'actions-button-strong': props.strong
35
30
  }, colorClasses(props)));
36
31
  return {
37
32
  classes,
38
33
  onClick
39
34
  };
40
35
  }
41
-
42
36
  };
@@ -1,12 +1,10 @@
1
1
  import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
-
3
2
  function render(_ctx, _cache) {
4
3
  return _openBlock(), _createElementBlock("div", {
5
4
  ref: "elRef",
6
5
  class: _normalizeClass(_ctx.classes)
7
6
  }, [_renderSlot(_ctx.$slots, "default")], 2);
8
7
  }
9
-
10
8
  import { computed, ref, watch, onMounted, onBeforeUnmount } from 'vue';
11
9
  import { classNames } from '../shared/utils.js';
12
10
  import { colorClasses, colorProps } from '../shared/mixins.js';
@@ -62,44 +60,37 @@ export default {
62
60
  ...colorProps
63
61
  },
64
62
  emits: ['actions:open', 'actions:opened', 'actions:close', 'actions:closed', 'update:opened'],
65
-
66
63
  setup(props, _ref) {
67
64
  let {
68
65
  emit
69
66
  } = _ref;
70
67
  // eslint-disable-next-line
71
- let f7Actions = null; // eslint-disable-next-line
72
-
68
+ let f7Actions = null;
69
+ // eslint-disable-next-line
73
70
  let isOpened = props.opened;
74
71
  let isClosing = false;
75
72
  const elRef = ref(null);
76
-
77
73
  const onOpen = instance => {
78
74
  isOpened = true;
79
75
  isClosing = false;
80
76
  emit('actions:open', instance);
81
77
  emit('update:opened', true);
82
78
  };
83
-
84
79
  const onOpened = instance => {
85
80
  emit('actions:opened', instance);
86
81
  };
87
-
88
82
  const onClose = instance => {
89
83
  isOpened = false;
90
84
  isClosing = true;
91
85
  emit('actions:close', instance);
92
86
  };
93
-
94
87
  const onClosed = instance => {
95
88
  isClosing = false;
96
89
  emit('actions:closed', instance);
97
90
  emit('update:opened', false);
98
91
  };
99
-
100
92
  watch(() => props.opened, value => {
101
93
  if (!f7Actions) return;
102
-
103
94
  if (value) {
104
95
  f7Actions.open();
105
96
  } else {
@@ -141,7 +132,6 @@ export default {
141
132
  if (typeof containerEl !== 'undefined') params.containerEl = containerEl;
142
133
  f7ready(() => {
143
134
  f7Actions = f7.popup.create(params);
144
-
145
135
  if (props.opened) {
146
136
  f7Actions.open(false);
147
137
  }
@@ -151,7 +141,6 @@ export default {
151
141
  if (f7Actions) {
152
142
  f7Actions.destroy();
153
143
  }
154
-
155
144
  f7Actions = null;
156
145
  });
157
146
  const classes = computed(() => classNames('actions-modal', {
@@ -165,5 +154,4 @@ export default {
165
154
  classes
166
155
  };
167
156
  }
168
-
169
157
  };
@@ -39,9 +39,14 @@ declare const App: DefineComponent<
39
39
  default: () => [];
40
40
  },
41
41
 
42
- autoDarkMode: {
42
+ darkMode: {
43
+ type: BooleanConstructor | StringConstructor | any;
44
+ default: boolean;
45
+ },
46
+
47
+ colors: {
43
48
  type: any;
44
- default: undefined;
49
+ default: () => undefined;
45
50
  },
46
51
 
47
52
  lazyModulesPath: {
@@ -124,11 +129,6 @@ declare const App: DefineComponent<
124
129
  default: () => undefined;
125
130
  },
126
131
 
127
- grid: {
128
- type: any;
129
- default: () => undefined;
130
- },
131
-
132
132
  infiniteScroll: {
133
133
  type: any;
134
134
  default: () => undefined;
@@ -139,11 +139,6 @@ declare const App: DefineComponent<
139
139
  default: () => undefined;
140
140
  },
141
141
 
142
- lazy: {
143
- type: any;
144
- default: () => undefined;
145
- },
146
-
147
142
  listIndex: {
148
143
  type: any;
149
144
  default: () => undefined;
package/components/app.js CHANGED
@@ -1,15 +1,12 @@
1
1
  import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, createVNode as _createVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
-
3
2
  function render(_ctx, _cache) {
4
3
  const _component_routable_modals = _resolveComponent("routable-modals");
5
-
6
4
  return _openBlock(), _createElementBlock("div", {
7
5
  id: "framework7-root",
8
6
  ref: "elRef",
9
7
  class: _normalizeClass(_ctx.classes)
10
8
  }, [_renderSlot(_ctx.$slots, "default"), _createVNode(_component_routable_modals)], 2);
11
9
  }
12
-
13
10
  import { ref, onMounted, computed, toRaw } from 'vue';
14
11
  import { classNames, noUndefinedProps } from '../shared/utils.js';
15
12
  import { colorClasses, colorProps } from '../shared/mixins.js';
@@ -48,9 +45,13 @@ export default {
48
45
  default: () => []
49
46
  },
50
47
  store: Object,
51
- autoDarkMode: {
52
- type: Boolean,
53
- default: undefined
48
+ darkMode: {
49
+ type: [Boolean, String],
50
+ default: false
51
+ },
52
+ colors: {
53
+ type: Object,
54
+ default: () => undefined
54
55
  },
55
56
  lazyModulesPath: {
56
57
  type: String,
@@ -117,10 +118,6 @@ export default {
117
118
  type: Object,
118
119
  default: () => undefined
119
120
  },
120
- grid: {
121
- type: Object,
122
- default: () => undefined
123
- },
124
121
  infiniteScroll: {
125
122
  type: Object,
126
123
  default: () => undefined
@@ -129,10 +126,6 @@ export default {
129
126
  type: Object,
130
127
  default: () => undefined
131
128
  },
132
- lazy: {
133
- type: Object,
134
- default: () => undefined
135
- },
136
129
  listIndex: {
137
130
  type: Object,
138
131
  default: () => undefined
@@ -252,33 +245,28 @@ export default {
252
245
  },
253
246
  ...colorProps
254
247
  },
255
-
256
248
  setup(props) {
257
249
  const elRef = ref(null);
258
250
  const routes = toRaw(props.routes);
259
-
260
251
  if (!f7 || typeof window === 'undefined') {
261
- f7init(elRef.value, noUndefinedProps({ ...props,
252
+ f7init(elRef.value, noUndefinedProps({
253
+ ...props,
262
254
  routes
263
255
  }), false);
264
256
  }
265
-
266
257
  onMounted(() => {
267
258
  const parentEl = elRef.value && elRef.value.parentNode;
268
259
  /* eslint-disable no-restricted-globals */
269
-
270
260
  if (typeof document !== 'undefined' && parentEl && parentEl !== document.body && parentEl.parentNode === document.body) {
271
261
  parentEl.style.height = '100%';
272
262
  }
273
263
  /* eslint-enable no-restricted-globals */
274
-
275
-
276
264
  if (f7) {
277
265
  f7.init(elRef.value);
278
266
  return;
279
267
  }
280
-
281
- f7init(elRef.value, noUndefinedProps({ ...props,
268
+ f7init(elRef.value, noUndefinedProps({
269
+ ...props,
282
270
  routes
283
271
  }), true);
284
272
  });
@@ -288,5 +276,4 @@ export default {
288
276
  elRef
289
277
  };
290
278
  }
291
-
292
279
  };
@@ -1,14 +1,13 @@
1
1
  import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode } from "vue";
2
-
3
2
  function render(_ctx, _cache) {
4
3
  return _openBlock(), _createElementBlock("div", {
5
4
  class: _normalizeClass(_ctx.classes)
6
5
  }, [_renderSlot(_ctx.$slots, "before-inner"), _ctx.inner ? (_openBlock(), _createElementBlock("div", {
7
6
  key: 0,
8
7
  class: _normalizeClass(_ctx.innerClasses)
9
- }, [_renderSlot(_ctx.$slots, "default")], 2)) : _renderSlot(_ctx.$slots, "default", {
8
+ }, [_renderSlot(_ctx.$slots, "default")], 2 /* CLASS */)) : _renderSlot(_ctx.$slots, "default", {
10
9
  key: 1
11
- }), _renderSlot(_ctx.$slots, "after-inner")], 2);
10
+ }), _renderSlot(_ctx.$slots, "after-inner")], 2 /* CLASS */);
12
11
  }
13
12
 
14
13
  import { computed } from 'vue';
@@ -28,7 +27,6 @@ export default {
28
27
  innerClassName: String,
29
28
  ...colorProps
30
29
  },
31
-
32
30
  setup(props) {
33
31
  const classes = computed(() => classNames('appbar', {
34
32
  'no-shadow': props.noShadow,
@@ -40,5 +38,4 @@ export default {
40
38
  innerClasses
41
39
  };
42
40
  }
43
-
44
41
  };