framework7-react 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 +2 -2
  2. package/components/accordion-item.js +4 -4
  3. package/components/accordion-toggle.js +2 -2
  4. package/components/accordion.js +2 -2
  5. package/components/actions-button.js +3 -3
  6. package/components/actions-group.js +2 -2
  7. package/components/actions-label.js +2 -2
  8. package/components/actions.d.ts +1 -1
  9. package/components/actions.js +6 -6
  10. package/components/app.js +5 -5
  11. package/components/appbar.js +2 -2
  12. package/components/area-chart.js +22 -18
  13. package/components/badge.js +3 -3
  14. package/components/block-footer.js +2 -2
  15. package/components/block-header.js +2 -2
  16. package/components/block-title.js +2 -2
  17. package/components/block.js +3 -3
  18. package/components/breadcrumbs-collapsed.d.ts +16 -0
  19. package/components/breadcrumbs-collapsed.js +32 -0
  20. package/components/breadcrumbs-item.d.ts +17 -0
  21. package/components/breadcrumbs-item.js +33 -0
  22. package/components/breadcrumbs-separator.d.ts +15 -0
  23. package/components/breadcrumbs-separator.js +25 -0
  24. package/components/breadcrumbs.d.ts +15 -0
  25. package/components/breadcrumbs.js +26 -0
  26. package/components/button.js +6 -6
  27. package/components/card-content.js +2 -2
  28. package/components/card-footer.js +2 -2
  29. package/components/card-header.js +2 -2
  30. package/components/card.js +8 -8
  31. package/components/checkbox.js +2 -2
  32. package/components/chip.js +4 -4
  33. package/components/col.js +3 -3
  34. package/components/fab-backdrop.js +1 -1
  35. package/components/fab-button.js +3 -3
  36. package/components/fab-buttons.js +2 -2
  37. package/components/fab.js +3 -3
  38. package/components/gauge.js +1 -1
  39. package/components/icon.js +4 -4
  40. package/components/input.js +28 -12
  41. package/components/link.js +8 -8
  42. package/components/list-button.js +4 -4
  43. package/components/list-group.js +3 -3
  44. package/components/list-index.js +5 -5
  45. package/components/list-input.js +27 -11
  46. package/components/list-item-cell.js +2 -2
  47. package/components/list-item-content.js +3 -3
  48. package/components/list-item-row.js +2 -2
  49. package/components/list-item.js +10 -10
  50. package/components/list.d.ts +1 -0
  51. package/components/list.js +13 -6
  52. package/components/login-screen-title.js +2 -2
  53. package/components/login-screen.js +6 -6
  54. package/components/menu-dropdown-item.js +3 -3
  55. package/components/menu-dropdown.js +2 -2
  56. package/components/menu-item.js +7 -7
  57. package/components/menu.js +2 -2
  58. package/components/message.js +2 -2
  59. package/components/messagebar-attachment.js +2 -2
  60. package/components/messagebar-attachments.js +2 -2
  61. package/components/messagebar-sheet-image.js +2 -2
  62. package/components/messagebar-sheet-item.js +2 -2
  63. package/components/messagebar-sheet.js +2 -2
  64. package/components/messagebar.js +7 -7
  65. package/components/messages-title.js +2 -2
  66. package/components/messages.js +5 -5
  67. package/components/nav-left.js +4 -4
  68. package/components/nav-right.js +2 -2
  69. package/components/nav-title-large.js +2 -2
  70. package/components/nav-title.js +2 -2
  71. package/components/navbar.js +8 -8
  72. package/components/page-content.js +6 -6
  73. package/components/page.js +5 -5
  74. package/components/panel.js +10 -6
  75. package/components/photo-browser.js +4 -4
  76. package/components/pie-chart.js +8 -7
  77. package/components/popover.js +6 -6
  78. package/components/popup.js +6 -6
  79. package/components/preloader.js +3 -3
  80. package/components/progressbar.js +3 -3
  81. package/components/radio.js +2 -2
  82. package/components/range.d.ts +1 -1
  83. package/components/range.js +5 -5
  84. package/components/routable-modals.js +8 -7
  85. package/components/row.js +3 -3
  86. package/components/searchbar.js +4 -4
  87. package/components/segmented.js +2 -2
  88. package/components/sheet.js +6 -6
  89. package/components/skeleton-avatar.d.ts +1 -0
  90. package/components/skeleton-avatar.js +1 -0
  91. package/components/skeleton-block.d.ts +1 -0
  92. package/components/skeleton-block.js +1 -0
  93. package/components/skeleton-image.d.ts +1 -0
  94. package/components/skeleton-image.js +1 -0
  95. package/components/skeleton-text.d.ts +1 -0
  96. package/components/skeleton-text.js +1 -0
  97. package/components/stepper.js +5 -5
  98. package/components/subnavbar.js +2 -2
  99. package/components/swipeout-actions.js +2 -2
  100. package/components/swipeout-button.js +2 -2
  101. package/components/tab.js +7 -7
  102. package/components/tabs.js +3 -3
  103. package/components/text-editor.js +5 -5
  104. package/components/toggle.js +18 -7
  105. package/components/toolbar.js +6 -6
  106. package/components/treeview-item.js +5 -5
  107. package/components/treeview.js +2 -2
  108. package/components/view.d.ts +1 -0
  109. package/components/view.js +28 -23
  110. package/components/views.js +2 -2
  111. package/framework7-react.d.ts +5 -1
  112. package/framework7-react.js +107 -103
  113. package/package.json +2 -1
  114. package/shared/components-router.js +30 -22
  115. package/shared/f7.js +10 -2
  116. package/shared/get-router-initial-component.js +1 -1
  117. package/shared/mixins.js +3 -3
  118. package/shared/modal-state-classes.js +5 -4
  119. package/shared/plugin.js +7 -3
  120. package/shared/router-open-in.js +106 -0
  121. package/shared/use-icon.js +7 -3
  122. package/shared/use-route-props.js +4 -3
  123. package/shared/use-smart-select.js +2 -2
  124. package/shared/use-store.js +6 -6
  125. package/shared/use-tab.js +3 -3
  126. package/shared/use-theme.js +1 -1
  127. package/shared/use-tooltip.js +2 -2
  128. package/shared/utils.js +32 -6
  129. package/shared/watch-prop.js +1 -1
