framework7-vue 7.0.9 → 8.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-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 +2 -5
- 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 +3 -9
- 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 +3 -5
- package/components/list-item-row.js +3 -5
- package/components/list-item.d.ts +0 -4
- package/components/list-item.js +9 -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 +1 -6
- package/components/menu-dropdown.js +1 -4
- package/components/menu-item.js +4 -18
- package/components/menu.js +3 -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 +3 -9
- 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 +4 -50
- package/components/views.js +0 -4
- package/framework7-vue-bundle.js +3 -21
- package/framework7-vue-web-types.json +85 -644
- package/framework7-vue.d.ts +2 -12
- package/framework7-vue.js +3 -12
- 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/list-item.js
CHANGED
|
@@ -6,7 +6,6 @@ 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
|
-
|
|
10
9
|
const ListItemContent = function (_temp) {
|
|
11
10
|
let {
|
|
12
11
|
props,
|
|
@@ -53,8 +52,9 @@ const ListItemContent = function (_temp) {
|
|
|
53
52
|
let inputEl;
|
|
54
53
|
let inputIconEl;
|
|
55
54
|
let headerEl;
|
|
56
|
-
let footerEl;
|
|
55
|
+
let footerEl;
|
|
57
56
|
|
|
57
|
+
// Input
|
|
58
58
|
if (radio || checkbox) {
|
|
59
59
|
inputEl = h('input', {
|
|
60
60
|
ref: inputElRef,
|
|
@@ -70,70 +70,58 @@ const ListItemContent = function (_temp) {
|
|
|
70
70
|
inputIconEl = h('i', {
|
|
71
71
|
class: `icon icon-${radio ? 'radio' : 'checkbox'}`
|
|
72
72
|
});
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
}
|
|
74
|
+
// Media
|
|
76
75
|
if (media || slots.media) {
|
|
77
76
|
let mediaImgEl;
|
|
78
|
-
|
|
79
77
|
if (media) {
|
|
80
78
|
mediaImgEl = h('img', {
|
|
81
79
|
src: media
|
|
82
80
|
});
|
|
83
81
|
}
|
|
84
|
-
|
|
85
82
|
mediaEl = h('div', {
|
|
86
83
|
class: 'item-media'
|
|
87
84
|
}, [mediaImgEl, slots.media && slots.media()]);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
|
|
85
|
+
}
|
|
86
|
+
// Inner Elements
|
|
91
87
|
if (header || slots.header) {
|
|
92
88
|
headerEl = h('div', {
|
|
93
89
|
class: 'item-header'
|
|
94
90
|
}, [header, slots.header && slots.header()]);
|
|
95
91
|
}
|
|
96
|
-
|
|
97
92
|
if (footer || slots.footer) {
|
|
98
93
|
footerEl = h('div', {
|
|
99
94
|
class: 'item-footer'
|
|
100
95
|
}, [footer, slots.footer && slots.footer()]);
|
|
101
96
|
}
|
|
102
|
-
|
|
103
97
|
if (title || slots.title || !isMediaComputed.value && headerEl || !isMediaComputed.value && footerEl) {
|
|
104
98
|
titleEl = h('div', {
|
|
105
99
|
class: 'item-title'
|
|
106
100
|
}, [!isMediaComputed.value && headerEl, title, slots.title && slots.title(), !isMediaComputed.value && footerEl]);
|
|
107
101
|
}
|
|
108
|
-
|
|
109
102
|
if (subtitle || slots.subtitle) {
|
|
110
103
|
subtitleEl = h('div', {
|
|
111
104
|
class: 'item-subtitle'
|
|
112
105
|
}, [subtitle, slots.subtitle && slots.subtitle()]);
|
|
113
106
|
}
|
|
114
|
-
|
|
115
107
|
if (text || slots.text) {
|
|
116
108
|
textEl = h('div', {
|
|
117
109
|
class: 'item-text'
|
|
118
110
|
}, [text, slots.text && slots.text()]);
|
|
119
111
|
}
|
|
120
|
-
|
|
121
112
|
if (after || badge || slots.after) {
|
|
122
113
|
if (after) {
|
|
123
114
|
afterEl = h('span', [after]);
|
|
124
115
|
}
|
|
125
|
-
|
|
126
116
|
if (badge) {
|
|
127
117
|
badgeEl = h(f7Badge, {
|
|
128
118
|
color: badgeColor
|
|
129
119
|
}, () => badge);
|
|
130
120
|
}
|
|
131
|
-
|
|
132
121
|
afterWrapEl = h('div', {
|
|
133
122
|
class: 'item-after'
|
|
134
123
|
}, [slots['after-start'] && slots['after-start'](), afterEl, badgeEl, slots.after && slots.after(), slots['after-end'] && slots['after-end']()]);
|
|
135
124
|
}
|
|
136
|
-
|
|
137
125
|
if (isMediaComputed.value) {
|
|
138
126
|
titleRowEl = h('div', {
|
|
139
127
|
class: 'item-title-row'
|
|
@@ -146,7 +134,6 @@ const ListItemContent = function (_temp) {
|
|
|
146
134
|
class: 'item-inner'
|
|
147
135
|
}, [slots['inner-start'] && slots['inner-start'](), slots['before-title'] && slots['before-title'](), titleEl, slots['after-title'] && slots['after-title'](), afterWrapEl, swipeout || accordionItem ? null : slots.default && slots.default(), slots.inner && slots.inner(), slots['inner-end'] && slots['inner-end']()]);
|
|
148
136
|
}
|
|
149
|
-
|
|
150
137
|
const ItemContentTag = checkbox || radio ? 'label' : 'div';
|
|
151
138
|
return h(ItemContentTag, {
|
|
152
139
|
class: itemContentClasses.value,
|
|
@@ -155,7 +142,6 @@ const ListItemContent = function (_temp) {
|
|
|
155
142
|
class: 'sortable-handler'
|
|
156
143
|
}), slots['content-start'] && slots['content-start'](), inputEl, inputIconEl, mediaEl, innerEl, slots.content && slots.content(), slots['content-end'] && slots['content-end']()]);
|
|
157
144
|
};
|
|
158
|
-
|
|
159
145
|
export default {
|
|
160
146
|
name: 'f7-list-item',
|
|
161
147
|
props: {
|
|
@@ -179,7 +165,6 @@ export default {
|
|
|
179
165
|
badgeColor: String,
|
|
180
166
|
mediaItem: Boolean,
|
|
181
167
|
mediaList: Boolean,
|
|
182
|
-
divider: Boolean,
|
|
183
168
|
groupTitle: Boolean,
|
|
184
169
|
swipeout: Boolean,
|
|
185
170
|
swipeoutOpened: Boolean,
|
|
@@ -219,7 +204,6 @@ export default {
|
|
|
219
204
|
...routerProps
|
|
220
205
|
},
|
|
221
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'],
|
|
222
|
-
|
|
223
207
|
setup(props, _ref) {
|
|
224
208
|
let {
|
|
225
209
|
slots,
|
|
@@ -240,99 +224,80 @@ export default {
|
|
|
240
224
|
const elRef = ref(null);
|
|
241
225
|
const linkElRef = ref(null);
|
|
242
226
|
const inputElRef = ref(null);
|
|
243
|
-
|
|
244
227
|
const onClick = event => {
|
|
245
228
|
if (event.target.tagName.toLowerCase() !== 'input') {
|
|
246
229
|
emit('click', event);
|
|
247
230
|
}
|
|
248
231
|
};
|
|
249
|
-
|
|
250
232
|
const onSwipeoutOverswipeEnter = el => {
|
|
251
233
|
if (elRef.value !== el) return;
|
|
252
234
|
emit('swipeout:overswipeenter');
|
|
253
235
|
};
|
|
254
|
-
|
|
255
236
|
const onSwipeoutOverswipeExit = el => {
|
|
256
237
|
if (elRef.value !== el) return;
|
|
257
238
|
emit('swipeout:overswipeexit');
|
|
258
239
|
};
|
|
259
|
-
|
|
260
240
|
const onSwipeoutDeleted = el => {
|
|
261
241
|
if (elRef.value !== el) return;
|
|
262
242
|
emit('swipeout:deleted');
|
|
263
243
|
};
|
|
264
|
-
|
|
265
244
|
const onSwipeoutDelete = el => {
|
|
266
245
|
if (elRef.value !== el) return;
|
|
267
246
|
emit('swipeout:delete');
|
|
268
247
|
};
|
|
269
|
-
|
|
270
248
|
const onSwipeoutClose = el => {
|
|
271
249
|
if (elRef.value !== el) return;
|
|
272
250
|
emit('swipeout:close');
|
|
273
251
|
};
|
|
274
|
-
|
|
275
252
|
const onSwipeoutClosed = el => {
|
|
276
253
|
if (elRef.value !== el) return;
|
|
277
254
|
emit('swipeout:closed');
|
|
278
255
|
};
|
|
279
|
-
|
|
280
256
|
const onSwipeoutOpen = el => {
|
|
281
257
|
if (elRef.value !== el) return;
|
|
282
258
|
emit('swipeout:open');
|
|
283
259
|
};
|
|
284
|
-
|
|
285
260
|
const onSwipeoutOpened = el => {
|
|
286
261
|
if (elRef.value !== el) return;
|
|
287
262
|
emit('swipeout:opened');
|
|
288
263
|
};
|
|
289
|
-
|
|
290
264
|
const onSwipeout = (el, progress) => {
|
|
291
265
|
if (elRef.value !== el) return;
|
|
292
266
|
emit('swipeout', progress);
|
|
293
267
|
};
|
|
294
|
-
|
|
295
268
|
const onAccBeforeClose = (el, prevent) => {
|
|
296
269
|
if (elRef.value !== el) return;
|
|
297
270
|
emit('accordion:beforeclose', prevent);
|
|
298
271
|
};
|
|
299
|
-
|
|
300
272
|
const onAccClose = el => {
|
|
301
273
|
if (elRef.value !== el) return;
|
|
302
274
|
emit('accordion:close');
|
|
303
275
|
};
|
|
304
|
-
|
|
305
276
|
const onAccClosed = el => {
|
|
306
277
|
if (elRef.value !== el) return;
|
|
307
278
|
emit('accordion:closed');
|
|
308
279
|
};
|
|
309
|
-
|
|
310
280
|
const onAccBeforeOpen = (el, prevent) => {
|
|
311
281
|
if (elRef.value !== el) return;
|
|
312
282
|
emit('accordion:beforeopen', prevent);
|
|
313
283
|
};
|
|
314
|
-
|
|
315
284
|
const onAccOpen = el => {
|
|
316
285
|
if (elRef.value !== el) return;
|
|
317
286
|
emit('accordion:open');
|
|
318
287
|
};
|
|
319
|
-
|
|
320
288
|
const onAccOpened = el => {
|
|
321
289
|
if (elRef.value !== el) return;
|
|
322
290
|
emit('accordion:opened');
|
|
323
291
|
};
|
|
324
|
-
|
|
325
292
|
const onChange = event => {
|
|
326
293
|
emit('change', event);
|
|
327
294
|
emit('update:checked', event.target.checked);
|
|
328
295
|
};
|
|
329
|
-
|
|
330
296
|
useTooltip(elRef, props);
|
|
331
297
|
useRouteProps(linkElRef, props);
|
|
332
298
|
useSmartSelect(props, () => {}, () => elRef.value.querySelector('a.smart-select'));
|
|
333
299
|
watch(() => props.swipeoutOpened, newValue => {
|
|
334
300
|
if (!props.swipeout || !elRef.value || !f7) return;
|
|
335
|
-
|
|
336
301
|
if (newValue) {
|
|
337
302
|
f7.swipeout.open(elRef.value);
|
|
338
303
|
} else {
|
|
@@ -352,7 +317,6 @@ export default {
|
|
|
352
317
|
f7.on('swipeoutOverswipeExit', onSwipeoutOverswipeExit);
|
|
353
318
|
f7.on('swipeout', onSwipeout);
|
|
354
319
|
}
|
|
355
|
-
|
|
356
320
|
if (props.accordionItem) {
|
|
357
321
|
f7.on('accordionBeforeOpen', onAccBeforeOpen);
|
|
358
322
|
f7.on('accordionOpen', onAccOpen);
|
|
@@ -361,12 +325,10 @@ export default {
|
|
|
361
325
|
f7.on('accordionClose', onAccClose);
|
|
362
326
|
f7.on('accordionClosed', onAccClosed);
|
|
363
327
|
}
|
|
364
|
-
|
|
365
328
|
if (props.swipeout && props.swipeoutOpened) {
|
|
366
329
|
f7.swipeout.open(elRef.value);
|
|
367
330
|
}
|
|
368
331
|
});
|
|
369
|
-
|
|
370
332
|
if (props.checkbox && inputElRef.value) {
|
|
371
333
|
inputElRef.value.indeterminate = !!props.indeterminate;
|
|
372
334
|
}
|
|
@@ -418,7 +380,6 @@ export default {
|
|
|
418
380
|
'item-radio-icon-end': props.radio && props.radioIcon === 'end'
|
|
419
381
|
}, colorClasses(props)));
|
|
420
382
|
const liClasses = computed(() => classNames({
|
|
421
|
-
'item-divider': props.divider,
|
|
422
383
|
'list-group-title': props.groupTitle,
|
|
423
384
|
'media-item': isMediaComputed.value,
|
|
424
385
|
swipeout: props.swipeout,
|
|
@@ -432,7 +393,6 @@ export default {
|
|
|
432
393
|
return () => {
|
|
433
394
|
let linkEl;
|
|
434
395
|
let itemContentEl;
|
|
435
|
-
|
|
436
396
|
if (!listIsSimple.value) {
|
|
437
397
|
// Item Content
|
|
438
398
|
itemContentEl = ListItemContent({
|
|
@@ -445,8 +405,9 @@ export default {
|
|
|
445
405
|
isSortableComputed,
|
|
446
406
|
isSortableOppositeComputed,
|
|
447
407
|
itemContentClasses
|
|
448
|
-
});
|
|
408
|
+
});
|
|
449
409
|
|
|
410
|
+
// Link
|
|
450
411
|
if (props.link || props.href || props.accordionItem || props.smartSelect) {
|
|
451
412
|
linkEl = h('a', {
|
|
452
413
|
ref: linkElRef,
|
|
@@ -456,8 +417,7 @@ export default {
|
|
|
456
417
|
}, [itemContentEl]);
|
|
457
418
|
}
|
|
458
419
|
}
|
|
459
|
-
|
|
460
|
-
if (props.divider || props.groupTitle) {
|
|
420
|
+
if (props.groupTitle) {
|
|
461
421
|
return h('li', {
|
|
462
422
|
ref: elRef,
|
|
463
423
|
class: liClasses.value,
|
|
@@ -465,7 +425,6 @@ export default {
|
|
|
465
425
|
onClick
|
|
466
426
|
}, [props.title, slots.default && slots.default()]);
|
|
467
427
|
}
|
|
468
|
-
|
|
469
428
|
if (listIsSimple.value) {
|
|
470
429
|
return h('li', {
|
|
471
430
|
ref: elRef,
|
|
@@ -474,7 +433,6 @@ export default {
|
|
|
474
433
|
'data-virtual-list-index': props.virtualListIndex
|
|
475
434
|
}, [props.title, slots.default && slots.default()]);
|
|
476
435
|
}
|
|
477
|
-
|
|
478
436
|
const linkItemEl = props.link || props.href || props.smartSelect || props.accordionItem ? linkEl : itemContentEl;
|
|
479
437
|
return h('li', {
|
|
480
438
|
ref: elRef,
|
|
@@ -487,5 +445,4 @@ export default {
|
|
|
487
445
|
}), (props.swipeout || props.accordionItem) && slots.default(), slots.root && slots.root(), slots['root-end'] && slots['root-end']()]);
|
|
488
446
|
};
|
|
489
447
|
}
|
|
490
|
-
|
|
491
448
|
};
|
package/components/list.d.ts
CHANGED
|
@@ -9,99 +9,151 @@ declare const List: 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
|
|
|
32
|
-
|
|
72
|
+
xlargeInsetIos: {
|
|
33
73
|
type: BooleanConstructor;
|
|
34
74
|
},
|
|
35
75
|
|
|
36
|
-
|
|
76
|
+
xlargeInsetMd: {
|
|
37
77
|
type: BooleanConstructor;
|
|
38
78
|
},
|
|
39
79
|
|
|
40
|
-
|
|
80
|
+
strong: {
|
|
41
81
|
type: BooleanConstructor;
|
|
42
82
|
},
|
|
43
83
|
|
|
44
|
-
|
|
84
|
+
strongIos: {
|
|
45
85
|
type: BooleanConstructor;
|
|
46
86
|
},
|
|
47
87
|
|
|
48
|
-
|
|
88
|
+
strongMd: {
|
|
49
89
|
type: BooleanConstructor;
|
|
50
90
|
},
|
|
51
91
|
|
|
52
|
-
|
|
92
|
+
outline: {
|
|
53
93
|
type: BooleanConstructor;
|
|
54
94
|
},
|
|
55
95
|
|
|
56
|
-
|
|
96
|
+
outlineIos: {
|
|
57
97
|
type: BooleanConstructor;
|
|
58
98
|
},
|
|
59
99
|
|
|
60
|
-
|
|
100
|
+
outlineMd: {
|
|
61
101
|
type: BooleanConstructor;
|
|
62
102
|
},
|
|
63
103
|
|
|
64
|
-
|
|
104
|
+
dividers: {
|
|
65
105
|
type: BooleanConstructor;
|
|
66
106
|
},
|
|
67
107
|
|
|
68
|
-
|
|
108
|
+
dividersIos: {
|
|
69
109
|
type: BooleanConstructor;
|
|
70
110
|
},
|
|
71
111
|
|
|
72
|
-
|
|
112
|
+
dividersMd: {
|
|
113
|
+
type: BooleanConstructor;
|
|
114
|
+
},
|
|
115
|
+
|
|
116
|
+
mediaList: {
|
|
117
|
+
type: BooleanConstructor;
|
|
118
|
+
},
|
|
119
|
+
|
|
120
|
+
sortable: {
|
|
121
|
+
type: BooleanConstructor;
|
|
122
|
+
},
|
|
123
|
+
|
|
124
|
+
sortableTapHold: {
|
|
73
125
|
type: BooleanConstructor;
|
|
74
126
|
},
|
|
75
127
|
|
|
76
|
-
|
|
128
|
+
sortableEnabled: {
|
|
77
129
|
type: BooleanConstructor;
|
|
78
130
|
},
|
|
79
131
|
|
|
80
|
-
|
|
132
|
+
sortableOpposite: {
|
|
81
133
|
type: BooleanConstructor;
|
|
82
134
|
},
|
|
83
135
|
|
|
84
|
-
|
|
136
|
+
accordionList: {
|
|
85
137
|
type: BooleanConstructor;
|
|
86
138
|
},
|
|
87
139
|
|
|
88
|
-
|
|
140
|
+
accordionOpposite: {
|
|
89
141
|
type: BooleanConstructor;
|
|
90
142
|
},
|
|
91
143
|
|
|
92
|
-
|
|
144
|
+
contactsList: {
|
|
93
145
|
type: BooleanConstructor;
|
|
94
146
|
},
|
|
95
147
|
|
|
96
|
-
|
|
148
|
+
simpleList: {
|
|
97
149
|
type: BooleanConstructor;
|
|
98
150
|
},
|
|
99
151
|
|
|
100
|
-
|
|
152
|
+
linksList: {
|
|
101
153
|
type: BooleanConstructor;
|
|
102
154
|
},
|
|
103
155
|
|
|
104
|
-
|
|
156
|
+
menuList: {
|
|
105
157
|
type: BooleanConstructor;
|
|
106
158
|
},
|
|
107
159
|
|
|
@@ -129,10 +181,6 @@ declare const List: DefineComponent<
|
|
|
129
181
|
type: BooleanConstructor;
|
|
130
182
|
},
|
|
131
183
|
|
|
132
|
-
inlineLabels: {
|
|
133
|
-
type: BooleanConstructor;
|
|
134
|
-
},
|
|
135
|
-
|
|
136
184
|
virtualList: {
|
|
137
185
|
type: BooleanConstructor;
|
|
138
186
|
},
|
package/components/list.js
CHANGED
|
@@ -7,11 +7,32 @@ export default {
|
|
|
7
7
|
name: 'f7-list',
|
|
8
8
|
props: {
|
|
9
9
|
inset: Boolean,
|
|
10
|
+
insetIos: Boolean,
|
|
11
|
+
insetMd: Boolean,
|
|
10
12
|
xsmallInset: Boolean,
|
|
13
|
+
xsmallInsetIos: Boolean,
|
|
14
|
+
xsmallInsetMd: Boolean,
|
|
11
15
|
smallInset: Boolean,
|
|
16
|
+
smallInsetIos: Boolean,
|
|
17
|
+
smallInsetMd: Boolean,
|
|
12
18
|
mediumInset: Boolean,
|
|
19
|
+
mediumInsetIos: Boolean,
|
|
20
|
+
mediumInsetMd: Boolean,
|
|
13
21
|
largeInset: Boolean,
|
|
22
|
+
largeInsetIos: Boolean,
|
|
23
|
+
largeInsetMd: Boolean,
|
|
14
24
|
xlargeInset: Boolean,
|
|
25
|
+
xlargeInsetIos: Boolean,
|
|
26
|
+
xlargeInsetMd: Boolean,
|
|
27
|
+
strong: Boolean,
|
|
28
|
+
strongIos: Boolean,
|
|
29
|
+
strongMd: Boolean,
|
|
30
|
+
outline: Boolean,
|
|
31
|
+
outlineIos: Boolean,
|
|
32
|
+
outlineMd: Boolean,
|
|
33
|
+
dividers: Boolean,
|
|
34
|
+
dividersIos: Boolean,
|
|
35
|
+
dividersMd: Boolean,
|
|
15
36
|
mediaList: Boolean,
|
|
16
37
|
sortable: Boolean,
|
|
17
38
|
sortableTapHold: Boolean,
|
|
@@ -27,14 +48,6 @@ export default {
|
|
|
27
48
|
simpleList: Boolean,
|
|
28
49
|
linksList: Boolean,
|
|
29
50
|
menuList: Boolean,
|
|
30
|
-
noHairlines: Boolean,
|
|
31
|
-
noHairlinesBetween: Boolean,
|
|
32
|
-
noHairlinesMd: Boolean,
|
|
33
|
-
noHairlinesBetweenMd: Boolean,
|
|
34
|
-
noHairlinesIos: Boolean,
|
|
35
|
-
noHairlinesBetweenIos: Boolean,
|
|
36
|
-
noHairlinesAurora: Boolean,
|
|
37
|
-
noHairlinesBetweenAurora: Boolean,
|
|
38
51
|
// Links Chevron (Arrow) Icon
|
|
39
52
|
noChevron: Boolean,
|
|
40
53
|
chevronCenter: Boolean,
|
|
@@ -44,14 +57,12 @@ export default {
|
|
|
44
57
|
// Form
|
|
45
58
|
form: Boolean,
|
|
46
59
|
formStoreData: Boolean,
|
|
47
|
-
inlineLabels: Boolean,
|
|
48
60
|
// Virtual List
|
|
49
61
|
virtualList: Boolean,
|
|
50
62
|
virtualListParams: Object,
|
|
51
63
|
...colorProps
|
|
52
64
|
},
|
|
53
65
|
emits: ['submit', 'sortable:enable', 'sortable:disable', 'sortable:sort', 'sortable:move', 'virtual:itembeforeinsert', 'virtual:beforeclear', 'virtual:itemsbeforeinsert', 'virtual:itemsafterinsert', 'tab:hide', 'tab:show'],
|
|
54
|
-
|
|
55
66
|
setup(props, _ref) {
|
|
56
67
|
let {
|
|
57
68
|
emit,
|
|
@@ -59,31 +70,25 @@ export default {
|
|
|
59
70
|
} = _ref;
|
|
60
71
|
let f7VirtualList = null;
|
|
61
72
|
const elRef = ref(null);
|
|
62
|
-
|
|
63
73
|
const onSubmit = event => {
|
|
64
74
|
emit('submit', event);
|
|
65
75
|
};
|
|
66
|
-
|
|
67
76
|
const onSortableEnable = el => {
|
|
68
77
|
if (elRef.value !== el) return;
|
|
69
78
|
emit('sortable:enable');
|
|
70
79
|
};
|
|
71
|
-
|
|
72
80
|
const onSortableDisable = el => {
|
|
73
81
|
if (elRef.value !== el) return;
|
|
74
82
|
emit('sortable:disable');
|
|
75
83
|
};
|
|
76
|
-
|
|
77
84
|
const onSortableSort = (el, sortData, listEl) => {
|
|
78
85
|
if (elRef.value !== listEl) return;
|
|
79
86
|
emit('sortable:sort', sortData);
|
|
80
87
|
};
|
|
81
|
-
|
|
82
88
|
const onSortableMove = (el, listEl) => {
|
|
83
89
|
if (elRef.value !== listEl) return;
|
|
84
90
|
emit('sortable:move', el, listEl);
|
|
85
91
|
};
|
|
86
|
-
|
|
87
92
|
useTab(elRef, emit);
|
|
88
93
|
onMounted(() => {
|
|
89
94
|
f7ready(() => {
|
|
@@ -102,22 +107,18 @@ export default {
|
|
|
102
107
|
const vl = this;
|
|
103
108
|
emit('virtual:itembeforeinsert', vl, itemEl, item);
|
|
104
109
|
},
|
|
105
|
-
|
|
106
110
|
beforeClear(fragment) {
|
|
107
111
|
const vl = this;
|
|
108
112
|
emit('virtual:beforeclear', vl, fragment);
|
|
109
113
|
},
|
|
110
|
-
|
|
111
114
|
itemsBeforeInsert(fragment) {
|
|
112
115
|
const vl = this;
|
|
113
116
|
emit('virtual:itemsbeforeinsert', vl, fragment);
|
|
114
117
|
},
|
|
115
|
-
|
|
116
118
|
itemsAfterInsert(fragment) {
|
|
117
119
|
const vl = this;
|
|
118
120
|
emit('virtual:itemsafterinsert', vl, fragment);
|
|
119
121
|
}
|
|
120
|
-
|
|
121
122
|
}
|
|
122
123
|
}, vlParams));
|
|
123
124
|
});
|
|
@@ -134,11 +135,32 @@ export default {
|
|
|
134
135
|
});
|
|
135
136
|
const classes = computed(() => classNames('list', {
|
|
136
137
|
inset: props.inset,
|
|
138
|
+
'inset-ios': props.insetIos,
|
|
139
|
+
'inset-md': props.insetMd,
|
|
137
140
|
'xsmall-inset': props.xsmallInset,
|
|
141
|
+
'xsmall-inset-ios': props.xsmallInsetIos,
|
|
142
|
+
'xsmall-inset-md': props.xsmallInsetMd,
|
|
138
143
|
'small-inset': props.smallInset,
|
|
144
|
+
'small-inset-ios': props.smallInsetIos,
|
|
145
|
+
'small-inset-md': props.smallInsetMd,
|
|
139
146
|
'medium-inset': props.mediumInset,
|
|
147
|
+
'medium-inset-ios': props.mediumInsetIos,
|
|
148
|
+
'medium-inset-md': props.mediumInsetMd,
|
|
140
149
|
'large-inset': props.largeInset,
|
|
150
|
+
'large-inset-ios': props.largeInsetIos,
|
|
151
|
+
'large-inset-md': props.largeInsetMd,
|
|
141
152
|
'xlarge-inset': props.xlargeInset,
|
|
153
|
+
'xlarge-inset-ios': props.xlargeInsetIos,
|
|
154
|
+
'xlarge-inset-md': props.xlargeInsetMd,
|
|
155
|
+
'list-strong': props.strong,
|
|
156
|
+
'list-strong-ios': props.strongIos,
|
|
157
|
+
'list-strong-md': props.strongMd,
|
|
158
|
+
'list-outline': props.outline,
|
|
159
|
+
'list-outline-ios': props.outlineIos,
|
|
160
|
+
'list-outline-md': props.outlineMd,
|
|
161
|
+
'list-dividers': props.dividers,
|
|
162
|
+
'list-dividers-ios': props.dividersIos,
|
|
163
|
+
'list-dividers-md': props.dividersMd,
|
|
142
164
|
'media-list': props.mediaList,
|
|
143
165
|
'simple-list': props.simpleList,
|
|
144
166
|
'links-list': props.linksList,
|
|
@@ -153,16 +175,7 @@ export default {
|
|
|
153
175
|
'virtual-list': props.virtualList,
|
|
154
176
|
tab: props.tab,
|
|
155
177
|
'tab-active': props.tabActive,
|
|
156
|
-
'no-hairlines': props.noHairlines,
|
|
157
|
-
'no-hairlines-md': props.noHairlinesMd,
|
|
158
|
-
'no-hairlines-ios': props.noHairlinesIos,
|
|
159
|
-
'no-hairlines-aurora': props.noHairlinesAurora,
|
|
160
|
-
'no-hairlines-between': props.noHairlinesBetween,
|
|
161
|
-
'no-hairlines-between-md': props.noHairlinesBetweenMd,
|
|
162
|
-
'no-hairlines-between-ios': props.noHairlinesBetweenIos,
|
|
163
|
-
'no-hairlines-between-aurora': props.noHairlinesBetweenAurora,
|
|
164
178
|
'form-store-data': props.formStoreData,
|
|
165
|
-
'inline-labels': props.inlineLabels,
|
|
166
179
|
'no-chevron': props.noChevron,
|
|
167
180
|
'chevron-center': props.chevronCenter
|
|
168
181
|
}, colorClasses(props)));
|
|
@@ -183,12 +196,10 @@ export default {
|
|
|
183
196
|
const rootChildrenAfterList = [];
|
|
184
197
|
const ulChildren = slotsList || [];
|
|
185
198
|
let wasUlChild = false;
|
|
186
|
-
|
|
187
199
|
if (slotsDefault) {
|
|
188
200
|
slotsDefault().forEach(vnode => {
|
|
189
201
|
if (typeof vnode === 'undefined') return;
|
|
190
202
|
const tag = vnode.type && vnode.type.name ? vnode.type.name : vnode.type;
|
|
191
|
-
|
|
192
203
|
if (tag && typeof tag === 'symbol') {
|
|
193
204
|
wasUlChild = true;
|
|
194
205
|
ulChildren.push(vnode);
|
|
@@ -200,7 +211,6 @@ export default {
|
|
|
200
211
|
}
|
|
201
212
|
});
|
|
202
213
|
}
|
|
203
|
-
|
|
204
214
|
return h(ListTag.value, {
|
|
205
215
|
ref: elRef,
|
|
206
216
|
class: classes.value,
|
|
@@ -209,5 +219,4 @@ export default {
|
|
|
209
219
|
}, [slots['before-list'] && slots['before-list'](), rootChildrenBeforeList, ulChildren.length > 0 && h('ul', ulChildren), slots['after-list'] && slots['after-list'](), rootChildrenAfterList]);
|
|
210
220
|
};
|
|
211
221
|
}
|
|
212
|
-
|
|
213
222
|
};
|
|
@@ -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-login-screen-title',
|
|
14
12
|
render,
|
|
15
|
-
props: {
|
|
13
|
+
props: {
|
|
14
|
+
...colorProps
|
|
16
15
|
},
|
|
17
|
-
|
|
18
16
|
setup(props) {
|
|
19
17
|
const classes = computed(() => classNames('login-screen-title', colorClasses(props)));
|
|
20
18
|
return {
|
|
21
19
|
classes
|
|
22
20
|
};
|
|
23
21
|
}
|
|
24
|
-
|
|
25
22
|
};
|