framework7 8.0.1 → 8.0.3

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 (49) hide show
  1. package/components/app/app.less +19 -1
  2. package/components/calendar/calendar-class.js +4 -4
  3. package/components/card/card.js +4 -4
  4. package/components/dialog/dialog-rtl.css +1 -1
  5. package/components/dialog/dialog-vars.less +1 -6
  6. package/components/dialog/dialog.css +1 -1
  7. package/components/fab/fab-rtl.css +1 -1
  8. package/components/fab/fab-vars.less +9 -10
  9. package/components/fab/fab.css +1 -1
  10. package/components/input/input-rtl.css +1 -1
  11. package/components/input/input-vars.less +1 -2
  12. package/components/input/input.css +1 -1
  13. package/components/input/input.less +0 -3
  14. package/components/messagebar/messagebar-rtl.css +1 -1
  15. package/components/messagebar/messagebar-vars.less +3 -0
  16. package/components/messagebar/messagebar.css +1 -1
  17. package/components/messagebar/messagebar.less +3 -0
  18. package/components/popup/popup-class.js +4 -3
  19. package/components/pull-to-refresh/pull-to-refresh-class.js +3 -1
  20. package/components/searchbar/searchbar-rtl.css +1 -1
  21. package/components/searchbar/searchbar-vars.less +1 -1
  22. package/components/searchbar/searchbar.css +1 -1
  23. package/components/sheet/sheet-class.js +2 -2
  24. package/components/text-editor/text-editor-rtl.css +1 -1
  25. package/components/text-editor/text-editor-vars.less +3 -2
  26. package/components/text-editor/text-editor.css +1 -1
  27. package/framework7-bundle-rtl.css +41 -25
  28. package/framework7-bundle-rtl.min.css +5 -5
  29. package/framework7-bundle.css +41 -25
  30. package/framework7-bundle.esm.js +2 -2
  31. package/framework7-bundle.js +101 -60
  32. package/framework7-bundle.js.map +1 -1
  33. package/framework7-bundle.less +2 -2
  34. package/framework7-bundle.min.css +5 -5
  35. package/framework7-bundle.min.js +3 -3
  36. package/framework7-bundle.min.js.map +1 -1
  37. package/framework7-lite-bundle.esm.js +2 -2
  38. package/framework7-lite.esm.js +2 -2
  39. package/framework7-rtl.css +21 -2
  40. package/framework7-rtl.min.css +3 -3
  41. package/framework7.css +21 -2
  42. package/framework7.esm.js +2 -2
  43. package/framework7.less +2 -2
  44. package/framework7.min.css +3 -3
  45. package/modules/router/swipe-back.js +4 -1
  46. package/modules/touch/touch.js +3 -0
  47. package/package.json +2 -2
  48. package/shared/material-color-utils.js +73 -41
  49. package/shared/utils.js +2 -2
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Framework7 8.0.1
2
+ * Framework7 8.0.3
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: April 6, 2023
10
+ * Released on: April 17, 2023
11
11
  */
12
12
 
13
13
  /*====================
@@ -138,6 +138,9 @@
138
138
  font-weight: 400;
139
139
  font-style: normal;
140
140
  }
141
+ html {
142
+ overscroll-behavior: none;
143
+ }
141
144
  html,
142
145
  body,
143
146
  .framework7-root {
@@ -152,6 +155,7 @@ body {
152
155
  width: 100%;
153
156
  background: #fff;
154
157
  overflow: hidden;
158
+ overflow-y: scroll;
155
159
  -webkit-text-size-adjust: 100%;
156
160
  -webkit-font-smoothing: antialiased;
157
161
  font-family: var(--f7-font-family);
@@ -159,6 +163,21 @@ body {
159
163
  line-height: var(--f7-line-height);
160
164
  color: var(--f7-text-color);
161
165
  }
166
+ body::-webkit-scrollbar {
167
+ width: 0px;
168
+ background: transparent;
169
+ position: relative;
170
+ }
171
+ body::-webkit-scrollbar-track {
172
+ box-shadow: none;
173
+ background: transparent;
174
+ }
175
+ body::-webkit-scrollbar-thumb {
176
+ background-color: transparent;
177
+ outline: none;
178
+ border-radius: 9999px;
179
+ position: relative;
180
+ }
162
181
  .dark body,
163
182
  body.dark {
164
183
  background: #000;
@@ -5275,11 +5294,6 @@ i.icon {
5275
5294
  --f7-dialog-input-border-width: 0px;
5276
5295
  --f7-dialog-preloader-size: 32px;
5277
5296
  --f7-dialog-input-bg-color: transparent;
5278
- --f7-dialog-input-placeholder-color: rgba(0, 0, 0, 0.35);
5279
- }
5280
- .md .dark,
5281
- .md.dark {
5282
- --f7-dialog-input-placeholder-color: rgba(255, 255, 255, 0.54);
5283
5297
  }
5284
5298
  .md,
5285
5299
  .md .dark,
@@ -5289,6 +5303,7 @@ i.icon {
5289
5303
  --f7-dialog-button-strong-text-color: var(--f7-md-on-primary);
5290
5304
  --f7-dialog-button-strong-pressed-bg-color: transparent;
5291
5305
  --f7-dialog-bg-color: var(--f7-md-surface-3);
5306
+ --f7-dialog-input-placeholder-color: var(--f7-md-on-surface-variant);
5292
5307
  --f7-dialog-text-color: var(--f7-md-on-surface-variant);
5293
5308
  --f7-dialog-title-text-color: var(--f7-md-on-surface);
5294
5309
  }
@@ -10196,17 +10211,16 @@ html.with-modal-sheet-push-closing .framework7-root > .panel-in.panel-push.panel
10196
10211
  */
10197
10212
  --f7-floating-label-scale: calc(16 / 12);
10198
10213
  --f7-input-clear-button-size: 24px;