@@ -1,9 +1,9 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs, emit } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
6
- import { useTooltip } from '../shared/use-tooltip';
4
+ import { classNames, getExtraAttrs, emit } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
+ import { useTooltip } from '../shared/use-tooltip.js';
7
7
 
8
8
  const FabButton = /*#__PURE__*/forwardRef((props, ref) => {
9
9
  const {
@@ -1,8 +1,8 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
4
+ import { classNames, getExtraAttrs } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
6
 
7
7
  const FabButtons = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {
package/components/fab.js CHANGED
@@ -1,9 +1,9 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs, getSlots, emit } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
6
- import { useTooltip } from '../shared/use-tooltip';
4
+ import { classNames, getExtraAttrs, getSlots, emit } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
+ import { useTooltip } from '../shared/use-tooltip.js';
7
7
 
8
8
  const Fab = /*#__PURE__*/forwardRef((props, ref) => {
9
9
  const {
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  /* eslint no-nested-ternary: off */
4
4
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
5
- import { classNames, getExtraAttrs } from '../shared/utils';
5
+ import { classNames, getExtraAttrs } from '../shared/utils.js';
6
6
 
7
7
  const Gauge = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {
@@ -1,10 +1,10 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs, extend } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
6
- import { useTooltip } from '../shared/use-tooltip';
7
- import { useTheme } from '../shared/use-theme';
4
+ import { classNames, getExtraAttrs, extend } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
+ import { useTooltip } from '../shared/use-tooltip.js';
7
+ import { useTheme } from '../shared/use-theme.js';
8
8
 
9
9
  const Icon = /*#__PURE__*/forwardRef((props, ref) => {
10
10
  const theme = useTheme();
@@ -1,14 +1,14 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle, useState } from 'react';
4
- import { useIsomorphicLayoutEffect } from '../shared/use-isomorphic-layout-effect';
5
- import { classNames, getExtraAttrs, getSlots, emit, extend } from '../shared/utils';
6
- import { colorClasses } from '../shared/mixins';
7
- import { f7ready, f7 } from '../shared/f7';
8
- import { watchProp } from '../shared/watch-prop';
9
- import Toggle from './toggle';
10
- import Range from './range';
11
- import TextEditor from './text-editor';
4
+ import { useIsomorphicLayoutEffect } from '../shared/use-isomorphic-layout-effect.js';
5
+ import { classNames, getExtraAttrs, getSlots, emit, extend } from '../shared/utils.js';
6
+ import { colorClasses } from '../shared/mixins.js';
7
+ import { f7ready, f7 } from '../shared/f7.js';
8
+ import { watchProp } from '../shared/watch-prop.js';
9
+ import Toggle from './toggle.js';
10
+ import Range from './range.js';
11
+ import TextEditor from './text-editor.js';
12
12
 
13
13
 
14
14
  const Input = /*#__PURE__*/forwardRef((props, ref) => {
@@ -128,7 +128,11 @@ const Input = /*#__PURE__*/forwardRef((props, ref) => {
128
128
  emit(props, 'inputClear', event);
129
129
  };
130
130
 
131
- const onInput = (...args) => {
131
+ const onInput = function () {
132
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
133
+ args[_key] = arguments[_key];
134
+ }
135
+
132
136
  emit(props, 'input', ...args);
133
137
 
134
138
  if (!(validateOnBlur || validateOnBlur === '') && (validate || validate === '') && inputElRef.current) {
@@ -136,12 +140,20 @@ const Input = /*#__PURE__*/forwardRef((props, ref) => {
136
140
  }
137
141
  };
138
142
 
139
- const onFocus = (...args) => {
143
+ const onFocus = function () {
144
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
145
+ args[_key2] = arguments[_key2];
146
+ }
147
+
140
148
  emit(props, 'focus', ...args);
141
149
  setInputFocused(true);
142
150
  };
143
151
 
144
- const onBlur = (...args) => {
152
+ const onBlur = function () {
153
+ for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
154
+ args[_key3] = arguments[_key3];
155
+ }
156
+
145
157
  emit(props, 'blur', ...args);
146
158
 
147
159
  if ((validate || validate === '' || validateOnBlur || validateOnBlur === '') && inputElRef.current) {
@@ -151,7 +163,11 @@ const Input = /*#__PURE__*/forwardRef((props, ref) => {
151
163
  setInputFocused(false);
152
164
  };
153
165
 
154
- const onChange = (...args) => {
166
+ const onChange = function () {
167
+ for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
168
+ args[_key4] = arguments[_key4];
169
+ }
170
+
155
171
  emit(props, 'change', ...args);
156
172
 
157
173
  if (type === 'texteditor') {
@@ -1,14 +1,14 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle, useContext } from 'react';
4
- import { classNames, getExtraAttrs, isStringProp, emit } from '../shared/utils';
5
- import { colorClasses, routerAttrs, routerClasses, actionsAttrs, actionsClasses } from '../shared/mixins';
6
- import { useIcon } from '../shared/use-icon';
7
- import { useRouteProps } from '../shared/use-route-props';
8
- import { useTooltip } from '../shared/use-tooltip';
9
- import { TabbarContext } from '../shared/tabbar-context';
10
- import Badge from './badge';
11
- import { useSmartSelect } from '../shared/use-smart-select';
4
+ import { classNames, getExtraAttrs, isStringProp, emit } from '../shared/utils.js';
5
+ import { colorClasses, routerAttrs, routerClasses, actionsAttrs, actionsClasses } from '../shared/mixins.js';
6
+ import { useIcon } from '../shared/use-icon.js';
7
+ import { useRouteProps } from '../shared/use-route-props.js';
8
+ import { useTooltip } from '../shared/use-tooltip.js';
9
+ import { TabbarContext } from '../shared/tabbar-context.js';
10
+ import Badge from './badge.js';
11
+ import { useSmartSelect } from '../shared/use-smart-select.js';
12
12
 
13
13
 
14
14
  const Link = /*#__PURE__*/forwardRef((props, ref) => {
@@ -1,10 +1,10 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs, isStringProp, emit } from '../shared/utils';
5
- import { colorClasses, actionsAttrs, actionsClasses, routerAttrs, routerClasses } from '../shared/mixins';
6
- import { useTooltip } from '../shared/use-tooltip';
7
- import { useRouteProps } from '../shared/use-route-props';
4
+ import { classNames, getExtraAttrs, isStringProp, emit } from '../shared/utils.js';
5
+ import { colorClasses, actionsAttrs, actionsClasses, routerAttrs, routerClasses } from '../shared/mixins.js';
6
+ import { useTooltip } from '../shared/use-tooltip.js';
7
+ import { useRouteProps } from '../shared/use-route-props.js';
8
8
 
9
9
  const ListButton = /*#__PURE__*/forwardRef((props, ref) => {
10
10
  const {
@@ -1,9 +1,9 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle, useContext } from 'react';
4
- import { classNames, getExtraAttrs } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
6
- import { ListContext } from '../shared/list-context';
4
+ import { classNames, getExtraAttrs } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
+ import { ListContext } from '../shared/list-context.js';
7
7
 
8
8
  const ListGroup = /*#__PURE__*/forwardRef((props, ref) => {
9
9
  const {
@@ -1,11 +1,11 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { useIsomorphicLayoutEffect } from '../shared/use-isomorphic-layout-effect';
5
- import { classNames, getExtraAttrs, emit } from '../shared/utils';
6
- import { colorClasses } from '../shared/mixins';
7
- import { f7ready, f7 } from '../shared/f7';
8
- import { watchProp } from '../shared/watch-prop';
4
+ import { useIsomorphicLayoutEffect } from '../shared/use-isomorphic-layout-effect.js';
5
+ import { classNames, getExtraAttrs, emit } from '../shared/utils.js';
6
+ import { colorClasses } from '../shared/mixins.js';
7
+ import { f7ready, f7 } from '../shared/f7.js';
8
+ import { watchProp } from '../shared/watch-prop.js';
9
9
 
10
10
  const ListIndex = /*#__PURE__*/forwardRef((props, ref) => {
11
11
  const f7ListIndex = useRef(null);
@@ -1,13 +1,13 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle, useState, useContext } from 'react';
4
- import { useIsomorphicLayoutEffect } from '../shared/use-isomorphic-layout-effect';
5
- import { classNames, getExtraAttrs, emit, getSlots, extend } from '../shared/utils';
6
- import { colorClasses } from '../shared/mixins';
7
- import { f7ready, f7 } from '../shared/f7';
8
- import TextEditor from './text-editor';
9
- import { watchProp } from '../shared/watch-prop';
10
- import { ListContext } from '../shared/list-context';
4
+ import { useIsomorphicLayoutEffect } from '../shared/use-isomorphic-layout-effect.js';
5
+ import { classNames, getExtraAttrs, emit, getSlots, extend } from '../shared/utils.js';
6
+ import { colorClasses } from '../shared/mixins.js';
7
+ import { f7ready, f7 } from '../shared/f7.js';
8
+ import TextEditor from './text-editor.js';
9
+ import { watchProp } from '../shared/watch-prop.js';
10
+ import { ListContext } from '../shared/list-context.js';
11
11
 
12
12
 
13
13
  const ListInput = /*#__PURE__*/forwardRef((props, ref) => {
@@ -138,7 +138,11 @@ const ListInput = /*#__PURE__*/forwardRef((props, ref) => {
138
138
  emit(props, 'inputClear', event);
139
139
  };
140
140
 
141
- const onInput = (...args) => {
141
+ const onInput = function () {
142
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
143
+ args[_key] = arguments[_key];
144
+ }
145
+
142
146
  emit(props, 'input', ...args);
143
147
 
144
148
  if (!(validateOnBlur || validateOnBlur === '') && (validate || validate === '') && inputElRef.current) {
@@ -146,12 +150,20 @@ const ListInput = /*#__PURE__*/forwardRef((props, ref) => {
146
150
  }
147
151
  };
148
152
 
149
- const onFocus = (...args) => {
153
+ const onFocus = function () {
154
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
155
+ args[_key2] = arguments[_key2];
156
+ }
157
+
150
158
  emit(props, 'focus', ...args);
151
159
  setInputFocused(true);
152
160
  };
153
161
 
154
- const onBlur = (...args) => {
162
+ const onBlur = function () {
163
+ for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
164
+ args[_key3] = arguments[_key3];
165
+ }
166
+
155
167
  emit(props, 'blur', ...args);
156
168
 
157
169
  if ((validate || validate === '' || validateOnBlur || validateOnBlur === '') && inputElRef.current) {
@@ -161,7 +173,11 @@ const ListInput = /*#__PURE__*/forwardRef((props, ref) => {
161
173
  setInputFocused(false);
162
174
  };
163
175
 
164
- const onChange = (...args) => {
176
+ const onChange = function () {
177
+ for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
178
+ args[_key4] = arguments[_key4];
179
+ }
180
+
165
181
  emit(props, 'change', ...args);
166
182
 
167
183
  if (type === 'texteditor') {
@@ -1,8 +1,8 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
4
+ import { classNames, getExtraAttrs } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
6
 
7
7
  const ListItemCell = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {
@@ -1,7 +1,7 @@
1
1
  import React, { useRef, useEffect } from 'react';
2
- import { classNames } from '../shared/utils';
3
- import { colorClasses } from '../shared/mixins';
4
- import Badge from './badge';
2
+ import { classNames } from '../shared/utils.js';
3
+ import { colorClasses } from '../shared/mixins.js';
4
+ import Badge from './badge.js';
5
5
 
6
6
  const ListItemContent = props => {
7
7
  const {
@@ -1,8 +1,8 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
4
+ import { classNames, getExtraAttrs } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
6
 
7
7
  const ListItemRow = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {
@@ -1,16 +1,16 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle, useContext } from 'react';
4
- import { useIsomorphicLayoutEffect } from '../shared/use-isomorphic-layout-effect';
5
- import { classNames, getExtraAttrs, getSlots, emit, isStringProp } from '../shared/utils';
6
- import { colorClasses, actionsAttrs, actionsClasses, routerAttrs, routerClasses } from '../shared/mixins';
7
- import { useRouteProps } from '../shared/use-route-props';
8
- import { useSmartSelect } from '../shared/use-smart-select';
9
- import { useTooltip } from '../shared/use-tooltip';
10
- import { watchProp } from '../shared/watch-prop';
11
- import { f7ready, f7 } from '../shared/f7';
12
- import ListItemContent from './list-item-content';
13
- import { ListContext } from '../shared/list-context';
4
+ import { useIsomorphicLayoutEffect } from '../shared/use-isomorphic-layout-effect.js';
5
+ import { classNames, getExtraAttrs, getSlots, emit, isStringProp } from '../shared/utils.js';
6
+ import { colorClasses, actionsAttrs, actionsClasses, routerAttrs, routerClasses } from '../shared/mixins.js';
7
+ import { useRouteProps } from '../shared/use-route-props.js';
8
+ import { useSmartSelect } from '../shared/use-smart-select.js';
9
+ import { useTooltip } from '../shared/use-tooltip.js';
10
+ import { watchProp } from '../shared/watch-prop.js';
11
+ import { f7ready, f7 } from '../shared/f7.js';
12
+ import ListItemContent from './list-item-content.js';
13
+ import { ListContext } from '../shared/list-context.js';
14
14
 
15
15
 
16
16
  /*
@@ -59,6 +59,7 @@ interface ListProps {
59
59
  onSortableEnable ?: (...args: any[]) => void;
60
60
  onSortableDisable ?: (...args: any[]) => void;
61
61
  onSortableSort ?: (sortData?: any) => void;
62
+ onSortableMove ?: (itemEl?: any) => void;
62
63
  onTabShow ?: (el?: HTMLElement) => void;
63
64
  onTabHide ?: (el?: HTMLElement) => void;
64
65
  ref?: React.MutableRefObject<{el: HTMLElement | null; f7VirtualList: () => VirtualList.VirtualList}>;
@@ -1,12 +1,12 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { useIsomorphicLayoutEffect } from '../shared/use-isomorphic-layout-effect';
5
- import { classNames, getExtraAttrs, getSlots, flattenArray, emit, extend } from '../shared/utils';
6
- import { colorClasses } from '../shared/mixins';
7
- import { f7, f7ready } from '../shared/f7';
8
- import { ListContext } from '../shared/list-context';
9
- import { useTab } from '../shared/use-tab';
4
+ import { useIsomorphicLayoutEffect } from '../shared/use-isomorphic-layout-effect.js';
5
+ import { classNames, getExtraAttrs, getSlots, flattenArray, emit, extend } from '../shared/utils.js';
6
+ import { colorClasses } from '../shared/mixins.js';
7
+ import { f7, f7ready } from '../shared/f7.js';
8
+ import { ListContext } from '../shared/list-context.js';
9
+ import { useTab } from '../shared/use-tab.js';
10
10
 
11
11
 
12
12
  const List = /*#__PURE__*/forwardRef((props, ref) => {
@@ -73,6 +73,11 @@ const List = /*#__PURE__*/forwardRef((props, ref) => {
73
73
  emit(props, 'sortableSort', sortData);
74
74
  };
75
75
 
76
+ const onSortableMove = (el, listEl) => {
77
+ if (elRef.current !== listEl) return;
78
+ emit(props, 'sortableMove', el, listEl);
79
+ };
80
+
76
81
  useImperativeHandle(ref, () => ({
77
82
  el: elRef.current,
78
83
  f7VirtualList: () => f7VirtualList.current
@@ -84,6 +89,7 @@ const List = /*#__PURE__*/forwardRef((props, ref) => {
84
89
  f7.on('sortableEnable', onSortableEnable);
85
90
  f7.on('sortableDisable', onSortableDisable);
86
91
  f7.on('sortableSort', onSortableSort);
92
+ f7.on('sortableMove', onSortableMove);
87
93
  });
88
94
  };
89
95
 
@@ -92,6 +98,7 @@ const List = /*#__PURE__*/forwardRef((props, ref) => {
92
98
  f7.off('sortableEnable', onSortableEnable);
93
99
  f7.off('sortableDisable', onSortableDisable);
94
100
  f7.off('sortableSort', onSortableSort);
101
+ f7.off('sortableMove', onSortableMove);
95
102
  };
96
103
 
97
104
  const onMount = () => {
@@ -1,8 +1,8 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
4
+ import { classNames, getExtraAttrs } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
6
 
7
7
  const LoginScreenTitle = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {
@@ -1,12 +1,12 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { useIsomorphicLayoutEffect } from '../shared/use-isomorphic-layout-effect';
5
- import { classNames, getExtraAttrs, emit } from '../shared/utils';
6
- import { colorClasses } from '../shared/mixins';
7
- import { f7ready, f7 } from '../shared/f7';
8
- import { watchProp } from '../shared/watch-prop';
9
- import { modalStateClasses } from '../shared/modal-state-classes';
4
+ import { useIsomorphicLayoutEffect } from '../shared/use-isomorphic-layout-effect.js';
5
+ import { classNames, getExtraAttrs, emit } from '../shared/utils.js';
6
+ import { colorClasses } from '../shared/mixins.js';
7
+ import { f7ready, f7 } from '../shared/f7.js';
8
+ import { watchProp } from '../shared/watch-prop.js';
9
+ import { modalStateClasses } from '../shared/modal-state-classes.js';
10
10
 
11
11
 
12
12
  const LoginScreen = /*#__PURE__*/forwardRef((props, ref) => {
@@ -1,9 +1,9 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs, emit } from '../shared/utils';
5
- import { colorClasses, routerAttrs, routerClasses, actionsAttrs, actionsClasses } from '../shared/mixins';
6
- import { useRouteProps } from '../shared/use-route-props';
4
+ import { classNames, getExtraAttrs, emit } from '../shared/utils.js';
5
+ import { colorClasses, routerAttrs, routerClasses, actionsAttrs, actionsClasses } from '../shared/mixins.js';
6
+ import { useRouteProps } from '../shared/use-route-props.js';
7
7
 
8
8
  const MenuDropdownItem = /*#__PURE__*/forwardRef((props, ref) => {
9
9
  const {
@@ -1,8 +1,8 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
4
+ import { classNames, getExtraAttrs } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
6
 
7
7
  const MenuDropdown = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {
@@ -1,13 +1,13 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { useIsomorphicLayoutEffect } from '../shared/use-isomorphic-layout-effect';
5
- import { classNames, getExtraAttrs, getSlots, emit } from '../shared/utils';
6
- import { colorClasses, routerAttrs, routerClasses, actionsClasses, actionsAttrs } from '../shared/mixins';
7
- import { useRouteProps } from '../shared/use-route-props';
8
- import { useIcon } from '../shared/use-icon';
9
- import { f7ready, f7 } from '../shared/f7';
10
- import { useTooltip } from '../shared/use-tooltip';
4
+ import { useIsomorphicLayoutEffect } from '../shared/use-isomorphic-layout-effect.js';
5
+ import { classNames, getExtraAttrs, getSlots, emit } from '../shared/utils.js';
6
+ import { colorClasses, routerAttrs, routerClasses, actionsClasses, actionsAttrs } from '../shared/mixins.js';
7
+ import { useRouteProps } from '../shared/use-route-props.js';
8
+ import { useIcon } from '../shared/use-icon.js';
9
+ import { f7ready, f7 } from '../shared/f7.js';
10
+ import { useTooltip } from '../shared/use-tooltip.js';
11
11
 
12
12
  const MenuItem = /*#__PURE__*/forwardRef((props, ref) => {
13
13
  const {
@@ -1,8 +1,8 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
4
+ import { classNames, getExtraAttrs } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
6
 
7
7
  const Menu = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {
@@ -1,8 +1,8 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs, getSlots, emit } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
4
+ import { classNames, getExtraAttrs, getSlots, emit } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
6
 
7
7
  const Message = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {
@@ -1,8 +1,8 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs, emit } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
4
+ import { classNames, getExtraAttrs, emit } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
6
 
7
7
  const MessagebarAttachment = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {
@@ -1,8 +1,8 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
4
+ import { classNames, getExtraAttrs } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
6
 
7
7
  const MessagebarAttachments = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {
@@ -1,8 +1,8 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs, emit } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
4
+ import { classNames, getExtraAttrs, emit } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
6
 
7
7
  const MessagebarSheetImage = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {
@@ -1,8 +1,8 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
4
+ import { classNames, getExtraAttrs } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
6
 
7
7
  const MessagebarSheetItem = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {
@@ -1,8 +1,8 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
4
+ import { classNames, getExtraAttrs } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
6
 
7
7
  const MessagebarSheet = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {
@@ -1,13 +1,13 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { useIsomorphicLayoutEffect } from '../shared/use-isomorphic-layout-effect';
5
- import { classNames, getExtraAttrs, emit, getSlots, noUndefinedProps } from '../shared/utils';
6
- import { colorClasses } from '../shared/mixins';
7
- import Link from './link';
8
- import Input from './input';
9
- import { f7ready, f7 } from '../shared/f7';
10
- import { watchProp } from '../shared/watch-prop';
4
+ import { useIsomorphicLayoutEffect } from '../shared/use-isomorphic-layout-effect.js';
5
+ import { classNames, getExtraAttrs, emit, getSlots, noUndefinedProps } from '../shared/utils.js';
6
+ import { colorClasses } from '../shared/mixins.js';
7
+ import Link from './link.js';
8
+ import Input from './input.js';
9
+ import { f7ready, f7 } from '../shared/f7.js';
10
+ import { watchProp } from '../shared/watch-prop.js';
11
11
 
12
12
 
13
13
  const Messagebar = /*#__PURE__*/forwardRef((props, ref) => {
@@ -1,8 +1,8 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
4
+ import { classNames, getExtraAttrs } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
6
 
7
7
  const MessagesTitle = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {