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.
- package/components/accordion-item.js +3 -4
- package/components/actions-button.js +5 -8
- package/components/actions-label.js +4 -7
- package/components/actions.js +3 -4
- package/components/app.d.ts +5 -0
- package/components/app.js +4 -0
- package/components/area-chart.js +19 -24
- package/components/block.js +3 -4
- package/components/breadcrumbs-collapsed.js +1 -2
- package/components/card.js +4 -5
- package/components/checkbox.js +7 -11
- package/components/chip.js +5 -8
- package/components/fab-button.js +4 -7
- package/components/fab.js +4 -5
- package/components/input.js +8 -21
- package/components/link.js +3 -4
- package/components/list-button.js +4 -7
- package/components/list-index.js +3 -4
- package/components/list-input.js +8 -21
- package/components/list-item.js +16 -18
- package/components/list.js +4 -5
- package/components/login-screen.js +3 -4
- package/components/message.js +13 -32
- package/components/messagebar-attachment.js +5 -10
- package/components/messagebar-sheet-image.js +9 -13
- package/components/messagebar.d.ts +6 -6
- package/components/messagebar.js +9 -8
- package/components/messages.js +3 -4
- package/components/nav-left.d.ts +0 -4
- package/components/nav-left.js +5 -13
- package/components/nav-right.d.ts +0 -4
- package/components/nav-right.js +1 -4
- package/components/nav-title.d.ts +0 -4
- package/components/nav-title.js +1 -4
- package/components/navbar.d.ts +0 -5
- package/components/navbar.js +10 -43
- package/components/page-content.js +10 -13
- package/components/page.js +4 -5
- package/components/panel.js +4 -8
- package/components/photo-browser.d.ts +0 -5
- package/components/photo-browser.js +3 -8
- package/components/pie-chart.js +12 -14
- package/components/popover.d.ts +0 -5
- package/components/popover.js +5 -16
- package/components/popup.js +3 -4
- package/components/preloader.js +9 -13
- package/components/radio.js +7 -11
- package/components/range.js +3 -4
- package/components/searchbar.js +18 -27
- package/components/sheet.js +4 -5
- package/components/stepper.js +7 -16
- package/components/subnavbar.d.ts +0 -4
- package/components/subnavbar.js +1 -4
- package/components/swipeout-button.js +4 -7
- package/components/tab.js +3 -4
- package/components/text-editor.js +3 -4
- package/components/toggle.js +7 -11
- package/components/toolbar-pane.d.ts +19 -0
- package/components/toolbar-pane.js +22 -0
- package/components/toolbar.js +3 -4
- package/components/treeview-item.js +4 -5
- package/components/view.d.ts +0 -10
- package/components/view.js +4 -15
- package/framework7-vue-bundle.js +3 -1
- package/framework7-vue.d.ts +2 -1
- package/framework7-vue.js +5 -4
- package/package.json +2 -2
- package/shared/components-router.js +20 -23
- package/shared/f7.js +1 -7
- package/shared/modal-state-classes.js +4 -5
- package/shared/plugin.js +1 -4
- package/shared/use-icon.js +1 -4
- package/shared/use-route-props.js +3 -4
- package/shared/use-store.js +5 -5
- package/shared/utils.js +3 -12
- 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,
|
|
21
|
-
|
|
22
|
-
|
|
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] =
|
|
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,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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] =
|
|
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,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} = _ref;
|
|
19
|
+
setup(props, {
|
|
20
|
+
emit
|
|
21
|
+
}) {
|
|
25
22
|
const onClick = e => {
|
|
26
23
|
emit('click', e);
|
|
27
24
|
};
|
package/components/actions.js
CHANGED
|
@@ -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,
|
|
64
|
-
|
|
65
|
-
|
|
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
|
package/components/app.d.ts
CHANGED
package/components/app.js
CHANGED
package/components/area-chart.js
CHANGED
|
@@ -108,10 +108,9 @@ export default {
|
|
|
108
108
|
formatTooltipDataset: Function
|
|
109
109
|
},
|
|
110
110
|
emits: ['select'],
|
|
111
|
-
setup(props,
|
|
112
|
-
|
|
113
|
-
|
|
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(
|
|
130
|
-
|
|
131
|
-
|
|
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(
|
|
155
|
-
|
|
156
|
-
|
|
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(
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
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(
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
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>
|
package/components/block.js
CHANGED
|
@@ -45,10 +45,9 @@ export default {
|
|
|
45
45
|
...colorProps
|
|
46
46
|
},
|
|
47
47
|
emits: ['tab:hide', 'tab:show'],
|
|
48
|
-
setup(props,
|
|
49
|
-
|
|
50
|
-
|
|
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, [
|
|
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 {
|
package/components/card.js
CHANGED
|
@@ -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,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
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;
|
package/components/checkbox.js
CHANGED
|
@@ -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] =
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}, null,
|
|
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,
|
|
42
|
-
|
|
43
|
-
|
|
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);
|
package/components/chip.js
CHANGED
|
@@ -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] =
|
|
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,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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);
|
package/components/fab-button.js
CHANGED
|
@@ -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] =
|
|
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,
|
|
34
|
-
|
|
35
|
-
|
|
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
package/components/input.js
CHANGED
|
@@ -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,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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]);
|
package/components/link.js
CHANGED
|
@@ -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] =
|
|
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,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
} = _ref;
|
|
33
|
+
setup(props, {
|
|
34
|
+
emit
|
|
35
|
+
}) {
|
|
39
36
|
const linkElRef = ref(null);
|
|
40
37
|
const onClick = e => {
|
|
41
38
|
emit('click', e);
|
package/components/list-index.js
CHANGED
package/components/list-input.js
CHANGED
|
@@ -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,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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]);
|
package/components/list-item.js
CHANGED
|
@@ -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 =
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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,
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
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),
|
package/components/list.js
CHANGED
|
@@ -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,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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,
|
|
30
|
-
|
|
31
|
-
|
|
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;
|