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
|
@@ -602,7 +602,7 @@ var Searchbar = /*#__PURE__*/function (_FrameworkClass) {
|
|
|
602
602
|
foundItems = sb.virtualList.params.searchAll(vlQuery, sb.virtualList.items) || [];
|
|
603
603
|
} else if (sb.virtualList.params.searchByItem) {
|
|
604
604
|
for (var i = 0; i < sb.virtualList.items.length; i += 1) {
|
|
605
|
-
if (sb.virtualList.params.searchByItem(vlQuery, sb.virtualList.
|
|
605
|
+
if (sb.virtualList.params.searchByItem(vlQuery, sb.virtualList.items[i], i)) {
|
|
606
606
|
foundItems.push(i);
|
|
607
607
|
}
|
|
608
608
|
}
|
|
@@ -336,6 +336,7 @@ var Sheet = /*#__PURE__*/function (_Modal) {
|
|
|
336
336
|
$el.removeClass('modal-in-swipe-step');
|
|
337
337
|
$el.trigger('sheet:stepprogress', 1);
|
|
338
338
|
sheet.emit('local::stepProgress sheetStepProgress', sheet, 1);
|
|
339
|
+
sheet.emit('local::_swipeStep', false);
|
|
339
340
|
$el.trigger('sheet:stepopen');
|
|
340
341
|
sheet.emit('local::stepOpen sheetStepOpen', sheet);
|
|
341
342
|
|
|
@@ -354,6 +355,7 @@ var Sheet = /*#__PURE__*/function (_Modal) {
|
|
|
354
355
|
$el.addClass('modal-in-swipe-step');
|
|
355
356
|
$el.trigger('sheet:stepprogress', 0);
|
|
356
357
|
sheet.emit('local::stepProgress sheetStepProgress', sheet, 0);
|
|
358
|
+
sheet.emit('local::_swipeStep', true);
|
|
357
359
|
$el.trigger('sheet:stepclose');
|
|
358
360
|
sheet.emit('local::stepClose sheetStepClose', sheet);
|
|
359
361
|
|
|
@@ -369,6 +371,7 @@ var Sheet = /*#__PURE__*/function (_Modal) {
|
|
|
369
371
|
$el.addClass('modal-in-swipe-step');
|
|
370
372
|
$el.trigger('sheet:stepprogress', 0);
|
|
371
373
|
sheet.emit('local::stepProgress sheetStepProgress', sheet, 0);
|
|
374
|
+
sheet.emit('local::_swipeStep', true);
|
|
372
375
|
$el.trigger('sheet:stepclose');
|
|
373
376
|
sheet.emit('local::stepClose sheetStepClose', sheet);
|
|
374
377
|
|
|
@@ -390,6 +393,7 @@ var Sheet = /*#__PURE__*/function (_Modal) {
|
|
|
390
393
|
$el.removeClass('modal-in-swipe-step');
|
|
391
394
|
$el.trigger('sheet:stepprogress', 1);
|
|
392
395
|
sheet.emit('local::stepProgress sheetStepProgress', sheet, 1);
|
|
396
|
+
sheet.emit('local::_swipeStep', false);
|
|
393
397
|
$el.trigger('sheet:stepopen');
|
|
394
398
|
sheet.emit('local::stepOpen sheetStepOpen', sheet);
|
|
395
399
|
|
|
@@ -410,6 +414,7 @@ var Sheet = /*#__PURE__*/function (_Modal) {
|
|
|
410
414
|
$el.addClass('modal-in-swipe-step');
|
|
411
415
|
$el.trigger('sheet:stepprogress', 0);
|
|
412
416
|
sheet.emit('local::stepProgress sheetStepProgress', sheet, 0);
|
|
417
|
+
sheet.emit('local::_swipeStep', true);
|
|
413
418
|
$el.trigger('sheet:stepclose');
|
|
414
419
|
sheet.emit('local::stepClose sheetStepClose', sheet);
|
|
415
420
|
|
|
@@ -440,6 +445,7 @@ var Sheet = /*#__PURE__*/function (_Modal) {
|
|
|
440
445
|
|
|
441
446
|
if (!byResize) {
|
|
442
447
|
$el.addClass('modal-in-swipe-step');
|
|
448
|
+
sheet.emit('local::_swipeStep', true);
|
|
443
449
|
}
|
|
444
450
|
};
|
|
445
451
|
|
|
@@ -504,6 +510,7 @@ var Sheet = /*#__PURE__*/function (_Modal) {
|
|
|
504
510
|
sheet.on('close', function () {
|
|
505
511
|
if (sheet.params.swipeToStep) {
|
|
506
512
|
$el.removeClass('modal-in-swipe-step');
|
|
513
|
+
sheet.emit('local::_swipeStep', false);
|
|
507
514
|
app.off('resize', onResize);
|
|
508
515
|
}
|
|
509
516
|
|
|
@@ -535,6 +542,7 @@ var Sheet = /*#__PURE__*/function (_Modal) {
|
|
|
535
542
|
|
|
536
543
|
sheet.stepOpen = function stepOpen() {
|
|
537
544
|
$el.removeClass('modal-in-swipe-step');
|
|
545
|
+
sheet.emit('local::_swipeStep', false);
|
|
538
546
|
|
|
539
547
|
if (sheet.push) {
|
|
540
548
|
if (!pushOffset) {
|
|
@@ -550,6 +558,7 @@ var Sheet = /*#__PURE__*/function (_Modal) {
|
|
|
550
558
|
|
|
551
559
|
sheet.stepClose = function stepClose() {
|
|
552
560
|
$el.addClass('modal-in-swipe-step');
|
|
561
|
+
sheet.emit('local::_swipeStep', true);
|
|
553
562
|
|
|
554
563
|
if (sheet.push) {
|
|
555
564
|
sheet.$htmlEl[0].style.removeProperty('--f7-sheet-push-scale');
|
|
@@ -558,6 +567,7 @@ var Sheet = /*#__PURE__*/function (_Modal) {
|
|
|
558
567
|
|
|
559
568
|
sheet.stepToggle = function stepToggle() {
|
|
560
569
|
$el.toggleClass('modal-in-swipe-step');
|
|
570
|
+
sheet.emit('local::_swipeStep', $el.hasClass('modal-in-swipe-step'));
|
|
561
571
|
};
|
|
562
572
|
|
|
563
573
|
$el[0].f7Modal = sheet;
|
|
@@ -632,8 +632,9 @@ var SmartSelect = /*#__PURE__*/function (_Framework7Class) {
|
|
|
632
632
|
} else {
|
|
633
633
|
var $selectedItemEl = $containerEl.find('input:checked').parents('li');
|
|
634
634
|
if (!$selectedItemEl.length) return ss;
|
|
635
|
-
var $
|
|
636
|
-
|
|
635
|
+
var $scrollableEl = $containerEl.find('.page-content, .popover-inner');
|
|
636
|
+
if (!$scrollableEl.length) return ss;
|
|
637
|
+
$scrollableEl.scrollTop($selectedItemEl.offset().top - $scrollableEl.offset().top - parseInt($scrollableEl.css('padding-top'), 10));
|
|
637
638
|
}
|
|
638
639
|
|
|
639
640
|
return ss;
|
package/esm/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
|
import $ from './shared/dom7';
|
|
@@ -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
|
import $ from './shared/dom7';
|
package/esm/framework7-lite.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
|
import $ from './shared/dom7';
|
package/esm/framework7.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
|
import $ from './shared/dom7';
|
|
@@ -6,12 +6,18 @@ var $jsx = function $jsx(type, props) {
|
|
|
6
6
|
children[_key - 2] = arguments[_key];
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
var flatChildren = flattenArray((children || []).filter(function (child) {
|
|
10
|
+
return ignoreChildren.indexOf(child) < 0;
|
|
11
|
+
}));
|
|
12
|
+
|
|
13
|
+
if (type === 'Fragment') {
|
|
14
|
+
return flatChildren;
|
|
15
|
+
}
|
|
16
|
+
|
|
9
17
|
return {
|
|
10
18
|
type: type,
|
|
11
19
|
props: props || {},
|
|
12
|
-
children:
|
|
13
|
-
return ignoreChildren.indexOf(child) < 0;
|
|
14
|
-
}))
|
|
20
|
+
children: flatChildren
|
|
15
21
|
};
|
|
16
22
|
};
|
|
17
23
|
|
|
@@ -139,6 +139,24 @@ var Component = /*#__PURE__*/function () {
|
|
|
139
139
|
});
|
|
140
140
|
};
|
|
141
141
|
|
|
142
|
+
_proto.getComponentRef = function getComponentRef() {
|
|
143
|
+
var self = this;
|
|
144
|
+
return function (initialValue) {
|
|
145
|
+
var value = initialValue;
|
|
146
|
+
var obj = {};
|
|
147
|
+
Object.defineProperty(obj, 'value', {
|
|
148
|
+
get: function get() {
|
|
149
|
+
return value;
|
|
150
|
+
},
|
|
151
|
+
set: function set(v) {
|
|
152
|
+
value = v;
|
|
153
|
+
self.update();
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
return obj;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
|
|
142
160
|
_proto.getComponentStore = function getComponentStore() {
|
|
143
161
|
var _this2 = this;
|
|
144
162
|
|
|
@@ -183,6 +201,7 @@ var Component = /*#__PURE__*/function () {
|
|
|
183
201
|
$update: this.update.bind(this),
|
|
184
202
|
$emit: this.emit.bind(this),
|
|
185
203
|
$store: this.getComponentStore(),
|
|
204
|
+
$ref: this.getComponentRef(),
|
|
186
205
|
$el: {}
|
|
187
206
|
};
|
|
188
207
|
Object.defineProperty(ctx.$el, 'value', {
|
|
@@ -43,7 +43,7 @@ function parseComponent(componentString) {
|
|
|
43
43
|
if (!scriptContent || !scriptContent.trim()) scriptContent = 'return () => {return $render}'; // Parse Template
|
|
44
44
|
|
|
45
45
|
if (template) {
|
|
46
|
-
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');
|
|
46
|
+
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');
|
|
47
47
|
} // Execute Script
|
|
48
48
|
|
|
49
49
|
|
|
@@ -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
|
/*====================
|