@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
package/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014 Vladimir Kharlampidi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,33 @@
1
+ <a href="https://www.patreon.com/framework7"><img src="https://framework7.io/i/support-badge.png" height="20"></a>
2
+
3
+ # Framework7 Vue
4
+
5
+ Framework7 Vue combines power and simplicity of great Vue.js framework with flexibility and UI of Framework7 mobile framework to build mobile apps in even more easy and quick way.
6
+
7
+ ## Supporting Framework7
8
+
9
+ Framework7 is an MIT-licensed open source project with its ongoing development made possible entirely by the support of these awesome [backers](https://github.com/framework7io/framework7/blob/master/BACKERS.md). If you'd like to join them, please consider [becoming a backer or sponsor on Patreon.](https://www.patreon.com/framework7)
10
+
11
+
12
+ ## Getting Started with Framework7 Vue
13
+ * [Installation Guide](https://framework7.io/vue/installation.html)
14
+ * [Starter App Templates](https://framework7.io/templates/)
15
+ * [App Layout](https://framework7.io/vue/app-layout.html)
16
+ * [Initialize App](https://framework7.io/vue/init-app.html)
17
+ * [Navigation Router](https://framework7.io/vue/navigation-router.html)
18
+
19
+ ## Docs
20
+
21
+ Documentation available at https://framework7.io/vue/
22
+
23
+ ## Forum
24
+
25
+ If you have questions about Framework7 or want to help others you are welcome to special forum at https://forum.framework7.io/
26
+
27
+ ## Tutorials
28
+
29
+ Tutorials available at https://framework7.io/tutorials/
30
+
31
+ ## Showcase
32
+
33
+ Appstore apps made with Framework7: https://framework7.io/showcase/
@@ -0,0 +1,46 @@
1
+
2
+ import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
3
+
4
+
5
+ declare const AccordionContent: DefineComponent<
6
+ {
7
+
8
+ color: {
9
+ type: StringConstructor;
10
+ },
11
+
12
+ colorTheme: {
13
+ type: StringConstructor;
14
+ },
15
+
16
+ textColor: {
17
+ type: StringConstructor;
18
+ },
19
+
20
+ bgColor: {
21
+ type: StringConstructor;
22
+ },
23
+
24
+ borderColor: {
25
+ type: StringConstructor;
26
+ },
27
+
28
+ rippleColor: {
29
+ type: StringConstructor;
30
+ },
31
+
32
+ dark: {
33
+ type: BooleanConstructor;
34
+ }
35
+ },
36
+ () => JSX.Element,
37
+ unknown,
38
+ {},
39
+ {},
40
+ ComponentOptionsMixin,
41
+ ComponentOptionsMixin,
42
+
43
+ >;
44
+
45
+ export default AccordionContent;
46
+
@@ -0,0 +1,22 @@
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-accordion-content',
12
+ render,
13
+ props: {
14
+ ...colorProps
15
+ },
16
+ setup(props) {
17
+ const classes = computed(() => classNames('accordion-item-content', colorClasses(props)));
18
+ return {
19
+ classes
20
+ };
21
+ }
22
+ };
@@ -0,0 +1,51 @@
1
+
2
+ import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
3
+
4
+
5
+ declare const AccordionItem: DefineComponent<
6
+ {
7
+
8
+ opened: {
9
+ type: BooleanConstructor;
10
+ },
11
+
12
+ color: {
13
+ type: StringConstructor;
14
+ },
15
+
16
+ colorTheme: {
17
+ type: StringConstructor;
18
+ },
19
+
20
+ textColor: {
21
+ type: StringConstructor;
22
+ },
23
+
24
+ bgColor: {
25
+ type: StringConstructor;
26
+ },
27
+
28
+ borderColor: {
29
+ type: StringConstructor;
30
+ },
31
+
32
+ rippleColor: {
33
+ type: StringConstructor;
34
+ },
35
+
36
+ dark: {
37
+ type: BooleanConstructor;
38
+ }
39
+ },
40
+ () => JSX.Element,
41
+ unknown,
42
+ {},
43
+ {},
44
+ ComponentOptionsMixin,
45
+ ComponentOptionsMixin,
46
+ ("accordion:beforeopen" | "accordion:open" | "accordion:opened" | "accordion:beforeclose" | "accordion:close" | "accordion:closed")[],
47
+ "accordion:beforeopen" | "accordion:open" | "accordion:opened" | "accordion:beforeclose" | "accordion:close" | "accordion:closed"
48
+ >;
49
+
50
+ export default AccordionItem;
51
+
@@ -0,0 +1,77 @@
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
+ ref: "elRef",
5
+ class: _normalizeClass(_ctx.classes)
6
+ }, [_renderSlot(_ctx.$slots, "default")], 2);
7
+ }
8
+ import { ref, computed, onBeforeUnmount, onMounted } from 'vue';
9
+ import { classNames } from '../shared/utils.js';
10
+ import { colorClasses, colorProps } from '../shared/mixins.js';
11
+ import { f7, f7ready } from '../shared/f7.js';
12
+ export default {
13
+ name: 'f7-accordion-item',
14
+ render,
15
+ props: {
16
+ opened: Boolean,
17
+ ...colorProps
18
+ },
19
+ emits: ['accordion:beforeopen', 'accordion:open', 'accordion:opened', 'accordion:beforeclose', 'accordion:close', 'accordion:closed'],
20
+ setup(props, _ref) {
21
+ let {
22
+ emit
23
+ } = _ref;
24
+ const elRef = ref(null);
25
+ const onBeforeOpen = (el, prevent) => {
26
+ if (elRef.value !== el) return;
27
+ emit('accordion:beforeopen', prevent);
28
+ };
29
+ const onOpen = el => {
30
+ if (elRef.value !== el) return;
31
+ emit('accordion:open');
32
+ };
33
+ const onOpened = el => {
34
+ if (elRef.value !== el) return;
35
+ emit('accordion:opened');
36
+ };
37
+ const onBeforeClose = (el, prevent) => {
38
+ if (elRef.value !== el) return;
39
+ emit('accordion:beforeclose', prevent);
40
+ };
41
+ const onClose = el => {
42
+ if (elRef.value !== el) return;
43
+ emit('accordion:close');
44
+ };
45
+ const onClosed = el => {
46
+ if (elRef.value !== el) return;
47
+ emit('accordion:closed');
48
+ };
49
+ const attachEvents = () => {
50
+ f7ready(() => {
51
+ f7.on('accordionBeforeOpen', onBeforeOpen);
52
+ f7.on('accordionOpen', onOpen);
53
+ f7.on('accordionOpened', onOpened);
54
+ f7.on('accordionBeforeClose', onBeforeClose);
55
+ f7.on('accordionClose', onClose);
56
+ f7.on('accordionClosed', onClosed);
57
+ });
58
+ };
59
+ const detachEvents = () => {
60
+ f7.off('accordionBeforeOpen', onBeforeOpen);
61
+ f7.off('accordionOpen', onOpen);
62
+ f7.off('accordionOpened', onOpened);
63
+ f7.off('accordionBeforeClose', onBeforeClose);
64
+ f7.off('accordionClose', onClose);
65
+ f7.off('accordionClosed', onClosed);
66
+ };
67
+ onMounted(() => attachEvents());
68
+ onBeforeUnmount(() => detachEvents());
69
+ const classes = computed(() => classNames('accordion-item', {
70
+ 'accordion-item-opened': props.opened
71
+ }, colorClasses(props)));
72
+ return {
73
+ elRef,
74
+ classes
75
+ };
76
+ }
77
+ };
@@ -0,0 +1,46 @@
1
+
2
+ import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
3
+
4
+
5
+ declare const AccordionToggle: DefineComponent<
6
+ {
7
+
8
+ color: {
9
+ type: StringConstructor;
10
+ },
11
+
12
+ colorTheme: {
13
+ type: StringConstructor;
14
+ },
15
+
16
+ textColor: {
17
+ type: StringConstructor;
18
+ },
19
+
20
+ bgColor: {
21
+ type: StringConstructor;
22
+ },
23
+
24
+ borderColor: {
25
+ type: StringConstructor;
26
+ },
27
+
28
+ rippleColor: {
29
+ type: StringConstructor;
30
+ },
31
+
32
+ dark: {
33
+ type: BooleanConstructor;
34
+ }
35
+ },
36
+ () => JSX.Element,
37
+ unknown,
38
+ {},
39
+ {},
40
+ ComponentOptionsMixin,
41
+ ComponentOptionsMixin,
42
+
43
+ >;
44
+
45
+ export default AccordionToggle;
46
+
@@ -0,0 +1,22 @@
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-accordion-toggle',
12
+ render,
13
+ props: {
14
+ ...colorProps
15
+ },
16
+ setup(props) {
17
+ const classes = computed(() => classNames('accordion-item-toggle', colorClasses(props)));
18
+ return {
19
+ classes
20
+ };
21
+ }
22
+ };
@@ -0,0 +1,50 @@
1
+
2
+ import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
3
+
4
+
5
+ declare const Accordion: DefineComponent<
6
+ {
7
+
8
+ accordionOpposite: {
9
+ type: BooleanConstructor;
10
+ },
11
+
12
+ color: {
13
+ type: StringConstructor;
14
+ },
15
+
16
+ colorTheme: {
17
+ type: StringConstructor;
18
+ },
19
+
20
+ textColor: {
21
+ type: StringConstructor;
22
+ },
23
+
24
+ bgColor: {
25
+ type: StringConstructor;
26
+ },
27
+
28
+ borderColor: {
29
+ type: StringConstructor;
30
+ },
31
+
32
+ rippleColor: {
33
+ type: StringConstructor;
34
+ },
35
+
36
+ dark: {
37
+ type: BooleanConstructor;
38
+ }
39
+ },
40
+ () => JSX.Element,
41
+ unknown,
42
+ {},
43
+ {},
44
+ ComponentOptionsMixin,
45
+ ComponentOptionsMixin,
46
+
47
+ >;
48
+
49
+ export default Accordion;
50
+
@@ -0,0 +1,23 @@
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-accordion',
12
+ render,
13
+ props: {
14
+ accordionOpposite: Boolean,
15
+ ...colorProps
16
+ },
17
+ setup(props) {
18
+ const classes = computed(() => classNames('accordion-list', props.accordionOpposite && 'accordion-opposite', colorClasses(props)));
19
+ return {
20
+ classes
21
+ };
22
+ }
23
+ };
@@ -0,0 +1,56 @@
1
+
2
+ import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
3
+
4
+
5
+ declare const ActionsButton: DefineComponent<
6
+ {
7
+
8
+ strong: {
9
+ type: BooleanConstructor;
10
+ },
11
+
12
+ close: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ },
16
+
17
+ color: {
18
+ type: StringConstructor;
19
+ },
20
+
21
+ colorTheme: {
22
+ type: StringConstructor;
23
+ },
24
+
25
+ textColor: {
26
+ type: StringConstructor;
27
+ },
28
+
29
+ bgColor: {
30
+ type: StringConstructor;
31
+ },
32
+
33
+ borderColor: {
34
+ type: StringConstructor;
35
+ },
36
+
37
+ rippleColor: {
38
+ type: StringConstructor;
39
+ },
40
+
41
+ dark: {
42
+ type: BooleanConstructor;
43
+ }
44
+ },
45
+ () => JSX.Element,
46
+ unknown,
47
+ {},
48
+ {},
49
+ ComponentOptionsMixin,
50
+ ComponentOptionsMixin,
51
+ ("click")[],
52
+ "click"
53
+ >;
54
+
55
+ export default ActionsButton;
56
+
@@ -0,0 +1,58 @@
1
+ import { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass } from "vue";
2
+ const _hoisted_1 = {
3
+ key: 0,
4
+ class: "actions-button-media"
5
+ };
6
+ const _hoisted_2 = {
7
+ class: "actions-button-text"
8
+ };
9
+ function render(_ctx, _cache) {
10
+ return _openBlock(), _createElementBlock("div", {
11
+ ref: "elRef",
12
+ class: _normalizeClass(_ctx.classes),
13
+ onClick: _cache[0] || (_cache[0] = function () {
14
+ return _ctx.onClick && _ctx.onClick(...arguments);
15
+ })
16
+ }, [_ctx.hasMedia ? (_openBlock(), _createElementBlock("div", _hoisted_1, [_renderSlot(_ctx.$slots, "media")])) : _createCommentVNode("", true), _createElementVNode("div", _hoisted_2, [_renderSlot(_ctx.$slots, "default")])], 2);
17
+ }
18
+ import { computed, ref } from 'vue';
19
+ import { classNames } from '../shared/utils.js';
20
+ import { colorClasses, colorProps } from '../shared/mixins.js';
21
+ import { f7 } from '../shared/f7.js';
22
+ export default {
23
+ name: 'f7-actions-button',
24
+ render,
25
+ props: {
26
+ strong: Boolean,
27
+ close: {
28
+ type: Boolean,
29
+ default: true
30
+ },
31
+ ...colorProps
32
+ },
33
+ emits: ['click'],
34
+ setup(props, _ref) {
35
+ let {
36
+ slots,
37
+ emit
38
+ } = _ref;
39
+ const elRef = ref(null);
40
+ const onClick = e => {
41
+ if (elRef.value && props.close && f7) {
42
+ f7.actions.close(f7.$(elRef.value).parents('.actions-modal'));
43
+ }
44
+ emit('click', e);
45
+ };
46
+ const hasMedia = computed(() => slots && !!slots.media);
47
+ const classes = computed(() => classNames({
48
+ 'actions-button': true,
49
+ 'actions-button-strong': props.strong
50
+ }, colorClasses(props)));
51
+ return {
52
+ classes,
53
+ elRef,
54
+ hasMedia,
55
+ onClick
56
+ };
57
+ }
58
+ };
@@ -0,0 +1,46 @@
1
+
2
+ import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
3
+
4
+
5
+ declare const ActionsGroup: DefineComponent<
6
+ {
7
+
8
+ color: {
9
+ type: StringConstructor;
10
+ },
11
+
12
+ colorTheme: {
13
+ type: StringConstructor;
14
+ },
15
+
16
+ textColor: {
17
+ type: StringConstructor;
18
+ },
19
+
20
+ bgColor: {
21
+ type: StringConstructor;
22
+ },
23
+
24
+ borderColor: {
25
+ type: StringConstructor;
26
+ },
27
+
28
+ rippleColor: {
29
+ type: StringConstructor;
30
+ },
31
+
32
+ dark: {
33
+ type: BooleanConstructor;
34
+ }
35
+ },
36
+ () => JSX.Element,
37
+ unknown,
38
+ {},
39
+ {},
40
+ ComponentOptionsMixin,
41
+ ComponentOptionsMixin,
42
+
43
+ >;
44
+
45
+ export default ActionsGroup;
46
+
@@ -0,0 +1,22 @@
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-actions-group',
12
+ render,
13
+ props: {
14
+ ...colorProps
15
+ },
16
+ setup(props) {
17
+ const classes = computed(() => classNames('actions-group', colorClasses(props)));
18
+ return {
19
+ classes
20
+ };
21
+ }
22
+ };
@@ -0,0 +1,51 @@
1
+
2
+ import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
3
+
4
+
5
+ declare const ActionsLabel: DefineComponent<
6
+ {
7
+
8
+ strong: {
9
+ type: BooleanConstructor;
10
+ },
11
+
12
+ color: {
13
+ type: StringConstructor;
14
+ },
15
+
16
+ colorTheme: {
17
+ type: StringConstructor;
18
+ },
19
+
20
+ textColor: {
21
+ type: StringConstructor;
22
+ },
23
+
24
+ bgColor: {
25
+ type: StringConstructor;
26
+ },
27
+
28
+ borderColor: {
29
+ type: StringConstructor;
30
+ },
31
+
32
+ rippleColor: {
33
+ type: StringConstructor;
34
+ },
35
+
36
+ dark: {
37
+ type: BooleanConstructor;
38
+ }
39
+ },
40
+ () => JSX.Element,
41
+ unknown,
42
+ {},
43
+ {},
44
+ ComponentOptionsMixin,
45
+ ComponentOptionsMixin,
46
+ ("click")[],
47
+ "click"
48
+ >;
49
+
50
+ export default ActionsLabel;
51
+
@@ -0,0 +1,36 @@
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
+ onClick: _cache[0] || (_cache[0] = function () {
6
+ return _ctx.onClick && _ctx.onClick(...arguments);
7
+ })
8
+ }, [_renderSlot(_ctx.$slots, "default")], 2);
9
+ }
10
+ import { computed } from 'vue';
11
+ import { classNames } from '../shared/utils.js';
12
+ import { colorClasses, colorProps } from '../shared/mixins.js';
13
+ export default {
14
+ name: 'f7-actions-label',
15
+ render,
16
+ props: {
17
+ strong: Boolean,
18
+ ...colorProps
19
+ },
20
+ emits: ['click'],
21
+ setup(props, _ref) {
22
+ let {
23
+ emit
24
+ } = _ref;
25
+ const onClick = e => {
26
+ emit('click', e);
27
+ };
28
+ const classes = computed(() => classNames('actions-label', {
29
+ 'actions-button-strong': props.strong
30
+ }, colorClasses(props)));
31
+ return {
32
+ classes,
33
+ onClick
34
+ };
35
+ }
36
+ };