framework7 8.0.5 → 8.1.0

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 (54) hide show
  1. package/components/app/app-class.js +2 -3
  2. package/components/app/app.less +1 -15
  3. package/components/breadcrumbs/breadcrumbs-rtl.css +1 -1
  4. package/components/breadcrumbs/breadcrumbs.css +1 -1
  5. package/components/breadcrumbs/breadcrumbs.less +1 -4
  6. package/components/calendar/calendar-rtl.css +1 -1
  7. package/components/calendar/calendar.css +1 -1
  8. package/components/calendar/calendar.d.ts +2 -0
  9. package/components/calendar/calendar.less +4 -0
  10. package/components/list-index/list-index-rtl.css +1 -1
  11. package/components/list-index/list-index-vars.less +7 -2
  12. package/components/list-index/list-index.css +1 -1
  13. package/components/notification/notification-md.less +4 -4
  14. package/components/notification/notification-rtl.css +1 -1
  15. package/components/notification/notification-vars.less +4 -2
  16. package/components/notification/notification.css +1 -1
  17. package/components/notification/notification.less +1 -1
  18. package/components/panel/panel-class.js +2 -0
  19. package/components/picker/picker-rtl.css +1 -1
  20. package/components/picker/picker.css +1 -1
  21. package/components/picker/picker.less +4 -4
  22. package/components/pull-to-refresh/pull-to-refresh-md.less +2 -1
  23. package/components/pull-to-refresh/pull-to-refresh-rtl.css +1 -1
  24. package/components/pull-to-refresh/pull-to-refresh-vars.less +4 -0
  25. package/components/pull-to-refresh/pull-to-refresh.css +1 -1
  26. package/components/searchbar/searchbar-md.less +1 -2
  27. package/components/searchbar/searchbar-rtl.css +1 -1
  28. package/components/searchbar/searchbar.css +1 -1
  29. package/components/text-editor/text-editor-rtl.css +1 -1
  30. package/components/text-editor/text-editor.css +1 -1
  31. package/components/text-editor/text-editor.less +1 -3
  32. package/components/toolbar/toolbar.less +1 -7
  33. package/framework7-bundle-rtl.css +107 -20
  34. package/framework7-bundle-rtl.min.css +5 -5
  35. package/framework7-bundle.css +107 -20
  36. package/framework7-bundle.esm.js +2 -2
  37. package/framework7-bundle.js +10 -6
  38. package/framework7-bundle.js.map +1 -1
  39. package/framework7-bundle.less +2 -2
  40. package/framework7-bundle.min.css +5 -5
  41. package/framework7-bundle.min.js +3 -3
  42. package/framework7-bundle.min.js.map +1 -1
  43. package/framework7-lite-bundle.esm.js +2 -2
  44. package/framework7-lite.esm.js +2 -2
  45. package/framework7-rtl.css +25 -7
  46. package/framework7-rtl.min.css +4 -4
  47. package/framework7.css +25 -7
  48. package/framework7.esm.js +2 -2
  49. package/framework7.less +2 -2
  50. package/framework7.min.css +4 -4
  51. package/less/mixins.less +22 -0
  52. package/modules/router/modal.js +1 -1
  53. package/modules/router/router-class.js +3 -0
  54. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Framework7 8.0.5
2
+ * Framework7 8.1.0
3
3
  * Full featured mobile HTML framework for building iOS & Android apps
4
4
  * https://framework7.io/
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: May 8, 2023
10
+ * Released on: June 12, 2023
11
11
  */
12
12
 
13
13
  /*====================
@@ -162,11 +162,16 @@ body {
162
162
  font-size: var(--f7-font-size);
163
163
  line-height: var(--f7-line-height);
164
164
  color: var(--f7-text-color);
165
+ scrollbar-width: none;
166
+ scrollbar-color: transparent;
165
167
  }
166
168
  body::-webkit-scrollbar {
169
+ -webkit-appearance: none;
170
+ appearance: none;
167
171
  width: 0px;
172
+ display: none;
173
+ opacity: 0;
168
174
  background: transparent;
169
- position: relative;
170
175
  }
171
176
  body::-webkit-scrollbar-track {
172
177
  box-shadow: none;
@@ -2488,13 +2493,26 @@ html.device-full-viewport body {
2488
2493
  justify-content: flex-start;
2489
2494
  overflow: auto;
2490
2495
  -webkit-overflow-scrolling: touch;
2496
+ scrollbar-width: none;
2497
+ scrollbar-color: transparent;
2491
2498
  }
2492
2499
  .tabbar-scrollable .toolbar-inner::-webkit-scrollbar {
2493
- display: none !important;
2494
- width: 0 !important;
2495
- height: 0 !important;
2496
2500
  -webkit-appearance: none;
2497
- opacity: 0 !important;
2501
+ appearance: none;
2502
+ width: 0px;
2503
+ display: none;
2504
+ opacity: 0;
2505
+ background: transparent;
2506
+ }
2507
+ .tabbar-scrollable .toolbar-inner::-webkit-scrollbar-track {
2508
+ box-shadow: none;
2509
+ background: transparent;
2510
+ }
2511
+ .tabbar-scrollable .toolbar-inner::-webkit-scrollbar-thumb {
2512
+ background-color: transparent;
2513
+ outline: none;
2514
+ border-radius: 9999px;
2515
+ position: relative;
2498
2516
  }
2499
2517
  .tabbar-scrollable .tab-link,
2500
2518
  .tabbar-scrollable .link {
@@ -8060,11 +8078,11 @@ html.device-android-4 .accordion-item-content {
8060
8078
  --f7-list-index-font-weight: 600;
8061
8079
  /* --f7-list-index-text-color: var(--f7-theme-color); */
