framework7 8.0.0-beta.7 → 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 +181 -7
- 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 +174 -1
- package/modules/component/component.d.ts +16 -0
- package/modules/component/parse-component.js +1 -0
- 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
|
},
|
|
@@ -10760,6 +10760,118 @@
|
|
|
10760
10760
|
};
|
|
10761
10761
|
|
|
10762
10762
|
/* eslint no-underscore-dangle: "off" */
|
|
10763
|
+
|
|
10764
|
+
/* eslint-disable no-shadow */
|
|
10765
|
+
/* eslint-disable no-return-assign */
|
|
10766
|
+
/* eslint-disable no-plusplus */
|
|
10767
|
+
/* eslint-disable no-param-reassign */
|
|
10768
|
+
/* eslint-disable no-sequences */
|
|
10769
|
+
const types = [{
|
|
10770
|
+
name: 'array',
|
|
10771
|
+
init: i => i,
|
|
10772
|
+
type: i => [i].find(Array.isArray),
|
|
10773
|
+
update: (i, o) => [o].filter(Array.isArray).find(() => (i.length = 0, i.push(...o))),
|
|
10774
|
+
insert: function (i, x, o) {
|
|
10775
|
+
if (o === void 0) {
|
|
10776
|
+
o = [];
|
|
10777
|
+
}
|
|
10778
|
+
return i.splice(Math.max(x, 0), 0, ...[o].flat());
|
|
10779
|
+
},
|
|
10780
|
+
replace: function (i, x, o) {
|
|
10781
|
+
if (o === void 0) {
|
|
10782
|
+
o = [];
|
|
10783
|
+
}
|
|
10784
|
+
return i.splice(Math.max(x, 0), Math.min(++x, 1), ...[o].flat());
|
|
10785
|
+
},
|
|
10786
|
+
append: function (i, o) {
|
|
10787
|
+
if (o === void 0) {
|
|
10788
|
+
o = [];
|
|
10789
|
+
}
|
|
10790
|
+
return i.push(...[o].flat());
|
|
10791
|
+
},
|
|
10792
|
+
prepend: function (i, o) {
|
|
10793
|
+
if (o === void 0) {
|
|
10794
|
+
o = [];
|
|
10795
|
+
}
|
|
10796
|
+
return i.unshift(...[o].flat());
|
|
10797
|
+
},
|
|
10798
|
+
swap: (i, a, b) => {
|
|
10799
|
+
[i[a], i[b]] = [i[b], i[a]];
|
|
10800
|
+
},
|
|
10801
|
+
fromTo: function (i, a, b) {
|
|
10802
|
+
if (b === void 0) {
|
|
10803
|
+
b = a;
|
|
10804
|
+
}
|
|
10805
|
+
return i.splice(Math.max(b, 0), 0, ...i.splice(Math.max(a, 0), 1));
|
|
10806
|
+
},
|
|
10807
|
+
remove: function (i, o, a) {
|
|
10808
|
+
if (a === void 0) {
|
|
10809
|
+
a = i.map((_, x) => x);
|
|
10810
|
+
}
|
|
10811
|
+
return [o].flat().filter(i => a.includes(i)).sort((a, b) => b - a).forEach(x => i.splice(x, 1));
|
|
10812
|
+
},
|
|
10813
|
+
clear: i => i.length = 0
|
|
10814
|
+
}, {
|
|
10815
|
+
name: 'object',
|
|
10816
|
+
init: i => i,
|
|
10817
|
+
type: i => [i].filter(i => [i !== null, i !== undefined].every(i => i)).find(i => Object.getPrototypeOf(i) === Object.prototype),
|
|
10818
|
+
update: (i, o) => Object.assign(i, o),
|
|
10819
|
+
insert: () => {},
|
|
10820
|
+
replace: () => {},
|
|
10821
|
+
append: () => {},
|
|
10822
|
+
prepend: () => {},
|
|
10823
|
+
swap: () => ({}),
|
|
10824
|
+
// N/A
|
|
10825
|
+
fromTo: () => ({}),
|
|
10826
|
+
// N/A
|
|
10827
|
+
remove: (i, o) => [o].flat().forEach(k => delete i[k]),
|
|
10828
|
+
clear: i => Object.keys(i).forEach(k => delete i[k])
|
|
10829
|
+
}, {
|
|
10830
|
+
name: 'atoms',
|
|
10831
|
+
type: () => true,
|
|
10832
|
+
init: function (i, o) {
|
|
10833
|
+
if (o === void 0) {
|
|
10834
|
+
o = {};
|
|
10835
|
+
}
|
|
10836
|
+
return Object.defineProperty(o, 'value', {
|
|
10837
|
+
get: () => i,
|
|
10838
|
+
set: v => {
|
|
10839
|
+
// eslint-disable-next-line
|
|
10840
|
+
i = v;
|
|
10841
|
+
}
|
|
10842
|
+
}), o;
|
|
10843
|
+
},
|
|
10844
|
+
update: function (i, v) {
|
|
10845
|
+
if (v === void 0) {
|
|
10846
|
+
v = i.value;
|
|
10847
|
+
}
|
|
10848
|
+
i.value = v;
|
|
10849
|
+
},
|
|
10850
|
+
insert: () => ({}),
|
|
10851
|
+
// N/A
|
|
10852
|
+
replace: () => ({}),
|
|
10853
|
+
// N/A
|
|
10854
|
+
append: () => ({}),
|
|
10855
|
+
// N/A
|
|
10856
|
+
prepend: () => ({}),
|
|
10857
|
+
// N/A
|
|
10858
|
+
swap: () => ({}),
|
|
10859
|
+
// N/A
|
|
10860
|
+
fromTo: () => ({}),
|
|
10861
|
+
// N/A
|
|
10862
|
+
remove: () => ({}),
|
|
10863
|
+
// N/A
|
|
10864
|
+
clear: i => {
|
|
10865
|
+
i.value = undefined;
|
|
10866
|
+
}
|
|
10867
|
+
}];
|
|
10868
|
+
|
|
10869
|
+
/* eslint-enable no-shadow */
|
|
10870
|
+
/* eslint-enable no-return-assign */
|
|
10871
|
+
/* eslint-enable no-plusplus */
|
|
10872
|
+
/* eslint-enable no-param-reassign */
|
|
10873
|
+
/* eslint-enable no-sequences */
|
|
10874
|
+
|
|
10763
10875
|
class Component {
|
|
10764
10876
|
constructor(app, component, props, _temp) {
|
|
10765
10877
|
if (props === void 0) {
|
|
@@ -10904,6 +11016,66 @@
|
|
|
10904
11016
|
});
|
|
10905
11017
|
return $store;
|
|
10906
11018
|
}
|
|
11019
|
+
|
|
11020
|
+
/* eslint-disable no-sequences */
|
|
11021
|
+
getUseState() {
|
|
11022
|
+
var _this = this;
|
|
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());
|
|
11050
|
+
}
|
|
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
|
+
};
|
|
11071
|
+
}
|
|
11072
|
+
};
|
|
11073
|
+
};
|
|
11074
|
+
return obj;
|
|
11075
|
+
};
|
|
11076
|
+
}
|
|
11077
|
+
/* eslint-enable no-sequences */
|
|
11078
|
+
|
|
10907
11079
|
getComponentContext(includeHooks) {
|
|
10908
11080
|
const ctx = {
|
|
10909
11081
|
$f7route: this.context.f7route,
|
|
@@ -10919,7 +11091,8 @@
|
|
|
10919
11091
|
$emit: this.emit.bind(this),
|
|
10920
11092
|
$store: this.getComponentStore(),
|
|
10921
11093
|
$ref: this.getComponentRef(),
|
|
10922
|
-
$el: {}
|
|
11094
|
+
$el: {},
|
|
11095
|
+
$useState: this.getUseState()
|
|
10923
11096
|
};
|
|
10924
11097
|
Object.defineProperty(ctx.$el, 'value', {
|
|
10925
11098
|
get: () => {
|
|
@@ -11141,6 +11314,7 @@
|
|
|
11141
11314
|
var $update = $$ctx.$update;
|
|
11142
11315
|
var $store = $$ctx.$store;
|
|
11143
11316
|
var $ref = $$ctx.$ref;
|
|
11317
|
+
var $useState = $$ctx.$useState;
|
|
11144
11318
|
|
|
11145
11319
|
return $h\`${template}\`
|
|
11146
11320
|
}
|
|
@@ -12763,7 +12937,7 @@
|
|
|
12763
12937
|
if (!isInset && $el.css('overflow') === 'hidden') {
|
|
12764
12938
|
const distanceFromCenter = ((center.x - width / 2) ** 2 + (center.y - height / 2) ** 2) ** 0.5;
|
|
12765
12939
|
const scale = (diameter / 2 + distanceFromCenter) / (diameter / 2);
|
|
12766
|
-
ripple.rippleTransform = `translate3d(0px, 0px, 0) scale(${scale})`;
|
|
12940
|
+
ripple.rippleTransform = `translate3d(0px, 0px, 0) scale(${scale * 2})`;
|
|
12767
12941
|
} else {
|
|
12768
12942
|
// prettier-ignore
|
|
12769
12943
|
ripple.rippleTransform = `translate3d(${-center.x + width / 2}px, ${-center.y + height / 2}px, 0) scale(1)`;
|
|
@@ -12771,7 +12945,7 @@
|
|
|
12771
12945
|
if (isInset) {
|
|
12772
12946
|
$el.addClass('ripple-inset');
|
|
12773
12947
|
}
|
|
12774
|
-
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>`);
|
|
12775
12949
|
$el.prepend(ripple.$rippleWaveEl);
|
|
12776
12950
|
ripple.$rippleWaveEl.animationEnd(() => {
|
|
12777
12951
|
if (!ripple.$rippleWaveEl) return;
|