framework7-vue 7.0.0-beta.2 → 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 (129) hide show
  1. package/components/accordion-content.js +5 -5
  2. package/components/accordion-item.js +10 -9
  3. package/components/accordion-toggle.js +5 -5
  4. package/components/accordion.js +5 -5
  5. package/components/actions-button.js +15 -12
  6. package/components/actions-group.js +5 -5
  7. package/components/actions-label.js +13 -9
  8. package/components/actions.js +11 -10
  9. package/components/app.d.ts +1 -1
  10. package/components/app.js +8 -8
  11. package/components/appbar.js +7 -7
  12. package/components/area-chart.js +50 -43
  13. package/components/badge.js +6 -6
  14. package/components/block-footer.js +5 -5
  15. package/components/block-header.js +5 -5
  16. package/components/block-title.js +7 -6
  17. package/components/block.js +10 -9
  18. package/components/breadcrumbs-collapsed.d.ts +19 -0
  19. package/components/breadcrumbs-collapsed.js +26 -0
  20. package/components/breadcrumbs-item.d.ts +22 -0
  21. package/components/breadcrumbs-item.js +28 -0
  22. package/components/breadcrumbs-separator.d.ts +19 -0
  23. package/components/breadcrumbs-separator.js +24 -0
  24. package/components/breadcrumbs.d.ts +19 -0
  25. package/components/breadcrumbs.js +24 -0
  26. package/components/button.js +12 -12
  27. package/components/card-content.js +5 -5
  28. package/components/card-footer.js +5 -5
  29. package/components/card-header.js +5 -5
  30. package/components/card.js +16 -14
  31. package/components/checkbox.js +16 -12
  32. package/components/chip.js +19 -16
  33. package/components/col.js +10 -9
  34. package/components/fab-backdrop.js +5 -5
  35. package/components/fab-button.js +16 -12
  36. package/components/fab-buttons.js +5 -5
  37. package/components/fab.js +8 -7
  38. package/components/gauge.js +16 -9
  39. package/components/icon.js +9 -9
  40. package/components/input.js +31 -14
  41. package/components/link.js +16 -15
  42. package/components/list-button.js +13 -10
  43. package/components/list-group.js +7 -6
  44. package/components/list-index.js +10 -9
  45. package/components/list-input.js +29 -12
  46. package/components/list-item-cell.js +5 -5
  47. package/components/list-item-row.js +5 -5
  48. package/components/list-item.js +25 -23
  49. package/components/list.d.ts +2 -2
  50. package/components/list.js +17 -9
  51. package/components/login-screen-title.js +5 -5
  52. package/components/login-screen.js +11 -10
  53. package/components/menu-dropdown-item.js +12 -9
  54. package/components/menu-dropdown.js +8 -8
  55. package/components/menu-item.js +14 -13
  56. package/components/menu.js +6 -6
  57. package/components/message.js +49 -31
  58. package/components/messagebar-attachment.js +19 -12
  59. package/components/messagebar-attachments.js +5 -5
  60. package/components/messagebar-sheet-image.js +18 -13
  61. package/components/messagebar-sheet-item.js +5 -5
  62. package/components/messagebar-sheet.js +5 -5
  63. package/components/messagebar.js +10 -9
  64. package/components/messages-title.js +5 -5
  65. package/components/messages.js +10 -9
  66. package/components/nav-left.js +13 -11
  67. package/components/nav-right.js +5 -5
  68. package/components/nav-title-large.js +6 -6
  69. package/components/nav-title.js +6 -6
  70. package/components/navbar.js +19 -18
  71. package/components/page-content.js +19 -17
  72. package/components/page.js +9 -8
  73. package/components/panel.js +16 -11
  74. package/components/photo-browser.js +6 -5
  75. package/components/pie-chart.js +27 -23
  76. package/components/popover.js +13 -12
  77. package/components/popup.js +11 -10
  78. package/components/preloader.js +18 -15
  79. package/components/progressbar.js +10 -9
  80. package/components/radio.js +16 -12
  81. package/components/range.js +13 -11
  82. package/components/routable-modals.js +1 -1
  83. package/components/row.js +10 -9
  84. package/components/searchbar.js +32 -18
  85. package/components/segmented.js +5 -5
  86. package/components/sheet.js +15 -8
  87. package/components/skeleton-avatar.d.ts +1 -0
  88. package/components/skeleton-avatar.js +1 -0
  89. package/components/skeleton-block.d.ts +1 -0
  90. package/components/skeleton-block.js +1 -0
  91. package/components/skeleton-image.d.ts +1 -0
  92. package/components/skeleton-image.js +1 -0
  93. package/components/skeleton-text.d.ts +1 -0
  94. package/components/skeleton-text.js +1 -0
  95. package/components/stepper.js +27 -17
  96. package/components/subnavbar.js +6 -6
  97. package/components/swipeout-actions.js +5 -5
  98. package/components/swipeout-button.js +15 -10
  99. package/components/tab.js +11 -10
  100. package/components/tabs.js +9 -9
  101. package/components/text-editor.js +13 -12
  102. package/components/toggle.js +18 -14
  103. package/components/toolbar.js +12 -11
  104. package/components/treeview-item.js +16 -15
  105. package/components/treeview.js +5 -5
  106. package/components/use-icon.js +6 -6
  107. package/components/view.d.ts +5 -0
  108. package/components/view.js +16 -10
  109. package/components/views.js +5 -5
  110. package/framework7-vue-bundle.js +111 -103
  111. package/framework7-vue-web-types.json +16682 -0
  112. package/framework7-vue.d.ts +5 -1
  113. package/framework7-vue.js +107 -103
  114. package/package.json +3 -1
  115. package/shared/components-router.js +30 -22
  116. package/shared/f7.js +10 -2
  117. package/shared/get-router-initial-component.js +1 -1
  118. package/shared/mixins.js +4 -4
  119. package/shared/modal-state-classes.js +5 -4
  120. package/shared/plugin.js +7 -3
  121. package/shared/router-open-in.js +114 -0
  122. package/shared/use-icon.js +5 -1
  123. package/shared/use-route-props.js +4 -3
  124. package/shared/use-smart-select.js +2 -2
  125. package/shared/use-store.js +6 -6
  126. package/shared/use-tab.js +1 -1
  127. package/shared/use-theme.js +1 -1
  128. package/shared/use-tooltip.js +1 -1
  129. package/shared/utils.js +16 -3
