framework7-svelte 6.3.5 → 7.0.0-beta.4

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 (533) hide show
  1. package/components/{accordion-content/accordion-content.d.ts → accordion-content.d.ts} +0 -0
  2. package/{esm/svelte → components}/accordion-content.svelte +0 -0
  3. package/components/{accordion-item/accordion-item.d.ts → accordion-item.d.ts} +0 -0
  4. package/{esm/svelte → components}/accordion-item.svelte +0 -0
  5. package/components/{accordion-toggle/accordion-toggle.d.ts → accordion-toggle.d.ts} +0 -0
  6. package/{esm/svelte → components}/accordion-toggle.svelte +0 -0
  7. package/components/{accordion/accordion.d.ts → accordion.d.ts} +0 -0
  8. package/{esm/svelte → components}/accordion.svelte +0 -0
  9. package/components/{actions-button/actions-button.d.ts → actions-button.d.ts} +0 -0
  10. package/{esm/svelte → components}/actions-button.svelte +0 -0
  11. package/components/{actions-group/actions-group.d.ts → actions-group.d.ts} +0 -0
  12. package/{esm/svelte → components}/actions-group.svelte +0 -0
  13. package/components/{actions-label/actions-label.d.ts → actions-label.d.ts} +0 -0
  14. package/{esm/svelte → components}/actions-label.svelte +0 -0
  15. package/components/{actions/actions.d.ts → actions.d.ts} +0 -0
  16. package/{esm/svelte → components}/actions.svelte +0 -0
  17. package/components/{app/app.d.ts → app.d.ts} +0 -0
  18. package/{esm/svelte → components}/app.svelte +0 -0
  19. package/components/{appbar/appbar.d.ts → appbar.d.ts} +0 -0
  20. package/{esm/svelte → components}/appbar.svelte +0 -0
  21. package/components/{area-chart/area-chart.d.ts → area-chart.d.ts} +0 -0
  22. package/{esm/svelte → components}/area-chart.svelte +0 -0
  23. package/components/{badge/badge.d.ts → badge.d.ts} +0 -0
  24. package/{esm/svelte → components}/badge.svelte +0 -0
  25. package/components/{block-footer/block-footer.d.ts → block-footer.d.ts} +0 -0
  26. package/{esm/svelte → components}/block-footer.svelte +0 -0
  27. package/components/{block-header/block-header.d.ts → block-header.d.ts} +0 -0
  28. package/{esm/svelte → components}/block-header.svelte +0 -0
  29. package/components/{block-title/block-title.d.ts → block-title.d.ts} +0 -0
  30. package/{esm/svelte → components}/block-title.svelte +0 -0
  31. package/components/{block/block.d.ts → block.d.ts} +0 -0
  32. package/{esm/svelte → components}/block.svelte +0 -0
  33. package/components/{button/button.d.ts → button.d.ts} +0 -0
  34. package/{esm/svelte → components}/button.svelte +0 -1
  35. package/components/{card-content/card-content.d.ts → card-content.d.ts} +0 -0
  36. package/{esm/svelte → components}/card-content.svelte +0 -0
  37. package/components/{card-footer/card-footer.d.ts → card-footer.d.ts} +0 -0
  38. package/{esm/svelte → components}/card-footer.svelte +0 -0
  39. package/components/{card-header/card-header.d.ts → card-header.d.ts} +0 -0
  40. package/{esm/svelte → components}/card-header.svelte +0 -0
  41. package/components/{card/card.d.ts → card.d.ts} +0 -0
  42. package/{esm/svelte → components}/card.svelte +0 -0
  43. package/components/{checkbox/checkbox.d.ts → checkbox.d.ts} +0 -0
  44. package/{esm/svelte → components}/checkbox.svelte +0 -0
  45. package/components/{chip/chip.d.ts → chip.d.ts} +0 -0
  46. package/{esm/svelte → components}/chip.svelte +0 -0
  47. package/components/{col/col.d.ts → col.d.ts} +0 -0
  48. package/{esm/svelte → components}/col.svelte +0 -0
  49. package/components/{fab-backdrop/fab-backdrop.d.ts → fab-backdrop.d.ts} +0 -0
  50. package/{esm/svelte → components}/fab-backdrop.svelte +0 -0
  51. package/components/{fab-button/fab-button.d.ts → fab-button.d.ts} +0 -0
  52. package/{esm/svelte → components}/fab-button.svelte +0 -0
  53. package/components/{fab-buttons/fab-buttons.d.ts → fab-buttons.d.ts} +0 -0
  54. package/{esm/svelte → components}/fab-buttons.svelte +0 -0
  55. package/components/{fab/fab.d.ts → fab.d.ts} +0 -0
  56. package/{esm/svelte → components}/fab.svelte +0 -0
  57. package/components/{gauge/gauge.d.ts → gauge.d.ts} +0 -0
  58. package/{esm/svelte → components}/gauge.svelte +0 -0
  59. package/components/{icon/icon.d.ts → icon.d.ts} +0 -0
  60. package/{esm/svelte → components}/icon.svelte +0 -0
  61. package/components/{input/input.d.ts → input.d.ts} +0 -0
  62. package/{esm/svelte → components}/input.svelte +0 -0
  63. package/components/{link/link.d.ts → link.d.ts} +0 -0
  64. package/{esm/svelte → components}/link.svelte +0 -0
  65. package/components/{list-button/list-button.d.ts → list-button.d.ts} +0 -0
  66. package/{esm/svelte → components}/list-button.svelte +0 -0
  67. package/components/{list-group/list-group.d.ts → list-group.d.ts} +0 -0
  68. package/{esm/svelte → components}/list-group.svelte +0 -0
  69. package/components/{list-index/list-index.d.ts → list-index.d.ts} +0 -0
  70. package/{esm/svelte → components}/list-index.svelte +0 -0
  71. package/components/{list-input/list-input.d.ts → list-input.d.ts} +0 -0
  72. package/{esm/svelte → components}/list-input.svelte +0 -0
  73. package/components/{list-item-cell/list-item-cell.d.ts → list-item-cell.d.ts} +0 -0
  74. package/{esm/svelte → components}/list-item-cell.svelte +0 -0
  75. package/components/{list-item-row/list-item-row.d.ts → list-item-row.d.ts} +0 -0
  76. package/{esm/svelte → components}/list-item-row.svelte +0 -0
  77. package/components/{list-item/list-item.d.ts → list-item.d.ts} +0 -0
  78. package/{esm/svelte → components}/list-item.svelte +0 -0
  79. package/components/{list/list.d.ts → list.d.ts} +0 -0
  80. package/{esm/svelte → components}/list.svelte +0 -0
  81. package/components/{login-screen-title/login-screen-title.d.ts → login-screen-title.d.ts} +0 -0
  82. package/{esm/svelte → components}/login-screen-title.svelte +0 -0
  83. package/components/{login-screen/login-screen.d.ts → login-screen.d.ts} +0 -0
  84. package/{esm/svelte → components}/login-screen.svelte +0 -0
  85. package/components/{menu-dropdown-item/menu-dropdown-item.d.ts → menu-dropdown-item.d.ts} +0 -0
  86. package/{esm/svelte → components}/menu-dropdown-item.svelte +0 -0
  87. package/components/{menu-dropdown/menu-dropdown.d.ts → menu-dropdown.d.ts} +0 -0
  88. package/{esm/svelte → components}/menu-dropdown.svelte +0 -0
  89. package/components/{menu-item/menu-item.d.ts → menu-item.d.ts} +0 -0
  90. package/{esm/svelte → components}/menu-item.svelte +0 -0
  91. package/components/{menu/menu.d.ts → menu.d.ts} +0 -0
  92. package/{esm/svelte → components}/menu.svelte +0 -0
  93. package/components/{message/message.d.ts → message.d.ts} +0 -0
  94. package/{esm/svelte → components}/message.svelte +0 -0
  95. package/components/{messagebar-attachment/messagebar-attachment.d.ts → messagebar-attachment.d.ts} +0 -0
  96. package/{esm/svelte → components}/messagebar-attachment.svelte +0 -0
  97. package/components/{messagebar-attachments/messagebar-attachments.d.ts → messagebar-attachments.d.ts} +0 -0
  98. package/{esm/svelte → components}/messagebar-attachments.svelte +0 -0
  99. package/components/{messagebar-sheet-image/messagebar-sheet-image.d.ts → messagebar-sheet-image.d.ts} +0 -0
  100. package/{esm/svelte → components}/messagebar-sheet-image.svelte +0 -0
  101. package/components/{messagebar-sheet-item/messagebar-sheet-item.d.ts → messagebar-sheet-item.d.ts} +0 -0
  102. package/{esm/svelte → components}/messagebar-sheet-item.svelte +0 -0
  103. package/components/{messagebar-sheet/messagebar-sheet.d.ts → messagebar-sheet.d.ts} +0 -0
  104. package/{esm/svelte → components}/messagebar-sheet.svelte +0 -0
  105. package/components/{messagebar/messagebar.d.ts → messagebar.d.ts} +0 -0
  106. package/{esm/svelte → components}/messagebar.svelte +0 -0
  107. package/components/{messages-title/messages-title.d.ts → messages-title.d.ts} +0 -0
  108. package/{esm/svelte → components}/messages-title.svelte +0 -0
  109. package/components/{messages/messages.d.ts → messages.d.ts} +0 -0
  110. package/{esm/svelte → components}/messages.svelte +0 -0
  111. package/components/{nav-left/nav-left.d.ts → nav-left.d.ts} +0 -0
  112. package/{esm/svelte → components}/nav-left.svelte +2 -1
  113. package/components/{nav-right/nav-right.d.ts → nav-right.d.ts} +0 -0
  114. package/{esm/svelte → components}/nav-right.svelte +0 -0
  115. package/components/{nav-title-large/nav-title-large.d.ts → nav-title-large.d.ts} +0 -0
  116. package/{esm/svelte → components}/nav-title-large.svelte +0 -0
  117. package/components/{nav-title/nav-title.d.ts → nav-title.d.ts} +0 -0
  118. package/{esm/svelte → components}/nav-title.svelte +0 -0
  119. package/components/{navbar/navbar.d.ts → navbar.d.ts} +0 -0
  120. package/{esm/svelte → components}/navbar.svelte +0 -0
  121. package/components/{page-content/page-content.d.ts → page-content.d.ts} +0 -0
  122. package/{esm/svelte → components}/page-content.svelte +0 -0
  123. package/components/{page/page.d.ts → page.d.ts} +0 -0
  124. package/{esm/svelte → components}/page.svelte +0 -0
  125. package/components/{panel/panel.d.ts → panel.d.ts} +0 -0
  126. package/{esm/svelte → components}/panel.svelte +0 -0
  127. package/components/{photo-browser/photo-browser.d.ts → photo-browser.d.ts} +0 -0
  128. package/{esm/svelte → components}/photo-browser.svelte +0 -0
  129. package/components/{pie-chart/pie-chart.d.ts → pie-chart.d.ts} +0 -0
  130. package/{esm/svelte → components}/pie-chart.svelte +0 -0
  131. package/components/{popover/popover.d.ts → popover.d.ts} +0 -0
  132. package/{esm/svelte → components}/popover.svelte +0 -0
  133. package/components/{popup/popup.d.ts → popup.d.ts} +0 -0
  134. package/{esm/svelte → components}/popup.svelte +0 -0
  135. package/components/{preloader/preloader.d.ts → preloader.d.ts} +0 -0
  136. package/{esm/svelte → components}/preloader.svelte +0 -0
  137. package/components/{progressbar/progressbar.d.ts → progressbar.d.ts} +0 -0
  138. package/{esm/svelte → components}/progressbar.svelte +0 -0
  139. package/components/{radio/radio.d.ts → radio.d.ts} +0 -0
  140. package/{esm/svelte → components}/radio.svelte +0 -0
  141. package/components/{range/range.d.ts → range.d.ts} +0 -0
  142. package/{esm/svelte → components}/range.svelte +0 -0
  143. package/components/{routable-modals/routable-modals.d.ts → routable-modals.d.ts} +0 -0
  144. package/{esm/svelte → components}/routable-modals.svelte +0 -0
  145. package/components/{router-context-provider/router-context-provider.d.ts → router-context-provider.d.ts} +0 -0
  146. package/{esm/svelte → components}/router-context-provider.svelte +0 -0
  147. package/components/{row/row.d.ts → row.d.ts} +0 -0
  148. package/{esm/svelte → components}/row.svelte +0 -0
  149. package/components/{searchbar/searchbar.d.ts → searchbar.d.ts} +0 -0
  150. package/{esm/svelte → components}/searchbar.svelte +0 -0
  151. package/components/{segmented/segmented.d.ts → segmented.d.ts} +0 -0
  152. package/{esm/svelte → components}/segmented.svelte +0 -0
  153. package/components/{sheet/sheet.d.ts → sheet.d.ts} +0 -0
  154. package/{esm/svelte → components}/sheet.svelte +0 -0
  155. package/components/{skeleton-avatar/skeleton-avatar.d.ts → skeleton-avatar.d.ts} +0 -0
  156. package/{esm/components → components}/skeleton-avatar.js +0 -0
  157. package/components/{skeleton-block/skeleton-block.d.ts → skeleton-block.d.ts} +0 -0
  158. package/{esm/components → components}/skeleton-block.js +0 -0
  159. package/components/{skeleton-image/skeleton-image.d.ts → skeleton-image.d.ts} +0 -0
  160. package/{esm/components → components}/skeleton-image.js +0 -0
  161. package/components/{skeleton-text/skeleton-text.d.ts → skeleton-text.d.ts} +0 -0
  162. package/{esm/components → components}/skeleton-text.js +0 -0
  163. package/components/{stepper/stepper.d.ts → stepper.d.ts} +0 -0
  164. package/{esm/svelte → components}/stepper.svelte +0 -0
  165. package/components/{subnavbar/subnavbar.d.ts → subnavbar.d.ts} +0 -0
  166. package/{esm/svelte → components}/subnavbar.svelte +0 -0
  167. package/components/{swipeout-actions/swipeout-actions.d.ts → swipeout-actions.d.ts} +0 -0
  168. package/{esm/svelte → components}/swipeout-actions.svelte +0 -0
  169. package/components/{swipeout-button/swipeout-button.d.ts → swipeout-button.d.ts} +0 -0
  170. package/{esm/svelte → components}/swipeout-button.svelte +0 -0
  171. package/components/{swiper-slide/swiper-slide.d.ts → swiper-slide.d.ts} +0 -0
  172. package/{esm/components → components}/swiper-slide.js +0 -0
  173. package/components/{swiper/swiper.d.ts → swiper.d.ts} +0 -0
  174. package/{esm/components → components}/swiper.js +0 -0
  175. package/components/{tab/tab.d.ts → tab.d.ts} +0 -0
  176. package/{esm/svelte → components}/tab.svelte +0 -0
  177. package/components/{tabs/tabs.d.ts → tabs.d.ts} +0 -0
  178. package/{esm/svelte → components}/tabs.svelte +0 -0
  179. package/components/{text-editor/text-editor.d.ts → text-editor.d.ts} +0 -0
  180. package/{esm/svelte → components}/text-editor.svelte +0 -0
  181. package/components/{toggle/toggle.d.ts → toggle.d.ts} +0 -0
  182. package/{esm/svelte → components}/toggle.svelte +0 -0
  183. package/components/{toolbar/toolbar.d.ts → toolbar.d.ts} +0 -0
  184. package/{esm/svelte → components}/toolbar.svelte +0 -0
  185. package/components/{treeview-item/treeview-item.d.ts → treeview-item.d.ts} +0 -0
  186. package/{esm/svelte → components}/treeview-item.svelte +0 -0
  187. package/components/{treeview/treeview.d.ts → treeview.d.ts} +0 -0
  188. package/{esm/svelte → components}/treeview.svelte +0 -0
  189. package/components/{use-icon/use-icon.d.ts → use-icon.d.ts} +0 -0
  190. package/{esm/svelte → components}/use-icon.svelte +0 -0
  191. package/components/{view/view.d.ts → view.d.ts} +0 -0
  192. package/{esm/svelte → components}/view.svelte +0 -0
  193. package/components/{views/views.d.ts → views.d.ts} +0 -0
  194. package/{esm/svelte → components}/views.svelte +0 -0
  195. package/framework7-svelte.js +116 -0
  196. package/package.json +6 -5
  197. package/{esm/shared → shared}/components-router.js +76 -66
  198. package/{esm/shared → shared}/f7.js +16 -22
  199. package/shared/get-reactive-context.js +16 -0
  200. package/shared/get-router-initial-component.js +39 -0
  201. package/{esm/shared → shared}/list-context.js +0 -0
  202. package/{esm/shared → shared}/mixins.js +90 -76
  203. package/shared/modal-state-classes.js +9 -0
  204. package/{esm/shared → shared}/plugin.js +11 -12
  205. package/shared/rest-props.js +10 -0
  206. package/{esm/shared → shared}/router-context.js +0 -0
  207. package/shared/router-open-in-component.svelte +41 -0
  208. package/shared/router-open-in.js +47 -0
  209. package/{esm/shared → shared}/set-reactive-context.js +7 -7
  210. package/{esm/shared → shared}/tabbar-context.js +0 -0
  211. package/shared/use-icon.js +38 -0
  212. package/{esm/shared → shared}/use-route-props.js +5 -3
  213. package/{esm/shared → shared}/use-smart-select.js +6 -6
  214. package/shared/use-store.js +36 -0
  215. package/{esm/shared → shared}/use-tab.js +8 -8
  216. package/shared/use-theme.js +12 -0
  217. package/{esm/shared → shared}/use-tooltip.js +13 -10
  218. package/{esm/shared → shared}/utils.js +33 -40
  219. package/cjs/components/accordion-content.js +0 -93
  220. package/cjs/components/accordion-item.js +0 -159
  221. package/cjs/components/accordion-toggle.js +0 -93
  222. package/cjs/components/accordion.js +0 -95
  223. package/cjs/components/actions-button.js +0 -234
  224. package/cjs/components/actions-group.js +0 -93
  225. package/cjs/components/actions-label.js +0 -110
  226. package/cjs/components/actions.js +0 -259
  227. package/cjs/components/app.js +0 -124
  228. package/cjs/components/appbar.js +0 -295
  229. package/cjs/components/area-chart.js +0 -1162
  230. package/cjs/components/badge.js +0 -117
  231. package/cjs/components/block-footer.js +0 -93
  232. package/cjs/components/block-header.js +0 -93
  233. package/cjs/components/block-title.js +0 -105
  234. package/cjs/components/block.js +0 -209
  235. package/cjs/components/button.js +0 -1261
  236. package/cjs/components/card-content.js +0 -95
  237. package/cjs/components/card-footer.js +0 -93
  238. package/cjs/components/card-header.js +0 -93
  239. package/cjs/components/card.js +0 -790
  240. package/cjs/components/checkbox.js +0 -214
  241. package/cjs/components/chip.js +0 -507
  242. package/cjs/components/col.js +0 -448
  243. package/cjs/components/fab-backdrop.js +0 -76
  244. package/cjs/components/fab-button.js +0 -223
  245. package/cjs/components/fab-buttons.js +0 -95
  246. package/cjs/components/fab.js +0 -400
  247. package/cjs/components/gauge.js +0 -638
  248. package/cjs/components/icon.js +0 -275
  249. package/cjs/components/input.js +0 -2525
  250. package/cjs/components/link.js +0 -525
  251. package/cjs/components/list-button.js +0 -256
  252. package/cjs/components/list-group.js +0 -173
  253. package/cjs/components/list-index.js +0 -244
  254. package/cjs/components/list-input.js +0 -3905
  255. package/cjs/components/list-item-cell.js +0 -93
  256. package/cjs/components/list-item-row.js +0 -93
  257. package/cjs/components/list-item.js +0 -13256
  258. package/cjs/components/list.js +0 -933
  259. package/cjs/components/login-screen-title.js +0 -93
  260. package/cjs/components/login-screen.js +0 -211
  261. package/cjs/components/menu-dropdown-item.js +0 -368
  262. package/cjs/components/menu-dropdown.js +0 -145
  263. package/cjs/components/menu-item.js +0 -735
  264. package/cjs/components/menu.js +0 -97
  265. package/cjs/components/message.js +0 -1291
  266. package/cjs/components/messagebar-attachment.js +0 -218
  267. package/cjs/components/messagebar-attachments.js +0 -93
  268. package/cjs/components/messagebar-sheet-image.js +0 -159
  269. package/cjs/components/messagebar-sheet-item.js +0 -93
  270. package/cjs/components/messagebar-sheet.js +0 -93
  271. package/cjs/components/messagebar.js +0 -721
  272. package/cjs/components/messages-title.js +0 -93
  273. package/cjs/components/messages.js +0 -282
  274. package/cjs/components/nav-left.js +0 -235
  275. package/cjs/components/nav-right.js +0 -95
  276. package/cjs/components/nav-title-large.js +0 -97
  277. package/cjs/components/nav-title.js +0 -190
  278. package/cjs/components/navbar.js +0 -1004
  279. package/cjs/components/page-content.js +0 -575
  280. package/cjs/components/page.js +0 -808
  281. package/cjs/components/panel.js +0 -444
  282. package/cjs/components/photo-browser.js +0 -316
  283. package/cjs/components/pie-chart.js +0 -420
  284. package/cjs/components/popover.js +0 -256
  285. package/cjs/components/popup.js +0 -290
  286. package/cjs/components/preloader.js +0 -213
  287. package/cjs/components/progressbar.js +0 -131
  288. package/cjs/components/radio.js +0 -198
  289. package/cjs/components/range.js +0 -333
  290. package/cjs/components/routable-modals.js +0 -221
  291. package/cjs/components/router-context-provider.js +0 -67
  292. package/cjs/components/row.js +0 -423
  293. package/cjs/components/searchbar.js +0 -1217
  294. package/cjs/components/segmented.js +0 -395
  295. package/cjs/components/sheet.js +0 -374
  296. package/cjs/components/skeleton-avatar.js +0 -9
  297. package/cjs/components/skeleton-block.js +0 -9
  298. package/cjs/components/skeleton-image.js +0 -9
  299. package/cjs/components/skeleton-text.js +0 -9
  300. package/cjs/components/stepper.js +0 -547
  301. package/cjs/components/subnavbar.js +0 -268
  302. package/cjs/components/swipeout-actions.js +0 -116
  303. package/cjs/components/swipeout-button.js +0 -190
  304. package/cjs/components/swiper-slide.js +0 -9
  305. package/cjs/components/swiper.js +0 -9
  306. package/cjs/components/tab.js +0 -302
  307. package/cjs/components/tabs.js +0 -302
  308. package/cjs/components/text-editor.js +0 -364
  309. package/cjs/components/toggle.js +0 -259
  310. package/cjs/components/toolbar.js +0 -408
  311. package/cjs/components/treeview-item.js +0 -1120
  312. package/cjs/components/treeview.js +0 -93
  313. package/cjs/components/use-icon.js +0 -202
  314. package/cjs/components/view.js +0 -520
  315. package/cjs/components/views.js +0 -95
  316. package/cjs/framework7-svelte.js +0 -421
  317. package/cjs/shared/components-router.js +0 -243
  318. package/cjs/shared/f7.js +0 -132
  319. package/cjs/shared/get-reactive-context.js +0 -22
  320. package/cjs/shared/get-router-initial-component.js +0 -48
  321. package/cjs/shared/list-context.js +0 -9
  322. package/cjs/shared/mixins.js +0 -165
  323. package/cjs/shared/modal-state-classes.js +0 -17
  324. package/cjs/shared/plugin.js +0 -69
  325. package/cjs/shared/rest-props.js +0 -21
  326. package/cjs/shared/router-context.js +0 -7
  327. package/cjs/shared/set-reactive-context.js +0 -38
  328. package/cjs/shared/tabbar-context.js +0 -6
  329. package/cjs/shared/use-icon.js +0 -48
  330. package/cjs/shared/use-route-props.js +0 -23
  331. package/cjs/shared/use-smart-select.js +0 -36
  332. package/cjs/shared/use-store.js +0 -45
  333. package/cjs/shared/use-tab.js +0 -47
  334. package/cjs/shared/use-theme.js +0 -20
  335. package/cjs/shared/use-tooltip.js +0 -55
  336. package/cjs/shared/utils.js +0 -144
  337. package/components/accordion/package.json +0 -10
  338. package/components/accordion-content/package.json +0 -10
  339. package/components/accordion-item/package.json +0 -10
  340. package/components/accordion-toggle/package.json +0 -10
  341. package/components/actions/package.json +0 -10
  342. package/components/actions-button/package.json +0 -10
  343. package/components/actions-group/package.json +0 -10
  344. package/components/actions-label/package.json +0 -10
  345. package/components/app/package.json +0 -10
  346. package/components/appbar/package.json +0 -10
  347. package/components/area-chart/package.json +0 -10
  348. package/components/badge/package.json +0 -10
  349. package/components/block/package.json +0 -10
  350. package/components/block-footer/package.json +0 -10
  351. package/components/block-header/package.json +0 -10
  352. package/components/block-title/package.json +0 -10
  353. package/components/button/package.json +0 -10
  354. package/components/card/package.json +0 -10
  355. package/components/card-content/package.json +0 -10
  356. package/components/card-footer/package.json +0 -10
  357. package/components/card-header/package.json +0 -10
  358. package/components/checkbox/package.json +0 -10
  359. package/components/chip/package.json +0 -10
  360. package/components/col/package.json +0 -10
  361. package/components/fab/package.json +0 -10
  362. package/components/fab-backdrop/package.json +0 -10
  363. package/components/fab-button/package.json +0 -10
  364. package/components/fab-buttons/package.json +0 -10
  365. package/components/gauge/package.json +0 -10
  366. package/components/icon/package.json +0 -10
  367. package/components/input/package.json +0 -10
  368. package/components/link/package.json +0 -10
  369. package/components/list/package.json +0 -10
  370. package/components/list-button/package.json +0 -10
  371. package/components/list-group/package.json +0 -10
  372. package/components/list-index/package.json +0 -10
  373. package/components/list-input/package.json +0 -10
  374. package/components/list-item/package.json +0 -10
  375. package/components/list-item-cell/package.json +0 -10
  376. package/components/list-item-row/package.json +0 -10
  377. package/components/login-screen/package.json +0 -10
  378. package/components/login-screen-title/package.json +0 -10
  379. package/components/menu/package.json +0 -10
  380. package/components/menu-dropdown/package.json +0 -10
  381. package/components/menu-dropdown-item/package.json +0 -10
  382. package/components/menu-item/package.json +0 -10
  383. package/components/message/package.json +0 -10
  384. package/components/messagebar/package.json +0 -10
  385. package/components/messagebar-attachment/package.json +0 -10
  386. package/components/messagebar-attachments/package.json +0 -10
  387. package/components/messagebar-sheet/package.json +0 -10
  388. package/components/messagebar-sheet-image/package.json +0 -10
  389. package/components/messagebar-sheet-item/package.json +0 -10
  390. package/components/messages/package.json +0 -10
  391. package/components/messages-title/package.json +0 -10
  392. package/components/nav-left/package.json +0 -10
  393. package/components/nav-right/package.json +0 -10
  394. package/components/nav-title/package.json +0 -10
  395. package/components/nav-title-large/package.json +0 -10
  396. package/components/navbar/package.json +0 -10
  397. package/components/page/package.json +0 -10
  398. package/components/page-content/package.json +0 -10
  399. package/components/panel/package.json +0 -10
  400. package/components/photo-browser/package.json +0 -10
  401. package/components/pie-chart/package.json +0 -10
  402. package/components/popover/package.json +0 -10
  403. package/components/popup/package.json +0 -10
  404. package/components/preloader/package.json +0 -10
  405. package/components/progressbar/package.json +0 -10
  406. package/components/radio/package.json +0 -10
  407. package/components/range/package.json +0 -10
  408. package/components/routable-modals/package.json +0 -10
  409. package/components/router-context-provider/package.json +0 -10
  410. package/components/row/package.json +0 -10
  411. package/components/searchbar/package.json +0 -10
  412. package/components/segmented/package.json +0 -10
  413. package/components/sheet/package.json +0 -10
  414. package/components/skeleton-avatar/package.json +0 -10
  415. package/components/skeleton-block/package.json +0 -10
  416. package/components/skeleton-image/package.json +0 -10
  417. package/components/skeleton-text/package.json +0 -10
  418. package/components/stepper/package.json +0 -10
  419. package/components/subnavbar/package.json +0 -10
  420. package/components/swipeout-actions/package.json +0 -10
  421. package/components/swipeout-button/package.json +0 -10
  422. package/components/swiper/package.json +0 -10
  423. package/components/swiper-slide/package.json +0 -10
  424. package/components/tab/package.json +0 -10
  425. package/components/tabs/package.json +0 -10
  426. package/components/text-editor/package.json +0 -10
  427. package/components/toggle/package.json +0 -10
  428. package/components/toolbar/package.json +0 -10
  429. package/components/treeview/package.json +0 -10
  430. package/components/treeview-item/package.json +0 -10
  431. package/components/use-icon/package.json +0 -10
  432. package/components/view/package.json +0 -10
  433. package/components/views/package.json +0 -10
  434. package/esm/components/accordion-content.js +0 -108
  435. package/esm/components/accordion-item.js +0 -175
  436. package/esm/components/accordion-toggle.js +0 -108
  437. package/esm/components/accordion.js +0 -110
  438. package/esm/components/actions-button.js +0 -257
  439. package/esm/components/actions-group.js +0 -108
  440. package/esm/components/actions-label.js +0 -126
  441. package/esm/components/actions.js +0 -275
  442. package/esm/components/app.js +0 -143
  443. package/esm/components/appbar.js +0 -315
  444. package/esm/components/area-chart.js +0 -1189
  445. package/esm/components/badge.js +0 -134
  446. package/esm/components/block-footer.js +0 -108
  447. package/esm/components/block-header.js +0 -108
  448. package/esm/components/block-title.js +0 -120
  449. package/esm/components/block.js +0 -225
  450. package/esm/components/button.js +0 -1306
  451. package/esm/components/card-content.js +0 -110
  452. package/esm/components/card-footer.js +0 -108
  453. package/esm/components/card-header.js +0 -108
  454. package/esm/components/card.js +0 -816
  455. package/esm/components/checkbox.js +0 -234
  456. package/esm/components/chip.js +0 -539
  457. package/esm/components/col.js +0 -471
  458. package/esm/components/fab-backdrop.js +0 -88
  459. package/esm/components/fab-button.js +0 -248
  460. package/esm/components/fab-buttons.js +0 -110
  461. package/esm/components/fab.js +0 -428
  462. package/esm/components/gauge.js +0 -656
  463. package/esm/components/icon.js +0 -297
  464. package/esm/components/input.js +0 -2559
  465. package/esm/components/link.js +0 -571
  466. package/esm/components/list-button.js +0 -295
  467. package/esm/components/list-group.js +0 -189
  468. package/esm/components/list-index.js +0 -260
  469. package/esm/components/list-input.js +0 -3938
  470. package/esm/components/list-item-cell.js +0 -108
  471. package/esm/components/list-item-row.js +0 -108
  472. package/esm/components/list-item.js +0 -13302
  473. package/esm/components/list.js +0 -956
  474. package/esm/components/login-screen-title.js +0 -108
  475. package/esm/components/login-screen.js +0 -227
  476. package/esm/components/menu-dropdown-item.js +0 -403
  477. package/esm/components/menu-dropdown.js +0 -162
  478. package/esm/components/menu-item.js +0 -775
  479. package/esm/components/menu.js +0 -114
  480. package/esm/components/message.js +0 -1318
  481. package/esm/components/messagebar-attachment.js +0 -238
  482. package/esm/components/messagebar-attachments.js +0 -108
  483. package/esm/components/messagebar-sheet-image.js +0 -178
  484. package/esm/components/messagebar-sheet-item.js +0 -108
  485. package/esm/components/messagebar-sheet.js +0 -108
  486. package/esm/components/messagebar.js +0 -748
  487. package/esm/components/messages-title.js +0 -108
  488. package/esm/components/messages.js +0 -298
  489. package/esm/components/nav-left.js +0 -257
  490. package/esm/components/nav-right.js +0 -110
  491. package/esm/components/nav-title-large.js +0 -114
  492. package/esm/components/nav-title.js +0 -210
  493. package/esm/components/navbar.js +0 -1031
  494. package/esm/components/page-content.js +0 -599
  495. package/esm/components/page.js +0 -831
  496. package/esm/components/panel.js +0 -463
  497. package/esm/components/photo-browser.js +0 -321
  498. package/esm/components/pie-chart.js +0 -445
  499. package/esm/components/popover.js +0 -275
  500. package/esm/components/popup.js +0 -306
  501. package/esm/components/preloader.js +0 -226
  502. package/esm/components/progressbar.js +0 -146
  503. package/esm/components/radio.js +0 -218
  504. package/esm/components/range.js +0 -352
  505. package/esm/components/routable-modals.js +0 -242
  506. package/esm/components/router-context-provider.js +0 -74
  507. package/esm/components/row.js +0 -446
  508. package/esm/components/searchbar.js +0 -1244
  509. package/esm/components/segmented.js +0 -416
  510. package/esm/components/sheet.js +0 -393
  511. package/esm/components/stepper.js +0 -574
  512. package/esm/components/subnavbar.js +0 -290
  513. package/esm/components/swipeout-actions.js +0 -131
  514. package/esm/components/swipeout-button.js +0 -210
  515. package/esm/components/tab.js +0 -335
  516. package/esm/components/tabs.js +0 -323
  517. package/esm/components/text-editor.js +0 -383
  518. package/esm/components/toggle.js +0 -279
  519. package/esm/components/toolbar.js +0 -429
  520. package/esm/components/treeview-item.js +0 -1156
  521. package/esm/components/treeview.js +0 -108
  522. package/esm/components/use-icon.js +0 -220
  523. package/esm/components/view.js +0 -560
  524. package/esm/components/views.js +0 -110
  525. package/esm/framework7-svelte-src.js +0 -105
  526. package/esm/framework7-svelte.js +0 -116
  527. package/esm/shared/get-reactive-context.js +0 -14
  528. package/esm/shared/get-router-initial-component.js +0 -40
  529. package/esm/shared/modal-state-classes.js +0 -10
  530. package/esm/shared/rest-props.js +0 -16
  531. package/esm/shared/use-icon.js +0 -41
  532. package/esm/shared/use-store.js +0 -36
  533. package/esm/shared/use-theme.js +0 -12
