framework7 7.0.0-beta.10 → 7.0.0-beta.11

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 (109) hide show
  1. package/components/actions/actions-class.js +6 -1
  2. package/components/actions/actions-rtl.css +1 -1
  3. package/components/actions/actions.css +1 -1
  4. package/components/actions/actions.d.ts +2 -0
  5. package/components/actions/actions.js +1 -0
  6. package/components/actions/actions.lazy.js +1 -1
  7. package/components/actions/actions.less +3 -0
  8. package/components/breadcrumbs/breadcrumbs-aurora.less +2 -0
  9. package/components/breadcrumbs/breadcrumbs-ios.less +2 -0
  10. package/components/breadcrumbs/breadcrumbs-md.less +2 -0
  11. package/components/breadcrumbs/breadcrumbs-rtl.css +1 -0
  12. package/components/breadcrumbs/breadcrumbs-vars.less +36 -0
  13. package/components/breadcrumbs/breadcrumbs.css +1 -0
  14. package/components/breadcrumbs/breadcrumbs.d.ts +15 -0
  15. package/components/breadcrumbs/breadcrumbs.js +13 -0
  16. package/components/breadcrumbs/breadcrumbs.lazy.js +1 -0
  17. package/components/breadcrumbs/breadcrumbs.less +100 -0
  18. package/components/calendar/calendar-class.js +206 -122
  19. package/components/calendar/calendar-rtl.css +1 -1
  20. package/components/calendar/calendar-vars.less +6 -10
  21. package/components/calendar/calendar.css +1 -1
  22. package/components/calendar/calendar.d.ts +2 -0
  23. package/components/calendar/calendar.js +1 -0
  24. package/components/calendar/calendar.lazy.js +1 -1
  25. package/components/calendar/calendar.less +20 -16
  26. package/components/list-index/list-index.d.ts +1 -1
  27. package/components/modal/modal-class.js +10 -0
  28. package/components/notification/notification.d.ts +4 -4
  29. package/components/picker/picker-class.js +6 -6
  30. package/components/picker/picker-column.js +34 -270
  31. package/components/picker/picker-rtl.css +1 -1
  32. package/components/picker/picker.css +1 -1
  33. package/components/picker/picker.d.ts +2 -13
  34. package/components/picker/picker.js +0 -5
  35. package/components/picker/picker.lazy.js +1 -1
  36. package/components/picker/picker.less +28 -10
  37. package/components/popover/popover-class.js +15 -2
  38. package/components/popover/popover-rtl.css +1 -1
  39. package/components/popover/popover.css +1 -1
  40. package/components/popover/popover.d.ts +2 -0
  41. package/components/popover/popover.js +1 -0
  42. package/components/popover/popover.lazy.js +1 -1
  43. package/components/popover/popover.less +3 -0
  44. package/components/popup/popup-class.js +6 -1
  45. package/components/popup/popup-rtl.css +1 -1
  46. package/components/popup/popup.css +1 -1
  47. package/components/popup/popup.d.ts +4 -0
  48. package/components/popup/popup.js +1 -0
  49. package/components/popup/popup.lazy.js +1 -1
  50. package/components/popup/popup.less +4 -0
  51. package/components/preloader/preloader.d.ts +4 -0
  52. package/components/progressbar/progressbar-aurora.less +32 -13
  53. package/components/progressbar/progressbar-ios.less +19 -7
  54. package/components/progressbar/progressbar-md.less +64 -28
  55. package/components/progressbar/progressbar-rtl.css +1 -1
  56. package/components/progressbar/progressbar.css +1 -1
  57. package/components/progressbar/progressbar.js +1 -1
  58. package/components/progressbar/progressbar.lazy.js +1 -1
  59. package/components/progressbar/progressbar.less +16 -4
  60. package/components/range/range.d.ts +23 -5
  61. package/components/sheet/sheet-class.js +6 -1
  62. package/components/sheet/sheet-rtl.css +1 -1
  63. package/components/sheet/sheet.css +1 -1
  64. package/components/sheet/sheet.d.ts +2 -0
  65. package/components/sheet/sheet.js +1 -0
  66. package/components/sheet/sheet.lazy.js +1 -1
  67. package/components/sheet/sheet.less +3 -0
  68. package/components/sortable/sortable.d.ts +5 -1
  69. package/components/sortable/sortable.js +15 -2
  70. package/components/sortable/sortable.lazy.js +1 -1
  71. package/components/swiper/swiper-rtl.css +1 -1
  72. package/components/swiper/swiper.css +1 -1
  73. package/components/swiper/swiper.lazy.js +1 -1
  74. package/components/tabs/tabs.js +4 -5
  75. package/components/tabs/tabs.lazy.js +1 -1
  76. package/components/toast/toast.d.ts +2 -2
  77. package/components/toolbar/toolbar-aurora.less +0 -13
  78. package/components/toolbar/toolbar-md.less +0 -13
  79. package/components/toolbar/toolbar.js +1 -1
  80. package/components/toolbar/toolbar.less +13 -0
  81. package/components/view/view.d.ts +2 -0
  82. package/components/view/view.js +1 -0
  83. package/framework7-bundle-rtl.css +249 -150
  84. package/framework7-bundle-rtl.min.css +4 -4
  85. package/framework7-bundle.css +234 -134
  86. package/framework7-bundle.esm.js +5 -4
  87. package/framework7-bundle.js +927 -713
  88. package/framework7-bundle.js.map +1 -1
  89. package/framework7-bundle.less +4 -3
  90. package/framework7-bundle.min.css +4 -4
  91. package/framework7-bundle.min.js +4 -4
  92. package/framework7-bundle.min.js.map +1 -1
  93. package/framework7-lite-bundle.esm.js +5 -4
  94. package/framework7-lite.esm.js +3 -3
  95. package/framework7-rtl.css +12 -21
  96. package/framework7-rtl.min.css +4 -4
  97. package/framework7-types.d.ts +5 -1
  98. package/framework7.css +11 -19
  99. package/framework7.d.ts +4 -0
  100. package/framework7.esm.js +3 -3
  101. package/framework7.js +38 -13
  102. package/framework7.js.map +1 -1
  103. package/framework7.less +3 -3
  104. package/framework7.min.css +4 -4
  105. package/framework7.min.js +4 -4
  106. package/framework7.min.js.map +1 -1
  107. package/modules/router/back.js +11 -1
  108. package/modules/router/tab.js +1 -1
  109. package/package.json +9 -5
