framework7-svelte 6.3.15 → 7.0.0-beta.11

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 (544) 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 +3 -3
  3. package/components/{accordion-item/accordion-item.d.ts → accordion-item.d.ts} +0 -0
  4. package/{esm/svelte → components}/accordion-item.svelte +4 -4
  5. package/components/{accordion-toggle/accordion-toggle.d.ts → accordion-toggle.d.ts} +0 -0
  6. package/{esm/svelte → components}/accordion-toggle.svelte +3 -3
  7. package/components/{accordion/accordion.d.ts → accordion.d.ts} +0 -0
  8. package/{esm/svelte → components}/accordion.svelte +3 -3
  9. package/components/{actions-button/actions-button.d.ts → actions-button.d.ts} +0 -0
  10. package/{esm/svelte → components}/actions-button.svelte +4 -4
  11. package/components/{actions-group/actions-group.d.ts → actions-group.d.ts} +0 -0
  12. package/{esm/svelte → components}/actions-group.svelte +3 -3
  13. package/components/{actions-label/actions-label.d.ts → actions-label.d.ts} +0 -0
  14. package/{esm/svelte → components}/actions-label.svelte +3 -3
  15. package/components/{actions/actions.d.ts → actions.d.ts} +0 -0
  16. package/{esm/svelte → components}/actions.svelte +5 -5
  17. package/components/{app/app.d.ts → app.d.ts} +0 -0
  18. package/{esm/svelte → components}/app.svelte +3 -3
  19. package/components/{appbar/appbar.d.ts → appbar.d.ts} +0 -0
  20. package/{esm/svelte → components}/appbar.svelte +3 -3
  21. package/components/{area-chart/area-chart.d.ts → area-chart.d.ts} +0 -0
  22. package/{esm/svelte → components}/area-chart.svelte +3 -3
  23. package/components/{badge/badge.d.ts → badge.d.ts} +0 -0
  24. package/{esm/svelte → components}/badge.svelte +4 -4
  25. package/components/{block-footer/block-footer.d.ts → block-footer.d.ts} +0 -0
  26. package/{esm/svelte → components}/block-footer.svelte +3 -3
  27. package/components/{block-header/block-header.d.ts → block-header.d.ts} +0 -0
  28. package/{esm/svelte → components}/block-header.svelte +3 -3
  29. package/components/{block-title/block-title.d.ts → block-title.d.ts} +0 -0
  30. package/{esm/svelte → components}/block-title.svelte +3 -3
  31. package/components/{block/block.d.ts → block.d.ts} +0 -0
  32. package/{esm/svelte → components}/block.svelte +4 -4
  33. package/components/breadcrumbs-collapsed.d.ts +17 -0
  34. package/components/breadcrumbs-collapsed.svelte +21 -0
  35. package/components/breadcrumbs-item.d.ts +18 -0
  36. package/components/breadcrumbs-item.svelte +15 -0
  37. package/components/breadcrumbs-separator.d.ts +17 -0
  38. package/components/breadcrumbs-separator.svelte +11 -0
  39. package/components/breadcrumbs.d.ts +17 -0
  40. package/components/breadcrumbs.svelte +13 -0
  41. package/components/{button/button.d.ts → button.d.ts} +0 -0
  42. package/{esm/svelte → components}/button.svelte +6 -7
  43. package/components/{card-content/card-content.d.ts → card-content.d.ts} +0 -0
  44. package/{esm/svelte → components}/card-content.svelte +3 -3
  45. package/components/{card-footer/card-footer.d.ts → card-footer.d.ts} +0 -0
  46. package/{esm/svelte → components}/card-footer.svelte +3 -3
  47. package/components/{card-header/card-header.d.ts → card-header.d.ts} +0 -0
  48. package/{esm/svelte → components}/card-header.svelte +3 -3
  49. package/components/{card/card.d.ts → card.d.ts} +0 -0
  50. package/{esm/svelte → components}/card.svelte +4 -4
  51. package/components/{checkbox/checkbox.d.ts → checkbox.d.ts} +0 -0
  52. package/{esm/svelte → components}/checkbox.svelte +5 -4
  53. package/components/{chip/chip.d.ts → chip.d.ts} +0 -0
  54. package/{esm/svelte → components}/chip.svelte +5 -5
  55. package/components/{col/col.d.ts → col.d.ts} +0 -0
  56. package/{esm/svelte → components}/col.svelte +4 -4
  57. package/components/{fab-backdrop/fab-backdrop.d.ts → fab-backdrop.d.ts} +0 -0
  58. package/{esm/svelte → components}/fab-backdrop.svelte +2 -2
  59. package/components/{fab-button/fab-button.d.ts → fab-button.d.ts} +0 -0
  60. package/{esm/svelte → components}/fab-button.svelte +5 -5
  61. package/components/{fab-buttons/fab-buttons.d.ts → fab-buttons.d.ts} +0 -0
  62. package/{esm/svelte → components}/fab-buttons.svelte +3 -3
  63. package/components/{fab/fab.d.ts → fab.d.ts} +0 -0
  64. package/{esm/svelte → components}/fab.svelte +5 -5
  65. package/components/{gauge/gauge.d.ts → gauge.d.ts} +0 -0
  66. package/{esm/svelte → components}/gauge.svelte +16 -9
  67. package/components/{icon/icon.d.ts → icon.d.ts} +0 -0
  68. package/{esm/svelte → components}/icon.svelte +7 -6
  69. package/components/{input/input.d.ts → input.d.ts} +0 -0
  70. package/{esm/svelte → components}/input.svelte +4 -4
  71. package/components/{link/link.d.ts → link.d.ts} +0 -0
  72. package/{esm/svelte → components}/link.svelte +8 -8
  73. package/components/{list-button/list-button.d.ts → list-button.d.ts} +0 -0
  74. package/{esm/svelte → components}/list-button.svelte +5 -5
  75. package/components/{list-group/list-group.d.ts → list-group.d.ts} +0 -0
  76. package/{esm/svelte → components}/list-group.svelte +10 -7
  77. package/components/{list-index/list-index.d.ts → list-index.d.ts} +0 -0
  78. package/{esm/svelte → components}/list-index.svelte +4 -4
  79. package/components/{list-input/list-input.d.ts → list-input.d.ts} +0 -0
  80. package/{esm/svelte → components}/list-input.svelte +5 -5
  81. package/components/{list-item-cell/list-item-cell.d.ts → list-item-cell.d.ts} +0 -0
  82. package/{esm/svelte → components}/list-item-cell.svelte +3 -3
  83. package/components/{list-item-row/list-item-row.d.ts → list-item-row.d.ts} +0 -0
  84. package/{esm/svelte → components}/list-item-row.svelte +3 -3
  85. package/components/{list-item/list-item.d.ts → list-item.d.ts} +0 -0
  86. package/{esm/svelte → components}/list-item.svelte +8 -8
  87. package/components/{list/list.d.ts → list.d.ts} +0 -0
  88. package/{esm/svelte → components}/list.svelte +6 -6
  89. package/components/{login-screen-title/login-screen-title.d.ts → login-screen-title.d.ts} +0 -0
  90. package/{esm/svelte → components}/login-screen-title.svelte +3 -3
  91. package/components/{login-screen/login-screen.d.ts → login-screen.d.ts} +0 -0
  92. package/{esm/svelte → components}/login-screen.svelte +5 -5
  93. package/components/{menu-dropdown-item/menu-dropdown-item.d.ts → menu-dropdown-item.d.ts} +0 -0
  94. package/{esm/svelte → components}/menu-dropdown-item.svelte +4 -4
  95. package/components/{menu-dropdown/menu-dropdown.d.ts → menu-dropdown.d.ts} +0 -0
  96. package/{esm/svelte → components}/menu-dropdown.svelte +3 -3
  97. package/components/{menu-item/menu-item.d.ts → menu-item.d.ts} +0 -0
  98. package/{esm/svelte → components}/menu-item.svelte +7 -7
  99. package/components/{menu/menu.d.ts → menu.d.ts} +0 -0
  100. package/{esm/svelte → components}/menu.svelte +3 -3
  101. package/components/{message/message.d.ts → message.d.ts} +0 -0
  102. package/{esm/svelte → components}/message.svelte +3 -3
  103. package/components/{messagebar-attachment/messagebar-attachment.d.ts → messagebar-attachment.d.ts} +0 -0
  104. package/{esm/svelte → components}/messagebar-attachment.svelte +4 -4
  105. package/components/{messagebar-attachments/messagebar-attachments.d.ts → messagebar-attachments.d.ts} +0 -0
  106. package/{esm/svelte → components}/messagebar-attachments.svelte +3 -3
  107. package/components/{messagebar-sheet-image/messagebar-sheet-image.d.ts → messagebar-sheet-image.d.ts} +0 -0
  108. package/{esm/svelte → components}/messagebar-sheet-image.svelte +3 -3
  109. package/components/{messagebar-sheet-item/messagebar-sheet-item.d.ts → messagebar-sheet-item.d.ts} +0 -0
  110. package/{esm/svelte → components}/messagebar-sheet-item.svelte +3 -3
  111. package/components/{messagebar-sheet/messagebar-sheet.d.ts → messagebar-sheet.d.ts} +0 -0
  112. package/{esm/svelte → components}/messagebar-sheet.svelte +3 -3
  113. package/components/{messagebar/messagebar.d.ts → messagebar.d.ts} +0 -0
  114. package/{esm/svelte → components}/messagebar.svelte +4 -4
  115. package/components/{messages-title/messages-title.d.ts → messages-title.d.ts} +0 -0
  116. package/{esm/svelte → components}/messages-title.svelte +3 -3
  117. package/components/{messages/messages.d.ts → messages.d.ts} +0 -0
  118. package/{esm/svelte → components}/messages.svelte +4 -4
  119. package/components/{nav-left/nav-left.d.ts → nav-left.d.ts} +0 -0
  120. package/{esm/svelte → components}/nav-left.svelte +6 -5
  121. package/components/{nav-right/nav-right.d.ts → nav-right.d.ts} +0 -0
  122. package/{esm/svelte → components}/nav-right.svelte +3 -3
  123. package/components/{nav-title-large/nav-title-large.d.ts → nav-title-large.d.ts} +0 -0
  124. package/{esm/svelte → components}/nav-title-large.svelte +3 -3
  125. package/components/{nav-title/nav-title.d.ts → nav-title.d.ts} +0 -0
  126. package/{esm/svelte → components}/nav-title.svelte +3 -3
  127. package/components/{navbar/navbar.d.ts → navbar.d.ts} +0 -0
  128. package/{esm/svelte → components}/navbar.svelte +5 -5
  129. package/components/{page-content/page-content.d.ts → page-content.d.ts} +0 -0
  130. package/{esm/svelte → components}/page-content.svelte +5 -5
  131. package/components/{page/page.d.ts → page.d.ts} +0 -0
  132. package/{esm/svelte → components}/page.svelte +4 -4
  133. package/components/{panel/panel.d.ts → panel.d.ts} +0 -0
  134. package/{esm/svelte → components}/panel.svelte +4 -4
  135. package/components/{photo-browser/photo-browser.d.ts → photo-browser.d.ts} +0 -0
  136. package/{esm/svelte → components}/photo-browser.svelte +2 -2
  137. package/components/{pie-chart/pie-chart.d.ts → pie-chart.d.ts} +0 -0
  138. package/{esm/svelte → components}/pie-chart.svelte +3 -3
  139. package/components/{popover/popover.d.ts → popover.d.ts} +0 -0
  140. package/{esm/svelte → components}/popover.svelte +5 -5
  141. package/components/{popup/popup.d.ts → popup.d.ts} +0 -0
  142. package/{esm/svelte → components}/popup.svelte +5 -5
  143. package/components/{preloader/preloader.d.ts → preloader.d.ts} +0 -0
  144. package/{esm/svelte → components}/preloader.svelte +4 -4
  145. package/components/{progressbar/progressbar.d.ts → progressbar.d.ts} +0 -0
  146. package/{esm/svelte → components}/progressbar.svelte +4 -4
  147. package/components/{radio/radio.d.ts → radio.d.ts} +0 -0
  148. package/{esm/svelte → components}/radio.svelte +5 -4
  149. package/components/{range/range.d.ts → range.d.ts} +0 -0
  150. package/{esm/svelte → components}/range.svelte +4 -4
  151. package/components/{routable-modals/routable-modals.d.ts → routable-modals.d.ts} +0 -0
  152. package/{esm/svelte → components}/routable-modals.svelte +1 -1
  153. package/components/{router-context-provider/router-context-provider.d.ts → router-context-provider.d.ts} +0 -0
  154. package/{esm/svelte → components}/router-context-provider.svelte +0 -0
  155. package/components/{row/row.d.ts → row.d.ts} +0 -0
  156. package/{esm/svelte → components}/row.svelte +4 -4
  157. package/components/{searchbar/searchbar.d.ts → searchbar.d.ts} +0 -0
  158. package/{esm/svelte → components}/searchbar.svelte +4 -4
  159. package/components/{segmented/segmented.d.ts → segmented.d.ts} +0 -0
  160. package/{esm/svelte → components}/segmented.svelte +3 -3
  161. package/components/{sheet/sheet.d.ts → sheet.d.ts} +0 -0
  162. package/{esm/svelte → components}/sheet.svelte +5 -5
  163. package/components/{skeleton-avatar/skeleton-avatar.d.ts → skeleton-avatar.d.ts} +1 -0
  164. package/{esm/components → components}/skeleton-avatar.js +1 -0
  165. package/components/{skeleton-block/skeleton-block.d.ts → skeleton-block.d.ts} +1 -0
  166. package/{esm/components → components}/skeleton-block.js +1 -0
  167. package/components/{skeleton-image/skeleton-image.d.ts → skeleton-image.d.ts} +1 -0
  168. package/{esm/components → components}/skeleton-image.js +1 -0
  169. package/components/{skeleton-text/skeleton-text.d.ts → skeleton-text.d.ts} +1 -0
  170. package/{esm/components → components}/skeleton-text.js +1 -0
  171. package/components/{stepper/stepper.d.ts → stepper.d.ts} +0 -0
  172. package/{esm/svelte → components}/stepper.svelte +4 -4
  173. package/components/{subnavbar/subnavbar.d.ts → subnavbar.d.ts} +0 -0
  174. package/{esm/svelte → components}/subnavbar.svelte +3 -3
  175. package/components/{swipeout-actions/swipeout-actions.d.ts → swipeout-actions.d.ts} +0 -0
  176. package/{esm/svelte → components}/swipeout-actions.svelte +3 -3
  177. package/components/{swipeout-button/swipeout-button.d.ts → swipeout-button.d.ts} +0 -0
  178. package/{esm/svelte → components}/swipeout-button.svelte +5 -4
  179. package/components/{swiper-slide/swiper-slide.d.ts → swiper-slide.d.ts} +1 -0
  180. package/components/swiper-slide.js +3 -0
  181. package/components/{swiper/swiper.d.ts → swiper.d.ts} +1 -0
  182. package/components/swiper.js +3 -0
  183. package/components/{tab/tab.d.ts → tab.d.ts} +0 -0
  184. package/{esm/svelte → components}/tab.svelte +5 -5
  185. package/components/{tabs/tabs.d.ts → tabs.d.ts} +0 -0
  186. package/{esm/svelte → components}/tabs.svelte +3 -3
  187. package/components/{text-editor/text-editor.d.ts → text-editor.d.ts} +0 -0
  188. package/{esm/svelte → components}/text-editor.svelte +4 -4
  189. package/components/{toggle/toggle.d.ts → toggle.d.ts} +0 -0
  190. package/{esm/svelte → components}/toggle.svelte +5 -5
  191. package/components/{toolbar/toolbar.d.ts → toolbar.d.ts} +0 -0
  192. package/{esm/svelte → components}/toolbar.svelte +6 -6
  193. package/components/{treeview-item/treeview-item.d.ts → treeview-item.d.ts} +0 -0
  194. package/{esm/svelte → components}/treeview-item.svelte +5 -5
  195. package/components/{treeview/treeview.d.ts → treeview.d.ts} +0 -0
  196. package/{esm/svelte → components}/treeview.svelte +3 -3
  197. package/components/{use-icon/use-icon.d.ts → use-icon.d.ts} +0 -0
  198. package/{esm/svelte → components}/use-icon.svelte +0 -0
  199. package/components/{view/view.d.ts → view.d.ts} +0 -0
  200. package/{esm/svelte → components}/view.svelte +5 -5
  201. package/components/{views/views.d.ts → views.d.ts} +0 -0
  202. package/{esm/svelte → components}/views.svelte +3 -3
  203. package/framework7-svelte.d.ts +5 -1
  204. package/framework7-svelte.js +120 -0
  205. package/package.json +6 -5
  206. package/{esm/shared → shared}/components-router.js +78 -68
  207. package/{esm/shared → shared}/f7.js +17 -23
  208. package/shared/get-reactive-context.js +16 -0
  209. package/shared/get-router-initial-component.js +39 -0
  210. package/{esm/shared → shared}/list-context.js +0 -0
  211. package/{esm/shared → shared}/mixins.js +91 -77
  212. package/shared/modal-state-classes.js +9 -0
  213. package/{esm/shared → shared}/plugin.js +13 -14
  214. package/shared/rest-props.js +10 -0
  215. package/{esm/shared → shared}/router-context.js +0 -0
  216. package/shared/router-open-in-component.svelte +41 -0
  217. package/shared/router-open-in.js +47 -0
  218. package/{esm/shared → shared}/set-reactive-context.js +7 -7
  219. package/{esm/shared → shared}/tabbar-context.js +0 -0
  220. package/shared/use-icon.js +38 -0
  221. package/{esm/shared → shared}/use-route-props.js +5 -3
  222. package/{esm/shared → shared}/use-smart-select.js +8 -8
  223. package/shared/use-store.js +36 -0
  224. package/{esm/shared → shared}/use-tab.js +9 -9
  225. package/shared/use-theme.js +12 -0
  226. package/{esm/shared → shared}/use-tooltip.js +14 -11
  227. package/{esm/shared → shared}/utils.js +33 -40
  228. package/cjs/components/accordion-content.js +0 -93
  229. package/cjs/components/accordion-item.js +0 -159
  230. package/cjs/components/accordion-toggle.js +0 -93
  231. package/cjs/components/accordion.js +0 -95
  232. package/cjs/components/actions-button.js +0 -234
  233. package/cjs/components/actions-group.js +0 -93
  234. package/cjs/components/actions-label.js +0 -110
  235. package/cjs/components/actions.js +0 -259
  236. package/cjs/components/app.js +0 -124
  237. package/cjs/components/appbar.js +0 -295
  238. package/cjs/components/area-chart.js +0 -1162
  239. package/cjs/components/badge.js +0 -117
  240. package/cjs/components/block-footer.js +0 -93
  241. package/cjs/components/block-header.js +0 -93
  242. package/cjs/components/block-title.js +0 -105
  243. package/cjs/components/block.js +0 -209
  244. package/cjs/components/button.js +0 -1261
  245. package/cjs/components/card-content.js +0 -95
  246. package/cjs/components/card-footer.js +0 -93
  247. package/cjs/components/card-header.js +0 -93
  248. package/cjs/components/card.js +0 -790
  249. package/cjs/components/checkbox.js +0 -214
  250. package/cjs/components/chip.js +0 -507
  251. package/cjs/components/col.js +0 -448
  252. package/cjs/components/fab-backdrop.js +0 -76
  253. package/cjs/components/fab-button.js +0 -223
  254. package/cjs/components/fab-buttons.js +0 -95
  255. package/cjs/components/fab.js +0 -400
  256. package/cjs/components/gauge.js +0 -638
  257. package/cjs/components/icon.js +0 -275
  258. package/cjs/components/input.js +0 -2525
  259. package/cjs/components/link.js +0 -535
  260. package/cjs/components/list-button.js +0 -256
  261. package/cjs/components/list-group.js +0 -173
  262. package/cjs/components/list-index.js +0 -244
  263. package/cjs/components/list-input.js +0 -3905
  264. package/cjs/components/list-item-cell.js +0 -93
  265. package/cjs/components/list-item-row.js +0 -93
  266. package/cjs/components/list-item.js +0 -13256
  267. package/cjs/components/list.js +0 -940
  268. package/cjs/components/login-screen-title.js +0 -93
  269. package/cjs/components/login-screen.js +0 -211
  270. package/cjs/components/menu-dropdown-item.js +0 -368
  271. package/cjs/components/menu-dropdown.js +0 -145
  272. package/cjs/components/menu-item.js +0 -735
  273. package/cjs/components/menu.js +0 -97
  274. package/cjs/components/message.js +0 -1291
  275. package/cjs/components/messagebar-attachment.js +0 -218
  276. package/cjs/components/messagebar-attachments.js +0 -93
  277. package/cjs/components/messagebar-sheet-image.js +0 -159
  278. package/cjs/components/messagebar-sheet-item.js +0 -93
  279. package/cjs/components/messagebar-sheet.js +0 -93
  280. package/cjs/components/messagebar.js +0 -721
  281. package/cjs/components/messages-title.js +0 -93
  282. package/cjs/components/messages.js +0 -282
  283. package/cjs/components/nav-left.js +0 -235
  284. package/cjs/components/nav-right.js +0 -95
  285. package/cjs/components/nav-title-large.js +0 -97
  286. package/cjs/components/nav-title.js +0 -190
  287. package/cjs/components/navbar.js +0 -1004
  288. package/cjs/components/page-content.js +0 -575
  289. package/cjs/components/page.js +0 -808
  290. package/cjs/components/panel.js +0 -444
  291. package/cjs/components/photo-browser.js +0 -316
  292. package/cjs/components/pie-chart.js +0 -420
  293. package/cjs/components/popover.js +0 -256
  294. package/cjs/components/popup.js +0 -290
  295. package/cjs/components/preloader.js +0 -213
  296. package/cjs/components/progressbar.js +0 -131
  297. package/cjs/components/radio.js +0 -198
  298. package/cjs/components/range.js +0 -333
  299. package/cjs/components/routable-modals.js +0 -221
  300. package/cjs/components/router-context-provider.js +0 -67
  301. package/cjs/components/row.js +0 -423
  302. package/cjs/components/searchbar.js +0 -1217
  303. package/cjs/components/segmented.js +0 -395
  304. package/cjs/components/sheet.js +0 -394
  305. package/cjs/components/skeleton-avatar.js +0 -9
  306. package/cjs/components/skeleton-block.js +0 -9
  307. package/cjs/components/skeleton-image.js +0 -9
  308. package/cjs/components/skeleton-text.js +0 -9
  309. package/cjs/components/stepper.js +0 -547
  310. package/cjs/components/subnavbar.js +0 -268
  311. package/cjs/components/swipeout-actions.js +0 -116
  312. package/cjs/components/swipeout-button.js +0 -190
  313. package/cjs/components/swiper-slide.js +0 -9
  314. package/cjs/components/swiper.js +0 -9
  315. package/cjs/components/tab.js +0 -302
  316. package/cjs/components/tabs.js +0 -302
  317. package/cjs/components/text-editor.js +0 -364
  318. package/cjs/components/toggle.js +0 -259
  319. package/cjs/components/toolbar.js +0 -408
  320. package/cjs/components/treeview-item.js +0 -1120
  321. package/cjs/components/treeview.js +0 -93
  322. package/cjs/components/use-icon.js +0 -202
  323. package/cjs/components/view.js +0 -520
  324. package/cjs/components/views.js +0 -95
  325. package/cjs/framework7-svelte.js +0 -421
  326. package/cjs/shared/components-router.js +0 -243
  327. package/cjs/shared/f7.js +0 -132
  328. package/cjs/shared/get-reactive-context.js +0 -22
  329. package/cjs/shared/get-router-initial-component.js +0 -48
  330. package/cjs/shared/list-context.js +0 -9
  331. package/cjs/shared/mixins.js +0 -165
  332. package/cjs/shared/modal-state-classes.js +0 -17
  333. package/cjs/shared/plugin.js +0 -69
  334. package/cjs/shared/rest-props.js +0 -21
  335. package/cjs/shared/router-context.js +0 -7
  336. package/cjs/shared/set-reactive-context.js +0 -38
  337. package/cjs/shared/tabbar-context.js +0 -6
  338. package/cjs/shared/use-icon.js +0 -48
  339. package/cjs/shared/use-route-props.js +0 -23
  340. package/cjs/shared/use-smart-select.js +0 -36
  341. package/cjs/shared/use-store.js +0 -45
  342. package/cjs/shared/use-tab.js +0 -47
  343. package/cjs/shared/use-theme.js +0 -20
  344. package/cjs/shared/use-tooltip.js +0 -55
  345. package/cjs/shared/utils.js +0 -144
  346. package/components/accordion/package.json +0 -10
  347. package/components/accordion-content/package.json +0 -10
  348. package/components/accordion-item/package.json +0 -10
  349. package/components/accordion-toggle/package.json +0 -10
  350. package/components/actions/package.json +0 -10
  351. package/components/actions-button/package.json +0 -10
  352. package/components/actions-group/package.json +0 -10
  353. package/components/actions-label/package.json +0 -10
  354. package/components/app/package.json +0 -10
  355. package/components/appbar/package.json +0 -10
  356. package/components/area-chart/package.json +0 -10
  357. package/components/badge/package.json +0 -10
  358. package/components/block/package.json +0 -10
  359. package/components/block-footer/package.json +0 -10
  360. package/components/block-header/package.json +0 -10
  361. package/components/block-title/package.json +0 -10
  362. package/components/button/package.json +0 -10
  363. package/components/card/package.json +0 -10
  364. package/components/card-content/package.json +0 -10
  365. package/components/card-footer/package.json +0 -10
  366. package/components/card-header/package.json +0 -10
  367. package/components/checkbox/package.json +0 -10
  368. package/components/chip/package.json +0 -10
  369. package/components/col/package.json +0 -10
  370. package/components/fab/package.json +0 -10
  371. package/components/fab-backdrop/package.json +0 -10
  372. package/components/fab-button/package.json +0 -10
  373. package/components/fab-buttons/package.json +0 -10
  374. package/components/gauge/package.json +0 -10
  375. package/components/icon/package.json +0 -10
  376. package/components/input/package.json +0 -10
  377. package/components/link/package.json +0 -10
  378. package/components/list/package.json +0 -10
  379. package/components/list-button/package.json +0 -10
  380. package/components/list-group/package.json +0 -10
  381. package/components/list-index/package.json +0 -10
  382. package/components/list-input/package.json +0 -10
  383. package/components/list-item/package.json +0 -10
  384. package/components/list-item-cell/package.json +0 -10
  385. package/components/list-item-row/package.json +0 -10
  386. package/components/login-screen/package.json +0 -10
  387. package/components/login-screen-title/package.json +0 -10
  388. package/components/menu/package.json +0 -10
  389. package/components/menu-dropdown/package.json +0 -10
  390. package/components/menu-dropdown-item/package.json +0 -10
  391. package/components/menu-item/package.json +0 -10
  392. package/components/message/package.json +0 -10
  393. package/components/messagebar/package.json +0 -10
  394. package/components/messagebar-attachment/package.json +0 -10
  395. package/components/messagebar-attachments/package.json +0 -10
  396. package/components/messagebar-sheet/package.json +0 -10
  397. package/components/messagebar-sheet-image/package.json +0 -10
  398. package/components/messagebar-sheet-item/package.json +0 -10
  399. package/components/messages/package.json +0 -10
  400. package/components/messages-title/package.json +0 -10
  401. package/components/nav-left/package.json +0 -10
  402. package/components/nav-right/package.json +0 -10
  403. package/components/nav-title/package.json +0 -10
  404. package/components/nav-title-large/package.json +0 -10
  405. package/components/navbar/package.json +0 -10
  406. package/components/page/package.json +0 -10
  407. package/components/page-content/package.json +0 -10
  408. package/components/panel/package.json +0 -10
  409. package/components/photo-browser/package.json +0 -10
  410. package/components/pie-chart/package.json +0 -10
  411. package/components/popover/package.json +0 -10
  412. package/components/popup/package.json +0 -10
  413. package/components/preloader/package.json +0 -10
  414. package/components/progressbar/package.json +0 -10
  415. package/components/radio/package.json +0 -10
  416. package/components/range/package.json +0 -10
  417. package/components/routable-modals/package.json +0 -10
  418. package/components/router-context-provider/package.json +0 -10
  419. package/components/row/package.json +0 -10
  420. package/components/searchbar/package.json +0 -10
  421. package/components/segmented/package.json +0 -10
  422. package/components/sheet/package.json +0 -10
  423. package/components/skeleton-avatar/package.json +0 -10
  424. package/components/skeleton-block/package.json +0 -10
  425. package/components/skeleton-image/package.json +0 -10
  426. package/components/skeleton-text/package.json +0 -10
  427. package/components/stepper/package.json +0 -10
  428. package/components/subnavbar/package.json +0 -10
  429. package/components/swipeout-actions/package.json +0 -10
  430. package/components/swipeout-button/package.json +0 -10
  431. package/components/swiper/package.json +0 -10
  432. package/components/swiper-slide/package.json +0 -10
  433. package/components/tab/package.json +0 -10
  434. package/components/tabs/package.json +0 -10
  435. package/components/text-editor/package.json +0 -10
  436. package/components/toggle/package.json +0 -10
  437. package/components/toolbar/package.json +0 -10
  438. package/components/treeview/package.json +0 -10
  439. package/components/treeview-item/package.json +0 -10
  440. package/components/use-icon/package.json +0 -10
  441. package/components/view/package.json +0 -10
  442. package/components/views/package.json +0 -10
  443. package/esm/components/accordion-content.js +0 -108
  444. package/esm/components/accordion-item.js +0 -175
  445. package/esm/components/accordion-toggle.js +0 -108
  446. package/esm/components/accordion.js +0 -110
  447. package/esm/components/actions-button.js +0 -257
  448. package/esm/components/actions-group.js +0 -108
  449. package/esm/components/actions-label.js +0 -126
  450. package/esm/components/actions.js +0 -275
  451. package/esm/components/app.js +0 -143
  452. package/esm/components/appbar.js +0 -315
  453. package/esm/components/area-chart.js +0 -1189
  454. package/esm/components/badge.js +0 -134
  455. package/esm/components/block-footer.js +0 -108
  456. package/esm/components/block-header.js +0 -108
  457. package/esm/components/block-title.js +0 -120
  458. package/esm/components/block.js +0 -225
  459. package/esm/components/button.js +0 -1306
  460. package/esm/components/card-content.js +0 -110
  461. package/esm/components/card-footer.js +0 -108
  462. package/esm/components/card-header.js +0 -108
  463. package/esm/components/card.js +0 -816
  464. package/esm/components/checkbox.js +0 -234
  465. package/esm/components/chip.js +0 -539
  466. package/esm/components/col.js +0 -471
  467. package/esm/components/fab-backdrop.js +0 -88
  468. package/esm/components/fab-button.js +0 -248
  469. package/esm/components/fab-buttons.js +0 -110
  470. package/esm/components/fab.js +0 -428
  471. package/esm/components/gauge.js +0 -656
  472. package/esm/components/icon.js +0 -297
  473. package/esm/components/input.js +0 -2559
  474. package/esm/components/link.js +0 -581
  475. package/esm/components/list-button.js +0 -295
  476. package/esm/components/list-group.js +0 -189
  477. package/esm/components/list-index.js +0 -260
  478. package/esm/components/list-input.js +0 -3938
  479. package/esm/components/list-item-cell.js +0 -108
  480. package/esm/components/list-item-row.js +0 -108
  481. package/esm/components/list-item.js +0 -13302
  482. package/esm/components/list.js +0 -963
  483. package/esm/components/login-screen-title.js +0 -108
  484. package/esm/components/login-screen.js +0 -227
  485. package/esm/components/menu-dropdown-item.js +0 -403
  486. package/esm/components/menu-dropdown.js +0 -162
  487. package/esm/components/menu-item.js +0 -775
  488. package/esm/components/menu.js +0 -114
  489. package/esm/components/message.js +0 -1318
  490. package/esm/components/messagebar-attachment.js +0 -238
  491. package/esm/components/messagebar-attachments.js +0 -108
  492. package/esm/components/messagebar-sheet-image.js +0 -178
  493. package/esm/components/messagebar-sheet-item.js +0 -108
  494. package/esm/components/messagebar-sheet.js +0 -108
  495. package/esm/components/messagebar.js +0 -748
  496. package/esm/components/messages-title.js +0 -108
  497. package/esm/components/messages.js +0 -298
  498. package/esm/components/nav-left.js +0 -257
  499. package/esm/components/nav-right.js +0 -110
  500. package/esm/components/nav-title-large.js +0 -114
  501. package/esm/components/nav-title.js +0 -210
  502. package/esm/components/navbar.js +0 -1031
  503. package/esm/components/page-content.js +0 -599
  504. package/esm/components/page.js +0 -831
  505. package/esm/components/panel.js +0 -463
  506. package/esm/components/photo-browser.js +0 -321
  507. package/esm/components/pie-chart.js +0 -445
  508. package/esm/components/popover.js +0 -275
  509. package/esm/components/popup.js +0 -306
  510. package/esm/components/preloader.js +0 -226
  511. package/esm/components/progressbar.js +0 -146
  512. package/esm/components/radio.js +0 -218
  513. package/esm/components/range.js +0 -352
  514. package/esm/components/routable-modals.js +0 -242
  515. package/esm/components/router-context-provider.js +0 -74
  516. package/esm/components/row.js +0 -446
  517. package/esm/components/searchbar.js +0 -1244
  518. package/esm/components/segmented.js +0 -416
  519. package/esm/components/sheet.js +0 -413
  520. package/esm/components/stepper.js +0 -574
  521. package/esm/components/subnavbar.js +0 -290
  522. package/esm/components/swipeout-actions.js +0 -131
  523. package/esm/components/swipeout-button.js +0 -210
  524. package/esm/components/swiper-slide.js +0 -2
  525. package/esm/components/swiper.js +0 -2
  526. package/esm/components/tab.js +0 -335
  527. package/esm/components/tabs.js +0 -323
  528. package/esm/components/text-editor.js +0 -383
  529. package/esm/components/toggle.js +0 -279
  530. package/esm/components/toolbar.js +0 -429
  531. package/esm/components/treeview-item.js +0 -1156
  532. package/esm/components/treeview.js +0 -108
  533. package/esm/components/use-icon.js +0 -220
  534. package/esm/components/view.js +0 -560
  535. package/esm/components/views.js +0 -110
  536. package/esm/framework7-svelte-src.js +0 -105
  537. package/esm/framework7-svelte.js +0 -116
  538. package/esm/shared/get-reactive-context.js +0 -14
  539. package/esm/shared/get-router-initial-component.js +0 -40
  540. package/esm/shared/modal-state-classes.js +0 -10
  541. package/esm/shared/rest-props.js +0 -16
  542. package/esm/shared/use-icon.js +0 -41
  543. package/esm/shared/use-store.js +0 -36
  544. package/esm/shared/use-theme.js +0 -12
