framework7-vue 8.3.3 → 9.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 (76) hide show
  1. package/components/accordion-item.js +3 -4
  2. package/components/actions-button.js +5 -8
  3. package/components/actions-label.js +4 -7
  4. package/components/actions.js +3 -4
  5. package/components/app.d.ts +5 -0
  6. package/components/app.js +4 -0
  7. package/components/area-chart.js +19 -24
  8. package/components/block.js +3 -4
  9. package/components/breadcrumbs-collapsed.js +1 -2
  10. package/components/card.js +4 -5
  11. package/components/checkbox.js +7 -11
  12. package/components/chip.js +5 -8
  13. package/components/fab-button.js +4 -7
  14. package/components/fab.js +4 -5
  15. package/components/input.js +8 -21
  16. package/components/link.js +3 -4
  17. package/components/list-button.js +4 -7
  18. package/components/list-index.js +3 -4
  19. package/components/list-input.js +8 -21
  20. package/components/list-item.js +16 -18
  21. package/components/list.js +4 -5
  22. package/components/login-screen.js +3 -4
  23. package/components/message.js +13 -32
  24. package/components/messagebar-attachment.js +5 -10
  25. package/components/messagebar-sheet-image.js +9 -13
  26. package/components/messagebar.d.ts +6 -6
  27. package/components/messagebar.js +9 -8
  28. package/components/messages.js +3 -4
  29. package/components/nav-left.d.ts +0 -4
  30. package/components/nav-left.js +5 -13
  31. package/components/nav-right.d.ts +0 -4
  32. package/components/nav-right.js +1 -4
  33. package/components/nav-title.d.ts +0 -4
  34. package/components/nav-title.js +1 -4
  35. package/components/navbar.d.ts +0 -5
  36. package/components/navbar.js +10 -43
  37. package/components/page-content.js +10 -13
  38. package/components/page.js +4 -5
  39. package/components/panel.js +4 -8
  40. package/components/photo-browser.d.ts +0 -5
  41. package/components/photo-browser.js +3 -8
  42. package/components/pie-chart.js +12 -14
  43. package/components/popover.d.ts +0 -5
  44. package/components/popover.js +5 -16
  45. package/components/popup.js +3 -4
  46. package/components/preloader.js +9 -13
  47. package/components/radio.js +7 -11
  48. package/components/range.js +3 -4
  49. package/components/searchbar.js +18 -27
  50. package/components/sheet.js +4 -5
  51. package/components/stepper.js +7 -16
  52. package/components/subnavbar.d.ts +0 -4
  53. package/components/subnavbar.js +1 -4
  54. package/components/swipeout-button.js +4 -7
  55. package/components/tab.js +3 -4
  56. package/components/text-editor.js +3 -4
  57. package/components/toggle.js +7 -11
  58. package/components/toolbar-pane.d.ts +19 -0
  59. package/components/toolbar-pane.js +22 -0
  60. package/components/toolbar.js +3 -4
  61. package/components/treeview-item.js +4 -5
  62. package/components/view.d.ts +0 -10
  63. package/components/view.js +4 -15
  64. package/framework7-vue-bundle.js +3 -1
  65. package/framework7-vue.d.ts +2 -1
  66. package/framework7-vue.js +5 -4
  67. package/package.json +2 -2
  68. package/shared/components-router.js +20 -23
  69. package/shared/f7.js +1 -7
  70. package/shared/modal-state-classes.js +4 -5
  71. package/shared/plugin.js +1 -4
  72. package/shared/use-icon.js +1 -4
  73. package/shared/use-route-props.js +3 -4
  74. package/shared/use-store.js +5 -5
  75. package/shared/utils.js +3 -12
  76. package/framework7-vue-web-types.json +0 -14296
@@ -1,4 +1,4 @@
1
- import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, renderSlot as _renderSlot } from "vue";
1
+ import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeClass as _normalizeClass, renderSlot as _renderSlot } from "vue";
2
2
  const _hoisted_1 = ["width", "height", "viewBox"];
3
3
  const _hoisted_2 = ["d", "fill", "data-index", "onClick", "onMouseenter"];