@@ -1,13 +1,14 @@
1
- import { createVNode as _createVNode, renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock } from "vue";
1
+ import { createElementVNode as _createElementVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
+ const _hoisted_1 = ["name", "value", "disabled", "readonly", "checked"];
2
3
 
3
- const _hoisted_1 = /*#__PURE__*/_createVNode("i", {
4
+ const _hoisted_2 = /*#__PURE__*/_createElementVNode("i", {
4
5
  class: "icon-radio"
5
6
  }, null, -1);
6
7
 
7
8
  function render(_ctx, _cache) {
8
- return _openBlock(), _createBlock("label", {
9
- class: _ctx.classes
10
- }, [_createVNode("input", {
9
+ return _openBlock(), _createElementBlock("label", {
10
+ class: _normalizeClass(_ctx.classes)
11
+ }, [_createElementVNode("input", {
11
12
  ref: "inputElRef",
12
13
  type: "radio",
13
14
  name: _ctx.name,
@@ -15,13 +16,15 @@ function render(_ctx, _cache) {
15
16
  disabled: _ctx.disabled,
16
17
  readonly: _ctx.readonly,
17
18
  checked: _ctx.checked,
18
- onChange: _cache[1] || (_cache[1] = (...args) => _ctx.onChange && _ctx.onChange(...args))
19
- }, null, 40, ["name", "value", "disabled", "readonly", "checked"]), _hoisted_1, _renderSlot(_ctx.$slots, "default")], 2);
19
+ onChange: _cache[0] || (_cache[0] = function () {
20
+ return _ctx.onChange && _ctx.onChange(...arguments);
21
+ })
22
+ }, null, 40, _hoisted_1), _hoisted_2, _renderSlot(_ctx.$slots, "default")], 2);
20
23
  }
21
24
 
22
25
  import { ref, computed } from 'vue';
23
- import { classNames } from '../shared/utils';
24
- import { colorClasses, colorProps } from '../shared/mixins';
26
+ import { classNames } from '../shared/utils.js';
27
+ import { colorClasses, colorProps } from '../shared/mixins.js';
25
28
  export default {
26
29
  name: 'f7-radio',
27
30
  render,
@@ -38,9 +41,10 @@ export default {
38
41
  },
39
42
  emits: ['update:checked', 'change'],
40
43
 
41
- setup(props, {
42
- emit
43
- }) {
44
+ setup(props, _ref) {
45
+ let {
46
+ emit
47
+ } = _ref;
44
48
  const inputElRef = ref(null);
45
49
 
46
50
  const onChange = event => {
@@ -1,21 +1,22 @@
1
- import { openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot } from "vue";
1
+ import { openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass } from "vue";
2
+ const _hoisted_1 = ["name"];
2
3
 
3
4
  function render(_ctx, _cache) {
4
- return _openBlock(), _createBlock("div", {
5
+ return _openBlock(), _createElementBlock("div", {
5
6
  ref: "elRef",
6
- class: _ctx.classes
7
- }, [_ctx.input ? (_openBlock(), _createBlock("input", {
7
+ class: _normalizeClass(_ctx.classes)
8
+ }, [_ctx.input ? (_openBlock(), _createElementBlock("input", {
8
9
  key: 0,
9
10
  id: "inputId",
10
11
  type: "range",
11
12
  name: _ctx.name
12
- }, null, 8, ["name"])) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "default")], 2);
13
+ }, null, 8, _hoisted_1)) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "default")], 2);
13
14
  }
14
15
 
15
16
  import { computed, ref, onMounted, onBeforeUnmount, watch } from 'vue';
16
- import { classNames, noUndefinedProps } from '../shared/utils';
17
- import { colorClasses, colorProps } from '../shared/mixins';
18
- import { f7ready, f7 } from '../shared/f7';
17
+ import { classNames, noUndefinedProps } from '../shared/utils.js';
18
+ import { colorClasses, colorProps } from '../shared/mixins.js';
19
+ import { f7ready, f7 } from '../shared/f7.js';
19
20
  export default {
20
21
  name: 'f7-range',
21
22
  render,
@@ -86,9 +87,10 @@ export default {
86
87
  },
87
88
  emits: ['range:change', 'range:changed', 'rangeChange', 'rangeChanged', 'update:value'],
88
89
 
89
- setup(props, {
90
- emit
91
- }) {
90
+ setup(props, _ref) {
91
+ let {
92
+ emit
93
+ } = _ref;
92
94
  let f7Range = null;
93
95
  const elRef = ref(null);
94
96
  watch(() => props.value, newValue => {
@@ -1,5 +1,5 @@
1
1
  import { ref, onMounted, onBeforeUnmount, onUpdated, toRaw, h } from 'vue';
2
- import { f7events, f7routers, f7 } from '../shared/f7';
2
+ import { f7events, f7routers, f7 } from '../shared/f7.js';
3
3
  export default {
4
4
  name: 'f7-routable-modals',
5
5
 
package/components/row.js CHANGED
@@ -1,4 +1,4 @@
1
- import { renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx } from "vue";
1
+ import { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveDynamicComponent as _resolveDynamicComponent, normalizeClass as _normalizeClass, withCtx as _withCtx, createBlock as _createBlock } from "vue";
2
2
  const _hoisted_1 = {
3
3
  key: 0,
4
4
  class: "resize-handler"
@@ -7,17 +7,17 @@ const _hoisted_1 = {
7
7
  function render(_ctx, _cache) {
8
8
  return _openBlock(), _createBlock(_resolveDynamicComponent(_ctx.tag), {
9
9
  ref: "elRef",
10
- class: _ctx.classes
10
+ class: _normalizeClass(_ctx.classes)
11
11
  }, {
12
- default: _withCtx(() => [_renderSlot(_ctx.$slots, "default"), _ctx.resizable && _ctx.resizableHandler ? (_openBlock(), _createBlock("span", _hoisted_1)) : _createCommentVNode("", true)]),
12
+ default: _withCtx(() => [_renderSlot(_ctx.$slots, "default"), _ctx.resizable && _ctx.resizableHandler ? (_openBlock(), _createElementBlock("span", _hoisted_1)) : _createCommentVNode("", true)]),
13
13
  _: 3
14
14
  }, 8, ["class"]);
15
15
  }
16
16
 
17
17
  import { ref, computed, onBeforeUnmount, onMounted } from 'vue';
18
- import { classNames } from '../shared/utils';
19
- import { colorClasses, colorProps } from '../shared/mixins';
20
- import { f7ready, f7 } from '../shared/f7';
18
+ import { classNames } from '../shared/utils.js';
19
+ import { colorClasses, colorProps } from '../shared/mixins.js';
20
+ import { f7ready, f7 } from '../shared/f7.js';
21
21
  export default {
22
22
  name: 'f7-row',
23
23
  render,
@@ -38,9 +38,10 @@ export default {
38
38
  },
39
39
  emits: ['grid:resize'],
40
40
 
41
- setup(props, {
42
- emit
43
- }) {
41
+ setup(props, _ref) {
42
+ let {
43
+ emit
44
+ } = _ref;
44
45
  const elRef = ref(null);
45
46
 
46
47
  const onResize = el => {
@@ -1,47 +1,60 @@
1
- import { renderSlot as _renderSlot, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx } from "vue";
1
+ import { renderSlot as _renderSlot, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, resolveDynamicComponent as _resolveDynamicComponent, normalizeClass as _normalizeClass, withCtx as _withCtx, createBlock as _createBlock } from "vue";
2
2
  const _hoisted_1 = {
3
3
  class: "searchbar-inner"
4
4
  };
5
5
  const _hoisted_2 = {
6
6
  class: "searchbar-input-wrap"
7
7
  };
8
+ const _hoisted_3 = ["value", "placeholder", "spellcheck"];
8
9
 
9
- const _hoisted_3 = /*#__PURE__*/_createVNode("i", {
10
+ const _hoisted_4 = /*#__PURE__*/_createElementVNode("i", {
10
11
  class: "searchbar-icon"
11
12
  }, null, -1);
12
13
 
13
14
  function render(_ctx, _cache) {
14
15
  return _openBlock(), _createBlock(_resolveDynamicComponent(_ctx.tag), {
15
16
  ref: "elRef",
16
- class: _ctx.classes,
17
+ class: _normalizeClass(_ctx.classes),
17
18
  onSubmit: _ctx.onSubmit
18
19
  }, {
19
- default: _withCtx(() => [_renderSlot(_ctx.$slots, "before-inner"), _createVNode("div", _hoisted_1, [_renderSlot(_ctx.$slots, "inner-start"), _createVNode("div", _hoisted_2, [_renderSlot(_ctx.$slots, "input-wrap-start"), _createVNode("input", {
20
+ default: _withCtx(() => [_renderSlot(_ctx.$slots, "before-inner"), _createElementVNode("div", _hoisted_1, [_renderSlot(_ctx.$slots, "inner-start"), _createElementVNode("div", _hoisted_2, [_renderSlot(_ctx.$slots, "input-wrap-start"), _createElementVNode("input", {
20
21
  value: _ctx.value,
21
22
  placeholder: _ctx.placeholder,
22
23
  spellcheck: _ctx.spellcheck,
23
24
  type: "search",
24
- onInput: _cache[1] || (_cache[1] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
25
- onChange: _cache[2] || (_cache[2] = (...args) => _ctx.onChange && _ctx.onChange(...args)),
26
- onFocus: _cache[3] || (_cache[3] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
27
- onBlur: _cache[4] || (_cache[4] = (...args) => _ctx.onBlur && _ctx.onBlur(...args))
28
- }, null, 40, ["value", "placeholder", "spellcheck"]), _hoisted_3, _ctx.clearButton ? (_openBlock(), _createBlock("span", {
25
+ onInput: _cache[0] || (_cache[0] = function () {
26
+ return _ctx.onInput && _ctx.onInput(...arguments);
27
+ }),
28
+ onChange: _cache[1] || (_cache[1] = function () {
29
+ return _ctx.onChange && _ctx.onChange(...arguments);
30
+ }),
31
+ onFocus: _cache[2] || (_cache[2] = function () {
32
+ return _ctx.onFocus && _ctx.onFocus(...arguments);
33
+ }),
34
+ onBlur: _cache[3] || (_cache[3] = function () {
35
+ return _ctx.onBlur && _ctx.onBlur(...arguments);
36
+ })
37
+ }, null, 40, _hoisted_3), _hoisted_4, _ctx.clearButton ? (_openBlock(), _createElementBlock("span", {
29
38
  key: 0,
30
39
  class: "input-clear-button",
31
- onClick: _cache[5] || (_cache[5] = (...args) => _ctx.onClearButtonClick && _ctx.onClearButtonClick(...args))
32
- })) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "input-wrap-end")]), _ctx.disableButton ? (_openBlock(), _createBlock("span", {
40
+ onClick: _cache[4] || (_cache[4] = function () {
41
+ return _ctx.onClearButtonClick && _ctx.onClearButtonClick(...arguments);
42
+ })
43
+ })) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "input-wrap-end")]), _ctx.disableButton ? (_openBlock(), _createElementBlock("span", {
33
44
  key: 0,
34
45
  class: "searchbar-disable-button",
35
- onClick: _cache[6] || (_cache[6] = (...args) => _ctx.onDisableButtonClick && _ctx.onDisableButtonClick(...args))
46
+ onClick: _cache[5] || (_cache[5] = function () {
47
+ return _ctx.onDisableButtonClick && _ctx.onDisableButtonClick(...arguments);
48
+ })
36
49
  }, _toDisplayString(_ctx.disableButtonText), 1)) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "inner-end"), _renderSlot(_ctx.$slots, "default")]), _renderSlot(_ctx.$slots, "after-inner")]),
37
50
  _: 3
38
51
  }, 8, ["class", "onSubmit"]);
39
52
  }
40
53
 
41
54
  import { computed, ref, onMounted, onBeforeUnmount } from 'vue';
42
- import { classNames, noUndefinedProps } from '../shared/utils';
43
- import { colorClasses, colorProps } from '../shared/mixins';
44
- import { f7ready, f7 } from '../shared/f7';
55
+ import { classNames, noUndefinedProps } from '../shared/utils.js';
56
+ import { colorClasses, colorProps } from '../shared/mixins.js';
57
+ import { f7ready, f7 } from '../shared/f7.js';
45
58
  export default {
46
59
  name: 'f7-searchbar',
47
60
  render,
@@ -147,9 +160,10 @@ export default {
147
160
  },
148
161
  emits: ['change', 'input', 'focus', 'blur', 'submit', 'click:clear', 'click:disable', 'searchbar:search', 'searchbar:clear', 'searchbar:enable', 'searchbar:disable', 'update:value'],
149
162
 
150
- setup(props, {
151
- emit
152
- }) {
163
+ setup(props, _ref) {
164
+ let {
165
+ emit
166
+ } = _ref;
153
167
  let f7Searchbar = null;
154
168
  const elRef = ref(null);
155
169
 
@@ -1,4 +1,4 @@
1
- import { renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx } from "vue";
1
+ import { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveDynamicComponent as _resolveDynamicComponent, normalizeClass as _normalizeClass, withCtx as _withCtx, createBlock as _createBlock } from "vue";
2
2
  const _hoisted_1 = {
3
3
  key: 0,
4
4
  class: "segmented-highlight"
@@ -6,16 +6,16 @@ const _hoisted_1 = {
6
6
 
7
7
  function render(_ctx, _cache) {
8
8
  return _openBlock(), _createBlock(_resolveDynamicComponent(_ctx.tag), {
9
- class: _ctx.classes
9
+ class: _normalizeClass(_ctx.classes)
10
10
  }, {
11
- default: _withCtx(() => [_renderSlot(_ctx.$slots, "default"), _ctx.strong || _ctx.strongIos || _ctx.strongMd || _ctx.strongAurora ? (_openBlock(), _createBlock("span", _hoisted_1)) : _createCommentVNode("", true)]),
11
+ default: _withCtx(() => [_renderSlot(_ctx.$slots, "default"), _ctx.strong || _ctx.strongIos || _ctx.strongMd || _ctx.strongAurora ? (_openBlock(), _createElementBlock("span", _hoisted_1)) : _createCommentVNode("", true)]),
12
12
  _: 3
13
13
  }, 8, ["class"]);
14
14
  }
15
15
 
16
16
  import { computed } from 'vue';
17
- import { classNames } from '../shared/utils';
18
- import { colorClasses, colorProps } from '../shared/mixins';
17
+ import { classNames } from '../shared/utils.js';
18
+ import { colorClasses, colorProps } from '../shared/mixins.js';
19
19
  export default {
20
20
  name: 'f7-segmented',
21
21
  render,
@@ -1,8 +1,8 @@
1
1
  import { h, computed, ref, watch, onMounted, onBeforeUnmount } from 'vue';
2
- import { classNames } from '../shared/utils';
3
- import { colorClasses, colorProps } from '../shared/mixins';
4
- import { f7ready, f7 } from '../shared/f7';
5
- import { modalStateClasses } from '../shared/modal-state-classes';
2
+ import { classNames } from '../shared/utils.js';
3
+ import { colorClasses, colorProps } from '../shared/mixins.js';
4
+ import { f7ready, f7 } from '../shared/f7.js';
5
+ import { modalStateClasses } from '../shared/modal-state-classes.js';
6
6
  export default {
7
7
  name: 'f7-sheet',
8
8
  props: {
@@ -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;
@@ -160,6 +161,12 @@ export default {
160
161
  f7Sheet.close();
161
162
  }
162
163
  });
164
+ ['closeByBackdropClick', 'closeByOutsideClick', 'closeOnEscape', 'swipeToClose'].forEach(propName => {
165
+ watch(() => props[propName], propValue => {
166
+ if (!f7Sheet) return;
167
+ f7Sheet.params[propName] = propValue;
168
+ });
169
+ });
163
170
  const classes = computed(() => {
164
171
  let positionComputed = 'bottom';
165
172
  if (props.position) positionComputed = props.position;else if (props.top) positionComputed = 'top';else if (props.bottom) positionComputed = 'bottom';
@@ -1,4 +1,5 @@
1
1
 
2
+ // eslint-disable-next-line
2
3
  import { SkeletonAvatar } from 'skeleton-elements/vue';
3
4
 
4
5
  export default SkeletonAvatar;
@@ -1,2 +1,3 @@
1
+ // eslint-disable-next-line
1
2
  import { SkeletonAvatar } from 'skeleton-elements/vue';
2
3
  export default SkeletonAvatar;
@@ -1,4 +1,5 @@
1
1
 
2
+ // eslint-disable-next-line
2
3
  import { SkeletonBlock } from 'skeleton-elements/vue';
3
4
 
4
5
  export default SkeletonBlock;
@@ -1,2 +1,3 @@
1
+ // eslint-disable-next-line
1
2
  import { SkeletonBlock } from 'skeleton-elements/vue';
2
3
  export default SkeletonBlock;
@@ -1,4 +1,5 @@
1
1
 
2
+ // eslint-disable-next-line
2
3
  import { SkeletonImage } from 'skeleton-elements/vue';
3
4
 
4
5
  export default SkeletonImage;
@@ -1,2 +1,3 @@
1
+ // eslint-disable-next-line
1
2
  import { SkeletonImage } from 'skeleton-elements/vue';
2
3
  export default SkeletonImage;
@@ -1,4 +1,5 @@
1
1
 
2
+ // eslint-disable-next-line
2
3
  import { SkeletonText } from 'skeleton-elements/vue';
3
4
 
4
5
  export default SkeletonText;
@@ -1,2 +1,3 @@
1
+ // eslint-disable-next-line
1
2
  import { SkeletonText } from 'skeleton-elements/vue';
2
3
  export default SkeletonText;
@@ -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,18 +27,24 @@ 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
 
35
44
  import { computed, ref, watch, onMounted, onBeforeUnmount } from 'vue';
36
- import { classNames, noUndefinedProps } from '../shared/utils';
37
- import { colorClasses, colorProps } from '../shared/mixins';
38
- import { f7ready, f7 } from '../shared/f7';
45
+ import { classNames, noUndefinedProps } from '../shared/utils.js';
46
+ import { colorClasses, colorProps } from '../shared/mixins.js';
47
+ import { f7ready, f7 } from '../shared/f7.js';
39
48
  export default {
40
49
  name: 'f7-stepper',
41
50
  render,
@@ -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,16 +9,16 @@ 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
  }
18
18
 
19
19
  import { computed } from 'vue';
20
- import { classNames } from '../shared/utils';
21
- import { colorClasses, colorProps } from '../shared/mixins';
20
+ import { classNames } from '../shared/utils.js';
21
+ import { colorClasses, colorProps } from '../shared/mixins.js';
22
22
  export default {
23
23
  name: 'f7-subnavbar',
24
24
  render,
@@ -1,14 +1,14 @@
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
 
9
9
  import { computed } from 'vue';
10
- import { classNames } from '../shared/utils';
11
- import { colorClasses, colorProps } from '../shared/mixins';
10
+ import { classNames } from '../shared/utils.js';
11
+ import { colorClasses, colorProps } from '../shared/mixins.js';
12
12
  export default {
13
13
  name: 'f7-swipeout-actions',
14
14
  render,
@@ -1,18 +1,21 @@
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';
14
- import { classNames } from '../shared/utils';
15
- import { colorClasses, colorProps } from '../shared/mixins';
17
+ import { classNames } from '../shared/utils.js';
18
+ import { colorClasses, colorProps } from '../shared/mixins.js';
16
19
  export default {
17
20
  name: 'f7-swipeout-button',
18
21
  render,
@@ -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
@@ -13,10 +13,10 @@ function render(_ctx, _cache) {
13
13
  }
14
14
 
15
15
  import { computed, ref, inject, onMounted, onBeforeUnmount, onUpdated, toRaw } from 'vue';
16
- import { classNames, getComponentId } from '../shared/utils';
17
- import { colorClasses, colorProps } from '../shared/mixins';
18
- import { f7ready, f7routers, f7, f7events } from '../shared/f7';
19
- import { useTab } from '../shared/use-tab';
16
+ import { classNames, getComponentId } from '../shared/utils.js';
17
+ import { colorClasses, colorProps } from '../shared/mixins.js';
18
+ import { f7ready, f7routers, f7, f7events } from '../shared/f7.js';
19
+ import { useTab } from '../shared/use-tab.js';
20
20
  export default {
21
21
  name: 'f7-tab',
22
22
  render,
@@ -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,22 +1,22 @@
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
 
17
17
  import { computed, ref, onMounted } from 'vue';
18
- import { classNames } from '../shared/utils';
19
- import { colorClasses, colorProps } from '../shared/mixins';
18
+ import { classNames } from '../shared/utils.js';
19
+ import { colorClasses, colorProps } from '../shared/mixins.js';
20
20
  export default {
21
21
  name: 'f7-tabs',
22
22
  render,