10199
- --f7-input-placeholder-color: rgba(0, 0, 0, 0.35);
10200
10214
  --f7-input-info-text-color: rgba(0, 0, 0, 0.45);
10201
10215
  }
10202
10216
  .md .dark,
10203
10217
  .md.dark {
10204
- --f7-input-placeholder-color: rgba(255, 255, 255, 0.35);
10205
10218
  --f7-input-info-text-color: rgba(255, 255, 255, 0.45);
10206
10219
  }
10207
10220
  .md,
10208
10221
  .md .dark,
10209
10222
  .md [class*='color-'] {
10223
+ --f7-input-placeholder-color: var(--f7-md-on-surface-variant);
10210
10224
  --f7-input-item-bg-color: var(--f7-md-surface-variant);
10211
10225
  --f7-input-border-color: var(--f7-md-outline);
10212
10226
  --f7-input-clear-button-color: var(--f7-md-on-surface-variant);
@@ -10356,9 +10370,6 @@ textarea:-webkit-autofill-and-obscured {
10356
10370
  .list textarea.resizable {
10357
10371
  height: calc(var(--f7-input-height) + var(--f7-textarea-padding-vertical) * 2);
10358
10372
  }
10359
- .list input[type='datetime-local'] {
10360
- max-width: 50vw;
10361
- }
10362
10373
  .list input[type='time'],
10363
10374
  .list input[type='date'],
10364
10375
  .list input[type='month'],
@@ -14390,20 +14401,20 @@ table.data-table {
14390
14401
  :root {
14391
14402
  --f7-fab-margin: 16px;
14392
14403
  --f7-fab-extended-text-font-size: 14px;
14393
- --f7-fab-extended-text-padding: 0 20px;
14394
14404
  --f7-fab-label-padding: 4px 12px;
14395
14405
  --f7-fab-label-font-size: inherit;
14396
14406
  --f7-fab-button-size: 40px;
14397
- /* --f7-fab-bg-color: var(--f7-theme-color)); */
14398
14407
  }
14399
14408
  .ios {
14400
14409
  /* --f7-fab-pressed-bg-color: var(--f7-theme-color-shade); */
14410
+ /* --f7-fab-bg-color: var(--f7-theme-color)); */
14401
14411
  --f7-fab-text-color: #fff;
14402
14412
  --f7-fab-border-radius: 50px;
14403
14413
  --f7-fab-size: 50px;
14404
14414
  --f7-fab-box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4);
14405
14415
  --f7-fab-extended-text-transform: uppercase;
14406
14416
  --f7-fab-extended-size: 50px;
14417
+ --f7-fab-extended-text-padding: 0 20px;
14407
14418
  --f7-fab-extended-text-font-weight: 600;
14408
14419
  --f7-fab-extended-text-letter-spacing: 0;
14409
14420
  --f7-fab-label-border-radius: 4px;
@@ -14417,22 +14428,20 @@ table.data-table {
14417
14428
  */
14418
14429
  --f7-fab-border-radius: 16px;
14419
14430
  --f7-fab-size: 56px;
14420
- --f7-fab-box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),
14421
- 0px 6px 10px 0px rgba(0, 0, 0, 0.14),
14422
- 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
14423
- --f7-fab-extended-size: 48px;
14431
+ --f7-fab-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.25);
14432
+ --f7-fab-extended-size: 56px;
14433
+ --f7-fab-extended-text-padding: 0 16px;
14424
14434
  --f7-fab-extended-text-font-weight: 500;
14425
14435
  --f7-fab-extended-text-letter-spacing: 0;
14426
14436
  --f7-fab-extended-text-transform: none;
14427
14437
  --f7-fab-label-border-radius: 8px;
14428
- --f7-fab-label-box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2),
14429
- 0px 3px 4px 0px rgba(0, 0, 0, 0.14),
14430
- 0px 1px 8px 0px rgba(0, 0, 0, 0.12);
14438
+ --f7-fab-label-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.25);
14431
14439
  }
14432
14440
  .md,
14433
14441
  .md .dark,
14434
14442
  .md [class*='color-'] {
14435
- --f7-fab-text-color: var(--f7-md-on-primary);
14443
+ --f7-fab-bg-color: var(--f7-md-primary-container);
14444
+ --f7-fab-text-color: var(--f7-md-on-primary-container);
14436
14445
  --f7-fab-label-text-color: var(--f7-md-on-surface);
14437
14446
  --f7-fab-label-bg-color: var(--f7-md-surface-5);
14438
14447
  }
@@ -14952,10 +14961,10 @@ table.data-table {
14952
14961
  }
14953
14962
  .ios .dark,
14954
14963
  .ios.dark {
14964
+ --f7-searchbar-placeholder-color: rgba(255, 255, 255, 0.4);
14955
14965
  --f7-searchbar-input-text-color: #fff;
14956
14966
  --f7-searchbar-search-icon-color: rgba(255, 255, 255, 0.4);
14957
14967
  --f7-searchbar-input-bg-color: #2a2a2a;
14958
- --f7-searchbar-placeholder-color: rgba(255, 255, 255, 0.4);
14959
14968
  }
