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.
- package/components/actions/actions-md.less +1 -0
- package/components/actions/actions-rtl.css +1 -1
- package/components/actions/actions.css +1 -1
- package/components/actions/actions.less +4 -1
- package/components/button/button-ios.less +3 -0
- package/components/button/button-md.less +1 -4
- package/components/button/button-vars.less +10 -5
- package/components/button/button.less +0 -1
- package/components/data-table/data-table-md.less +0 -1
- package/components/data-table/data-table-rtl.css +1 -1
- package/components/data-table/data-table.css +1 -1
- package/components/dialog/dialog-rtl.css +1 -1
- package/components/dialog/dialog-vars.less +2 -2
- package/components/dialog/dialog.css +1 -1
- package/components/fab/fab-ios.less +1 -0
- package/components/fab/fab-md.less +9 -0
- package/components/fab/fab-rtl.css +1 -1
- package/components/fab/fab-vars.less +5 -1
- package/components/fab/fab.css +1 -1
- package/components/fab/fab.less +0 -3
- package/components/list/list-md.less +5 -0
- package/components/list/list-vars.less +7 -7
- package/components/list/list.less +4 -1
- package/components/navbar/navbar-md.less +0 -1
- package/components/notification/notification-rtl.css +1 -1
- package/components/notification/notification.css +1 -1
- package/components/notification/notification.less +0 -2
- package/components/photo-browser/photo-browser-rtl.css +1 -1
- package/components/photo-browser/photo-browser.css +1 -1
- package/components/photo-browser/photo-browser.less +2 -2
- package/components/searchbar/searchbar-md.less +0 -3
- package/components/searchbar/searchbar-rtl.css +1 -1
- package/components/searchbar/searchbar.css +1 -1
- package/components/searchbar/searchbar.less +5 -1
- package/components/stepper/stepper-md.less +2 -2
- package/components/stepper/stepper-rtl.css +1 -1
- package/components/stepper/stepper-vars.less +2 -1
- package/components/stepper/stepper.css +1 -1
- package/components/subnavbar/subnavbar-md.less +0 -1
- package/components/text-editor/text-editor-md.less +0 -1
- package/components/text-editor/text-editor-rtl.css +1 -1
- package/components/text-editor/text-editor.css +1 -1
- package/components/toast/toast-rtl.css +1 -1
- package/components/toast/toast.css +1 -1
- package/components/toast/toast.less +0 -1
- package/components/toolbar/toolbar-md.less +0 -1
- package/components/touch-ripple/touch-ripple-class.js +2 -2
- package/components/touch-ripple/touch-ripple-vars.less +1 -1
- package/components/touch-ripple/touch-ripple.less +41 -4
- package/framework7-bundle-rtl.css +90 -262
- package/framework7-bundle-rtl.min.css +3 -3
- package/framework7-bundle.css +90 -262
- package/framework7-bundle.esm.js +2 -2
- package/framework7-bundle.js +57 -76
- package/framework7-bundle.js.map +1 -1
- package/framework7-bundle.less +2 -2
- package/framework7-bundle.min.css +3 -3
- package/framework7-bundle.min.js +3 -3
- package/framework7-bundle.min.js.map +1 -1
- package/framework7-lite-bundle.esm.js +2 -2
- package/framework7-lite.esm.js +2 -2
- package/framework7-rtl.css +63 -115
- package/framework7-rtl.min.css +3 -3
- package/framework7.css +63 -115
- package/framework7.esm.js +2 -2
- package/framework7.less +2 -2
- package/framework7.min.css +3 -3
- package/modules/component/component-class.js +51 -70
- package/modules/touch/touch.js +2 -2
- package/package.json +2 -2
package/framework7-bundle.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Framework7 8.0.0-beta.
|
|
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
|
|
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, .
|
|
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, .
|
|
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 =>
|
|
11024
|
-
|
|
11025
|
-
i
|
|
11026
|
-
|
|
11027
|
-
|
|
11028
|
-
|
|
11029
|
-
|
|
11030
|
-
|
|
11031
|
-
|
|
11032
|
-
|
|
11033
|
-
|
|
11034
|
-
|
|
11035
|
-
|
|
11036
|
-
|
|
11037
|
-
|
|
11038
|
-
|
|
11039
|
-
|
|
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
|
-
|
|
11043
|
-
|
|
11044
|
-
|
|
11045
|
-
|
|
11046
|
-
|
|
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
|
-
|
|
11049
|
-
}
|
|
11072
|
+
};
|
|
11050
11073
|
};
|
|
11051
|
-
|
|
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;
|