4
4
  function render(_ctx, _cache) {
@@ -10,9 +10,9 @@ function render(_ctx, _cache) {
10
10
  width: _ctx.size,
11
11
  height: _ctx.size,
12
12
  viewBox: `-${_ctx.size / 3} -${_ctx.size / 3} ${_ctx.size * 2 / 3} ${_ctx.size * 2 / 3}`,
13
- style: _normalizeStyle({
13
+ style: {
14
14
  transform: 'rotate(-90deg)'
15
- })
15
+ }
16
16
  }, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.paths, (path, index) => {
17
17
  return _openBlock(), _createElementBlock("path", {
18
18
  key: path.label || index,
@@ -26,7 +26,7 @@ function render(_ctx, _cache) {
26
26
  onMouseenter: $event => _ctx.setCurrentIndex(index),
27
27
  onMouseleave: _cache[0] || (_cache[0] = $event => _ctx.setCurrentIndex(null))
28
28
  }, null, 42, _hoisted_2);
29
- }), 128))], 12, _hoisted_1)), _renderSlot(_ctx.$slots, "default")], 2);
29
+ }), 128))], 8, _hoisted_1)), _renderSlot(_ctx.$slots, "default")], 2);
30
30
  }
31
31
  import { computed, onBeforeUnmount, ref, watch } from 'vue';
32
32
  import { classNames } from '../shared/utils.js';
@@ -47,10 +47,9 @@ export default {
47
47
  formatTooltip: Function
48
48
  },
49
49
  emits: ['select'],