@@ -1,1189 +0,0 @@
1
- /* area-chart.svelte generated by Svelte v3.38.2 */
2
- import {
3
- SvelteComponent,
4
- append,
5
- assign,
6
- attr,
7
- binding_callbacks,
8
- compute_rest_props,
9
- create_slot,
10
- destroy_block,
11
- destroy_each,
12
- detach,
13
- element,
14
- empty,
15
- exclude_internal_props,
16
- get_spread_update,
17
- init,
18
- insert,
19
- listen,
20
- safe_not_equal,
21
- set_attributes,
22
- set_data,
23
- space,
24
- svg_element,
25
- text,
26
- transition_in,
27
- transition_out,
28
- update_keyed_each,
29
- update_slot
30
- } from "svelte/internal";
31
-
32
- import { createEventDispatcher, onDestroy, onMount } from "svelte";
33
- import { classNames, createEmitter } from "../shared/utils";
34
- import { restProps } from "../shared/rest-props";
35
- import { app } from "../shared/f7";
36
-
37
- function get_each_context(ctx, list, i) {
38
- const child_ctx = ctx.slice();
39
- child_ctx[54] = list[i];
40
- child_ctx[56] = i;
41
- return child_ctx;
42
- }
43
-
44
- function get_each_context_1(ctx, list, i) {
45
- const child_ctx = ctx.slice();
46
- child_ctx[57] = list[i];
47
- child_ctx[56] = i;
48
- return child_ctx;
49
- }
50
-
51
- function get_each_context_2(ctx, list, i) {
52
- const child_ctx = ctx.slice();
53
- child_ctx[59] = list[i];
54
- child_ctx[56] = i;
55
- return child_ctx;
56
- }
57
-
58
- function get_each_context_3(ctx, list, i) {
59
- const child_ctx = ctx.slice();
60
- child_ctx[61] = list[i];
61
- child_ctx[56] = i;
62
- return child_ctx;
63
- }
64
-
65
- // (305:6) {:else}
66
- function create_else_block_1(ctx) {
67
- let polygon;
68
- let polygon_fill_value;
69
- let polygon_points_value;
70
-
71
- return {
72
- c() {
73
- polygon = svg_element("polygon");
74
- attr(polygon, "fill", polygon_fill_value = /*data*/ ctx[61].color);
75
- attr(polygon, "fillrule", "evenodd");
76
- attr(polygon, "points", polygon_points_value = /*data*/ ctx[61].points);
77
- },
78
- m(target, anchor) {
79
- insert(target, polygon, anchor);
80
- },
81
- p(ctx, dirty) {
82
- if (dirty[0] & /*chartData*/ 8192 && polygon_fill_value !== (polygon_fill_value = /*data*/ ctx[61].color)) {
83
- attr(polygon, "fill", polygon_fill_value);
84
- }
85
-
86
- if (dirty[0] & /*chartData*/ 8192 && polygon_points_value !== (polygon_points_value = /*data*/ ctx[61].points)) {
87
- attr(polygon, "points", polygon_points_value);
88
- }
89
- },
90
- d(detaching) {
91
- if (detaching) detach(polygon);
92
- }
93
- };
94
- }
95
-
96
- // (303:6) {#if lineChart}
97
- function create_if_block_4(ctx) {
98
- let path;
99
- let path_stroke_value;
100
- let path_d_value;
101
-
102
- return {
103
- c() {
104
- path = svg_element("path");
105
- attr(path, "stroke", path_stroke_value = /*data*/ ctx[61].color);
106
- attr(path, "fillrule", "evenodd");
107
- attr(path, "d", path_d_value = /*data*/ ctx[61].points);
108
- },
109
- m(target, anchor) {
110
- insert(target, path, anchor);
111
- },
112
- p(ctx, dirty) {
113
- if (dirty[0] & /*chartData*/ 8192 && path_stroke_value !== (path_stroke_value = /*data*/ ctx[61].color)) {
114
- attr(path, "stroke", path_stroke_value);
115
- }
116
-
117
- if (dirty[0] & /*chartData*/ 8192 && path_d_value !== (path_d_value = /*data*/ ctx[61].points)) {
118
- attr(path, "d", path_d_value);
119
- }
120
- },
121
- d(detaching) {
122
- if (detaching) detach(path);
123
- }
124
- };
125
- }
126
-
127
- // (302:4) {#each chartData as data, index (index)}
128
- function create_each_block_3(key_1, ctx) {
129
- let first;
130
- let if_block_anchor;
131
-
132
- function select_block_type(ctx, dirty) {
133
- if (/*lineChart*/ ctx[0]) return create_if_block_4;
134
- return create_else_block_1;
135
- }
136
-
137
- let current_block_type = select_block_type(ctx, [-1]);
138
- let if_block = current_block_type(ctx);
139
-
140
- return {
141
- key: key_1,
142
- first: null,
143
- c() {
144
- first = empty();
145
- if_block.c();
146
- if_block_anchor = empty();
147
- this.first = first;
148
- },
149
- m(target, anchor) {
150
- insert(target, first, anchor);
151
- if_block.m(target, anchor);
152
- insert(target, if_block_anchor, anchor);
153
- },
154
- p(new_ctx, dirty) {
155
- ctx = new_ctx;
156
-
157
- if (current_block_type === (current_block_type = select_block_type(ctx, dirty)) && if_block) {
158
- if_block.p(ctx, dirty);
159
- } else {
160
- if_block.d(1);
161
- if_block = current_block_type(ctx);
162
-
163
- if (if_block) {
164
- if_block.c();
165
- if_block.m(if_block_anchor.parentNode, if_block_anchor);
166
- }
167
- }
168
- },
169
- d(detaching) {
170
- if (detaching) detach(first);
171
- if_block.d(detaching);
172
- if (detaching) detach(if_block_anchor);
173
- }
174
- };
175
- }
176
-
177
- // (310:4) {#each verticalLines as line, index (index)}
178
- function create_each_block_2(key_1, ctx) {
179
- let line;
180
- let line_data_index_value;
181
- let line_x__value;
182
- let line_y__value;
183
- let line_x__value_1;
184
- let line_class_value;
185
-
186
- return {
187
- key: key_1,
188
- first: null,
189
- c() {
190
- line = svg_element("line");
191
- attr(line, "data-index", line_data_index_value = /*index*/ ctx[56]);
192
- attr(line, "fill", "#000");
193
- attr(line, "x1", line_x__value = /*line*/ ctx[59]);
194
- attr(line, "y1", line_y__value = 0);
195
- attr(line, "x2", line_x__value_1 = /*line*/ ctx[59]);
196
- attr(line, "y2", /*height*/ ctx[7]);
197
-
198
- attr(line, "class", line_class_value = classNames({
199
- "area-chart-current-line": /*currentIndex*/ ctx[8] === /*index*/ ctx[56]
200
- }));
201
-
202
- this.first = line;
203
- },
204
- m(target, anchor) {
205
- insert(target, line, anchor);
206
- },
207
- p(new_ctx, dirty) {
208
- ctx = new_ctx;
209
-
210
- if (dirty[0] & /*verticalLines*/ 16384 && line_data_index_value !== (line_data_index_value = /*index*/ ctx[56])) {
211
- attr(line, "data-index", line_data_index_value);
212
- }
213
-
214
- if (dirty[0] & /*verticalLines*/ 16384 && line_x__value !== (line_x__value = /*line*/ ctx[59])) {
215
- attr(line, "x1", line_x__value);
216
- }
217
-
218
- if (dirty[0] & /*verticalLines*/ 16384 && line_x__value_1 !== (line_x__value_1 = /*line*/ ctx[59])) {
219
- attr(line, "x2", line_x__value_1);
220
- }
221
-
222
- if (dirty[0] & /*height*/ 128) {
223
- attr(line, "y2", /*height*/ ctx[7]);
224
- }
225
-
226
- if (dirty[0] & /*currentIndex, verticalLines*/ 16640 && line_class_value !== (line_class_value = classNames({
227
- "area-chart-current-line": /*currentIndex*/ ctx[8] === /*index*/ ctx[56]
228
- }))) {
229
- attr(line, "class", line_class_value);
230
- }
231
- },
232
- d(detaching) {
233
- if (detaching) detach(line);
234
- }
235
- };
236
- }
237
-
238
- // (322:2) {#if axis}
239
- function create_if_block_2(ctx) {
240
- let div;
241
- let each_blocks = [];
242
- let each_1_lookup = new Map();
243
- let each_value_1 = /*axisLabels*/ ctx[3];
244
- const get_key = ctx => /*index*/ ctx[56];
245
-
246
- for (let i = 0; i < each_value_1.length; i += 1) {
247
- let child_ctx = get_each_context_1(ctx, each_value_1, i);
248
- let key = get_key(child_ctx);
249
- each_1_lookup.set(key, each_blocks[i] = create_each_block_1(key, child_ctx));
250
- }
251
-
252
- return {
253
- c() {
254
- div = element("div");
255
-
256
- for (let i = 0; i < each_blocks.length; i += 1) {
257
- each_blocks[i].c();
258
- }
259
-
260
- attr(div, "class", "area-chart-axis");
261
- },
262
- m(target, anchor) {
263
- insert(target, div, anchor);
264
-
265
- for (let i = 0; i < each_blocks.length; i += 1) {
266
- each_blocks[i].m(div, null);
267
- }
268
- },
269
- p(ctx, dirty) {
270
- if (dirty[0] & /*formatAxisLabel, axisLabels, visibleLegends*/ 163848) {
271
- each_value_1 = /*axisLabels*/ ctx[3];
272
- each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value_1, each_1_lookup, div, destroy_block, create_each_block_1, null, get_each_context_1);
273
- }
274
- },
275
- d(detaching) {
276
- if (detaching) detach(div);
277
-
278
- for (let i = 0; i < each_blocks.length; i += 1) {
279
- each_blocks[i].d();
280
- }
281
- }
282
- };
283
- }
284
-
285
- // (326:10) {#if visibleLegends.includes(label)}
286
- function create_if_block_3(ctx) {
287
- let span;
288
- let t_value = /*formatAxisLabel*/ ctx[17](/*label*/ ctx[57]) + "";
289
- let t;
290
-
291
- return {
292
- c() {
293
- span = element("span");
294
- t = text(t_value);
295
- },
296
- m(target, anchor) {
297
- insert(target, span, anchor);
298
- append(span, t);
299
- },
300
- p(ctx, dirty) {
301
- if (dirty[0] & /*axisLabels*/ 8 && t_value !== (t_value = /*formatAxisLabel*/ ctx[17](/*label*/ ctx[57]) + "")) set_data(t, t_value);
302
- },
303
- d(detaching) {
304
- if (detaching) detach(span);
305
- }
306
- };
307
- }
308
-
309
- // (324:6) {#each axisLabels as label, index (index)}
310
- function create_each_block_1(key_1, ctx) {
311
- let span;
312
- let show_if = /*visibleLegends*/ ctx[15].includes(/*label*/ ctx[57]);
313
- let t;
314
- let if_block = show_if && create_if_block_3(ctx);
315
-
316
- return {
317
- key: key_1,
318
- first: null,
319
- c() {
320
- span = element("span");
321
- if (if_block) if_block.c();
322
- t = space();
323
- this.first = span;
324
- },
325
- m(target, anchor) {
326
- insert(target, span, anchor);
327
- if (if_block) if_block.m(span, null);
328
- append(span, t);
329
- },
330
- p(new_ctx, dirty) {
331
- ctx = new_ctx;
332
- if (dirty[0] & /*visibleLegends, axisLabels*/ 32776) show_if = /*visibleLegends*/ ctx[15].includes(/*label*/ ctx[57]);
333
-
334
- if (show_if) {
335
- if (if_block) {
336
- if_block.p(ctx, dirty);
337
- } else {
338
- if_block = create_if_block_3(ctx);
339
- if_block.c();
340
- if_block.m(span, t);
341
- }
342
- } else if (if_block) {
343
- if_block.d(1);
344
- if_block = null;
345
- }
346
- },
347
- d(detaching) {
348
- if (detaching) detach(span);
349
- if (if_block) if_block.d();
350
- }
351
- };
352
- }
353
-
354
- // (331:2) {#if legend}
355
- function create_if_block(ctx) {
356
- let div;
357
- let each_value = /*datasets*/ ctx[1];
358
- let each_blocks = [];
359
-
360
- for (let i = 0; i < each_value.length; i += 1) {
361
- each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
362
- }
363
-
364
- return {
365
- c() {
366
- div = element("div");
367
-
368
- for (let i = 0; i < each_blocks.length; i += 1) {
369
- each_blocks[i].c();
370
- }
371
-
372
- attr(div, "class", "area-chart-legend");
373
- },
374
- m(target, anchor) {
375
- insert(target, div, anchor);
376
-
377
- for (let i = 0; i < each_blocks.length; i += 1) {
378
- each_blocks[i].m(div, null);
379
- }
380
- },
381
- p(ctx, dirty) {
382
- if (dirty[0] & /*hiddenDatasets, toggleDatasets, toggleDataset, formatLegendLabel, datasets*/ 328226) {
383
- each_value = /*datasets*/ ctx[1];
384
- let i;
385
-
386
- for (i = 0; i < each_value.length; i += 1) {
387
- const child_ctx = get_each_context(ctx, each_value, i);
388
-
389
- if (each_blocks[i]) {
390
- each_blocks[i].p(child_ctx, dirty);
391
- } else {
392
- each_blocks[i] = create_each_block(child_ctx);
393
- each_blocks[i].c();
394
- each_blocks[i].m(div, null);
395
- }
396
- }
397
-
398
- for (; i < each_blocks.length; i += 1) {
399
- each_blocks[i].d(1);
400
- }
401
-
402
- each_blocks.length = each_value.length;
403
- }
404
- },
405
- d(detaching) {
406
- if (detaching) detach(div);
407
- destroy_each(each_blocks, detaching);
408
- }
409
- };
410
- }
411
-
412
- // (346:8) {:else}
413
- function create_else_block(ctx) {
414
- let span1;
415
- let span0;
416
- let span0_style_value;
417
- let t0;
418
- let t1_value = /*formatLegendLabel*/ ctx[18](/*dataset*/ ctx[54].label) + "";
419
- let t1;
420
- let t2;
421
-
422
- return {
423
- c() {
424
- span1 = element("span");
425
- span0 = element("span");
426
- t0 = space();
427
- t1 = text(t1_value);
428
- t2 = space();
429
- attr(span0, "style", span0_style_value = `background-color: ${/*dataset*/ ctx[54].color}`);
430
- attr(span1, "class", "area-chart-legend-item");
431
- },
432
- m(target, anchor) {
433
- insert(target, span1, anchor);
434
- append(span1, span0);
435
- append(span1, t0);
436
- append(span1, t1);
437
- append(span1, t2);
438
- },
439
- p(ctx, dirty) {
440
- if (dirty[0] & /*datasets*/ 2 && span0_style_value !== (span0_style_value = `background-color: ${/*dataset*/ ctx[54].color}`)) {
441
- attr(span0, "style", span0_style_value);
442
- }
443
-
444
- if (dirty[0] & /*datasets*/ 2 && t1_value !== (t1_value = /*formatLegendLabel*/ ctx[18](/*dataset*/ ctx[54].label) + "")) set_data(t1, t1_value);
445
- },
446
- d(detaching) {
447
- if (detaching) detach(span1);
448
- }
449
- };
450
- }
451
-
452
- // (334:8) {#if toggleDatasets}
453
- function create_if_block_1(ctx) {
454
- let button;
455
- let span;
456
- let span_style_value;
457
- let t0;
458
- let t1_value = /*formatLegendLabel*/ ctx[18](/*dataset*/ ctx[54].label) + "";
459
- let t1;
460
- let t2;
461
- let button_class_value;
462
- let mounted;
463
- let dispose;
464
-
465
- function click_handler() {
466
- return /*click_handler*/ ctx[32](/*index*/ ctx[56]);
467
- }
468
-
469
- return {
470
- c() {
471
- button = element("button");
472
- span = element("span");
473
- t0 = space();
474
- t1 = text(t1_value);
475
- t2 = space();
476
- attr(span, "style", span_style_value = `background-color: ${/*dataset*/ ctx[54].color}`);
477
-
478
- attr(button, "class", button_class_value = classNames("area-chart-legend-item", {
479
- "area-chart-legend-item-hidden": /*hiddenDatasets*/ ctx[9].includes(/*index*/ ctx[56]),
480
- "area-chart-legend-button": /*toggleDatasets*/ ctx[5]
481
- }));
482
-
483
- attr(button, "type", "button");
484
- },
485
- m(target, anchor) {
486
- insert(target, button, anchor);
487
- append(button, span);
488
- append(button, t0);
489
- append(button, t1);
490
- append(button, t2);
491
-
492
- if (!mounted) {
493
- dispose = listen(button, "click", click_handler);
494
- mounted = true;
495
- }
496
- },
497
- p(new_ctx, dirty) {
498
- ctx = new_ctx;
499
-
500
- if (dirty[0] & /*datasets*/ 2 && span_style_value !== (span_style_value = `background-color: ${/*dataset*/ ctx[54].color}`)) {
501
- attr(span, "style", span_style_value);
502
- }
503
-
504
- if (dirty[0] & /*datasets*/ 2 && t1_value !== (t1_value = /*formatLegendLabel*/ ctx[18](/*dataset*/ ctx[54].label) + "")) set_data(t1, t1_value);
505
-
506
- if (dirty[0] & /*hiddenDatasets, toggleDatasets*/ 544 && button_class_value !== (button_class_value = classNames("area-chart-legend-item", {
507
- "area-chart-legend-item-hidden": /*hiddenDatasets*/ ctx[9].includes(/*index*/ ctx[56]),
508
- "area-chart-legend-button": /*toggleDatasets*/ ctx[5]
509
- }))) {
510
- attr(button, "class", button_class_value);
511
- }
512
- },
513
- d(detaching) {
514
- if (detaching) detach(button);
515
- mounted = false;
516
- dispose();
517
- }
518
- };
519
- }
520
-
521
- // (333:6) {#each datasets as dataset, index}
522
- function create_each_block(ctx) {
523
- let if_block_anchor;
524
-
525
- function select_block_type_1(ctx, dirty) {
526
- if (/*toggleDatasets*/ ctx[5]) return create_if_block_1;
527
- return create_else_block;
528
- }
529
-
530
- let current_block_type = select_block_type_1(ctx, [-1]);
531
- let if_block = current_block_type(ctx);
532
-
533
- return {
534
- c() {
535
- if_block.c();
536
- if_block_anchor = empty();
537
- },
538
- m(target, anchor) {
539
- if_block.m(target, anchor);
540
- insert(target, if_block_anchor, anchor);
541
- },
542
- p(ctx, dirty) {
543
- if (current_block_type === (current_block_type = select_block_type_1(ctx, dirty)) && if_block) {
544
- if_block.p(ctx, dirty);
545
- } else {
546
- if_block.d(1);
547
- if_block = current_block_type(ctx);
548
-
549
- if (if_block) {
550
- if_block.c();
551
- if_block.m(if_block_anchor.parentNode, if_block_anchor);
552
- }
553
- }
554
- },
555
- d(detaching) {
556
- if_block.d(detaching);
557
- if (detaching) detach(if_block_anchor);
558
- }
559
- };
560
- }
561
-
562
- function create_fragment(ctx) {
563
- let div;
564
- let svg;
565
- let each_blocks_1 = [];
566
- let each0_lookup = new Map();
567
- let each0_anchor;
568
- let each_blocks = [];
569
- let each1_lookup = new Map();
570
- let svg_viewBox_value;
571
- let t0;
572
- let t1;
573
- let t2;
574
- let current;
575
- let each_value_3 = /*chartData*/ ctx[13];
576
- const get_key = ctx => /*index*/ ctx[56];
577
-
578
- for (let i = 0; i < each_value_3.length; i += 1) {
579
- let child_ctx = get_each_context_3(ctx, each_value_3, i);
580
- let key = get_key(child_ctx);
581
- each0_lookup.set(key, each_blocks_1[i] = create_each_block_3(key, child_ctx));
582
- }
583
-
584
- let each_value_2 = /*verticalLines*/ ctx[14];
585
- const get_key_1 = ctx => /*index*/ ctx[56];
586
-
587
- for (let i = 0; i < each_value_2.length; i += 1) {
588
- let child_ctx = get_each_context_2(ctx, each_value_2, i);
589
- let key = get_key_1(child_ctx);
590
- each1_lookup.set(key, each_blocks[i] = create_each_block_2(key, child_ctx));
591
- }
592
-
593
- let if_block0 = /*axis*/ ctx[2] && create_if_block_2(ctx);
594
- let if_block1 = /*legend*/ ctx[4] && create_if_block(ctx);
595
- const default_slot_template = /*#slots*/ ctx[30].default;
596
- const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[29], null);
597
- let div_levels = [{ class: /*classes*/ ctx[12] }, restProps(/*$$restProps*/ ctx[19])];
598
- let div_data = {};
599
-
600
- for (let i = 0; i < div_levels.length; i += 1) {
601
- div_data = assign(div_data, div_levels[i]);
602
- }
603
-
604
- return {
605
- c() {
606
- div = element("div");
607
- svg = svg_element("svg");
608
-
609
- for (let i = 0; i < each_blocks_1.length; i += 1) {
610
- each_blocks_1[i].c();
611
- }
612
-
613
- each0_anchor = empty();
614
-
615
- for (let i = 0; i < each_blocks.length; i += 1) {
616
- each_blocks[i].c();
617
- }
618
-
619
- t0 = space();
620
- if (if_block0) if_block0.c();
621
- t1 = space();
622
- if (if_block1) if_block1.c();
623
- t2 = space();
624
- if (default_slot) default_slot.c();
625
- attr(svg, "xmlns", "http://www.w3.org/2000/svg");
626
- attr(svg, "width", /*width*/ ctx[6]);
627
- attr(svg, "height", /*height*/ ctx[7]);
628
- attr(svg, "viewBox", svg_viewBox_value = `0 0 ${/*width*/ ctx[6]} ${/*height*/ ctx[7]}`);
629
- attr(svg, "preserveAspectRatio", "none");
630
- set_attributes(div, div_data);
631
- },
632
- m(target, anchor) {
633
- insert(target, div, anchor);
634
- append(div, svg);
635
-
636
- for (let i = 0; i < each_blocks_1.length; i += 1) {
637
- each_blocks_1[i].m(svg, null);
638
- }
639
-
640
- append(svg, each0_anchor);
641
-
642
- for (let i = 0; i < each_blocks.length; i += 1) {
643
- each_blocks[i].m(svg, null);
644
- }
645
-
646
- /*svg_binding*/ ctx[31](svg);
647
- append(div, t0);
648
- if (if_block0) if_block0.m(div, null);
649
- append(div, t1);
650
- if (if_block1) if_block1.m(div, null);
651
- append(div, t2);
652
-
653
- if (default_slot) {
654
- default_slot.m(div, null);
655
- }
656
-
657
- /*div_binding*/ ctx[33](div);
658
- current = true;
659
- },
660
- p(ctx, dirty) {
661
- if (dirty[0] & /*chartData, lineChart*/ 8193) {
662
- each_value_3 = /*chartData*/ ctx[13];
663
- each_blocks_1 = update_keyed_each(each_blocks_1, dirty, get_key, 1, ctx, each_value_3, each0_lookup, svg, destroy_block, create_each_block_3, each0_anchor, get_each_context_3);
664
- }
665
-
666
- if (dirty[0] & /*verticalLines, height, currentIndex*/ 16768) {
667
- each_value_2 = /*verticalLines*/ ctx[14];
668
- each_blocks = update_keyed_each(each_blocks, dirty, get_key_1, 1, ctx, each_value_2, each1_lookup, svg, destroy_block, create_each_block_2, null, get_each_context_2);
669
- }
670
-
671
- if (!current || dirty[0] & /*width*/ 64) {
672
- attr(svg, "width", /*width*/ ctx[6]);
673
- }
674
-
675
- if (!current || dirty[0] & /*height*/ 128) {
676
- attr(svg, "height", /*height*/ ctx[7]);
677
- }
678
-
679
- if (!current || dirty[0] & /*width, height*/ 192 && svg_viewBox_value !== (svg_viewBox_value = `0 0 ${/*width*/ ctx[6]} ${/*height*/ ctx[7]}`)) {
680
- attr(svg, "viewBox", svg_viewBox_value);
681
- }
682
-
683
- if (/*axis*/ ctx[2]) {
684
- if (if_block0) {
685
- if_block0.p(ctx, dirty);
686
- } else {
687
- if_block0 = create_if_block_2(ctx);
688
- if_block0.c();
689
- if_block0.m(div, t1);
690
- }
691
- } else if (if_block0) {
692
- if_block0.d(1);
693
- if_block0 = null;
694
- }
695
-
696
- if (/*legend*/ ctx[4]) {
697
- if (if_block1) {
698
- if_block1.p(ctx, dirty);
699
- } else {
700
- if_block1 = create_if_block(ctx);
701
- if_block1.c();
702
- if_block1.m(div, t2);
703
- }
704
- } else if (if_block1) {
705
- if_block1.d(1);
706
- if_block1 = null;
707
- }
708
-
709
- if (default_slot) {
710
- if (default_slot.p && (!current || dirty[0] & /*$$scope*/ 536870912)) {
711
- update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[29], dirty, null, null);
712
- }
713
- }
714
-
715
- set_attributes(div, div_data = get_spread_update(div_levels, [
716
- (!current || dirty[0] & /*classes*/ 4096) && { class: /*classes*/ ctx[12] },
717
- dirty[0] & /*$$restProps*/ 524288 && restProps(/*$$restProps*/ ctx[19])
718
- ]));
719
- },
720
- i(local) {
721
- if (current) return;
722
- transition_in(default_slot, local);
723
- current = true;
724
- },
725
- o(local) {
726
- transition_out(default_slot, local);
727
- current = false;
728
- },
729
- d(detaching) {
730
- if (detaching) detach(div);
731
-
732
- for (let i = 0; i < each_blocks_1.length; i += 1) {
733
- each_blocks_1[i].d();
734
- }
735
-
736
- for (let i = 0; i < each_blocks.length; i += 1) {
737
- each_blocks[i].d();
738
- }
739
-
740
- /*svg_binding*/ ctx[31](null);
741
- if (if_block0) if_block0.d();
742
- if (if_block1) if_block1.d();
743
- if (default_slot) default_slot.d(detaching);
744
- /*div_binding*/ ctx[33](null);
745
- }
746
- };
747
- }
748
-
749
- function instance($$self, $$props, $$invalidate) {
750
- let classes;
751
- let chartData;
752
- let verticalLines;
753
- let visibleLegends;
754
-
755
- const omit_props_names = [
756
- "class","lineChart","datasets","axis","axisLabels","tooltip","legend","toggleDatasets","width","height","maxAxisLabels","formatAxisLabel","formatLegendLabel","formatTooltip","formatTooltipAxisLabel","formatTooltipTotal","formatTooltipDataset"
757
- ];
758
-
759
- let $$restProps = compute_rest_props($$props, omit_props_names);
760
- let { $$slots: slots = {}, $$scope } = $$props;
761
- const emit = createEmitter(createEventDispatcher, $$props);
762
- let { class: className = undefined } = $$props;
763
- let { lineChart = false } = $$props;
764
- let { datasets = [] } = $$props;
765
- let { axis = false } = $$props;
766
- let { axisLabels = [] } = $$props;
767
- let { tooltip = false } = $$props;
768
- let { legend = false } = $$props;
769
- let { toggleDatasets = false } = $$props;
770
- let { width = 640 } = $$props;
771
- let { height = 320 } = $$props;
772
- let { maxAxisLabels = 8 } = $$props;
773
- let { formatAxisLabel: formatAxisLabelProp = undefined } = $$props;
774
- let { formatLegendLabel: formatLegendLabelProp = undefined } = $$props;
775
- let { formatTooltip: formatTooltipProp = undefined } = $$props;
776
- let { formatTooltipAxisLabel = undefined } = $$props;
777
- let { formatTooltipTotal = undefined } = $$props;
778
- let { formatTooltipDataset = undefined } = $$props;
779
- let el;
780
- let svgEl = null;
781
- let currentIndex = null;
782
- let previousIndex = null;
783
- let hiddenDatasets = [];
784
- let f7Tooltip = null;
785
- let linesOffsets = null;
786
-
787
- const setCurrentIndex = value => {
788
- previousIndex = currentIndex;
789
- $$invalidate(8, currentIndex = value);
790
- };
791
-
792
- const setHiddenDatasets = value => {
793
- $$invalidate(9, hiddenDatasets = value);
794
- };
795
-
796
- const getVisibleLegends = () => {
797
- if (!maxAxisLabels || axisLabels.length <= maxAxisLabels) return axisLabels;
798
- const skipStep = Math.ceil(axisLabels.length / maxAxisLabels);
799
- const filtered = axisLabels.filter((label, index) => index % skipStep === 0);
800
- return filtered;
801
- };
802
-
803
- const getSummValues = () => {
804
- const summValues = [];
805
-
806
- datasets.filter((dataset, index) => !hiddenDatasets.includes(index)).forEach(({ values }) => {
807
- values.forEach((value, valueIndex) => {
808
- if (!summValues[valueIndex]) summValues[valueIndex] = 0;
809
- summValues[valueIndex] += value;
810
- });
811
- });
812
-
813
- return summValues;
814
- };
815
-
816
- const getChartData = () => {
817
- const data = [];
818
-
819
- if (!datasets.length) {
820
- return data;
821
- }
822
-
823
- const lastValues = datasets[0].values.map(() => 0);
824
- let maxValue = 0;
825
-
826
- if (lineChart) {
827
- datasets.forEach(({ values }) => {
828
- const datasetMaxValue = Math.max(...values);
829
- if (datasetMaxValue > maxValue) maxValue = datasetMaxValue;
830
- });
831
- } else {
832
- maxValue = Math.max(...getSummValues());
833
- }
834
-
835
- datasets.filter((dataset, index) => !hiddenDatasets.includes(index)).forEach(({ label, values, color }) => {
836
- const points = values.map((originalValue, valueIndex) => {
837
- lastValues[valueIndex] += originalValue;
838
- const value = lineChart ? originalValue : lastValues[valueIndex];
839
- const x = valueIndex / (values.length - 1) * width;
840
- const y = height - value / maxValue * height;
841
-
842
- if (lineChart) {
843
- return `${valueIndex === 0 ? "M" : "L"}${x},${y}`;
844
- }
845
-
846
- return `${x} ${y}`;
847
- });
848
-
849
- if (!lineChart) {
850
- points.push(`${width} ${height} 0 ${height}`);
851
- }
852
-
853
- data.push({ label, points: points.join(" "), color });
854
- });
855
-
856
- return data.reverse();
857
- };
858
-
859
- const getVerticalLines = () => {
860
- const lines = [];
861
-
862
- if (!datasets.length) {
863
- return lines;
864
- }
865
-
866
- const values = datasets[0].values;
867
-
868
- values.forEach((value, valueIndex) => {
869
- const x = valueIndex / (values.length - 1) * width;
870
- lines.push(x);
871
- });
872
-
873
- return lines;
874
- };
875
-
876
- const toggleDataset = index => {
877
- if (!toggleDatasets) return;
878
-
879
- if (hiddenDatasets.includes(index)) {
880
- hiddenDatasets.splice(hiddenDatasets.indexOf(index), 1);
881
- } else {
882
- hiddenDatasets.push(index);
883
- }
884
-
885
- setHiddenDatasets([...hiddenDatasets]);
886
- };
887
-
888
- const formatAxisLabel = label => {
889
- if (formatAxisLabelProp) return formatAxisLabelProp(label);
890
- return label;
891
- };
892
-
893
- const formatLegendLabel = label => {
894
- if (formatLegendLabelProp) return formatLegendLabelProp(label);
895
- return label;
896
- };
897
-
898
- const calcLinesOffsets = () => {
899
- const lines = svgEl.querySelectorAll("line");
900
- linesOffsets = [];
901
-
902
- for (let i = 0; i < lines.length; i += 1) {
903
- linesOffsets.push(lines[i].getBoundingClientRect().left);
904
- }
905
- };
906
-
907
- const formatTooltip = () => {
908
- if (currentIndex === null) return "";
909
- let total = 0;
910
-
911
- const currentValues = datasets.filter((dataset, index) => !hiddenDatasets.includes(index)).map(dataset => ({
912
- color: dataset.color,
913
- label: dataset.label,
914
- value: dataset.values[currentIndex]
915
- }));
916
-
917
- currentValues.forEach(dataset => {
918
- total += dataset.value;
919
- });
920
-
921
- if (formatTooltipProp) {
922
- return formatTooltipProp({
923
- index: currentIndex,
924
- total,
925
- datasets: currentValues
926
- });
927
- }
928
-
929
- let labelText = formatTooltipAxisLabel
930
- ? formatTooltipAxisLabel(axisLabels[currentIndex])
931
- : formatAxisLabel(axisLabels[currentIndex]);
932
-
933
- if (!labelText) labelText = "";
934
- const totalText = formatTooltipTotal ? formatTooltipTotal(total) : total;
935
-
936
- // prettier-ignore
937
- const datasetsText = currentValues.length > 0
938
- ? `
939
- <ul class="area-chart-tooltip-list">
940
- ${currentValues.map(({ label, color, value }) => {
941
- const valueText = formatTooltipDataset
942
- ? formatTooltipDataset(label, value, color)
943
- : `${label}: ${value}`;
944
-
945
- return `
946
- <li><span style="background-color: ${color};"></span>${valueText}</li>
947
- `;
948
- }).join("")}
949
- </ul>`
950
- : "";
951
-
952
- // prettier-ignore
953
- return `
954
- <div class="area-chart-tooltip-label">${labelText}</div>
955
- <div class="area-chart-tooltip-total">${totalText}</div>
956
- ${datasetsText}
957
- `;
958
- };
959
-
960
- const setTooltip = () => {
961
- if (!tooltip) return;
962
- if (currentIndex === null && !f7Tooltip) return;
963
- const hasVisibleDataSets = datasets.filter((dataset, index) => !hiddenDatasets.includes(index)).length > 0;
964
-
965
- if (!hasVisibleDataSets) {
966
- if (f7Tooltip && f7Tooltip.hide) f7Tooltip.hide();
967
- return;
968
- }
969
-
970
- if (currentIndex !== null && !f7Tooltip) {
971
- f7Tooltip = app.f7.tooltip.create({
972
- trigger: "manual",
973
- containerEl: el,
974
- targetEl: svgEl.querySelector(`line[data-index="${currentIndex}"]`),
975
- text: formatTooltip(),
976
- cssClass: "area-chart-tooltip"
977
- });
978
-
979
- if (f7Tooltip && f7Tooltip.show) {
980
- f7Tooltip.show();
981
- }
982
-
983
- return;
984
- }
985
-
986
- if (!f7Tooltip || !f7Tooltip.hide || !f7Tooltip.show) {
987
- return;
988
- }
989
-
990
- if (currentIndex !== null) {
991
- f7Tooltip.setText(formatTooltip());
992
- f7Tooltip.setTargetEl(svgEl.querySelector(`line[data-index="${currentIndex}"]`));
993
- f7Tooltip.show();
994
- } else {
995
- f7Tooltip.hide();
996
- }
997
- };
998
-
999
- const onMouseEnter = () => {
1000
- calcLinesOffsets();
1001
- };
1002
-
1003
- const onMouseMove = e => {
1004
- if (!linesOffsets) {
1005
- calcLinesOffsets();
1006
- }
1007
-
1008
- let currentLeft = e.pageX;
1009
- if (typeof currentLeft === "undefined") currentLeft = 0;
1010
- const distances = linesOffsets.map(left => Math.abs(currentLeft - left));
1011
- const minDistance = Math.min(...distances);
1012
- const closestIndex = distances.indexOf(minDistance);
1013
- setCurrentIndex(closestIndex);
1014
- };
1015
-
1016
- const onMouseLeave = () => {
1017
- setCurrentIndex(null);
1018
- };
1019
-
1020
- const attachEvents = () => {
1021
- if (!svgEl) return;
1022
- svgEl.addEventListener("mouseenter", onMouseEnter);
1023
- svgEl.addEventListener("mousemove", onMouseMove);
1024
- svgEl.addEventListener("mouseleave", onMouseLeave);
1025
- };
1026
-
1027
- const detachEvents = () => {
1028
- if (!svgEl) return;
1029
- svgEl.removeEventListener("mouseenter", onMouseEnter);
1030
- svgEl.removeEventListener("mousemove", onMouseMove);
1031
- svgEl.removeEventListener("mouseleave", onMouseLeave);
1032
- };
1033
-
1034
- onMount(() => {
1035
- attachEvents();
1036
- });
1037
-
1038
- onDestroy(() => {
1039
- detachEvents();
1040
-
1041
- if (f7Tooltip && f7Tooltip.destroy) {
1042
- f7Tooltip.destroy();
1043
- }
1044
-
1045
- f7Tooltip = null;
1046
- });
1047
-
1048
- const watchCurrentIndex = () => {
1049
- if (currentIndex === previousIndex) return;
1050
- emit("select", [currentIndex]);
1051
- setTooltip();
1052
- };
1053
-
1054
- function svg_binding($$value) {
1055
- binding_callbacks[$$value ? "unshift" : "push"](() => {
1056
- svgEl = $$value;
1057
- $$invalidate(11, svgEl);
1058
- });
1059
- }
1060
-
1061
- const click_handler = index => toggleDataset(index);
1062
-
1063
- function div_binding($$value) {
1064
- binding_callbacks[$$value ? "unshift" : "push"](() => {
1065
- el = $$value;
1066
- $$invalidate(10, el);
1067
- });
1068
- }
1069
-
1070
- $$self.$$set = $$new_props => {
1071
- $$invalidate(53, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props)));
1072
- $$invalidate(19, $$restProps = compute_rest_props($$props, omit_props_names));
1073
- if ("class" in $$new_props) $$invalidate(20, className = $$new_props.class);
1074
- if ("lineChart" in $$new_props) $$invalidate(0, lineChart = $$new_props.lineChart);
1075
- if ("datasets" in $$new_props) $$invalidate(1, datasets = $$new_props.datasets);
1076
- if ("axis" in $$new_props) $$invalidate(2, axis = $$new_props.axis);
1077
- if ("axisLabels" in $$new_props) $$invalidate(3, axisLabels = $$new_props.axisLabels);
1078
- if ("tooltip" in $$new_props) $$invalidate(21, tooltip = $$new_props.tooltip);
1079
- if ("legend" in $$new_props) $$invalidate(4, legend = $$new_props.legend);
1080
- if ("toggleDatasets" in $$new_props) $$invalidate(5, toggleDatasets = $$new_props.toggleDatasets);
1081
- if ("width" in $$new_props) $$invalidate(6, width = $$new_props.width);
1082
- if ("height" in $$new_props) $$invalidate(7, height = $$new_props.height);
1083
- if ("maxAxisLabels" in $$new_props) $$invalidate(22, maxAxisLabels = $$new_props.maxAxisLabels);
1084
- if ("formatAxisLabel" in $$new_props) $$invalidate(23, formatAxisLabelProp = $$new_props.formatAxisLabel);
1085
- if ("formatLegendLabel" in $$new_props) $$invalidate(24, formatLegendLabelProp = $$new_props.formatLegendLabel);
1086
- if ("formatTooltip" in $$new_props) $$invalidate(25, formatTooltipProp = $$new_props.formatTooltip);
1087
- if ("formatTooltipAxisLabel" in $$new_props) $$invalidate(26, formatTooltipAxisLabel = $$new_props.formatTooltipAxisLabel);
1088
- if ("formatTooltipTotal" in $$new_props) $$invalidate(27, formatTooltipTotal = $$new_props.formatTooltipTotal);
1089
- if ("formatTooltipDataset" in $$new_props) $$invalidate(28, formatTooltipDataset = $$new_props.formatTooltipDataset);
1090
- if ("$$scope" in $$new_props) $$invalidate(29, $$scope = $$new_props.$$scope);
1091
- };
1092
-
1093
- $$self.$$.update = () => {
1094
- if ($$self.$$.dirty[0] & /*currentIndex*/ 256) {
1095
- $: watchCurrentIndex(currentIndex);
1096
- }
1097
-
1098
- if ($$self.$$.dirty[0] & /*className*/ 1048576) {
1099
- $: $$invalidate(12, classes = classNames("area-chart", className));
1100
- }
1101
-
1102
- if ($$self.$$.dirty[0] & /*datasets, hiddenDatasets*/ 514) {
1103
- $: $$invalidate(13, chartData = getChartData(datasets, hiddenDatasets));
1104
- }
1105
-
1106
- if ($$self.$$.dirty[0] & /*datasets*/ 2) {
1107
- $: $$invalidate(14, verticalLines = getVerticalLines(datasets));
1108
- }
1109
-
1110
- if ($$self.$$.dirty[0] & /*maxAxisLabels, axisLabels*/ 4194312) {
1111
- $: $$invalidate(15, visibleLegends = getVisibleLegends(maxAxisLabels, axisLabels));
1112
- }
1113
- };
1114
-
1115
- $$props = exclude_internal_props($$props);
1116
-
1117
- return [
1118
- lineChart,
1119
- datasets,
1120
- axis,
1121
- axisLabels,
1122
- legend,
1123
- toggleDatasets,
1124
- width,
1125
- height,
1126
- currentIndex,
1127
- hiddenDatasets,
1128
- el,
1129
- svgEl,
1130
- classes,
1131
- chartData,
1132
- verticalLines,
1133
- visibleLegends,
1134
- toggleDataset,
1135
- formatAxisLabel,
1136
- formatLegendLabel,
1137
- $$restProps,
1138
- className,
1139
- tooltip,
1140
- maxAxisLabels,
1141
- formatAxisLabelProp,
1142
- formatLegendLabelProp,
1143
- formatTooltipProp,
1144
- formatTooltipAxisLabel,
1145
- formatTooltipTotal,
1146
- formatTooltipDataset,
1147
- $$scope,
1148
- slots,
1149
- svg_binding,
1150
- click_handler,
1151
- div_binding
1152
- ];
1153
- }
1154
-
1155
- class Area_chart extends SvelteComponent {
1156
- constructor(options) {
1157
- super();
1158
-
1159
- init(
1160
- this,
1161
- options,
1162
- instance,
1163
- create_fragment,
1164
- safe_not_equal,
1165
- {
1166
- class: 20,
1167
- lineChart: 0,
1168
- datasets: 1,
1169
- axis: 2,
1170
- axisLabels: 3,
1171
- tooltip: 21,
1172
- legend: 4,
1173
- toggleDatasets: 5,
1174
- width: 6,
1175
- height: 7,
1176
- maxAxisLabels: 22,
1177
- formatAxisLabel: 23,
1178
- formatLegendLabel: 24,
1179
- formatTooltip: 25,
1180
- formatTooltipAxisLabel: 26,
1181
- formatTooltipTotal: 27,
1182
- formatTooltipDataset: 28
1183
- },
1184
- [-1, -1, -1]
1185
- );
1186
- }
1187
- }
1188
-
1189
- export default Area_chart;