@@ -1,2525 +0,0 @@
1
- /* input.svelte generated by Svelte v3.38.2 */
2
- "use strict";
3
-
4
- const { SvelteComponent, append, assign, attr, binding_callbacks, check_outros, compute_rest_props, compute_slots, create_component, create_slot, destroy_component, detach, element, empty, exclude_internal_props, get_spread_object, get_spread_update, group_outros, init, insert, listen, mount_component, noop, run_all, safe_not_equal, select_option, select_options, set_attributes, set_data, space, text, transition_in, transition_out, update_slot } = require("svelte/internal");
5
- const { createEventDispatcher, onMount, afterUpdate, onDestroy } = require("svelte");
6
- const { colorClasses } = require("../shared/mixins");
7
- const { classNames, createEmitter } = require("../shared/utils");
8
- const { restProps } = require("../shared/rest-props");
9
- const { app, f7ready } = require("../shared/f7");
10
- const { default: Toggle } = require("./toggle");
11
- const { default: Range } = require("./range");
12
- const { default: TextEditor } = require("./text-editor");
13
- const get_info_slot_changes = dirty => ({});
14
- const get_info_slot_context = ctx => ({});
15
- const get_error_message_slot_changes = dirty => ({});
16
- const get_error_message_slot_context = ctx => ({});
17
-
18
- // (626:0) {:else}
19
- function create_else_block_1(ctx) {
20
- let input;
21
- let input_validate_value;
22
- let input_data_validate_value;
23
- let input_data_validate_on_blur_value;
24
- let input_data_error_message_value;
25
- let input_value_value;
26
- let mounted;
27
- let dispose;
28
-
29
- let input_levels = [
30
- { style: /*inputStyle*/ ctx[23] },
31
- { name: /*name*/ ctx[2] },
32
- { type: /*inputType*/ ctx[35] },
33
- { placeholder: /*placeholder*/ ctx[3] },
34
- { id: /*inputId*/ ctx[4] },
35
- { size: /*size*/ ctx[5] },
36
- { accept: /*accept*/ ctx[6] },
37
- { autocomplete: /*autocomplete*/ ctx[7] },
38
- { autocorrect: /*autocorrect*/ ctx[8] },
39
- {
40
- autocapitalize: /*autocapitalize*/ ctx[9]
41
- },
42
- { spellcheck: /*spellcheck*/ ctx[10] },
43
- { autofocus: /*autofocus*/ ctx[11] },
44
- { autosave: /*autosave*/ ctx[12] },
45
- { checked: /*checked*/ ctx[13] },
46
- { disabled: /*disabled*/ ctx[14] },
47
- { max: /*max*/ ctx[15] },
48
- { maxlength: /*maxlength*/ ctx[18] },
49
- { min: /*min*/ ctx[16] },
50
- { minlength: /*minlength*/ ctx[19] },
51
- { step: /*step*/ ctx[17] },
52
- { multiple: /*multiple*/ ctx[20] },
53
- { readOnly: /*readonly*/ ctx[21] },
54
- { required: /*required*/ ctx[22] },
55
- { pattern: /*pattern*/ ctx[24] },
56
- {
57
- validate: input_validate_value = typeof /*validate*/ ctx[25] === "string" && /*validate*/ ctx[25].length
58
- ? /*validate*/ ctx[25]
59
- : undefined
60
- },
61
- {
62
- "data-validate": input_data_validate_value = /*validate*/ ctx[25] === true || /*validate*/ ctx[25] === "" || /*validateOnBlur*/ ctx[26] === true || /*validateOnBlur*/ ctx[26] === ""
63
- ? true
64
- : undefined
65
- },
66
- {
67
- "data-validate-on-blur": input_data_validate_on_blur_value = /*validateOnBlur*/ ctx[26] === true || /*validateOnBlur*/ ctx[26] === ""
68
- ? true
69
- : undefined
70
- },
71
- { tabindex: /*tabindex*/ ctx[27] },
72
- {
73
- "data-error-message": input_data_error_message_value = /*errorMessageForce*/ ctx[31]
74
- ? undefined
75
- : /*errorMessage*/ ctx[30]
76
- },
77
- { class: /*inputClassName*/ ctx[39] },
78
- {
79
- value: input_value_value = /*type*/ ctx[1] === "datepicker" || /*type*/ ctx[1] === "colorpicker" || /*type*/ ctx[1] === "file"
80
- ? ""
81
- : /*inputValue*/ ctx[37]
82
- },
83
- restProps(/*$$restProps*/ ctx[46])
84
- ];
85
-
86
- let input_data = {};
87
-
88
- for (let i = 0; i < input_levels.length; i += 1) {
89
- input_data = assign(input_data, input_levels[i]);
90
- }
91
-
92
- return {
93
- c() {
94
- input = element("input");
95
- set_attributes(input, input_data);
96
- },
97
- m(target, anchor) {
98
- insert(target, input, anchor);
99
- input.value = input_data.value;
100
- /*input_binding_1*/ ctx[65](input);
101
-
102
- if (!mounted) {
103
- dispose = [
104
- listen(input, "focus", /*onFocus*/ ctx[43]),
105
- listen(input, "blur", /*onBlur*/ ctx[44]),
106
- listen(input, "input", /*onInput*/ ctx[42]),
107
- listen(input, "change", /*onChange*/ ctx[45])
108
- ];
109
-
110
- mounted = true;
111
- }
112
- },
113
- p(ctx, dirty) {
114
- set_attributes(input, input_data = get_spread_update(input_levels, [
115
- dirty[0] & /*inputStyle*/ 8388608 && { style: /*inputStyle*/ ctx[23] },
116
- dirty[0] & /*name*/ 4 && { name: /*name*/ ctx[2] },
117
- dirty[1] & /*inputType*/ 16 && { type: /*inputType*/ ctx[35] },
118
- dirty[0] & /*placeholder*/ 8 && { placeholder: /*placeholder*/ ctx[3] },
119
- dirty[0] & /*inputId*/ 16 && { id: /*inputId*/ ctx[4] },
120
- dirty[0] & /*size*/ 32 && { size: /*size*/ ctx[5] },
121
- dirty[0] & /*accept*/ 64 && { accept: /*accept*/ ctx[6] },
122
- dirty[0] & /*autocomplete*/ 128 && { autocomplete: /*autocomplete*/ ctx[7] },
123
- dirty[0] & /*autocorrect*/ 256 && { autocorrect: /*autocorrect*/ ctx[8] },
124
- dirty[0] & /*autocapitalize*/ 512 && {
125
- autocapitalize: /*autocapitalize*/ ctx[9]
126
- },
127
- dirty[0] & /*spellcheck*/ 1024 && { spellcheck: /*spellcheck*/ ctx[10] },
128
- dirty[0] & /*autofocus*/ 2048 && { autofocus: /*autofocus*/ ctx[11] },
129
- dirty[0] & /*autosave*/ 4096 && { autosave: /*autosave*/ ctx[12] },
130
- dirty[0] & /*checked*/ 8192 && { checked: /*checked*/ ctx[13] },
131
- dirty[0] & /*disabled*/ 16384 && { disabled: /*disabled*/ ctx[14] },
132
- dirty[0] & /*max*/ 32768 && { max: /*max*/ ctx[15] },
133
- dirty[0] & /*maxlength*/ 262144 && { maxlength: /*maxlength*/ ctx[18] },
134
- dirty[0] & /*min*/ 65536 && { min: /*min*/ ctx[16] },
135
- dirty[0] & /*minlength*/ 524288 && { minlength: /*minlength*/ ctx[19] },
136
- dirty[0] & /*step*/ 131072 && { step: /*step*/ ctx[17] },
137
- dirty[0] & /*multiple*/ 1048576 && { multiple: /*multiple*/ ctx[20] },
138
- dirty[0] & /*readonly*/ 2097152 && { readOnly: /*readonly*/ ctx[21] },
139
- dirty[0] & /*required*/ 4194304 && { required: /*required*/ ctx[22] },
140
- dirty[0] & /*pattern*/ 16777216 && { pattern: /*pattern*/ ctx[24] },
141
- dirty[0] & /*validate*/ 33554432 && input_validate_value !== (input_validate_value = typeof /*validate*/ ctx[25] === "string" && /*validate*/ ctx[25].length
142
- ? /*validate*/ ctx[25]
143
- : undefined) && { validate: input_validate_value },
144
- dirty[0] & /*validate, validateOnBlur*/ 100663296 && input_data_validate_value !== (input_data_validate_value = /*validate*/ ctx[25] === true || /*validate*/ ctx[25] === "" || /*validateOnBlur*/ ctx[26] === true || /*validateOnBlur*/ ctx[26] === ""
145
- ? true
146
- : undefined) && {
147
- "data-validate": input_data_validate_value
148
- },
149
- dirty[0] & /*validateOnBlur*/ 67108864 && input_data_validate_on_blur_value !== (input_data_validate_on_blur_value = /*validateOnBlur*/ ctx[26] === true || /*validateOnBlur*/ ctx[26] === ""
150
- ? true
151
- : undefined) && {
152
- "data-validate-on-blur": input_data_validate_on_blur_value
153
- },
154
- dirty[0] & /*tabindex*/ 134217728 && { tabindex: /*tabindex*/ ctx[27] },
155
- dirty[0] & /*errorMessage*/ 1073741824 | dirty[1] & /*errorMessageForce*/ 1 && input_data_error_message_value !== (input_data_error_message_value = /*errorMessageForce*/ ctx[31]
156
- ? undefined
157
- : /*errorMessage*/ ctx[30]) && {
158
- "data-error-message": input_data_error_message_value
159
- },
160
- dirty[1] & /*inputClassName*/ 256 && { class: /*inputClassName*/ ctx[39] },
161
- dirty[0] & /*type*/ 2 | dirty[1] & /*inputValue*/ 64 && input_value_value !== (input_value_value = /*type*/ ctx[1] === "datepicker" || /*type*/ ctx[1] === "colorpicker" || /*type*/ ctx[1] === "file"
162
- ? ""
163
- : /*inputValue*/ ctx[37]) && input.value !== input_value_value && { value: input_value_value },
164
- dirty[1] & /*$$restProps*/ 32768 && restProps(/*$$restProps*/ ctx[46])
165
- ]));
166
-
167
- if ("value" in input_data) {
168
- input.value = input_data.value;
169
- }
170
- },
171
- i: noop,
172
- o: noop,
173
- d(detaching) {
174
- if (detaching) detach(input);
175
- /*input_binding_1*/ ctx[65](null);
176
- mounted = false;
177
- run_all(dispose);
178
- }
179
- };
180
- }
181
-
182
- // (614:32)
183
- function create_if_block_13(ctx) {
184
- let texteditor;
185
- let current;
186
-
187
- const texteditor_spread_levels = [
188
- {
189
- value: typeof /*value*/ ctx[0] === "undefined"
190
- ? ""
191
- : /*value*/ ctx[0]
192
- },
193
- { resizable: /*resizable*/ ctx[28] },
194
- { placeholder: /*placeholder*/ ctx[3] },
195
- { onTextEditorFocus: /*onFocus*/ ctx[43] },
196
- { onTextEditorBlur: /*onBlur*/ ctx[44] },
197
- { onTextEditorInput: /*onInput*/ ctx[42] },
198
- { onTextEditorChange: /*onChange*/ ctx[45] },
199
- /*textEditorParams*/ ctx[34],
200
- restProps(/*$$restProps*/ ctx[46])
201
- ];
202
-
203
- let texteditor_props = {};
204
-
205
- for (let i = 0; i < texteditor_spread_levels.length; i += 1) {
206
- texteditor_props = assign(texteditor_props, texteditor_spread_levels[i]);
207
- }
208
-
209
- texteditor = new TextEditor({ props: texteditor_props });
210
-
211
- return {
212
- c() {
213
- create_component(texteditor.$$.fragment);
214
- },
215
- m(target, anchor) {
216
- mount_component(texteditor, target, anchor);
217
- current = true;
218
- },
219
- p(ctx, dirty) {
220
- const texteditor_changes = (dirty[0] & /*value, resizable, placeholder*/ 268435465 | dirty[1] & /*onFocus, onBlur, onInput, onChange, textEditorParams, $$restProps*/ 63496)
221
- ? get_spread_update(texteditor_spread_levels, [
222
- dirty[0] & /*value*/ 1 && {
223
- value: typeof /*value*/ ctx[0] === "undefined"
224
- ? ""
225
- : /*value*/ ctx[0]
226
- },
227
- dirty[0] & /*resizable*/ 268435456 && { resizable: /*resizable*/ ctx[28] },
228
- dirty[0] & /*placeholder*/ 8 && { placeholder: /*placeholder*/ ctx[3] },
229
- dirty[1] & /*onFocus*/ 4096 && { onTextEditorFocus: /*onFocus*/ ctx[43] },
230
- dirty[1] & /*onBlur*/ 8192 && { onTextEditorBlur: /*onBlur*/ ctx[44] },
231
- dirty[1] & /*onInput*/ 2048 && { onTextEditorInput: /*onInput*/ ctx[42] },
232
- dirty[1] & /*onChange*/ 16384 && { onTextEditorChange: /*onChange*/ ctx[45] },
233
- dirty[1] & /*textEditorParams*/ 8 && get_spread_object(/*textEditorParams*/ ctx[34]),
234
- dirty[1] & /*$$restProps*/ 32768 && get_spread_object(restProps(/*$$restProps*/ ctx[46]))
235
- ])
236
- : {};
237
-
238
- texteditor.$set(texteditor_changes);
239
- },
240
- i(local) {
241
- if (current) return;
242
- transition_in(texteditor.$$.fragment, local);
243
- current = true;
244
- },
245
- o(local) {
246
- transition_out(texteditor.$$.fragment, local);
247
- current = false;
248
- },
249
- d(detaching) {
250
- destroy_component(texteditor, detaching);
251
- }
252
- };
253
- }
254
-
255
- // (601:27)
256
- function create_if_block_12(ctx) {
257
- let range;
258
- let current;
259
-
260
- const range_spread_levels = [
261
- { value: /*value*/ ctx[0] },
262
- { disabled: /*disabled*/ ctx[14] },
263
- { min: /*min*/ ctx[16] },
264
- { max: /*max*/ ctx[15] },
265
- { step: /*step*/ ctx[17] },
266
- { name: /*name*/ ctx[2] },
267
- { id: /*inputId*/ ctx[4] },
268
- { input: true },
269
- restProps(/*$$restProps*/ ctx[46])
270
- ];
271
-
272
- let range_props = {};
273
-
274
- for (let i = 0; i < range_spread_levels.length; i += 1) {
275
- range_props = assign(range_props, range_spread_levels[i]);
276
- }
277
-
278
- range = new Range({ props: range_props });
279
- range.$on("rangeChange", /*onChange*/ ctx[45]);
280
-
281
- return {
282
- c() {
283
- create_component(range.$$.fragment);
284
- },
285
- m(target, anchor) {
286
- mount_component(range, target, anchor);
287
- current = true;
288
- },
289
- p(ctx, dirty) {
290
- const range_changes = (dirty[0] & /*value, disabled, min, max, step, name, inputId*/ 245781 | dirty[1] & /*$$restProps*/ 32768)
291
- ? get_spread_update(range_spread_levels, [
292
- dirty[0] & /*value*/ 1 && { value: /*value*/ ctx[0] },
293
- dirty[0] & /*disabled*/ 16384 && { disabled: /*disabled*/ ctx[14] },
294
- dirty[0] & /*min*/ 65536 && { min: /*min*/ ctx[16] },
295
- dirty[0] & /*max*/ 32768 && { max: /*max*/ ctx[15] },
296
- dirty[0] & /*step*/ 131072 && { step: /*step*/ ctx[17] },
297
- dirty[0] & /*name*/ 4 && { name: /*name*/ ctx[2] },
298
- dirty[0] & /*inputId*/ 16 && { id: /*inputId*/ ctx[4] },
299
- range_spread_levels[7],
300
- dirty[1] & /*$$restProps*/ 32768 && get_spread_object(restProps(/*$$restProps*/ ctx[46]))
301
- ])
302
- : {};
303
-
304
- range.$set(range_changes);
305
- },
306
- i(local) {
307
- if (current) return;
308
- transition_in(range.$$.fragment, local);
309
- current = true;
310
- },
311
- o(local) {
312
- transition_out(range.$$.fragment, local);
313
- current = false;
314
- },
315
- d(detaching) {
316
- destroy_component(range, detaching);
317
- }
318
- };
319
- }
320
-
321
- // (590:28)
322
- function create_if_block_11(ctx) {
323
- let toggle;
324
- let current;
325
-
326
- const toggle_spread_levels = [
327
- { checked: /*checked*/ ctx[13] },
328
- { readonly: /*readonly*/ ctx[21] },
329
- { name: /*name*/ ctx[2] },
330
- { value: /*value*/ ctx[0] },
331
- { disabled: /*disabled*/ ctx[14] },
332
- { id: /*inputId*/ ctx[4] },
333
- restProps(/*$$restProps*/ ctx[46])
334
- ];
335
-
336
- let toggle_props = {};
337
-
338
- for (let i = 0; i < toggle_spread_levels.length; i += 1) {
339
- toggle_props = assign(toggle_props, toggle_spread_levels[i]);
340
- }
341
-
342
- toggle = new Toggle({ props: toggle_props });
343
- toggle.$on("change", /*onChange*/ ctx[45]);
344
-
345
- return {
346
- c() {
347
- create_component(toggle.$$.fragment);
348
- },
349
- m(target, anchor) {
350
- mount_component(toggle, target, anchor);
351
- current = true;
352
- },
353
- p(ctx, dirty) {
354
- const toggle_changes = (dirty[0] & /*checked, readonly, name, value, disabled, inputId*/ 2121749 | dirty[1] & /*$$restProps*/ 32768)
355
- ? get_spread_update(toggle_spread_levels, [
356
- dirty[0] & /*checked*/ 8192 && { checked: /*checked*/ ctx[13] },
357
- dirty[0] & /*readonly*/ 2097152 && { readonly: /*readonly*/ ctx[21] },
358
- dirty[0] & /*name*/ 4 && { name: /*name*/ ctx[2] },
359
- dirty[0] & /*value*/ 1 && { value: /*value*/ ctx[0] },
360
- dirty[0] & /*disabled*/ 16384 && { disabled: /*disabled*/ ctx[14] },
361
- dirty[0] & /*inputId*/ 16 && { id: /*inputId*/ ctx[4] },
362
- dirty[1] & /*$$restProps*/ 32768 && get_spread_object(restProps(/*$$restProps*/ ctx[46]))
363
- ])
364
- : {};
365
-
366
- toggle.$set(toggle_changes);
367
- },
368
- i(local) {
369
- if (current) return;
370
- transition_in(toggle.$$.fragment, local);
371
- current = true;
372
- },
373
- o(local) {
374
- transition_out(toggle.$$.fragment, local);
375
- current = false;
376
- },
377
- d(detaching) {
378
- destroy_component(toggle, detaching);
379
- }
380
- };
381
- }
382
-
383
- // (546:30)
384
- function create_if_block_10(ctx) {
385
- let textarea;
386
- let textarea_validate_value;
387
- let textarea_data_validate_value;
388
- let textarea_data_validate_on_blur_value;
389
- let textarea_data_error_message_value;
390
- let mounted;
391
- let dispose;
392
-
393
- let textarea_levels = [
394
- { style: /*inputStyle*/ ctx[23] },
395
- { name: /*name*/ ctx[2] },
396
- { placeholder: /*placeholder*/ ctx[3] },
397
- { id: /*inputId*/ ctx[4] },
398
- { size: /*size*/ ctx[5] },
399
- { accept: /*accept*/ ctx[6] },
400
- { autocomplete: /*autocomplete*/ ctx[7] },
401
- { autocorrect: /*autocorrect*/ ctx[8] },
402
- {
403
- autocapitalize: /*autocapitalize*/ ctx[9]
404
- },
405
- { spellcheck: /*spellcheck*/ ctx[10] },
406
- { autofocus: /*autofocus*/ ctx[11] },
407
- { autosave: /*autosave*/ ctx[12] },
408
- { checked: /*checked*/ ctx[13] },
409
- { disabled: /*disabled*/ ctx[14] },
410
- { max: /*max*/ ctx[15] },
411
- { maxlength: /*maxlength*/ ctx[18] },
412
- { min: /*min*/ ctx[16] },
413
- { minlength: /*minlength*/ ctx[19] },
414
- { step: /*step*/ ctx[17] },
415
- { multiple: /*multiple*/ ctx[20] },
416
- { readOnly: /*readonly*/ ctx[21] },
417
- { required: /*required*/ ctx[22] },
418
- { pattern: /*pattern*/ ctx[24] },
419
- {
420
- validate: textarea_validate_value = typeof /*validate*/ ctx[25] === "string" && /*validate*/ ctx[25].length
421
- ? /*validate*/ ctx[25]
422
- : undefined
423
- },
424
- {
425
- "data-validate": textarea_data_validate_value = /*validate*/ ctx[25] === true || /*validate*/ ctx[25] === "" || /*validateOnBlur*/ ctx[26] === true || /*validateOnBlur*/ ctx[26] === ""
426
- ? true
427
- : undefined
428
- },
429
- {
430
- "data-validate-on-blur": textarea_data_validate_on_blur_value = /*validateOnBlur*/ ctx[26] === true || /*validateOnBlur*/ ctx[26] === ""
431
- ? true
432
- : undefined
433
- },
434
- { tabindex: /*tabindex*/ ctx[27] },
435
- {
436
- "data-error-message": textarea_data_error_message_value = /*errorMessageForce*/ ctx[31]
437
- ? undefined
438
- : /*errorMessage*/ ctx[30]
439
- },
440
- { class: /*inputClassName*/ ctx[39] },
441
- { value: /*inputValue*/ ctx[37] },
442
- restProps(/*$$restProps*/ ctx[46])
443
- ];
444
-
445
- let textarea_data = {};
446
-
447
- for (let i = 0; i < textarea_levels.length; i += 1) {
448
- textarea_data = assign(textarea_data, textarea_levels[i]);
449
- }
450
-
451
- return {
452
- c() {
453
- textarea = element("textarea");
454
- set_attributes(textarea, textarea_data);
455
- },
456
- m(target, anchor) {
457
- insert(target, textarea, anchor);
458
- /*textarea_binding_1*/ ctx[64](textarea);
459
-
460
- if (!mounted) {
461
- dispose = [
462
- listen(textarea, "focus", /*onFocus*/ ctx[43]),
463
- listen(textarea, "blur", /*onBlur*/ ctx[44]),
464
- listen(textarea, "input", /*onInput*/ ctx[42]),
465
- listen(textarea, "change", /*onChange*/ ctx[45])
466
- ];
467
-
468
- mounted = true;
469
- }
470
- },
471
- p(ctx, dirty) {
472
- set_attributes(textarea, textarea_data = get_spread_update(textarea_levels, [
473
- dirty[0] & /*inputStyle*/ 8388608 && { style: /*inputStyle*/ ctx[23] },
474
- dirty[0] & /*name*/ 4 && { name: /*name*/ ctx[2] },
475
- dirty[0] & /*placeholder*/ 8 && { placeholder: /*placeholder*/ ctx[3] },
476
- dirty[0] & /*inputId*/ 16 && { id: /*inputId*/ ctx[4] },
477
- dirty[0] & /*size*/ 32 && { size: /*size*/ ctx[5] },
478
- dirty[0] & /*accept*/ 64 && { accept: /*accept*/ ctx[6] },
479
- dirty[0] & /*autocomplete*/ 128 && { autocomplete: /*autocomplete*/ ctx[7] },
480
- dirty[0] & /*autocorrect*/ 256 && { autocorrect: /*autocorrect*/ ctx[8] },
481
- dirty[0] & /*autocapitalize*/ 512 && {
482
- autocapitalize: /*autocapitalize*/ ctx[9]
483
- },
484
- dirty[0] & /*spellcheck*/ 1024 && { spellcheck: /*spellcheck*/ ctx[10] },
485
- dirty[0] & /*autofocus*/ 2048 && { autofocus: /*autofocus*/ ctx[11] },
486
- dirty[0] & /*autosave*/ 4096 && { autosave: /*autosave*/ ctx[12] },
487
- dirty[0] & /*checked*/ 8192 && { checked: /*checked*/ ctx[13] },
488
- dirty[0] & /*disabled*/ 16384 && { disabled: /*disabled*/ ctx[14] },
489
- dirty[0] & /*max*/ 32768 && { max: /*max*/ ctx[15] },
490
- dirty[0] & /*maxlength*/ 262144 && { maxlength: /*maxlength*/ ctx[18] },
491
- dirty[0] & /*min*/ 65536 && { min: /*min*/ ctx[16] },
492
- dirty[0] & /*minlength*/ 524288 && { minlength: /*minlength*/ ctx[19] },
493
- dirty[0] & /*step*/ 131072 && { step: /*step*/ ctx[17] },
494
- dirty[0] & /*multiple*/ 1048576 && { multiple: /*multiple*/ ctx[20] },
495
- dirty[0] & /*readonly*/ 2097152 && { readOnly: /*readonly*/ ctx[21] },
496
- dirty[0] & /*required*/ 4194304 && { required: /*required*/ ctx[22] },
497
- dirty[0] & /*pattern*/ 16777216 && { pattern: /*pattern*/ ctx[24] },
498
- dirty[0] & /*validate*/ 33554432 && textarea_validate_value !== (textarea_validate_value = typeof /*validate*/ ctx[25] === "string" && /*validate*/ ctx[25].length
499
- ? /*validate*/ ctx[25]
500
- : undefined) && { validate: textarea_validate_value },
501
- dirty[0] & /*validate, validateOnBlur*/ 100663296 && textarea_data_validate_value !== (textarea_data_validate_value = /*validate*/ ctx[25] === true || /*validate*/ ctx[25] === "" || /*validateOnBlur*/ ctx[26] === true || /*validateOnBlur*/ ctx[26] === ""
502
- ? true
503
- : undefined) && {
504
- "data-validate": textarea_data_validate_value
505
- },
506
- dirty[0] & /*validateOnBlur*/ 67108864 && textarea_data_validate_on_blur_value !== (textarea_data_validate_on_blur_value = /*validateOnBlur*/ ctx[26] === true || /*validateOnBlur*/ ctx[26] === ""
507
- ? true
508
- : undefined) && {
509
- "data-validate-on-blur": textarea_data_validate_on_blur_value
510
- },
511
- dirty[0] & /*tabindex*/ 134217728 && { tabindex: /*tabindex*/ ctx[27] },
512
- dirty[0] & /*errorMessage*/ 1073741824 | dirty[1] & /*errorMessageForce*/ 1 && textarea_data_error_message_value !== (textarea_data_error_message_value = /*errorMessageForce*/ ctx[31]
513
- ? undefined
514
- : /*errorMessage*/ ctx[30]) && {
515
- "data-error-message": textarea_data_error_message_value
516
- },
517
- dirty[1] & /*inputClassName*/ 256 && { class: /*inputClassName*/ ctx[39] },
518
- dirty[1] & /*inputValue*/ 64 && { value: /*inputValue*/ ctx[37] },
519
- dirty[1] & /*$$restProps*/ 32768 && restProps(/*$$restProps*/ ctx[46])
520
- ]));
521
- },
522
- i: noop,
523
- o: noop,
524
- d(detaching) {
525
- if (detaching) detach(textarea);
526
- /*textarea_binding_1*/ ctx[64](null);
527
- mounted = false;
528
- run_all(dispose);
529
- }
530
- };
531
- }
532
-
533
- // (500:28)
534
- function create_if_block_9(ctx) {
535
- let select;
536
- let select_validate_value;
537
- let select_data_validate_value;
538
- let select_data_validate_on_blur_value;
539
- let select_data_error_message_value;
540
- let current;
541
- let mounted;
542
- let dispose;
543
- const default_slot_template = /*#slots*/ ctx[59].default;
544
- const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[58], null);
545
-
546
- let select_levels = [
547
- { style: /*inputStyle*/ ctx[23] },
548
- { name: /*name*/ ctx[2] },
549
- { placeholder: /*placeholder*/ ctx[3] },
550
- { id: /*inputId*/ ctx[4] },
551
- { size: /*size*/ ctx[5] },
552
- { accept: /*accept*/ ctx[6] },
553
- { autocomplete: /*autocomplete*/ ctx[7] },
554
- { autocorrect: /*autocorrect*/ ctx[8] },
555
- {
556
- autocapitalize: /*autocapitalize*/ ctx[9]
557
- },
558
- { spellcheck: /*spellcheck*/ ctx[10] },
559
- { autofocus: /*autofocus*/ ctx[11] },
560
- { autosave: /*autosave*/ ctx[12] },
561
- { checked: /*checked*/ ctx[13] },
562
- { disabled: /*disabled*/ ctx[14] },
563
- { max: /*max*/ ctx[15] },
564
- { maxlength: /*maxlength*/ ctx[18] },
565
- { min: /*min*/ ctx[16] },
566
- { minlength: /*minlength*/ ctx[19] },
567
- { step: /*step*/ ctx[17] },
568
- { multiple: /*multiple*/ ctx[20] },
569
- { readonly: /*readonly*/ ctx[21] },
570
- { required: /*required*/ ctx[22] },
571
- { pattern: /*pattern*/ ctx[24] },
572
- {
573
- validate: select_validate_value = typeof /*validate*/ ctx[25] === "string" && /*validate*/ ctx[25].length
574
- ? /*validate*/ ctx[25]
575
- : undefined
576
- },
577
- {
578
- "data-validate": select_data_validate_value = /*validate*/ ctx[25] === true || /*validate*/ ctx[25] === "" || /*validateOnBlur*/ ctx[26] === true || /*validateOnBlur*/ ctx[26] === ""
579
- ? true
580
- : undefined
581
- },
582
- {
583
- "data-validate-on-blur": select_data_validate_on_blur_value = /*validateOnBlur*/ ctx[26] === true || /*validateOnBlur*/ ctx[26] === ""
584
- ? true
585
- : undefined
586
- },
587
- { tabindex: /*tabindex*/ ctx[27] },
588
- {
589
- "data-error-message": select_data_error_message_value = /*errorMessageForce*/ ctx[31]
590
- ? undefined
591
- : /*errorMessage*/ ctx[30]
592
- },
593
- { class: /*inputClassName*/ ctx[39] },
594
- { value: /*inputValue*/ ctx[37] },
595
- restProps(/*$$restProps*/ ctx[46])
596
- ];
597
-
598
- let select_data = {};
599
-
600
- for (let i = 0; i < select_levels.length; i += 1) {
601
- select_data = assign(select_data, select_levels[i]);
602
- }
603
-
604
- return {
605
- c() {
606
- select = element("select");
607
- if (default_slot) default_slot.c();
608
- set_attributes(select, select_data);
609
- },
610
- m(target, anchor) {
611
- insert(target, select, anchor);
612
-
613
- if (default_slot) {
614
- default_slot.m(select, null);
615
- }
616
-
617
- if (select_data.multiple) select_options(select, select_data.value);
618
- /*select_binding_1*/ ctx[63](select);
619
- current = true;
620
-
621
- if (!mounted) {
622
- dispose = [
623
- listen(select, "focus", /*onFocus*/ ctx[43]),
624
- listen(select, "blur", /*onBlur*/ ctx[44]),
625
- listen(select, "input", /*onInput*/ ctx[42]),
626
- listen(select, "change", /*onChange*/ ctx[45])
627
- ];
628
-
629
- mounted = true;
630
- }
631
- },
632
- p(ctx, dirty) {
633
- if (default_slot) {
634
- if (default_slot.p && (!current || dirty[1] & /*$$scope*/ 134217728)) {
635
- update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[58], dirty, null, null);
636
- }
637
- }
638
-
639
- set_attributes(select, select_data = get_spread_update(select_levels, [
640
- (!current || dirty[0] & /*inputStyle*/ 8388608) && { style: /*inputStyle*/ ctx[23] },
641
- (!current || dirty[0] & /*name*/ 4) && { name: /*name*/ ctx[2] },
642
- (!current || dirty[0] & /*placeholder*/ 8) && { placeholder: /*placeholder*/ ctx[3] },
643
- (!current || dirty[0] & /*inputId*/ 16) && { id: /*inputId*/ ctx[4] },
644
- (!current || dirty[0] & /*size*/ 32) && { size: /*size*/ ctx[5] },
645
- (!current || dirty[0] & /*accept*/ 64) && { accept: /*accept*/ ctx[6] },
646
- (!current || dirty[0] & /*autocomplete*/ 128) && { autocomplete: /*autocomplete*/ ctx[7] },
647
- (!current || dirty[0] & /*autocorrect*/ 256) && { autocorrect: /*autocorrect*/ ctx[8] },
648
- (!current || dirty[0] & /*autocapitalize*/ 512) && {
649
- autocapitalize: /*autocapitalize*/ ctx[9]
650
- },
651
- (!current || dirty[0] & /*spellcheck*/ 1024) && { spellcheck: /*spellcheck*/ ctx[10] },
652
- (!current || dirty[0] & /*autofocus*/ 2048) && { autofocus: /*autofocus*/ ctx[11] },
653
- (!current || dirty[0] & /*autosave*/ 4096) && { autosave: /*autosave*/ ctx[12] },
654
- (!current || dirty[0] & /*checked*/ 8192) && { checked: /*checked*/ ctx[13] },
655
- (!current || dirty[0] & /*disabled*/ 16384) && { disabled: /*disabled*/ ctx[14] },
656
- (!current || dirty[0] & /*max*/ 32768) && { max: /*max*/ ctx[15] },
657
- (!current || dirty[0] & /*maxlength*/ 262144) && { maxlength: /*maxlength*/ ctx[18] },
658
- (!current || dirty[0] & /*min*/ 65536) && { min: /*min*/ ctx[16] },
659
- (!current || dirty[0] & /*minlength*/ 524288) && { minlength: /*minlength*/ ctx[19] },
660
- (!current || dirty[0] & /*step*/ 131072) && { step: /*step*/ ctx[17] },
661
- (!current || dirty[0] & /*multiple*/ 1048576) && { multiple: /*multiple*/ ctx[20] },
662
- (!current || dirty[0] & /*readonly*/ 2097152) && { readonly: /*readonly*/ ctx[21] },
663
- (!current || dirty[0] & /*required*/ 4194304) && { required: /*required*/ ctx[22] },
664
- (!current || dirty[0] & /*pattern*/ 16777216) && { pattern: /*pattern*/ ctx[24] },
665
- (!current || dirty[0] & /*validate*/ 33554432 && select_validate_value !== (select_validate_value = typeof /*validate*/ ctx[25] === "string" && /*validate*/ ctx[25].length
666
- ? /*validate*/ ctx[25]
667
- : undefined)) && { validate: select_validate_value },
668
- (!current || dirty[0] & /*validate, validateOnBlur*/ 100663296 && select_data_validate_value !== (select_data_validate_value = /*validate*/ ctx[25] === true || /*validate*/ ctx[25] === "" || /*validateOnBlur*/ ctx[26] === true || /*validateOnBlur*/ ctx[26] === ""
669
- ? true
670
- : undefined)) && {
671
- "data-validate": select_data_validate_value
672
- },
673
- (!current || dirty[0] & /*validateOnBlur*/ 67108864 && select_data_validate_on_blur_value !== (select_data_validate_on_blur_value = /*validateOnBlur*/ ctx[26] === true || /*validateOnBlur*/ ctx[26] === ""
674
- ? true
675
- : undefined)) && {
676
- "data-validate-on-blur": select_data_validate_on_blur_value
677
- },
678
- (!current || dirty[0] & /*tabindex*/ 134217728) && { tabindex: /*tabindex*/ ctx[27] },
679
- (!current || dirty[0] & /*errorMessage*/ 1073741824 | dirty[1] & /*errorMessageForce*/ 1 && select_data_error_message_value !== (select_data_error_message_value = /*errorMessageForce*/ ctx[31]
680
- ? undefined
681
- : /*errorMessage*/ ctx[30])) && {
682
- "data-error-message": select_data_error_message_value
683
- },
684
- (!current || dirty[1] & /*inputClassName*/ 256) && { class: /*inputClassName*/ ctx[39] },
685
- (!current || dirty[1] & /*inputValue*/ 64) && { value: /*inputValue*/ ctx[37] },
686
- dirty[1] & /*$$restProps*/ 32768 && restProps(/*$$restProps*/ ctx[46])
687
- ]));
688
-
689
- if (dirty[0] & /*inputStyle, name, placeholder, inputId, size, accept, autocomplete, autocorrect, autocapitalize, spellcheck, autofocus, autosave, checked, disabled, max, maxlength, min, minlength, step, multiple, readonly, required, pattern, validate, validateOnBlur, tabindex, errorMessage*/ 1342177276 | dirty[1] & /*errorMessageForce, inputClassName, inputValue, $$restProps*/ 33089 && select_data.multiple) select_options(select, select_data.value);
690
- },
691
- i(local) {
692
- if (current) return;
693
- transition_in(default_slot, local);
694
- current = true;
695
- },
696
- o(local) {
697
- transition_out(default_slot, local);
698
- current = false;
699
- },
700
- d(detaching) {
701
- if (detaching) detach(select);
702
- if (default_slot) default_slot.d(detaching);
703
- /*select_binding_1*/ ctx[63](null);
704
- mounted = false;
705
- run_all(dispose);
706
- }
707
- };
708
- }
709
-
710
- // (326:0) {#if wrap}
711
- function create_if_block(ctx) {
712
- let div;
713
- let current_block_type_index;
714
- let if_block0;
715
- let t0;
716
- let t1;
717
- let t2;
718
- let current;
719
-
720
- const if_block_creators = [
721
- create_if_block_4,
722
- create_if_block_5,
723
- create_if_block_6,
724
- create_if_block_7,
725
- create_if_block_8,
726
- create_else_block
727
- ];
728
-
729
- const if_blocks = [];
730
-
731
- function select_block_type_1(ctx, dirty) {
732
- if (/*type*/ ctx[1] === "select") return 0;
733
- if (/*type*/ ctx[1] === "textarea") return 1;
734
- if (/*type*/ ctx[1] === "toggle") return 2;
735
- if (/*type*/ ctx[1] === "range") return 3;
736
- if (/*type*/ ctx[1] === "texteditor") return 4;
737
- return 5;
738
- }
739
-
740
- current_block_type_index = select_block_type_1(ctx, [-1]);
741
- if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
742
- let if_block1 = (/*errorMessage*/ ctx[30] || /*hasErrorSlots*/ ctx[41]) && /*errorMessageForce*/ ctx[31] && create_if_block_3(ctx);
743
- let if_block2 = /*clearButton*/ ctx[29] && create_if_block_2(ctx);
744
- let if_block3 = (/*info*/ ctx[32] || /*hasInfoSlots*/ ctx[40]) && create_if_block_1(ctx);
745
- let div_levels = [{ class: /*wrapClasses*/ ctx[38] }, restProps(/*$$restProps*/ ctx[46])];
746
- let div_data = {};
747
-
748
- for (let i = 0; i < div_levels.length; i += 1) {
749
- div_data = assign(div_data, div_levels[i]);
750
- }
751
-
752
- return {
753
- c() {
754
- div = element("div");
755
- if_block0.c();
756
- t0 = space();
757
- if (if_block1) if_block1.c();
758
- t1 = space();
759
- if (if_block2) if_block2.c();
760
- t2 = space();
761
- if (if_block3) if_block3.c();
762
- set_attributes(div, div_data);
763
- },
764
- m(target, anchor) {
765
- insert(target, div, anchor);
766
- if_blocks[current_block_type_index].m(div, null);
767
- append(div, t0);
768
- if (if_block1) if_block1.m(div, null);
769
- append(div, t1);
770
- if (if_block2) if_block2.m(div, null);
771
- append(div, t2);
772
- if (if_block3) if_block3.m(div, null);
773
- current = true;
774
- },
775
- p(ctx, dirty) {
776
- let previous_block_index = current_block_type_index;
777
- current_block_type_index = select_block_type_1(ctx, dirty);
778
-
779
- if (current_block_type_index === previous_block_index) {
780
- if_blocks[current_block_type_index].p(ctx, dirty);
781
- } else {
782
- group_outros();
783
-
784
- transition_out(if_blocks[previous_block_index], 1, 1, () => {
785
- if_blocks[previous_block_index] = null;
786
- });
787
-
788
- check_outros();
789
- if_block0 = if_blocks[current_block_type_index];
790
-
791
- if (!if_block0) {
792
- if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
793
- if_block0.c();
794
- } else {
795
- if_block0.p(ctx, dirty);
796
- }
797
-
798
- transition_in(if_block0, 1);
799
- if_block0.m(div, t0);
800
- }
801
-
802
- if ((/*errorMessage*/ ctx[30] || /*hasErrorSlots*/ ctx[41]) && /*errorMessageForce*/ ctx[31]) {
803
- if (if_block1) {
804
- if_block1.p(ctx, dirty);
805
-
806
- if (dirty[0] & /*errorMessage*/ 1073741824 | dirty[1] & /*hasErrorSlots, errorMessageForce*/ 1025) {
807
- transition_in(if_block1, 1);
808
- }
809
- } else {
810
- if_block1 = create_if_block_3(ctx);
811
- if_block1.c();
812
- transition_in(if_block1, 1);
813
- if_block1.m(div, t1);
814
- }
815
- } else if (if_block1) {
816
- group_outros();
817
-
818
- transition_out(if_block1, 1, 1, () => {
819
- if_block1 = null;
820
- });
821
-
822
- check_outros();
823
- }
824
-
825
- if (/*clearButton*/ ctx[29]) {
826
- if (if_block2) {
827
-
828
- } else {
829
- if_block2 = create_if_block_2(ctx);
830
- if_block2.c();
831
- if_block2.m(div, t2);
832
- }
833
- } else if (if_block2) {
834
- if_block2.d(1);
835
- if_block2 = null;
836
- }
837
-
838
- if (/*info*/ ctx[32] || /*hasInfoSlots*/ ctx[40]) {
839
- if (if_block3) {
840
- if_block3.p(ctx, dirty);
841
-
842
- if (dirty[1] & /*info, hasInfoSlots*/ 514) {
843
- transition_in(if_block3, 1);
844
- }
845
- } else {
846
- if_block3 = create_if_block_1(ctx);
847
- if_block3.c();
848
- transition_in(if_block3, 1);
849
- if_block3.m(div, null);
850
- }
851
- } else if (if_block3) {
852
- group_outros();
853
-
854
- transition_out(if_block3, 1, 1, () => {
855
- if_block3 = null;
856
- });
857
-
858
- check_outros();
859
- }
860
-
861
- set_attributes(div, div_data = get_spread_update(div_levels, [
862
- (!current || dirty[1] & /*wrapClasses*/ 128) && { class: /*wrapClasses*/ ctx[38] },
863
- dirty[1] & /*$$restProps*/ 32768 && restProps(/*$$restProps*/ ctx[46])
864
- ]));
865
- },
866
- i(local) {
867
- if (current) return;
868
- transition_in(if_block0);
869
- transition_in(if_block1);
870
- transition_in(if_block3);
871
- current = true;
872
- },
873
- o(local) {
874
- transition_out(if_block0);
875
- transition_out(if_block1);
876
- transition_out(if_block3);
877
- current = false;
878
- },
879
- d(detaching) {
880
- if (detaching) detach(div);
881
- if_blocks[current_block_type_index].d();
882
- if (if_block1) if_block1.d();
883
- if (if_block2) if_block2.d();
884
- if (if_block3) if_block3.d();
885
- }
886
- };
887
- }
888
-
889
- // (441:4) {:else}
890
- function create_else_block(ctx) {
891
- let input;
892
- let input_validate_value;
893
- let input_data_validate_value;
894
- let input_data_validate_on_blur_value;
895
- let input_data_error_message_value;
896
- let input_value_value;
897
- let mounted;
898
- let dispose;
899
-
900
- return {
901
- c() {
902
- input = element("input");
903
- attr(input, "style", /*inputStyle*/ ctx[23]);
904
- attr(input, "name", /*name*/ ctx[2]);
905
- attr(input, "type", /*inputType*/ ctx[35]);
906
- attr(input, "placeholder", /*placeholder*/ ctx[3]);
907
- attr(input, "id", /*inputId*/ ctx[4]);
908
- attr(input, "size", /*size*/ ctx[5]);
909
- attr(input, "accept", /*accept*/ ctx[6]);
910
- attr(input, "autocomplete", /*autocomplete*/ ctx[7]);
911
- attr(input, "autocorrect", /*autocorrect*/ ctx[8]);
912
- attr(input, "autocapitalize", /*autocapitalize*/ ctx[9]);
913
- attr(input, "spellcheck", /*spellcheck*/ ctx[10]);
914
- input.autofocus = /*autofocus*/ ctx[11];
915
- attr(input, "autosave", /*autosave*/ ctx[12]);
916
- input.checked = /*checked*/ ctx[13];
917
- input.disabled = /*disabled*/ ctx[14];
918
- attr(input, "max", /*max*/ ctx[15]);
919
- attr(input, "maxlength", /*maxlength*/ ctx[18]);
920
- attr(input, "min", /*min*/ ctx[16]);
921
- attr(input, "minlength", /*minlength*/ ctx[19]);
922
- attr(input, "step", /*step*/ ctx[17]);
923
- input.multiple = /*multiple*/ ctx[20];
924
- input.readOnly = /*readonly*/ ctx[21];
925
- input.required = /*required*/ ctx[22];
926
- attr(input, "pattern", /*pattern*/ ctx[24]);
927
-
928
- attr(input, "validate", input_validate_value = typeof /*validate*/ ctx[25] === "string" && /*validate*/ ctx[25].length
929
- ? /*validate*/ ctx[25]
930
- : undefined);
931
-
932
- attr(input, "data-validate", input_data_validate_value = /*validate*/ ctx[25] === true || /*validate*/ ctx[25] === "" || /*validateOnBlur*/ ctx[26] === true || /*validateOnBlur*/ ctx[26] === ""
933
- ? true
934
- : undefined);
935
-
936
- attr(input, "data-validate-on-blur", input_data_validate_on_blur_value = /*validateOnBlur*/ ctx[26] === true || /*validateOnBlur*/ ctx[26] === ""
937
- ? true
938
- : undefined);
939
-
940
- attr(input, "tabindex", /*tabindex*/ ctx[27]);
941
-
942
- attr(input, "data-error-message", input_data_error_message_value = /*errorMessageForce*/ ctx[31]
943
- ? undefined
944
- : /*errorMessage*/ ctx[30]);
945
-
946
- attr(input, "class", /*inputClassName*/ ctx[39]);
947
-
948
- input.value = input_value_value = /*type*/ ctx[1] === "datepicker" || /*type*/ ctx[1] === "colorpicker" || /*type*/ ctx[1] === "file"
949
- ? ""
950
- : /*inputValue*/ ctx[37];
951
- },
952
- m(target, anchor) {
953
- insert(target, input, anchor);
954
- /*input_binding*/ ctx[62](input);
955
-
956
- if (!mounted) {
957
- dispose = [
958
- listen(input, "focus", /*onFocus*/ ctx[43]),
959
- listen(input, "blur", /*onBlur*/ ctx[44]),
960
- listen(input, "input", /*onInput*/ ctx[42]),
961
- listen(input, "change", /*onChange*/ ctx[45])
962
- ];
963
-
964
- mounted = true;
965
- }
966
- },
967
- p(ctx, dirty) {
968
- if (dirty[0] & /*inputStyle*/ 8388608) {
969
- attr(input, "style", /*inputStyle*/ ctx[23]);
970
- }
971
-
972
- if (dirty[0] & /*name*/ 4) {
973
- attr(input, "name", /*name*/ ctx[2]);
974
- }
975
-
976
- if (dirty[1] & /*inputType*/ 16) {
977
- attr(input, "type", /*inputType*/ ctx[35]);
978
- }
979
-
980
- if (dirty[0] & /*placeholder*/ 8) {
981
- attr(input, "placeholder", /*placeholder*/ ctx[3]);
982
- }
983
-
984
- if (dirty[0] & /*inputId*/ 16) {
985
- attr(input, "id", /*inputId*/ ctx[4]);
986
- }
987
-
988
- if (dirty[0] & /*size*/ 32) {
989
- attr(input, "size", /*size*/ ctx[5]);
990
- }
991
-
992
- if (dirty[0] & /*accept*/ 64) {
993
- attr(input, "accept", /*accept*/ ctx[6]);
994
- }
995
-
996
- if (dirty[0] & /*autocomplete*/ 128) {
997
- attr(input, "autocomplete", /*autocomplete*/ ctx[7]);
998
- }
999
-
1000
- if (dirty[0] & /*autocorrect*/ 256) {
1001
- attr(input, "autocorrect", /*autocorrect*/ ctx[8]);
1002
- }
1003
-
1004
- if (dirty[0] & /*autocapitalize*/ 512) {
1005
- attr(input, "autocapitalize", /*autocapitalize*/ ctx[9]);
1006
- }
1007
-
1008
- if (dirty[0] & /*spellcheck*/ 1024) {
1009
- attr(input, "spellcheck", /*spellcheck*/ ctx[10]);
1010
- }
1011
-
1012
- if (dirty[0] & /*autofocus*/ 2048) {
1013
- input.autofocus = /*autofocus*/ ctx[11];
1014
- }
1015
-
1016
- if (dirty[0] & /*autosave*/ 4096) {
1017
- attr(input, "autosave", /*autosave*/ ctx[12]);
1018
- }
1019
-
1020
- if (dirty[0] & /*checked*/ 8192) {
1021
- input.checked = /*checked*/ ctx[13];
1022
- }
1023
-
1024
- if (dirty[0] & /*disabled*/ 16384) {
1025
- input.disabled = /*disabled*/ ctx[14];
1026
- }
1027
-
1028
- if (dirty[0] & /*max*/ 32768) {
1029
- attr(input, "max", /*max*/ ctx[15]);
1030
- }
1031
-
1032
- if (dirty[0] & /*maxlength*/ 262144) {
1033
- attr(input, "maxlength", /*maxlength*/ ctx[18]);
1034
- }
1035
-
1036
- if (dirty[0] & /*min*/ 65536) {
1037
- attr(input, "min", /*min*/ ctx[16]);
1038
- }
1039
-
1040
- if (dirty[0] & /*minlength*/ 524288) {
1041
- attr(input, "minlength", /*minlength*/ ctx[19]);
1042
- }
1043
-
1044
- if (dirty[0] & /*step*/ 131072) {
1045
- attr(input, "step", /*step*/ ctx[17]);
1046
- }
1047
-
1048
- if (dirty[0] & /*multiple*/ 1048576) {
1049
- input.multiple = /*multiple*/ ctx[20];
1050
- }
1051
-
1052
- if (dirty[0] & /*readonly*/ 2097152) {
1053
- input.readOnly = /*readonly*/ ctx[21];
1054
- }
1055
-
1056
- if (dirty[0] & /*required*/ 4194304) {
1057
- input.required = /*required*/ ctx[22];
1058
- }
1059
-
1060
- if (dirty[0] & /*pattern*/ 16777216) {
1061
- attr(input, "pattern", /*pattern*/ ctx[24]);
1062
- }
1063
-
1064
- if (dirty[0] & /*validate*/ 33554432 && input_validate_value !== (input_validate_value = typeof /*validate*/ ctx[25] === "string" && /*validate*/ ctx[25].length
1065
- ? /*validate*/ ctx[25]
1066
- : undefined)) {
1067
- attr(input, "validate", input_validate_value);
1068
- }
1069
-
1070
- if (dirty[0] & /*validate, validateOnBlur*/ 100663296 && input_data_validate_value !== (input_data_validate_value = /*validate*/ ctx[25] === true || /*validate*/ ctx[25] === "" || /*validateOnBlur*/ ctx[26] === true || /*validateOnBlur*/ ctx[26] === ""
1071
- ? true
1072
- : undefined)) {
1073
- attr(input, "data-validate", input_data_validate_value);
1074
- }
1075
-
1076
- if (dirty[0] & /*validateOnBlur*/ 67108864 && input_data_validate_on_blur_value !== (input_data_validate_on_blur_value = /*validateOnBlur*/ ctx[26] === true || /*validateOnBlur*/ ctx[26] === ""
1077
- ? true
1078
- : undefined)) {
1079
- attr(input, "data-validate-on-blur", input_data_validate_on_blur_value);
1080
- }
1081
-
1082
- if (dirty[0] & /*tabindex*/ 134217728) {
1083
- attr(input, "tabindex", /*tabindex*/ ctx[27]);
1084
- }
1085
-
1086
- if (dirty[0] & /*errorMessage*/ 1073741824 | dirty[1] & /*errorMessageForce*/ 1 && input_data_error_message_value !== (input_data_error_message_value = /*errorMessageForce*/ ctx[31]
1087
- ? undefined
1088
- : /*errorMessage*/ ctx[30])) {
1089
- attr(input, "data-error-message", input_data_error_message_value);
1090
- }
1091
-
1092
- if (dirty[1] & /*inputClassName*/ 256) {
1093
- attr(input, "class", /*inputClassName*/ ctx[39]);
1094
- }
1095
-
1096
- if (dirty[0] & /*type*/ 2 | dirty[1] & /*inputValue*/ 64 && input_value_value !== (input_value_value = /*type*/ ctx[1] === "datepicker" || /*type*/ ctx[1] === "colorpicker" || /*type*/ ctx[1] === "file"
1097
- ? ""
1098
- : /*inputValue*/ ctx[37]) && input.value !== input_value_value) {
1099
- input.value = input_value_value;
1100
- }
1101
- },
1102
- i: noop,
1103
- o: noop,
1104
- d(detaching) {
1105
- if (detaching) detach(input);
1106
- /*input_binding*/ ctx[62](null);
1107
- mounted = false;
1108
- run_all(dispose);
1109
- }
1110
- };
1111
- }
1112
-
1113
- // (430:36)
1114
- function create_if_block_8(ctx) {
1115
- let texteditor;
1116
- let current;
1117
-
1118
- const texteditor_spread_levels = [
1119
- {
1120
- value: typeof /*value*/ ctx[0] === "undefined"
1121
- ? ""
1122
- : /*value*/ ctx[0]
1123
- },
1124
- { resizable: /*resizable*/ ctx[28] },
1125
- { placeholder: /*placeholder*/ ctx[3] },
1126
- { onTextEditorFocus: /*onFocus*/ ctx[43] },
1127
- { onTextEditorBlur: /*onBlur*/ ctx[44] },
1128
- { onTextEditorInput: /*onInput*/ ctx[42] },
1129
- { onTextEditorChange: /*onChange*/ ctx[45] },
1130
- /*textEditorParams*/ ctx[34]
1131
- ];
1132
-
1133
- let texteditor_props = {};
1134
-
1135
- for (let i = 0; i < texteditor_spread_levels.length; i += 1) {
1136
- texteditor_props = assign(texteditor_props, texteditor_spread_levels[i]);
1137
- }
1138
-
1139
- texteditor = new TextEditor({ props: texteditor_props });
1140
-
1141
- return {
1142
- c() {
1143
- create_component(texteditor.$$.fragment);
1144
- },
1145
- m(target, anchor) {
1146
- mount_component(texteditor, target, anchor);
1147
- current = true;
1148
- },
1149
- p(ctx, dirty) {
1150
- const texteditor_changes = (dirty[0] & /*value, resizable, placeholder*/ 268435465 | dirty[1] & /*onFocus, onBlur, onInput, onChange, textEditorParams*/ 30728)
1151
- ? get_spread_update(texteditor_spread_levels, [
1152
- dirty[0] & /*value*/ 1 && {
1153
- value: typeof /*value*/ ctx[0] === "undefined"
1154
- ? ""
1155
- : /*value*/ ctx[0]
1156
- },
1157
- dirty[0] & /*resizable*/ 268435456 && { resizable: /*resizable*/ ctx[28] },
1158
- dirty[0] & /*placeholder*/ 8 && { placeholder: /*placeholder*/ ctx[3] },
1159
- dirty[1] & /*onFocus*/ 4096 && { onTextEditorFocus: /*onFocus*/ ctx[43] },
1160
- dirty[1] & /*onBlur*/ 8192 && { onTextEditorBlur: /*onBlur*/ ctx[44] },
1161
- dirty[1] & /*onInput*/ 2048 && { onTextEditorInput: /*onInput*/ ctx[42] },
1162
- dirty[1] & /*onChange*/ 16384 && { onTextEditorChange: /*onChange*/ ctx[45] },
1163
- dirty[1] & /*textEditorParams*/ 8 && get_spread_object(/*textEditorParams*/ ctx[34])
1164
- ])
1165
- : {};
1166
-
1167
- texteditor.$set(texteditor_changes);
1168
- },
1169
- i(local) {
1170
- if (current) return;
1171
- transition_in(texteditor.$$.fragment, local);
1172
- current = true;
1173
- },
1174
- o(local) {
1175
- transition_out(texteditor.$$.fragment, local);
1176
- current = false;
1177
- },
1178
- d(detaching) {
1179
- destroy_component(texteditor, detaching);
1180
- }
1181
- };
1182
- }
1183
-
1184
- // (418:31)
1185
- function create_if_block_7(ctx) {
1186
- let range;
1187
- let current;
1188
-
1189
- range = new Range({
1190
- props: {
1191
- value: /*value*/ ctx[0],
1192
- disabled: /*disabled*/ ctx[14],
1193
- min: /*min*/ ctx[16],
1194
- max: /*max*/ ctx[15],
1195
- step: /*step*/ ctx[17],
1196
- name: /*name*/ ctx[2],
1197
- id: /*inputId*/ ctx[4],
1198
- input: true
1199
- }
1200
- });
1201
-
1202
- range.$on("rangeChange", /*onChange*/ ctx[45]);
1203
-
1204
- return {
1205
- c() {
1206
- create_component(range.$$.fragment);
1207
- },
1208
- m(target, anchor) {
1209
- mount_component(range, target, anchor);
1210
- current = true;
1211
- },
1212
- p(ctx, dirty) {
1213
- const range_changes = {};
1214
- if (dirty[0] & /*value*/ 1) range_changes.value = /*value*/ ctx[0];
1215
- if (dirty[0] & /*disabled*/ 16384) range_changes.disabled = /*disabled*/ ctx[14];
1216
- if (dirty[0] & /*min*/ 65536) range_changes.min = /*min*/ ctx[16];
1217
- if (dirty[0] & /*max*/ 32768) range_changes.max = /*max*/ ctx[15];
1218
- if (dirty[0] & /*step*/ 131072) range_changes.step = /*step*/ ctx[17];
1219
- if (dirty[0] & /*name*/ 4) range_changes.name = /*name*/ ctx[2];
1220
- if (dirty[0] & /*inputId*/ 16) range_changes.id = /*inputId*/ ctx[4];
1221
- range.$set(range_changes);
1222
- },
1223
- i(local) {
1224
- if (current) return;
1225
- transition_in(range.$$.fragment, local);
1226
- current = true;
1227
- },
1228
- o(local) {
1229
- transition_out(range.$$.fragment, local);
1230
- current = false;
1231
- },
1232
- d(detaching) {
1233
- destroy_component(range, detaching);
1234
- }
1235
- };
1236
- }
1237
-
1238
- // (416:32)
1239
- function create_if_block_6(ctx) {
1240
- let toggle;
1241
- let current;
1242
-
1243
- toggle = new Toggle({
1244
- props: {
1245
- checked: /*checked*/ ctx[13],
1246
- readonly: /*readonly*/ ctx[21],
1247
- name: /*name*/ ctx[2],
1248
- value: /*value*/ ctx[0],
1249
- disabled: /*disabled*/ ctx[14],
1250
- id: /*inputId*/ ctx[4]
1251
- }
1252
- });
1253
-
1254
- toggle.$on("change", /*onChange*/ ctx[45]);
1255
-
1256
- return {
1257
- c() {
1258
- create_component(toggle.$$.fragment);
1259
- },
1260
- m(target, anchor) {
1261
- mount_component(toggle, target, anchor);
1262
- current = true;
1263
- },
1264
- p(ctx, dirty) {
1265
- const toggle_changes = {};
1266
- if (dirty[0] & /*checked*/ 8192) toggle_changes.checked = /*checked*/ ctx[13];
1267
- if (dirty[0] & /*readonly*/ 2097152) toggle_changes.readonly = /*readonly*/ ctx[21];
1268
- if (dirty[0] & /*name*/ 4) toggle_changes.name = /*name*/ ctx[2];
1269
- if (dirty[0] & /*value*/ 1) toggle_changes.value = /*value*/ ctx[0];
1270
- if (dirty[0] & /*disabled*/ 16384) toggle_changes.disabled = /*disabled*/ ctx[14];
1271
- if (dirty[0] & /*inputId*/ 16) toggle_changes.id = /*inputId*/ ctx[4];
1272
- toggle.$set(toggle_changes);
1273
- },
1274
- i(local) {
1275
- if (current) return;
1276
- transition_in(toggle.$$.fragment, local);
1277
- current = true;
1278
- },
1279
- o(local) {
1280
- transition_out(toggle.$$.fragment, local);
1281
- current = false;
1282
- },
1283
- d(detaching) {
1284
- destroy_component(toggle, detaching);
1285
- }
1286
- };
1287
- }
1288
-
1289
- // (373:34)
1290
- function create_if_block_5(ctx) {
1291
- let textarea;
1292
- let textarea_validate_value;
1293
- let textarea_data_validate_value;
1294
- let textarea_data_validate_on_blur_value;
1295
- let textarea_data_error_message_value;
1296
- let mounted;
1297
- let dispose;
1298
-
1299
- return {
1300
- c() {
1301
- textarea = element("textarea");
1302
- attr(textarea, "style", /*inputStyle*/ ctx[23]);
1303
- attr(textarea, "name", /*name*/ ctx[2]);
1304
- attr(textarea, "placeholder", /*placeholder*/ ctx[3]);
1305
- attr(textarea, "id", /*inputId*/ ctx[4]);
1306
- attr(textarea, "size", /*size*/ ctx[5]);
1307
- attr(textarea, "accept", /*accept*/ ctx[6]);
1308
- attr(textarea, "autocomplete", /*autocomplete*/ ctx[7]);
1309
- attr(textarea, "autocorrect", /*autocorrect*/ ctx[8]);
1310
- attr(textarea, "autocapitalize", /*autocapitalize*/ ctx[9]);
1311
- attr(textarea, "spellcheck", /*spellcheck*/ ctx[10]);
1312
- textarea.autofocus = /*autofocus*/ ctx[11];
1313
- attr(textarea, "autosave", /*autosave*/ ctx[12]);
1314
- attr(textarea, "checked", /*checked*/ ctx[13]);
1315
- textarea.disabled = /*disabled*/ ctx[14];
1316
- attr(textarea, "max", /*max*/ ctx[15]);
1317
- attr(textarea, "maxlength", /*maxlength*/ ctx[18]);
1318
- attr(textarea, "min", /*min*/ ctx[16]);
1319
- attr(textarea, "minlength", /*minlength*/ ctx[19]);
1320
- attr(textarea, "step", /*step*/ ctx[17]);
1321
- attr(textarea, "multiple", /*multiple*/ ctx[20]);
1322
- textarea.readOnly = /*readonly*/ ctx[21];
1323
- textarea.required = /*required*/ ctx[22];
1324
- attr(textarea, "pattern", /*pattern*/ ctx[24]);
1325
-
1326
- attr(textarea, "validate", textarea_validate_value = typeof /*validate*/ ctx[25] === "string" && /*validate*/ ctx[25].length
1327
- ? /*validate*/ ctx[25]
1328
- : undefined);
1329
-
1330
- attr(textarea, "data-validate", textarea_data_validate_value = /*validate*/ ctx[25] === true || /*validate*/ ctx[25] === "" || /*validateOnBlur*/ ctx[26] === true || /*validateOnBlur*/ ctx[26] === ""
1331
- ? true
1332
- : undefined);
1333
-
1334
- attr(textarea, "data-validate-on-blur", textarea_data_validate_on_blur_value = /*validateOnBlur*/ ctx[26] === true || /*validateOnBlur*/ ctx[26] === ""
1335
- ? true
1336
- : undefined);
1337
-
1338
- attr(textarea, "tabindex", /*tabindex*/ ctx[27]);
1339
-
1340
- attr(textarea, "data-error-message", textarea_data_error_message_value = /*errorMessageForce*/ ctx[31]
1341
- ? undefined
1342
- : /*errorMessage*/ ctx[30]);
1343
-
1344
- attr(textarea, "class", /*inputClassName*/ ctx[39]);
1345
- textarea.value = /*inputValue*/ ctx[37];
1346
- },
1347
- m(target, anchor) {
1348
- insert(target, textarea, anchor);
1349
- /*textarea_binding*/ ctx[61](textarea);
1350
-
1351
- if (!mounted) {
1352
- dispose = [
1353
- listen(textarea, "focus", /*onFocus*/ ctx[43]),
1354
- listen(textarea, "blur", /*onBlur*/ ctx[44]),
1355
- listen(textarea, "input", /*onInput*/ ctx[42]),
1356
- listen(textarea, "change", /*onChange*/ ctx[45])
1357
- ];
1358
-
1359
- mounted = true;
1360
- }
1361
- },
1362
- p(ctx, dirty) {
1363
- if (dirty[0] & /*inputStyle*/ 8388608) {
1364
- attr(textarea, "style", /*inputStyle*/ ctx[23]);
1365
- }
1366
-
1367
- if (dirty[0] & /*name*/ 4) {
1368
- attr(textarea, "name", /*name*/ ctx[2]);
1369
- }
1370
-
1371
- if (dirty[0] & /*placeholder*/ 8) {
1372
- attr(textarea, "placeholder", /*placeholder*/ ctx[3]);
1373
- }
1374
-
1375
- if (dirty[0] & /*inputId*/ 16) {
1376
- attr(textarea, "id", /*inputId*/ ctx[4]);
1377
- }
1378
-
1379
- if (dirty[0] & /*size*/ 32) {
1380
- attr(textarea, "size", /*size*/ ctx[5]);
1381
- }
1382
-
1383
- if (dirty[0] & /*accept*/ 64) {
1384
- attr(textarea, "accept", /*accept*/ ctx[6]);
1385
- }
1386
-
1387
- if (dirty[0] & /*autocomplete*/ 128) {
1388
- attr(textarea, "autocomplete", /*autocomplete*/ ctx[7]);
1389
- }
1390
-
1391
- if (dirty[0] & /*autocorrect*/ 256) {
1392
- attr(textarea, "autocorrect", /*autocorrect*/ ctx[8]);
1393
- }
1394
-
1395
- if (dirty[0] & /*autocapitalize*/ 512) {
1396
- attr(textarea, "autocapitalize", /*autocapitalize*/ ctx[9]);
1397
- }
1398
-
1399
- if (dirty[0] & /*spellcheck*/ 1024) {
1400
- attr(textarea, "spellcheck", /*spellcheck*/ ctx[10]);
1401
- }
1402
-
1403
- if (dirty[0] & /*autofocus*/ 2048) {
1404
- textarea.autofocus = /*autofocus*/ ctx[11];
1405
- }
1406
-
1407
- if (dirty[0] & /*autosave*/ 4096) {
1408
- attr(textarea, "autosave", /*autosave*/ ctx[12]);
1409
- }
1410
-
1411
- if (dirty[0] & /*checked*/ 8192) {
1412
- attr(textarea, "checked", /*checked*/ ctx[13]);
1413
- }
1414
-
1415
- if (dirty[0] & /*disabled*/ 16384) {
1416
- textarea.disabled = /*disabled*/ ctx[14];
1417
- }
1418
-
1419
- if (dirty[0] & /*max*/ 32768) {
1420
- attr(textarea, "max", /*max*/ ctx[15]);
1421
- }
1422
-
1423
- if (dirty[0] & /*maxlength*/ 262144) {
1424
- attr(textarea, "maxlength", /*maxlength*/ ctx[18]);
1425
- }
1426
-
1427
- if (dirty[0] & /*min*/ 65536) {
1428
- attr(textarea, "min", /*min*/ ctx[16]);
1429
- }
1430
-
1431
- if (dirty[0] & /*minlength*/ 524288) {
1432
- attr(textarea, "minlength", /*minlength*/ ctx[19]);
1433
- }
1434
-
1435
- if (dirty[0] & /*step*/ 131072) {
1436
- attr(textarea, "step", /*step*/ ctx[17]);
1437
- }
1438
-
1439
- if (dirty[0] & /*multiple*/ 1048576) {
1440
- attr(textarea, "multiple", /*multiple*/ ctx[20]);
1441
- }
1442
-
1443
- if (dirty[0] & /*readonly*/ 2097152) {
1444
- textarea.readOnly = /*readonly*/ ctx[21];
1445
- }
1446
-
1447
- if (dirty[0] & /*required*/ 4194304) {
1448
- textarea.required = /*required*/ ctx[22];
1449
- }
1450
-
1451
- if (dirty[0] & /*pattern*/ 16777216) {
1452
- attr(textarea, "pattern", /*pattern*/ ctx[24]);
1453
- }
1454
-
1455
- if (dirty[0] & /*validate*/ 33554432 && textarea_validate_value !== (textarea_validate_value = typeof /*validate*/ ctx[25] === "string" && /*validate*/ ctx[25].length
1456
- ? /*validate*/ ctx[25]
1457
- : undefined)) {
1458
- attr(textarea, "validate", textarea_validate_value);
1459
- }
1460
-
1461
- if (dirty[0] & /*validate, validateOnBlur*/ 100663296 && textarea_data_validate_value !== (textarea_data_validate_value = /*validate*/ ctx[25] === true || /*validate*/ ctx[25] === "" || /*validateOnBlur*/ ctx[26] === true || /*validateOnBlur*/ ctx[26] === ""
1462
- ? true
1463
- : undefined)) {
1464
- attr(textarea, "data-validate", textarea_data_validate_value);
1465
- }
1466
-
1467
- if (dirty[0] & /*validateOnBlur*/ 67108864 && textarea_data_validate_on_blur_value !== (textarea_data_validate_on_blur_value = /*validateOnBlur*/ ctx[26] === true || /*validateOnBlur*/ ctx[26] === ""
1468
- ? true
1469
- : undefined)) {
1470
- attr(textarea, "data-validate-on-blur", textarea_data_validate_on_blur_value);
1471
- }
1472
-
1473
- if (dirty[0] & /*tabindex*/ 134217728) {
1474
- attr(textarea, "tabindex", /*tabindex*/ ctx[27]);
1475
- }
1476
-
1477
- if (dirty[0] & /*errorMessage*/ 1073741824 | dirty[1] & /*errorMessageForce*/ 1 && textarea_data_error_message_value !== (textarea_data_error_message_value = /*errorMessageForce*/ ctx[31]
1478
- ? undefined
1479
- : /*errorMessage*/ ctx[30])) {
1480
- attr(textarea, "data-error-message", textarea_data_error_message_value);
1481
- }
1482
-
1483
- if (dirty[1] & /*inputClassName*/ 256) {
1484
- attr(textarea, "class", /*inputClassName*/ ctx[39]);
1485
- }
1486
-
1487
- if (dirty[1] & /*inputValue*/ 64) {
1488
- textarea.value = /*inputValue*/ ctx[37];
1489
- }
1490
- },
1491
- i: noop,
1492
- o: noop,
1493
- d(detaching) {
1494
- if (detaching) detach(textarea);
1495
- /*textarea_binding*/ ctx[61](null);
1496
- mounted = false;
1497
- run_all(dispose);
1498
- }
1499
- };
1500
- }
1501
-
1502
- // (328:4) {#if type === 'select'}
1503
- function create_if_block_4(ctx) {
1504
- let select;
1505
- let select_validate_value;
1506
- let select_data_validate_value;
1507
- let select_data_validate_on_blur_value;
1508
- let select_data_error_message_value;
1509
- let current;
1510
- let mounted;
1511
- let dispose;
1512
- const default_slot_template = /*#slots*/ ctx[59].default;
1513
- const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[58], null);
1514
-
1515
- return {
1516
- c() {
1517
- select = element("select");
1518
- if (default_slot) default_slot.c();
1519
- attr(select, "style", /*inputStyle*/ ctx[23]);
1520
- attr(select, "name", /*name*/ ctx[2]);
1521
- attr(select, "placeholder", /*placeholder*/ ctx[3]);
1522
- attr(select, "id", /*inputId*/ ctx[4]);
1523
- attr(select, "size", /*size*/ ctx[5]);
1524
- attr(select, "accept", /*accept*/ ctx[6]);
1525
- attr(select, "autocomplete", /*autocomplete*/ ctx[7]);
1526
- attr(select, "autocorrect", /*autocorrect*/ ctx[8]);
1527
- attr(select, "autocapitalize", /*autocapitalize*/ ctx[9]);
1528
- attr(select, "spellcheck", /*spellcheck*/ ctx[10]);
1529
- select.autofocus = /*autofocus*/ ctx[11];
1530
- attr(select, "autosave", /*autosave*/ ctx[12]);
1531
- attr(select, "checked", /*checked*/ ctx[13]);
1532
- select.disabled = /*disabled*/ ctx[14];
1533
- attr(select, "max", /*max*/ ctx[15]);
1534
- attr(select, "maxlength", /*maxlength*/ ctx[18]);
1535
- attr(select, "min", /*min*/ ctx[16]);
1536
- attr(select, "minlength", /*minlength*/ ctx[19]);
1537
- attr(select, "step", /*step*/ ctx[17]);
1538
- select.multiple = /*multiple*/ ctx[20];
1539
- attr(select, "readonly", /*readonly*/ ctx[21]);
1540
- select.required = /*required*/ ctx[22];
1541
- attr(select, "pattern", /*pattern*/ ctx[24]);
1542
-
1543
- attr(select, "validate", select_validate_value = typeof /*validate*/ ctx[25] === "string" && /*validate*/ ctx[25].length
1544
- ? /*validate*/ ctx[25]
1545
- : undefined);
1546
-
1547
- attr(select, "data-validate", select_data_validate_value = /*validate*/ ctx[25] === true || /*validate*/ ctx[25] === "" || /*validateOnBlur*/ ctx[26] === true || /*validateOnBlur*/ ctx[26] === ""
1548
- ? true
1549
- : undefined);
1550
-
1551
- attr(select, "data-validate-on-blur", select_data_validate_on_blur_value = /*validateOnBlur*/ ctx[26] === true || /*validateOnBlur*/ ctx[26] === ""
1552
- ? true
1553
- : undefined);
1554
-
1555
- attr(select, "tabindex", /*tabindex*/ ctx[27]);
1556
-
1557
- attr(select, "data-error-message", select_data_error_message_value = /*errorMessageForce*/ ctx[31]
1558
- ? undefined
1559
- : /*errorMessage*/ ctx[30]);
1560
-
1561
- attr(select, "class", /*inputClassName*/ ctx[39]);
1562
- },
1563
- m(target, anchor) {
1564
- insert(target, select, anchor);
1565
-
1566
- if (default_slot) {
1567
- default_slot.m(select, null);
1568
- }
1569
-
1570
- select_option(select, /*inputValue*/ ctx[37]);
1571
- /*select_binding*/ ctx[60](select);
1572
- current = true;
1573
-
1574
- if (!mounted) {
1575
- dispose = [
1576
- listen(select, "focus", /*onFocus*/ ctx[43]),
1577
- listen(select, "blur", /*onBlur*/ ctx[44]),
1578
- listen(select, "input", /*onInput*/ ctx[42]),
1579
- listen(select, "change", /*onChange*/ ctx[45])
1580
- ];
1581
-
1582
- mounted = true;
1583
- }
1584
- },
1585
- p(ctx, dirty) {
1586
- if (default_slot) {
1587
- if (default_slot.p && (!current || dirty[1] & /*$$scope*/ 134217728)) {
1588
- update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[58], dirty, null, null);
1589
- }
1590
- }
1591
-
1592
- if (!current || dirty[0] & /*inputStyle*/ 8388608) {
1593
- attr(select, "style", /*inputStyle*/ ctx[23]);
1594
- }
1595
-
1596
- if (!current || dirty[0] & /*name*/ 4) {
1597
- attr(select, "name", /*name*/ ctx[2]);
1598
- }
1599
-
1600
- if (!current || dirty[0] & /*placeholder*/ 8) {
1601
- attr(select, "placeholder", /*placeholder*/ ctx[3]);
1602
- }
1603
-
1604
- if (!current || dirty[0] & /*inputId*/ 16) {
1605
- attr(select, "id", /*inputId*/ ctx[4]);
1606
- }
1607
-
1608
- if (!current || dirty[0] & /*size*/ 32) {
1609
- attr(select, "size", /*size*/ ctx[5]);
1610
- }
1611
-
1612
- if (!current || dirty[0] & /*accept*/ 64) {
1613
- attr(select, "accept", /*accept*/ ctx[6]);
1614
- }
1615
-
1616
- if (!current || dirty[0] & /*autocomplete*/ 128) {
1617
- attr(select, "autocomplete", /*autocomplete*/ ctx[7]);
1618
- }
1619
-
1620
- if (!current || dirty[0] & /*autocorrect*/ 256) {
1621
- attr(select, "autocorrect", /*autocorrect*/ ctx[8]);
1622
- }
1623
-
1624
- if (!current || dirty[0] & /*autocapitalize*/ 512) {
1625
- attr(select, "autocapitalize", /*autocapitalize*/ ctx[9]);
1626
- }
1627
-
1628
- if (!current || dirty[0] & /*spellcheck*/ 1024) {
1629
- attr(select, "spellcheck", /*spellcheck*/ ctx[10]);
1630
- }
1631
-
1632
- if (!current || dirty[0] & /*autofocus*/ 2048) {
1633
- select.autofocus = /*autofocus*/ ctx[11];
1634
- }
1635
-
1636
- if (!current || dirty[0] & /*autosave*/ 4096) {
1637
- attr(select, "autosave", /*autosave*/ ctx[12]);
1638
- }
1639
-
1640
- if (!current || dirty[0] & /*checked*/ 8192) {
1641
- attr(select, "checked", /*checked*/ ctx[13]);
1642
- }
1643
-
1644
- if (!current || dirty[0] & /*disabled*/ 16384) {
1645
- select.disabled = /*disabled*/ ctx[14];
1646
- }
1647
-
1648
- if (!current || dirty[0] & /*max*/ 32768) {
1649
- attr(select, "max", /*max*/ ctx[15]);
1650
- }
1651
-
1652
- if (!current || dirty[0] & /*maxlength*/ 262144) {
1653
- attr(select, "maxlength", /*maxlength*/ ctx[18]);
1654
- }
1655
-
1656
- if (!current || dirty[0] & /*min*/ 65536) {
1657
- attr(select, "min", /*min*/ ctx[16]);
1658
- }
1659
-
1660
- if (!current || dirty[0] & /*minlength*/ 524288) {
1661
- attr(select, "minlength", /*minlength*/ ctx[19]);
1662
- }
1663
-
1664
- if (!current || dirty[0] & /*step*/ 131072) {
1665
- attr(select, "step", /*step*/ ctx[17]);
1666
- }
1667
-
1668
- if (!current || dirty[0] & /*multiple*/ 1048576) {
1669
- select.multiple = /*multiple*/ ctx[20];
1670
- }
1671
-
1672
- if (!current || dirty[0] & /*readonly*/ 2097152) {
1673
- attr(select, "readonly", /*readonly*/ ctx[21]);
1674
- }
1675
-
1676
- if (!current || dirty[0] & /*required*/ 4194304) {
1677
- select.required = /*required*/ ctx[22];
1678
- }
1679
-
1680
- if (!current || dirty[0] & /*pattern*/ 16777216) {
1681
- attr(select, "pattern", /*pattern*/ ctx[24]);
1682
- }
1683
-
1684
- if (!current || dirty[0] & /*validate*/ 33554432 && select_validate_value !== (select_validate_value = typeof /*validate*/ ctx[25] === "string" && /*validate*/ ctx[25].length
1685
- ? /*validate*/ ctx[25]
1686
- : undefined)) {
1687
- attr(select, "validate", select_validate_value);
1688
- }
1689
-
1690
- if (!current || dirty[0] & /*validate, validateOnBlur*/ 100663296 && select_data_validate_value !== (select_data_validate_value = /*validate*/ ctx[25] === true || /*validate*/ ctx[25] === "" || /*validateOnBlur*/ ctx[26] === true || /*validateOnBlur*/ ctx[26] === ""
1691
- ? true
1692
- : undefined)) {
1693
- attr(select, "data-validate", select_data_validate_value);
1694
- }
1695
-
1696
- if (!current || dirty[0] & /*validateOnBlur*/ 67108864 && select_data_validate_on_blur_value !== (select_data_validate_on_blur_value = /*validateOnBlur*/ ctx[26] === true || /*validateOnBlur*/ ctx[26] === ""
1697
- ? true
1698
- : undefined)) {
1699
- attr(select, "data-validate-on-blur", select_data_validate_on_blur_value);
1700
- }
1701
-
1702
- if (!current || dirty[0] & /*tabindex*/ 134217728) {
1703
- attr(select, "tabindex", /*tabindex*/ ctx[27]);
1704
- }
1705
-
1706
- if (!current || dirty[0] & /*errorMessage*/ 1073741824 | dirty[1] & /*errorMessageForce*/ 1 && select_data_error_message_value !== (select_data_error_message_value = /*errorMessageForce*/ ctx[31]
1707
- ? undefined
1708
- : /*errorMessage*/ ctx[30])) {
1709
- attr(select, "data-error-message", select_data_error_message_value);
1710
- }
1711
-
1712
- if (!current || dirty[1] & /*inputClassName*/ 256) {
1713
- attr(select, "class", /*inputClassName*/ ctx[39]);
1714
- }
1715
-
1716
- if (!current || dirty[1] & /*inputValue*/ 64) {
1717
- select_option(select, /*inputValue*/ ctx[37]);
1718
- }
1719
- },
1720
- i(local) {
1721
- if (current) return;
1722
- transition_in(default_slot, local);
1723
- current = true;
1724
- },
1725
- o(local) {
1726
- transition_out(default_slot, local);
1727
- current = false;
1728
- },
1729
- d(detaching) {
1730
- if (detaching) detach(select);
1731
- if (default_slot) default_slot.d(detaching);
1732
- /*select_binding*/ ctx[60](null);
1733
- mounted = false;
1734
- run_all(dispose);
1735
- }
1736
- };
1737
- }
1738
-
1739
- // (486:4) {#if (errorMessage || hasErrorSlots) && errorMessageForce}
1740
- function create_if_block_3(ctx) {
1741
- let div;
1742
- let t0;
1743
- let t1;
1744
- let current;
1745
- const error_message_slot_template = /*#slots*/ ctx[59]["error-message"];
1746
- const error_message_slot = create_slot(error_message_slot_template, ctx, /*$$scope*/ ctx[58], get_error_message_slot_context);
1747
-
1748
- return {
1749
- c() {
1750
- div = element("div");
1751
- t0 = text(/*errorMessage*/ ctx[30]);
1752
- t1 = space();
1753
- if (error_message_slot) error_message_slot.c();
1754
- attr(div, "class", "input-error-message");
1755
- },
1756
- m(target, anchor) {
1757
- insert(target, div, anchor);
1758
- append(div, t0);
1759
- append(div, t1);
1760
-
1761
- if (error_message_slot) {
1762
- error_message_slot.m(div, null);
1763
- }
1764
-
1765
- current = true;
1766
- },
1767
- p(ctx, dirty) {
1768
- if (!current || dirty[0] & /*errorMessage*/ 1073741824) set_data(t0, /*errorMessage*/ ctx[30]);
1769
-
1770
- if (error_message_slot) {
1771
- if (error_message_slot.p && (!current || dirty[1] & /*$$scope*/ 134217728)) {
1772
- update_slot(error_message_slot, error_message_slot_template, ctx, /*$$scope*/ ctx[58], dirty, get_error_message_slot_changes, get_error_message_slot_context);
1773
- }
1774
- }
1775
- },
1776
- i(local) {
1777
- if (current) return;
1778
- transition_in(error_message_slot, local);
1779
- current = true;
1780
- },
1781
- o(local) {
1782
- transition_out(error_message_slot, local);
1783
- current = false;
1784
- },
1785
- d(detaching) {
1786
- if (detaching) detach(div);
1787
- if (error_message_slot) error_message_slot.d(detaching);
1788
- }
1789
- };
1790
- }
1791
-
1792
- // (492:4) {#if clearButton}
1793
- function create_if_block_2(ctx) {
1794
- let span;
1795
-
1796
- return {
1797
- c() {
1798
- span = element("span");
1799
- attr(span, "class", "input-clear-button");
1800
- },
1801
- m(target, anchor) {
1802
- insert(target, span, anchor);
1803
- },
1804
- d(detaching) {
1805
- if (detaching) detach(span);
1806
- }
1807
- };
1808
- }
1809
-
1810
- // (493:4) {#if info || hasInfoSlots}
1811
- function create_if_block_1(ctx) {
1812
- let div;
1813
- let t0;
1814
- let t1;
1815
- let current;
1816
- const info_slot_template = /*#slots*/ ctx[59].info;
1817
- const info_slot = create_slot(info_slot_template, ctx, /*$$scope*/ ctx[58], get_info_slot_context);
1818
-
1819
- return {
1820
- c() {
1821
- div = element("div");
1822
- t0 = text(/*info*/ ctx[32]);
1823
- t1 = space();
1824
- if (info_slot) info_slot.c();
1825
- attr(div, "class", "input-info");
1826
- },
1827
- m(target, anchor) {
1828
- insert(target, div, anchor);
1829
- append(div, t0);
1830
- append(div, t1);
1831
-
1832
- if (info_slot) {
1833
- info_slot.m(div, null);
1834
- }
1835
-
1836
- current = true;
1837
- },
1838
- p(ctx, dirty) {
1839
- if (!current || dirty[1] & /*info*/ 2) set_data(t0, /*info*/ ctx[32]);
1840
-
1841
- if (info_slot) {
1842
- if (info_slot.p && (!current || dirty[1] & /*$$scope*/ 134217728)) {
1843
- update_slot(info_slot, info_slot_template, ctx, /*$$scope*/ ctx[58], dirty, get_info_slot_changes, get_info_slot_context);
1844
- }
1845
- }
1846
- },
1847
- i(local) {
1848
- if (current) return;
1849
- transition_in(info_slot, local);
1850
- current = true;
1851
- },
1852
- o(local) {
1853
- transition_out(info_slot, local);
1854
- current = false;
1855
- },
1856
- d(detaching) {
1857
- if (detaching) detach(div);
1858
- if (info_slot) info_slot.d(detaching);
1859
- }
1860
- };
1861
- }
1862
-
1863
- function create_fragment(ctx) {
1864
- let current_block_type_index;
1865
- let if_block;
1866
- let if_block_anchor;
1867
- let current;
1868
-
1869
- const if_block_creators = [
1870
- create_if_block,
1871
- create_if_block_9,
1872
- create_if_block_10,
1873
- create_if_block_11,
1874
- create_if_block_12,
1875
- create_if_block_13,
1876
- create_else_block_1
1877
- ];
1878
-
1879
- const if_blocks = [];
1880
-
1881
- function select_block_type(ctx, dirty) {
1882
- if (/*wrap*/ ctx[33]) return 0;
1883
- if (/*type*/ ctx[1] === "select") return 1;
1884
- if (/*type*/ ctx[1] === "textarea") return 2;
1885
- if (/*type*/ ctx[1] === "toggle") return 3;
1886
- if (/*type*/ ctx[1] === "range") return 4;
1887
- if (/*type*/ ctx[1] === "texteditor") return 5;
1888
- return 6;
1889
- }
1890
-
1891
- current_block_type_index = select_block_type(ctx, [-1]);
1892
- if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
1893
-
1894
- return {
1895
- c() {
1896
- if_block.c();
1897
- if_block_anchor = empty();
1898
- },
1899
- m(target, anchor) {
1900
- if_blocks[current_block_type_index].m(target, anchor);
1901
- insert(target, if_block_anchor, anchor);
1902
- current = true;
1903
- },
1904
- p(ctx, dirty) {
1905
- let previous_block_index = current_block_type_index;
1906
- current_block_type_index = select_block_type(ctx, dirty);
1907
-
1908
- if (current_block_type_index === previous_block_index) {
1909
- if_blocks[current_block_type_index].p(ctx, dirty);
1910
- } else {
1911
- group_outros();
1912
-
1913
- transition_out(if_blocks[previous_block_index], 1, 1, () => {
1914
- if_blocks[previous_block_index] = null;
1915
- });
1916
-
1917
- check_outros();
1918
- if_block = if_blocks[current_block_type_index];
1919
-
1920
- if (!if_block) {
1921
- if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
1922
- if_block.c();
1923
- } else {
1924
- if_block.p(ctx, dirty);
1925
- }
1926
-
1927
- transition_in(if_block, 1);
1928
- if_block.m(if_block_anchor.parentNode, if_block_anchor);
1929
- }
1930
- },
1931
- i(local) {
1932
- if (current) return;
1933
- transition_in(if_block);
1934
- current = true;
1935
- },
1936
- o(local) {
1937
- transition_out(if_block);
1938
- current = false;
1939
- },
1940
- d(detaching) {
1941
- if_blocks[current_block_type_index].d(detaching);
1942
- if (detaching) detach(if_block_anchor);
1943
- }
1944
- };
1945
- }
1946
-
1947
- function instance($$self, $$props, $$invalidate) {
1948
- let inputType;
1949
- let needsValue;
1950
- let inputValue;
1951
- let classes;
1952
- let wrapClasses;
1953
- let inputClassName;
1954
- let hasInfoSlots;
1955
- let hasErrorSlots;
1956
-
1957
- const omit_props_names = [
1958
- "class","type","name","value","placeholder","inputId","size","accept","autocomplete","autocorrect","autocapitalize","spellcheck","autofocus","autosave","checked","disabled","max","min","step","maxlength","minlength","multiple","readonly","required","inputStyle","pattern","validate","validateOnBlur","onValidate","tabindex","resizable","clearButton","noFormStoreData","noStoreData","ignoreStoreData","errorMessage","errorMessageForce","info","outline","wrap","dropdown","calendarParams","colorPickerParams","textEditorParams"
1959
- ];
1960
-
1961
- let $$restProps = compute_rest_props($$props, omit_props_names);
1962
- let { $$slots: slots = {}, $$scope } = $$props;
1963
- const $$slots = compute_slots(slots);
1964
- const emit = createEmitter(createEventDispatcher, $$props);
1965
- let { class: className = undefined } = $$props;
1966
- let { type = undefined } = $$props;
1967
- let { name = undefined } = $$props;
1968
- let { value = undefined } = $$props;
1969
- let { placeholder = undefined } = $$props;
1970
- let { inputId = undefined } = $$props;
1971
- let { size = undefined } = $$props;
1972
- let { accept = undefined } = $$props;
1973
- let { autocomplete = undefined } = $$props;
1974
- let { autocorrect = undefined } = $$props;
1975
- let { autocapitalize = undefined } = $$props;
1976
- let { spellcheck = undefined } = $$props;
1977
- let { autofocus = undefined } = $$props;
1978
- let { autosave = undefined } = $$props;
1979
- let { checked = undefined } = $$props;
1980
- let { disabled = undefined } = $$props;
1981
- let { max = undefined } = $$props;
1982
- let { min = undefined } = $$props;
1983
- let { step = undefined } = $$props;
1984
- let { maxlength = undefined } = $$props;
1985
- let { minlength = undefined } = $$props;
1986
- let { multiple = undefined } = $$props;
1987
- let { readonly = undefined } = $$props;
1988
- let { required = undefined } = $$props;
1989
- let { inputStyle = undefined } = $$props;
1990
- let { pattern = undefined } = $$props;
1991
- let { validate = undefined } = $$props;
1992
- let { validateOnBlur = undefined } = $$props;
1993
- let { onValidate = undefined } = $$props;
1994
- let { tabindex = undefined } = $$props;
1995
- let { resizable = undefined } = $$props;
1996
- let { clearButton = undefined } = $$props;
1997
- let { noFormStoreData = undefined } = $$props;
1998
- let { noStoreData = undefined } = $$props;
1999
- let { ignoreStoreData = undefined } = $$props;
2000
- let { errorMessage = undefined } = $$props;
2001
- let { errorMessageForce = undefined } = $$props;
2002
- let { info = undefined } = $$props;
2003
- let { outline = undefined } = $$props;
2004
- let { wrap = true } = $$props;
2005
- let { dropdown = "auto" } = $$props;
2006
- let { calendarParams = undefined } = $$props;
2007
- let { colorPickerParams = undefined } = $$props;
2008
- let { textEditorParams = undefined } = $$props;
2009
-
2010
- // State
2011
- let inputEl;
2012
-
2013
- let inputFocused = false;
2014
- let inputInvalid = false;
2015
- let updateInputOnDidUpdate = false;
2016
- let f7Calendar;
2017
- let f7ColorPicker;
2018
-
2019
- function domValue() {
2020
- if (!inputEl) return undefined;
2021
- return inputEl.value;
2022
- }
2023
-
2024
- function inputHasValue() {
2025
- if (type === "datepicker" && Array.isArray(value) && value.length === 0) {
2026
- return false;
2027
- }
2028
-
2029
- const domV = domValue();
2030
-
2031
- return typeof value === "undefined"
2032
- ? domV || domV === 0
2033
- : value || value === 0;
2034
- }
2035
-
2036
- function validateInput() {
2037
- if (!app.f7 || !inputEl) return;
2038
- const validity = inputEl.validity;
2039
- if (!validity) return;
2040
-
2041
- if (!validity.valid) {
2042
- if (onValidate) onValidate(false);
2043
-
2044
- if (inputInvalid !== true) {
2045
- $$invalidate(57, inputInvalid = true);
2046
- }
2047
- } else {
2048
- if (onValidate) onValidate(true);
2049
-
2050
- if (inputInvalid !== false) {
2051
- $$invalidate(57, inputInvalid = false);
2052
- }
2053
- }
2054
- }
2055
-
2056
- let initialWatched = false;
2057
-
2058
- function watchValue() {
2059
- if (!initialWatched) {
2060
- initialWatched = true;
2061
- return;
2062
- }
2063
-
2064
- if (type === "range" || type === "toggle") return;
2065
- if (!app.f7) return;
2066
- updateInputOnDidUpdate = true;
2067
-
2068
- if (f7Calendar) {
2069
- f7Calendar.setValue(value);
2070
- }
2071
-
2072
- if (f7ColorPicker) {
2073
- f7ColorPicker.setValue(value);
2074
- }
2075
- }
2076
-
2077
- function onTextareaResize(event) {
2078
- emit("textareaResize", [event]);
2079
- }
2080
-
2081
- function onInputNotEmpty(event) {
2082
- emit("inputNotEmpty", [event]);
2083
- }
2084
-
2085
- function onInputEmpty(event) {
2086
- emit("inputEmpty", [event]);
2087
- }
2088
-
2089
- function onInputClear(event) {
2090
- emit("inputClear", [event]);
2091
- }
2092
-
2093
- function onInput(...args) {
2094
- emit("input", [...args]);
2095
-
2096
- if (!(validateOnBlur || validateOnBlur === "") && (validate || validate === "") && inputEl) {
2097
- validateInput(inputEl);
2098
- }
2099
-
2100
- if (inputEl && type !== "texteditor" && type !== "colorpicker" && type !== "datepicker") {
2101
- $$invalidate(0, value = inputEl.value);
2102
- }
2103
- }
2104
-
2105
- function onFocus(...args) {
2106
- emit("focus", [...args]);
2107
- $$invalidate(56, inputFocused = true);
2108
- }
2109
-
2110
- function onBlur(...args) {
2111
- emit("blur", [...args]);
2112
-
2113
- if ((validate || validate === "" || validateOnBlur || validateOnBlur === "") && inputEl) {
2114
- validateInput();
2115
- }
2116
-
2117
- $$invalidate(56, inputFocused = false);
2118
- }
2119
-
2120
- function onChange(...args) {
2121
- emit("change", [...args]);
2122
-
2123
- if (type === "texteditor") {
2124
- emit("textEditorChange", [args[1]]);
2125
- $$invalidate(0, value = args[1]);
2126
- }
2127
- }
2128
-
2129
- onMount(() => {
2130
- f7ready(() => {
2131
- if (type === "range" || type === "toggle") return;
2132
- if (!inputEl) return;
2133
- inputEl.addEventListener("input:notempty", onInputNotEmpty, false);
2134
-
2135
- if (type === "textarea" && resizable) {
2136
- inputEl.addEventListener("textarea:resize", onTextareaResize, false);
2137
- }
2138
-
2139
- if (clearButton) {
2140
- inputEl.addEventListener("input:empty", onInputEmpty, false);
2141
- inputEl.addEventListener("input:clear", onInputClear, false);
2142
- }
2143
-
2144
- if (type === "datepicker") {
2145
- f7Calendar = app.f7.calendar.create({
2146
- inputEl,
2147
- value,
2148
- on: {
2149
- change(calendar, calendarValue) {
2150
- emit("calendarChange", [calendarValue]);
2151
- $$invalidate(0, value = calendarValue);
2152
- }
2153
- },
2154
- ...calendarParams || {}
2155
- });
2156
- }
2157
-
2158
- if (type === "colorpicker") {
2159
- f7ColorPicker = app.f7.colorPicker.create({
2160
- inputEl,
2161
- value,
2162
- on: {
2163
- change(colorPicker, colorPickerValue) {
2164
- emit("colorpickerChange", [colorPickerValue]);
2165
- $$invalidate(0, value = colorPickerValue);
2166
- }
2167
- },
2168
- ...colorPickerParams || {}
2169
- });
2170
- }
2171
-
2172
- app.f7.input.checkEmptyState(inputEl);
2173
-
2174
- if (!(validateOnBlur || validateOnBlur === "") && (validate || validate === "") && typeof value !== "undefined" && value !== null && value !== "") {
2175
- setTimeout(
2176
- () => {
2177
- validateInput();
2178
- },
2179
- 0
2180
- );
2181
- }
2182
-
2183
- if (resizable) {
2184
- app.f7.input.resizeTextarea(inputEl);
2185
- }
2186
- });
2187
- });
2188
-
2189
- afterUpdate(() => {
2190
- if (!app.f7) return;
2191
-
2192
- if (updateInputOnDidUpdate) {
2193
- if (!inputEl) return;
2194
- updateInputOnDidUpdate = false;
2195
- app.f7.input.checkEmptyState(inputEl);
2196
-
2197
- if (validate && !validateOnBlur) {
2198
- validateInput();
2199
- }
2200
-
2201
- if (resizable) {
2202
- app.f7.input.resizeTextarea(inputEl);
2203
- }
2204
- }
2205
- });
2206
-
2207
- onDestroy(() => {
2208
- if (type === "range" || type === "toggle") return;
2209
- if (!inputEl) return;
2210
- inputEl.removeEventListener("input:notempty", onInputNotEmpty, false);
2211
-
2212
- if (type === "textarea" && resizable) {
2213
- inputEl.removeEventListener("textarea:resize", onTextareaResize, false);
2214
- }
2215
-
2216
- if (clearButton) {
2217
- inputEl.removeEventListener("input:empty", onInputEmpty, false);
2218
- inputEl.removeEventListener("input:clear", onInputClear, false);
2219
- }
2220
-
2221
- if (f7Calendar && f7Calendar.destroy) {
2222
- f7Calendar.destroy();
2223
- }
2224
-
2225
- if (f7ColorPicker && f7ColorPicker.destroy) {
2226
- f7ColorPicker.destroy();
2227
- }
2228
-
2229
- f7Calendar = null;
2230
- f7ColorPicker = null;
2231
- });
2232
-
2233
- function select_binding($$value) {
2234
- binding_callbacks[$$value ? "unshift" : "push"](() => {
2235
- inputEl = $$value;
2236
- $$invalidate(36, inputEl);
2237
- });
2238
- }
2239
-
2240
- function textarea_binding($$value) {
2241
- binding_callbacks[$$value ? "unshift" : "push"](() => {
2242
- inputEl = $$value;
2243
- $$invalidate(36, inputEl);
2244
- });
2245
- }
2246
-
2247
- function input_binding($$value) {
2248
- binding_callbacks[$$value ? "unshift" : "push"](() => {
2249
- inputEl = $$value;
2250
- $$invalidate(36, inputEl);
2251
- });
2252
- }
2253
-
2254
- function select_binding_1($$value) {
2255
- binding_callbacks[$$value ? "unshift" : "push"](() => {
2256
- inputEl = $$value;
2257
- $$invalidate(36, inputEl);
2258
- });
2259
- }
2260
-
2261
- function textarea_binding_1($$value) {
2262
- binding_callbacks[$$value ? "unshift" : "push"](() => {
2263
- inputEl = $$value;
2264
- $$invalidate(36, inputEl);
2265
- });
2266
- }
2267
-
2268
- function input_binding_1($$value) {
2269
- binding_callbacks[$$value ? "unshift" : "push"](() => {
2270
- inputEl = $$value;
2271
- $$invalidate(36, inputEl);
2272
- });
2273
- }
2274
-
2275
- $$self.$$set = $$new_props => {
2276
- $$invalidate(81, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props)));
2277
- $$invalidate(46, $$restProps = compute_rest_props($$props, omit_props_names));
2278
- if ("class" in $$new_props) $$invalidate(47, className = $$new_props.class);
2279
- if ("type" in $$new_props) $$invalidate(1, type = $$new_props.type);
2280
- if ("name" in $$new_props) $$invalidate(2, name = $$new_props.name);
2281
- if ("value" in $$new_props) $$invalidate(0, value = $$new_props.value);
2282
- if ("placeholder" in $$new_props) $$invalidate(3, placeholder = $$new_props.placeholder);
2283
- if ("inputId" in $$new_props) $$invalidate(4, inputId = $$new_props.inputId);
2284
- if ("size" in $$new_props) $$invalidate(5, size = $$new_props.size);
2285
- if ("accept" in $$new_props) $$invalidate(6, accept = $$new_props.accept);
2286
- if ("autocomplete" in $$new_props) $$invalidate(7, autocomplete = $$new_props.autocomplete);
2287
- if ("autocorrect" in $$new_props) $$invalidate(8, autocorrect = $$new_props.autocorrect);
2288
- if ("autocapitalize" in $$new_props) $$invalidate(9, autocapitalize = $$new_props.autocapitalize);
2289
- if ("spellcheck" in $$new_props) $$invalidate(10, spellcheck = $$new_props.spellcheck);
2290
- if ("autofocus" in $$new_props) $$invalidate(11, autofocus = $$new_props.autofocus);
2291
- if ("autosave" in $$new_props) $$invalidate(12, autosave = $$new_props.autosave);
2292
- if ("checked" in $$new_props) $$invalidate(13, checked = $$new_props.checked);
2293
- if ("disabled" in $$new_props) $$invalidate(14, disabled = $$new_props.disabled);
2294
- if ("max" in $$new_props) $$invalidate(15, max = $$new_props.max);
2295
- if ("min" in $$new_props) $$invalidate(16, min = $$new_props.min);
2296
- if ("step" in $$new_props) $$invalidate(17, step = $$new_props.step);
2297
- if ("maxlength" in $$new_props) $$invalidate(18, maxlength = $$new_props.maxlength);
2298
- if ("minlength" in $$new_props) $$invalidate(19, minlength = $$new_props.minlength);
2299
- if ("multiple" in $$new_props) $$invalidate(20, multiple = $$new_props.multiple);
2300
- if ("readonly" in $$new_props) $$invalidate(21, readonly = $$new_props.readonly);
2301
- if ("required" in $$new_props) $$invalidate(22, required = $$new_props.required);
2302
- if ("inputStyle" in $$new_props) $$invalidate(23, inputStyle = $$new_props.inputStyle);
2303
- if ("pattern" in $$new_props) $$invalidate(24, pattern = $$new_props.pattern);
2304
- if ("validate" in $$new_props) $$invalidate(25, validate = $$new_props.validate);
2305
- if ("validateOnBlur" in $$new_props) $$invalidate(26, validateOnBlur = $$new_props.validateOnBlur);
2306
- if ("onValidate" in $$new_props) $$invalidate(48, onValidate = $$new_props.onValidate);
2307
- if ("tabindex" in $$new_props) $$invalidate(27, tabindex = $$new_props.tabindex);
2308
- if ("resizable" in $$new_props) $$invalidate(28, resizable = $$new_props.resizable);
2309
- if ("clearButton" in $$new_props) $$invalidate(29, clearButton = $$new_props.clearButton);
2310
- if ("noFormStoreData" in $$new_props) $$invalidate(49, noFormStoreData = $$new_props.noFormStoreData);
2311
- if ("noStoreData" in $$new_props) $$invalidate(50, noStoreData = $$new_props.noStoreData);
2312
- if ("ignoreStoreData" in $$new_props) $$invalidate(51, ignoreStoreData = $$new_props.ignoreStoreData);
2313
- if ("errorMessage" in $$new_props) $$invalidate(30, errorMessage = $$new_props.errorMessage);
2314
- if ("errorMessageForce" in $$new_props) $$invalidate(31, errorMessageForce = $$new_props.errorMessageForce);
2315
- if ("info" in $$new_props) $$invalidate(32, info = $$new_props.info);
2316
- if ("outline" in $$new_props) $$invalidate(52, outline = $$new_props.outline);
2317
- if ("wrap" in $$new_props) $$invalidate(33, wrap = $$new_props.wrap);
2318
- if ("dropdown" in $$new_props) $$invalidate(53, dropdown = $$new_props.dropdown);
2319
- if ("calendarParams" in $$new_props) $$invalidate(54, calendarParams = $$new_props.calendarParams);
2320
- if ("colorPickerParams" in $$new_props) $$invalidate(55, colorPickerParams = $$new_props.colorPickerParams);
2321
- if ("textEditorParams" in $$new_props) $$invalidate(34, textEditorParams = $$new_props.textEditorParams);
2322
- if ("$$scope" in $$new_props) $$invalidate(58, $$scope = $$new_props.$$scope);
2323
- };
2324
-
2325
- $$self.$$.update = () => {
2326
- if ($$self.$$.dirty[0] & /*value*/ 1) {
2327
- $: watchValue(value);
2328
- }
2329
-
2330
- if ($$self.$$.dirty[0] & /*type*/ 2) {
2331
- $: $$invalidate(35, inputType = type === "datepicker" || type === "colorpicker"
2332
- ? "text"
2333
- : type);
2334
- }
2335
-
2336
- if ($$self.$$.dirty[0] & /*type*/ 2) {
2337
- $: needsValue = type !== "file" && type !== "datepicker" && type !== "colorpicker";
2338
- }
2339
-
2340
- if ($$self.$$.dirty[0] & /*value*/ 1) {
2341
- $: $$invalidate(37, inputValue = (() => {
2342
- let v;
2343
-
2344
- if (typeof value !== "undefined") {
2345
- v = value;
2346
- } else {
2347
- v = domValue();
2348
- }
2349
-
2350
- if (typeof v === "undefined" || v === null) return "";
2351
- return v;
2352
- })());
2353
- }
2354
-
2355
- if ($$self.$$.dirty[0] & /*resizable, errorMessage*/ 1342177280 | $$self.$$.dirty[1] & /*wrap, className, inputType, noFormStoreData, noStoreData, ignoreStoreData, errorMessageForce, inputInvalid, inputFocused*/ 102563861) {
2356
- $: classes = classNames(!wrap && className, {
2357
- resizable: inputType === "textarea" && resizable,
2358
- "no-store-data": noFormStoreData || noStoreData || ignoreStoreData,
2359
- "input-invalid": errorMessage && errorMessageForce || inputInvalid,
2360
- "input-with-value": inputHasValue(),
2361
- "input-focused": inputFocused
2362
- });
2363
- }
2364
-
2365
- $: $$invalidate(38, wrapClasses = classNames(
2366
- className,
2367
- "input",
2368
- {
2369
- "input-outline": outline,
2370
- "input-dropdown": dropdown === "auto" ? type === "select" : dropdown,
2371
- "input-invalid": errorMessage && errorMessageForce || inputInvalid
2372
- },
2373
- colorClasses($$props)
2374
- ));
2375
-
2376
- if ($$self.$$.dirty[0] & /*resizable, errorMessage*/ 1342177280 | $$self.$$.dirty[1] & /*wrap, className, inputType, noFormStoreData, noStoreData, ignoreStoreData, errorMessageForce, inputInvalid, inputFocused*/ 102563861) {
2377
- $: $$invalidate(39, inputClassName = classNames(!wrap && className, {
2378
- resizable: inputType === "textarea" && resizable,
2379
- "no-store-data": noFormStoreData || noStoreData || ignoreStoreData,
2380
- "input-invalid": errorMessage && errorMessageForce || inputInvalid,
2381
- "input-with-value": inputHasValue(),
2382
- "input-focused": inputFocused
2383
- }));
2384
- }
2385
- };
2386
-
2387
- $: $$invalidate(40, hasInfoSlots = $$slots.info);
2388
-
2389
- // eslint-disable-next-line
2390
- $: $$invalidate(41, hasErrorSlots = $$slots["error-message"]);
2391
-
2392
- $$props = exclude_internal_props($$props);
2393
-
2394
- return [
2395
- value,
2396
- type,
2397
- name,
2398
- placeholder,
2399
- inputId,
2400
- size,
2401
- accept,
2402
- autocomplete,
2403
- autocorrect,
2404
- autocapitalize,
2405
- spellcheck,
2406
- autofocus,
2407
- autosave,
2408
- checked,
2409
- disabled,
2410
- max,
2411
- min,
2412
- step,
2413
- maxlength,
2414
- minlength,
2415
- multiple,
2416
- readonly,
2417
- required,
2418
- inputStyle,
2419
- pattern,
2420
- validate,
2421
- validateOnBlur,
2422
- tabindex,
2423
- resizable,
2424
- clearButton,
2425
- errorMessage,
2426
- errorMessageForce,
2427
- info,
2428
- wrap,
2429
- textEditorParams,
2430
- inputType,
2431
- inputEl,
2432
- inputValue,
2433
- wrapClasses,
2434
- inputClassName,
2435
- hasInfoSlots,
2436
- hasErrorSlots,
2437
- onInput,
2438
- onFocus,
2439
- onBlur,
2440
- onChange,
2441
- $$restProps,
2442
- className,
2443
- onValidate,
2444
- noFormStoreData,
2445
- noStoreData,
2446
- ignoreStoreData,
2447
- outline,
2448
- dropdown,
2449
- calendarParams,
2450
- colorPickerParams,
2451
- inputFocused,
2452
- inputInvalid,
2453
- $$scope,
2454
- slots,
2455
- select_binding,
2456
- textarea_binding,
2457
- input_binding,
2458
- select_binding_1,
2459
- textarea_binding_1,
2460
- input_binding_1
2461
- ];
2462
- }
2463
-
2464
- class Input extends SvelteComponent {
2465
- constructor(options) {
2466
- super();
2467
-
2468
- init(
2469
- this,
2470
- options,
2471
- instance,
2472
- create_fragment,
2473
- safe_not_equal,
2474
- {
2475
- class: 47,
2476
- type: 1,
2477
- name: 2,
2478
- value: 0,
2479
- placeholder: 3,
2480
- inputId: 4,
2481
- size: 5,
2482
- accept: 6,
2483
- autocomplete: 7,
2484
- autocorrect: 8,
2485
- autocapitalize: 9,
2486
- spellcheck: 10,
2487
- autofocus: 11,
2488
- autosave: 12,
2489
- checked: 13,
2490
- disabled: 14,
2491
- max: 15,
2492
- min: 16,
2493
- step: 17,
2494
- maxlength: 18,
2495
- minlength: 19,
2496
- multiple: 20,
2497
- readonly: 21,
2498
- required: 22,
2499
- inputStyle: 23,
2500
- pattern: 24,
2501
- validate: 25,
2502
- validateOnBlur: 26,
2503
- onValidate: 48,
2504
- tabindex: 27,
2505
- resizable: 28,
2506
- clearButton: 29,
2507
- noFormStoreData: 49,
2508
- noStoreData: 50,
2509
- ignoreStoreData: 51,
2510
- errorMessage: 30,
2511
- errorMessageForce: 31,
2512
- info: 32,
2513
- outline: 52,
2514
- wrap: 33,
2515
- dropdown: 53,
2516
- calendarParams: 54,
2517
- colorPickerParams: 55,
2518
- textEditorParams: 34
2519
- },
2520
- [-1, -1, -1]
2521
- );
2522
- }
2523
- }
2524
-
2525
- exports.default = Input;