@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.
Files changed (199) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +33 -0
  3. package/components/accordion-content.d.ts +46 -0
  4. package/components/accordion-content.js +22 -0
  5. package/components/accordion-item.d.ts +51 -0
  6. package/components/accordion-item.js +77 -0
  7. package/components/accordion-toggle.d.ts +46 -0
  8. package/components/accordion-toggle.js +22 -0
  9. package/components/accordion.d.ts +50 -0
  10. package/components/accordion.js +23 -0
  11. package/components/actions-button.d.ts +56 -0
  12. package/components/actions-button.js +58 -0
  13. package/components/actions-group.d.ts +46 -0
  14. package/components/actions-group.js +22 -0
  15. package/components/actions-label.d.ts +51 -0
  16. package/components/actions-label.js +36 -0
  17. package/components/actions.d.ts +109 -0
  18. package/components/actions.js +157 -0
  19. package/components/app.d.ts +310 -0
  20. package/components/app.js +267 -0
  21. package/components/area-chart.d.ts +88 -0
  22. package/components/area-chart.js +364 -0
  23. package/components/badge.d.ts +54 -0
  24. package/components/badge.js +29 -0
  25. package/components/block-footer.d.ts +46 -0
  26. package/components/block-footer.js +22 -0
  27. package/components/block-header.d.ts +46 -0
  28. package/components/block-header.js +22 -0
  29. package/components/block-title.d.ts +54 -0
  30. package/components/block-title.js +35 -0
  31. package/components/block.d.ts +163 -0
  32. package/components/block.js +123 -0
  33. package/components/breadcrumbs-collapsed.d.ts +19 -0
  34. package/components/breadcrumbs-collapsed.js +21 -0
  35. package/components/breadcrumbs-item.d.ts +22 -0
  36. package/components/breadcrumbs-item.js +24 -0
  37. package/components/breadcrumbs-separator.d.ts +19 -0
  38. package/components/breadcrumbs-separator.js +20 -0
  39. package/components/breadcrumbs.d.ts +19 -0
  40. package/components/breadcrumbs.js +20 -0
  41. package/components/button.d.ts +371 -0
  42. package/components/button.js +182 -0
  43. package/components/card-content.d.ts +51 -0
  44. package/components/card-content.js +28 -0
  45. package/components/card-footer.d.ts +46 -0
  46. package/components/card-footer.js +22 -0
  47. package/components/card-header.d.ts +46 -0
  48. package/components/card-header.js +22 -0
  49. package/components/card.d.ts +145 -0
  50. package/components/card.js +192 -0
  51. package/components/checkbox.d.ts +72 -0
  52. package/components/checkbox.js +70 -0
  53. package/components/chip.d.ts +107 -0
  54. package/components/chip.js +81 -0
  55. package/components/fab-backdrop.d.ts +46 -0
  56. package/components/fab-backdrop.js +22 -0
  57. package/components/fab-button.d.ts +67 -0
  58. package/components/fab-button.js +52 -0
  59. package/components/fab-buttons.d.ts +51 -0
  60. package/components/fab-buttons.js +26 -0
  61. package/components/fab.d.ts +76 -0
  62. package/components/fab.js +78 -0
  63. package/components/gauge.d.ts +91 -0
  64. package/components/gauge.js +151 -0
  65. package/components/icon.d.ts +78 -0
  66. package/components/icon.js +100 -0
  67. package/components/input.d.ts +226 -0
  68. package/components/input.js +409 -0
  69. package/components/link.d.ts +287 -0
  70. package/components/link.js +129 -0
  71. package/components/list-button.d.ts +239 -0
  72. package/components/list-button.js +71 -0
  73. package/components/list-group.d.ts +71 -0
  74. package/components/list-group.js +53 -0
  75. package/components/list-index.d.ts +81 -0
  76. package/components/list-index.js +96 -0
  77. package/components/list-input.d.ts +245 -0
  78. package/components/list-input.js +415 -0
  79. package/components/list-item.d.ts +370 -0
  80. package/components/list-item.js +451 -0
  81. package/components/list.d.ts +236 -0
  82. package/components/list.js +222 -0
  83. package/components/login-screen-title.d.ts +46 -0
  84. package/components/login-screen-title.js +22 -0
  85. package/components/login-screen.d.ts +61 -0
  86. package/components/login-screen.js +104 -0
  87. package/components/message.d.ts +116 -0
  88. package/components/message.js +169 -0
  89. package/components/messagebar-attachment.d.ts +56 -0
  90. package/components/messagebar-attachment.js +52 -0
  91. package/components/messagebar-attachments.d.ts +46 -0
  92. package/components/messagebar-attachments.js +22 -0
  93. package/components/messagebar-sheet-image.d.ts +55 -0
  94. package/components/messagebar-sheet-image.js +48 -0
  95. package/components/messagebar-sheet-item.d.ts +46 -0
  96. package/components/messagebar-sheet-item.js +22 -0
  97. package/components/messagebar-sheet.d.ts +46 -0
  98. package/components/messagebar-sheet.js +22 -0
  99. package/components/messagebar.d.ts +117 -0
  100. package/components/messagebar.js +193 -0
  101. package/components/messages-title.d.ts +46 -0
  102. package/components/messages-title.js +22 -0
  103. package/components/messages.d.ts +116 -0
  104. package/components/messages.js +134 -0
  105. package/components/nav-left.d.ts +68 -0
  106. package/components/nav-left.js +66 -0
  107. package/components/nav-right.d.ts +50 -0
  108. package/components/nav-right.js +25 -0
  109. package/components/nav-title-large.d.ts +46 -0
  110. package/components/nav-title-large.js +25 -0
  111. package/components/nav-title.d.ts +58 -0
  112. package/components/nav-title.js +31 -0
  113. package/components/navbar.d.ts +110 -0
  114. package/components/navbar.js +248 -0
  115. package/components/page-content.d.ts +113 -0
  116. package/components/page-content.js +147 -0
  117. package/components/page.d.ts +150 -0
  118. package/components/page.js +331 -0
  119. package/components/panel.d.ts +139 -0
  120. package/components/panel.js +198 -0
  121. package/components/photo-browser.d.ts +164 -0
  122. package/components/photo-browser.js +181 -0
  123. package/components/pie-chart.d.ts +37 -0
  124. package/components/pie-chart.js +172 -0
  125. package/components/popover.d.ts +101 -0
  126. package/components/popover.js +157 -0
  127. package/components/popup.d.ts +99 -0
  128. package/components/popup.js +161 -0
  129. package/components/preloader.d.ts +50 -0
  130. package/components/preloader.js +65 -0
  131. package/components/progressbar.d.ts +54 -0
  132. package/components/progressbar.js +44 -0
  133. package/components/radio.d.ts +68 -0
  134. package/components/radio.js +59 -0
  135. package/components/range.d.ts +141 -0
  136. package/components/range.js +139 -0
  137. package/components/routable-modals.d.ts +19 -0
  138. package/components/routable-modals.js +58 -0
  139. package/components/searchbar.d.ts +182 -0
  140. package/components/searchbar.js +285 -0
  141. package/components/segmented.d.ts +87 -0
  142. package/components/segmented.js +53 -0
  143. package/components/sheet.d.ts +132 -0
  144. package/components/sheet.js +213 -0
  145. package/components/skeleton-avatar.d.ts +6 -0
  146. package/components/skeleton-avatar.js +3 -0
  147. package/components/skeleton-block.d.ts +6 -0
  148. package/components/skeleton-block.js +3 -0
  149. package/components/skeleton-image.d.ts +6 -0
  150. package/components/skeleton-image.js +3 -0
  151. package/components/skeleton-text.d.ts +6 -0
  152. package/components/skeleton-text.js +3 -0
  153. package/components/stepper.d.ts +197 -0
  154. package/components/stepper.js +230 -0
  155. package/components/subnavbar.d.ts +59 -0
  156. package/components/subnavbar.js +40 -0
  157. package/components/swipeout-actions.d.ts +58 -0
  158. package/components/swipeout-actions.js +33 -0
  159. package/components/swipeout-button.d.ts +75 -0
  160. package/components/swipeout-button.js +48 -0
  161. package/components/tab.d.ts +51 -0
  162. package/components/tab.js +128 -0
  163. package/components/tabs.d.ts +63 -0
  164. package/components/tabs.js +59 -0
  165. package/components/text-editor.d.ts +95 -0
  166. package/components/text-editor.js +147 -0
  167. package/components/toggle.d.ts +80 -0
  168. package/components/toggle.js +89 -0
  169. package/components/toolbar.d.ts +108 -0
  170. package/components/toolbar.js +135 -0
  171. package/components/treeview-item.d.ts +265 -0
  172. package/components/treeview-item.js +140 -0
  173. package/components/treeview.d.ts +46 -0
  174. package/components/treeview.js +22 -0
  175. package/components/use-icon.d.ts +19 -0
  176. package/components/use-icon.js +27 -0
  177. package/components/view.d.ts +296 -0
  178. package/components/view.js +373 -0
  179. package/components/views.d.ts +50 -0
  180. package/components/views.js +25 -0
  181. package/framework7-vue-bundle.js +190 -0
  182. package/framework7-vue.d.ts +121 -0
  183. package/framework7-vue.js +108 -0
  184. package/package.json +65 -0
  185. package/shared/components-router.js +203 -0
  186. package/shared/f7.js +71 -0
  187. package/shared/get-router-initial-component.js +35 -0
  188. package/shared/mixins.js +233 -0
  189. package/shared/modal-state-classes.js +10 -0
  190. package/shared/plugin.js +37 -0
  191. package/shared/router-open-in.js +105 -0
  192. package/shared/use-icon.js +37 -0
  193. package/shared/use-route-props.js +18 -0
  194. package/shared/use-smart-select.js +24 -0
  195. package/shared/use-store.js +24 -0
  196. package/shared/use-tab.js +24 -0
  197. package/shared/use-theme.js +11 -0
  198. package/shared/use-tooltip.js +43 -0
  199. package/shared/utils.js +110 -0
