framework7 8.0.0-beta.8 → 8.0.0-beta.9

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 (70) hide show
  1. package/components/actions/actions-md.less +1 -0
  2. package/components/actions/actions-rtl.css +1 -1
  3. package/components/actions/actions.css +1 -1
  4. package/components/actions/actions.less +4 -1
  5. package/components/button/button-ios.less +3 -0
  6. package/components/button/button-md.less +1 -4
  7. package/components/button/button-vars.less +10 -5
  8. package/components/button/button.less +0 -1
  9. package/components/data-table/data-table-md.less +0 -1
  10. package/components/data-table/data-table-rtl.css +1 -1
  11. package/components/data-table/data-table.css +1 -1
  12. package/components/dialog/dialog-rtl.css +1 -1
  13. package/components/dialog/dialog-vars.less +2 -2
  14. package/components/dialog/dialog.css +1 -1
  15. package/components/fab/fab-ios.less +1 -0
  16. package/components/fab/fab-md.less +9 -0
  17. package/components/fab/fab-rtl.css +1 -1
  18. package/components/fab/fab-vars.less +5 -1
  19. package/components/fab/fab.css +1 -1
  20. package/components/fab/fab.less +0 -3
  21. package/components/list/list-md.less +5 -0
  22. package/components/list/list-vars.less +7 -7
  23. package/components/list/list.less +4 -1
  24. package/components/navbar/navbar-md.less +0 -1
  25. package/components/notification/notification-rtl.css +1 -1
  26. package/components/notification/notification.css +1 -1
  27. package/components/notification/notification.less +0 -2
  28. package/components/photo-browser/photo-browser-rtl.css +1 -1
  29. package/components/photo-browser/photo-browser.css +1 -1
  30. package/components/photo-browser/photo-browser.less +2 -2
  31. package/components/searchbar/searchbar-md.less +0 -3
  32. package/components/searchbar/searchbar-rtl.css +1 -1
  33. package/components/searchbar/searchbar.css +1 -1
  34. package/components/searchbar/searchbar.less +5 -1
  35. package/components/stepper/stepper-md.less +2 -2
  36. package/components/stepper/stepper-rtl.css +1 -1
  37. package/components/stepper/stepper-vars.less +2 -1
  38. package/components/stepper/stepper.css +1 -1
  39. package/components/subnavbar/subnavbar-md.less +0 -1
  40. package/components/text-editor/text-editor-md.less +0 -1
  41. package/components/text-editor/text-editor-rtl.css +1 -1
  42. package/components/text-editor/text-editor.css +1 -1
  43. package/components/toast/toast-rtl.css +1 -1
  44. package/components/toast/toast.css +1 -1
  45. package/components/toast/toast.less +0 -1
  46. package/components/toolbar/toolbar-md.less +0 -1
  47. package/components/touch-ripple/touch-ripple-class.js +2 -2
  48. package/components/touch-ripple/touch-ripple-vars.less +1 -1
  49. package/components/touch-ripple/touch-ripple.less +41 -4
  50. package/framework7-bundle-rtl.css +90 -262
  51. package/framework7-bundle-rtl.min.css +3 -3
  52. package/framework7-bundle.css +90 -262
  53. package/framework7-bundle.esm.js +2 -2
  54. package/framework7-bundle.js +57 -76
  55. package/framework7-bundle.js.map +1 -1
  56. package/framework7-bundle.less +2 -2
  57. package/framework7-bundle.min.css +3 -3
  58. package/framework7-bundle.min.js +3 -3
  59. package/framework7-bundle.min.js.map +1 -1
  60. package/framework7-lite-bundle.esm.js +2 -2
  61. package/framework7-lite.esm.js +2 -2
  62. package/framework7-rtl.css +63 -115
  63. package/framework7-rtl.min.css +3 -3
  64. package/framework7.css +63 -115
  65. package/framework7.esm.js +2 -2
  66. package/framework7.less +2 -2
  67. package/framework7.min.css +3 -3
  68. package/modules/component/component-class.js +51 -70
  69. package/modules/touch/touch.js +2 -2
  70. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Framework7 8.0.0-beta.8
2
+ * Framework7 8.0.0-beta.9
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: March 27, 2023
10
+ * Released on: March 31, 2023
11
11
  */
12
12
 
