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,22 +1,29 @@
1
- import { openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString } from "vue";
1
+ import { openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString } from "vue";
2
2
  const _hoisted_1 = {
3
3
  class: "gauge"
4
4
  };
5
+ const _hoisted_2 = ["width", "height", "viewBox"];
6
+ const _hoisted_3 = ["d", "stroke", "stroke-width", "fill"];
7
+ const _hoisted_4 = ["d", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "fill"];
8
+ const _hoisted_5 = ["stroke", "stroke-width", "fill", "cx", "cy", "r"];
9
+ const _hoisted_6 = ["transform", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "fill", "cx", "cy", "r"];
10
+ const _hoisted_7 = ["y", "font-weight", "font-size", "fill", "dy", "dominant-baseline"];
11
+ const _hoisted_8 = ["y", "font-weight", "font-size", "fill", "dy", "dominant-baseline"];
5
12
 
6
13
  function render(_ctx, _cache) {
7
- return _openBlock(), _createBlock("div", _hoisted_1, [(_openBlock(), _createBlock("svg", {
14
+ return _openBlock(), _createElementBlock("div", _hoisted_1, [(_openBlock(), _createElementBlock("svg", {
8
15
  class: "gauge-svg",
9
16
  width: `${_ctx.size}px`,
10
17
  height: `${_ctx.semiCircle ? _ctx.size / 2 : _ctx.size}px`,
11
18
  viewBox: `0 0 ${_ctx.size} ${_ctx.semiCircle ? _ctx.size / 2 : _ctx.size}`
12
- }, [_ctx.semiCircle ? (_openBlock(), _createBlock("path", {
19
+ }, [_ctx.semiCircle ? (_openBlock(), _createElementBlock("path", {
13
20
  key: 0,
14
21
  class: "gauge-back-semi",
15
22
  d: `M${_ctx.size - _ctx.borderWidth / 2},${_ctx.size / 2} a1,1 0 0,0 -${_ctx.size - _ctx.borderWidth},0`,
16
23
  stroke: _ctx.borderBgColor,
17
24
  "stroke-width": _ctx.borderWidth,
18
25
  fill: _ctx.bgColor || 'none'
19
- }, null, 8, ["d", "stroke", "stroke-width", "fill"])) : _createCommentVNode("", true), _ctx.semiCircle ? (_openBlock(), _createBlock("path", {
26
+ }, null, 8, _hoisted_3)) : _createCommentVNode("", true), _ctx.semiCircle ? (_openBlock(), _createElementBlock("path", {
20
27
  key: 1,
21
28
  class: "gauge-front-semi",
22
29
  d: `M${_ctx.size - _ctx.borderWidth / 2},${_ctx.size / 2} a1,1 0 0,0 -${_ctx.size - _ctx.borderWidth},0`,
@@ -25,7 +32,7 @@ function render(_ctx, _cache) {
25
32
  "stroke-dasharray": _ctx.length / 2,
26
33
  "stroke-dashoffset": _ctx.length / 2 * (1 + _ctx.progress),
27
34
  fill: _ctx.borderBgColor ? 'none' : _ctx.bgColor || 'none'
28
- }, null, 8, ["d", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "fill"])) : _createCommentVNode("", true), !_ctx.semiCircle && _ctx.borderBgColor ? (_openBlock(), _createBlock("circle", {
35
+ }, null, 8, _hoisted_4)) : _createCommentVNode("", true), !_ctx.semiCircle && _ctx.borderBgColor ? (_openBlock(), _createElementBlock("circle", {
29
36
  key: 2,
30
37
  class: "gauge-back-circle",
31
38
  stroke: _ctx.borderBgColor,
@@ -34,7 +41,7 @@ function render(_ctx, _cache) {
34
41
  cx: _ctx.size / 2,
35
42
  cy: _ctx.size / 2,
36
43
  r: _ctx.radius
37
- }, null, 8, ["stroke", "stroke-width", "fill", "cx", "cy", "r"])) : _createCommentVNode("", true), !_ctx.semiCircle ? (_openBlock(), _createBlock("circle", {
44
+ }, null, 8, _hoisted_5)) : _createCommentVNode("", true), !_ctx.semiCircle ? (_openBlock(), _createElementBlock("circle", {
38
45
  key: 3,
39
46
  class: "gauge-front-circle",
40
47
  transform: `rotate(-90 ${_ctx.size / 2} ${_ctx.size / 2})`,
@@ -46,7 +53,7 @@ function render(_ctx, _cache) {
46
53
  cx: _ctx.size / 2,
47
54
  cy: _ctx.size / 2,
48
55
  r: _ctx.radius
49
- }, null, 8, ["transform", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "fill", "cx", "cy", "r"])) : _createCommentVNode("", true), _ctx.valueText ? (_openBlock(), _createBlock("text", {
56
+ }, null, 8, _hoisted_6)) : _createCommentVNode("", true), _ctx.valueText ? (_openBlock(), _createElementBlock("text", {
50
57
  key: 4,
51
58
  class: "gauge-value-text",
52
59
  x: "50%",
@@ -57,7 +64,7 @@ function render(_ctx, _cache) {
57
64
  dy: _ctx.semiCircle ? _ctx.labelText ? -_ctx.labelFontSize - 15 : -5 : 0,
58
65
  "text-anchor": "middle",
59
66
  "dominant-baseline": !_ctx.semiCircle ? 'middle' : null
60
- }, _toDisplayString(_ctx.valueText), 9, ["y", "font-weight", "font-size", "fill", "dy", "dominant-baseline"])) : _createCommentVNode("", true), _ctx.labelText ? (_openBlock(), _createBlock("text", {
67
+ }, _toDisplayString(_ctx.valueText), 9, _hoisted_7)) : _createCommentVNode("", true), _ctx.labelText ? (_openBlock(), _createElementBlock("text", {
61
68
  key: 5,
62
69
  class: "gauge-label-text",
63
70
  x: "50%",
@@ -68,7 +75,7 @@ function render(_ctx, _cache) {
68
75
  dy: _ctx.semiCircle ? -5 : _ctx.valueText ? _ctx.valueFontSize / 2 + 10 : 0,
69
76
  "text-anchor": "middle",
70
77
  "dominant-baseline": !_ctx.semiCircle ? 'middle' : null
71
- }, _toDisplayString(_ctx.labelText), 9, ["y", "font-weight", "font-size", "fill", "dy", "dominant-baseline"])) : _createCommentVNode("", true)], 8, ["width", "height", "viewBox"]))]);
78
+ }, _toDisplayString(_ctx.labelText), 9, _hoisted_8)) : _createCommentVNode("", true)], 8, _hoisted_2))]);
72
79
  }
73
80
 
74
81
  import { computed } from 'vue';
@@ -1,22 +1,22 @@
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, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
2
 
3
3
  function render(_ctx, _cache) {
4
- return _openBlock(), _createBlock("i", {
4
+ return _openBlock(), _createElementBlock("i", {
5
5
  ref: "elRef",
6
- style: {
6
+ style: _normalizeStyle({
7
7
  fontSize: _ctx.sizeComputed,
8
8
  width: _ctx.sizeComputed,
9
9
  height: _ctx.sizeComputed
10
- },
11
- class: _ctx.classesComputed
10
+ }),
11
+ class: _normalizeClass(_ctx.classesComputed)
12
12
  }, [_createTextVNode(_toDisplayString(_ctx.iconText) + " ", 1), _renderSlot(_ctx.$slots, "default")], 6);
13
13
  }
14
14
 
15
15
  import { ref, computed } from 'vue';
16
- import { classNames } from '../shared/utils';
17
- import { colorClasses, colorProps } from '../shared/mixins';
18
- import { useTooltip } from '../shared/use-tooltip';
19
- import { useTheme } from '../shared/use-theme';
16
+ import { classNames } from '../shared/utils.js';
17
+ import { colorClasses, colorProps } from '../shared/mixins.js';
18
+ import { useTooltip } from '../shared/use-tooltip.js';
19
+ import { useTheme } from '../shared/use-theme.js';
20
20
  export default {
21
21
  name: 'f7-icon',
22
22
  render,
@@ -1,10 +1,10 @@
1
1
  import { computed, ref, onMounted, onBeforeUnmount, h, watch, onUpdated } from 'vue';
2
- import { classNames, extend, noUndefinedProps } from '../shared/utils';
3
- import { colorClasses, colorProps } from '../shared/mixins';
4
- import { f7ready, f7 } from '../shared/f7';
5
- import f7Toggle from './toggle';
6
- import f7Range from './range';
7
- import f7TextEditor from './text-editor';
2
+ import { classNames, extend, noUndefinedProps } from '../shared/utils.js';
3
+ import { colorClasses, colorProps } from '../shared/mixins.js';
4
+ import { f7ready, f7 } from '../shared/f7.js';
5
+ import f7Toggle from './toggle.js';
6
+ import f7Range from './range.js';
7
+ import f7TextEditor from './text-editor.js';
8
8
  export default {
9
9
  name: 'f7-input',
10
10
  props: {
@@ -72,10 +72,11 @@ export default {
72
72
  },
73
73
  emits: ['input', 'focus', 'blur', 'change', 'textarea:resize', 'input:notempty', 'input:empty', 'input:clear', 'texteditor:change', 'calendar:change', 'colorpicker:change', 'update:value'],
74
74
 
75
- setup(props, {
76
- emit,
77
- slots
78
- }) {
75
+ setup(props, _ref) {
76
+ let {
77
+ emit,
78
+ slots
79
+ } = _ref;
79
80
  let f7Calendar = null;
80
81
  let f7ColorPicker = null;
81
82
  const inputInvalid = ref(false);
@@ -134,7 +135,11 @@ export default {
134
135
  emit('input:clear', event);
135
136
  };
136
137
 
137
- const onInput = (...args) => {
138
+ const onInput = function () {
139
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
140
+ args[_key] = arguments[_key];
141
+ }
142
+
138
143
  emit('input', ...args);
139
144
 
140
145
  if (inputElRef.value) {
@@ -150,12 +155,20 @@ export default {
150
155
  }
151
156
  };
152
157
 
153
- const onFocus = (...args) => {
158
+ const onFocus = function () {
159
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
160
+ args[_key2] = arguments[_key2];
161
+ }
162
+
154
163
  emit('focus', ...args);
155
164
  inputFocused.value = true;
156
165
  };
157
166
 
158
- const onBlur = (...args) => {
167
+ const onBlur = function () {
168
+ for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
169
+ args[_key3] = arguments[_key3];
170
+ }
171
+
159
172
  emit('blur', ...args);
160
173
 
161
174
  if ((props.validate || props.validate === '' || props.validateOnBlur || props.validateOnBlur === '') && inputElRef.value) {
@@ -165,7 +178,11 @@ export default {
165
178
  inputFocused.value = false;
166
179
  };
167
180
 
168
- const onChange = (...args) => {
181
+ const onChange = function () {
182
+ for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
183
+ args[_key4] = arguments[_key4];
184
+ }
185
+
169
186
  emit('change', ...args);
170
187
 
171
188
  if (props.type === 'texteditor') {
@@ -1,19 +1,19 @@
1
- import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, renderSlot as _renderSlot, mergeProps as _mergeProps } from "vue";
1
+ import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, normalizeClass as _normalizeClass, createElementBlock as _createElementBlock, renderSlot as _renderSlot, mergeProps as _mergeProps } from "vue";
2
2
 
3
3
  function render(_ctx, _cache) {
4
4
  const _component_f7_use_icon = _resolveComponent("f7-use-icon");
5
5
 
6
6
  const _component_f7_badge = _resolveComponent("f7-badge");
7
7
 
8
- return _openBlock(), _createBlock("a", _mergeProps({
8
+ return _openBlock(), _createElementBlock("a", _mergeProps({
9
9
  ref: "elRef",
10
10
  class: _ctx.classes
11
11
  }, _ctx.attrs), [_ctx.icon ? (_openBlock(), _createBlock(_component_f7_use_icon, {
12
12
  key: 0,
13
13
  icon: _ctx.icon
14
- }, null, 8, ["icon"])) : _createCommentVNode("", true), _ctx.text ? (_openBlock(), _createBlock("span", {
14
+ }, null, 8, ["icon"])) : _createCommentVNode("", true), _ctx.text ? (_openBlock(), _createElementBlock("span", {
15
15
  key: 1,
16
- class: _ctx.isTabbarLabel ? 'tabbar-label' : ''
16
+ class: _normalizeClass(_ctx.isTabbarLabel ? 'tabbar-label' : '')
17
17
  }, [_createTextVNode(_toDisplayString(_ctx.text) + " ", 1), _ctx.badge ? (_openBlock(), _createBlock(_component_f7_badge, {
18
18
  key: 0,
19
19
  color: _ctx.badgeColor
@@ -24,14 +24,14 @@ function render(_ctx, _cache) {
24
24
  }
25
25
 
26
26
  import { computed, ref, inject } from 'vue';
27
- import { classNames, isStringProp } from '../shared/utils';
28
- import { colorClasses, routerAttrs, routerClasses, actionsAttrs, actionsClasses, colorProps, actionsProps, routerProps, iconProps } from '../shared/mixins';
29
- import { useIcon } from '../shared/use-icon';
30
- import { useRouteProps } from '../shared/use-route-props';
31
- import { useTooltip } from '../shared/use-tooltip';
32
- import { useSmartSelect } from '../shared/use-smart-select';
33
- import f7Badge from './badge';
34
- import f7UseIcon from './use-icon';
27
+ import { classNames, isStringProp } from '../shared/utils.js';
28
+ import { colorClasses, routerAttrs, routerClasses, actionsAttrs, actionsClasses, colorProps, actionsProps, routerProps, iconProps } from '../shared/mixins.js';
29
+ import { useIcon } from '../shared/use-icon.js';
30
+ import { useRouteProps } from '../shared/use-route-props.js';
31
+ import { useTooltip } from '../shared/use-tooltip.js';
32
+ import { useSmartSelect } from '../shared/use-smart-select.js';
33
+ import f7Badge from './badge.js';
34
+ import f7UseIcon from './use-icon.js';
35
35
  export default {
36
36
  name: 'f7-link',
37
37
  render,
@@ -63,9 +63,10 @@ export default {
63
63
  ...routerProps
64
64
  },
65
65
 
66
- setup(props, {
67
- slots
68
- }) {
66
+ setup(props, _ref) {
67
+ let {
68
+ slots
69
+ } = _ref;
69
70
  const elRef = ref(null);
70
71
  let f7SmartSelect = null;
71
72
  useTooltip(elRef, props);
@@ -1,19 +1,21 @@
1
- import { toDisplayString as _toDisplayString, renderSlot as _renderSlot, createTextVNode as _createTextVNode, mergeProps as _mergeProps, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue";
1
+ import { toDisplayString as _toDisplayString, renderSlot as _renderSlot, createTextVNode as _createTextVNode, mergeProps as _mergeProps, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
2
 
3
3
  function render(_ctx, _cache) {
4
- return _openBlock(), _createBlock("li", null, [_createVNode("a", _mergeProps({
4
+ return _openBlock(), _createElementBlock("li", null, [_createElementVNode("a", _mergeProps({
5
5
  ref: "linkElRef",
6
6
  class: _ctx.linkClasses
7
7
  }, _ctx.linkAttrs, {
8
- onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClick && _ctx.onClick(...args))
8
+ onClick: _cache[0] || (_cache[0] = function () {
9
+ return _ctx.onClick && _ctx.onClick(...arguments);
10
+ })
9
11
  }), [_createTextVNode(_toDisplayString(_ctx.title) + " " + _toDisplayString(_ctx.text) + " ", 1), _renderSlot(_ctx.$slots, "default")], 16)]);
10
12
  }
11
13
 
12
14
  import { computed, ref } from 'vue';
13
- import { classNames, isStringProp } from '../shared/utils';
14
- import { colorClasses, colorProps, actionsAttrs, actionsClasses, actionsProps, routerAttrs, routerClasses, routerProps } from '../shared/mixins';
15
- import { useTooltip } from '../shared/use-tooltip';
16
- import { useRouteProps } from '../shared/use-route-props';
15
+ import { classNames, isStringProp } from '../shared/utils.js';
16
+ import { colorClasses, colorProps, actionsAttrs, actionsClasses, actionsProps, routerAttrs, routerClasses, routerProps } from '../shared/mixins.js';
17
+ import { useTooltip } from '../shared/use-tooltip.js';
18
+ import { useRouteProps } from '../shared/use-route-props.js';
17
19
  export default {
18
20
  name: 'f7-list-button',
19
21
  render,
@@ -33,9 +35,10 @@ export default {
33
35
  },
34
36
  emits: ['click'],
35
37
 
36
- setup(props, {
37
- emit
38
- }) {
38
+ setup(props, _ref) {
39
+ let {
40
+ emit
41
+ } = _ref;
39
42
  const linkElRef = ref(null);
40
43
 
41
44
  const onClick = e => {
@@ -1,15 +1,16 @@
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
+ const _hoisted_1 = ["data-sortable-move-elements"];
2
3
 
3
4
  function render(_ctx, _cache) {
4
- return _openBlock(), _createBlock("div", {
5
- class: _ctx.classes,
5
+ return _openBlock(), _createElementBlock("div", {
6
+ class: _normalizeClass(_ctx.classes),
6
7
  "data-sortable-move-elements": typeof _ctx.sortableMoveElements !== 'undefined' ? _ctx.sortableMoveElements.toString() : undefined
7
- }, [_createVNode("ul", null, [_renderSlot(_ctx.$slots, "default")])], 10, ["data-sortable-move-elements"]);
8
+ }, [_createElementVNode("ul", null, [_renderSlot(_ctx.$slots, "default")])], 10, _hoisted_1);
8
9
  }
9
10
 
10
11
  import { computed, provide, inject } from 'vue';
11
- import { classNames } from '../shared/utils';
12
- import { colorClasses, colorProps } from '../shared/mixins';
12
+ import { classNames } from '../shared/utils.js';
13
+ import { colorClasses, colorProps } from '../shared/mixins.js';
13
14
  export default {
14
15
  name: 'f7-list-group',
15
16
  render,
@@ -1,16 +1,16 @@
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", {
4
+ return _openBlock(), _createElementBlock("div", {
5
5
  ref: "elRef",
6
- class: _ctx.classes
6
+ class: _normalizeClass(_ctx.classes)
7
7
  }, [_renderSlot(_ctx.$slots, "default")], 2);
8
8
  }
9
9
 
10
10
  import { computed, ref, onMounted, onBeforeUnmount, watch } from 'vue';
11
- import { classNames } from '../shared/utils';
12
- import { colorClasses, colorProps } from '../shared/mixins';
13
- import { f7ready, f7 } from '../shared/f7';
11
+ import { classNames } from '../shared/utils.js';
12
+ import { colorClasses, colorProps } from '../shared/mixins.js';
13
+ import { f7ready, f7 } from '../shared/f7.js';
14
14
  export default {
15
15
  name: 'f7-list-index',
16
16
  render,
@@ -48,9 +48,10 @@ export default {
48
48
  },
49
49
  emits: ['listindex:select'],
50
50
 
51
- setup(props, {
52
- emit
53
- }) {
51
+ setup(props, _ref) {
52
+ let {
53
+ emit
54
+ } = _ref;
54
55
  let f7ListIndex = null;
55
56
  const elRef = ref(null);
56
57
 
@@ -1,8 +1,8 @@
1
1
  import { computed, h, ref, onMounted, onBeforeUnmount, watch, inject, onUpdated } from 'vue';
2
- import { classNames, extend, noUndefinedProps } from '../shared/utils';
3
- import { colorClasses, colorProps } from '../shared/mixins';
4
- import { f7ready, f7 } from '../shared/f7';
5
- import f7TextEditor from './text-editor';
2
+ import { classNames, extend, noUndefinedProps } from '../shared/utils.js';
3
+ import { colorClasses, colorProps } from '../shared/mixins.js';
4
+ import { f7ready, f7 } from '../shared/f7.js';
5
+ import f7TextEditor from './text-editor.js';
6
6
  export default {
7
7
  name: 'f7-list-input',
8
8
  props: {
@@ -85,10 +85,11 @@ export default {
85
85
  },
86
86
  emits: ['textarea:resize', 'input:notempty', 'input:empty', 'input:clear', 'texteditor:change', 'calendar:change', 'colorpicker:change', 'change', 'focus', 'blur', 'input', 'update:value'],
87
87
 
88
- setup(props, {
89
- emit,
90
- slots
91
- }) {
88
+ setup(props, _ref) {
89
+ let {
90
+ emit,
91
+ slots
92
+ } = _ref;
92
93
  const inputInvalid = ref(false);
93
94
  const inputFocused = ref(false);
94
95
  const ListContext = inject('ListContext', {
@@ -156,7 +157,11 @@ export default {
156
157
  emit('input:clear', event);
157
158
  };
158
159
 
159
- const onInput = (...args) => {
160
+ const onInput = function () {
161
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
162
+ args[_key] = arguments[_key];
163
+ }
164
+
160
165
  emit('input', ...args);
161
166
 
162
167
  if (inputElRef.value) {
@@ -172,12 +177,20 @@ export default {
172
177
  }
173
178
  };
174
179
 
175
- const onFocus = (...args) => {
180
+ const onFocus = function () {
181
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
182
+ args[_key2] = arguments[_key2];
183
+ }
184
+
176
185
  emit('focus', ...args);
177
186
  inputFocused.value = true;
178
187
  };
179
188
 
180
- const onBlur = (...args) => {
189
+ const onBlur = function () {
190
+ for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
191
+ args[_key3] = arguments[_key3];
192
+ }
193
+
181
194
  emit('blur', ...args);
182
195
 
183
196
  if ((props.validate || props.validate === '' || props.validateOnBlur || props.validateOnBlur === '') && inputElRef.value) {
@@ -187,7 +200,11 @@ export default {
187
200
  inputFocused.value = false;
188
201
  };
189
202
 
190
- const onChange = (...args) => {
203
+ const onChange = function () {
204
+ for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
205
+ args[_key4] = arguments[_key4];
206
+ }
207
+
191
208
  emit('change', ...args);
192
209
 
193
210
  if (props.type === 'texteditor') {
@@ -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-list-item-cell',
14
14
  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-list-item-row',
14
14
  render,
@@ -1,23 +1,24 @@
1
1
  import { computed, ref, h, onMounted, onBeforeUnmount, watch, inject } from 'vue';
2
- import { classNames, isStringProp } from '../shared/utils';
3
- import { colorClasses, colorProps, actionsProps, actionsAttrs, actionsClasses, routerProps, routerAttrs, routerClasses } from '../shared/mixins';
4
- import { useRouteProps } from '../shared/use-route-props';
5
- import { useSmartSelect } from '../shared/use-smart-select';
6
- import { useTooltip } from '../shared/use-tooltip';
7
- import { f7ready, f7 } from '../shared/f7';
8
- import f7Badge from './badge';
9
-
10
- const ListItemContent = ({
11
- props,
12
- slots,
13
- inputElRef,
14
- onChange,
15
- onClick,
16
- isMediaComputed,
17
- isSortableComputed,
18
- isSortableOppositeComputed,
19
- itemContentClasses
20
- } = {}) => {
2
+ import { classNames, isStringProp } from '../shared/utils.js';
3
+ import { colorClasses, colorProps, actionsProps, actionsAttrs, actionsClasses, routerProps, routerAttrs, routerClasses } from '../shared/mixins.js';
4
+ import { useRouteProps } from '../shared/use-route-props.js';
5
+ import { useSmartSelect } from '../shared/use-smart-select.js';
6
+ import { useTooltip } from '../shared/use-tooltip.js';
7
+ import { f7ready, f7 } from '../shared/f7.js';
8
+ import f7Badge from './badge.js';
9
+
10
+ const ListItemContent = function (_temp) {
11
+ let {
12
+ props,
13
+ slots,
14
+ inputElRef,
15
+ onChange,
16
+ onClick,
17
+ isMediaComputed,
18
+ isSortableComputed,
19
+ isSortableOppositeComputed,
20
+ itemContentClasses
21
+ } = _temp === void 0 ? {} : _temp;
21
22
  const {
22
23
  radio,
23
24
  checkbox,
@@ -219,10 +220,11 @@ export default {
219
220
  },
220
221
  emits: ['click', 'swipeout', 'swipeout:overswipeenter', 'swipeout:overswipeexit', 'swipeout:deleted', 'swipeout:delete', 'swipeout:close', 'swipeout:closed', 'swipeout:open', 'swipeout:opened', 'accordion:beforeclose', 'accordion:close', 'accordion:closed', 'accordion:beforeopen', 'accordion:open', 'accordion:opened', 'change', 'update:checked'],
221
222
 
222
- setup(props, {
223
- slots,
224
- emit
225
- }) {
223
+ setup(props, _ref) {
224
+ let {
225
+ slots,
226
+ emit
227
+ } = _ref;
226
228
  const ListContext = inject('ListContext', {
227
229
  value: {
228
230
  listIsMedia: false,
@@ -180,8 +180,8 @@ declare const List: DefineComponent<
180
180
  {},
181
181
  ComponentOptionsMixin,
182
182
  ComponentOptionsMixin,
183
- ("submit" | "sortable:enable" | "sortable:disable" | "sortable:sort" | "virtual:itembeforeinsert" | "virtual:beforeclear" | "virtual:itemsbeforeinsert" | "virtual:itemsafterinsert" | "tab:hide" | "tab:show")[],
184
- "submit" | "sortable:enable" | "sortable:disable" | "sortable:sort" | "virtual:itembeforeinsert" | "virtual:beforeclear" | "virtual:itemsbeforeinsert" | "virtual:itemsafterinsert" | "tab:hide" | "tab:show"
183
+ ("submit" | "sortable:enable" | "sortable:disable" | "sortable:sort" | "sortable:move" | "virtual:itembeforeinsert" | "virtual:beforeclear" | "virtual:itemsbeforeinsert" | "virtual:itemsafterinsert" | "tab:hide" | "tab:show")[],
184
+ "submit" | "sortable:enable" | "sortable:disable" | "sortable:sort" | "sortable:move" | "virtual:itembeforeinsert" | "virtual:beforeclear" | "virtual:itemsbeforeinsert" | "virtual:itemsafterinsert" | "tab:hide" | "tab:show"
185
185
  >;
186
186
 
187
187
  export default List;
@@ -1,8 +1,8 @@
1
1
  import { computed, ref, onMounted, onBeforeUnmount, h, provide, toRaw } from 'vue';
2
- import { classNames, extend } from '../shared/utils';
3
- import { colorClasses, colorProps } from '../shared/mixins';
4
- import { f7, f7ready } from '../shared/f7';
5
- import { useTab } from '../shared/use-tab';
2
+ import { classNames, extend } from '../shared/utils.js';
3
+ import { colorClasses, colorProps } from '../shared/mixins.js';
4
+ import { f7, f7ready } from '../shared/f7.js';
5
+ import { useTab } from '../shared/use-tab.js';
6
6
  export default {
7
7
  name: 'f7-list',
8
8
  props: {
@@ -50,12 +50,13 @@ export default {
50
50
  virtualListParams: Object,
51
51
  ...colorProps
52
52
  },
53
- emits: ['submit', 'sortable:enable', 'sortable:disable', 'sortable:sort', 'virtual:itembeforeinsert', 'virtual:beforeclear', 'virtual:itemsbeforeinsert', 'virtual:itemsafterinsert', 'tab:hide', 'tab:show'],
53
+ emits: ['submit', 'sortable:enable', 'sortable:disable', 'sortable:sort', 'sortable:move', 'virtual:itembeforeinsert', 'virtual:beforeclear', 'virtual:itemsbeforeinsert', 'virtual:itemsafterinsert', 'tab:hide', 'tab:show'],
54
54
 
55
- setup(props, {
56
- emit,
57
- slots
58
- }) {
55
+ setup(props, _ref) {
56
+ let {
57
+ emit,
58
+ slots
59
+ } = _ref;
59
60
  let f7VirtualList = null;
60
61
  const elRef = ref(null);
61
62
 
@@ -78,12 +79,18 @@ export default {
78
79
  emit('sortable:sort', sortData);
79
80
  };
80
81
 
82
+ const onSortableMove = (el, listEl) => {
83
+ if (elRef.value !== listEl) return;
84
+ emit('sortable:move', el, listEl);
85
+ };
86
+
81
87
  useTab(elRef, emit);
82
88
  onMounted(() => {
83
89
  f7ready(() => {
84
90
  f7.on('sortableEnable', onSortableEnable);
85
91
  f7.on('sortableDisable', onSortableDisable);
86
92
  f7.on('sortableSort', onSortableSort);
93
+ f7.on('sortableMove', onSortableMove);
87
94
  if (!props.virtualList) return;
88
95
  const vlParams = props.virtualListParams || {};
89
96
  if (!vlParams.renderItem && !vlParams.renderExternal) return;
@@ -120,6 +127,7 @@ export default {
120
127
  f7.off('sortableEnable', onSortableEnable);
121
128
  f7.off('sortableDisable', onSortableDisable);
122
129
  f7.off('sortableSort', onSortableSort);
130
+ f7.off('sortableMove', onSortableMove);
123
131
  if (!(props.virtualList && f7VirtualList)) return;
124
132
  if (f7VirtualList.destroy) f7VirtualList.destroy();
125
133
  f7VirtualList = null;
@@ -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-login-screen-title',
14
14
  render,