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