13
13
  (function (global, factory) {
@@ -4476,11 +4476,11 @@
4476
4476
  tapHoldPreventClicks: true,
4477
4477
  // Active State
4478
4478
  activeState: true,
4479
- activeStateElements: 'a, button, label, span, .actions-button, .stepper-button, .stepper-button-plus, .stepper-button-minus, .card-expandable, .menu-item, .link, .item-link, .accordion-item-toggle',
4479
+ activeStateElements: 'a, button, label, span, .actions-button, .stepper-button, .stepper-button-plus, .stepper-button-minus, .card-expandable, .link, .item-link, .accordion-item-toggle',
4480
4480
  activeStateOnMouseMove: false,
4481
4481
  mdTouchRipple: true,
4482
4482
  iosTouchRipple: false,
4483
- touchRippleElements: '.ripple, .link, .item-link, .list label.item-content, .list-button, .links-list a, .button, button, .input-clear-button, .dialog-button, .tab-link, .item-radio, .item-checkbox, .actions-button, .searchbar-disable-button, .fab a, .checkbox, .radio, .data-table .sortable-cell:not(.input-cell), .notification-close-button, .stepper-button, .stepper-button-minus, .stepper-button-plus, .menu-item-content, .list.accordion-list .accordion-item-toggle',
4483
+ touchRippleElements: '.ripple, .link, .item-link, .list label.item-content, .list-button, .links-list a, .button, button, .input-clear-button, .dialog-button, .tab-link, .item-radio, .item-checkbox, .actions-button, .searchbar-disable-button, .fab a, .checkbox, .radio, .data-table .sortable-cell:not(.input-cell), .notification-close-button, .stepper-button, .stepper-button-minus, .stepper-button-plus, .list.accordion-list .accordion-item-toggle',
4484
4484
  touchRippleInsetElements: '.ripple-inset, .icon-only, .searchbar-disable-button, .input-clear-button, .notification-close-button, .md .navbar .link.back'
4485
4485
  }
4486
4486
  },
@@ -11020,77 +11020,59 @@
11020
11020
  /* eslint-disable no-sequences */
