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
@@ -17,10 +17,9 @@ export default {
17
17
  ...colorProps
18
18
  },
19
19
  emits: ['accordion:beforeopen', 'accordion:open', 'accordion:opened', 'accordion:beforeclose', 'accordion:close', 'accordion:closed'],
20
- setup(props, _ref) {
21
- let {
22
- emit
23
- } = _ref;
20
+ setup(props, {
21
+ emit
22
+ }) {
24
23
  const elRef = ref(null);
25
24
  const onBeforeOpen = (el, prevent) => {
26
25
  if (elRef.value !== el) return;
@@ -10,9 +10,7 @@ function render(_ctx, _cache) {
10
10
  return _openBlock(), _createElementBlock("div", {
11
11
  ref: "elRef",
12
12
  class: _normalizeClass(_ctx.classes),
13
- onClick: _cache[0] || (_cache[0] = function () {
14
- return _ctx.onClick && _ctx.onClick(...arguments);
15
- })
13
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
16
14
  }, [_ctx.hasMedia ? (_openBlock(), _createElementBlock("div", _hoisted_1, [_renderSlot(_ctx.$slots, "media")])) : _createCommentVNode("", true), _createElementVNode("div", _hoisted_2, [_renderSlot(_ctx.$slots, "default")])], 2);
17
15
  }
18
16
  import { computed, ref } from 'vue';
@@ -31,11 +29,10 @@ export default {
31
29
  ...colorProps
32
30
  },
33
31
  emits: ['click'],
34
- setup(props, _ref) {
35
- let {
36
- slots,
37
- emit
38
- } = _ref;
32
+ setup(props, {
33
+ slots,
34
+ emit
35
+ }) {
39
36
  const elRef = ref(null);
40
37
  const onClick = e => {
41
38
  if (elRef.value && props.close && f7) {
@@ -2,9 +2,7 @@ import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock
2
2
  function render(_ctx, _cache) {
3
3
  return _openBlock(), _createElementBlock("div", {
4
4
  class: _normalizeClass(_ctx.classes),
5
- onClick: _cache[0] || (_cache[0] = function () {
6
- return _ctx.onClick && _ctx.onClick(...arguments);
7
- })
5
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
8
6
  }, [_renderSlot(_ctx.$slots, "default")], 2);
9
7
  }
10
8
  import { computed } from 'vue';
@@ -18,10 +16,9 @@ export default {
18
16
  ...colorProps
19
17
  },
20
18
  emits: ['click'],
21
- setup(props, _ref) {
22
- let {
23
- emit
24
- } = _ref;
19
+ setup(props, {
20
+ emit
21
+ }) {
25
22
  const onClick = e => {
26
23
  emit('click', e);
27
24
  };
@@ -60,10 +60,9 @@ export default {
60
60
  ...colorProps
61
61
  },
62
62
  emits: ['actions:open', 'actions:opened', 'actions:close', 'actions:closed', 'update:opened'],
63
- setup(props, _ref) {
64
- let {
65
- emit
66
- } = _ref;
63
+ setup(props, {
64
+ emit
65
+ }) {
67
66
  // eslint-disable-next-line
68
67
  let f7Actions = null;
69
68
  // eslint-disable-next-line
@@ -34,6 +34,11 @@ declare const App: DefineComponent<
34
34
  default: () => undefined;
35
35
  },
36
36
 
37
+ mdColorScheme: {
38
+ type: any;
39
+ default: undefined;
40
+ },
41
+
37
42
  lazyModulesPath: {
38
43
  type: any;
39
44
  default: undefined;
package/components/app.js CHANGED
@@ -41,6 +41,10 @@ export default {
41
41
  type: Object,
42
42
  default: () => undefined
43
43
  },
44
+ mdColorScheme: {
45
+ type: String,
46
+ default: undefined
47
+ },
44
48
  lazyModulesPath: {
45
49
  type: String,
46
50
  default: undefined
@@ -108,10 +108,9 @@ export default {
108
108
  formatTooltipDataset: Function
109
109
  },
110
110
  emits: ['select'],
111
- setup(props, _ref) {
112
- let {
113
- emit
114
- } = _ref;
111
+ setup(props, {
112
+ emit
113
+ }) {
115
114
  let f7Tooltip = null;
116
115
  const currentIndex = ref(null);
117
116
  const hiddenDatasets = ref([]);
@@ -126,10 +125,9 @@ export default {
126
125
  });
127
126
  const summValues = computed(() => {
128
127
  const summ = [];
129
- props.datasets.filter((dataset, index) => !hiddenDatasets.value.includes(index)).forEach(_ref2 => {
130
- let {
131
- values
132
- } = _ref2;
128
+ props.datasets.filter((dataset, index) => !hiddenDatasets.value.includes(index)).forEach(({
129
+ values
130
+ }) => {
133
131
  values.forEach((value, valueIndex) => {
134
132
  if (!summ[valueIndex]) summ[valueIndex] = 0;
135
133
  summ[valueIndex] += value;
@@ -151,22 +149,20 @@ export default {
151
149
  const lastValues = datasets[0].values.map(() => 0);
152
150
  let maxValue = 0;
153
151
  if (lineChart) {
154
- datasets.forEach(_ref3 => {
155
- let {
156
- values
157
- } = _ref3;
152
+ datasets.forEach(({
153
+ values
154
+ }) => {
158
155
  const datasetMaxValue = Math.max(...values);
159
156
  if (datasetMaxValue > maxValue) maxValue = datasetMaxValue;
160
157
  });
161
158
  } else {
162
159
  maxValue = Math.max(...summValues.value);
163
160
  }
164
- datasets.filter((dataset, index) => !hiddenDatasets.value.includes(index)).forEach(_ref4 => {
165
- let {
166
- label,
167
- values,
168
- color
169
- } = _ref4;
161
+ datasets.filter((dataset, index) => !hiddenDatasets.value.includes(index)).forEach(({
162
+ label,
163
+ values,
164
+ color
165
+ }) => {
170
166
  const points = values.map((originalValue, valueIndex) => {
171
167
  lastValues[valueIndex] += originalValue;
172
168
  const value = lineChart ? originalValue : lastValues[valueIndex];
@@ -249,12 +245,11 @@ export default {
249
245
  // prettier-ignore
250
246
  const datasetsText = currentValues.length > 0 ? `
251
247
  <ul class="area-chart-tooltip-list">
252
- ${currentValues.map(_ref5 => {
253
- let {
254
- label,
255
- color,
256
- value
257
- } = _ref5;
248
+ ${currentValues.map(({
249
+ label,
250
+ color,
251
+ value
252
+ }) => {
258
253
  const valueText = props.formatTooltipDataset ? props.formatTooltipDataset(label, value, color) : `${label}: ${value}`;
259
254
  return `
260
255
  <li><span style="background-color: ${color};"></span>${valueText}</li>
@@ -45,10 +45,9 @@ export default {
45
45
  ...colorProps
46
46
  },
47
47
  emits: ['tab:hide', 'tab:show'],
48
- setup(props, _ref) {
49
- let {
50
- emit
51
- } = _ref;
48
+ setup(props, {
49
+ emit
50
+ }) {
52
51
  const elRef = ref(null);
53
52
  useTab(elRef, emit);
54
53
  const classes = computed(() => {
@@ -3,9 +3,8 @@ const _hoisted_1 = {
3
3
  ref: "elRef",
4
4
  class: "breadcrumbs-collapsed"
5
5
  };
6
- const _hoisted_2 = /*#__PURE__*/_createElementVNode("span", null, null, -1);
7
6
  function render(_ctx, _cache) {
8
- return _openBlock(), _createElementBlock("div", _hoisted_1, [_hoisted_2, _renderSlot(_ctx.$slots, "default")], 512);
7
+ return _openBlock(), _createElementBlock("div", _hoisted_1, [_cache[0] || (_cache[0] = _createElementVNode("span", null, null, -1)), _renderSlot(_ctx.$slots, "default")], 512);
9
8
  }
10
9
  import { ref } from 'vue';
11
10
  export default {
@@ -105,11 +105,10 @@ export default {
105
105
  ...colorProps
106
106
  },
107
107
  emits: ['card:beforeopen', 'card:open', 'card:opened', 'card:close', 'card:closed', 'update:expandableOpened'],
108
- setup(props, _ref) {
109
- let {
110
- emit,
111
- slots
112
- } = _ref;
108
+ setup(props, {
109
+ emit,
110
+ slots
111
+ }) {
113
112
  const elRef = ref(null);
114
113
  const open = () => {
115
114
  if (!elRef.value) return;
@@ -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-checkbox"
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-checkbox"
17
+ }, null, -1)), _renderSlot(_ctx.$slots, "default")], 2);
21
18
  }
22
19
  import { ref, computed, onMounted, watch } from 'vue';
23
20
  import { classNames } from '../shared/utils.js';
@@ -38,10 +35,9 @@ export default {
38
35
  ...colorProps
39
36
  },
40
37
  emits: ['update:checked', 'change'],
41
- setup(props, _ref) {
42
- let {
43
- emit
44
- } = _ref;
38
+ setup(props, {
39
+ emit
40
+ }) {
45
41
  const inputElRef = ref(null);
46
42
  const onChange = event => {
47
43
  emit('update:checked', event.target.checked);
@@ -17,9 +17,7 @@ function render(_ctx, _cache) {
17
17
  }, null, 8, ["icon"])) : _createCommentVNode("", true), _createTextVNode(" " + _toDisplayString(_ctx.media) + " ", 1), _renderSlot(_ctx.$slots, "media")], 2)) : _createCommentVNode("", true), _ctx.hasLabel ? (_openBlock(), _createElementBlock("div", _hoisted_1, [_createTextVNode(_toDisplayString(_ctx.text) + " ", 1), _renderSlot(_ctx.$slots, "text"), _renderSlot(_ctx.$slots, "default")])) : _createCommentVNode("", true), _ctx.deleteable ? (_openBlock(), _createElementBlock("a", {
18
18
  key: 2,
19
19
  class: "chip-delete",
20
- onClick: _cache[0] || (_cache[0] = function () {
21
- return _ctx.onDeleteClick && _ctx.onDeleteClick(...arguments);
22
- })
20
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onDeleteClick && _ctx.onDeleteClick(...args))
23
21
  })) : _createCommentVNode("", true)], 2);
24
22
  }
25
23
  import { ref, computed } from 'vue';
@@ -47,11 +45,10 @@ export default {
47
45
  ...colorProps
48
46
  },
49
47
  emits: ['delete'],
50
- setup(props, _ref) {
51
- let {
52
- slots,
53
- emit
54
- } = _ref;
48
+ setup(props, {
49
+ slots,
50
+ emit
51
+ }) {
55
52
  const elRef = ref(null);
56
53
  const onDeleteClick = event => {
57
54
  emit('delete', event);
@@ -9,9 +9,7 @@ function render(_ctx, _cache) {
9
9
  ref: "elRef",
10
10
  class: _normalizeClass(_ctx.classes),
11
11
  target: _ctx.target,
12
- onClick: _cache[0] || (_cache[0] = function () {
13
- return _ctx.onClick && _ctx.onClick(...arguments);
14
- })
12
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
15
13
  }, [_renderSlot(_ctx.$slots, "default"), _ctx.label ? (_openBlock(), _createElementBlock("span", _hoisted_2, _toDisplayString(_ctx.label), 1)) : _createCommentVNode("", true)], 10, _hoisted_1);
16
14
  }
17
15
  import { computed, ref } from 'vue';
@@ -30,10 +28,9 @@ export default {
30
28
  ...colorProps
31
29
  },
32
30
  emits: ['click'],
33
- setup(props, _ref) {
34
- let {
35
- emit
36
- } = _ref;
31
+ setup(props, {
32
+ emit
33
+ }) {
37
34
  const elRef = ref(null);
38
35
  const onClick = e => {
39
36
  emit('click', e);
package/components/fab.js CHANGED
@@ -18,11 +18,10 @@ export default {
18
18
  ...colorProps
19
19
  },
20
20
  emits: ['click'],
21
- setup(props, _ref) {
22
- let {
23
- emit,
24
- slots
25
- } = _ref;
21
+ setup(props, {
22
+ emit,
23
+ slots
24
+ }) {
26
25
  const elRef = ref(null);
27
26
  const onClick = e => {
28
27
  emit('click', e);
@@ -71,11 +71,10 @@ export default {
71
71
  ...colorProps
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
- setup(props, _ref) {
75
- let {
76
- emit,
77
- slots
78
- } = _ref;
74
+ setup(props, {
75
+ emit,
76
+ slots
77
+ }) {
79
78
  let f7Calendar = null;
80
79
  let f7ColorPicker = null;
81
80
  const inputInvalid = ref(false);
@@ -122,10 +121,7 @@ export default {
122
121
  const onInputClear = event => {
123
122
  emit('input:clear', event);
124
123
  };
125
- const onInput = function () {
126
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
127
- args[_key] = arguments[_key];
128
- }
124
+ const onInput = (...args) => {
129
125
  emit('input', ...args);
130
126
  if (inputElRef.value) {
131
127
  domValue.value = inputElRef.value.value;
@@ -137,27 +133,18 @@ export default {
137
133
  emit('update:value', inputElRef.value.value);
138
134
  }
139
135
  };
140
- const onFocus = function () {
141
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
142
- args[_key2] = arguments[_key2];
143
- }
136
+ const onFocus = (...args) => {
144
137
  emit('focus', ...args);
145
138
  inputFocused.value = true;
146
139
  };
147
- const onBlur = function () {
148
- for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
149
- args[_key3] = arguments[_key3];
150
- }
140
+ const onBlur = (...args) => {
151
141
  emit('blur', ...args);
152
142
  if ((props.validate || props.validate === '' || props.validateOnBlur || props.validateOnBlur === '') && inputElRef.value) {
153
143
  validateInput();
154
144
  }
155
145
  inputFocused.value = false;
156
146
  };
157
- const onChange = function () {
158
- for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
159
- args[_key4] = arguments[_key4];
160
- }
147
+ const onChange = (...args) => {
161
148
  emit('change', ...args);
162
149
  if (props.type === 'texteditor') {
163
150
  emit('texteditor:change', args[1]);
@@ -58,10 +58,9 @@ export default {
58
58
  ...actionsProps,
59
59
  ...routerProps
60
60
  },
61
- setup(props, _ref) {
62
- let {
63
- slots
64
- } = _ref;
61
+ setup(props, {
62
+ slots
63
+ }) {
65
64
  const elRef = ref(null);
66
65
  let f7SmartSelect = null;
67
66
  useTooltip(elRef, props);
@@ -4,9 +4,7 @@ function render(_ctx, _cache) {
4
4
  ref: "linkElRef",
5
5
  class: _ctx.linkClasses
6
6
  }, _ctx.linkAttrs, {
7
- onClick: _cache[0] || (_cache[0] = function () {
8
- return _ctx.onClick && _ctx.onClick(...arguments);
9
- })
7
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
10
8
  }), [_createTextVNode(_toDisplayString(_ctx.title) + " " + _toDisplayString(_ctx.text) + " ", 1), _renderSlot(_ctx.$slots, "default")], 16)]);
11
9
  }
12
10
  import { computed, ref } from 'vue';
@@ -32,10 +30,9 @@ export default {
32
30
  ...routerProps
33
31
  },
34
32
  emits: ['click'],
35
- setup(props, _ref) {
36
- let {
37
- emit
38
- } = _ref;
33
+ setup(props, {
34
+ emit
35
+ }) {
39
36
  const linkElRef = ref(null);
40
37
  const onClick = e => {
41
38
  emit('click', e);
@@ -41,10 +41,9 @@ export default {
41
41
  ...colorProps
42
42
  },
43
43
  emits: ['listindex:select'],
44
- setup(props, _ref) {
45
- let {
46
- emit
47
- } = _ref;
44
+ setup(props, {
45
+ emit
46
+ }) {
48
47
  let f7ListIndex = null;
49
48
  const elRef = ref(null);
50
49
  const update = () => {
@@ -83,11 +83,10 @@ export default {
83
83
  ...colorProps
84
84
  },
85
85
  emits: ['textarea:resize', 'input:notempty', 'input:empty', 'input:clear', 'texteditor:change', 'calendar:change', 'colorpicker:change', 'change', 'focus', 'blur', 'input', 'update:value'],
86
- setup(props, _ref) {
87
- let {
88
- emit,
89
- slots
90
- } = _ref;
86
+ setup(props, {
87
+ emit,
88
+ slots
89
+ }) {
91
90
  const inputInvalid = ref(false);
92
91
  const inputFocused = ref(false);
93
92
  const ListContext = inject('ListContext', {
@@ -143,10 +142,7 @@ export default {
143
142
  const onInputClear = event => {
144
143
  emit('input:clear', event);
145
144
  };
146
- const onInput = function () {
147
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
148
- args[_key] = arguments[_key];
149
- }
145
+ const onInput = (...args) => {
150
146
  emit('input', ...args);
151
147
  if (inputElRef.value) {
152
148
  domValue.value = inputElRef.value.value;
@@ -158,27 +154,18 @@ export default {
158
154
  emit('update:value', inputElRef.value.value);
159
155
  }
160
156
  };
161
- const onFocus = function () {
162
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
163
- args[_key2] = arguments[_key2];
164
- }
157
+ const onFocus = (...args) => {
165
158
  emit('focus', ...args);
166
159
  inputFocused.value = true;
167
160
  };
168
- const onBlur = function () {
169
- for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
170
- args[_key3] = arguments[_key3];
171
- }
161
+ const onBlur = (...args) => {
172
162
  emit('blur', ...args);
173
163
  if ((props.validate || props.validate === '' || props.validateOnBlur || props.validateOnBlur === '') && inputElRef.value) {
174
164
  validateInput(inputElRef.value);
175
165
  }
176
166
  inputFocused.value = false;
177
167
  };
178
- const onChange = function () {
179
- for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
180
- args[_key4] = arguments[_key4];
181
- }
168
+ const onChange = (...args) => {
182
169
  emit('change', ...args);
183
170
  if (props.type === 'texteditor') {
184
171
  emit('texteditor:change', args[0]);
@@ -6,18 +6,17 @@ import { useSmartSelect } from '../shared/use-smart-select.js';
6
6
  import { useTooltip } from '../shared/use-tooltip.js';
7
7
  import { f7ready, f7 } from '../shared/f7.js';
8
8
  import f7Badge from './badge.js';
9
- const ListItemContent = function (_temp) {
10
- let {
11
- props,
12
- slots,
13
- inputElRef,
14
- onChange,
15
- onClick,
16
- isMediaComputed,
17
- isSortableComputed,
18
- isSortableOppositeComputed,
19
- itemContentClasses
20
- } = _temp === void 0 ? {} : _temp;
9
+ const ListItemContent = ({
10
+ props,
11
+ slots,
12
+ inputElRef,
13
+ onChange,
14
+ onClick,
15
+ isMediaComputed,
16
+ isSortableComputed,
17
+ isSortableOppositeComputed,
18
+ itemContentClasses
19
+ } = {}) => {
21
20
  const {
22
21
  radio,
23
22
  checkbox,
@@ -205,11 +204,10 @@ export default {
205
204
  ...routerProps
206
205
  },
207
206
  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'],
208
- setup(props, _ref) {
209
- let {
210
- slots,
211
- emit
212
- } = _ref;
207
+ setup(props, {
208
+ slots,
209
+ emit
210
+ }) {
213
211
  const ListContext = inject('ListContext', {
214
212
  value: {
215
213
  listIsMedia: false,
@@ -361,7 +359,7 @@ export default {
361
359
  const isSortableComputed = computed(() => props.sortable === true || props.sortable === false ? props.sortable : listIsSortable.value);
362
360
  const isSortableOppositeComputed = computed(() => isSortableComputed.value && (props.sortableOpposite || listIsSortableOpposite.value));
363
361
  const linkAttrs = computed(() => ({
364
- href: props.link === true ? '' : props.link || props.href,
362
+ href: props.href === false ? undefined : props.link === true ? props.href || '' : props.link || props.href,
365
363
  target: props.target,
366
364
  'data-tab': isStringProp(props.tabLink) && props.tabLink || undefined,
367
365
  ...routerAttrs(props),
@@ -63,11 +63,10 @@ export default {
63
63
  ...colorProps
64
64
  },
65
65
  emits: ['submit', 'sortable:enable', 'sortable:disable', 'sortable:sort', 'sortable:move', 'virtual:itembeforeinsert', 'virtual:beforeclear', 'virtual:itemsbeforeinsert', 'virtual:itemsafterinsert', 'tab:hide', 'tab:show'],
66
- setup(props, _ref) {
67
- let {
68
- emit,
69
- slots
70
- } = _ref;
66
+ setup(props, {
67
+ emit,
68
+ slots
69
+ }) {
71
70
  let f7VirtualList = null;
72
71
  const elRef = ref(null);
73
72
  const onSubmit = event => {
@@ -26,10 +26,9 @@ export default {
26
26
  ...colorProps
27
27
  },
28
28
  emits: ['loginscreen:open', 'loginscreen:opened', 'loginscreen:close', 'loginscreen:closed', 'update:opened'],
29
- setup(props, _ref) {
30
- let {
31
- emit
32
- } = _ref;
29
+ setup(props, {
30
+ emit
31
+ }) {
33
32
  const f7LoginScreen = ref(null);
34
33
  // eslint-disable-next-line
35
34
  let isOpened = props.opened;