@@ -0,0 +1,129 @@
1
+ import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, normalizeClass as _normalizeClass, createElementBlock as _createElementBlock, renderSlot as _renderSlot, mergeProps as _mergeProps } from "vue";
2
+ function render(_ctx, _cache) {
3
+ const _component_f7_use_icon = _resolveComponent("f7-use-icon");
4
+ const _component_f7_badge = _resolveComponent("f7-badge");
5
+ return _openBlock(), _createElementBlock("a", _mergeProps({
6
+ ref: "elRef",
7
+ class: _ctx.classes
8
+ }, _ctx.attrs), [_ctx.icon ? (_openBlock(), _createBlock(_component_f7_use_icon, {
9
+ key: 0,
10
+ icon: _ctx.icon
11
+ }, null, 8, ["icon"])) : _createCommentVNode("", true), _ctx.text ? (_openBlock(), _createElementBlock("span", {
12
+ key: 1,
13
+ class: _normalizeClass(_ctx.isTabbarIcons ? 'tabbar-label' : '')
14
+ }, [_createTextVNode(_toDisplayString(_ctx.text) + " ", 1), _ctx.badge ? (_openBlock(), _createBlock(_component_f7_badge, {
15
+ key: 0,
16
+ color: _ctx.badgeColor
17
+ }, {
18
+ default: _withCtx(() => [_createTextVNode(_toDisplayString(_ctx.badge), 1)]),
19
+ _: 1
20
+ }, 8, ["color"])) : _createCommentVNode("", true)], 2)) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "default")], 16);
21
+ }
22
+ import { computed, ref, inject } from 'vue';
23
+ import { classNames, isStringProp } from '../shared/utils.js';
24
+ import { colorClasses, routerAttrs, routerClasses, actionsAttrs, actionsClasses, colorProps, actionsProps, routerProps, iconProps } from '../shared/mixins.js';
25
+ import { useIcon } from '../shared/use-icon.js';
26
+ import { useRouteProps } from '../shared/use-route-props.js';
27
+ import { useTooltip } from '../shared/use-tooltip.js';
28
+ import { useSmartSelect } from '../shared/use-smart-select.js';
29
+ import f7Badge from './badge.js';
30
+ import f7UseIcon from './use-icon.js';
31
+ export default {
32
+ name: 'f7-link',
33
+ render,
34
+ components: {
35
+ f7Badge,
36
+ f7UseIcon
37
+ },
38
+ props: {
39
+ noLinkClass: Boolean,
40
+ text: String,
41
+ tabLink: [Boolean, String],
42
+ tabLinkActive: Boolean,
43
+ tabbarLabel: Boolean,
44
+ iconOnly: Boolean,
45
+ badge: [String, Number],
46
+ badgeColor: [String],
47
+ href: {
48
+ type: [String, Boolean],
49
+ default: '#'
50
+ },
51
+ target: String,
52
+ tooltip: String,
53
+ tooltipTrigger: String,
54
+ smartSelect: Boolean,
55
+ smartSelectParams: Object,
56
+ ...iconProps,
57
+ ...colorProps,
58
+ ...actionsProps,
59
+ ...routerProps
60
+ },
61
+ setup(props, _ref) {
62
+ let {
63
+ slots
64
+ } = _ref;
65
+ const elRef = ref(null);
66
+ let f7SmartSelect = null;
67
+ useTooltip(elRef, props);
68
+ useRouteProps(elRef, props);
69
+ useSmartSelect(props, instance => {
70
+ f7SmartSelect = instance;
71
+ }, () => {
72
+ return elRef.value;
73
+ });
74
+ const TabbarContext = inject('TabbarContext', {
75
+ value: {}
76
+ });
77
+ const isTabbarIcons = computed(() => props.tabbarLabel || TabbarContext.value.tabbarHasIcons);
78
+ const attrs = computed(() => {
79
+ const {
80
+ href,
81
+ tabLink,
82
+ target
83
+ } = props;
84
+ let hrefComputed = href;
85
+ if (href === true) hrefComputed = '#';
86
+ if (href === false) hrefComputed = undefined; // no href attribute
87
+ return {
88
+ href: hrefComputed,
89
+ target,
90
+ 'data-tab': isStringProp(tabLink) && tabLink || undefined,
91
+ ...routerAttrs(props),
92
+ ...actionsAttrs(props)
93
+ };
94
+ });
95
+ const classes = computed(() => {
96
+ const {
97
+ iconOnly,
98
+ text,
99
+ noLinkClass,
100
+ tabLink,
101
+ tabLinkActive,
102
+ smartSelect
103
+ } = props;
104
+ let iconOnlyComputed;
105
+ const hasChildren = slots && slots.default;
106
+ if (iconOnly || !text && !hasChildren) {
107
+ iconOnlyComputed = true;
108
+ } else {
109
+ iconOnlyComputed = false;
110
+ }
111
+ return classNames({
112
+ link: !(noLinkClass || isTabbarIcons.value),
113
+ 'icon-only': iconOnlyComputed,
114
+ 'tab-link': tabLink || tabLink === '',
115
+ 'tab-link-active': tabLinkActive,
116
+ 'smart-select': smartSelect
117
+ }, colorClasses(props), routerClasses(props), actionsClasses(props));
118
+ });
119
+ const icon = computed(() => useIcon(props));
120
+ return {
121
+ elRef,
122
+ icon,
123
+ isTabbarIcons,
124
+ attrs,
125
+ classes,
126
+ f7SmartSelect
127
+ };
128
+ }
129
+ };
@@ -0,0 +1,239 @@
1
+
2
+ import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
3
+
4
+
5
+ declare const ListButton: DefineComponent<
6
+ {
7
+
8
+ title: {
9
+ type: StringConstructor | NumberConstructor;
10
+ },
11
+
12
+ text: {
13
+ type: StringConstructor | NumberConstructor;
14
+ },
15
+
16
+ tabLink: {
17
+ type: BooleanConstructor | StringConstructor;
18
+ },
19
+
20
+ tabLinkActive: {
21
+ type: BooleanConstructor;
22
+ },
23
+
24
+ link: {
25
+ type: BooleanConstructor | StringConstructor;
26
+ },
27
+
28
+ href: {
29
+ type: BooleanConstructor | StringConstructor;
30
+ },
31
+
32
+ target: {
33
+ type: StringConstructor;
34
+ },
35
+
36
+ tooltip: {
37
+ type: StringConstructor;
38
+ },
39
+
40
+ tooltipTrigger: {
41
+ type: StringConstructor;
42
+ },
43
+
44
+ color: {
45
+ type: StringConstructor;
46
+ },
47
+
48
+ colorTheme: {
49
+ type: StringConstructor;
50
+ },
51
+
52
+ textColor: {
53
+ type: StringConstructor;
54
+ },
55
+
56
+ bgColor: {
57
+ type: StringConstructor;
58
+ },
59
+
60
+ borderColor: {
61
+ type: StringConstructor;
62
+ },
63
+
64
+ rippleColor: {
65
+ type: StringConstructor;
66
+ },
67
+
68
+ dark: {
69
+ type: BooleanConstructor;
70
+ },
71
+
72
+ searchbarEnable: {
73
+ type: BooleanConstructor | StringConstructor;
74
+ },
75
+
76
+ searchbarDisable: {
77
+ type: BooleanConstructor | StringConstructor;
78
+ },
79
+
80
+ searchbarClear: {
81
+ type: BooleanConstructor | StringConstructor;
82
+ },
83
+
84
+ searchbarToggle: {
85
+ type: BooleanConstructor | StringConstructor;
86
+ },
87
+
88
+ panelOpen: {
89
+ type: BooleanConstructor | StringConstructor;
90
+ },
91
+
92
+ panelClose: {
93
+ type: BooleanConstructor | StringConstructor;
94
+ },
95
+
96
+ panelToggle: {
97
+ type: BooleanConstructor | StringConstructor;
98
+ },
99
+
100
+ popupOpen: {
101
+ type: BooleanConstructor | StringConstructor;
102
+ },
103
+
104
+ popupClose: {
105
+ type: BooleanConstructor | StringConstructor;
106
+ },
107
+
108
+ actionsOpen: {
109
+ type: BooleanConstructor | StringConstructor;
110
+ },
111
+
112
+ actionsClose: {
113
+ type: BooleanConstructor | StringConstructor;
114
+ },
115
+
116
+ popoverOpen: {
117
+ type: BooleanConstructor | StringConstructor;
118
+ },
119
+
120
+ popoverClose: {
121
+ type: BooleanConstructor | StringConstructor;
122
+ },
123
+
124
+ loginScreenOpen: {
125
+ type: BooleanConstructor | StringConstructor;
126
+ },
127
+
128
+ loginScreenClose: {
129
+ type: BooleanConstructor | StringConstructor;
130
+ },
131
+
132
+ sheetOpen: {
133
+ type: BooleanConstructor | StringConstructor;
134
+ },
135
+
136
+ sheetClose: {
137
+ type: BooleanConstructor | StringConstructor;
138
+ },
139
+
140
+ sortableEnable: {
141
+ type: BooleanConstructor | StringConstructor;
142
+ },
143
+
144
+ sortableDisable: {
145
+ type: BooleanConstructor | StringConstructor;
146
+ },
147
+
148
+ sortableToggle: {
149
+ type: BooleanConstructor | StringConstructor;
150
+ },
151
+
152
+ cardOpen: {
153
+ type: BooleanConstructor | StringConstructor;
154
+ },
155
+
156
+ cardPreventOpen: {
157
+ type: BooleanConstructor | StringConstructor;
158
+ },
159
+
160
+ cardClose: {
161
+ type: BooleanConstructor | StringConstructor;
162
+ },
163
+
164
+ menuClose: {
165
+ type: BooleanConstructor | StringConstructor;
166
+ },
167
+
168
+ back: {
169
+ type: BooleanConstructor;
170
+ },
171
+
172
+ external: {
173
+ type: BooleanConstructor;
174
+ },
175
+
176
+ force: {
177
+ type: BooleanConstructor;
178
+ },
179
+
180
+ animate: {
181
+ type: BooleanConstructor;
182
+ },
183
+
184
+ ignoreCache: {
185
+ type: BooleanConstructor;
186
+ },
187
+
188
+ reloadCurrent: {
189
+ type: BooleanConstructor;
190
+ },
191
+
192
+ reloadAll: {
193
+ type: BooleanConstructor;
194
+ },
195
+
196
+ reloadPrevious: {
197
+ type: BooleanConstructor;
198
+ },
199
+
200
+ reloadDetail: {
201
+ type: BooleanConstructor;
202
+ },
203
+
204
+ routeTabId: {
205
+ type: StringConstructor;
206
+ },
207
+
208
+ view: {
209
+ type: StringConstructor;
210
+ },
211
+
212
+ routeProps: {
213
+ type: ObjectConstructor;
214
+ },
215
+
216
+ preventRouter: {
217
+ type: BooleanConstructor;
218
+ },
219
+
220
+ transition: {
221
+ type: StringConstructor;
222
+ },
223
+
224
+ openIn: {
225
+ type: StringConstructor;
226
+ }
227
+ },
228
+ () => JSX.Element,
229
+ unknown,
230
+ {},
231
+ {},
232
+ ComponentOptionsMixin,
233
+ ComponentOptionsMixin,
234
+ ("click")[],
235
+ "click"
236
+ >;
237
+
238
+ export default ListButton;
239
+
@@ -0,0 +1,71 @@
1
+ import { toDisplayString as _toDisplayString, renderSlot as _renderSlot, createTextVNode as _createTextVNode, mergeProps as _mergeProps, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
+ function render(_ctx, _cache) {
3
+ return _openBlock(), _createElementBlock("li", null, [_createElementVNode("a", _mergeProps({
4
+ ref: "linkElRef",
5
+ class: _ctx.linkClasses
6
+ }, _ctx.linkAttrs, {
7
+ onClick: _cache[0] || (_cache[0] = function () {
8
+ return _ctx.onClick && _ctx.onClick(...arguments);
9
+ })
10
+ }), [_createTextVNode(_toDisplayString(_ctx.title) + " " + _toDisplayString(_ctx.text) + " ", 1), _renderSlot(_ctx.$slots, "default")], 16)]);
11
+ }
12
+ import { computed, ref } from 'vue';
13
+ import { classNames, isStringProp } from '../shared/utils.js';
14
+ import { colorClasses, colorProps, actionsAttrs, actionsClasses, actionsProps, routerAttrs, routerClasses, routerProps } from '../shared/mixins.js';
15
+ import { useTooltip } from '../shared/use-tooltip.js';
16
+ import { useRouteProps } from '../shared/use-route-props.js';
17
+ export default {
18
+ name: 'f7-list-button',
19
+ render,
20
+ props: {
21
+ title: [String, Number],
22
+ text: [String, Number],
23
+ tabLink: [Boolean, String],
24
+ tabLinkActive: Boolean,
25
+ link: [Boolean, String],
26
+ href: [Boolean, String],
27
+ target: String,
28
+ tooltip: String,
29
+ tooltipTrigger: String,
30
+ ...colorProps,
31
+ ...actionsProps,
32
+ ...routerProps
33
+ },
34
+ emits: ['click'],
35
+ setup(props, _ref) {
36
+ let {
37
+ emit
38
+ } = _ref;
39
+ const linkElRef = ref(null);
40
+ const onClick = e => {
41
+ emit('click', e);
42
+ };
43
+ useTooltip(linkElRef, props);
44
+ useRouteProps(linkElRef, props);
45
+ const linkAttrs = computed(() => {
46
+ return {
47
+ href: typeof props.link === 'boolean' && typeof props.href === 'boolean' ? '#' : props.link || props.href,
48
+ target: props.target,
49
+ 'data-tab': isStringProp(props.tabLink) && props.tabLink,
50
+ ...routerAttrs(props),
51
+ ...actionsAttrs(props)
52
+ };
53
+ });
54
+ const linkClasses = computed(() => {
55
+ return classNames({
56
+ 'list-button': true,
57
+ 'tab-link': props.tabLink || props.tabLink === '',
58
+ 'tab-link-active': props.tabLinkActive,
59
+ ...colorClasses(props),
60
+ ...routerClasses(props),
61
+ ...actionsClasses(props)
62
+ });
63
+ });
64
+ return {
65
+ linkAttrs,
66
+ linkClasses,
67
+ onClick,
68
+ linkElRef
69
+ };
70
+ }
71
+ };
@@ -0,0 +1,71 @@
1
+
2
+ import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
3
+
4
+
5
+ declare const ListGroup: DefineComponent<
6
+ {
7
+
8
+ mediaList: {
9
+ type: BooleanConstructor;
10
+ },
11
+
12
+ simpleList: {
13
+ type: BooleanConstructor;
14
+ },
15
+
16
+ sortable: {
17
+ type: BooleanConstructor;
18
+ },
19
+
20
+ sortableOpposite: {
21
+ type: BooleanConstructor;
22
+ },
23
+
24
+ sortableTapHold: {
25
+ type: BooleanConstructor;
26
+ },
27
+
28
+ sortableMoveElements: {
29
+ type: BooleanConstructor;
30
+ default: undefined;
31
+ },
32
+
33
+ color: {
34
+ type: StringConstructor;
35
+ },
36
+
37
+ colorTheme: {
38
+ type: StringConstructor;
39
+ },
40
+
41
+ textColor: {
42
+ type: StringConstructor;
43
+ },
44
+
45
+ bgColor: {
46
+ type: StringConstructor;
47
+ },
48
+
49
+ borderColor: {
50
+ type: StringConstructor;
51
+ },
52
+
53
+ rippleColor: {
54
+ type: StringConstructor;
55
+ },
56
+
57
+ dark: {
58
+ type: BooleanConstructor;
59
+ }
60
+ },
61
+ () => JSX.Element,
62
+ unknown,
63
+ {},
64
+ {},
65
+ ComponentOptionsMixin,
66
+ ComponentOptionsMixin,
67
+
68
+ >;
69
+
70
+ export default ListGroup;
71
+
@@ -0,0 +1,53 @@
1
+ import { renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
+ const _hoisted_1 = ["data-sortable-move-elements"];
3
+ function render(_ctx, _cache) {
4
+ return _openBlock(), _createElementBlock("div", {
5
+ class: _normalizeClass(_ctx.classes),
6
+ "data-sortable-move-elements": typeof _ctx.sortableMoveElements !== 'undefined' ? _ctx.sortableMoveElements.toString() : undefined
7
+ }, [_createElementVNode("ul", null, [_renderSlot(_ctx.$slots, "default")])], 10, _hoisted_1);
8
+ }
9
+ import { computed, provide, inject } from 'vue';
10
+ import { classNames } from '../shared/utils.js';
11
+ import { colorClasses, colorProps } from '../shared/mixins.js';
12
+ export default {
13
+ name: 'f7-list-group',
14
+ render,
15
+ props: {
16
+ mediaList: Boolean,
17
+ simpleList: Boolean,
18
+ sortable: Boolean,
19
+ sortableOpposite: Boolean,
20
+ sortableTapHold: Boolean,
21
+ sortableMoveElements: {
22
+ type: Boolean,
23
+ default: undefined
24
+ },
25
+ ...colorProps
26
+ },
27
+ setup(props) {
28
+ const ListContextParent = inject('ListContext', {
29
+ value: {
30
+ listIsMedia: props.mediaList,
31
+ listIsSimple: props.simpleList,
32
+ listIsSortable: props.sortable,
33
+ listIsSortableOpposite: props.sortableOpposite
34
+ }
35
+ });
36
+ const ListContext = computed(() => ({
37
+ listIsMedia: props.mediaList || ListContextParent.value.listIsMedia,
38
+ listIsSimple: props.simpleList || ListContextParent.value.listIsSimple,
39
+ listIsSortable: props.sortable || ListContextParent.value.listIsSortable,
40
+ listIsSortableOpposite: props.sortableOpposite || ListContextParent.value.listIsSortableOpposite
41
+ }));
42
+ provide('ListContext', ListContext);
43
+ const classes = computed(() => classNames('list-group', {
44
+ 'media-list': props.mediaList,
45
+ sortable: props.sortable,
46
+ 'sortable-tap-hold': props.sortableTapHold,
47
+ 'sortable-opposite': props.sortableOpposite
48
+ }, colorClasses(props)));
49
+ return {
50
+ classes
51
+ };
52
+ }
53
+ };
@@ -0,0 +1,81 @@
1
+
2
+ import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
3
+
4
+
5
+ declare const ListIndex: DefineComponent<
6
+ {
7
+
8
+ listEl: {
9
+ type: StringConstructor | ObjectConstructor;
10
+ },
11
+
12
+ init: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ },
16
+
17
+ indexes: {
18
+ type: StringConstructor | ArrayConstructor;
19
+ default: string;
20
+ },
21
+
22
+ scrollList: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ },
26
+
27
+ label: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ },
31
+
32
+ iosItemHeight: {
33
+ type: NumberConstructor;
34
+ default: number;
35
+ },
36
+
37
+ mdItemHeight: {
38
+ type: NumberConstructor;
39
+ default: number;
40
+ },
41
+
42
+ color: {
43
+ type: StringConstructor;
44
+ },
45
+
46
+ colorTheme: {
47
+ type: StringConstructor;
48
+ },
49
+
50
+ textColor: {
51
+ type: StringConstructor;
52
+ },
53
+
54
+ bgColor: {
55
+ type: StringConstructor;
56
+ },
57
+
58
+ borderColor: {
59
+ type: StringConstructor;
60
+ },
61
+
62
+ rippleColor: {
63
+ type: StringConstructor;
64
+ },
65
+
66
+ dark: {
67
+ type: BooleanConstructor;
68
+ }
69
+ },
70
+ () => JSX.Element,
71
+ unknown,
72
+ {},
73
+ {},
74
+ ComponentOptionsMixin,
75
+ ComponentOptionsMixin,
76
+ ("listindex:select")[],
77
+ "listindex:select"
78
+ >;
79
+
80
+ export default ListIndex;
81
+