framework7-vue 7.1.5 → 8.0.0-beta.2
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 +2 -5
- package/components/accordion-item.js +0 -13
- package/components/accordion-toggle.js +2 -5
- package/components/accordion.js +0 -4
- package/components/actions-button.d.ts +1 -1
- package/components/actions-button.js +2 -9
- package/components/actions-group.js +2 -5
- package/components/actions-label.d.ts +1 -1
- package/components/actions-label.js +2 -8
- package/components/actions.js +2 -14
- package/components/app.d.ts +7 -12
- package/components/app.js +11 -24
- package/components/appbar.js +0 -4
- package/components/area-chart.js +4 -41
- package/components/badge.js +0 -4
- package/components/block-footer.js +2 -5
- package/components/block-header.js +2 -5
- package/components/block-title.js +0 -4
- package/components/block.d.ts +61 -9
- package/components/block.js +52 -17
- package/components/breadcrumbs-collapsed.js +0 -5
- package/components/breadcrumbs-item.js +0 -4
- package/components/breadcrumbs-separator.js +0 -4
- package/components/breadcrumbs.js +0 -4
- package/components/button.d.ts +9 -25
- package/components/button.js +9 -25
- package/components/card-content.js +0 -4
- package/components/card-footer.js +2 -5
- package/components/card-header.js +2 -5
- package/components/card.d.ts +17 -5
- package/components/card.js +10 -20
- package/components/checkbox.js +0 -7
- package/components/chip.d.ts +0 -4
- package/components/chip.js +0 -7
- package/components/col.js +0 -6
- package/components/fab-backdrop.js +2 -5
- package/components/fab-button.js +0 -6
- package/components/fab-buttons.js +0 -4
- package/components/fab.js +0 -9
- package/components/gauge.js +0 -4
- package/components/icon.d.ts +0 -4
- package/components/icon.js +1 -18
- package/components/input.js +0 -56
- package/components/link.d.ts +0 -4
- package/components/link.js +4 -13
- package/components/list-button.js +0 -6
- package/components/list-group.js +0 -4
- package/components/list-index.d.ts +0 -5
- package/components/list-index.js +0 -14
- package/components/list-input.d.ts +0 -4
- package/components/list-input.js +0 -53
- package/components/list-item-cell.js +2 -5
- package/components/list-item-row.js +2 -5
- package/components/list-item.d.ts +4 -4
- package/components/list-item.js +12 -52
- package/components/list.d.ts +71 -23
- package/components/list.js +42 -33
- package/components/login-screen-title.js +2 -5
- package/components/login-screen.js +2 -17
- package/components/menu-dropdown-item.js +0 -6
- package/components/menu-dropdown.js +0 -4
- package/components/menu-item.js +0 -14
- package/components/menu.js +2 -5
- package/components/message.js +0 -16
- package/components/messagebar-attachment.js +0 -7
- package/components/messagebar-attachments.js +2 -5
- package/components/messagebar-sheet-image.js +7 -15
- package/components/messagebar-sheet-item.js +2 -5
- package/components/messagebar-sheet.js +2 -5
- package/components/messagebar.js +0 -16
- package/components/messages-title.js +2 -5
- package/components/messages.js +0 -13
- package/components/nav-left.js +0 -9
- package/components/nav-right.js +0 -4
- package/components/nav-title-large.js +2 -5
- package/components/nav-title.js +0 -4
- package/components/navbar.d.ts +5 -8
- package/components/navbar.js +6 -29
- package/components/page-content.js +0 -16
- package/components/page.d.ts +0 -4
- package/components/page.js +2 -67
- package/components/panel.d.ts +4 -0
- package/components/panel.js +2 -23
- package/components/photo-browser.js +2 -18
- package/components/pie-chart.js +4 -20
- package/components/popover.d.ts +5 -0
- package/components/popover.js +8 -16
- package/components/popup.js +3 -19
- package/components/preloader.js +4 -23
- package/components/progressbar.js +0 -6
- package/components/radio.js +0 -7
- package/components/range.js +0 -7
- package/components/routable-modals.js +0 -7
- package/components/row.js +0 -6
- package/components/searchbar.d.ts +5 -8
- package/components/searchbar.js +7 -28
- package/components/segmented.d.ts +0 -12
- package/components/segmented.js +2 -12
- package/components/sheet.js +2 -18
- package/components/stepper.d.ts +0 -20
- package/components/stepper.js +1 -27
- package/components/subnavbar.js +0 -4
- package/components/swipeout-actions.js +0 -6
- package/components/swipeout-button.js +0 -6
- package/components/tab.js +2 -15
- package/components/tabs.js +0 -4
- package/components/text-editor.js +0 -17
- package/components/toggle.js +0 -9
- package/components/toolbar.d.ts +4 -21
- package/components/toolbar.js +12 -34
- package/components/treeview-item.d.ts +0 -4
- package/components/treeview-item.js +0 -13
- package/components/treeview.js +2 -5
- package/components/use-icon.js +0 -4
- package/components/view.d.ts +0 -28
- package/components/view.js +7 -51
- package/components/views.js +0 -4
- package/framework7-vue-bundle.js +1 -34
- package/framework7-vue-web-types.json +1 -1
- package/framework7-vue.d.ts +2 -14
- package/framework7-vue.js +3 -14
- package/package.json +1 -1
- package/shared/components-router.js +0 -32
- package/shared/f7.js +5 -19
- package/shared/get-router-initial-component.js +0 -4
- package/shared/mixins.js +3 -15
- package/shared/plugin.js +2 -8
- package/shared/router-open-in.js +4 -13
- package/shared/use-icon.js +1 -6
- package/shared/use-smart-select.js +0 -1
- package/shared/use-store.js +2 -6
- package/shared/use-tab.js +0 -2
- package/shared/use-theme.js +0 -2
- package/shared/use-tooltip.js +0 -2
- package/shared/utils.js +0 -14
- package/components/appbar.d.ts +0 -67
- package/components/col.d.ts +0 -94
- package/components/list-item-cell.d.ts +0 -46
- package/components/list-item-row.d.ts +0 -46
- package/components/menu-dropdown-item.d.ts +0 -223
- package/components/menu-dropdown.d.ts +0 -66
- package/components/menu-item.d.ts +0 -267
- package/components/menu.d.ts +0 -46
- package/components/row.d.ts +0 -73
- package/components/swiper-slide.d.ts +0 -5
- package/components/swiper.d.ts +0 -5
package/components/area-chart.js
CHANGED
|
@@ -12,7 +12,6 @@ const _hoisted_5 = {
|
|
|
12
12
|
key: 1,
|
|
13
13
|
class: "area-chart-legend"
|
|
14
14
|
};
|
|
15
|
-
|
|
16
15
|
function render(_ctx, _cache) {
|
|
17
16
|
return _openBlock(), _createElementBlock("div", {
|
|
18
17
|
ref: "elRef",
|
|
@@ -69,7 +68,6 @@ function render(_ctx, _cache) {
|
|
|
69
68
|
}, 1032, ["class", "type", "onClick"]);
|
|
70
69
|
}), 128))])) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "default")], 2);
|
|
71
70
|
}
|
|
72
|
-
|
|
73
71
|
import { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue';
|
|
74
72
|
import { classNames } from '../shared/utils.js';
|
|
75
73
|
import { f7 } from '../shared/f7.js';
|
|
@@ -110,7 +108,6 @@ export default {
|
|
|
110
108
|
formatTooltipDataset: Function
|
|
111
109
|
},
|
|
112
110
|
emits: ['select'],
|
|
113
|
-
|
|
114
111
|
setup(props, _ref) {
|
|
115
112
|
let {
|
|
116
113
|
emit
|
|
@@ -148,14 +145,11 @@ export default {
|
|
|
148
145
|
height
|
|
149
146
|
} = props;
|
|
150
147
|
const data = [];
|
|
151
|
-
|
|
152
148
|
if (!datasets.length) {
|
|
153
149
|
return data;
|
|
154
150
|
}
|
|
155
|
-
|
|
156
151
|
const lastValues = datasets[0].values.map(() => 0);
|
|
157
152
|
let maxValue = 0;
|
|
158
|
-
|
|
159
153
|
if (lineChart) {
|
|
160
154
|
datasets.forEach(_ref3 => {
|
|
161
155
|
let {
|
|
@@ -167,7 +161,6 @@ export default {
|
|
|
167
161
|
} else {
|
|
168
162
|
maxValue = Math.max(...summValues.value);
|
|
169
163
|
}
|
|
170
|
-
|
|
171
164
|
datasets.filter((dataset, index) => !hiddenDatasets.value.includes(index)).forEach(_ref4 => {
|
|
172
165
|
let {
|
|
173
166
|
label,
|
|
@@ -179,18 +172,14 @@ export default {
|
|
|
179
172
|
const value = lineChart ? originalValue : lastValues[valueIndex];
|
|
180
173
|
const x = valueIndex / (values.length - 1) * width;
|
|
181
174
|
const y = height - value / maxValue * height;
|
|
182
|
-
|
|
183
175
|
if (lineChart) {
|
|
184
176
|
return `${valueIndex === 0 ? 'M' : 'L'}${x},${y}`;
|
|
185
177
|
}
|
|
186
|
-
|
|
187
178
|
return `${x} ${y}`;
|
|
188
179
|
});
|
|
189
|
-
|
|
190
180
|
if (!lineChart) {
|
|
191
181
|
points.push(`${width} ${height} 0 ${height}`);
|
|
192
182
|
}
|
|
193
|
-
|
|
194
183
|
data.push({
|
|
195
184
|
label,
|
|
196
185
|
points: points.join(' '),
|
|
@@ -201,11 +190,9 @@ export default {
|
|
|
201
190
|
});
|
|
202
191
|
const verticalLines = computed(() => {
|
|
203
192
|
const lines = [];
|
|
204
|
-
|
|
205
193
|
if (!props.datasets.length) {
|
|
206
194
|
return lines;
|
|
207
195
|
}
|
|
208
|
-
|
|
209
196
|
const values = props.datasets[0].values;
|
|
210
197
|
values.forEach((value, valueIndex) => {
|
|
211
198
|
const x = valueIndex / (values.length - 1) * props.width;
|
|
@@ -213,38 +200,30 @@ export default {
|
|
|
213
200
|
});
|
|
214
201
|
return lines;
|
|
215
202
|
});
|
|
216
|
-
|
|
217
203
|
const toggleDataset = index => {
|
|
218
204
|
if (!props.toggleDatasets) return;
|
|
219
|
-
|
|
220
205
|
if (hiddenDatasets.value.includes(index)) {
|
|
221
206
|
hiddenDatasets.value.splice(hiddenDatasets.value.indexOf(index), 1);
|
|
222
207
|
} else {
|
|
223
208
|
hiddenDatasets.value.push(index);
|
|
224
209
|
}
|
|
225
|
-
|
|
226
210
|
hiddenDatasets.value = [...hiddenDatasets.value];
|
|
227
211
|
};
|
|
228
|
-
|
|
229
212
|
const formatAxisLabelMethod = label => {
|
|
230
213
|
if (props.formatAxisLabel) return props.formatAxisLabel(label);
|
|
231
214
|
return label;
|
|
232
215
|
};
|
|
233
|
-
|
|
234
216
|
const formatLegendLabelMethod = label => {
|
|
235
217
|
if (props.formatLegendLabel) return props.formatLegendLabel(label);
|
|
236
218
|
return label;
|
|
237
219
|
};
|
|
238
|
-
|
|
239
220
|
const calcLinesOffsets = () => {
|
|
240
221
|
const lines = svgElRef.value.querySelectorAll('line');
|
|
241
222
|
linesOffsets.value = [];
|
|
242
|
-
|
|
243
223
|
for (let i = 0; i < lines.length; i += 1) {
|
|
244
224
|
linesOffsets.value.push(lines[i].getBoundingClientRect().left);
|
|
245
225
|
}
|
|
246
226
|
};
|
|
247
|
-
|
|
248
227
|
const formatTooltip = () => {
|
|
249
228
|
const index = currentIndex.value;
|
|
250
229
|
if (index === null) return '';
|
|
@@ -257,7 +236,6 @@ export default {
|
|
|
257
236
|
currentValues.forEach(dataset => {
|
|
258
237
|
total += dataset.value;
|
|
259
238
|
});
|
|
260
|
-
|
|
261
239
|
if (props.formatTooltip) {
|
|
262
240
|
return props.formatTooltip({
|
|
263
241
|
index,
|
|
@@ -265,11 +243,10 @@ export default {
|
|
|
265
243
|
datasets: currentValues
|
|
266
244
|
});
|
|
267
245
|
}
|
|
268
|
-
|
|
269
246
|
let labelText = props.formatTooltipAxisLabel ? props.formatTooltipAxisLabel(props.axisLabels[index]) : formatAxisLabelMethod(props.axisLabels[index]);
|
|
270
247
|
if (!labelText) labelText = '';
|
|
271
|
-
const totalText = props.formatTooltipTotal ? props.formatTooltipTotal(total) : total;
|
|
272
|
-
|
|
248
|
+
const totalText = props.formatTooltipTotal ? props.formatTooltipTotal(total) : total;
|
|
249
|
+
// prettier-ignore
|
|
273
250
|
const datasetsText = currentValues.length > 0 ? `
|
|
274
251
|
<ul class="area-chart-tooltip-list">
|
|
275
252
|
${currentValues.map(_ref5 => {
|
|
@@ -283,15 +260,14 @@ export default {
|
|
|
283
260
|
<li><span style="background-color: ${color};"></span>${valueText}</li>
|
|
284
261
|
`;
|
|
285
262
|
}).join('')}
|
|
286
|
-
</ul>` : '';
|
|
287
|
-
|
|
263
|
+
</ul>` : '';
|
|
264
|
+
// prettier-ignore
|
|
288
265
|
return `
|
|
289
266
|
<div class="area-chart-tooltip-label">${labelText}</div>
|
|
290
267
|
<div class="area-chart-tooltip-total">${totalText}</div>
|
|
291
268
|
${datasetsText}
|
|
292
269
|
`;
|
|
293
270
|
};
|
|
294
|
-
|
|
295
271
|
const setTooltip = () => {
|
|
296
272
|
const {
|
|
297
273
|
tooltip,
|
|
@@ -300,12 +276,10 @@ export default {
|
|
|
300
276
|
const index = currentIndex.value;
|
|
301
277
|
if (!tooltip) return;
|
|
302
278
|
const hasVisibleDataSets = datasets.filter((dataset, i) => !hiddenDatasets.value.includes(i)).length > 0;
|
|
303
|
-
|
|
304
279
|
if (!hasVisibleDataSets) {
|
|
305
280
|
if (f7Tooltip && f7Tooltip.hide) f7Tooltip.hide();
|
|
306
281
|
return;
|
|
307
282
|
}
|
|
308
|
-
|
|
309
283
|
if (index !== null && !f7Tooltip) {
|
|
310
284
|
f7Tooltip = f7.tooltip.create({
|
|
311
285
|
trigger: 'manual',
|
|
@@ -314,18 +288,14 @@ export default {
|
|
|
314
288
|
text: formatTooltip(),
|
|
315
289
|
cssClass: 'area-chart-tooltip'
|
|
316
290
|
});
|
|
317
|
-
|
|
318
291
|
if (f7Tooltip && f7Tooltip.show) {
|
|
319
292
|
f7Tooltip.show();
|
|
320
293
|
}
|
|
321
|
-
|
|
322
294
|
return;
|
|
323
295
|
}
|
|
324
|
-
|
|
325
296
|
if (!f7Tooltip || !f7Tooltip.hide || !f7Tooltip.show) {
|
|
326
297
|
return;
|
|
327
298
|
}
|
|
328
|
-
|
|
329
299
|
if (index !== null) {
|
|
330
300
|
f7Tooltip.setText(formatTooltip());
|
|
331
301
|
f7Tooltip.setTargetEl(svgElRef.value.querySelector(`line[data-index="${index}"]`));
|
|
@@ -334,16 +304,13 @@ export default {
|
|
|
334
304
|
f7Tooltip.hide();
|
|
335
305
|
}
|
|
336
306
|
};
|
|
337
|
-
|
|
338
307
|
const onMouseEnter = () => {
|
|
339
308
|
calcLinesOffsets();
|
|
340
309
|
};
|
|
341
|
-
|
|
342
310
|
const onMouseMove = e => {
|
|
343
311
|
if (!linesOffsets.value) {
|
|
344
312
|
calcLinesOffsets();
|
|
345
313
|
}
|
|
346
|
-
|
|
347
314
|
let currentLeft = e.pageX;
|
|
348
315
|
if (typeof currentLeft === 'undefined') currentLeft = 0;
|
|
349
316
|
const distances = linesOffsets.value.map(left => Math.abs(currentLeft - left));
|
|
@@ -351,11 +318,9 @@ export default {
|
|
|
351
318
|
const closestIndex = distances.indexOf(minDistance);
|
|
352
319
|
currentIndex.value = closestIndex;
|
|
353
320
|
};
|
|
354
|
-
|
|
355
321
|
const onMouseLeave = () => {
|
|
356
322
|
currentIndex.value = null;
|
|
357
323
|
};
|
|
358
|
-
|
|
359
324
|
watch(() => currentIndex.value, () => {
|
|
360
325
|
emit('select', currentIndex.value);
|
|
361
326
|
setTooltip();
|
|
@@ -370,7 +335,6 @@ export default {
|
|
|
370
335
|
if (f7Tooltip && f7Tooltip.destroy) {
|
|
371
336
|
f7Tooltip.destroy();
|
|
372
337
|
}
|
|
373
|
-
|
|
374
338
|
f7Tooltip = null;
|
|
375
339
|
if (!svgElRef.value) return;
|
|
376
340
|
svgElRef.value.removeEventListener('mouseenter', onMouseEnter);
|
|
@@ -397,5 +361,4 @@ export default {
|
|
|
397
361
|
classNames
|
|
398
362
|
};
|
|
399
363
|
}
|
|
400
|
-
|
|
401
364
|
};
|
package/components/badge.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
|
-
|
|
3
2
|
function render(_ctx, _cache) {
|
|
4
3
|
return _openBlock(), _createElementBlock("span", {
|
|
5
4
|
ref: "elRef",
|
|
6
5
|
class: _normalizeClass(_ctx.classes)
|
|
7
6
|
}, [_renderSlot(_ctx.$slots, "default")], 2);
|
|
8
7
|
}
|
|
9
|
-
|
|
10
8
|
import { computed, ref } from 'vue';
|
|
11
9
|
import { classNames } from '../shared/utils.js';
|
|
12
10
|
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
@@ -19,7 +17,6 @@ export default {
|
|
|
19
17
|
tooltipTrigger: String,
|
|
20
18
|
...colorProps
|
|
21
19
|
},
|
|
22
|
-
|
|
23
20
|
setup(props) {
|
|
24
21
|
const elRef = ref(null);
|
|
25
22
|
useTooltip(elRef, props);
|
|
@@ -29,5 +26,4 @@ export default {
|
|
|
29
26
|
classes
|
|
30
27
|
};
|
|
31
28
|
}
|
|
32
|
-
|
|
33
29
|
};
|
|
@@ -1,25 +1,22 @@
|
|
|
1
1
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
|
-
|
|
3
2
|
function render(_ctx, _cache) {
|
|
4
3
|
return _openBlock(), _createElementBlock("div", {
|
|
5
4
|
class: _normalizeClass(_ctx.classes)
|
|
6
5
|
}, [_renderSlot(_ctx.$slots, "default")], 2);
|
|
7
6
|
}
|
|
8
|
-
|
|
9
7
|
import { computed } from 'vue';
|
|
10
8
|
import { classNames } from '../shared/utils.js';
|
|
11
9
|
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
12
10
|
export default {
|
|
13
11
|
name: 'f7-block-footer',
|
|
14
12
|
render,
|
|
15
|
-
props: {
|
|
13
|
+
props: {
|
|
14
|
+
...colorProps
|
|
16
15
|
},
|
|
17
|
-
|
|
18
16
|
setup(props) {
|
|
19
17
|
const classes = computed(() => classNames('block-footer', colorClasses(props)));
|
|
20
18
|
return {
|
|
21
19
|
classes
|
|
22
20
|
};
|
|
23
21
|
}
|
|
24
|
-
|
|
25
22
|
};
|
|
@@ -1,25 +1,22 @@
|
|
|
1
1
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
|
-
|
|
3
2
|
function render(_ctx, _cache) {
|
|
4
3
|
return _openBlock(), _createElementBlock("div", {
|
|
5
4
|
class: _normalizeClass(_ctx.classes)
|
|
6
5
|
}, [_renderSlot(_ctx.$slots, "default")], 2);
|
|
7
6
|
}
|
|
8
|
-
|
|
9
7
|
import { computed } from 'vue';
|
|
10
8
|
import { classNames } from '../shared/utils.js';
|
|
11
9
|
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
12
10
|
export default {
|
|
13
11
|
name: 'f7-block-header',
|
|
14
12
|
render,
|
|
15
|
-
props: {
|
|
13
|
+
props: {
|
|
14
|
+
...colorProps
|
|
16
15
|
},
|
|
17
|
-
|
|
18
16
|
setup(props) {
|
|
19
17
|
const classes = computed(() => classNames('block-header', colorClasses(props)));
|
|
20
18
|
return {
|
|
21
19
|
classes
|
|
22
20
|
};
|
|
23
21
|
}
|
|
24
|
-
|
|
25
22
|
};
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
2
|
const _hoisted_1 = ["medium"];
|
|
3
|
-
|
|
4
3
|
function render(_ctx, _cache) {
|
|
5
4
|
return _openBlock(), _createElementBlock("div", {
|
|
6
5
|
class: _normalizeClass(_ctx.classes),
|
|
7
6
|
medium: _ctx.medium
|
|
8
7
|
}, [_renderSlot(_ctx.$slots, "default")], 10, _hoisted_1);
|
|
9
8
|
}
|
|
10
|
-
|
|
11
9
|
import { computed } from 'vue';
|
|
12
10
|
import { classNames } from '../shared/utils.js';
|
|
13
11
|
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
@@ -19,7 +17,6 @@ export default {
|
|
|
19
17
|
medium: Boolean,
|
|
20
18
|
...colorProps
|
|
21
19
|
},
|
|
22
|
-
|
|
23
20
|
setup(props) {
|
|
24
21
|
const classes = computed(() => {
|
|
25
22
|
const {
|
|
@@ -35,5 +32,4 @@ export default {
|
|
|
35
32
|
classes
|
|
36
33
|
};
|
|
37
34
|
}
|
|
38
|
-
|
|
39
35
|
};
|
package/components/block.d.ts
CHANGED
|
@@ -9,63 +9,115 @@ declare const Block: DefineComponent<
|
|
|
9
9
|
type: BooleanConstructor;
|
|
10
10
|
},
|
|
11
11
|
|
|
12
|
+
insetIos: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
},
|
|
15
|
+
|
|
16
|
+
insetMd: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
},
|
|
19
|
+
|
|
12
20
|
xsmallInset: {
|
|
13
21
|
type: BooleanConstructor;
|
|
14
22
|
},
|
|
15
23
|
|
|
24
|
+
xsmallInsetIos: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
xsmallInsetMd: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
},
|
|
31
|
+
|
|
16
32
|
smallInset: {
|
|
17
33
|
type: BooleanConstructor;
|
|
18
34
|
},
|
|
19
35
|
|
|
36
|
+
smallInsetIos: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
smallInsetMd: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
},
|
|
43
|
+
|
|
20
44
|
mediumInset: {
|
|
21
45
|
type: BooleanConstructor;
|
|
22
46
|
},
|
|
23
47
|
|
|
48
|
+
mediumInsetIos: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
},
|
|
51
|
+
|
|
52
|
+
mediumInsetMd: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
},
|
|
55
|
+
|
|
24
56
|
largeInset: {
|
|
25
57
|
type: BooleanConstructor;
|
|
26
58
|
},
|
|
27
59
|
|
|
60
|
+
largeInsetIos: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
largeInsetMd: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
},
|
|
67
|
+
|
|
28
68
|
xlargeInset: {
|
|
29
69
|
type: BooleanConstructor;
|
|
30
70
|
},
|
|
31
71
|
|
|
72
|
+
xlargeInsetIos: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
},
|
|
75
|
+
|
|
76
|
+
xlargeInsetMd: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
},
|
|
79
|
+
|
|
32
80
|
strong: {
|
|
33
81
|
type: BooleanConstructor;
|
|
34
82
|
},
|
|
35
83
|
|
|
36
|
-
|
|
84
|
+
strongIos: {
|
|
37
85
|
type: BooleanConstructor;
|
|
38
86
|
},
|
|
39
87
|
|
|
40
|
-
|
|
88
|
+
strongMd: {
|
|
41
89
|
type: BooleanConstructor;
|
|
42
90
|
},
|
|
43
91
|
|
|
44
|
-
|
|
92
|
+
outline: {
|
|
45
93
|
type: BooleanConstructor;
|
|
46
94
|
},
|
|
47
95
|
|
|
48
|
-
|
|
96
|
+
outlineIos: {
|
|
49
97
|
type: BooleanConstructor;
|
|
50
98
|
},
|
|
51
99
|
|
|
52
|
-
|
|
100
|
+
outlineMd: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
},
|
|
103
|
+
|
|
104
|
+
tabs: {
|
|
53
105
|
type: BooleanConstructor;
|
|
54
106
|
},
|
|
55
107
|
|
|
56
|
-
|
|
108
|
+
tab: {
|
|
57
109
|
type: BooleanConstructor;
|
|
58
110
|
},
|
|
59
111
|
|
|
60
|
-
|
|
112
|
+
tabActive: {
|
|
61
113
|
type: BooleanConstructor;
|
|
62
114
|
},
|
|
63
115
|
|
|
64
|
-
|
|
116
|
+
accordionList: {
|
|
65
117
|
type: BooleanConstructor;
|
|
66
118
|
},
|
|
67
119
|
|
|
68
|
-
|
|
120
|
+
accordionOpposite: {
|
|
69
121
|
type: BooleanConstructor;
|
|
70
122
|
},
|
|
71
123
|
|
package/components/block.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
|
-
|
|
3
2
|
function render(_ctx, _cache) {
|
|
4
3
|
return _openBlock(), _createElementBlock("div", {
|
|
5
4
|
ref: "elRef",
|
|
6
5
|
class: _normalizeClass(_ctx.classes)
|
|
7
6
|
}, [_renderSlot(_ctx.$slots, "default")], 2);
|
|
8
7
|
}
|
|
9
|
-
|
|
10
8
|
import { ref, computed } from 'vue';
|
|
11
9
|
import { classNames } from '../shared/utils.js';
|
|
12
10
|
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
@@ -16,25 +14,37 @@ export default {
|
|
|
16
14
|
render,
|
|
17
15
|
props: {
|
|
18
16
|
inset: Boolean,
|
|
17
|
+
insetIos: Boolean,
|
|
18
|
+
insetMd: Boolean,
|
|
19
19
|
xsmallInset: Boolean,
|
|
20
|
+
xsmallInsetIos: Boolean,
|
|
21
|
+
xsmallInsetMd: Boolean,
|
|
20
22
|
smallInset: Boolean,
|
|
23
|
+
smallInsetIos: Boolean,
|
|
24
|
+
smallInsetMd: Boolean,
|
|
21
25
|
mediumInset: Boolean,
|
|
26
|
+
mediumInsetIos: Boolean,
|
|
27
|
+
mediumInsetMd: Boolean,
|
|
22
28
|
largeInset: Boolean,
|
|
29
|
+
largeInsetIos: Boolean,
|
|
30
|
+
largeInsetMd: Boolean,
|
|
23
31
|
xlargeInset: Boolean,
|
|
32
|
+
xlargeInsetIos: Boolean,
|
|
33
|
+
xlargeInsetMd: Boolean,
|
|
24
34
|
strong: Boolean,
|
|
35
|
+
strongIos: Boolean,
|
|
36
|
+
strongMd: Boolean,
|
|
37
|
+
outline: Boolean,
|
|
38
|
+
outlineIos: Boolean,
|
|
39
|
+
outlineMd: Boolean,
|
|
25
40
|
tabs: Boolean,
|
|
26
41
|
tab: Boolean,
|
|
27
42
|
tabActive: Boolean,
|
|
28
43
|
accordionList: Boolean,
|
|
29
44
|
accordionOpposite: Boolean,
|
|
30
|
-
noHairlines: Boolean,
|
|
31
|
-
noHairlinesMd: Boolean,
|
|
32
|
-
noHairlinesIos: Boolean,
|
|
33
|
-
noHairlinesAurora: Boolean,
|
|
34
45
|
...colorProps
|
|
35
46
|
},
|
|
36
47
|
emits: ['tab:hide', 'tab:show'],
|
|
37
|
-
|
|
38
48
|
setup(props, _ref) {
|
|
39
49
|
let {
|
|
40
50
|
emit
|
|
@@ -44,39 +54,65 @@ export default {
|
|
|
44
54
|
const classes = computed(() => {
|
|
45
55
|
const {
|
|
46
56
|
inset,
|
|
57
|
+
insetIos,
|
|
58
|
+
insetMd,
|
|
47
59
|
xsmallInset,
|
|
60
|
+
xsmallInsetIos,
|
|
61
|
+
xsmallInsetMd,
|
|
48
62
|
smallInset,
|
|
63
|
+
smallInsetIos,
|
|
64
|
+
smallInsetMd,
|
|
49
65
|
mediumInset,
|
|
66
|
+
mediumInsetIos,
|
|
67
|
+
mediumInsetMd,
|
|
50
68
|
largeInset,
|
|
69
|
+
largeInsetIos,
|
|
70
|
+
largeInsetMd,
|
|
51
71
|
xlargeInset,
|
|
72
|
+
xlargeInsetIos,
|
|
73
|
+
xlargeInsetMd,
|
|
52
74
|
strong,
|
|
75
|
+
strongIos,
|
|
76
|
+
strongMd,
|
|
77
|
+
outline,
|
|
78
|
+
outlineIos,
|
|
79
|
+
outlineMd,
|
|
53
80
|
accordionList,
|
|
54
81
|
accordionOpposite,
|
|
55
82
|
tabs,
|
|
56
83
|
tab,
|
|
57
|
-
tabActive
|
|
58
|
-
noHairlines,
|
|
59
|
-
noHairlinesMd,
|
|
60
|
-
noHairlinesIos,
|
|
61
|
-
noHairlinesAurora
|
|
84
|
+
tabActive
|
|
62
85
|
} = props;
|
|
63
86
|
return classNames('block', {
|
|
64
87
|
inset,
|
|
88
|
+
'inset-ios': insetIos,
|
|
89
|
+
'inset-md': insetMd,
|
|
65
90
|
'xsmall-inset': xsmallInset,
|
|
91
|
+
'xsmall-inset-ios': xsmallInsetIos,
|
|
92
|
+
'xsmall-inset-md': xsmallInsetMd,
|
|
66
93
|
'small-inset': smallInset,
|
|
94
|
+
'small-inset-ios': smallInsetIos,
|
|
95
|
+
'small-inset-md': smallInsetMd,
|
|
67
96
|
'medium-inset': mediumInset,
|
|
97
|
+
'medium-inset-ios': mediumInsetIos,
|
|
98
|
+
'medium-inset-md': mediumInsetMd,
|
|
68
99
|
'large-inset': largeInset,
|
|
100
|
+
'large-inset-ios': largeInsetIos,
|
|
101
|
+
'large-inset-md': largeInsetMd,
|
|
69
102
|
'xlarge-inset': xlargeInset,
|
|
103
|
+
'xlarge-inset-ios': xlargeInsetIos,
|
|
104
|
+
'xlarge-inset-md': xlargeInsetMd,
|
|
70
105
|
'block-strong': strong,
|
|
106
|
+
'block-strong-ios': strongIos,
|
|
107
|
+
'block-strong-md': strongMd,
|
|
71
108
|
'accordion-list': accordionList,
|
|
72
109
|
'accordion-opposite': accordionOpposite,
|
|
73
110
|
tabs,
|
|
74
111
|
tab,
|
|
75
112
|
'tab-active': tabActive,
|
|
76
|
-
'
|
|
77
|
-
'
|
|
78
|
-
'
|
|
79
|
-
'no-hairlines-aurora': noHairlinesAurora
|
|
113
|
+
'block-outline': outline,
|
|
114
|
+
'block-outline-md': outlineMd,
|
|
115
|
+
'block-outline-ios': outlineIos
|
|
80
116
|
}, colorClasses(props));
|
|
81
117
|
});
|
|
82
118
|
return {
|
|
@@ -84,5 +120,4 @@ export default {
|
|
|
84
120
|
classes
|
|
85
121
|
};
|
|
86
122
|
}
|
|
87
|
-
|
|
88
123
|
};
|
|
@@ -3,24 +3,19 @@ const _hoisted_1 = {
|
|
|
3
3
|
ref: "elRef",
|
|
4
4
|
class: "breadcrumbs-collapsed"
|
|
5
5
|
};
|
|
6
|
-
|
|
7
6
|
const _hoisted_2 = /*#__PURE__*/_createElementVNode("span", null, null, -1);
|
|
8
|
-
|
|
9
7
|
function render(_ctx, _cache) {
|
|
10
8
|
return _openBlock(), _createElementBlock("div", _hoisted_1, [_hoisted_2, _renderSlot(_ctx.$slots, "default")], 512);
|
|
11
9
|
}
|
|
12
|
-
|
|
13
10
|
import { ref } from 'vue';
|
|
14
11
|
export default {
|
|
15
12
|
name: 'f7-breadcrumbs-collapsed',
|
|
16
13
|
render,
|
|
17
14
|
props: {},
|
|
18
|
-
|
|
19
15
|
setup() {
|
|
20
16
|
const elRef = ref(null);
|
|
21
17
|
return {
|
|
22
18
|
elRef
|
|
23
19
|
};
|
|
24
20
|
}
|
|
25
|
-
|
|
26
21
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
|
-
|
|
3
2
|
function render(_ctx, _cache) {
|
|
4
3
|
return _openBlock(), _createElementBlock("div", {
|
|
5
4
|
ref: "elRef",
|
|
@@ -9,7 +8,6 @@ function render(_ctx, _cache) {
|
|
|
9
8
|
})
|
|
10
9
|
}, [_renderSlot(_ctx.$slots, "default")], 2);
|
|
11
10
|
}
|
|
12
|
-
|
|
13
11
|
import { ref } from 'vue';
|
|
14
12
|
export default {
|
|
15
13
|
name: 'f7-breadcrumbs-item',
|
|
@@ -17,12 +15,10 @@ export default {
|
|
|
17
15
|
props: {
|
|
18
16
|
active: Boolean
|
|
19
17
|
},
|
|
20
|
-
|
|
21
18
|
setup() {
|
|
22
19
|
const elRef = ref(null);
|
|
23
20
|
return {
|
|
24
21
|
elRef
|
|
25
22
|
};
|
|
26
23
|
}
|
|
27
|
-
|
|
28
24
|
};
|
|
@@ -3,22 +3,18 @@ const _hoisted_1 = {
|
|
|
3
3
|
ref: "elRef",
|
|
4
4
|
class: "breadcrumbs-separator"
|
|
5
5
|
};
|
|
6
|
-
|
|
7
6
|
function render(_ctx, _cache) {
|
|
8
7
|
return _openBlock(), _createElementBlock("div", _hoisted_1, null, 512);
|
|
9
8
|
}
|
|
10
|
-
|
|
11
9
|
import { ref } from 'vue';
|
|
12
10
|
export default {
|
|
13
11
|
name: 'f7-breadcrumbs-separator',
|
|
14
12
|
render,
|
|
15
13
|
props: {},
|
|
16
|
-
|
|
17
14
|
setup() {
|
|
18
15
|
const elRef = ref(null);
|
|
19
16
|
return {
|
|
20
17
|
elRef
|
|
21
18
|
};
|
|
22
19
|
}
|
|
23
|
-
|
|
24
20
|
};
|
|
@@ -3,22 +3,18 @@ const _hoisted_1 = {
|
|
|
3
3
|
ref: "elRef",
|
|
4
4
|
class: "breadcrumbs"
|
|
5
5
|
};
|
|
6
|
-
|
|
7
6
|
function render(_ctx, _cache) {
|
|
8
7
|
return _openBlock(), _createElementBlock("div", _hoisted_1, [_renderSlot(_ctx.$slots, "default")], 512);
|
|
9
8
|
}
|
|
10
|
-
|
|
11
9
|
import { ref } from 'vue';
|
|
12
10
|
export default {
|
|
13
11
|
name: 'f7-breadcrumbs',
|
|
14
12
|
render,
|
|
15
13
|
props: {},
|
|
16
|
-
|
|
17
14
|
setup() {
|
|
18
15
|
const elRef = ref(null);
|
|
19
16
|
return {
|
|
20
17
|
elRef
|
|
21
18
|
};
|
|
22
19
|
}
|
|
23
|
-
|
|
24
20
|
};
|