framework7-vue 7.0.0-beta.2 → 7.0.0-beta.20

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 (129) hide show
  1. package/components/accordion-content.js +5 -5
  2. package/components/accordion-item.js +10 -9
  3. package/components/accordion-toggle.js +5 -5
  4. package/components/accordion.js +5 -5
  5. package/components/actions-button.js +15 -12
  6. package/components/actions-group.js +5 -5
  7. package/components/actions-label.js +13 -9
  8. package/components/actions.js +11 -10
  9. package/components/app.d.ts +1 -1
  10. package/components/app.js +8 -8
  11. package/components/appbar.js +7 -7
  12. package/components/area-chart.js +50 -43
  13. package/components/badge.js +6 -6
  14. package/components/block-footer.js +5 -5
  15. package/components/block-header.js +5 -5
  16. package/components/block-title.js +7 -6
  17. package/components/block.js +10 -9
  18. package/components/breadcrumbs-collapsed.d.ts +19 -0
  19. package/components/breadcrumbs-collapsed.js +26 -0
  20. package/components/breadcrumbs-item.d.ts +22 -0
  21. package/components/breadcrumbs-item.js +28 -0
  22. package/components/breadcrumbs-separator.d.ts +19 -0
  23. package/components/breadcrumbs-separator.js +24 -0
  24. package/components/breadcrumbs.d.ts +19 -0
  25. package/components/breadcrumbs.js +24 -0
  26. package/components/button.js +12 -12
  27. package/components/card-content.js +5 -5
  28. package/components/card-footer.js +5 -5
  29. package/components/card-header.js +5 -5
  30. package/components/card.js +16 -14
  31. package/components/checkbox.js +16 -12
  32. package/components/chip.js +19 -16
  33. package/components/col.js +10 -9
  34. package/components/fab-backdrop.js +5 -5
  35. package/components/fab-button.js +16 -12
  36. package/components/fab-buttons.js +5 -5
  37. package/components/fab.js +8 -7
  38. package/components/gauge.js +16 -9
  39. package/components/icon.js +9 -9
  40. package/components/input.js +31 -14
  41. package/components/link.js +16 -15
  42. package/components/list-button.js +13 -10
  43. package/components/list-group.js +7 -6
  44. package/components/list-index.js +10 -9
  45. package/components/list-input.js +29 -12
  46. package/components/list-item-cell.js +5 -5
  47. package/components/list-item-row.js +5 -5
  48. package/components/list-item.js +25 -23
  49. package/components/list.d.ts +2 -2
  50. package/components/list.js +17 -9
  51. package/components/login-screen-title.js +5 -5
  52. package/components/login-screen.js +11 -10
  53. package/components/menu-dropdown-item.js +12 -9
  54. package/components/menu-dropdown.js +8 -8
  55. package/components/menu-item.js +14 -13
  56. package/components/menu.js +6 -6
  57. package/components/message.js +49 -31
  58. package/components/messagebar-attachment.js +19 -12
  59. package/components/messagebar-attachments.js +5 -5
  60. package/components/messagebar-sheet-image.js +18 -13
  61. package/components/messagebar-sheet-item.js +5 -5
  62. package/components/messagebar-sheet.js +5 -5
  63. package/components/messagebar.js +10 -9
  64. package/components/messages-title.js +5 -5
  65. package/components/messages.js +10 -9
  66. package/components/nav-left.js +13 -11
  67. package/components/nav-right.js +5 -5
  68. package/components/nav-title-large.js +6 -6
  69. package/components/nav-title.js +6 -6
  70. package/components/navbar.js +19 -18
  71. package/components/page-content.js +19 -17
  72. package/components/page.js +9 -8
  73. package/components/panel.js +16 -11
  74. package/components/photo-browser.js +6 -5
  75. package/components/pie-chart.js +27 -23
  76. package/components/popover.js +13 -12
  77. package/components/popup.js +11 -10
  78. package/components/preloader.js +18 -15
  79. package/components/progressbar.js +10 -9
  80. package/components/radio.js +16 -12
  81. package/components/range.js +13 -11
  82. package/components/routable-modals.js +1 -1
  83. package/components/row.js +10 -9
  84. package/components/searchbar.js +32 -18
  85. package/components/segmented.js +5 -5
  86. package/components/sheet.js +15 -8
  87. package/components/skeleton-avatar.d.ts +1 -0
  88. package/components/skeleton-avatar.js +1 -0
  89. package/components/skeleton-block.d.ts +1 -0
  90. package/components/skeleton-block.js +1 -0
  91. package/components/skeleton-image.d.ts +1 -0
  92. package/components/skeleton-image.js +1 -0
  93. package/components/skeleton-text.d.ts +1 -0
  94. package/components/skeleton-text.js +1 -0
  95. package/components/stepper.js +27 -17
  96. package/components/subnavbar.js +6 -6
  97. package/components/swipeout-actions.js +5 -5
  98. package/components/swipeout-button.js +15 -10
  99. package/components/tab.js +11 -10
  100. package/components/tabs.js +9 -9
  101. package/components/text-editor.js +13 -12
  102. package/components/toggle.js +18 -14
  103. package/components/toolbar.js +12 -11
  104. package/components/treeview-item.js +16 -15
  105. package/components/treeview.js +5 -5
  106. package/components/use-icon.js +6 -6
  107. package/components/view.d.ts +5 -0
  108. package/components/view.js +16 -10
  109. package/components/views.js +5 -5
  110. package/framework7-vue-bundle.js +111 -103
  111. package/framework7-vue-web-types.json +16682 -0
  112. package/framework7-vue.d.ts +5 -1
  113. package/framework7-vue.js +107 -103
  114. package/package.json +3 -1
  115. package/shared/components-router.js +30 -22
  116. package/shared/f7.js +10 -2
  117. package/shared/get-router-initial-component.js +1 -1
  118. package/shared/mixins.js +4 -4
  119. package/shared/modal-state-classes.js +5 -4
  120. package/shared/plugin.js +7 -3
  121. package/shared/router-open-in.js +114 -0
  122. package/shared/use-icon.js +5 -1
  123. package/shared/use-route-props.js +4 -3
  124. package/shared/use-smart-select.js +2 -2
  125. package/shared/use-store.js +6 -6
  126. package/shared/use-tab.js +1 -1
  127. package/shared/use-theme.js +1 -1
  128. package/shared/use-tooltip.js +1 -1
  129. package/shared/utils.js +16 -3