50
- setup(props, _ref) {
51
- let {
52
- emit
53
- } = _ref;
50
+ setup(props, {
51
+ emit
52
+ }) {
54
53
  const elRef = ref(null);
55
54
  let f7Tooltip = null;
56
55
  const currentIndex = ref(null);
@@ -72,12 +71,11 @@ export default {
72
71
  const y = Math.sin(2 * Math.PI * percentage) * (props.size / 3);
73
72
  return [x, y];
74
73
  }
75
- props.datasets.forEach(_ref2 => {
76
- let {
77
- value,
78
- label,
79
- color
80
- } = _ref2;
74
+ props.datasets.forEach(({
75
+ value,
76
+ label,
77
+ color
78
+ }) => {
81
79
  const percentage = value / summValue.value;
82
80
  const [startX, startY] = getCoordinatesForPercentage(cumulativePercentage);
83
81
  cumulativePercentage += percentage;
@@ -19,11 +19,6 @@ declare const Popover: DefineComponent<
19
19
  default: undefined;
20
20
  },
21
21
 
22
- arrow: {
23
- type: BooleanConstructor;
24
- default: undefined;
25
- },
26
-
27
22
  backdrop: {
28
23
  type: BooleanConstructor;
29
24
  default: undefined;
@@ -1,16 +1,12 @@
1
- import { openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass } from "vue";
1
+ import { renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
2
  const _hoisted_1 = {
3
- key: 0,
4
- class: "popover-arrow"
5
- };
6
- const _hoisted_2 = {
7
3
  class: "popover-inner"
8
4
  };
9
5
  function render(_ctx, _cache) {
10
6
  return _openBlock(), _createElementBlock("div", {
11
7
  ref: "elRef",
12
8
  class: _normalizeClass(_ctx.classes)
13
- }, [_ctx.arrow !== false ? (_openBlock(), _createElementBlock("div", _hoisted_1)) : _createCommentVNode("", true), _createElementVNode("div", _hoisted_2, [_renderSlot(_ctx.$slots, "default")])], 2);
9
+ }, [_createElementVNode("div", _hoisted_1, [_renderSlot(_ctx.$slots, "default")])], 2);
14
10
  }
15
11
  import { computed, ref, watch, onMounted, onBeforeUnmount } from 'vue';
16
12
  import { classNames } from '../shared/utils.js';
@@ -30,10 +26,6 @@ export default {
30
26
  type: [String, Object],
31
27
  default: undefined
32
28
  },
33
- arrow: {
34
- type: Boolean,
35
- default: undefined
36
- },
37
29
  backdrop: {
38
30
  type: Boolean,
39
31
  default: undefined
@@ -65,10 +57,9 @@ export default {
65
57
  ...colorProps
66
58
  },
67
59
  emits: ['popover:open', 'popover:opened', 'popover:close', 'popover:closed', 'update:opened'],
68
- setup(props, _ref) {
69
- let {
70
- emit
71
- } = _ref;
60
+ setup(props, {
61
+ emit
62
+ }) {
72
63
  const f7Popover = ref(null);
73
64
  // eslint-disable-next-line
74
65
  let isOpened = props.opened;
@@ -117,7 +108,6 @@ export default {
117
108
  closeByBackdropClick,
118
109
  closeByOutsideClick,
119
110
  closeOnEscape,
120
- arrow,
121
111
  backdrop,
122
112
  backdropEl,
123
113
  containerEl,
@@ -127,7 +117,6 @@ export default {
127
117
  if (typeof closeByBackdropClick !== 'undefined') popoverParams.closeByBackdropClick = closeByBackdropClick;
128
118
  if (typeof closeByOutsideClick !== 'undefined') popoverParams.closeByOutsideClick = closeByOutsideClick;
129
119
  if (typeof closeOnEscape !== 'undefined') popoverParams.closeOnEscape = closeOnEscape;
130
- if (typeof arrow !== 'undefined') popoverParams.arrow = arrow;
131
120
  if (typeof backdrop !== 'undefined') popoverParams.backdrop = backdrop;
132
121
  if (typeof backdropEl !== 'undefined') popoverParams.backdropEl = backdropEl;
133
122
  if (typeof containerEl !== 'undefined') popoverParams.containerEl = containerEl;
@@ -52,10 +52,9 @@ export default {
52
52
  ...colorProps
53
53
  },
54
54
  emits: ['popup:swipestart', 'popup:swipemove', 'popup:swipeend', 'popup:swipeclose', 'popup:open', 'popup:opened', 'popup:close', 'popup:closed', 'update:opened'],
55
- setup(props, _ref) {
56
- let {
57
- emit
58
- } = _ref;
55
+ setup(props, {
56
+ emit
57
+ }) {
59
58
  const f7Popup = ref(null);
60
59
  // eslint-disable-next-line
61
60
  let isOpened = props.opened;
@@ -3,21 +3,11 @@ const _hoisted_1 = {
3
3
  key: 0,
4
4
  class: "preloader-inner"
5
5
  };
6
- const _hoisted_2 = /*#__PURE__*/_createElementVNode("svg", {
7
- viewBox: "0 0 36 36"
8
- }, [/*#__PURE__*/_createElementVNode("circle", {
9
- cx: "18",
10
- cy: "18",
11
- r: "16"
12
- })], -1);
13
- const _hoisted_3 = [_hoisted_2];
14
- const _hoisted_4 = {
6
+ const _hoisted_2 = {
15
7
  key: 1,
16
8
  class: "preloader-inner"
17
9
  };
18
- const _hoisted_5 = /*#__PURE__*/_createStaticVNode("<span class=\"preloader-inner-line\"></span><span class=\"preloader-inner-line\"></span><span class=\"preloader-inner-line\"></span><span class=\"preloader-inner-line\"></span><span class=\"preloader-inner-line\"></span><span class=\"preloader-inner-line\"></span><span class=\"preloader-inner-line\"></span><span class=\"preloader-inner-line\"></span>", 8);
19
- const _hoisted_13 = [_hoisted_5];
20
- const _hoisted_14 = {
10
+ const _hoisted_3 = {
21
11
  key: 2,
22
12
  class: "preloader-inner"
23
13
  };
@@ -25,7 +15,13 @@ function render(_ctx, _cache) {
25
15
  return _openBlock(), _createElementBlock("div", {
26
16
  class: _normalizeClass(_ctx.classes),
27
17
  style: _normalizeStyle(_ctx.style)
28
- }, [_ctx.theme && _ctx.theme.md ? (_openBlock(), _createElementBlock("span", _hoisted_1, _hoisted_3)) : _ctx.theme && _ctx.theme.ios ? (_openBlock(), _createElementBlock("span", _hoisted_4, _hoisted_13)) : !_ctx.theme ? (_openBlock(), _createElementBlock("span", _hoisted_14)) : _createCommentVNode("", true)], 6);
18
+ }, [_ctx.theme && _ctx.theme.md ? (_openBlock(), _createElementBlock("span", _hoisted_1, [...(_cache[0] || (_cache[0] = [_createElementVNode("svg", {
19
+ viewBox: "0 0 36 36"
20
+ }, [_createElementVNode("circle", {
21
+ cx: "18",
22
+ cy: "18",
23
+ r: "16"
24
+ })], -1)]))])) : _ctx.theme && _ctx.theme.ios ? (_openBlock(), _createElementBlock("span", _hoisted_2, [...(_cache[1] || (_cache[1] = [_createStaticVNode("<span class=\"preloader-inner-line\"></span><span class=\"preloader-inner-line\"></span><span class=\"preloader-inner-line\"></span><span class=\"preloader-inner-line\"></span><span class=\"preloader-inner-line\"></span><span class=\"preloader-inner-line\"></span><span class=\"preloader-inner-line\"></span><span class=\"preloader-inner-line\"></span>", 8)]))])) : !_ctx.theme ? (_openBlock(), _createElementBlock("span", _hoisted_3)) : _createCommentVNode("", true)], 6);
29
25
  }
30
26
  import { computed } from 'vue';
31
27
  import { classNames } from '../shared/utils.js';
@@ -1,8 +1,5 @@
1
1
  import { createElementVNode as _createElementVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
2
  const _hoisted_1 = ["name", "value", "disabled", "readonly", "checked"];
3
- const _hoisted_2 = /*#__PURE__*/_createElementVNode("i", {
4
- class: "icon-radio"
5
- }, null, -1);
6
3
  function render(_ctx, _cache) {
7
4
  return _openBlock(), _createElementBlock("label", {
8
5
  class: _normalizeClass(_ctx.classes)
@@ -14,10 +11,10 @@ function render(_ctx, _cache) {
14
11
  disabled: _ctx.disabled,
15
12
  readonly: _ctx.readonly,
16
13
  checked: _ctx.checked,
17
- onChange: _cache[0] || (_cache[0] = function () {
18
- return _ctx.onChange && _ctx.onChange(...arguments);
19
- })
20
- }, null, 40, _hoisted_1), _hoisted_2, _renderSlot(_ctx.$slots, "default")], 2);
14
+ onChange: _cache[0] || (_cache[0] = (...args) => _ctx.onChange && _ctx.onChange(...args))
15
+ }, null, 40, _hoisted_1), _cache[1] || (_cache[1] = _createElementVNode("i", {
16
+ class: "icon-radio"
17
+ }, null, -1)), _renderSlot(_ctx.$slots, "default")], 2);
21
18
  }
22
19
  import { ref, computed } from 'vue';
23
20
  import { classNames } from '../shared/utils.js';
@@ -37,10 +34,9 @@ export default {
37
34
  ...colorProps
38
35
  },
39
36
  emits: ['update:checked', 'change'],
40
- setup(props, _ref) {
41
- let {
42
- emit
43
- } = _ref;
37
+ setup(props, {
38
+ emit
39
+ }) {
44
40
  const inputElRef = ref(null);
45
41
  const onChange = event => {
46
42
  emit('update:checked', event.target.checked);
@@ -84,10 +84,9 @@ export default {
84
84
  ...colorProps
85
85
  },
86
86
  emits: ['range:change', 'range:changed', 'rangeChange', 'rangeChanged', 'update:value'],
87
- setup(props, _ref) {
88
- let {
89
- emit
90
- } = _ref;
87
+ setup(props, {
88
+ emit
89
+ }) {
91
90
  let f7Range = null;
92
91
  const elRef = ref(null);
93
92
  watch(() => props.value, newValue => {
@@ -6,9 +6,9 @@ const _hoisted_2 = {
6
6
  class: "searchbar-input-wrap"
7
7
  };
8
8
  const _hoisted_3 = ["value", "placeholder", "spellcheck"];
9
- const _hoisted_4 = /*#__PURE__*/_createElementVNode("i", {
10
- class: "searchbar-icon"
11
- }, null, -1);
9
+ const _hoisted_4 = {
10
+ key: 0
11
+ };
12
12
  function render(_ctx, _cache) {
13
13
  return _openBlock(), _createBlock(_resolveDynamicComponent(_ctx.tag), {
14
14
  ref: "elRef",
@@ -20,31 +20,23 @@ function render(_ctx, _cache) {
20
20
  placeholder: _ctx.placeholder,
21
21
  spellcheck: _ctx.spellcheck,
22
22
  type: "search",
23
- onInput: _cache[0] || (_cache[0] = function () {
24
- return _ctx.onInput && _ctx.onInput(...arguments);
25
- }),
26
- onChange: _cache[1] || (_cache[1] = function () {
27
- return _ctx.onChange && _ctx.onChange(...arguments);
28
- }),
29
- onFocus: _cache[2] || (_cache[2] = function () {
30
- return _ctx.onFocus && _ctx.onFocus(...arguments);
31
- }),
32
- onBlur: _cache[3] || (_cache[3] = function () {
33
- return _ctx.onBlur && _ctx.onBlur(...arguments);
34
- })
35
- }, null, 40, _hoisted_3), _hoisted_4, _ctx.clearButton ? (_openBlock(), _createElementBlock("span", {
23
+ onInput: _cache[0] || (_cache[0] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
24
+ onChange: _cache[1] || (_cache[1] = (...args) => _ctx.onChange && _ctx.onChange(...args)),
25
+ onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
26
+ onBlur: _cache[3] || (_cache[3] = (...args) => _ctx.onBlur && _ctx.onBlur(...args))
27
+ }, null, 40, _hoisted_3), _cache[6] || (_cache[6] = _createElementVNode("i", {
28
+ class: "searchbar-icon"
29
+ }, null, -1)), _ctx.clearButton ? (_openBlock(), _createElementBlock("span", {
36
30
  key: 0,
37
31
  class: "input-clear-button",
38
- onClick: _cache[4] || (_cache[4] = function () {
39
- return _ctx.onClearButtonClick && _ctx.onClearButtonClick(...arguments);
40
- })
32
+ onClick: _cache[4] || (_cache[4] = (...args) => _ctx.onClearButtonClick && _ctx.onClearButtonClick(...args))
41
33
  })) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "input-wrap-end")]), _ctx.disableButton ? (_openBlock(), _createElementBlock("span", {
42
34
  key: 0,
43
35
  class: "searchbar-disable-button",
44
- onClick: _cache[5] || (_cache[5] = function () {
45
- return _ctx.onDisableButtonClick && _ctx.onDisableButtonClick(...arguments);
46
- })
47
- }, _toDisplayString(_ctx.disableButtonText), 1)) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "inner-end"), _renderSlot(_ctx.$slots, "default")]), _renderSlot(_ctx.$slots, "after-inner")]),
36
+ onClick: _cache[5] || (_cache[5] = (...args) => _ctx.onDisableButtonClick && _ctx.onDisableButtonClick(...args))
37
+ }, [_cache[7] || (_cache[7] = _createElementVNode("i", {
38
+ class: "icon icon-close"
39
+ }, null, -1)), _ctx.disableButtonText ? (_openBlock(), _createElementBlock("span", _hoisted_4, _toDisplayString(_ctx.disableButtonText), 1)) : _createCommentVNode("", true)])) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "inner-end"), _renderSlot(_ctx.$slots, "default")]), _renderSlot(_ctx.$slots, "after-inner")]),
48
40
  _: 3
49
41
  }, 40, ["class", "onSubmit"]);
50
42
  }
