framework7-vue 7.0.0-beta.15 → 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.
- package/components/accordion-content.js +3 -3
- package/components/accordion-item.js +7 -6
- package/components/accordion-toggle.js +3 -3
- package/components/accordion.js +3 -3
- package/components/actions-button.js +12 -9
- package/components/actions-group.js +3 -3
- package/components/actions-label.js +11 -7
- package/components/actions.js +7 -6
- package/components/app.js +3 -3
- package/components/appbar.js +5 -5
- package/components/area-chart.js +48 -41
- package/components/badge.js +3 -3
- package/components/block-footer.js +3 -3
- package/components/block-header.js +3 -3
- package/components/block-title.js +5 -4
- package/components/block.js +7 -6
- package/components/breadcrumbs-collapsed.js +3 -3
- package/components/breadcrumbs-item.js +4 -4
- package/components/breadcrumbs-separator.js +2 -2
- package/components/breadcrumbs.js +2 -2
- package/components/button.js +5 -5
- package/components/card-content.js +3 -3
- package/components/card-footer.js +3 -3
- package/components/card-header.js +3 -3
- package/components/card.js +10 -8
- package/components/checkbox.js +14 -10
- package/components/chip.js +14 -11
- package/components/col.js +7 -6
- package/components/fab-backdrop.js +3 -3
- package/components/fab-button.js +13 -9
- package/components/fab-buttons.js +3 -3
- package/components/fab.js +5 -4
- package/components/gauge.js +16 -9
- package/components/icon.js +5 -5
- package/components/input.js +25 -8
- package/components/link.js +8 -7
- package/components/list-button.js +9 -6
- package/components/list-group.js +5 -4
- package/components/list-index.js +7 -6
- package/components/list-input.js +25 -8
- package/components/list-item-cell.js +3 -3
- package/components/list-item-row.js +3 -3
- package/components/list-item.js +17 -15
- package/components/list.js +5 -4
- package/components/login-screen-title.js +3 -3
- package/components/login-screen.js +7 -6
- package/components/menu-dropdown-item.js +9 -6
- package/components/menu-dropdown.js +6 -6
- package/components/menu-item.js +7 -6
- package/components/menu.js +4 -4
- package/components/message.js +47 -29
- package/components/messagebar-attachment.js +17 -10
- package/components/messagebar-attachments.js +3 -3
- package/components/messagebar-sheet-image.js +16 -11
- package/components/messagebar-sheet-item.js +3 -3
- package/components/messagebar-sheet.js +3 -3
- package/components/messagebar.js +5 -4
- package/components/messages-title.js +3 -3
- package/components/messages.js +7 -6
- package/components/nav-left.js +9 -7
- package/components/nav-right.js +3 -3
- package/components/nav-title-large.js +4 -4
- package/components/nav-title.js +4 -4
- package/components/navbar.js +12 -11
- package/components/page-content.js +14 -12
- package/components/page.js +5 -4
- package/components/panel.js +13 -8
- package/components/photo-browser.js +4 -3
- package/components/pie-chart.js +25 -21
- package/components/popover.js +9 -8
- package/components/popup.js +7 -6
- package/components/preloader.js +15 -12
- package/components/progressbar.js +7 -6
- package/components/radio.js +14 -10
- package/components/range.js +10 -8
- package/components/row.js +7 -6
- package/components/searchbar.js +29 -15
- package/components/segmented.js +3 -3
- package/components/sheet.js +5 -4
- package/components/stepper.js +24 -14
- package/components/subnavbar.js +4 -4
- package/components/swipeout-actions.js +3 -3
- package/components/swipeout-button.js +13 -8
- package/components/tab.js +7 -6
- package/components/tabs.js +7 -7
- package/components/text-editor.js +8 -7
- package/components/toggle.js +14 -10
- package/components/toolbar.js +8 -7
- package/components/treeview-item.js +11 -10
- package/components/treeview.js +3 -3
- package/components/use-icon.js +4 -4
- package/components/view.js +5 -4
- package/components/views.js +3 -3
- package/framework7-vue-bundle.js +2 -2
- package/framework7-vue-web-types.json +1 -1
- package/framework7-vue.js +2 -2
- package/package.json +1 -1
- package/shared/components-router.js +23 -20
- package/shared/f7.js +9 -1
- package/shared/modal-state-classes.js +5 -4
- package/shared/plugin.js +5 -1
- package/shared/use-icon.js +5 -1
- package/shared/use-route-props.js +4 -3
- package/shared/use-store.js +5 -5
- package/shared/utils.js +16 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { renderSlot as _renderSlot, openBlock as _openBlock,
|
|
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(),
|
|
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
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { renderSlot as _renderSlot, openBlock as _openBlock,
|
|
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(),
|
|
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
|
|
|
@@ -20,9 +20,10 @@ export default {
|
|
|
20
20
|
},
|
|
21
21
|
emits: ['accordion:beforeopen', 'accordion:open', 'accordion:opened', 'accordion:beforeclose', 'accordion:close', 'accordion:closed'],
|
|
22
22
|
|
|
23
|
-
setup(props, {
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
setup(props, _ref) {
|
|
24
|
+
let {
|
|
25
|
+
emit
|
|
26
|
+
} = _ref;
|
|
26
27
|
const elRef = ref(null);
|
|
27
28
|
|
|
28
29
|
const onBeforeOpen = (el, prevent) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { renderSlot as _renderSlot, openBlock as _openBlock,
|
|
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(),
|
|
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
|
|
package/components/accordion.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { renderSlot as _renderSlot, openBlock as _openBlock,
|
|
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(),
|
|
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
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { renderSlot as _renderSlot, openBlock as _openBlock,
|
|
1
|
+
import { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass } from "vue";
|
|
2
2
|
const _hoisted_1 = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "actions-button-media"
|
|
@@ -8,11 +8,13 @@ const _hoisted_2 = {
|
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
function render(_ctx, _cache) {
|
|
11
|
-
return _openBlock(),
|
|
11
|
+
return _openBlock(), _createElementBlock("div", {
|
|
12
12
|
ref: "elRef",
|
|
13
|
-
class: _ctx.classes,
|
|
14
|
-
onClick: _cache[
|
|
15
|
-
|
|
13
|
+
class: _normalizeClass(_ctx.classes),
|
|
14
|
+
onClick: _cache[0] || (_cache[0] = function () {
|
|
15
|
+
return _ctx.onClick && _ctx.onClick(...arguments);
|
|
16
|
+
})
|
|
17
|
+
}, [_ctx.hasMedia ? (_openBlock(), _createElementBlock("div", _hoisted_1, [_renderSlot(_ctx.$slots, "media")])) : _createCommentVNode("", true), _createElementVNode("div", _hoisted_2, [_renderSlot(_ctx.$slots, "default")])], 2);
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
import { computed, ref } from 'vue';
|
|
@@ -32,10 +34,11 @@ export default {
|
|
|
32
34
|
},
|
|
33
35
|
emits: ['click'],
|
|
34
36
|
|
|
35
|
-
setup(props, {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
setup(props, _ref) {
|
|
38
|
+
let {
|
|
39
|
+
slots,
|
|
40
|
+
emit
|
|
41
|
+
} = _ref;
|
|
39
42
|
const elRef = ref(null);
|
|
40
43
|
|
|
41
44
|
const onClick = e => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { renderSlot as _renderSlot, openBlock as _openBlock,
|
|
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(),
|
|
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
|
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { renderSlot as _renderSlot, openBlock as _openBlock,
|
|
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(),
|
|
5
|
-
class: _ctx.classes,
|
|
6
|
-
onClick: _cache[
|
|
4
|
+
return _openBlock(), _createElementBlock("div", {
|
|
5
|
+
class: _normalizeClass(_ctx.classes),
|
|
6
|
+
onClick: _cache[0] || (_cache[0] = function () {
|
|
7
|
+
return _ctx.onClick && _ctx.onClick(...arguments);
|
|
8
|
+
})
|
|
7
9
|
}, [_renderSlot(_ctx.$slots, "default")], 2);
|
|
8
10
|
}
|
|
9
11
|
|
|
@@ -19,9 +21,11 @@ export default {
|
|
|
19
21
|
},
|
|
20
22
|
emits: ['click'],
|
|
21
23
|
|
|
22
|
-
setup(props, {
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
setup(props, _ref) {
|
|
25
|
+
let {
|
|
26
|
+
emit
|
|
27
|
+
} = _ref;
|
|
28
|
+
|
|
25
29
|
const onClick = e => {
|
|
26
30
|
emit('click', e);
|
|
27
31
|
};
|
package/components/actions.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { renderSlot as _renderSlot, openBlock as _openBlock,
|
|
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(),
|
|
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
|
|
|
@@ -63,9 +63,10 @@ export default {
|
|
|
63
63
|
},
|
|
64
64
|
emits: ['actions:open', 'actions:opened', 'actions:close', 'actions:closed', 'update:opened'],
|
|
65
65
|
|
|
66
|
-
setup(props, {
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
setup(props, _ref) {
|
|
67
|
+
let {
|
|
68
|
+
emit
|
|
69
|
+
} = _ref;
|
|
69
70
|
// eslint-disable-next-line
|
|
70
71
|
let f7Actions = null; // eslint-disable-next-line
|
|
71
72
|
|
package/components/app.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock,
|
|
1
|
+
import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, createVNode as _createVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
2
|
|
|
3
3
|
function render(_ctx, _cache) {
|
|
4
4
|
const _component_routable_modals = _resolveComponent("routable-modals");
|
|
5
5
|
|
|
6
|
-
return _openBlock(),
|
|
6
|
+
return _openBlock(), _createElementBlock("div", {
|
|
7
7
|
id: "framework7-root",
|
|
8
8
|
ref: "elRef",
|
|
9
|
-
class: _ctx.classes
|
|
9
|
+
class: _normalizeClass(_ctx.classes)
|
|
10
10
|
}, [_renderSlot(_ctx.$slots, "default"), _createVNode(_component_routable_modals)], 2);
|
|
11
11
|
}
|
|
12
12
|
|
package/components/appbar.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { renderSlot as _renderSlot, openBlock as _openBlock,
|
|
1
|
+
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode } from "vue";
|
|
2
2
|
|
|
3
3
|
function render(_ctx, _cache) {
|
|
4
|
-
return _openBlock(),
|
|
5
|
-
class: _ctx.classes
|
|
6
|
-
}, [_renderSlot(_ctx.$slots, "before-inner"), _ctx.inner ? (_openBlock(),
|
|
4
|
+
return _openBlock(), _createElementBlock("div", {
|
|
5
|
+
class: _normalizeClass(_ctx.classes)
|
|
6
|
+
}, [_renderSlot(_ctx.$slots, "before-inner"), _ctx.inner ? (_openBlock(), _createElementBlock("div", {
|
|
7
7
|
key: 0,
|
|
8
|
-
class: _ctx.innerClasses
|
|
8
|
+
class: _normalizeClass(_ctx.innerClasses)
|
|
9
9
|
}, [_renderSlot(_ctx.$slots, "default")], 2)) : _renderSlot(_ctx.$slots, "default", {
|
|
10
10
|
key: 1
|
|
11
11
|
}), _renderSlot(_ctx.$slots, "after-inner")], 2);
|
package/components/area-chart.js
CHANGED
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock,
|
|
2
|
-
const _hoisted_1 =
|
|
1
|
+
import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, resolveDynamicComponent as _resolveDynamicComponent, createBlock as _createBlock, normalizeClass as _normalizeClass, toDisplayString as _toDisplayString, createCommentVNode as _createCommentVNode, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, renderSlot as _renderSlot } from "vue";
|
|
2
|
+
const _hoisted_1 = ["width", "height", "viewBox"];
|
|
3
|
+
const _hoisted_2 = ["data-index", "x1", "x2", "y2"];
|
|
4
|
+
const _hoisted_3 = {
|
|
3
5
|
key: 0,
|
|
4
6
|
class: "area-chart-axis"
|
|
5
7
|
};
|
|
6
|
-
const
|
|
8
|
+
const _hoisted_4 = {
|
|
7
9
|
key: 0
|
|
8
10
|
};
|
|
9
|
-
const
|
|
11
|
+
const _hoisted_5 = {
|
|
10
12
|
key: 1,
|
|
11
13
|
class: "area-chart-legend"
|
|
12
14
|
};
|
|
13
15
|
|
|
14
16
|
function render(_ctx, _cache) {
|
|
15
|
-
return _openBlock(),
|
|
17
|
+
return _openBlock(), _createElementBlock("div", {
|
|
16
18
|
ref: "elRef",
|
|
17
|
-
class: _ctx.classes
|
|
18
|
-
}, [(_openBlock(),
|
|
19
|
+
class: _normalizeClass(_ctx.classes)
|
|
20
|
+
}, [(_openBlock(), _createElementBlock("svg", {
|
|
19
21
|
ref: "svgElRef",
|
|
20
22
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21
23
|
width: _ctx.width,
|
|
22
24
|
height: _ctx.height,
|
|
23
25
|
viewBox: `0 0 ${_ctx.width} ${_ctx.height}`,
|
|
24
26
|
preserveAspectRatio: "none"
|
|
25
|
-
}, [(_openBlock(true),
|
|
27
|
+
}, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.chartData, (data, index) => {
|
|
26
28
|
return _openBlock(), _createBlock(_resolveDynamicComponent(_ctx.ChartTag), {
|
|
27
29
|
key: `${_ctx.ChartTag}-${index}`,
|
|
28
30
|
fill: _ctx.lineChart ? undefined : data.color,
|
|
@@ -31,8 +33,8 @@ function render(_ctx, _cache) {
|
|
|
31
33
|
points: _ctx.lineChart ? undefined : data.points,
|
|
32
34
|
d: _ctx.lineChart ? data.points : undefined
|
|
33
35
|
}, null, 8, ["fill", "stroke", "points", "d"]);
|
|
34
|
-
}), 128)), (_openBlock(true),
|
|
35
|
-
return _openBlock(),
|
|
36
|
+
}), 128)), (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.verticalLines, (line, index) => {
|
|
37
|
+
return _openBlock(), _createElementBlock("line", {
|
|
36
38
|
key: `line-${index}`,
|
|
37
39
|
"data-index": index,
|
|
38
40
|
fill: "#000",
|
|
@@ -40,28 +42,28 @@ function render(_ctx, _cache) {
|
|
|
40
42
|
y1: 0,
|
|
41
43
|
x2: line,
|
|
42
44
|
y2: _ctx.height,
|
|
43
|
-
class: _ctx.classNames({
|
|
45
|
+
class: _normalizeClass(_ctx.classNames({
|
|
44
46
|
'area-chart-current-line': _ctx.currentIndex === index
|
|
45
|
-
})
|
|
46
|
-
}, null, 10,
|
|
47
|
-
}), 128))], 8,
|
|
48
|
-
return _openBlock(),
|
|
47
|
+
}))
|
|
48
|
+
}, null, 10, _hoisted_2);
|
|
49
|
+
}), 128))], 8, _hoisted_1)), _ctx.axis ? (_openBlock(), _createElementBlock("div", _hoisted_3, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.axisLabels, (label, index) => {
|
|
50
|
+
return _openBlock(), _createElementBlock("span", {
|
|
49
51
|
key: index
|
|
50
|
-
}, [_ctx.visibleLegends.includes(label) ? (_openBlock(),
|
|
51
|
-
}), 128))])) : _createCommentVNode("", true), _ctx.legend ? (_openBlock(),
|
|
52
|
+
}, [_ctx.visibleLegends.includes(label) ? (_openBlock(), _createElementBlock("span", _hoisted_4, _toDisplayString(_ctx.formatAxisLabelMethod(label)), 1)) : _createCommentVNode("", true)]);
|
|
53
|
+
}), 128))])) : _createCommentVNode("", true), _ctx.legend ? (_openBlock(), _createElementBlock("div", _hoisted_5, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.datasets, (dataset, index) => {
|
|
52
54
|
return _openBlock(), _createBlock(_resolveDynamicComponent(_ctx.LegendItemTag), {
|
|
53
55
|
key: index,
|
|
54
|
-
class: _ctx.classNames('area-chart-legend-item', {
|
|
56
|
+
class: _normalizeClass(_ctx.classNames('area-chart-legend-item', {
|
|
55
57
|
'area-chart-legend-item-hidden': _ctx.hiddenDatasets.includes(index),
|
|
56
58
|
'area-chart-legend-button': _ctx.toggleDatasets
|
|
57
|
-
}),
|
|
59
|
+
})),
|
|
58
60
|
type: _ctx.toggleDatasets ? 'button' : undefined,
|
|
59
61
|
onClick: $event => _ctx.toggleDataset(index)
|
|
60
62
|
}, {
|
|
61
|
-
default: _withCtx(() => [
|
|
62
|
-
style: {
|
|
63
|
+
default: _withCtx(() => [_createElementVNode("span", {
|
|
64
|
+
style: _normalizeStyle({
|
|
63
65
|
backgroundColor: dataset.color
|
|
64
|
-
}
|
|
66
|
+
})
|
|
65
67
|
}, null, 4), _createTextVNode(" " + _toDisplayString(_ctx.formatLegendLabelMethod(dataset.label)), 1)]),
|
|
66
68
|
_: 2
|
|
67
69
|
}, 1032, ["class", "type", "onClick"]);
|
|
@@ -109,9 +111,10 @@ export default {
|
|
|
109
111
|
},
|
|
110
112
|
emits: ['select'],
|
|
111
113
|
|
|
112
|
-
setup(props, {
|
|
113
|
-
|
|
114
|
-
|
|
114
|
+
setup(props, _ref) {
|
|
115
|
+
let {
|
|
116
|
+
emit
|
|
117
|
+
} = _ref;
|
|
115
118
|
let f7Tooltip = null;
|
|
116
119
|
const currentIndex = ref(null);
|
|
117
120
|
const hiddenDatasets = ref([]);
|
|
@@ -126,9 +129,10 @@ export default {
|
|
|
126
129
|
});
|
|
127
130
|
const summValues = computed(() => {
|
|
128
131
|
const summ = [];
|
|
129
|
-
props.datasets.filter((dataset, index) => !hiddenDatasets.value.includes(index)).forEach(
|
|
130
|
-
|
|
131
|
-
|
|
132
|
+
props.datasets.filter((dataset, index) => !hiddenDatasets.value.includes(index)).forEach(_ref2 => {
|
|
133
|
+
let {
|
|
134
|
+
values
|
|
135
|
+
} = _ref2;
|
|
132
136
|
values.forEach((value, valueIndex) => {
|
|
133
137
|
if (!summ[valueIndex]) summ[valueIndex] = 0;
|
|
134
138
|
summ[valueIndex] += value;
|
|
@@ -153,9 +157,10 @@ export default {
|
|
|
153
157
|
let maxValue = 0;
|
|
154
158
|
|
|
155
159
|
if (lineChart) {
|
|
156
|
-
datasets.forEach(
|
|
157
|
-
|
|
158
|
-
|
|
160
|
+
datasets.forEach(_ref3 => {
|
|
161
|
+
let {
|
|
162
|
+
values
|
|
163
|
+
} = _ref3;
|
|
159
164
|
const datasetMaxValue = Math.max(...values);
|
|
160
165
|
if (datasetMaxValue > maxValue) maxValue = datasetMaxValue;
|
|
161
166
|
});
|
|
@@ -163,11 +168,12 @@ export default {
|
|
|
163
168
|
maxValue = Math.max(...summValues.value);
|
|
164
169
|
}
|
|
165
170
|
|
|
166
|
-
datasets.filter((dataset, index) => !hiddenDatasets.value.includes(index)).forEach(
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
+
datasets.filter((dataset, index) => !hiddenDatasets.value.includes(index)).forEach(_ref4 => {
|
|
172
|
+
let {
|
|
173
|
+
label,
|
|
174
|
+
values,
|
|
175
|
+
color
|
|
176
|
+
} = _ref4;
|
|
171
177
|
const points = values.map((originalValue, valueIndex) => {
|
|
172
178
|
lastValues[valueIndex] += originalValue;
|
|
173
179
|
const value = lineChart ? originalValue : lastValues[valueIndex];
|
|
@@ -266,11 +272,12 @@ export default {
|
|
|
266
272
|
|
|
267
273
|
const datasetsText = currentValues.length > 0 ? `
|
|
268
274
|
<ul class="area-chart-tooltip-list">
|
|
269
|
-
${currentValues.map(
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
275
|
+
${currentValues.map(_ref5 => {
|
|
276
|
+
let {
|
|
277
|
+
label,
|
|
278
|
+
color,
|
|
279
|
+
value
|
|
280
|
+
} = _ref5;
|
|
274
281
|
const valueText = props.formatTooltipDataset ? props.formatTooltipDataset(label, value, color) : `${label}: ${value}`;
|
|
275
282
|
return `
|
|
276
283
|
<li><span style="background-color: ${color};"></span>${valueText}</li>
|
package/components/badge.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { renderSlot as _renderSlot, openBlock as _openBlock,
|
|
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(),
|
|
4
|
+
return _openBlock(), _createElementBlock("span", {
|
|
5
5
|
ref: "elRef",
|
|
6
|
-
class: _ctx.classes
|
|
6
|
+
class: _normalizeClass(_ctx.classes)
|
|
7
7
|
}, [_renderSlot(_ctx.$slots, "default")], 2);
|
|
8
8
|
}
|
|
9
9
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { renderSlot as _renderSlot, openBlock as _openBlock,
|
|
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(),
|
|
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
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { renderSlot as _renderSlot, openBlock as _openBlock,
|
|
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(),
|
|
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
|
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { renderSlot as _renderSlot, openBlock as _openBlock,
|
|
1
|
+
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
|
+
const _hoisted_1 = ["medium"];
|
|
2
3
|
|
|
3
4
|
function render(_ctx, _cache) {
|
|
4
|
-
return _openBlock(),
|
|
5
|
-
class: _ctx.classes,
|
|
5
|
+
return _openBlock(), _createElementBlock("div", {
|
|
6
|
+
class: _normalizeClass(_ctx.classes),
|
|
6
7
|
medium: _ctx.medium
|
|
7
|
-
}, [_renderSlot(_ctx.$slots, "default")], 10,
|
|
8
|
+
}, [_renderSlot(_ctx.$slots, "default")], 10, _hoisted_1);
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
import { computed } from 'vue';
|
package/components/block.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { renderSlot as _renderSlot, openBlock as _openBlock,
|
|
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(),
|
|
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
|
|
|
@@ -35,9 +35,10 @@ export default {
|
|
|
35
35
|
},
|
|
36
36
|
emits: ['tab:hide', 'tab:show'],
|
|
37
37
|
|
|
38
|
-
setup(props, {
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
setup(props, _ref) {
|
|
39
|
+
let {
|
|
40
|
+
emit
|
|
41
|
+
} = _ref;
|
|
41
42
|
const elRef = ref(null);
|
|
42
43
|
useTab(elRef, emit);
|
|
43
44
|
const classes = computed(() => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementVNode as _createElementVNode, renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
2
|
const _hoisted_1 = {
|
|
3
3
|
ref: "elRef",
|
|
4
4
|
class: "breadcrumbs-collapsed"
|
|
5
5
|
};
|
|
6
6
|
|
|
7
|
-
const _hoisted_2 = /*#__PURE__*/
|
|
7
|
+
const _hoisted_2 = /*#__PURE__*/_createElementVNode("span", null, null, -1);
|
|
8
8
|
|
|
9
9
|
function render(_ctx, _cache) {
|
|
10
|
-
return _openBlock(),
|
|
10
|
+
return _openBlock(), _createElementBlock("div", _hoisted_1, [_hoisted_2, _renderSlot(_ctx.$slots, "default")], 512);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
import { ref } from 'vue';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { renderSlot as _renderSlot, openBlock as _openBlock,
|
|
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(),
|
|
4
|
+
return _openBlock(), _createElementBlock("div", {
|
|
5
5
|
ref: "elRef",
|
|
6
|
-
class: {
|
|
6
|
+
class: _normalizeClass({
|
|
7
7
|
'breadcrumbs-item': true,
|
|
8
8
|
'breadcrumbs-item-active': _ctx.active
|
|
9
|
-
}
|
|
9
|
+
})
|
|
10
10
|
}, [_renderSlot(_ctx.$slots, "default")], 2);
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { openBlock as _openBlock,
|
|
1
|
+
import { openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
2
|
const _hoisted_1 = {
|
|
3
3
|
ref: "elRef",
|
|
4
4
|
class: "breadcrumbs-separator"
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
function render(_ctx, _cache) {
|
|
8
|
-
return _openBlock(),
|
|
8
|
+
return _openBlock(), _createElementBlock("div", _hoisted_1, null, 512);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
import { ref } from 'vue';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { renderSlot as _renderSlot, openBlock as _openBlock,
|
|
1
|
+
import { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
2
|
const _hoisted_1 = {
|
|
3
3
|
ref: "elRef",
|
|
4
4
|
class: "breadcrumbs"
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
function render(_ctx, _cache) {
|
|
8
|
-
return _openBlock(),
|
|
8
|
+
return _openBlock(), _createElementBlock("div", _hoisted_1, [_renderSlot(_ctx.$slots, "default")], 512);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
import { ref } from 'vue';
|
package/components/button.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, renderSlot as _renderSlot, Fragment as _Fragment, resolveDynamicComponent as _resolveDynamicComponent, mergeProps as _mergeProps, withCtx as _withCtx } from "vue";
|
|
1
|
+
import { resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, renderSlot as _renderSlot, createElementVNode as _createElementVNode, Fragment as _Fragment, resolveDynamicComponent as _resolveDynamicComponent, mergeProps as _mergeProps, withCtx as _withCtx } from "vue";
|
|
2
2
|
const _hoisted_1 = {
|
|
3
3
|
key: 1
|
|
4
4
|
};
|
|
@@ -15,20 +15,20 @@ function render(_ctx, _cache) {
|
|
|
15
15
|
ref: "elRef",
|
|
16
16
|
class: _ctx.classesComputed
|
|
17
17
|
}, _ctx.attrs), {
|
|
18
|
-
default: _withCtx(() => [_ctx.preloader ? (_openBlock(),
|
|
18
|
+
default: _withCtx(() => [_ctx.preloader ? (_openBlock(), _createElementBlock(_Fragment, {
|
|
19
19
|
key: 0
|
|
20
20
|
}, [_createVNode(_component_f7_preloader, {
|
|
21
21
|
size: _ctx.preloaderSize,
|
|
22
22
|
color: _ctx.preloaderColor
|
|
23
|
-
}, null, 8, ["size", "color"]),
|
|
23
|
+
}, null, 8, ["size", "color"]), _createElementVNode("span", null, [_ctx.icon ? (_openBlock(), _createBlock(_component_f7_use_icon, {
|
|
24
24
|
key: 0,
|
|
25
25
|
icon: _ctx.icon
|
|
26
|
-
}, null, 8, ["icon"])) : _createCommentVNode("", true), _ctx.text ? (_openBlock(),
|
|
26
|
+
}, null, 8, ["icon"])) : _createCommentVNode("", true), _ctx.text ? (_openBlock(), _createElementBlock("span", _hoisted_1, _toDisplayString(_ctx.text), 1)) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "default")])], 64)) : (_openBlock(), _createElementBlock(_Fragment, {
|
|
27
27
|
key: 1
|
|
28
28
|
}, [_ctx.icon ? (_openBlock(), _createBlock(_component_f7_use_icon, {
|
|
29
29
|
key: 0,
|
|
30
30
|
icon: _ctx.icon
|
|
31
|
-
}, null, 8, ["icon"])) : _createCommentVNode("", true), _ctx.text ? (_openBlock(),
|
|
31
|
+
}, null, 8, ["icon"])) : _createCommentVNode("", true), _ctx.text ? (_openBlock(), _createElementBlock("span", _hoisted_2, _toDisplayString(_ctx.text), 1)) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "default")], 64))]),
|
|
32
32
|
_: 3
|
|
33
33
|
}, 16, ["class"]);
|
|
34
34
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { renderSlot as _renderSlot, openBlock as _openBlock,
|
|
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(),
|
|
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
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { renderSlot as _renderSlot, openBlock as _openBlock,
|
|
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(),
|
|
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
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { renderSlot as _renderSlot, openBlock as _openBlock,
|
|
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(),
|
|
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
|
|