11021
11021
  getUseState() {
11022
11022
  var _this = this;
11023
- return o => [o].reduce(function (t, _i, _x, _a, i) {
11024
- if (i === void 0) {
11025
- i = t.init(_i);
11026
- }
11027
- return {
11028
- state: i,
11029
- update: v => (t.update(i, v), _this.update()),
11030
- remove: v => (t.remove(i, v), _this.update()),
11031
- clear: () => (t.clear(i), _this.update()),
11032
- insert: (x, v) => (t.insert(i, x, v), _this.update()),
11033
- replace: (x, v) => (t.replace(i, x, v), _this.update()),
11034
- append: v => (t.append(i, v), _this.update()),
11035
- prepend: v => (t.prepend(i, v), _this.update()),
11036
- swap: (a, b) => (t.swap(i, a, b), _this.update()),
11037
- fromTo: (a, b) => (t.fromTo(i, a, b), _this.update()),
11038
- method: function (f) {
11039
- if (f === void 0) {
11040
- f = () => ({});
11023
+ return o => {
11024
+ const obj = [o].reduce(function (t, _i, _x, _a, i) {
11025
+ if (i === void 0) {
11026
+ i = t.init(_i);
11027
+ }
11028
+ return {
11029
+ state: i,
11030
+ update: v => (t.update(i, v), _this.update()),
11031
+ remove: v => (t.remove(i, v), _this.update()),
11032
+ clear: () => (t.clear(i), _this.update()),
11033
+ insert: (x, v) => (t.insert(i, x, v), _this.update()),
11034
+ replace: (x, v) => (t.replace(i, x, v), _this.update()),
11035
+ append: v => (t.append(i, v), _this.update()),
11036
+ prepend: v => (t.prepend(i, v), _this.update()),
11037
+ swap: (a, b) => (t.swap(i, a, b), _this.update()),
11038
+ fromTo: (a, b) => (t.fromTo(i, a, b), _this.update()),
11039
+ method: function (f) {
11040
+ if (f === void 0) {
11041
+ f = () => ({});
11042
+ }
11043
+ return f(i), _this.update();
11044
+ },
11045
+ async: function (f) {
11046
+ if (f === void 0) {
11047
+ f = () => Promise.reject(i);
11048
+ }
11049
+ return f(i).then(() => _this.update());
11041
11050
  }
11042
- return f(i), _this.update();
11043
- },
11044
- async: function (f) {
11045
- if (f === void 0) {
11046
- f = () => Promise.reject(i);
11051
+ };
11052
+ }, types.find(i => i.type(o)));
11053
+ obj.length = 12;
11054
+ obj[Symbol.iterator] = function Iterate() {
11055
+ const values = Object.values(this);
11056
+ values.splice(values.indexOf(12), 1);
11057
+ let index = 0;
11058
+ return {
11059
+ next() {
11060
+ if (index < values.length) {
11061
+ const val = values[index];
11062
+ index += 1;
11063
+ return {
11064
+ value: val,
11065
+ done: false
11066
+ };
11067
+ }
11068
+ return {
11069
+ done: true
11070
+ };
11047
11071
  }
11048
- return f(i).then(() => _this.update());
11049
- }
11072
+ };
11050
11073
  };
11051
- }, types.find(i => i.type(o)));
11052
- }
11053
- _getUseState() {
11054
- var _this2 = this;
11055
- return o => [o].reduce(function (t, _i, _x, _a, i) {
11056
- if (i === void 0) {
11057
- i = t.init(_i);
11058
- }
11059
- return [i,
11060
- // state
11061
- v => (t.update(i, v), _this2.update()),
11062
- // update
11063
- v => (t.remove(i, v), _this2.update()),
11064
- // remove
11065
- () => (t.clear(i), _this2.update()),
11066
- // clear
11067
- (x, v) => (t.insert(i, x, v), _this2.update()),
11068
- // insert
11069
- (x, v) => (t.replace(i, x, v), _this2.update()),
11070
- // replace
11071
- v => (t.append(i, v), _this2.update()),
11072
- // append
11073
- v => (t.prepend(i, v), _this2.update()),
11074
- // prepend
11075
- (a, b) => (t.swap(i, a, b), _this2.update()),
11076
- // swap
11077
- (a, b) => (t.fromTo(i, a, b), _this2.update()),
11078
- // fromTo
11079
- function (f) {
11080
- if (f === void 0) {
11081
- f = () => ({});
11082
- }
11083
- return f(i), _this2.update();
11084
- },
11085
- // method
11086
- function (f) {
11087
- if (f === void 0) {
11088
- f = () => Promise.reject(i);
11089
- }
11090
- return f(i).then(() => _this2.update());
11091
- } // async
11092
- ];
11093
- }, types.find(i => i.type(o)));
11074
+ return obj;
11075
+ };
11094
11076
  }
11095
11077
  /* eslint-enable no-sequences */
11096
11078
 
@@ -11110,8 +11092,7 @@
11110
11092
  $store: this.getComponentStore(),
11111
11093
  $ref: this.getComponentRef(),
11112
11094
  $el: {},
11113
- $useState: this.getUseState(),
11114
- $_useState: this._getUseState()
11095
+ $useState: this.getUseState()
11115
11096
  };
11116
11097
  Object.defineProperty(ctx.$el, 'value', {
11117
11098
  get: () => {
@@ -12956,7 +12937,7 @@
12956
12937
  if (!isInset && $el.css('overflow') === 'hidden') {
12957
12938
  const distanceFromCenter = ((center.x - width / 2) ** 2 + (center.y - height / 2) ** 2) ** 0.5;
12958
12939
  const scale = (diameter / 2 + distanceFromCenter) / (diameter / 2);
12959
- ripple.rippleTransform = `translate3d(0px, 0px, 0) scale(${scale})`;
12940
+ ripple.rippleTransform = `translate3d(0px, 0px, 0) scale(${scale * 2})`;
12960
12941
  } else {
12961
12942
  // prettier-ignore
12962
12943
  ripple.rippleTransform = `translate3d(${-center.x + width / 2}px, ${-center.y + height / 2}px, 0) scale(1)`;
@@ -12964,7 +12945,7 @@
12964
12945
  if (isInset) {
12965
12946
  $el.addClass('ripple-inset');
12966
12947
  }
12967
- ripple.$rippleWaveEl = $(`<div class="ripple-wave" style="width: ${diameter}px; height: ${diameter}px; margin-top:-${diameter / 2}px; margin-left:-${diameter / 2}px; left:${center.x}px; top:${center.y}px; --f7-ripple-transform: ${ripple.rippleTransform}"></div>`);
12948
+ ripple.$rippleWaveEl = $(`<div class="ripple-wave${isInset ? ' ripple-wave-inset' : ''}" style="width: ${diameter}px; height: ${diameter}px; margin-top:-${diameter / 2}px; margin-left:-${diameter / 2}px; left:${center.x}px; top:${center.y}px; --f7-ripple-transform: ${ripple.rippleTransform}"></div>`);
12968
12949
  $el.prepend(ripple.$rippleWaveEl);
12969
12950
  ripple.$rippleWaveEl.animationEnd(() => {
12970
12951
  if (!ripple.$rippleWaveEl) return;