14960
14969
  .md {
14961
14970
  --f7-searchbar-border-color: transparent;
@@ -16036,6 +16045,7 @@ table.data-table {
16036
16045
  --f7-messagebar-attachment-border-radius: 12px;
16037
16046
  --f7-messagebar-attachment-height: 155px;
16038
16047
  --f7-messagebar-attachment-landscape-height: 120px;
16048
+ --f7-messagebar-textarea-placeholder-color: rgba(0, 0, 0, 0.4);
16039
16049
  --f7-messagebar-textarea-text-color: #000;
16040
16050
  --f7-messagebar-textarea-border: 1px solid #c8c8cd;
16041
16051
  --f7-messagebar-attachments-border-color: #c8c8cd;
@@ -16044,6 +16054,7 @@ table.data-table {
16044
16054
  }
16045
16055
  .ios .dark,
16046
16056
  .ios.dark {
16057
+ --f7-messagebar-textarea-placeholder-color: rgba(255, 255, 255, 0.4);
16047
16058
  --f7-messagebar-textarea-text-color: #fff;
16048
16059
  --f7-messagebar-textarea-border: 1px solid var(--f7-bars-border-color);
16049
16060
  --f7-messagebar-attachments-border-color: var(--f7-bars-border-color);
@@ -16068,6 +16079,7 @@ table.data-table {
16068
16079
  .md,
16069
16080
  .md .dark,
16070
16081
  .md [class*='color-'] {
16082
+ --f7-messagebar-textarea-placeholder-color: var(--f7-md-on-surface-variant);
16071
16083
  --f7-messagebar-textarea-bg-color: var(--f7-md-surface-variant);
16072
16084
  --f7-messagebar-bg-color: var(--f7-md-surface);
16073
16085
  --f7-messagebar-textarea-text-color: var(--f7-md-on-surface);
@@ -16141,6 +16153,9 @@ table.data-table {
16141
16153
  line-height: var(--f7-messagebar-textarea-line-height);
16142
16154
  border: var(--f7-messagebar-textarea-border);
16143
16155
  }
16156
+ .messagebar textarea::placeholder {
16157
+ color: var(--f7-messagebar-textarea-placeholder-color);
16158
+ }
16144
16159
  .messagebar a.link {
16145
16160
  align-self: flex-end;
16146
16161
  flex-shrink: 0;
@@ -18776,18 +18791,17 @@ a.treeview-item-root.active-state {
18776
18791
  --f7-text-editor-text-color: #000;
18777
18792
  --f7-text-editor-bg-color: #fff;
18778
18793
  --f7-text-editor-button-divider-color: rgba(0, 0, 0, 0.15);
18779
- --f7-text-editor-placeholder-color: rgba(0, 0, 0, 0.35);
18780
18794
  }
18781
18795
  :root .dark,
18782
18796
  :root.dark {
18783
18797
  --f7-text-editor-bg-color: #121212;
18784
18798
  --f7-text-editor-text-color: #fff;
18785
- --f7-text-editor-placeholder-color: rgba(255, 255, 255, 0.35);
18786
18799
  --f7-text-editor-button-divider-color: rgba(255, 255, 255, 0.15);
18787
18800
  }
18788
18801
  .ios {
18789
18802
  --f7-text-editor-toolbar-padding: 6px;
18790
18803
  --f7-text-editor-button-border-radius: 2px;
18804
+ --f7-text-editor-placeholder-color: rgba(0, 0, 0, 0.35);
18791
18805
  --f7-text-editor-toolbar-border-color: rgba(0, 0, 0, 0.25);
18792
18806
  --f7-text-editor-toolbar-bg-color: #fff;
18793
18807
  --f7-text-editor-border-color: rgba(0, 0, 0, 0.1);
@@ -18795,6 +18809,7 @@ a.treeview-item-root.active-state {
18795
18809
  }
18796
18810
  .ios .dark,
18797
18811
  .ios.dark {
18812
+ --f7-text-editor-placeholder-color: rgba(255, 255, 255, 0.35);
18798
18813
  --f7-text-editor-toolbar-bg-color: #121212;
18799
18814
  --f7-text-editor-toolbar-border-color: rgba(255, 255, 255, 0.1);
18800
18815
  --f7-text-editor-toolbar-bg-color: #202020;
@@ -18808,6 +18823,7 @@ a.treeview-item-root.active-state {
18808
18823
  .md,
18809
18824
  .md .dark,
18810
18825
  .md [class*='color-'] {
18826
+ --f7-text-editor-placeholder-color: var(--f7-md-on-surface-variant);
18811
18827
  --f7-text-editor-toolbar-bg-color: var(--f7-md-surface-1);
18812
18828
  --f7-text-editor-border-color: var(--f7-md-outline);
18813
18829
  --f7-text-editor-button-text-color: var(--f7-md-on-surface);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Framework7 8.0.1
2
+ * Framework7 8.0.3
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: April 6, 2023
10
+ * Released on: April 17, 2023
11
11
  */
12
12
 
13
13
  import $ from './shared/dom7.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Framework7 8.0.1
2
+ * Framework7 8.0.3
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: April 6, 2023
10
+ * Released on: April 17, 2023
11
11
  */
12
12
 
13
13
  (function (global, factory) {
@@ -1600,9 +1600,6 @@
1600
1600
  return ft3 > 216 / 24389 ? ft3 : (116 * ft - 16) / 903.2962962962963;
1601
1601
  }
1602
1602
  class ViewingConditions {
1603
- constructor(n, aw, nbb, ncb, c, nc, rgbD, fl, fLRoot, z) {
1604
- this.n = n, this.aw = aw, this.nbb = nbb, this.ncb = ncb, this.c = c, this.nc = nc, this.rgbD = rgbD, this.fl = fl, this.fLRoot = fLRoot, this.z = z;
1605
- }
1606
1603
  static make(whitePoint, adaptingLuminance, backgroundLstar, surround, discountingIlluminant) {
1607
1604
  if (whitePoint === void 0) {
1608
1605
  whitePoint = whitePointD65();
@@ -1641,6 +1638,9 @@
1641
1638
  rgbA = [400 * rgbAFactors[0] / (rgbAFactors[0] + 27.13), 400 * rgbAFactors[1] / (rgbAFactors[1] + 27.13), 400 * rgbAFactors[2] / (rgbAFactors[2] + 27.13)];
1642
1639
  return new ViewingConditions(n, (2 * rgbA[0] + rgbA[1] + .05 * rgbA[2]) * nbb, nbb, ncb, c, nc, rgbD, fl, Math.pow(fl, .25), z);
1643
1640
  }
1641
+ constructor(n, aw, nbb, ncb, c, nc, rgbD, fl, fLRoot, z) {
1642
+ this.n = n, this.aw = aw, this.nbb = nbb, this.ncb = ncb, this.c = c, this.nc = nc, this.rgbD = rgbD, this.fl = fl, this.fLRoot = fLRoot, this.z = z;
1643
+ }
1644
1644
  }
1645
1645
  ViewingConditions.DEFAULT = ViewingConditions.make();
1646
1646
  class Cam16 {
@@ -1914,11 +1914,6 @@
1914
1914
  }
1915
1915
  HctSolver.SCALED_DISCOUNT_FROM_LINRGB = [[.001200833568784504, .002389694492170889, .0002795742885861124], [.0005891086651375999, .0029785502573438758, .0003270666104008398], [.00010146692491640572, .0005364214359186694, .0032979401770712076]], HctSolver.LINRGB_FROM_SCALED_DISCOUNT = [[1373.2198709594231, -1100.4251190754821, -7.278681089101213], [-271.815969077903, 559.6580465940733, -32.46047482791194], [1.9622899599665666, -57.173814538844006, 308.7233197812385]], HctSolver.Y_FROM_LINRGB = [.2126, .7152, .0722], HctSolver.CRITICAL_PLANES = [.015176349177441876, .045529047532325624, .07588174588720938, .10623444424209313, .13658714259697685, .16693984095186062, .19729253930674434, .2276452376616281, .2579979360165119, .28835063437139563, .3188300904430532, .350925934958123, .3848314933096426, .42057480301049466, .458183274052838, .4976837250274023, .5391024159806381, .5824650784040898, .6277969426914107, .6751227633498623, .7244668422128921, .775853049866786, .829304845476233, .8848452951698498, .942497089126609, 1.0022825574869039, 1.0642236851973577, 1.1283421258858297, 1.1946592148522128, 1.2631959812511864, 1.3339731595349034, 1.407011200216447, 1.4823302800086415, 1.5599503113873272, 1.6398909516233677, 1.7221716113234105, 1.8068114625156377, 1.8938294463134073, 1.9832442801866852, 2.075074464868551, 2.1693382909216234, 2.2660538449872063, 2.36523901573795, 2.4669114995532007, 2.5710888059345764, 2.6777882626779785, 2.7870270208169257, 2.898822059350997, 3.0131901897720907, 3.1301480604002863, 3.2497121605402226, 3.3718988244681087, 3.4967242352587946, 3.624204428461639, 3.754355295633311, 3.887192587735158, 4.022731918402185, 4.160988767090289, 4.301978482107941, 4.445716283538092, 4.592217266055746, 4.741496401646282, 4.893568542229298, 5.048448422192488, 5.20615066083972, 5.3666897647573375, 5.5300801301023865, 5.696336044816294, 5.865471690767354, 6.037501145825082, 6.212438385869475, 6.390297286737924, 6.571091626112461, 6.7548350853498045, 6.941541251256611, 7.131223617812143, 7.323895587840543, 7.5195704746346665, 7.7182615035334345, 7.919981813454504, 8.124744458384042, 8.332562408825165, 8.543448553206703, 8.757415699253682, 8.974476575321063, 9.194643831691977, 9.417930041841839, 9.644347703669503, 9.873909240696694, 10.106627003236781, 10.342513269534024, 10.58158024687427, 10.8238400726681, 11.069304815507364, 11.317986476196008, 11.569896988756009, 11.825048221409341, 12.083451977536606, 12.345119996613247, 12.610063955123938, 12.878295467455942, 13.149826086772048, 13.42466730586372, 13.702830557985108, 13.984327217668513, 14.269168601521828, 14.55736596900856, 14.848930523210871, 15.143873411576273, 15.44220572664832, 15.743938506781891, 16.04908273684337, 16.35764934889634, 16.66964922287304, 16.985093187232053, 17.30399201960269, 17.62635644741625, 17.95219714852476, 18.281524751807332, 18.614349837764564, 18.95068293910138, 19.290534541298456, 19.633915083172692, 19.98083495742689, 20.331304511189067, 20.685334046541502, 21.042933821039977, 21.404114048223256, 21.76888489811322, 22.137256497705877, 22.50923893145328, 22.884842241736916, 23.264076429332462, 23.6469514538663, 24.033477234264016, 24.42366364919083, 24.817520537484558, 25.21505769858089, 25.61628489293138, 26.021211842414342, 26.429848230738664, 26.842203703840827, 27.258287870275353, 27.678110301598522, 28.10168053274597, 28.529008062403893, 28.96010235337422, 29.39497283293396, 29.83362889318845, 30.276079891419332, 30.722335150426627, 31.172403958865512, 31.62629557157785, 32.08401920991837, 32.54558406207592, 33.010999283389665, 33.4802739966603, 33.953417292456834, 34.430438229418264, 34.911345834551085, 35.39614910352207, 35.88485700094671, 36.37747846067349, 36.87402238606382, 37.37449765026789, 37.87891309649659, 38.38727753828926, 38.89959975977785, 39.41588851594697, 39.93615253289054, 40.460400508064545, 40.98864111053629, 41.520882981230194, 42.05713473317016, 42.597404951718396, 43.141702194811224, 43.6900349931913, 44.24241185063697, 44.798841244188324, 45.35933162437017, 45.92389141541209, 46.49252901546552, 47.065252796817916, 47.64207110610409, 48.22299226451468, 48.808024568002054, 49.3971762874833, 49.9904556690408, 50.587870934119984, 51.189430279724725, 51.79514187861014, 52.40501387947288, 53.0190544071392, 53.637271562750364, 54.259673423945976, 54.88626804504493, 55.517063457223934, 56.15206766869424, 56.79128866487574, 57.43473440856916, 58.08241284012621, 58.734331877617365, 59.39049941699807, 60.05092333227251, 60.715611475655585, 61.38457167773311, 62.057811747619894, 62.7353394731159, 63.417162620860914, 64.10328893648692, 64.79372614476921, 65.48848194977529, 66.18756403501224, 66.89098006357258, 67.59873767827808, 68.31084450182222, 69.02730813691093, 69.74813616640164, 70.47333615344107, 71.20291564160104, 71.93688215501312, 72.67524319850172, 73.41800625771542, 74.16517879925733, 74.9167682708136, 75.67278210128072, 76.43322770089146, 77.1981124613393, 77.96744375590167, 78.74122893956174, 79.51947534912904, 80.30219030335869, 81.08938110306934, 81.88105503125999, 82.67721935322541, 83.4778813166706, 84.28304815182372, 85.09272707154808, 85.90692527145302, 86.72564993000343, 87.54890820862819, 88.3767072518277, 89.2090541872801, 90.04595612594655, 90.88742016217518, 91.73345337380438, 92.58406282226491, 93.43925555268066, 94.29903859396902, 95.16341895893969, 96.03240364439274, 96.9059996312159, 97.78421388448044, 98.6670533535366, 99.55452497210776];
1916
1916
  class Hct {
1917
- constructor(argb) {
1918
- this.argb = argb;
1919
- const cam = Cam16.fromInt(argb);
1920
- this.internalHue = cam.hue, this.internalChroma = cam.chroma, this.internalTone = lstarFromArgb(argb), this.argb = argb;
1921
- }
1922
1917
  static from(hue, chroma, tone) {
1923
1918
  return new Hct(HctSolver.solveToInt(hue, chroma, tone));
1924
1919
  }
@@ -1946,6 +1941,11 @@
1946
1941
  set tone(newTone) {
1947
1942
  this.setInternalState(HctSolver.solveToInt(this.internalHue, this.internalChroma, newTone));
1948
1943
  }
1944
+ constructor(argb) {
1945
+ this.argb = argb;
1946
+ const cam = Cam16.fromInt(argb);
1947
+ this.internalHue = cam.hue, this.internalChroma = cam.chroma, this.internalTone = lstarFromArgb(argb), this.argb = argb;
1948
+ }
1949
1949
  setInternalState(argb) {
1950
1950
  const cam = Cam16.fromInt(argb);
1951
1951
  this.internalHue = cam.hue, this.internalChroma = cam.chroma, this.internalTone = lstarFromArgb(argb), this.argb = argb;
@@ -1979,9 +1979,6 @@
1979
1979
  }
1980
1980
  }
1981
1981
  class TonalPalette {
1982
- constructor(hue, chroma) {
1983
- this.hue = hue, this.chroma = chroma, this.cache = new Map();
1984
- }
1985
1982
  static fromInt(argb) {
1986
1983
  const hct = Hct.fromInt(argb);
1987
1984
  return TonalPalette.fromHueAndChroma(hct.hue, hct.chroma);
@@ -1989,29 +1986,59 @@
1989
1986
  static fromHueAndChroma(hue, chroma) {
1990
1987
  return new TonalPalette(hue, chroma);
1991
1988
  }
1989
+ constructor(hue, chroma) {
1990
+ this.hue = hue, this.chroma = chroma, this.cache = new Map();
1991
+ }
1992
1992
  tone(tone) {
1993
1993
  let argb = this.cache.get(tone);
1994
1994
  return void 0 === argb && (argb = Hct.from(this.hue, this.chroma, tone).toInt(), this.cache.set(tone, argb)), argb;
1995
1995
  }
1996
1996
  }
1997
1997
  class CorePalette {
1998
- constructor(argb, isContent) {
1999
- const hct = Hct.fromInt(argb),
2000
- hue = hct.hue,
2001
- chroma = hct.chroma;
2002
- isContent ? (this.a1 = TonalPalette.fromHueAndChroma(hue, chroma), this.a2 = TonalPalette.fromHueAndChroma(hue, chroma / 3), this.a3 = TonalPalette.fromHueAndChroma(hue + 60, chroma / 2), this.n1 = TonalPalette.fromHueAndChroma(hue, Math.min(chroma / 12, 4)), this.n2 = TonalPalette.fromHueAndChroma(hue, Math.min(chroma / 6, 8))) : (this.a1 = TonalPalette.fromHueAndChroma(hue, Math.max(48, chroma)), this.a2 = TonalPalette.fromHueAndChroma(hue, 16), this.a3 = TonalPalette.fromHueAndChroma(hue + 60, 24), this.n1 = TonalPalette.fromHueAndChroma(hue, 4), this.n2 = TonalPalette.fromHueAndChroma(hue, 8)), this.error = TonalPalette.fromHueAndChroma(25, 84);
2003
- }
2004
1998
  static of(argb) {
2005
1999
  return new CorePalette(argb, !1);
2006
2000
  }
2007
2001
  static contentOf(argb) {
2008
2002
  return new CorePalette(argb, !0);
2009
2003
  }
2004
+ static fromColors(colors) {
2005
+ return CorePalette.createPaletteFromColors(!1, colors);
2006
+ }
2007
+ static contentFromColors(colors) {
2008
+ return CorePalette.createPaletteFromColors(!0, colors);
2009
+ }
2010
+ static createPaletteFromColors(content, colors) {
2011
+ const palette = new CorePalette(colors.primary, content);
2012
+ if (colors.secondary) {
2013
+ const p = new CorePalette(colors.secondary, content);
2014
+ palette.a2 = p.a1;
2015
+ }
2016
+ if (colors.tertiary) {
2017
+ const p = new CorePalette(colors.tertiary, content);
2018
+ palette.a3 = p.a1;
2019
+ }
2020
+ if (colors.error) {
2021
+ const p = new CorePalette(colors.error, content);
2022
+ palette.error = p.a1;
2023
+ }
2024
+ if (colors.neutral) {
2025
+ const p = new CorePalette(colors.neutral, content);
2026
+ palette.n1 = p.n1;
2027
+ }
2028
+ if (colors.neutralVariant) {
2029
+ const p = new CorePalette(colors.neutralVariant, content);
2030
+ palette.n2 = p.n2;
2031
+ }
2032
+ return palette;
2033
+ }
2034
+ constructor(argb, isContent) {
2035
+ const hct = Hct.fromInt(argb),
2036
+ hue = hct.hue,
2037
+ chroma = hct.chroma;
2038
+ isContent ? (this.a1 = TonalPalette.fromHueAndChroma(hue, chroma), this.a2 = TonalPalette.fromHueAndChroma(hue, chroma / 3), this.a3 = TonalPalette.fromHueAndChroma(hue + 60, chroma / 2), this.n1 = TonalPalette.fromHueAndChroma(hue, Math.min(chroma / 12, 4)), this.n2 = TonalPalette.fromHueAndChroma(hue, Math.min(chroma / 6, 8))) : (this.a1 = TonalPalette.fromHueAndChroma(hue, Math.max(48, chroma)), this.a2 = TonalPalette.fromHueAndChroma(hue, 16), this.a3 = TonalPalette.fromHueAndChroma(hue + 60, 24), this.n1 = TonalPalette.fromHueAndChroma(hue, 4), this.n2 = TonalPalette.fromHueAndChroma(hue, 8)), this.error = TonalPalette.fromHueAndChroma(25, 84);
2039
+ }
2010
2040
  }
2011
2041
  class Scheme {
2012
- constructor(props) {
2013
- this.props = props;
2014
- }
2015
2042
  get primary() {
2016
2043
  return this.props.primary;
2017
2044
  }
@@ -2177,28 +2204,33 @@
2177
2204
  inversePrimary: core.a1.tone(40)
2178
2205
  });
2179
2206
  }
2207
+ constructor(props) {
2208
+ this.props = props;
2209
+ }
2180
2210
  toJSON() {
2181
- return Object.assign({}, this.props);
2182
- }
2183
- }
2184
- const hexFromArgb = argb => {
2185
- const r = redFromArgb(argb),
2186
- g = greenFromArgb(argb),
2187
- b = blueFromArgb(argb),
2188
- outParts = [r.toString(16), g.toString(16), b.toString(16)];
2189
- for (const [i, part] of outParts.entries()) 1 === part.length && (outParts[i] = "0" + part);
2190
- return "#" + outParts.join("");
2191
- },
2192
- argbFromHex = hex => {
2193
- const isThree = 3 === (hex = hex.replace("#", "")).length,
2194
- isSix = 6 === hex.length,
2195
- isEight = 8 === hex.length;
2196
- if (!isThree && !isSix && !isEight) throw new Error("unexpected hex " + hex);
2197
- let r = 0,
2198
- g = 0,
2199
- b = 0;
2200
- return isThree ? (r = parseIntHex(hex.slice(0, 1).repeat(2)), g = parseIntHex(hex.slice(1, 2).repeat(2)), b = parseIntHex(hex.slice(2, 3).repeat(2))) : isSix ? (r = parseIntHex(hex.slice(0, 2)), g = parseIntHex(hex.slice(2, 4)), b = parseIntHex(hex.slice(4, 6))) : isEight && (r = parseIntHex(hex.slice(2, 4)), g = parseIntHex(hex.slice(4, 6)), b = parseIntHex(hex.slice(6, 8))), (255 << 24 | (255 & r) << 16 | (255 & g) << 8 | 255 & b) >>> 0;
2201
- };
2211
+ return {
2212
+ ...this.props
2213
+ };
2214
+ }
2215
+ }
2216
+ function hexFromArgb(argb) {
2217
+ const r = redFromArgb(argb),
2218
+ g = greenFromArgb(argb),
2219
+ b = blueFromArgb(argb),
2220
+ outParts = [r.toString(16), g.toString(16), b.toString(16)];
2221
+ for (const [i, part] of outParts.entries()) 1 === part.length && (outParts[i] = "0" + part);
2222
+ return "#" + outParts.join("");
2223
+ }
2224
+ function argbFromHex(hex) {
2225
+ const isThree = 3 === (hex = hex.replace("#", "")).length,
2226
+ isSix = 6 === hex.length,
2227
+ isEight = 8 === hex.length;
2228
+ if (!isThree && !isSix && !isEight) throw new Error("unexpected hex " + hex);
2229
+ let r = 0,
2230
+ g = 0,
2231
+ b = 0;
2232
+ return isThree ? (r = parseIntHex(hex.slice(0, 1).repeat(2)), g = parseIntHex(hex.slice(1, 2).repeat(2)), b = parseIntHex(hex.slice(2, 3).repeat(2))) : isSix ? (r = parseIntHex(hex.slice(0, 2)), g = parseIntHex(hex.slice(2, 4)), b = parseIntHex(hex.slice(4, 6))) : isEight && (r = parseIntHex(hex.slice(2, 4)), g = parseIntHex(hex.slice(4, 6)), b = parseIntHex(hex.slice(6, 8))), (255 << 24 | (255 & r) << 16 | (255 & g) << 8 | 255 & b) >>> 0;
2233
+ }
2202
2234
  function parseIntHex(value) {
2203
2235
  return parseInt(value, 16);
2204
2236
  }
@@ -2748,7 +2780,7 @@
2748
2780
  return res;
2749
2781
  };
2750
2782
  const colorVars = colorThemeCSSProperties(colors.primary);
2751
- const primary = [`:root{`, stringifyObject(colorVars.light), `--swiper-theme-color:var(--f7-theme-color);`, ...Object.keys(colors).map(colorName => `--f7-color-${colorName}: ${colors[colorName]};`), `}`, `.dark{`, stringifyObject(colorVars.dark), `}`, `.ios{`, stringifyObject(colorVars.ios), '}', `.md{`, stringifyObject(colorVars.md), '}'].join('');
2783
+ const primary = [`:root{`, stringifyObject(colorVars.light), `--swiper-theme-color:var(--f7-theme-color);`, ...Object.keys(colors).map(colorName => `--f7-color-${colorName}: ${colors[colorName]};`), `}`, `.dark{`, stringifyObject(colorVars.dark), `}`, `.ios, .ios .dark{`, stringifyObject(colorVars.ios), '}', `.md, .md .dark{`, stringifyObject(colorVars.md), '}'].join('');
2752
2784
  const restVars = {};
2753
2785
  Object.keys(colors).forEach(colorName => {
2754
2786
  const colorValue = colors[colorName];
@@ -2844,7 +2876,7 @@
2844
2876
  const lightString = colorName === 'white' ? whiteColorVars : colorName === 'black' ? blackColorVars : stringifyObject(light);
2845
2877
  const darkString = colorName === 'white' ? whiteColorVars : colorName === 'black' ? blackColorVars : stringifyObject(dark);
2846
2878
  /* eslint-enable */
2847
- rest += [`.color-${colorName} {`, lightString, `--swiper-theme-color: var(--f7-theme-color);`, `}`, `.color-${colorName}.dark, .color-${colorName} .dark, .dark .color-${colorName} {`, darkString, `--swiper-theme-color: var(--f7-theme-color);`, `}`, `.ios .color-${colorName}, .ios.color-${colorName} {`, stringifyObject(ios), `}`, `.md .color-${colorName}, .md.color-${colorName} {`, stringifyObject(md), `}`,
2879
+ rest += [`.color-${colorName} {`, lightString, `--swiper-theme-color: var(--f7-theme-color);`, `}`, `.color-${colorName}.dark, .color-${colorName} .dark, .dark .color-${colorName} {`, darkString, `--swiper-theme-color: var(--f7-theme-color);`, `}`, `.ios .color-${colorName}, .ios.color-${colorName}, .ios .dark .color-${colorName}, .ios .dark.color-${colorName} {`, stringifyObject(ios), `}`, `.md .color-${colorName}, .md.color-${colorName}, .md .dark .color-${colorName}, .md .dark.color-${colorName} {`, stringifyObject(md), `}`,
2848
2880
  // text color
2849
2881
  `.text-color-${colorName} {`, `--f7-theme-color-text-color: ${colors[colorName]};`, `}`,
2850
2882
  // bg color
@@ -4207,6 +4239,7 @@
4207
4239
  let isTouchMoveActivable = false;
4208
4240
  let touchmoveActivableEl = null;
4209
4241
  function handleTouchStart(e) {
4242
+ if (!e.isTrusted) return true;
4210
4243
  isMoved = false;
4211
4244
  tapHoldFired = false;
4212
4245
  preventClick = false;
@@ -4251,6 +4284,7 @@
4251
4284
  return true;
4252
4285
  }
4253
4286
  function handleTouchMove(e) {
4287
+ if (!e.isTrusted) return;
4254
4288
  let touch;
4255
4289
  let distance;
4256
4290
  let shouldRemoveActive = true;
@@ -4311,6 +4345,7 @@
4311
4345
  }
4312
4346
  }
4313
4347
  function handleTouchEnd(e) {
4348
+ if (!e.isTrusted) return true;
4314
4349
  isScrolling = undefined;
4315
4350
  isSegmentedStrong = false;
4316
4351
  segmentedStrongEl = null;
@@ -5398,6 +5433,7 @@
5398
5433
  }
5399
5434
  }
5400
5435
  function handleTouchStart(e) {
5436
+ if (!e.isTrusted) return;
5401
5437
  const swipeBackEnabled = params[`${app.theme}SwipeBack`];
5402
5438
  if (!allowViewTouchMove || !swipeBackEnabled || isTouched || app.swipeout && app.swipeout.el || !router.allowPageChange) return;
5403
5439
  if ($(e.target).closest('.range-slider, .calendar-months').length > 0) return;
@@ -5411,6 +5447,7 @@
5411
5447
  dynamicNavbar = router.dynamicNavbar;
5412
5448
  }
5413
5449
  function handleTouchMove(e) {
5450
+ if (!e.isTrusted) return;
5414
5451
  if (!isTouched) return;
5415
5452
  const pageX = e.type === 'touchmove' ? e.targetTouches[0].pageX : e.pageX;
5416
5453
  const pageY = e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY;
@@ -5531,7 +5568,8 @@
5531
5568
  progress: percentage
5532
5569
  });
5533
5570
  }
5534
- function handleTouchEnd() {
5571
+ function handleTouchEnd(e) {
5572
+ if (!e.isTrusted) return;
5535
5573
  app.preventSwipePanelBySwipeBack = false;
5536
5574
  if (!isTouched || !isMoved) {
5537
5575
  isTouched = false;
@@ -13851,7 +13889,7 @@
13851
13889
  let popupHeight;
13852
13890
  let $pushEl;
13853
13891
  function handleTouchStart(e) {
13854
- if (isTouched || !allowSwipeToClose || !popup.params.swipeToClose) return;
13892
+ if (isTouched || !allowSwipeToClose || !popup.params.swipeToClose || !e.isTrusted) return;
13855
13893
  if (popup.params.swipeHandler && $(e.target).closest(popup.params.swipeHandler).length === 0) {
13856
13894
  return;
13857
13895
  }
@@ -13868,7 +13906,7 @@
13868
13906
  }
13869
13907
  }
13870
13908
  function handleTouchMove(e) {
13871
- if (!isTouched) return;
13909
+ if (!isTouched || !e.isTrusted) return;
13872
13910
  currentTouch = {
13873
13911
  x: e.type === 'touchmove' ? e.targetTouches[0].pageX : e.pageX,
13874
13912
  y: e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY
@@ -13941,7 +13979,8 @@
13941
13979
  }
13942
13980
  $el.transition(0).transform(`translate3d(0,${-touchesDiff}px,0)`);
13943
13981
  }
13944
- function handleTouchEnd() {
13982
+ function handleTouchEnd(e) {
13983
+ if (!e.isTrusted) return;
13945
13984
  isTouched = false;
13946
13985
  if (!isMoved) {
13947
13986
  return;
@@ -15041,7 +15080,7 @@
15041
15080
  let sheetPageContentScrollHeight;
15042
15081
  let sheetPageContentOffsetHeight;
15043
15082
  function handleTouchStart(e) {
15044
- if (isTouched || !(sheet.params.swipeToClose || sheet.params.swipeToStep)) return;
15083
+ if (isTouched || !(sheet.params.swipeToClose || sheet.params.swipeToStep) || !e.isTrusted) return;
15045
15084
  if (sheet.params.swipeHandler && $(e.target).closest(sheet.params.swipeHandler).length === 0) {
15046
15085
  return;
15047
15086
  }
@@ -15059,7 +15098,7 @@
15059
15098
  }
15060
15099
  }
15061
15100
  function handleTouchMove(e) {
15062
- if (!isTouched) return;
15101
+ if (!isTouched || !e.isTrusted) return;
15063
15102
  currentTouch = {
15064
15103
  x: e.type === 'touchmove' ? e.targetTouches[0].pageX : e.pageX,
15065
15104
  y: e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY
@@ -19399,7 +19438,7 @@
19399
19438
  let isH;
19400
19439
  let $cardScrollableEl;
19401
19440
  function onTouchStart(e) {
19402
- if (!$(e.target).closest($cardEl).length) return;
19441
+ if (!$(e.target).closest($cardEl).length || !e.isTrusted) return;
19403
19442
  if (!$cardEl.hasClass('card-opened')) return;
19404
19443
  $cardScrollableEl = $cardEl.find(cardParams.scrollableEl);
19405
19444
  if ($cardScrollableEl[0] && $cardScrollableEl[0] !== $cardContentEl[0] && !$cardScrollableEl[0].contains(e.target)) {
@@ -19415,7 +19454,7 @@
19415
19454
  isH = false;
19416
19455
  }
19417
19456
  function onTouchMove(e) {
19418
- if (!isTouched) return;
19457
+ if (!isTouched || !e.isTrusted) return;
19419
19458
  touchEndX = e.targetTouches[0].pageX;
19420
19459
  touchEndY = e.targetTouches[0].pageY;
19421
19460
  if (typeof isScrolling === 'undefined') {
@@ -19454,8 +19493,8 @@
19454
19493
  $cardEl.transform(`translate3d(${app.rtl ? -translateX : translateX}px, ${translateY}px, 0) scale(${scaleX * (1 - progress * 0.2)}, ${scaleY * (1 - progress * 0.2)})`);
19455
19494
  }
19456
19495
  }
19457
- function onTouchEnd() {
19458
- if (!isTouched || !isMoved) return;
19496
+ function onTouchEnd(e) {
19497
+ if (!isTouched || !isMoved || !e.isTrusted) return;
19459
19498
  isTouched = false;
19460
19499
  isMoved = false;
19461
19500
  if (device.ios) {
@@ -23110,7 +23149,7 @@
23110
23149
  $wrapperEl
23111
23150
  } = calendar;
23112
23151
  function handleTouchStart(e) {
23113
- if (isMoved || isTouched) return;
23152
+ if (isMoved || isTouched || !e.isTrusted) return;
23114
23153
  isTouched = true;
23115
23154
  touchStartX = e.type === 'touchstart' ? e.targetTouches[0].pageX : e.pageX;
23116
23155
  touchCurrentX = touchStartX;
@@ -23123,7 +23162,7 @@
23123
23162
  currentTranslate = calendar.monthsTranslate;
23124
23163
  }
23125
23164
  function handleTouchMove(e) {
23126
- if (!isTouched) return;
23165
+ if (!isTouched || !e.isTrusted) return;
23127
23166
  const {
23128
23167
  isHorizontal: isH
23129
23168
  } = calendar;
@@ -23156,8 +23195,8 @@
23156
23195
  // Transform wrapper
23157
23196
  $wrapperEl.transform(`translate3d(${isH ? currentTranslate : 0}%, ${isH ? 0 : currentTranslate}%, 0)`);
23158
23197
  }
23159
- function handleTouchEnd() {
23160
- if (!isTouched || !isMoved) {
23198
+ function handleTouchEnd(e) {
23199
+ if (!isTouched || !isMoved || !e.isTrusted) {
23161
23200
  isTouched = false;
23162
23201
  isMoved = false;
23163
23202
  return;
@@ -25882,6 +25921,7 @@
25882
25921
  $preloaderEl.find('.preloader-inner-line').css('opacity', '');
25883
25922
  }
25884
25923
  function handleTouchStart(e) {
25924
+ if (!e.isTrusted) return;
25885
25925
  if (isTouched) {
25886
25926
  if (device.os === 'android') {
25887
25927
  if ('targetTouches' in e && e.targetTouches.length > 1) return;
@@ -25901,7 +25941,7 @@
25901
25941
  touchesStart.y = e.type === 'touchstart' ? e.targetTouches[0].pageY : e.pageY;
25902
25942
  }
25903
25943
  function handleTouchMove(e) {
25904
- if (!isTouched) return;
25944
+ if (!isTouched || !e.isTrusted) return;
25905
25945
  let pageX;
25906
25946
  let pageY;
25907
25947
  let touch;
@@ -26043,6 +26083,7 @@
26043
26083
  }
26044
26084
  }
26045
26085
  function handleTouchEnd(e) {
26086
+ if (!e.isTrusted) return;
26046
26087
  if (e.type === 'touchend' && e.changedTouches && e.changedTouches.length > 0 && touchId) {
26047
26088
  if (e.changedTouches[0].identifier !== touchId) {
26048
26089
  isTouched = false;