framework7 8.0.0-beta.8 → 8.0.0
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/navbar/navbar.less +3 -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/panel/panel-rtl.css +3 -1
- package/components/panel/panel.css +3 -1
- package/components/panel/panel.less +3 -1
- 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 +101 -267
- package/framework7-bundle-rtl.min.css +9 -3
- package/framework7-bundle.css +101 -267
- package/framework7-bundle.esm.js +2 -2
- package/framework7-bundle.js +244 -200
- package/framework7-bundle.js.map +1 -1
- package/framework7-bundle.less +2 -2
- package/framework7-bundle.min.css +9 -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 +69 -117
- package/framework7-rtl.min.css +7 -3
- package/framework7.css +69 -117
- package/framework7.esm.js +2 -2
- package/framework7.less +2 -2
- package/framework7.min.css +7 -3
- package/modules/component/component-class.js +51 -70
- package/modules/touch/touch.js +2 -2
- package/package.json +3 -3
- package/shared/utils.js +2 -1
|
@@ -266,77 +266,59 @@ class Component {
|
|
|
266
266
|
/* eslint-disable no-sequences */
|
|
267
267
|
getUseState() {
|
|
268
268
|
var _this = this;
|
|
269
|
-
return o =>
|
|
270
|
-
|
|
271
|
-
i
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
f
|
|
269
|
+
return o => {
|
|
270
|
+
const obj = [o].reduce(function (t, _i, _x, _a, i) {
|
|
271
|
+
if (i === void 0) {
|
|
272
|
+
i = t.init(_i);
|
|
273
|
+
}
|
|
274
|
+
return {
|
|
275
|
+
state: i,
|
|
276
|
+
update: v => (t.update(i, v), _this.update()),
|
|
277
|
+
remove: v => (t.remove(i, v), _this.update()),
|
|
278
|
+
clear: () => (t.clear(i), _this.update()),
|
|
279
|
+
insert: (x, v) => (t.insert(i, x, v), _this.update()),
|
|
280
|
+
replace: (x, v) => (t.replace(i, x, v), _this.update()),
|
|
281
|
+
append: v => (t.append(i, v), _this.update()),
|
|
282
|
+
prepend: v => (t.prepend(i, v), _this.update()),
|
|
283
|
+
swap: (a, b) => (t.swap(i, a, b), _this.update()),
|
|
284
|
+
fromTo: (a, b) => (t.fromTo(i, a, b), _this.update()),
|
|
285
|
+
method: function (f) {
|
|
286
|
+
if (f === void 0) {
|
|
287
|
+
f = () => ({});
|
|
288
|
+
}
|
|
289
|
+
return f(i), _this.update();
|
|
290
|
+
},
|
|
291
|
+
async: function (f) {
|
|
292
|
+
if (f === void 0) {
|
|
293
|
+
f = () => Promise.reject(i);
|
|
294
|
+
}
|
|
295
|
+
return f(i).then(() => _this.update());
|
|
287
296
|
}
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
297
|
+
};
|
|
298
|
+
}, types.find(i => i.type(o)));
|
|
299
|
+
obj.length = 12;
|
|
300
|
+
obj[Symbol.iterator] = function Iterate() {
|
|
301
|
+
const values = Object.values(this);
|
|
302
|
+
values.splice(values.indexOf(12), 1);
|
|
303
|
+
let index = 0;
|
|
304
|
+
return {
|
|
305
|
+
next() {
|
|
306
|
+
if (index < values.length) {
|
|
307
|
+
const val = values[index];
|
|
308
|
+
index += 1;
|
|
309
|
+
return {
|
|
310
|
+
value: val,
|
|
311
|
+
done: false
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
return {
|
|
315
|
+
done: true
|
|
316
|
+
};
|
|
293
317
|
}
|
|
294
|
-
|
|
295
|
-
}
|
|
318
|
+
};
|
|
296
319
|
};
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
_getUseState() {
|
|
300
|
-
var _this2 = this;
|
|
301
|
-
return o => [o].reduce(function (t, _i, _x, _a, i) {
|
|
302
|
-
if (i === void 0) {
|
|
303
|
-
i = t.init(_i);
|
|
304
|
-
}
|
|
305
|
-
return [i,
|
|
306
|
-
// state
|
|
307
|
-
v => (t.update(i, v), _this2.update()),
|
|
308
|
-
// update
|
|
309
|
-
v => (t.remove(i, v), _this2.update()),
|
|
310
|
-
// remove
|
|
311
|
-
() => (t.clear(i), _this2.update()),
|
|
312
|
-
// clear
|
|
313
|
-
(x, v) => (t.insert(i, x, v), _this2.update()),
|
|
314
|
-
// insert
|
|
315
|
-
(x, v) => (t.replace(i, x, v), _this2.update()),
|
|
316
|
-
// replace
|
|
317
|
-
v => (t.append(i, v), _this2.update()),
|
|
318
|
-
// append
|
|
319
|
-
v => (t.prepend(i, v), _this2.update()),
|
|
320
|
-
// prepend
|
|
321
|
-
(a, b) => (t.swap(i, a, b), _this2.update()),
|
|
322
|
-
// swap
|
|
323
|
-
(a, b) => (t.fromTo(i, a, b), _this2.update()),
|
|
324
|
-
// fromTo
|
|
325
|
-
function (f) {
|
|
326
|
-
if (f === void 0) {
|
|
327
|
-
f = () => ({});
|
|
328
|
-
}
|
|
329
|
-
return f(i), _this2.update();
|
|
330
|
-
},
|
|
331
|
-
// method
|
|
332
|
-
function (f) {
|
|
333
|
-
if (f === void 0) {
|
|
334
|
-
f = () => Promise.reject(i);
|
|
335
|
-
}
|
|
336
|
-
return f(i).then(() => _this2.update());
|
|
337
|
-
} // async
|
|
338
|
-
];
|
|
339
|
-
}, types.find(i => i.type(o)));
|
|
320
|
+
return obj;
|
|
321
|
+
};
|
|
340
322
|
}
|
|
341
323
|
/* eslint-enable no-sequences */
|
|
342
324
|
|
|
@@ -356,8 +338,7 @@ class Component {
|
|
|
356
338
|
$store: this.getComponentStore(),
|
|
357
339
|
$ref: this.getComponentRef(),
|
|
358
340
|
$el: {},
|
|
359
|
-
$useState: this.getUseState()
|
|
360
|
-
$_useState: this._getUseState()
|
|
341
|
+
$useState: this.getUseState()
|
|
361
342
|
};
|
|
362
343
|
Object.defineProperty(ctx.$el, 'value', {
|
|
363
344
|
get: () => {
|
package/modules/touch/touch.js
CHANGED
|
@@ -454,11 +454,11 @@ export default {
|
|
|
454
454
|
tapHoldPreventClicks: true,
|
|
455
455
|
// Active State
|
|
456
456
|
activeState: true,
|
|
457
|
-
activeStateElements: 'a, button, label, span, .actions-button, .stepper-button, .stepper-button-plus, .stepper-button-minus, .card-expandable, .
|
|
457
|
+
activeStateElements: 'a, button, label, span, .actions-button, .stepper-button, .stepper-button-plus, .stepper-button-minus, .card-expandable, .link, .item-link, .accordion-item-toggle',
|
|
458
458
|
activeStateOnMouseMove: false,
|
|
459
459
|
mdTouchRipple: true,
|
|
460
460
|
iosTouchRipple: false,
|
|
461
|
-
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, .
|
|
461
|
+
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',
|
|
462
462
|
touchRippleInsetElements: '.ripple-inset, .icon-only, .searchbar-disable-button, .input-clear-button, .notification-close-button, .md .navbar .link.back'
|
|
463
463
|
}
|
|
464
464
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "framework7",
|
|
3
|
-
"version": "8.0.0
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "Full featured mobile HTML framework for building iOS & Android apps",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -434,7 +434,7 @@
|
|
|
434
434
|
"path-to-regexp": "^6.2.0",
|
|
435
435
|
"skeleton-elements": "^4.0.1",
|
|
436
436
|
"ssr-window": "^4.0.2",
|
|
437
|
-
"swiper": "^9.
|
|
437
|
+
"swiper": "^9.2.0"
|
|
438
438
|
},
|
|
439
|
-
"releaseDate": "
|
|
439
|
+
"releaseDate": "April 3, 2023"
|
|
440
440
|
}
|
package/shared/utils.js
CHANGED
|
@@ -179,8 +179,9 @@ export function serializeObject(obj, parents) {
|
|
|
179
179
|
} else if (typeof obj[prop] !== 'undefined' && obj[prop] !== '') {
|
|
180
180
|
// Should be string or plain value
|
|
181
181
|
resultArray.push(`${varName(prop)}=${varValue(obj[prop])}`);
|
|
182
|
-
} else if (obj[prop] === '') resultArray.push(varName(prop));
|
|
182
|
+
} else if (obj[prop] === '') resultArray.push(varName(prop)); // eslint-disable-line
|
|
183
183
|
});
|
|
184
|
+
|
|
184
185
|
return resultArray.join(separator);
|
|
185
186
|
}
|
|
186
187
|
export function isObject(o) {
|