@@ -158,10 +150,9 @@ export default {
158
150
  ...colorProps
159
151
  },
160
152
  emits: ['change', 'input', 'focus', 'blur', 'submit', 'click:clear', 'click:disable', 'searchbar:search', 'searchbar:clear', 'searchbar:enable', 'searchbar:disable', 'update:value'],
161
- setup(props, _ref) {
162
- let {
163
- emit
164
- } = _ref;
153
+ setup(props, {
154
+ emit
155
+ }) {
165
156
  let f7Searchbar = null;
166
157
  const elRef = ref(null);
167
158
  const search = query => {
@@ -66,11 +66,10 @@ export default {
66
66
  ...colorProps
67
67
  },
68
68
  emits: ['sheet:stepprogress', 'sheet:stepopen', 'sheet:stepclose', 'sheet:open', 'sheet:opened', 'sheet:close', 'sheet:closed', 'sheet:breakpoint', 'update:opened'],
69
- setup(props, _ref) {
70
- let {
71
- emit,
72
- slots
73
- } = _ref;
69
+ setup(props, {
70
+ emit,
71
+ slots
72
+ }) {
74
73
  let f7Sheet = null;
75
74
  // eslint-disable-next-line
76
75
  let isOpened = props.opened;
@@ -14,9 +14,7 @@ function render(_ctx, _cache) {
14
14
  class: _normalizeClass(_ctx.classes)
15
15
  }, [_createElementVNode("div", {
16
16
  class: "stepper-button-minus",
17
- onClick: _cache[0] || (_cache[0] = function () {
18
- return _ctx.onMinusClick && _ctx.onMinusClick(...arguments);
19
- })
17
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onMinusClick && _ctx.onMinusClick(...args))
20
18
  }), _ctx.input && !_ctx.buttonsOnly ? (_openBlock(), _createElementBlock("div", _hoisted_1, [_createElementVNode("input", {
21
19
  id: _ctx.inputId,
22
20
  name: _ctx.name,
@@ -26,17 +24,11 @@ function render(_ctx, _cache) {
26
24
  step: _ctx.inputType === 'number' ? _ctx.step : undefined,
27
25
  value: _ctx.value,
28
26
  readonly: _ctx.inputReadonly,
29
- onInput: _cache[1] || (_cache[1] = function () {
30
- return _ctx.onInput && _ctx.onInput(...arguments);
31
- }),
32
- onChange: _cache[2] || (_cache[2] = function () {
33
- return _ctx.onChange && _ctx.onChange(...arguments);
34
- })
27
+ onInput: _cache[1] || (_cache[1] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
28
+ onChange: _cache[2] || (_cache[2] = (...args) => _ctx.onChange && _ctx.onChange(...args))
35
29
  }, null, 40, _hoisted_2)])) : _createCommentVNode("", true), !_ctx.input && !_ctx.buttonsOnly ? (_openBlock(), _createElementBlock("div", _hoisted_3, _toDisplayString(_ctx.value), 1)) : _createCommentVNode("", true), _createElementVNode("div", {
36
30
  class: "stepper-button-plus",
37
- onClick: _cache[3] || (_cache[3] = function () {
38
- return _ctx.onPlusClick && _ctx.onPlusClick(...arguments);
39
- })
31
+ onClick: _cache[3] || (_cache[3] = (...args) => _ctx.onPlusClick && _ctx.onPlusClick(...args))
40
32
  })], 2);
41
33
  }
42
34
  import { computed, ref, watch, onMounted, onBeforeUnmount } from 'vue';
@@ -126,10 +118,9 @@ export default {
126
118
  ...colorProps
127
119
  },
128
120
  emits: ['input', 'change', 'stepper:minusclick', 'stepper:plusclick', 'stepper:change', 'update:value'],
129
- setup(props, _ref) {
130
- let {
131
- emit
132
- } = _ref;
121
+ setup(props, {
122
+ emit
123
+ }) {
133
124
  let f7Stepper = null;
134
125
  const elRef = ref(null);
135
126
  const increment = () => {
@@ -5,10 +5,6 @@ import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
5
5
  declare const Subnavbar: DefineComponent<
6
6
  {
7
7
 
8
- sliding: {
9
- type: BooleanConstructor;
10
- },
11
-
12
8
  title: {
13
9
  type: StringConstructor;
14
10
  },
@@ -21,7 +21,6 @@ export default {
21
21
  name: 'f7-subnavbar',
22
22
  render,
23
23
  props: {
24
- sliding: Boolean,
25
24
  title: String,
26
25
  inner: {
27
26
  type: Boolean,
@@ -30,9 +29,7 @@ export default {
30
29
  ...colorProps
31
30
  },
32
31
  setup(props) {
33
- const classes = computed(() => classNames('subnavbar', {
34
- sliding: props.sliding
35
- }, colorClasses(props)));
32
+ const classes = computed(() => classNames('subnavbar', {}, colorClasses(props)));
36
33
  return {
37
34
  classes
38
35
  };
@@ -6,9 +6,7 @@ function render(_ctx, _cache) {
6
6
  "data-confirm": _ctx.confirmText || undefined,
7
7
  "data-confirm-title": _ctx.confirmTitle || undefined,
8
8
  class: _normalizeClass(_ctx.classes),
9
- onClick: _cache[0] || (_cache[0] = function () {
10
- return _ctx.onClick && _ctx.onClick(...arguments);
11
- })
9
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
12
10
  }, [_createTextVNode(_toDisplayString(_ctx.text) + " ", 1), _renderSlot(_ctx.$slots, "default")], 10, _hoisted_1);
13
11
  }
14
12
  import { computed } from 'vue';
@@ -28,10 +26,9 @@ export default {
28
26
  ...colorProps
29
27
  },
30
28
  emits: ['click'],
31
- setup(props, _ref) {
32
- let {
33
- emit
34
- } = _ref;
29
+ setup(props, {
30
+ emit
31
+ }) {
35
32
  const onClick = e => {
36
33
  emit('click', e);
37
34
  };
package/components/tab.js CHANGED
@@ -31,10 +31,9 @@ export default {
31
31
  ...colorProps
32
32
  },
33
33
  emits: ['tab:show', 'tab:hide'],
34
- setup(props, _ref) {
35
- let {
36
- emit
37
- } = _ref;
34
+ setup(props, {
35
+ emit
36
+ }) {
38
37
  const elRef = ref(null);
39
38
  const routerData = ref(null);
40
39
  const route = inject('f7route', null);
@@ -54,10 +54,9 @@ export default {
54
54
  ...colorProps
55
55
  },
56
56
  emits: ['texteditor:change', 'texteditor:input', 'texteditor:focus', 'texteditor:blur', 'texteditor:buttonclick', 'texteditor:keyboardopen', 'texteditor:keyboardclose', 'texteditor:popoveropen', 'texteditor:popoverclose', 'texteditor:insertlink', 'texteditor:insertimage', 'texteditorChange', 'texteditorInput', 'texteditorFocus', 'texteditorBlur'],
57
- setup(props, _ref) {
58
- let {
59
- emit
60
- } = _ref;
57
+ setup(props, {
58
+ emit
59
+ }) {
61
60
  let f7TextEditor = null;
62
61
  const elRef = ref(null);
63
62
  const onChange = (editor, editorValue) => {
@@ -1,8 +1,5 @@
1
1
  import { createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
2
  const _hoisted_1 = ["name", "disabled", "readonly", "checked", "value"];
3
- const _hoisted_2 = /*#__PURE__*/_createElementVNode("span", {
4
- class: "toggle-icon"
5
- }, null, -1);
6
3
  function render(_ctx, _cache) {
7
4
  return _openBlock(), _createElementBlock("label", {
8
5
  ref: "elRef",
@@ -14,10 +11,10 @@ function render(_ctx, _cache) {
14
11
  readonly: _ctx.readonly,
15
12
  checked: _ctx.checked,
16
13
  value: _ctx.value,
17
- onChange: _cache[0] || (_cache[0] = function () {
18
- return _ctx.onChange && _ctx.onChange(...arguments);
19
- })
20
- }, null, 40, _hoisted_1), _hoisted_2], 2);
14
+ onChange: _cache[0] || (_cache[0] = (...args) => _ctx.onChange && _ctx.onChange(...args))
15
+ }, null, 40, _hoisted_1), _cache[1] || (_cache[1] = _createElementVNode("span", {
16
+ class: "toggle-icon"
17
+ }, null, -1))], 2);
21
18
  }
22
19
  import { computed, ref, watch, onMounted, onBeforeUnmount } from 'vue';
23
20
  import { classNames } from '../shared/utils.js';
@@ -42,10 +39,9 @@ export default {
42
39
  ...colorProps
43
40
  },
44
41
  emits: ['change', 'toggle:change', 'update:checked'],
45
- setup(props, _ref) {
46
- let {
47
- emit
48
- } = _ref;
42
+ setup(props, {
43
+ emit
44
+ }) {
49
45
  let f7Toggle = null;
50
46
  const elRef = ref(null);
51
47
  useTooltip(elRef, props);
@@ -0,0 +1,19 @@
1
+
2
+ import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
3
+
4
+
5
+ declare const ToolbarPane: DefineComponent<
6
+ {
7
+
8
+ },
9
+ () => JSX.Element,
10
+ unknown,
11
+ {},
12
+ {},
13
+ ComponentOptionsMixin,
14
+ ComponentOptionsMixin,
15
+
16
+ >;
17
+
18
+ export default ToolbarPane;
19
+
@@ -0,0 +1,22 @@
1
+ import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
+ function render(_ctx, _cache) {
3
+ return _openBlock(), _createElementBlock("div", {
4
+ ref: "elRef",
5
+ class: _normalizeClass(_ctx.classes)
6
+ }, [_renderSlot(_ctx.$slots, "default")], 2);
7
+ }
8
+ import { computed } from 'vue';
9
+ import { classNames } from '../shared/utils.js';
10
+ export default {
11
+ name: 'f7-toolbar-pane',
12
+ render,
13
+ props: {},
14
+ setup() {
15
+ const classes = computed(() => {
16
+ return classNames('toolbar-pane');
17
+ });
18
+ return {
19
+ classes
20
+ };
21
+ }
22
+ };
@@ -63,10 +63,9 @@ export default {
63
63
  ...colorProps
64
64
  },
65
65
  emits: ['toolbar:hide', 'toolbar:show'],
66
- setup(props, _ref) {
67
- let {
68
- emit
69
- } = _ref;
66
+ setup(props, {
67
+ emit
68
+ }) {
70
69
  const elRef = ref(null);
71
70
  const theme = useTheme();
72
71
  const onHide = toolbarEl => {
@@ -63,11 +63,10 @@ export default {
63
63
  ...routerProps
64
64
  },
65
65
  emits: ['click', 'treeview:open', 'treeview:close', 'treeview:loadchildren'],
66
- setup(props, _ref) {
67
- let {
68
- slots,
69
- emit
70
- } = _ref;
66
+ setup(props, {
67
+ slots,
68
+ emit
69
+ }) {
71
70
  const elRef = ref(null);
72
71
  const hasChildren = computed(() => {
73
72
  return slots.default || slots.children || slots['children-start'];
@@ -224,16 +224,6 @@ declare const View: DefineComponent<
224
224
  default: undefined;
225
225
  },
226
226
 
227
- iosDynamicNavbar: {
228
- type: BooleanConstructor;
229
- default: undefined;
230
- },
231
-
232
- iosAnimateNavbarBackIcon: {
233
- type: BooleanConstructor;
234
- default: undefined;
235
- },
236
-
237
227
  passRouteQueryToRequest: {
238
228
  type: BooleanConstructor;
239
229
  default: undefined;
@@ -134,16 +134,6 @@ export default {
134
134
  default: undefined
135
135
  },
136
136
  transition: String,
137
- // iOS Dynamic Navbar
138
- iosDynamicNavbar: {
139
- type: Boolean,
140
- default: undefined
141
- },
142
- // Animate iOS Navbar Back Icon
143
- iosAnimateNavbarBackIcon: {
144
- type: Boolean,
145
- default: undefined
146
- },
147
137
  // MD Theme delay
148
138
  materialPageLoadDelay: Number,
149
139
  passRouteQueryToRequest: {
@@ -170,11 +160,10 @@ export default {
170
160
  ...colorProps
171
161
  },
172
162
  emits: ['view:init', 'view:resize', 'swipeback:move', 'swipeback:beforechange', 'swipeback:afterchange', 'swipeback:beforereset', 'swipeback:afterreset', 'tab:hide', 'tab:show'],
173
- setup(props, _ref) {
174
- let {
175
- emit,
176
- slots
177
- } = _ref;
163
+ setup(props, {
164
+ emit,
165
+ slots
166
+ }) {
178
167
  // const childrenArray = React.Children.toArray(children);
179
168
  // const initialPageComponent = childrenArray.filter((c) => c.props && c.props.initialPage)[0];
180
169
  // const restChildren = childrenArray.filter((c) => !c.props || !c.props.initialPage);