8062
8080
  --f7-list-index-item-height: 14px;
8063
- --f7-list-index-label-text-color: #fff;
8064
- /* --f7-list-index-label-bg-color: var(--f7-theme-color); */
8065
8081
  --f7-list-index-label-font-weight: 500;
8066
8082
  }
8067
8083
  .ios {
8084
+ --f7-list-index-label-text-color: #fff;
8085
+ /* --f7-list-index-label-bg-color: var(--f7-theme-color); */
8068
8086
  --f7-list-index-label-size: 44px;
8069
8087
  --f7-list-index-label-font-size: 17px;
8070
8088
  --f7-list-index-skip-dot-size: 6px;
@@ -8074,6 +8092,12 @@ html.device-android-4 .accordion-item-content {
8074
8092
  --f7-list-index-label-font-size: 20px;
8075
8093
  --f7-list-index-skip-dot-size: 4px;
8076
8094
  }
8095
+ .md,
8096
+ .md .dark,
8097
+ .md [class*='color-'] {
8098
+ --f7-list-index-label-bg-color: var(--f7-md-primary);
8099
+ --f7-list-index-label-text-color: var(--f7-md-on-primary);
8100
+ }
8077
8101
  .list-index {
8078
8102
  position: absolute;
8079
8103
  top: 0;
@@ -13180,6 +13204,10 @@ label.item-radio.disabled,
13180
13204
  .calendar-day-selected-right:first-child:before {
13181
13205
  display: none;
13182
13206
  }
13207
+ .calendar-day-selected-left.calendar-day-selected-right:before {
13208
+ content: none;
13209
+ display: none;
13210
+ }
13183
13211
  .calendar-day-selected-range .calendar-day-number {
13184
13212
  background-color: transparent;
13185
13213
  color: inherit;
@@ -13452,6 +13480,9 @@ label.item-radio.disabled,
13452
13480
  max-height: 100%;
13453
13481
  z-index: 10;
13454
13482
  }
13483
+ .picker-column.picker-column-first.picker-column-last {
13484
+ width: 100%;
13485
+ }
13455
13486
  .picker-column.picker-column-left {
13456
13487
  text-align: left;
13457
13488
  }
@@ -13468,15 +13499,30 @@ label.item-radio.disabled,
13468
13499
  }
13469
13500
  .picker-items {
13470
13501
  overflow: auto;
13471
- scrollbar-width: none;
13472
13502
  scroll-snap-type: y mandatory;
13473
13503
  height: 100%;
13474
13504
  box-sizing: border-box;
13475
13505
  padding: var(--f7-picker-scroll-padding, 0px) 0px;
13506
+ scrollbar-width: none;
13507
+ scrollbar-color: transparent;
13476
13508
  }
13477
13509
  .picker-items::-webkit-scrollbar {
13510
+ -webkit-appearance: none;
13511
+ appearance: none;
13512
+ width: 0px;
13478
13513
  display: none;
13479
13514
  opacity: 0;
13515
+ background: transparent;
13516
+ }
13517
+ .picker-items::-webkit-scrollbar-track {
13518
+ box-shadow: none;
13519
+ background: transparent;
13520
+ }
13521
+ .picker-items::-webkit-scrollbar-thumb {
13522
+ background-color: transparent;
13523
+ outline: none;
13524
+ border-radius: 9999px;
13525
+ position: relative;
13480
13526
  }
13481
13527
  .picker-item {
13482
13528
  height: var(--f7-picker-item-height);
@@ -13588,6 +13634,12 @@ label.item-radio.disabled,
13588
13634
  --f7-ptr-preloader-size: 22px;
13589
13635
  --f7-ptr-size: 40px;
13590
13636
  }
13637
+ .md,
13638
+ .md .dark,
13639
+ .md [class*='color-'] {
13640
+ --f7-ptr-preloader-bg-color: var(--f7-md-surface-1);
13641
+ --f7-ptr-preloader-color: var(--f7-md-primary);
13642
+ }
13591
13643
  .ptr-preloader {
13592
13644
  position: relative;
13593
13645
  top: var(--f7-ptr-top, 0);
@@ -13684,7 +13736,8 @@ label.item-radio.disabled,
13684
13736
  .md .ptr-preloader {
13685
13737
  width: var(--f7-ptr-size);
13686
13738
  border-radius: 50%;
13687
- background: #fff;
13739
+ background: var(--f7-ptr-preloader-bg-color);
13740
+ --f7-preloader-color: var(--f7-ptr-preloader-color);
13688
13741
  margin-top: calc(-1 * var(--f7-ptr-size));
13689
13742
  z-index: 100;
13690
13743
  box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
@@ -15479,8 +15532,7 @@ table.data-table {
15479
15532
  opacity: 1;
15480
15533
  }
15481
15534
  .md .searchbar .input-clear-button:before {
15482
- margin-left: 0;
15483
- margin-top: 0;
15535
+ display: none;
15484
15536
  }
15485
15537
  .md .searchbar-inline {
15486
15538
  --f7-searchbar-input-extra-padding-left: 32px;
@@ -17491,7 +17543,8 @@ swiper-container .swiper-notification {
17491
17543
  }
17492
17544
  .ios {
17493
17545
  --f7-notification-margin: 8px;
17494
- --f7-notification-padding: 10px;
17546
+ --f7-notification-padding-horizontal: 10px;
17547
+ --f7-notification-padding-vertical: 10px;
17495
17548
  --f7-notification-border-radius: 12px;
17496
17549
  --f7-notification-box-shadow: 0px 5px 25px -10px rgba(0, 0, 0, 0.7);
17497
17550
  --f7-notification-icon-size: 20px;
@@ -17523,7 +17576,8 @@ swiper-container .swiper-notification {
17523
17576
  }
17524
17577
  .md {
17525
17578
  --f7-notification-margin: 16px;
17526
- --f7-notification-padding: 16px;
17579
+ --f7-notification-padding-vertical: 20px;
17580
+ --f7-notification-padding-horizontal: 16px;
17527
17581
  --f7-notification-border-radius: 16px;
17528
17582
  --f7-notification-box-shadow: none;
17529
17583
  --f7-notification-icon-size: 24px;
@@ -17560,7 +17614,7 @@ swiper-container .swiper-notification {
17560
17614
  transition-property: transform;
17561
17615
  direction: ltr;
17562
17616
  max-width: var(--f7-notification-max-width);
17563
- padding: var(--f7-notification-padding);
17617
+ padding: var(--f7-notification-padding-vertical) var(--f7-notification-padding-horizontal);
17564
17618
  border-radius: var(--f7-notification-border-radius);
17565
17619
  box-shadow: var(--f7-notification-box-shadow);
17566
17620
  background: var(--f7-notification-bg-color);
@@ -17707,7 +17761,7 @@ swiper-container .swiper-notification {
17707
17761
  transform: translate3d(0, -150%, 0);
17708
17762
  }
17709
17763
  .md .notification.modal-in {
17710
- transition-duration: 200ms;
17764
+ transition-duration: 500ms;
17711
17765
  transform: translate3d(0, 0%, 0);
17712
17766
  transition-timing-function: cubic-bezier(0, 0.8, 0.34, 1);
17713
17767
  }
@@ -17722,8 +17776,8 @@ swiper-container .swiper-notification {
17722
17776
  }
17723
17777
  .md .notification-with-icon .notification-icon {
17724
17778
  position: absolute;
17725
- left: var(--f7-notification-padding);
17726
- top: var(--f7-notification-padding);
17779
+ left: var(--f7-notification-padding-horizontal);
17780
+ top: var(--f7-notification-padding-vertical);
17727
17781
  }
17728
17782
  .md .notification-with-icon .notification-content,
17729
17783
  .md .notification-with-icon .notification-header {
@@ -17736,7 +17790,7 @@ swiper-container .swiper-notification {
17736
17790
  margin-top: 4px;
17737
17791
  }
17738
17792
  .md .notification-header + .notification-content {
17739
- margin-top: 4px;
17793
+ margin-top: 8px;
17740
17794
  }
17741
17795
  .md .notification-title-right-text {
17742
17796
  margin-left: 4px;
@@ -18971,9 +19025,26 @@ button.text-editor-button .material-icons sub {
18971
19025
  justify-content: flex-start !important;
18972
19026
  overflow: auto;
18973
19027
  -webkit-overflow-scrolling: touch;
19028
+ scrollbar-width: none;
19029
+ scrollbar-color: transparent;
18974
19030
  }
18975
19031
  .text-editor-keyboard-toolbar .toolbar-inner::-webkit-scrollbar {
19032
+ -webkit-appearance: none;
19033
+ appearance: none;
19034
+ width: 0px;
18976
19035
  display: none;
19036
+ opacity: 0;
19037
+ background: transparent;
19038
+ }
19039
+ .text-editor-keyboard-toolbar .toolbar-inner::-webkit-scrollbar-track {
19040
+ box-shadow: none;
19041
+ background: transparent;
19042
+ }
19043
+ .text-editor-keyboard-toolbar .toolbar-inner::-webkit-scrollbar-thumb {
19044
+ background-color: transparent;
19045
+ outline: none;
19046
+ border-radius: 9999px;
19047
+ position: relative;
18977
19048
  }
18978
19049
  .text-editor-keyboard-toolbar .toolbar-inner .text-editor-button-divider {
18979
19050
  height: 100%;
@@ -19262,10 +19333,26 @@ button.text-editor-button .material-icons sub {
19262
19333
  overflow: auto;
19263
19334
  white-space: nowrap;
19264
19335
  padding: var(--f7-breadcrumbs-padding);
19336
+ scrollbar-width: none;
19337
+ scrollbar-color: transparent;
19265
19338
  }
19266
19339
  .breadcrumbs::-webkit-scrollbar {
19340
+ -webkit-appearance: none;
19341
+ appearance: none;
19342
+ width: 0px;
19267
19343
  display: none;
19268
19344
  opacity: 0;
19345
+ background: transparent;
19346
+ }
19347
+ .breadcrumbs::-webkit-scrollbar-track {
19348
+ box-shadow: none;
19349
+ background: transparent;
19350
+ }
19351
+ .breadcrumbs::-webkit-scrollbar-thumb {
19352
+ background-color: transparent;
19353
+ outline: none;
19354
+ border-radius: 9999px;
19355
+ position: relative;
19269
19356
  }
19270
19357
  .breadcrumbs-separator,
19271
19358
  .breadcrumbs-item,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Framework7 8.0.5
2
+ * Framework7 8.1.0
3
3
  * Full featured mobile HTML framework for building iOS & Android apps
4
4
  * https://framework7.io/
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: May 8, 2023
10
+ * Released on: June 12, 2023
11
11
  */
12
12
 
13
13
  import $ from './shared/dom7.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Framework7 8.0.5
2
+ * Framework7 8.1.0
3
3
  * Full featured mobile HTML framework for building iOS & Android apps
4
4
  * https://framework7.io/
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: May 8, 2023
10
+ * Released on: June 12, 2023
11
11
  */
12
12
 
13
13
  (function (global, factory) {
@@ -3865,11 +3865,10 @@
3865
3865
  $('html').removeClass('ios md').addClass(app.theme);
3866
3866
 
3867
3867
  // iOS Translucent
3868
- const device = app.device;
3869
- if (app.params.iosTranslucentBars && app.theme === 'ios' && device.ios) {
3868
+ if (app.params.iosTranslucentBars && app.theme === 'ios') {
3870
3869
  $('html').addClass('ios-translucent-bars');
3871
3870
  }
3872
- if (app.params.iosTranslucentModals && app.theme === 'ios' && device.ios) {
3871
+ if (app.params.iosTranslucentModals && app.theme === 'ios') {
3873
3872
  $('html').addClass('ios-translucent-modals');
3874
3873
  }
3875
3874
 
@@ -6970,7 +6969,7 @@
6970
6969
  modalComponent.destroy();
6971
6970
  }
6972
6971
  nextTick$1(() => {
6973
- if (modalComponent || modalParams.component || modalParams.asyncComponent) {
6972
+ if (modalComponent || modalParams.component || modalParams.asyncComponent || modalParams.async) {
6974
6973
  router.removeModal(modal.el);
6975
6974
  }
6976
6975
  modal.destroy();
@@ -8348,6 +8347,9 @@
8348
8347
  params,
8349
8348
  query
8350
8349
  });
8350
+ if (url === '') {
8351
+ return '/';
8352
+ }
8351
8353
  if (!url) {
8352
8354
  throw new Error(`Framework7: can't construct URL for route with name "${name}"`);
8353
8355
  }
@@ -18916,6 +18918,8 @@
18916
18918
  $el.removeClass('panel-out').addClass('panel-in not-animated');
18917
18919
  panel.onOpen();
18918
18920
  panel.onOpened();
18921
+ // eslint-disable-next-line
18922
+ panel._openTransitionStarted = true;
18919
18923
  }
18920
18924
  return true;
18921
18925
  }