@@ -33,6 +33,7 @@ import { AreaChart } from './components/area-chart/area-chart';
33
33
  import { Autocomplete } from './components/autocomplete/autocomplete';
34
34
  import { Badge } from './components/badge/badge';
35
35
  import { Block } from './components/block/block';
36
+ import { Breadcrumbs } from './components/breadcrumbs/breadcrumbs';
36
37
  import { Button } from './components/button/button';
37
38
  import { Calendar } from './components/calendar/calendar';
38
39
  import { Card } from './components/card/card';
@@ -151,6 +152,9 @@ declare module './components/app/app-class' {
151
152
  interface Framework7Class<Events> extends Block.AppMethods{}
152
153
  interface Framework7Parameters extends Block.AppParams{}
153
154
  interface Framework7Events extends Block.AppEvents{}
155
+ interface Framework7Class<Events> extends Breadcrumbs.AppMethods{}
156
+ interface Framework7Parameters extends Breadcrumbs.AppParams{}
157
+ interface Framework7Events extends Breadcrumbs.AppEvents{}
154
158
  interface Framework7Class<Events> extends Button.AppMethods{}
155
159
  interface Framework7Parameters extends Button.AppParams{}
156
160
  interface Framework7Events extends Button.AppEvents{}
@@ -359,5 +363,5 @@ export {
359
363
  StoreParameters,
360
364
  createStore,
361
365
  };
362
- export { Accordion, Actions, Appbar, AreaChart, Autocomplete, Badge, Block, Button, Calendar, Card, Checkbox, Chip, ColorPicker, ContactsList, DataTable, Dialog, Elevation, Fab, Form, Gauge, Grid, Icon, InfiniteScroll, Input, Lazy, Link, List, ListIndex, LoginScreen, Menu, Messagebar, Messages, Modal, Navbar, Notification, Page, Panel, PhotoBrowser, Picker, PieChart, Popover, Popup, Preloader, Progressbar, PullToRefresh, Radio, Range, Searchbar, Sheet, Skeleton, SmartSelect, Sortable, Statusbar, Stepper, Subnavbar, Swipeout, Swiper, Tabs, TextEditor, Timeline, Toast, Toggle, Toolbar, Tooltip, TouchRipple, Treeview, Typography, View, VirtualList }
366
+ export { Accordion, Actions, Appbar, AreaChart, Autocomplete, Badge, Block, Breadcrumbs, Button, Calendar, Card, Checkbox, Chip, ColorPicker, ContactsList, DataTable, Dialog, Elevation, Fab, Form, Gauge, Grid, Icon, InfiniteScroll, Input, Lazy, Link, List, ListIndex, LoginScreen, Menu, Messagebar, Messages, Modal, Navbar, Notification, Page, Panel, PhotoBrowser, Picker, PieChart, Popover, Popup, Preloader, Progressbar, PullToRefresh, Radio, Range, Searchbar, Sheet, Skeleton, SmartSelect, Sortable, Statusbar, Stepper, Subnavbar, Swipeout, Swiper, Tabs, TextEditor, Timeline, Toast, Toggle, Toolbar, Tooltip, TouchRipple, Treeview, Typography, View, VirtualList }
363
367
  export default Framework7;
package/framework7.css CHANGED
@@ -1,13 +1,13 @@
1
1
  /**
2
- * Framework7 7.0.0-beta.10
2
+ * Framework7 7.0.0-beta.11
3
3
  * Full featured mobile HTML framework for building iOS & Android apps
4
4
  * https://framework7.io/
5
5
  *
6
- * Copyright 2014-2021 Vladimir Kharlampidi
6
+ * Copyright 2014-2022 Vladimir Kharlampidi
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: October 28, 2021
10
+ * Released on: February 17, 2022
11
11
  */
12
12
 
13
13
  /*====================
@@ -3116,6 +3116,14 @@ html.device-full-viewport body {
3116
3116
  height: var(--f7-tabbar-icon-size);
3117
3117
  line-height: var(--f7-tabbar-icon-size);
3118
3118
  }
3119
+ .tabbar .tab-link-highlight,
3120
+ .tabbar-labels .tab-link-highlight {
3121
+ position: absolute;
3122
+ height: 2px;
3123
+ background: var(--f7-tabbar-link-active-border-color, var(--f7-theme-color));
3124
+ transition-duration: 300ms;
3125
+ left: 0;
3126
+ }
3119
3127
  .tabbar-labels {
3120
3128
  --f7-toolbar-height: var(--f7-tabbar-labels-height);
3121
3129
  }
@@ -3376,14 +3384,6 @@ html.device-full-viewport body {
3376
3384
  overflow: hidden;
3377
3385
  position: relative;
3378
3386
  }
3379
- .md .tabbar .tab-link-highlight,
3380
- .md .tabbar-labels .tab-link-highlight {
3381
- position: absolute;
3382
- height: 2px;
3383
- background: var(--f7-tabbar-link-active-border-color, var(--f7-theme-color));
3384
- transition-duration: 300ms;
3385
- left: 0;
3386
- }
3387
3387
  .md .tabbar-labels .tab-link,
3388
3388
  .md .tabbar-labels .link {
3389
3389
  padding-top: 7px;
@@ -3408,14 +3408,6 @@ html.device-full-viewport body {
3408
3408
  align-items: center;
3409
3409
  margin: 0;
3410
3410
  }
3411
- .aurora .tabbar .tab-link-highlight,
3412
- .aurora .tabbar-labels .tab-link-highlight {
3413
- position: absolute;
3414
- height: 2px;
3415
- background: var(--f7-tabbar-link-active-border-color, var(--f7-theme-color));
3416
- transition-duration: 300ms;
3417
- left: 0;
3418
- }
3419
3411
  .aurora .tabbar .toolbar-inner,
3420
3412
  .aurora .tabbar-labels .toolbar-inner {
3421
3413
  padding-left: 0;
package/framework7.d.ts CHANGED
@@ -27,6 +27,7 @@ import { AreaChart } from './components/area-chart/area-chart';
27
27
  import { Autocomplete } from './components/autocomplete/autocomplete';
28
28
  import { Badge } from './components/badge/badge';
29
29
  import { Block } from './components/block/block';
30
+ import { Breadcrumbs } from './components/breadcrumbs/breadcrumbs';
30
31
  import { Button } from './components/button/button';
31
32
  import { Calendar } from './components/calendar/calendar';
32
33
  import { Card } from './components/card/card';
@@ -145,6 +146,9 @@ declare module './types/components/app/app-class' {
145
146
  interface Framework7Class<Events> extends Block.AppMethods{}
146
147
  interface Framework7Parameters extends Block.AppParams{}
147
148
  interface Framework7Events extends Block.AppEvents{}
149
+ interface Framework7Class<Events> extends Breadcrumbs.AppMethods{}
150
+ interface Framework7Parameters extends Breadcrumbs.AppParams{}
151
+ interface Framework7Events extends Breadcrumbs.AppEvents{}
148
152
  interface Framework7Class<Events> extends Button.AppMethods{}
149
153
  interface Framework7Parameters extends Button.AppParams{}
150
154
  interface Framework7Events extends Button.AppEvents{}
package/framework7.esm.js CHANGED
@@ -1,13 +1,13 @@
1
1
  /**
2
- * Framework7 7.0.0-beta.10
2
+ * Framework7 7.0.0-beta.11
3
3
  * Full featured mobile HTML framework for building iOS & Android apps
4
4
  * https://framework7.io/
5
5
  *
6
- * Copyright 2014-2021 Vladimir Kharlampidi
6
+ * Copyright 2014-2022 Vladimir Kharlampidi
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: October 28, 2021
10
+ * Released on: February 17, 2022
11
11
  */
12
12
 
13
13
  import $ from './shared/dom7.js';
package/framework7.js CHANGED
@@ -1,13 +1,13 @@
1
1
  /**
2
- * Framework7 7.0.0-beta.10
2
+ * Framework7 7.0.0-beta.11
3
3
  * Full featured mobile HTML framework for building iOS & Android apps
4
4
  * https://framework7.io/
5
5
  *
6
- * Copyright 2014-2021 Vladimir Kharlampidi
6
+ * Copyright 2014-2022 Vladimir Kharlampidi
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: October 28, 2021
10
+ * Released on: February 17, 2022
11
11
  */
12
12
 
13
13
  (function (global, factory) {
@@ -17,7 +17,7 @@
17
17
  }(this, (function () { 'use strict';
18
18
 
19
19
  /**
20
- * SSR Window 4.0.1
20
+ * SSR Window 4.0.2
21
21
  * Better handling for window object in SSR environment
22
22
  * https://github.com/nolimits4web/ssr-window
23
23
  *
@@ -25,7 +25,7 @@
25
25
  *
26
26
  * Licensed under MIT
27
27
  *
28
- * Released on: October 27, 2021
28
+ * Released on: December 13, 2021
29
29
  */
30
30
 
31
31
  /* eslint-disable no-param-reassign */
@@ -196,15 +196,15 @@
196
196
  }
197
197
 
198
198
  /**
199
- * Dom7 4.0.1
199
+ * Dom7 4.0.4
200
200
  * Minimalistic JavaScript library for DOM manipulation, with a jQuery-compatible API
201
201
  * https://framework7.io/docs/dom7.html
202
202
  *
203
- * Copyright 2021, Vladimir Kharlampidi
203
+ * Copyright 2022, Vladimir Kharlampidi
204
204
  *
205
205
  * Licensed under MIT
206
206
  *
207
- * Released on: October 27, 2021
207
+ * Released on: January 11, 2022
208
208
  */
209
209
  /* eslint-disable no-proto */
210
210
 
@@ -224,8 +224,12 @@
224
224
 
225
225
  class Dom7 extends Array {
226
226
  constructor(items) {
227
- super(...(items || []));
228
- makeReactive(this);
227
+ if (typeof items === 'number') {
228
+ super(items);
229
+ } else {
230
+ super(...(items || []));
231
+ makeReactive(this);
232
+ }
229
233
  }
230
234
 
231
235
  }
@@ -6832,7 +6836,7 @@
6832
6836
 
6833
6837
 
6834
6838
  if (router.params.browserHistory && options.browserHistory && !options.reloadPrevious) {
6835
- History.replace(router.view.id, {
6839
+ History[router.params.browserHistoryTabs](router.view.id, {
6836
6840
  url: options.route.url
6837
6841
  }, (router.params.browserHistoryRoot || '') + router.params.browserHistorySeparator + options.route.url);
6838
6842
  } // Update Router History
@@ -7298,7 +7302,7 @@
7298
7302
  const $el = $(el);
7299
7303
  const app = router.app;
7300
7304
  const view = router.view;
7301
- const options = extend({
7305
+ const options = extend(false, {
7302
7306
  animate: router.params.animate,
7303
7307
  browserHistory: true,
7304
7308
  replaceState: false
@@ -8006,6 +8010,16 @@
8006
8010
  }
8007
8011
 
8008
8012
  const previousPageRoute = $previousPage[0].f7Page.route;
8013
+
8014
+ if (navigateOptions.preload && $previousPage.hasClass('stacked')) {
8015
+ loadBack(router, {
8016
+ el: $previousPage
8017
+ }, extend(navigateOptions, {
8018
+ route: previousPageRoute
8019
+ }));
8020
+ return router;
8021
+ }
8022
+
8009
8023
  processRouteQueue.call(router, previousPageRoute, router.currentRoute, () => {
8010
8024
  loadBack(router, {
8011
8025
  el: $previousPage
@@ -12554,6 +12568,7 @@
12554
12568
  browserHistoryOnLoad: true,
12555
12569
  browserHistoryInitialMatch: false,
12556
12570
  browserHistoryStoreHistory: true,
12571
+ browserHistoryTabs: 'replace',
12557
12572
  // Animate Pages
12558
12573
  animate: true,
12559
12574
  // iOS Dynamic Navbar
@@ -13468,8 +13483,8 @@
13468
13483
  const Toolbar = {
13469
13484
  setHighlight(tabbarEl) {
13470
13485
  const app = this;
13471
- if (app.theme === 'ios') return;
13472
13486
  const $tabbarEl = $(tabbarEl);
13487
+ if (app.theme === 'ios' && !$tabbarEl.hasClass('tabbar-highlight')) return;
13473
13488
  if ($tabbarEl.length === 0 || !($tabbarEl.hasClass('tabbar') || $tabbarEl.hasClass('tabbar-labels'))) return;
13474
13489
  let $highlightEl = $tabbarEl.find('.tab-link-highlight');
13475
13490
  const tabLinksCount = $tabbarEl.find('.tab-link').length;
@@ -13885,6 +13900,11 @@
13885
13900
  if (!modal.type || !modal.$el) return;
13886
13901
  modal.$el.removeClass('modal-out');
13887
13902
  modal.$el.hide();
13903
+
13904
+ if (modal.params.backdrop && (modal.params.backdropUnique || modal.forceBackdropUnique) && modal.$backdropEl) {
13905
+ modal.$backdropEl.remove();
13906
+ }
13907
+
13888
13908
  modal.$el.trigger(`modal:closed ${modal.type.toLowerCase()}:closed`);
13889
13909
  modal.emit(`local::closed modalClosed ${modal.type}Closed`, modal);
13890
13910
  }
@@ -13942,8 +13962,13 @@
13942
13962
 
13943
13963
 
13944
13964
  $el.show();
13965
+
13966
+ if (modal.params.backdrop && (modal.params.backdropUnique || modal.forceBackdropUnique) && modal.$backdropEl) {
13967
+ modal.$backdropEl.insertBefore($el);
13968
+ }
13945
13969
  /* eslint no-underscore-dangle: ["error", { "allow": ["_clientLeft"] }] */
13946
13970
 
13971
+
13947
13972
  modal._clientLeft = $el[0].clientLeft; // Modal
13948
13973
 
13949
13974
  function transitionEnd() {