@@ -0,0 +1,19 @@
1
+
2
+ import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
3
+
4
+
5
+ declare const BreadcrumbsCollapsed: DefineComponent<
6
+ {
7
+
8
+ },
9
+ () => JSX.Element,
10
+ unknown,
11
+ {},
12
+ {},
13
+ ComponentOptionsMixin,
14
+ ComponentOptionsMixin,
15
+
16
+ >;
17
+
18
+ export default BreadcrumbsCollapsed;
19
+
@@ -0,0 +1,26 @@
1
+ import { createElementVNode as _createElementVNode, renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
+ const _hoisted_1 = {
3
+ ref: "elRef",
4
+ class: "breadcrumbs-collapsed"
5
+ };
6
+
7
+ const _hoisted_2 = /*#__PURE__*/_createElementVNode("span", null, null, -1);
8
+
9
+ function render(_ctx, _cache) {
10
+ return _openBlock(), _createElementBlock("div", _hoisted_1, [_hoisted_2, _renderSlot(_ctx.$slots, "default")], 512);
11
+ }
12
+
13
+ import { ref } from 'vue';
14
+ export default {
15
+ name: 'f7-breadcrumbs-collapsed',
16
+ render,
17
+ props: {},
18
+
19
+ setup() {
20
+ const elRef = ref(null);
21
+ return {
22
+ elRef
23
+ };
24
+ }
25
+
26
+ };
@@ -0,0 +1,22 @@
1
+
2
+ import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
3
+
4
+
5
+ declare const BreadcrumbsItem: DefineComponent<
6
+ {
7
+
8
+ active: {
9
+ type: BooleanConstructor;
10
+ }
11
+ },
12
+ () => JSX.Element,
13
+ unknown,
14
+ {},
15
+ {},
16
+ ComponentOptionsMixin,
17
+ ComponentOptionsMixin,
18
+
19
+ >;
20
+
21
+ export default BreadcrumbsItem;
22
+
@@ -0,0 +1,28 @@
1
+ import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
+
3
+ function render(_ctx, _cache) {
4
+ return _openBlock(), _createElementBlock("div", {
5
+ ref: "elRef",
6
+ class: _normalizeClass({
7
+ 'breadcrumbs-item': true,
8
+ 'breadcrumbs-item-active': _ctx.active
9
+ })
10
+ }, [_renderSlot(_ctx.$slots, "default")], 2);
11
+ }
12
+
13
+ import { ref } from 'vue';
14
+ export default {
15
+ name: 'f7-breadcrumbs-item',
16
+ render,
17
+ props: {
18
+ active: Boolean
19
+ },
20
+
21
+ setup() {
22
+ const elRef = ref(null);
23
+ return {
24
+ elRef
25
+ };
26
+ }
27
+
28
+ };
@@ -0,0 +1,19 @@
1
+
2
+ import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
3
+
4
+
5
+ declare const BreadcrumbsSeparator: DefineComponent<
6
+ {
7
+
8
+ },
9
+ () => JSX.Element,
10
+ unknown,
11
+ {},
12
+ {},
13
+ ComponentOptionsMixin,
14
+ ComponentOptionsMixin,
15
+
16
+ >;
17
+
18
+ export default BreadcrumbsSeparator;
19
+
@@ -0,0 +1,24 @@
1
+ import { openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
+ const _hoisted_1 = {
3
+ ref: "elRef",
4
+ class: "breadcrumbs-separator"
5
+ };
6
+
7
+ function render(_ctx, _cache) {
8
+ return _openBlock(), _createElementBlock("div", _hoisted_1, null, 512);
9
+ }
10
+
11
+ import { ref } from 'vue';
12
+ export default {
13
+ name: 'f7-breadcrumbs-separator',
14
+ render,
15
+ props: {},
16
+
17
+ setup() {
18
+ const elRef = ref(null);
19
+ return {
20
+ elRef
21
+ };
22
+ }
23
+
24
+ };
@@ -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,24 @@
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
+
7
+ function render(_ctx, _cache) {
8
+ return _openBlock(), _createElementBlock("div", _hoisted_1, [_renderSlot(_ctx.$slots, "default")], 512);
9
+ }
10
+
11
+ import { ref } from 'vue';
12
+ export default {
13
+ name: 'f7-breadcrumbs',
14
+ render,
15
+ props: {},
16
+
17
+ setup() {
18
+ const elRef = ref(null);
19
+ return {
20
+ elRef
21
+ };
22
+ }
23
+
24
+ };
@@ -1,4 +1,4 @@
1
- import { resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, renderSlot as _renderSlot, Fragment as _Fragment, resolveDynamicComponent as _resolveDynamicComponent, mergeProps as _mergeProps, withCtx as _withCtx } from "vue";
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
2
  const _hoisted_1 = {
3
3
  key: 1
4
4
  };
@@ -15,32 +15,32 @@ function render(_ctx, _cache) {
15
15
  ref: "elRef",
16
16
  class: _ctx.classesComputed
17
17
  }, _ctx.attrs), {
18
- default: _withCtx(() => [_ctx.preloader ? (_openBlock(), _createBlock(_Fragment, {
18
+ default: _withCtx(() => [_ctx.preloader ? (_openBlock(), _createElementBlock(_Fragment, {
19
19
  key: 0
20
20
  }, [_createVNode(_component_f7_preloader, {
21
21
  size: _ctx.preloaderSize,
22
22
  color: _ctx.preloaderColor
23
- }, null, 8, ["size", "color"]), _createVNode("span", null, [_ctx.icon ? (_openBlock(), _createBlock(_component_f7_use_icon, {
23
+ }, null, 8, ["size", "color"]), _createElementVNode("span", null, [_ctx.icon ? (_openBlock(), _createBlock(_component_f7_use_icon, {
24
24
  key: 0,
25
25
  icon: _ctx.icon
26
- }, null, 8, ["icon"])) : _createCommentVNode("", true), _ctx.text ? (_openBlock(), _createBlock("span", _hoisted_1, _toDisplayString(_ctx.text), 1)) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "default")])], 64)) : (_openBlock(), _createBlock(_Fragment, {
26
+ }, 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, {
27
27
  key: 1
28
28
  }, [_ctx.icon ? (_openBlock(), _createBlock(_component_f7_use_icon, {
29
29
  key: 0,
30
30
  icon: _ctx.icon
31
- }, null, 8, ["icon"])) : _createCommentVNode("", true), _ctx.text ? (_openBlock(), _createBlock("span", _hoisted_2, _toDisplayString(_ctx.text), 1)) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "default")], 64))]),
31
+ }, null, 8, ["icon"])) : _createCommentVNode("", true), _ctx.text ? (_openBlock(), _createElementBlock("span", _hoisted_2, _toDisplayString(_ctx.text), 1)) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "default")], 64))]),
32
32
  _: 3
