framework7-svelte 6.3.5 → 7.0.0-beta.4

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