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.
Files changed (70) hide show
  1. package/components/actions/actions-md.less +1 -0
  2. package/components/actions/actions-rtl.css +1 -1
  3. package/components/actions/actions.css +1 -1
  4. package/components/actions/actions.less +4 -1
  5. package/components/button/button-ios.less +3 -0
  6. package/components/button/button-md.less +1 -4
  7. package/components/button/button-vars.less +10 -5
  8. package/components/button/button.less +0 -1
  9. package/components/data-table/data-table-md.less +0 -1
  10. package/components/data-table/data-table-rtl.css +1 -1
  11. package/components/data-table/data-table.css +1 -1
  12. package/components/dialog/dialog-rtl.css +1 -1
  13. package/components/dialog/dialog-vars.less +2 -2
  14. package/components/dialog/dialog.css +1 -1
  15. package/components/fab/fab-ios.less +1 -0
  16. package/components/fab/fab-md.less +9 -0
  17. package/components/fab/fab-rtl.css +1 -1
  18. package/components/fab/fab-vars.less +5 -1
  19. package/components/fab/fab.css +1 -1
  20. package/components/fab/fab.less +0 -3
  21. package/components/list/list-md.less +5 -0
  22. package/components/list/list-vars.less +7 -7
  23. package/components/list/list.less +4 -1
  24. package/components/navbar/navbar-md.less +0 -1
  25. package/components/notification/notification-rtl.css +1 -1
  26. package/components/notification/notification.css +1 -1
  27. package/components/notification/notification.less +0 -2
  28. package/components/photo-browser/photo-browser-rtl.css +1 -1
  29. package/components/photo-browser/photo-browser.css +1 -1
  30. package/components/photo-browser/photo-browser.less +2 -2
  31. package/components/searchbar/searchbar-md.less +0 -3
  32. package/components/searchbar/searchbar-rtl.css +1 -1
  33. package/components/searchbar/searchbar.css +1 -1
  34. package/components/searchbar/searchbar.less +5 -1
  35. package/components/stepper/stepper-md.less +2 -2
  36. package/components/stepper/stepper-rtl.css +1 -1
  37. package/components/stepper/stepper-vars.less +2 -1
  38. package/components/stepper/stepper.css +1 -1
  39. package/components/subnavbar/subnavbar-md.less +0 -1
  40. package/components/text-editor/text-editor-md.less +0 -1
  41. package/components/text-editor/text-editor-rtl.css +1 -1
  42. package/components/text-editor/text-editor.css +1 -1
  43. package/components/toast/toast-rtl.css +1 -1
  44. package/components/toast/toast.css +1 -1
  45. package/components/toast/toast.less +0 -1
  46. package/components/toolbar/toolbar-md.less +0 -1
  47. package/components/touch-ripple/touch-ripple-class.js +2 -2
  48. package/components/touch-ripple/touch-ripple-vars.less +1 -1
  49. package/components/touch-ripple/touch-ripple.less +41 -4
  50. package/framework7-bundle-rtl.css +90 -262
  51. package/framework7-bundle-rtl.min.css +3 -3
  52. package/framework7-bundle.css +90 -262
  53. package/framework7-bundle.esm.js +2 -2
  54. package/framework7-bundle.js +57 -76
  55. package/framework7-bundle.js.map +1 -1
  56. package/framework7-bundle.less +2 -2
  57. package/framework7-bundle.min.css +3 -3
  58. package/framework7-bundle.min.js +3 -3
  59. package/framework7-bundle.min.js.map +1 -1
  60. package/framework7-lite-bundle.esm.js +2 -2
  61. package/framework7-lite.esm.js +2 -2
  62. package/framework7-rtl.css +63 -115
  63. package/framework7-rtl.min.css +3 -3
  64. package/framework7.css +63 -115
  65. package/framework7.esm.js +2 -2
  66. package/framework7.less +2 -2
  67. package/framework7.min.css +3 -3
  68. package/modules/component/component-class.js +51 -70
  69. package/modules/touch/touch.js +2 -2
  70. package/package.json +2 -2
@@ -266,77 +266,59 @@ class Component {
266
266
  /* eslint-disable no-sequences */
267
267
  getUseState() {
268
268
  var _this = this;
269
- return o => [o].reduce(function (t, _i, _x, _a, i) {
270
- if (i === void 0) {
271
- i = t.init(_i);
272
- }
273
- return {
274
- state: i,
275
- update: v => (t.update(i, v), _this.update()),
276
- remove: v => (t.remove(i, v), _this.update()),
277
- clear: () => (t.clear(i), _this.update()),
278
- insert: (x, v) => (t.insert(i, x, v), _this.update()),
279
- replace: (x, v) => (t.replace(i, x, v), _this.update()),
280
- append: v => (t.append(i, v), _this.update()),
281
- prepend: v => (t.prepend(i, v), _this.update()),
282
- swap: (a, b) => (t.swap(i, a, b), _this.update()),
283
- fromTo: (a, b) => (t.fromTo(i, a, b), _this.update()),
284
- method: function (f) {
285
- if (f === void 0) {
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
- return f(i), _this.update();
289
- },
290
- async: function (f) {
291
- if (f === void 0) {
292
- f = () => Promise.reject(i);
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
- return f(i).then(() => _this.update());
295
- }
318
+ };
296
319
  };
297
- }, types.find(i => i.type(o)));
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: () => {
@@ -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, .menu-item, .link, .item-link, .accordion-item-toggle',
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, .menu-item-content, .list.accordion-list .accordion-item-toggle',
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-beta.8",
3
+ "version": "8.0.0-beta.9",
4
4
  "description": "Full featured mobile HTML framework for building iOS & Android apps",
5
5
  "type": "module",
6
6
  "exports": {
@@ -436,5 +436,5 @@
436
436
  "ssr-window": "^4.0.2",
437
437
  "swiper": "^9.1.1"
438
438
  },
439
- "releaseDate": "March 27, 2023"
439
+ "releaseDate": "March 31, 2023"
440
440
  }