@xenknight/framework7-vue 0.0.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/LICENSE +20 -0
- package/README.md +33 -0
- package/components/accordion-content.d.ts +46 -0
- package/components/accordion-content.js +22 -0
- package/components/accordion-item.d.ts +51 -0
- package/components/accordion-item.js +77 -0
- package/components/accordion-toggle.d.ts +46 -0
- package/components/accordion-toggle.js +22 -0
- package/components/accordion.d.ts +50 -0
- package/components/accordion.js +23 -0
- package/components/actions-button.d.ts +56 -0
- package/components/actions-button.js +58 -0
- package/components/actions-group.d.ts +46 -0
- package/components/actions-group.js +22 -0
- package/components/actions-label.d.ts +51 -0
- package/components/actions-label.js +36 -0
- package/components/actions.d.ts +109 -0
- package/components/actions.js +157 -0
- package/components/app.d.ts +310 -0
- package/components/app.js +267 -0
- package/components/area-chart.d.ts +88 -0
- package/components/area-chart.js +364 -0
- package/components/badge.d.ts +54 -0
- package/components/badge.js +29 -0
- package/components/block-footer.d.ts +46 -0
- package/components/block-footer.js +22 -0
- package/components/block-header.d.ts +46 -0
- package/components/block-header.js +22 -0
- package/components/block-title.d.ts +54 -0
- package/components/block-title.js +35 -0
- package/components/block.d.ts +163 -0
- package/components/block.js +123 -0
- package/components/breadcrumbs-collapsed.d.ts +19 -0
- package/components/breadcrumbs-collapsed.js +21 -0
- package/components/breadcrumbs-item.d.ts +22 -0
- package/components/breadcrumbs-item.js +24 -0
- package/components/breadcrumbs-separator.d.ts +19 -0
- package/components/breadcrumbs-separator.js +20 -0
- package/components/breadcrumbs.d.ts +19 -0
- package/components/breadcrumbs.js +20 -0
- package/components/button.d.ts +371 -0
- package/components/button.js +182 -0
- package/components/card-content.d.ts +51 -0
- package/components/card-content.js +28 -0
- package/components/card-footer.d.ts +46 -0
- package/components/card-footer.js +22 -0
- package/components/card-header.d.ts +46 -0
- package/components/card-header.js +22 -0
- package/components/card.d.ts +145 -0
- package/components/card.js +192 -0
- package/components/checkbox.d.ts +72 -0
- package/components/checkbox.js +70 -0
- package/components/chip.d.ts +107 -0
- package/components/chip.js +81 -0
- package/components/fab-backdrop.d.ts +46 -0
- package/components/fab-backdrop.js +22 -0
- package/components/fab-button.d.ts +67 -0
- package/components/fab-button.js +52 -0
- package/components/fab-buttons.d.ts +51 -0
- package/components/fab-buttons.js +26 -0
- package/components/fab.d.ts +76 -0
- package/components/fab.js +78 -0
- package/components/gauge.d.ts +91 -0
- package/components/gauge.js +151 -0
- package/components/icon.d.ts +78 -0
- package/components/icon.js +100 -0
- package/components/input.d.ts +226 -0
- package/components/input.js +409 -0
- package/components/link.d.ts +287 -0
- package/components/link.js +129 -0
- package/components/list-button.d.ts +239 -0
- package/components/list-button.js +71 -0
- package/components/list-group.d.ts +71 -0
- package/components/list-group.js +53 -0
- package/components/list-index.d.ts +81 -0
- package/components/list-index.js +96 -0
- package/components/list-input.d.ts +245 -0
- package/components/list-input.js +415 -0
- package/components/list-item.d.ts +370 -0
- package/components/list-item.js +451 -0
- package/components/list.d.ts +236 -0
- package/components/list.js +222 -0
- package/components/login-screen-title.d.ts +46 -0
- package/components/login-screen-title.js +22 -0
- package/components/login-screen.d.ts +61 -0
- package/components/login-screen.js +104 -0
- package/components/message.d.ts +116 -0
- package/components/message.js +169 -0
- package/components/messagebar-attachment.d.ts +56 -0
- package/components/messagebar-attachment.js +52 -0
- package/components/messagebar-attachments.d.ts +46 -0
- package/components/messagebar-attachments.js +22 -0
- package/components/messagebar-sheet-image.d.ts +55 -0
- package/components/messagebar-sheet-image.js +48 -0
- package/components/messagebar-sheet-item.d.ts +46 -0
- package/components/messagebar-sheet-item.js +22 -0
- package/components/messagebar-sheet.d.ts +46 -0
- package/components/messagebar-sheet.js +22 -0
- package/components/messagebar.d.ts +117 -0
- package/components/messagebar.js +193 -0
- package/components/messages-title.d.ts +46 -0
- package/components/messages-title.js +22 -0
- package/components/messages.d.ts +116 -0
- package/components/messages.js +134 -0
- package/components/nav-left.d.ts +68 -0
- package/components/nav-left.js +66 -0
- package/components/nav-right.d.ts +50 -0
- package/components/nav-right.js +25 -0
- package/components/nav-title-large.d.ts +46 -0
- package/components/nav-title-large.js +25 -0
- package/components/nav-title.d.ts +58 -0
- package/components/nav-title.js +31 -0
- package/components/navbar.d.ts +110 -0
- package/components/navbar.js +248 -0
- package/components/page-content.d.ts +113 -0
- package/components/page-content.js +147 -0
- package/components/page.d.ts +150 -0
- package/components/page.js +331 -0
- package/components/panel.d.ts +139 -0
- package/components/panel.js +198 -0
- package/components/photo-browser.d.ts +164 -0
- package/components/photo-browser.js +181 -0
- package/components/pie-chart.d.ts +37 -0
- package/components/pie-chart.js +172 -0
- package/components/popover.d.ts +101 -0
- package/components/popover.js +157 -0
- package/components/popup.d.ts +99 -0
- package/components/popup.js +161 -0
- package/components/preloader.d.ts +50 -0
- package/components/preloader.js +65 -0
- package/components/progressbar.d.ts +54 -0
- package/components/progressbar.js +44 -0
- package/components/radio.d.ts +68 -0
- package/components/radio.js +59 -0
- package/components/range.d.ts +141 -0
- package/components/range.js +139 -0
- package/components/routable-modals.d.ts +19 -0
- package/components/routable-modals.js +58 -0
- package/components/searchbar.d.ts +182 -0
- package/components/searchbar.js +285 -0
- package/components/segmented.d.ts +87 -0
- package/components/segmented.js +53 -0
- package/components/sheet.d.ts +132 -0
- package/components/sheet.js +213 -0
- package/components/skeleton-avatar.d.ts +6 -0
- package/components/skeleton-avatar.js +3 -0
- package/components/skeleton-block.d.ts +6 -0
- package/components/skeleton-block.js +3 -0
- package/components/skeleton-image.d.ts +6 -0
- package/components/skeleton-image.js +3 -0
- package/components/skeleton-text.d.ts +6 -0
- package/components/skeleton-text.js +3 -0
- package/components/stepper.d.ts +197 -0
- package/components/stepper.js +230 -0
- package/components/subnavbar.d.ts +59 -0
- package/components/subnavbar.js +40 -0
- package/components/swipeout-actions.d.ts +58 -0
- package/components/swipeout-actions.js +33 -0
- package/components/swipeout-button.d.ts +75 -0
- package/components/swipeout-button.js +48 -0
- package/components/tab.d.ts +51 -0
- package/components/tab.js +128 -0
- package/components/tabs.d.ts +63 -0
- package/components/tabs.js +59 -0
- package/components/text-editor.d.ts +95 -0
- package/components/text-editor.js +147 -0
- package/components/toggle.d.ts +80 -0
- package/components/toggle.js +89 -0
- package/components/toolbar.d.ts +108 -0
- package/components/toolbar.js +135 -0
- package/components/treeview-item.d.ts +265 -0
- package/components/treeview-item.js +140 -0
- package/components/treeview.d.ts +46 -0
- package/components/treeview.js +22 -0
- package/components/use-icon.d.ts +19 -0
- package/components/use-icon.js +27 -0
- package/components/view.d.ts +296 -0
- package/components/view.js +373 -0
- package/components/views.d.ts +50 -0
- package/components/views.js +25 -0
- package/framework7-vue-bundle.js +190 -0
- package/framework7-vue.d.ts +121 -0
- package/framework7-vue.js +108 -0
- package/package.json +65 -0
- package/shared/components-router.js +203 -0
- package/shared/f7.js +71 -0
- package/shared/get-router-initial-component.js +35 -0
- package/shared/mixins.js +233 -0
- package/shared/modal-state-classes.js +10 -0
- package/shared/plugin.js +37 -0
- package/shared/router-open-in.js +105 -0
- package/shared/use-icon.js +37 -0
- package/shared/use-route-props.js +18 -0
- package/shared/use-smart-select.js +24 -0
- package/shared/use-store.js +24 -0
- package/shared/use-tab.js +24 -0
- package/shared/use-theme.js +11 -0
- package/shared/use-tooltip.js +43 -0
- package/shared/utils.js +110 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
|
+
const _hoisted_1 = {
|
|
3
|
+
ref: "elRef",
|
|
4
|
+
class: "breadcrumbs-separator"
|
|
5
|
+
};
|
|
6
|
+
function render(_ctx, _cache) {
|
|
7
|
+
return _openBlock(), _createElementBlock("div", _hoisted_1, null, 512);
|
|
8
|
+
}
|
|
9
|
+
import { ref } from 'vue';
|
|
10
|
+
export default {
|
|
11
|
+
name: 'f7-breadcrumbs-separator',
|
|
12
|
+
render,
|
|
13
|
+
props: {},
|
|
14
|
+
setup() {
|
|
15
|
+
const elRef = ref(null);
|
|
16
|
+
return {
|
|
17
|
+
elRef
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
declare const Breadcrumbs: DefineComponent<
|
|
6
|
+
{
|
|
7
|
+
|
|
8
|
+
},
|
|
9
|
+
() => JSX.Element,
|
|
10
|
+
unknown,
|
|
11
|
+
{},
|
|
12
|
+
{},
|
|
13
|
+
ComponentOptionsMixin,
|
|
14
|
+
ComponentOptionsMixin,
|
|
15
|
+
|
|
16
|
+
>;
|
|
17
|
+
|
|
18
|
+
export default Breadcrumbs;
|
|
19
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
|
+
const _hoisted_1 = {
|
|
3
|
+
ref: "elRef",
|
|
4
|
+
class: "breadcrumbs"
|
|
5
|
+
};
|
|
6
|
+
function render(_ctx, _cache) {
|
|
7
|
+
return _openBlock(), _createElementBlock("div", _hoisted_1, [_renderSlot(_ctx.$slots, "default")], 512);
|
|
8
|
+
}
|
|
9
|
+
import { ref } from 'vue';
|
|
10
|
+
export default {
|
|
11
|
+
name: 'f7-breadcrumbs',
|
|
12
|
+
render,
|
|
13
|
+
props: {},
|
|
14
|
+
setup() {
|
|
15
|
+
const elRef = ref(null);
|
|
16
|
+
return {
|
|
17
|
+
elRef
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
};
|
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
|
|
2
|
+
import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
declare const Button: DefineComponent<
|
|
6
|
+
{
|
|
7
|
+
|
|
8
|
+
text: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
},
|
|
11
|
+
|
|
12
|
+
tabLink: {
|
|
13
|
+
type: BooleanConstructor | StringConstructor;
|
|
14
|
+
},
|
|
15
|
+
|
|
16
|
+
tabLinkActive: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
type: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
target: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
round: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
roundMd: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
roundIos: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
fill: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
fillMd: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
fillIos: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
},
|
|
51
|
+
|
|
52
|
+
tonal: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
tonalMd: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
tonalIos: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
large: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
},
|
|
67
|
+
|
|
68
|
+
largeMd: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
},
|
|
71
|
+
|
|
72
|
+
largeIos: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
},
|
|
75
|
+
|
|
76
|
+
small: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
},
|
|
79
|
+
|
|
80
|
+
smallMd: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
},
|
|
83
|
+
|
|
84
|
+
smallIos: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
},
|
|
87
|
+
|
|
88
|
+
raised: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
},
|
|
91
|
+
|
|
92
|
+
raisedMd: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
},
|
|
95
|
+
|
|
96
|
+
raisedIos: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
},
|
|
99
|
+
|
|
100
|
+
outline: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
},
|
|
103
|
+
|
|
104
|
+
outlineMd: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
},
|
|
107
|
+
|
|
108
|
+
outlineIos: {
|
|
109
|
+
type: BooleanConstructor;
|
|
110
|
+
},
|
|
111
|
+
|
|
112
|
+
active: {
|
|
113
|
+
type: BooleanConstructor;
|
|
114
|
+
},
|
|
115
|
+
|
|
116
|
+
disabled: {
|
|
117
|
+
type: BooleanConstructor;
|
|
118
|
+
},
|
|
119
|
+
|
|
120
|
+
tooltip: {
|
|
121
|
+
type: StringConstructor;
|
|
122
|
+
},
|
|
123
|
+
|
|
124
|
+
tooltipTrigger: {
|
|
125
|
+
type: StringConstructor;
|
|
126
|
+
},
|
|
127
|
+
|
|
128
|
+
preloader: {
|
|
129
|
+
type: BooleanConstructor;
|
|
130
|
+
},
|
|
131
|
+
|
|
132
|
+
preloaderSize: {
|
|
133
|
+
type: NumberConstructor | StringConstructor;
|
|
134
|
+
},
|
|
135
|
+
|
|
136
|
+
preloaderColor: {
|
|
137
|
+
type: StringConstructor;
|
|
138
|
+
},
|
|
139
|
+
|
|
140
|
+
loading: {
|
|
141
|
+
type: BooleanConstructor;
|
|
142
|
+
},
|
|
143
|
+
|
|
144
|
+
href: {
|
|
145
|
+
type: StringConstructor | BooleanConstructor;
|
|
146
|
+
default: string;
|
|
147
|
+
},
|
|
148
|
+
|
|
149
|
+
icon: {
|
|
150
|
+
type: StringConstructor;
|
|
151
|
+
},
|
|
152
|
+
|
|
153
|
+
iconMaterial: {
|
|
154
|
+
type: StringConstructor;
|
|
155
|
+
},
|
|
156
|
+
|
|
157
|
+
iconF7: {
|
|
158
|
+
type: StringConstructor;
|
|
159
|
+
},
|
|
160
|
+
|
|
161
|
+
iconIos: {
|
|
162
|
+
type: StringConstructor;
|
|
163
|
+
},
|
|
164
|
+
|
|
165
|
+
iconMd: {
|
|
166
|
+
type: StringConstructor;
|
|
167
|
+
},
|
|
168
|
+
|
|
169
|
+
iconColor: {
|
|
170
|
+
type: StringConstructor;
|
|
171
|
+
},
|
|
172
|
+
|
|
173
|
+
iconSize: {
|
|
174
|
+
type: StringConstructor | NumberConstructor;
|
|
175
|
+
},
|
|
176
|
+
|
|
177
|
+
color: {
|
|
178
|
+
type: StringConstructor;
|
|
179
|
+
},
|
|
180
|
+
|
|
181
|
+
colorTheme: {
|
|
182
|
+
type: StringConstructor;
|
|
183
|
+
},
|
|
184
|
+
|
|
185
|
+
textColor: {
|
|
186
|
+
type: StringConstructor;
|
|
187
|
+
},
|
|
188
|
+
|
|
189
|
+
bgColor: {
|
|
190
|
+
type: StringConstructor;
|
|
191
|
+
},
|
|
192
|
+
|
|
193
|
+
borderColor: {
|
|
194
|
+
type: StringConstructor;
|
|
195
|
+
},
|
|
196
|
+
|
|
197
|
+
rippleColor: {
|
|
198
|
+
type: StringConstructor;
|
|
199
|
+
},
|
|
200
|
+
|
|
201
|
+
dark: {
|
|
202
|
+
type: BooleanConstructor;
|
|
203
|
+
},
|
|
204
|
+
|
|
205
|
+
searchbarEnable: {
|
|
206
|
+
type: BooleanConstructor | StringConstructor;
|
|
207
|
+
},
|
|
208
|
+
|
|
209
|
+
searchbarDisable: {
|
|
210
|
+
type: BooleanConstructor | StringConstructor;
|
|
211
|
+
},
|
|
212
|
+
|
|
213
|
+
searchbarClear: {
|
|
214
|
+
type: BooleanConstructor | StringConstructor;
|
|
215
|
+
},
|
|
216
|
+
|
|
217
|
+
searchbarToggle: {
|
|
218
|
+
type: BooleanConstructor | StringConstructor;
|
|
219
|
+
},
|
|
220
|
+
|
|
221
|
+
panelOpen: {
|
|
222
|
+
type: BooleanConstructor | StringConstructor;
|
|
223
|
+
},
|
|
224
|
+
|
|
225
|
+
panelClose: {
|
|
226
|
+
type: BooleanConstructor | StringConstructor;
|
|
227
|
+
},
|
|
228
|
+
|
|
229
|
+
panelToggle: {
|
|
230
|
+
type: BooleanConstructor | StringConstructor;
|
|
231
|
+
},
|
|
232
|
+
|
|
233
|
+
popupOpen: {
|
|
234
|
+
type: BooleanConstructor | StringConstructor;
|
|
235
|
+
},
|
|
236
|
+
|
|
237
|
+
popupClose: {
|
|
238
|
+
type: BooleanConstructor | StringConstructor;
|
|
239
|
+
},
|
|
240
|
+
|
|
241
|
+
actionsOpen: {
|
|
242
|
+
type: BooleanConstructor | StringConstructor;
|
|
243
|
+
},
|
|
244
|
+
|
|
245
|
+
actionsClose: {
|
|
246
|
+
type: BooleanConstructor | StringConstructor;
|
|
247
|
+
},
|
|
248
|
+
|
|
249
|
+
popoverOpen: {
|
|
250
|
+
type: BooleanConstructor | StringConstructor;
|
|
251
|
+
},
|
|
252
|
+
|
|
253
|
+
popoverClose: {
|
|
254
|
+
type: BooleanConstructor | StringConstructor;
|
|
255
|
+
},
|
|
256
|
+
|
|
257
|
+
loginScreenOpen: {
|
|
258
|
+
type: BooleanConstructor | StringConstructor;
|
|
259
|
+
},
|
|
260
|
+
|
|
261
|
+
loginScreenClose: {
|
|
262
|
+
type: BooleanConstructor | StringConstructor;
|
|
263
|
+
},
|
|
264
|
+
|
|
265
|
+
sheetOpen: {
|
|
266
|
+
type: BooleanConstructor | StringConstructor;
|
|
267
|
+
},
|
|
268
|
+
|
|
269
|
+
sheetClose: {
|
|
270
|
+
type: BooleanConstructor | StringConstructor;
|
|
271
|
+
},
|
|
272
|
+
|
|
273
|
+
sortableEnable: {
|
|
274
|
+
type: BooleanConstructor | StringConstructor;
|
|
275
|
+
},
|
|
276
|
+
|
|
277
|
+
sortableDisable: {
|
|
278
|
+
type: BooleanConstructor | StringConstructor;
|
|
279
|
+
},
|
|
280
|
+
|
|
281
|
+
sortableToggle: {
|
|
282
|
+
type: BooleanConstructor | StringConstructor;
|
|
283
|
+
},
|
|
284
|
+
|
|
285
|
+
cardOpen: {
|
|
286
|
+
type: BooleanConstructor | StringConstructor;
|
|
287
|
+
},
|
|
288
|
+
|
|
289
|
+
cardPreventOpen: {
|
|
290
|
+
type: BooleanConstructor | StringConstructor;
|
|
291
|
+
},
|
|
292
|
+
|
|
293
|
+
cardClose: {
|
|
294
|
+
type: BooleanConstructor | StringConstructor;
|
|
295
|
+
},
|
|
296
|
+
|
|
297
|
+
menuClose: {
|
|
298
|
+
type: BooleanConstructor | StringConstructor;
|
|
299
|
+
},
|
|
300
|
+
|
|
301
|
+
back: {
|
|
302
|
+
type: BooleanConstructor;
|
|
303
|
+
},
|
|
304
|
+
|
|
305
|
+
external: {
|
|
306
|
+
type: BooleanConstructor;
|
|
307
|
+
},
|
|
308
|
+
|
|
309
|
+
force: {
|
|
310
|
+
type: BooleanConstructor;
|
|
311
|
+
},
|
|
312
|
+
|
|
313
|
+
animate: {
|
|
314
|
+
type: BooleanConstructor;
|
|
315
|
+
},
|
|
316
|
+
|
|
317
|
+
ignoreCache: {
|
|
318
|
+
type: BooleanConstructor;
|
|
319
|
+
},
|
|
320
|
+
|
|
321
|
+
reloadCurrent: {
|
|
322
|
+
type: BooleanConstructor;
|
|
323
|
+
},
|
|
324
|
+
|
|
325
|
+
reloadAll: {
|
|
326
|
+
type: BooleanConstructor;
|
|
327
|
+
},
|
|
328
|
+
|
|
329
|
+
reloadPrevious: {
|
|
330
|
+
type: BooleanConstructor;
|
|
331
|
+
},
|
|
332
|
+
|
|
333
|
+
reloadDetail: {
|
|
334
|
+
type: BooleanConstructor;
|
|
335
|
+
},
|
|
336
|
+
|
|
337
|
+
routeTabId: {
|
|
338
|
+
type: StringConstructor;
|
|
339
|
+
},
|
|
340
|
+
|
|
341
|
+
view: {
|
|
342
|
+
type: StringConstructor;
|
|
343
|
+
},
|
|
344
|
+
|
|
345
|
+
routeProps: {
|
|
346
|
+
type: ObjectConstructor;
|
|
347
|
+
},
|
|
348
|
+
|
|
349
|
+
preventRouter: {
|
|
350
|
+
type: BooleanConstructor;
|
|
351
|
+
},
|
|
352
|
+
|
|
353
|
+
transition: {
|
|
354
|
+
type: StringConstructor;
|
|
355
|
+
},
|
|
356
|
+
|
|
357
|
+
openIn: {
|
|
358
|
+
type: StringConstructor;
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
() => JSX.Element,
|
|
362
|
+
unknown,
|
|
363
|
+
{},
|
|
364
|
+
{},
|
|
365
|
+
ComponentOptionsMixin,
|
|
366
|
+
ComponentOptionsMixin,
|
|
367
|
+
|
|
368
|
+
>;
|
|
369
|
+
|
|
370
|
+
export default Button;
|
|
371
|
+
|
|
@@ -0,0 +1,182 @@
|
|
|
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
|
+
const _hoisted_1 = {
|
|
3
|
+
key: 1
|
|
4
|
+
};
|
|
5
|
+
const _hoisted_2 = {
|
|
6
|
+
key: 1
|
|
7
|
+
};
|
|
8
|
+
function render(_ctx, _cache) {
|
|
9
|
+
const _component_f7_preloader = _resolveComponent("f7-preloader");
|
|
10
|
+
const _component_f7_use_icon = _resolveComponent("f7-use-icon");
|
|
11
|
+
return _openBlock(), _createBlock(_resolveDynamicComponent(_ctx.tag), _mergeProps({
|
|
12
|
+
ref: "elRef",
|
|
13
|
+
class: _ctx.classesComputed
|
|
14
|
+
}, _ctx.attrs), {
|
|
15
|
+
default: _withCtx(() => [_ctx.preloader ? (_openBlock(), _createElementBlock(_Fragment, {
|
|
16
|
+
key: 0
|
|
17
|
+
}, [_createVNode(_component_f7_preloader, {
|
|
18
|
+
size: _ctx.preloaderSize,
|
|
19
|
+
color: _ctx.preloaderColor
|
|
20
|
+
}, null, 8, ["size", "color"]), _createElementVNode("span", null, [_ctx.icon ? (_openBlock(), _createBlock(_component_f7_use_icon, {
|
|
21
|
+
key: 0,
|
|
22
|
+
icon: _ctx.icon
|
|
23
|
+
}, 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, {
|
|
24
|
+
key: 1
|
|
25
|
+
}, [_ctx.icon ? (_openBlock(), _createBlock(_component_f7_use_icon, {
|
|
26
|
+
key: 0,
|
|
27
|
+
icon: _ctx.icon
|
|
28
|
+
}, null, 8, ["icon"])) : _createCommentVNode("", true), _ctx.text ? (_openBlock(), _createElementBlock("span", _hoisted_2, _toDisplayString(_ctx.text), 1)) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "default")], 64))]),
|
|
29
|
+
_: 3
|
|
30
|
+
}, 16, ["class"]);
|
|
31
|
+
}
|
|
32
|
+
import { ref, computed } from 'vue';
|
|
33
|
+
import { classNames, extend, isStringProp } from '../shared/utils.js';
|
|
34
|
+
import { colorClasses, actionsAttrs, actionsClasses, routerAttrs, routerClasses, iconProps, colorProps, actionsProps, routerProps } from '../shared/mixins.js';
|
|
35
|
+
import { useTooltip } from '../shared/use-tooltip.js';
|
|
36
|
+
import { useIcon } from '../shared/use-icon.js';
|
|
37
|
+
import { useRouteProps } from '../shared/use-route-props.js';
|
|
38
|
+
import f7Preloader from './preloader.js';
|
|
39
|
+
import f7UseIcon from './use-icon.js';
|
|
40
|
+
export default {
|
|
41
|
+
name: 'f7-button',
|
|
42
|
+
render,
|
|
43
|
+
components: {
|
|
44
|
+
f7Preloader,
|
|
45
|
+
f7UseIcon
|
|
46
|
+
},
|
|
47
|
+
props: {
|
|
48
|
+
text: String,
|
|
49
|
+
tabLink: [Boolean, String],
|
|
50
|
+
tabLinkActive: Boolean,
|
|
51
|
+
type: String,
|
|
52
|
+
href: {
|
|
53
|
+
type: [String, Boolean],
|
|
54
|
+
default: '#'
|
|
55
|
+
},
|
|
56
|
+
target: String,
|
|
57
|
+
round: Boolean,
|
|
58
|
+
roundMd: Boolean,
|
|
59
|
+
roundIos: Boolean,
|
|
60
|
+
fill: Boolean,
|
|
61
|
+
fillMd: Boolean,
|
|
62
|
+
fillIos: Boolean,
|
|
63
|
+
tonal: Boolean,
|
|
64
|
+
tonalMd: Boolean,
|
|
65
|
+
tonalIos: Boolean,
|
|
66
|
+
large: Boolean,
|
|
67
|
+
largeMd: Boolean,
|
|
68
|
+
largeIos: Boolean,
|
|
69
|
+
small: Boolean,
|
|
70
|
+
smallMd: Boolean,
|
|
71
|
+
smallIos: Boolean,
|
|
72
|
+
raised: Boolean,
|
|
73
|
+
raisedMd: Boolean,
|
|
74
|
+
raisedIos: Boolean,
|
|
75
|
+
outline: Boolean,
|
|
76
|
+
outlineMd: Boolean,
|
|
77
|
+
outlineIos: Boolean,
|
|
78
|
+
active: Boolean,
|
|
79
|
+
disabled: Boolean,
|
|
80
|
+
tooltip: String,
|
|
81
|
+
tooltipTrigger: String,
|
|
82
|
+
preloader: Boolean,
|
|
83
|
+
preloaderSize: [Number, String],
|
|
84
|
+
preloaderColor: String,
|
|
85
|
+
loading: Boolean,
|
|
86
|
+
...iconProps,
|
|
87
|
+
...colorProps,
|
|
88
|
+
...actionsProps,
|
|
89
|
+
...routerProps
|
|
90
|
+
},
|
|
91
|
+
setup(props) {
|
|
92
|
+
const elRef = ref(null);
|
|
93
|
+
useTooltip(elRef, props);
|
|
94
|
+
useRouteProps(elRef, props);
|
|
95
|
+
const icon = computed(() => useIcon(props));
|
|
96
|
+
const tag = computed(() => props.type === 'submit' || props.type === 'reset' || props.type === 'button' ? 'button' : 'a');
|
|
97
|
+
const attrs = computed(() => {
|
|
98
|
+
const {
|
|
99
|
+
href,
|
|
100
|
+
tabLink,
|
|
101
|
+
target,
|
|
102
|
+
type
|
|
103
|
+
} = props;
|
|
104
|
+
let hrefComputed = href;
|
|
105
|
+
if (href === true) hrefComputed = '#';
|
|
106
|
+
if (href === false || tag.value === 'button') hrefComputed = undefined; // no href attribute
|
|
107
|
+
return extend({
|
|
108
|
+
href: hrefComputed,
|
|
109
|
+
target,
|
|
110
|
+
type,
|
|
111
|
+
'data-tab': isStringProp(tabLink) && tabLink || undefined
|
|
112
|
+
}, routerAttrs(props), actionsAttrs(props));
|
|
113
|
+
});
|
|
114
|
+
const classesComputed = computed(() => {
|
|
115
|
+
const {
|
|
116
|
+
tabLink,
|
|
117
|
+
tabLinkActive,
|
|
118
|
+
round,
|
|
119
|
+
roundMd,
|
|
120
|
+
roundIos,
|
|
121
|
+
fill,
|
|
122
|
+
fillMd,
|
|
123
|
+
fillIos,
|
|
124
|
+
tonal,
|
|
125
|
+
tonalMd,
|
|
126
|
+
tonalIos,
|
|
127
|
+
large,
|
|
128
|
+
largeMd,
|
|
129
|
+
largeIos,
|
|
130
|
+
small,
|
|
131
|
+
smallMd,
|
|
132
|
+
smallIos,
|
|
133
|
+
raised,
|
|
134
|
+
raisedMd,
|
|
135
|
+
raisedIos,
|
|
136
|
+
outline,
|
|
137
|
+
outlineMd,
|
|
138
|
+
outlineIos,
|
|
139
|
+
active,
|
|
140
|
+
disabled,
|
|
141
|
+
preloader,
|
|
142
|
+
loading
|
|
143
|
+
} = props;
|
|
144
|
+
return classNames('button', {
|
|
145
|
+
'tab-link': tabLink || tabLink === '',
|
|
146
|
+
'tab-link-active': tabLinkActive,
|
|
147
|
+
'button-round': round,
|
|
148
|
+
'button-round-ios': roundIos,
|
|
149
|
+
'button-round-md': roundMd,
|
|
150
|
+
'button-fill': fill,
|
|
151
|
+
'button-fill-ios': fillIos,
|
|
152
|
+
'button-fill-md': fillMd,
|
|
153
|
+
'button-tonal': tonal,
|
|
154
|
+
'button-tonal-ios': tonalIos,
|
|
155
|
+
'button-tonal-md': tonalMd,
|
|
156
|
+
'button-large': large,
|
|
157
|
+
'button-large-ios': largeIos,
|
|
158
|
+
'button-large-md': largeMd,
|
|
159
|
+
'button-small': small,
|
|
160
|
+
'button-small-ios': smallIos,
|
|
161
|
+
'button-small-md': smallMd,
|
|
162
|
+
'button-raised': raised,
|
|
163
|
+
'button-raised-ios': raisedIos,
|
|
164
|
+
'button-raised-md': raisedMd,
|
|
165
|
+
'button-active': active,
|
|
166
|
+
'button-outline': outline,
|
|
167
|
+
'button-outline-ios': outlineIos,
|
|
168
|
+
'button-outline-md': outlineMd,
|
|
169
|
+
'button-preloader': preloader,
|
|
170
|
+
'button-loading': loading,
|
|
171
|
+
disabled
|
|
172
|
+
}, colorClasses(props), routerClasses(props), actionsClasses(props));
|
|
173
|
+
});
|
|
174
|
+
return {
|
|
175
|
+
tag,
|
|
176
|
+
elRef,
|
|
177
|
+
attrs,
|
|
178
|
+
classesComputed,
|
|
179
|
+
icon
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
|
|
2
|
+
import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
declare const CardContent: DefineComponent<
|
|
6
|
+
{
|
|
7
|
+
|
|
8
|
+
padding: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
color: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
},
|
|
16
|
+
|
|
17
|
+
colorTheme: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
textColor: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
},
|
|
24
|
+
|
|
25
|
+
bgColor: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
borderColor: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
rippleColor: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
},
|
|
36
|
+
|
|
37
|
+
dark: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
() => JSX.Element,
|
|
42
|
+
unknown,
|
|
43
|
+
{},
|
|
44
|
+
{},
|
|
45
|
+
ComponentOptionsMixin,
|
|
46
|
+
ComponentOptionsMixin,
|
|
47
|
+
|
|
48
|
+
>;
|
|
49
|
+
|
|
50
|
+
export default CardContent;
|
|
51
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
|
+
function render(_ctx, _cache) {
|
|
3
|
+
return _openBlock(), _createElementBlock("div", {
|
|
4
|
+
class: _normalizeClass(_ctx.classes)
|
|
5
|
+
}, [_renderSlot(_ctx.$slots, "default")], 2);
|
|
6
|
+
}
|
|
7
|
+
import { computed } from 'vue';
|
|
8
|
+
import { classNames } from '../shared/utils.js';
|
|
9
|
+
import { colorClasses, colorProps } from '../shared/mixins.js';
|
|
10
|
+
export default {
|
|
11
|
+
name: 'f7-card-content',
|
|
12
|
+
render,
|
|
13
|
+
props: {
|
|
14
|
+
padding: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: true
|
|
17
|
+
},
|
|
18
|
+
...colorProps
|
|
19
|
+
},
|
|
20
|
+
setup(props) {
|
|
21
|
+
const classes = computed(() => classNames('card-content', {
|
|
22
|
+
'card-content-padding': props.padding
|
|
23
|
+
}, colorClasses(props)));
|
|
24
|
+
return {
|
|
25
|
+
classes
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
};
|