framework7 6.3.3 → 6.3.7
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/cjs/components/actions/actions-class.js +1 -0
- package/cjs/components/searchbar/searchbar-class.js +1 -1
- package/cjs/components/sheet/sheet-class.js +10 -0
- package/cjs/components/smart-select/smart-select-class.js +3 -2
- package/cjs/framework7-bundle.js +2 -2
- package/cjs/framework7-lite-bundle.js +2 -2
- package/cjs/framework7-lite.js +2 -2
- package/cjs/framework7.js +2 -2
- package/cjs/modules/component/$jsx.js +9 -3
- package/cjs/modules/component/component-class.js +19 -0
- package/cjs/modules/component/parse-component.js +1 -1
- package/components/actions/actions.js +1 -1
- package/components/gauge/gauge.d.ts +2 -2
- package/components/searchbar/searchbar.js +1 -1
- package/components/sheet/sheet.js +1 -1
- package/components/smart-select/smart-select.js +1 -1
- package/esm/components/actions/actions-class.js +1 -0
- package/esm/components/searchbar/searchbar-class.js +1 -1
- package/esm/components/sheet/sheet-class.js +10 -0
- package/esm/components/smart-select/smart-select-class.js +3 -2
- package/esm/framework7-bundle.js +2 -2
- package/esm/framework7-lite-bundle.js +2 -2
- package/esm/framework7-lite.js +2 -2
- package/esm/framework7.js +2 -2
- package/esm/modules/component/$jsx.js +9 -3
- package/esm/modules/component/component-class.js +19 -0
- package/esm/modules/component/parse-component.js +1 -1
- package/framework7-bundle-rtl.css +2 -2
- package/framework7-bundle-rtl.min.css +2 -2
- package/framework7-bundle.css +2 -2
- package/framework7-bundle.js +46 -9
- package/framework7-bundle.js.map +1 -1
- package/framework7-bundle.less +2 -2
- package/framework7-bundle.min.css +2 -2
- package/framework7-bundle.min.js +3 -3
- package/framework7-bundle.min.js.map +1 -1
- package/framework7-rtl.css +2 -2
- package/framework7-rtl.min.css +2 -2
- package/framework7.css +2 -2
- package/framework7.js +22 -3
- package/framework7.js.map +1 -1
- package/framework7.less +2 -2
- package/framework7.min.css +2 -2
- package/framework7.min.js +3 -3
- package/framework7.min.js.map +1 -1
- package/modules/component/component.d.ts +2 -0
- package/package.json +1 -1
- package/types/components/gauge/gauge.d.ts +2 -2
- package/types/modules/component/component.d.ts +2 -0
package/framework7-bundle.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Framework7 6.3.
|
|
2
|
+
* Framework7 6.3.7
|
|
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:
|
|
10
|
+
* Released on: October 28, 2021
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
/*====================
|
package/framework7-bundle.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Framework7 6.3.
|
|
2
|
+
* Framework7 6.3.7
|
|
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:
|
|
10
|
+
* Released on: October 28, 2021
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
(function (global, factory) {
|
|
@@ -13903,6 +13903,24 @@
|
|
|
13903
13903
|
});
|
|
13904
13904
|
};
|
|
13905
13905
|
|
|
13906
|
+
_proto.getComponentRef = function getComponentRef() {
|
|
13907
|
+
var self = this;
|
|
13908
|
+
return function (initialValue) {
|
|
13909
|
+
var value = initialValue;
|
|
13910
|
+
var obj = {};
|
|
13911
|
+
Object.defineProperty(obj, 'value', {
|
|
13912
|
+
get: function get() {
|
|
13913
|
+
return value;
|
|
13914
|
+
},
|
|
13915
|
+
set: function set(v) {
|
|
13916
|
+
value = v;
|
|
13917
|
+
self.update();
|
|
13918
|
+
}
|
|
13919
|
+
});
|
|
13920
|
+
return obj;
|
|
13921
|
+
};
|
|
13922
|
+
};
|
|
13923
|
+
|
|
13906
13924
|
_proto.getComponentStore = function getComponentStore() {
|
|
13907
13925
|
var _this2 = this;
|
|
13908
13926
|
|
|
@@ -13947,6 +13965,7 @@
|
|
|
13947
13965
|
$update: this.update.bind(this),
|
|
13948
13966
|
$emit: this.emit.bind(this),
|
|
13949
13967
|
$store: this.getComponentStore(),
|
|
13968
|
+
$ref: this.getComponentRef(),
|
|
13950
13969
|
$el: {}
|
|
13951
13970
|
};
|
|
13952
13971
|
Object.defineProperty(ctx.$el, 'value', {
|
|
@@ -14204,7 +14223,7 @@
|
|
|
14204
14223
|
if (!scriptContent || !scriptContent.trim()) scriptContent = 'return () => {return $render}'; // Parse Template
|
|
14205
14224
|
|
|
14206
14225
|
if (template) {
|
|
14207
|
-
scriptContent = scriptContent.replace('$render', "function ($$ctx) {\n var $ = $$ctx.$$;\n var $h = $$ctx.$h;\n var $root = $$ctx.$root;\n var $f7 = $$ctx.$f7;\n var $f7route = $$ctx.$f7route;\n var $f7router = $$ctx.$f7router;\n var $theme = $$ctx.$theme;\n var $update = $$ctx.$update;\n var $store = $$ctx.$store;\n\n return $h`" + template + "`\n }\n ").replace(/export default/g, 'return');
|
|
14226
|
+
scriptContent = scriptContent.replace('$render', "function ($$ctx) {\n var $ = $$ctx.$$;\n var $h = $$ctx.$h;\n var $root = $$ctx.$root;\n var $f7 = $$ctx.$f7;\n var $f7route = $$ctx.$f7route;\n var $f7router = $$ctx.$f7router;\n var $theme = $$ctx.$theme;\n var $update = $$ctx.$update;\n var $store = $$ctx.$store;\n var $ref = $$ctx.$ref;\n\n return $h`" + template + "`\n }\n ").replace(/export default/g, 'return');
|
|
14208
14227
|
} // Execute Script
|
|
14209
14228
|
|
|
14210
14229
|
|
|
@@ -14235,12 +14254,18 @@
|
|
|
14235
14254
|
children[_key - 2] = arguments[_key];
|
|
14236
14255
|
}
|
|
14237
14256
|
|
|
14257
|
+
var flatChildren = flattenArray((children || []).filter(function (child) {
|
|
14258
|
+
return ignoreChildren.indexOf(child) < 0;
|
|
14259
|
+
}));
|
|
14260
|
+
|
|
14261
|
+
if (type === 'Fragment') {
|
|
14262
|
+
return flatChildren;
|
|
14263
|
+
}
|
|
14264
|
+
|
|
14238
14265
|
return {
|
|
14239
14266
|
type: type,
|
|
14240
14267
|
props: props || {},
|
|
14241
|
-
children:
|
|
14242
|
-
return ignoreChildren.indexOf(child) < 0;
|
|
14243
|
-
}))
|
|
14268
|
+
children: flatChildren
|
|
14244
14269
|
};
|
|
14245
14270
|
};
|
|
14246
14271
|
|
|
@@ -18065,6 +18090,7 @@
|
|
|
18065
18090
|
|
|
18066
18091
|
if (convertToPopover && actions.popoverHtml) {
|
|
18067
18092
|
popover = app.popover.create({
|
|
18093
|
+
containerEl: actions.params.containerEl,
|
|
18068
18094
|
content: actions.popoverHtml,
|
|
18069
18095
|
backdrop: actions.params.backdrop,
|
|
18070
18096
|
targetEl: targetEl,
|
|
@@ -18683,6 +18709,7 @@
|
|
|
18683
18709
|
$el.removeClass('modal-in-swipe-step');
|
|
18684
18710
|
$el.trigger('sheet:stepprogress', 1);
|
|
18685
18711
|
sheet.emit('local::stepProgress sheetStepProgress', sheet, 1);
|
|
18712
|
+
sheet.emit('local::_swipeStep', false);
|
|
18686
18713
|
$el.trigger('sheet:stepopen');
|
|
18687
18714
|
sheet.emit('local::stepOpen sheetStepOpen', sheet);
|
|
18688
18715
|
|
|
@@ -18701,6 +18728,7 @@
|
|
|
18701
18728
|
$el.addClass('modal-in-swipe-step');
|
|
18702
18729
|
$el.trigger('sheet:stepprogress', 0);
|
|
18703
18730
|
sheet.emit('local::stepProgress sheetStepProgress', sheet, 0);
|
|
18731
|
+
sheet.emit('local::_swipeStep', true);
|
|
18704
18732
|
$el.trigger('sheet:stepclose');
|
|
18705
18733
|
sheet.emit('local::stepClose sheetStepClose', sheet);
|
|
18706
18734
|
|
|
@@ -18716,6 +18744,7 @@
|
|
|
18716
18744
|
$el.addClass('modal-in-swipe-step');
|
|
18717
18745
|
$el.trigger('sheet:stepprogress', 0);
|
|
18718
18746
|
sheet.emit('local::stepProgress sheetStepProgress', sheet, 0);
|
|
18747
|
+
sheet.emit('local::_swipeStep', true);
|
|
18719
18748
|
$el.trigger('sheet:stepclose');
|
|
18720
18749
|
sheet.emit('local::stepClose sheetStepClose', sheet);
|
|
18721
18750
|
|
|
@@ -18737,6 +18766,7 @@
|
|
|
18737
18766
|
$el.removeClass('modal-in-swipe-step');
|
|
18738
18767
|
$el.trigger('sheet:stepprogress', 1);
|
|
18739
18768
|
sheet.emit('local::stepProgress sheetStepProgress', sheet, 1);
|
|
18769
|
+
sheet.emit('local::_swipeStep', false);
|
|
18740
18770
|
$el.trigger('sheet:stepopen');
|
|
18741
18771
|
sheet.emit('local::stepOpen sheetStepOpen', sheet);
|
|
18742
18772
|
|
|
@@ -18757,6 +18787,7 @@
|
|
|
18757
18787
|
$el.addClass('modal-in-swipe-step');
|
|
18758
18788
|
$el.trigger('sheet:stepprogress', 0);
|
|
18759
18789
|
sheet.emit('local::stepProgress sheetStepProgress', sheet, 0);
|
|
18790
|
+
sheet.emit('local::_swipeStep', true);
|
|
18760
18791
|
$el.trigger('sheet:stepclose');
|
|
18761
18792
|
sheet.emit('local::stepClose sheetStepClose', sheet);
|
|
18762
18793
|
|
|
@@ -18787,6 +18818,7 @@
|
|
|
18787
18818
|
|
|
18788
18819
|
if (!byResize) {
|
|
18789
18820
|
$el.addClass('modal-in-swipe-step');
|
|
18821
|
+
sheet.emit('local::_swipeStep', true);
|
|
18790
18822
|
}
|
|
18791
18823
|
};
|
|
18792
18824
|
|
|
@@ -18851,6 +18883,7 @@
|
|
|
18851
18883
|
sheet.on('close', function () {
|
|
18852
18884
|
if (sheet.params.swipeToStep) {
|
|
18853
18885
|
$el.removeClass('modal-in-swipe-step');
|
|
18886
|
+
sheet.emit('local::_swipeStep', false);
|
|
18854
18887
|
app.off('resize', onResize);
|
|
18855
18888
|
}
|
|
18856
18889
|
|
|
@@ -18882,6 +18915,7 @@
|
|
|
18882
18915
|
|
|
18883
18916
|
sheet.stepOpen = function stepOpen() {
|
|
18884
18917
|
$el.removeClass('modal-in-swipe-step');
|
|
18918
|
+
sheet.emit('local::_swipeStep', false);
|
|
18885
18919
|
|
|
18886
18920
|
if (sheet.push) {
|
|
18887
18921
|
if (!pushOffset) {
|
|
@@ -18897,6 +18931,7 @@
|
|
|
18897
18931
|
|
|
18898
18932
|
sheet.stepClose = function stepClose() {
|
|
18899
18933
|
$el.addClass('modal-in-swipe-step');
|
|
18934
|
+
sheet.emit('local::_swipeStep', true);
|
|
18900
18935
|
|
|
18901
18936
|
if (sheet.push) {
|
|
18902
18937
|
sheet.$htmlEl[0].style.removeProperty('--f7-sheet-push-scale');
|
|
@@ -18905,6 +18940,7 @@
|
|
|
18905
18940
|
|
|
18906
18941
|
sheet.stepToggle = function stepToggle() {
|
|
18907
18942
|
$el.toggleClass('modal-in-swipe-step');
|
|
18943
|
+
sheet.emit('local::_swipeStep', $el.hasClass('modal-in-swipe-step'));
|
|
18908
18944
|
};
|
|
18909
18945
|
|
|
18910
18946
|
$el[0].f7Modal = sheet;
|
|
@@ -26679,8 +26715,9 @@
|
|
|
26679
26715
|
} else {
|
|
26680
26716
|
var $selectedItemEl = $containerEl.find('input:checked').parents('li');
|
|
26681
26717
|
if (!$selectedItemEl.length) return ss;
|
|
26682
|
-
var $
|
|
26683
|
-
|
|
26718
|
+
var $scrollableEl = $containerEl.find('.page-content, .popover-inner');
|
|
26719
|
+
if (!$scrollableEl.length) return ss;
|
|
26720
|
+
$scrollableEl.scrollTop($selectedItemEl.offset().top - $scrollableEl.offset().top - parseInt($scrollableEl.css('padding-top'), 10));
|
|
26684
26721
|
}
|
|
26685
26722
|
|
|
26686
26723
|
return ss;
|
|
@@ -32971,7 +33008,7 @@
|
|
|
32971
33008
|
foundItems = sb.virtualList.params.searchAll(vlQuery, sb.virtualList.items) || [];
|
|
32972
33009
|
} else if (sb.virtualList.params.searchByItem) {
|
|
32973
33010
|
for (var i = 0; i < sb.virtualList.items.length; i += 1) {
|
|
32974
|
-
if (sb.virtualList.params.searchByItem(vlQuery, sb.virtualList.
|
|
33011
|
+
if (sb.virtualList.params.searchByItem(vlQuery, sb.virtualList.items[i], i)) {
|
|
32975
33012
|
foundItems.push(i);
|
|
32976
33013
|
}
|
|
32977
33014
|
}
|