33
33
  }, 16, ["class"]);
34
34
  }
35
35
 
36
36
  import { ref, computed } from 'vue';
37
- import { classNames, extend, isStringProp } from '../shared/utils';
38
- import { colorClasses, actionsAttrs, actionsClasses, routerAttrs, routerClasses, iconProps, colorProps, actionsProps, routerProps } from '../shared/mixins';
39
- import { useTooltip } from '../shared/use-tooltip';
40
- import { useIcon } from '../shared/use-icon';
41
- import { useRouteProps } from '../shared/use-route-props';
42
- import f7Preloader from './preloader';
43
- import f7UseIcon from './use-icon';
37
+ import { classNames, extend, isStringProp } from '../shared/utils.js';
38
+ import { colorClasses, actionsAttrs, actionsClasses, routerAttrs, routerClasses, iconProps, colorProps, actionsProps, routerProps } from '../shared/mixins.js';
39
+ import { useTooltip } from '../shared/use-tooltip.js';
40
+ import { useIcon } from '../shared/use-icon.js';
41
+ import { useRouteProps } from '../shared/use-route-props.js';
42
+ import f7Preloader from './preloader.js';
43
+ import f7UseIcon from './use-icon.js';
44
44
  export default {
45
45
  name: 'f7-button',
46
46
  render,
@@ -1,14 +1,14 @@
1
- import { renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock } from "vue";
1
+ import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
2
 
3
3
  function render(_ctx, _cache) {
4
- return _openBlock(), _createBlock("div", {
5
- class: _ctx.classes
4
+ return _openBlock(), _createElementBlock("div", {
5
+ class: _normalizeClass(_ctx.classes)
6
6
  }, [_renderSlot(_ctx.$slots, "default")], 2);
7
7
  }
8
8
 
9
9
  import { computed } from 'vue';
10
- import { classNames } from '../shared/utils';
11
- import { colorClasses, colorProps } from '../shared/mixins';
10
+ import { classNames } from '../shared/utils.js';
11
+ import { colorClasses, colorProps } from '../shared/mixins.js';
12
12
  export default {
13
13
  name: 'f7-card-content',
14
14
  render,
@@ -1,14 +1,14 @@
1
- import { renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock } from "vue";
1
+ import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
2
 
3
3
  function render(_ctx, _cache) {
4
- return _openBlock(), _createBlock("div", {
5
- class: _ctx.classes
4
+ return _openBlock(), _createElementBlock("div", {
5
+ class: _normalizeClass(_ctx.classes)
6
6
  }, [_renderSlot(_ctx.$slots, "default")], 2);
7
7
  }
8
8
 
9
9
  import { computed } from 'vue';
10
- import { classNames } from '../shared/utils';
11
- import { colorClasses, colorProps } from '../shared/mixins';
10
+ import { classNames } from '../shared/utils.js';
11
+ import { colorClasses, colorProps } from '../shared/mixins.js';
12
12
  export default {
13
13
  name: 'f7-card-footer',
14
14
  render,
@@ -1,14 +1,14 @@
1
- import { renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock } from "vue";
1
+ import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
2
 
3
3
  function render(_ctx, _cache) {
4
- return _openBlock(), _createBlock("div", {
5
- class: _ctx.classes
4
+ return _openBlock(), _createElementBlock("div", {
5
+ class: _normalizeClass(_ctx.classes)
6
6
  }, [_renderSlot(_ctx.$slots, "default")], 2);
7
7
  }
8
8
 
9
9
  import { computed } from 'vue';
10
- import { classNames } from '../shared/utils';
11
- import { colorClasses, colorProps } from '../shared/mixins';
10
+ import { classNames } from '../shared/utils.js';
11
+ import { colorClasses, colorProps } from '../shared/mixins.js';
12
12
  export default {
13
13
  name: 'f7-card-header',
14
14
  render,
@@ -1,4 +1,5 @@
1
- import { toDisplayString as _toDisplayString, renderSlot as _renderSlot, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode } from "vue";
1
+ import { toDisplayString as _toDisplayString, renderSlot as _renderSlot, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, normalizeClass as _normalizeClass, createElementBlock as _createElementBlock } from "vue";
2
+ const _hoisted_1 = ["data-animate", "data-hide-navbar-on-open", "data-hide-toolbar-on-open", "data-hide-statusbar-on-open", "data-scrollable-el", "data-swipe-to-close", "data-close-by-backdrop-click", "data-backdrop", "data-backdrop-el"];
2
3
 
3
4
  function render(_ctx, _cache) {
4
5
  const _component_f7_card_header = _resolveComponent("f7-card-header");
@@ -7,9 +8,9 @@ function render(_ctx, _cache) {
7
8
 
8
9
  const _component_f7_card_footer = _resolveComponent("f7-card-footer");
9
10
 
10
- return _openBlock(), _createBlock("div", {
11
+ return _openBlock(), _createElementBlock("div", {
11
12
  ref: "elRef",
12
- class: _ctx.classes,
13
+ class: _normalizeClass(_ctx.classes),
13
14
  "data-animate": typeof _ctx.animate === 'undefined' ? _ctx.animate : _ctx.animate.toString(),
14
15
  "data-hide-navbar-on-open": typeof _ctx.hideNavbarOnOpen === 'undefined' ? _ctx.hideNavbarOnOpen : _ctx.hideNavbarOnOpen.toString(),
15
16
  "data-hide-toolbar-on-open": typeof _ctx.hideToolbarOnOpen === 'undefined' ? _ctx.hideToolbarOnOpen : _ctx.hideToolbarOnOpen.toString(),
@@ -35,16 +36,16 @@ function render(_ctx, _cache) {
35
36
  }, {
36
37
  default: _withCtx(() => [_createTextVNode(_toDisplayString(_ctx.footer) + " ", 1), _renderSlot(_ctx.$slots, "footer")]),
37
38
  _: 3
38
- })) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "default")], 10, ["data-animate", "data-hide-navbar-on-open", "data-hide-toolbar-on-open", "data-hide-statusbar-on-open", "data-scrollable-el", "data-swipe-to-close", "data-close-by-backdrop-click", "data-backdrop", "data-backdrop-el"]);
39
+ })) : _createCommentVNode("", true), _renderSlot(_ctx.$slots, "default")], 10, _hoisted_1);
39
40
  }
40
41
 
41
42
  import { computed, ref, onMounted, onBeforeUnmount, watch } from 'vue';
42
- import { classNames } from '../shared/utils';
43
- import { colorClasses, colorProps } from '../shared/mixins';
44
- import { f7, f7ready } from '../shared/f7';
45
- import f7CardHeader from './card-header';
46
- import f7CardContent from './card-content';
47
- import f7CardFooter from './card-footer';
43
+ import { classNames } from '../shared/utils.js';
44
+ import { colorClasses, colorProps } from '../shared/mixins.js';
45
+ import { f7, f7ready } from '../shared/f7.js';
46
+ import f7CardHeader from './card-header.js';
47
+ import f7CardContent from './card-content.js';
48
+ import f7CardFooter from './card-footer.js';
48
49
  export default {
49
50
  name: 'f7-card',
50
51
  render,
@@ -107,10 +108,11 @@ export default {
107
108
  },
108
109
  emits: ['card:beforeopen', 'card:open', 'card:opened', 'card:close', 'card:closed', 'update:expandableOpened'],
109
110
 
110
- setup(props, {
111
- emit,
112
- slots
113
- }) {
111
+ setup(props, _ref) {
112
+ let {
113
+ emit,
114
+ slots
115
+ } = _ref;
114
116
  const elRef = ref(null);
115
117
 
116
118
  const open = () => {
@@ -1,13 +1,14 @@
1
- import { createVNode as _createVNode, renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock } from "vue";
1
+ import { createElementVNode as _createElementVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
+ const _hoisted_1 = ["name", "value", "disabled", "readonly", "checked"];
2
3
 
3
- const _hoisted_1 = /*#__PURE__*/_createVNode("i", {
4
+ const _hoisted_2 = /*#__PURE__*/_createElementVNode("i", {
4
5
  class: "icon-checkbox"
5
6
  }, null, -1);
6
7
 
7
8
  function render(_ctx, _cache) {
8
- return _openBlock(), _createBlock("label", {
9
- class: _ctx.classes
10
- }, [_createVNode("input", {
9
+ return _openBlock(), _createElementBlock("label", {
10
+ class: _normalizeClass(_ctx.classes)
11
+ }, [_createElementVNode("input", {
11
12
  ref: "inputElRef",
12
13
  type: "checkbox",
13
14
  name: _ctx.name,
@@ -15,13 +16,15 @@ function render(_ctx, _cache) {
15
16
  disabled: _ctx.disabled,
16
17
  readonly: _ctx.readonly,
17
18
  checked: _ctx.checked,
18
- onChange: _cache[1] || (_cache[1] = (...args) => _ctx.onChange && _ctx.onChange(...args))
19
- }, null, 40, ["name", "value", "disabled", "readonly", "checked"]), _hoisted_1, _renderSlot(_ctx.$slots, "default")], 2);
19
+ onChange: _cache[0] || (_cache[0] = function () {
20
+ return _ctx.onChange && _ctx.onChange(...arguments);
21
+ })
22
+ }, null, 40, _hoisted_1), _hoisted_2, _renderSlot(_ctx.$slots, "default")], 2);
20
23
  }
21
24
 
22
25
  import { ref, computed, onMounted, watch } from 'vue';
23
- import { classNames } from '../shared/utils';
24
- import { colorClasses, colorProps } from '../shared/mixins';
26
+ import { classNames } from '../shared/utils.js';
27
+ import { colorClasses, colorProps } from '../shared/mixins.js';
25
28
  export default {
26
29
  name: 'f7-checkbox',
27
30
  render,
@@ -39,9 +42,10 @@ export default {
39
42
  },
40
43
  emits: ['update:checked', 'change'],
41
44
 
42
- setup(props, {
43
- emit
44
- }) {
45
+ setup(props, _ref) {
46
+ let {
47
+ emit
48
+ } = _ref;
45
49
  const inputElRef = ref(null);
46
50
 
47
51
  const onChange = event => {
@@ -1,4 +1,4 @@
1
- import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, renderSlot as _renderSlot, createTextVNode as _createTextVNode } from "vue";
1
+ import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, renderSlot as _renderSlot, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, createElementBlock as _createElementBlock } from "vue";
2
2
  const _hoisted_1 = {
3
3
  key: 1,
4
4
  class: "chip-label"
@@ -7,28 +7,30 @@ const _hoisted_1 = {
7
7
  function render(_ctx, _cache) {
8
8
  const _component_f7_use_icon = _resolveComponent("f7-use-icon");
9
9
 
10
- return _openBlock(), _createBlock("div", {
10
+ return _openBlock(), _createElementBlock("div", {
11
11
  ref: "elRef",
12
- class: _ctx.classes
13
- }, [_ctx.hasMedia ? (_openBlock(), _createBlock("div", {
12
+ class: _normalizeClass(_ctx.classes)
13
+ }, [_ctx.hasMedia ? (_openBlock(), _createElementBlock("div", {
14
14
  key: 0,
15
- class: _ctx.mediaClasses
15
+ class: _normalizeClass(_ctx.mediaClasses)
16
16
  }, [_ctx.icon ? (_openBlock(), _createBlock(_component_f7_use_icon, {
17
17
  key: 0,
18
18
  icon: _ctx.icon
19
- }, null, 8, ["icon"])) : _createCommentVNode("", true), _createTextVNode(" " + _toDisplayString(_ctx.media) + " ", 1), _renderSlot(_ctx.$slots, "media")], 2)) : _createCommentVNode("", true), _ctx.hasLabel ? (_openBlock(), _createBlock("div", _hoisted_1, [_createTextVNode(_toDisplayString(_ctx.text) + " ", 1), _renderSlot(_ctx.$slots, "text"), _renderSlot(_ctx.$slots, "default")])) : _createCommentVNode("", true), _ctx.deleteable ? (_openBlock(), _createBlock("a", {
19
+ }, null, 8, ["icon"])) : _createCommentVNode("", true), _createTextVNode(" " + _toDisplayString(_ctx.media) + " ", 1), _renderSlot(_ctx.$slots, "media")], 2)) : _createCommentVNode("", true), _ctx.hasLabel ? (_openBlock(), _createElementBlock("div", _hoisted_1, [_createTextVNode(_toDisplayString(_ctx.text) + " ", 1), _renderSlot(_ctx.$slots, "text"), _renderSlot(_ctx.$slots, "default")])) : _createCommentVNode("", true), _ctx.deleteable ? (_openBlock(), _createElementBlock("a", {
20
20
  key: 2,
21
21
  class: "chip-delete",
22
- onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onDeleteClick && _ctx.onDeleteClick(...args))
22
+ onClick: _cache[0] || (_cache[0] = function () {
23
+ return _ctx.onDeleteClick && _ctx.onDeleteClick(...arguments);
24
+ })
23
25
  })) : _createCommentVNode("", true)], 2);
24
26
  }
25
27
 
26
28
  import { ref, computed } from 'vue';
27
- import { classNames } from '../shared/utils';
28
- import { colorClasses, colorProps, iconProps } from '../shared/mixins';
29
- import { useTooltip } from '../shared/use-tooltip';
30
- import { useIcon } from '../shared/use-icon';
31
- import f7UseIcon from './use-icon';
29
+ import { classNames } from '../shared/utils.js';
30
+ import { colorClasses, colorProps, iconProps } from '../shared/mixins.js';
31
+ import { useTooltip } from '../shared/use-tooltip.js';
32
+ import { useIcon } from '../shared/use-icon.js';
33
+ import f7UseIcon from './use-icon.js';
32
34
  export default {
33
35
  name: 'f7-chip',
34
36
  render,
@@ -49,10 +51,11 @@ export default {
49
51
  },
50
52
  emits: ['delete'],
51
53
 
52
- setup(props, {
53
- slots,
54
- emit
55
- }) {
54
+ setup(props, _ref) {
55
+ let {
56
+ slots,
57
+ emit
58
+ } = _ref;
56
59
  const elRef = ref(null);
57
60
 
58
61
  const onDeleteClick = event => {
package/components/col.js CHANGED
@@ -1,4 +1,4 @@
1
- import { renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx } from "vue";
1
+ import { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveDynamicComponent as _resolveDynamicComponent, normalizeClass as _normalizeClass, withCtx as _withCtx, createBlock as _createBlock } from "vue";
2
2
  const _hoisted_1 = {
3
3
  key: 0,
4
4
  class: "resize-handler"
@@ -7,17 +7,17 @@ const _hoisted_1 = {
7
7
  function render(_ctx, _cache) {
8
8
  return _openBlock(), _createBlock(_resolveDynamicComponent(_ctx.tag), {
9
9
  ref: "elRef",
10
- class: _ctx.classes
10
+ class: _normalizeClass(_ctx.classes)
11
11
  }, {
12
- default: _withCtx(() => [_renderSlot(_ctx.$slots, "default"), _ctx.resizable && _ctx.resizableHandler ? (_openBlock(), _createBlock("span", _hoisted_1)) : _createCommentVNode("", true)]),
12
+ default: _withCtx(() => [_renderSlot(_ctx.$slots, "default"), _ctx.resizable && _ctx.resizableHandler ? (_openBlock(), _createElementBlock("span", _hoisted_1)) : _createCommentVNode("", true)]),
13
13
  _: 3
14
14
  }, 8, ["class"]);
15
15
  }
16
16
 
17
17
  import { ref, computed, onBeforeUnmount, onMounted } from 'vue';
18
- import { classNames } from '../shared/utils';
19
- import { colorClasses, colorProps } from '../shared/mixins';
20
- import { f7ready, f7 } from '../shared/f7';
18
+ import { classNames } from '../shared/utils.js';
19
+ import { colorClasses, colorProps } from '../shared/mixins.js';
20
+ import { f7ready, f7 } from '../shared/f7.js';
21
21
  export default {
22
22
  name: 'f7-col',
23
23
  render,
@@ -56,9 +56,10 @@ export default {
56
56
  },
57
57
  emits: ['grid:resize'],
58
58
 
59
- setup(props, {
60
- emit
61
- }) {
59
+ setup(props, _ref) {
60
+ let {
61
+ emit
62
+ } = _ref;
62
63
  const elRef = ref(null);
63
64
 
64
65
  const onResize = el => {
@@ -1,14 +1,14 @@
1
- import { renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock } from "vue";
1
+ import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
2
 
3
3
  function render(_ctx, _cache) {
4
- return _openBlock(), _createBlock("div", {
5
- class: _ctx.classes
4
+ return _openBlock(), _createElementBlock("div", {
5
+ class: _normalizeClass(_ctx.classes)
6
6
  }, [_renderSlot(_ctx.$slots, "default")], 2);
7
7
  }
8
8
 
9
9
  import { computed } from 'vue';
10
- import { classNames } from '../shared/utils';
11
- import { colorClasses, colorProps } from '../shared/mixins';
10
+ import { classNames } from '../shared/utils.js';
11
+ import { colorClasses, colorProps } from '../shared/mixins.js';
12
12
  export default {
13
13
  name: 'f7-fab-backdrop',
14
14
  render,
@@ -1,22 +1,25 @@
1
- import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode } from "vue";
2
- const _hoisted_1 = {
1
+ import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, normalizeClass as _normalizeClass } from "vue";
2
+ const _hoisted_1 = ["target"];
3
+ const _hoisted_2 = {
3
4
  key: 0,
4
5
  class: "fab-label"
5
6
  };
6
7
 
7
8
  function render(_ctx, _cache) {
8
- return _openBlock(), _createBlock("a", {
9
+ return _openBlock(), _createElementBlock("a", {
9
10
  ref: "elRef",
10
- class: _ctx.classes,
11
+ class: _normalizeClass(_ctx.classes),
11
12
  target: _ctx.target,
12
- onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClick && _ctx.onClick(...args))
13
- }, [_renderSlot(_ctx.$slots, "default"), _ctx.label ? (_openBlock(), _createBlock("span", _hoisted_1, _toDisplayString(_ctx.label), 1)) : _createCommentVNode("", true)], 10, ["target"]);
13
+ onClick: _cache[0] || (_cache[0] = function () {
14
+ return _ctx.onClick && _ctx.onClick(...arguments);
15
+ })
16
+ }, [_renderSlot(_ctx.$slots, "default"), _ctx.label ? (_openBlock(), _createElementBlock("span", _hoisted_2, _toDisplayString(_ctx.label), 1)) : _createCommentVNode("", true)], 10, _hoisted_1);
14
17
  }
15
18
 
16
19
  import { computed, ref } from 'vue';
17
- import { classNames } from '../shared/utils';
18
- import { colorClasses, colorProps } from '../shared/mixins';
19
- import { useTooltip } from '../shared/use-tooltip';
20
+ import { classNames } from '../shared/utils.js';
21
+ import { colorClasses, colorProps } from '../shared/mixins.js';
22
+ import { useTooltip } from '../shared/use-tooltip.js';
20
23
  export default {
21
24
  name: 'f7-fab-button',
22
25
  render,
@@ -30,9 +33,10 @@ export default {
30
33
  },
31
34
  emits: ['click'],
32
35
 
33
- setup(props, {
34
- emit
35
- }) {
36
+ setup(props, _ref) {
37
+ let {
38
+ emit
39
+ } = _ref;
36
40
  const elRef = ref(null);
37
41
 
38
42
  const onClick = e => {
@@ -1,14 +1,14 @@
1
- import { renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock } from "vue";
1
+ import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
2
2
 
3
3
  function render(_ctx, _cache) {
4
- return _openBlock(), _createBlock("div", {
5
- class: _ctx.classes
4
+ return _openBlock(), _createElementBlock("div", {
5
+ class: _normalizeClass(_ctx.classes)
6
6
  }, [_renderSlot(_ctx.$slots, "default")], 2);
7
7
  }
8
8
 
9
9
  import { computed } from 'vue';
10
- import { classNames } from '../shared/utils';
11
- import { colorClasses, colorProps } from '../shared/mixins';
10
+ import { classNames } from '../shared/utils.js';
11
+ import { colorClasses, colorProps } from '../shared/mixins.js';
12
12
  export default {
13
13
  name: 'f7-fab-buttons',
14
14
  render,
package/components/fab.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { h, computed, ref } from 'vue';
2
- import { classNames } from '../shared/utils';
3
- import { colorClasses, colorProps } from '../shared/mixins';
4
- import { useTooltip } from '../shared/use-tooltip';
2
+ import { classNames } from '../shared/utils.js';
3
+ import { colorClasses, colorProps } from '../shared/mixins.js';
4
+ import { useTooltip } from '../shared/use-tooltip.js';
5
5
  export default {
6
6
  name: 'f7-fab',
7
7
  props: {
@@ -19,10 +19,11 @@ export default {
19
19
  },
20
20
  emits: ['click'],
21
21
 
22
- setup(props, {
23
- emit,
24
- slots
25
- }) {
22
+ setup(props, _ref) {
23
+ let {
24
+ emit,
25
+ slots
26
+ } = _ref;
26
27
  const elRef = ref(null);
27
28
 
28
29
  const onClick = e => {