@sparkle-learning/core 0.0.32 → 0.0.33

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 (252) hide show
  1. package/dist/cjs/PrivateRoute-482697a6.js +35 -0
  2. package/dist/cjs/{PrivateRoute-043bb7d3.js → auth.service-f878f6ab.js} +0 -30
  3. package/dist/cjs/dom-utils-b8befdd5.js +63 -0
  4. package/dist/cjs/header-mobile-collapse_2.cjs.entry.js +112 -0
  5. package/dist/cjs/index-07e8aa51.js +3071 -0
  6. package/dist/cjs/index.cjs.js +6 -5
  7. package/dist/cjs/injectHistory-77d41284.js +9 -0
  8. package/dist/cjs/ion-avatar.cjs.entry.js +25 -0
  9. package/dist/cjs/ion-button_3.cjs.entry.js +383 -0
  10. package/dist/cjs/ion-card_2.cjs.entry.js +93 -0
  11. package/dist/cjs/ion-checkbox_4.cjs.entry.js +370 -0
  12. package/dist/cjs/ion-col_3.cjs.entry.js +155 -0
  13. package/dist/cjs/ion-icon_2.cjs.entry.js +397 -0
  14. package/dist/cjs/ion-input_2.cjs.entry.js +316 -0
  15. package/dist/cjs/ion-label_2.cjs.entry.js +126 -0
  16. package/dist/cjs/ion-range.cjs.entry.js +445 -0
  17. package/dist/cjs/ion-spinner.cjs.entry.js +64 -0
  18. package/dist/cjs/loader.cjs.js +1 -1
  19. package/dist/cjs/match-path-84c9f7ca.js +511 -0
  20. package/dist/cjs/sparkle-card_3.cjs.entry.js +91 -0
  21. package/dist/cjs/sparkle-core.cjs.js +1 -1
  22. package/dist/cjs/sparkle-course-root.cjs.entry.js +145 -0
  23. package/dist/cjs/sparkle-dropdown.cjs.entry.js +61 -0
  24. package/dist/cjs/{header-mobile-collapse_61.cjs.entry.js → sparkle-export-lessons_6.cjs.entry.js} +8863 -17662
  25. package/dist/cjs/sparkle-facilitator-header_19.cjs.entry.js +2129 -0
  26. package/dist/cjs/sparkle-feedback.cjs.entry.js +2 -1
  27. package/dist/cjs/sparkle-goal-progress.cjs.entry.js +19 -0
  28. package/dist/cjs/sparkle-gww-item.cjs.entry.js +74 -0
  29. package/dist/cjs/sparkle-intro.cjs.entry.js +26 -0
  30. package/dist/cjs/sparkle-menu-toggle_3.cjs.entry.js +236 -0
  31. package/dist/cjs/sparkle-validation-error.cjs.entry.js +21 -0
  32. package/dist/cjs/stencil-route-link.cjs.entry.js +77 -0
  33. package/dist/cjs/stencil-router-redirect.cjs.entry.js +32 -0
  34. package/dist/cjs/student.service-7af424fe.js +61 -0
  35. package/dist/cjs/user.store-3d29139d.js +21 -0
  36. package/dist/collection/collection-manifest.json +1 -0
  37. package/dist/collection/components/sparkle-intro/sparkle-intro.css +16 -0
  38. package/dist/collection/components/sparkle-intro/sparkle-intro.js +35 -0
  39. package/dist/esm/PrivateRoute-f59ba6b5.js +33 -0
  40. package/dist/esm/{animation-b306f6c2.js → animation-7b083379.js} +1 -1
  41. package/dist/esm/{PrivateRoute-b9937c45.js → auth.service-7ab0ac58.js} +3 -32
  42. package/dist/esm/{auth.store-3ed2389e.js → auth.store-98fad96d.js} +2 -2
  43. package/dist/esm/dom-utils-8e73e88b.js +55 -0
  44. package/dist/esm/{facilitator.service-ec0a9739.js → facilitator.service-1524bf89.js} +1 -1
  45. package/dist/esm/{feed.service-33b83cb7.js → feed.service-4900fc62.js} +2 -2
  46. package/dist/esm/{framework-delegate-3bc58c27.js → framework-delegate-518bd233.js} +1 -1
  47. package/dist/esm/header-mobile-collapse_2.entry.js +107 -0
  48. package/dist/esm/{helpers-39367fe1.js → helpers-9d0930de.js} +1 -1
  49. package/dist/esm/{icons-61dec176.js → icons-05b6ce86.js} +1 -1
  50. package/dist/esm/{index-c26d8655.js → index-8de9446b.js} +3 -3
  51. package/dist/esm/index-c92f99d4.js +3067 -0
  52. package/dist/esm/{index-dc61f152.js → index-ea26196a.js} +1 -1
  53. package/dist/esm/{index-9594837e.js → index-fa5e93c5.js} +2 -2
  54. package/dist/esm/{index.es-97dd8174.js → index.es-89cff481.js} +3 -3
  55. package/dist/esm/index.js +5 -4
  56. package/dist/esm/injectHistory-52d0c7eb.js +7 -0
  57. package/dist/esm/{input-shims-cc98ea92.js → input-shims-7f04e044.js} +1 -1
  58. package/dist/esm/ion-accordion.entry.js +2 -2
  59. package/dist/esm/ion-action-sheet_4.entry.js +5 -5
  60. package/dist/esm/ion-app.entry.js +3 -3
  61. package/dist/esm/ion-avatar.entry.js +21 -0
  62. package/dist/esm/ion-back-button.entry.js +2 -2
  63. package/dist/esm/ion-breadcrumb.entry.js +2 -2
  64. package/dist/esm/ion-button_3.entry.js +377 -0
  65. package/dist/esm/ion-card_2.entry.js +88 -0
  66. package/dist/esm/ion-checkbox_4.entry.js +363 -0
  67. package/dist/esm/ion-col_3.entry.js +149 -0
  68. package/dist/esm/ion-content_2.entry.js +1 -1
  69. package/dist/esm/ion-datetime.entry.js +2 -2
  70. package/dist/esm/ion-fab-button.entry.js +1 -1
  71. package/dist/esm/ion-footer.entry.js +1 -1
  72. package/dist/esm/ion-icon_2.entry.js +392 -0
  73. package/dist/esm/ion-img.entry.js +1 -1
  74. package/dist/esm/ion-infinite-scroll.entry.js +1 -1
  75. package/dist/esm/ion-input_2.entry.js +311 -0
  76. package/dist/esm/ion-item-options.entry.js +1 -1
  77. package/dist/esm/ion-item-sliding.entry.js +1 -1
  78. package/dist/esm/ion-label_2.entry.js +121 -0
  79. package/dist/esm/ion-loading.entry.js +3 -3
  80. package/dist/esm/ion-menu-button.entry.js +5 -5
  81. package/dist/esm/ion-menu-toggle.entry.js +4 -4
  82. package/dist/esm/ion-menu.entry.js +4 -4
  83. package/dist/esm/ion-modal.entry.js +5 -5
  84. package/dist/esm/ion-nav.entry.js +4 -4
  85. package/dist/esm/ion-picker-column-internal_2.entry.js +1 -1
  86. package/dist/esm/ion-picker-column.entry.js +1 -1
  87. package/dist/esm/ion-picker.entry.js +3 -3
  88. package/dist/esm/ion-progress-bar.entry.js +1 -1
  89. package/dist/esm/ion-range.entry.js +441 -0
  90. package/dist/esm/ion-refresher-content.entry.js +1 -1
  91. package/dist/esm/ion-refresher.entry.js +2 -2
  92. package/dist/esm/ion-reorder-group.entry.js +1 -1
  93. package/dist/esm/ion-reorder.entry.js +1 -1
  94. package/dist/esm/ion-router-outlet.entry.js +4 -4
  95. package/dist/esm/ion-router.entry.js +1 -1
  96. package/dist/esm/ion-searchbar.entry.js +2 -2
  97. package/dist/esm/ion-segment-button.entry.js +1 -1
  98. package/dist/esm/ion-segment.entry.js +1 -1
  99. package/dist/esm/ion-select_2.entry.js +2 -2
  100. package/dist/esm/ion-slides.entry.js +1 -1
  101. package/dist/esm/ion-spinner.entry.js +60 -0
  102. package/dist/esm/ion-tab.entry.js +2 -2
  103. package/dist/esm/ion-textarea.entry.js +1 -1
  104. package/dist/esm/ion-toast.entry.js +3 -3
  105. package/dist/esm/ion-toggle.entry.js +1 -1
  106. package/dist/esm/ion-virtual-scroll.entry.js +1 -1
  107. package/dist/esm/{ios.transition-b4ca8a33.js → ios.transition-db4f4ca6.js} +3 -3
  108. package/dist/esm/loader.js +1 -1
  109. package/dist/esm/match-path-36fdf5c7.js +499 -0
  110. package/dist/esm/{md.transition-ca5e0322.js → md.transition-8294b503.js} +3 -3
  111. package/dist/esm/{menu-toggle-util-7fa22c2f.js → menu-toggle-util-06adade3.js} +1 -1
  112. package/dist/esm/{overlays-34cfa9e0.js → overlays-5c777f10.js} +2 -2
  113. package/dist/esm/{purify-ffce2b4c.js → purify-eb68cf1d.js} +1 -1
  114. package/dist/esm/sparkle-animation-player.entry.js +1 -1
  115. package/dist/esm/sparkle-card_3.entry.js +85 -0
  116. package/dist/esm/sparkle-code.entry.js +1 -1
  117. package/dist/esm/sparkle-core.js +1 -1
  118. package/dist/esm/sparkle-course-root.entry.js +141 -0
  119. package/dist/esm/sparkle-dropdown.entry.js +57 -0
  120. package/dist/esm/{header-mobile-collapse_61.entry.js → sparkle-export-lessons_6.entry.js} +8858 -17602
  121. package/dist/esm/sparkle-facilitator-header_19.entry.js +2107 -0
  122. package/dist/esm/sparkle-facilitator-notes-form.entry.js +4 -4
  123. package/dist/esm/sparkle-feedback.entry.js +5 -4
  124. package/dist/esm/sparkle-goal-form.entry.js +5 -5
  125. package/dist/esm/sparkle-goal-progress.entry.js +15 -0
  126. package/dist/esm/sparkle-gww-item.entry.js +70 -0
  127. package/dist/esm/sparkle-intro.entry.js +22 -0
  128. package/dist/esm/sparkle-menu-collapsible.entry.js +1 -1
  129. package/dist/esm/sparkle-menu-toggle_3.entry.js +230 -0
  130. package/dist/esm/sparkle-validation-error.entry.js +17 -0
  131. package/dist/esm/{status-tap-6351a0cb.js → status-tap-e8c0c752.js} +1 -1
  132. package/dist/esm/stencil-route-link.entry.js +73 -0
  133. package/dist/esm/stencil-router-redirect.entry.js +28 -0
  134. package/dist/esm/{student.service-29b688ba.js → student.service-c2f44f3a.js} +3 -18
  135. package/dist/esm/{swipe-back-34251834.js → swipe-back-9a3b2cdd.js} +1 -1
  136. package/dist/esm/{tap-click-13f1fb0d.js → tap-click-cca25060.js} +1 -1
  137. package/dist/esm/user.store-e6ff7558.js +19 -0
  138. package/dist/esm/{util-6ef753e9.js → util-a831d09d.js} +1 -1
  139. package/dist/sparkle-core/index.esm.js +1 -1
  140. package/dist/sparkle-core/p-021fde3c.entry.js +1 -0
  141. package/dist/sparkle-core/p-034306e2.js +1 -0
  142. package/dist/sparkle-core/{p-6c90bde6.entry.js → p-034aa29f.entry.js} +1 -1
  143. package/dist/sparkle-core/p-06c0cce3.entry.js +1 -0
  144. package/dist/sparkle-core/{p-9cfdeb18.entry.js → p-08923b40.entry.js} +1 -1
  145. package/dist/sparkle-core/{p-513794b0.js → p-0ad99881.js} +1 -1
  146. package/dist/sparkle-core/{p-95004267.entry.js → p-11234d0f.entry.js} +1 -1
  147. package/dist/sparkle-core/{p-9a17f2ad.js → p-1133fcbd.js} +2 -2
  148. package/dist/sparkle-core/{p-faa912d7.entry.js → p-1551190a.entry.js} +1 -1
  149. package/dist/sparkle-core/p-1728ead7.js +1 -0
  150. package/dist/sparkle-core/{p-ae1f145d.entry.js → p-1e8c22e0.entry.js} +1 -1
  151. package/dist/sparkle-core/p-232cc3bc.js +1 -0
  152. package/dist/sparkle-core/{p-289a35ed.entry.js → p-28950db0.entry.js} +1 -1
  153. package/dist/sparkle-core/p-2af82cc1.entry.js +1 -0
  154. package/dist/sparkle-core/p-2bd4c60e.js +1 -0
  155. package/dist/sparkle-core/p-2f437793.entry.js +348 -0
  156. package/dist/sparkle-core/p-330ccc7c.entry.js +1 -0
  157. package/dist/sparkle-core/{p-838fa86d.entry.js → p-337f92b0.entry.js} +1 -1
  158. package/dist/sparkle-core/{p-857f3696.entry.js → p-35c5c110.entry.js} +1 -1
  159. package/dist/sparkle-core/p-3ff617d5.js +1 -0
  160. package/dist/sparkle-core/{p-9c1772c3.js → p-401feeb0.js} +1 -1
  161. package/dist/sparkle-core/{p-5a3d0e6b.js → p-4028676b.js} +1 -1
  162. package/dist/sparkle-core/{p-1cef8572.js → p-41124baa.js} +1 -1
  163. package/dist/sparkle-core/{p-0187adef.entry.js → p-41af3793.entry.js} +1 -1
  164. package/dist/sparkle-core/p-43a7391b.entry.js +1 -0
  165. package/dist/sparkle-core/{p-855ca600.js → p-44c23f72.js} +1 -1
  166. package/dist/sparkle-core/{p-c1376096.entry.js → p-4550e10f.entry.js} +1 -1
  167. package/dist/sparkle-core/{p-660e0742.js → p-4a72626a.js} +1 -1
  168. package/dist/sparkle-core/{p-e1cba44b.entry.js → p-4ba57978.entry.js} +1 -1
  169. package/dist/sparkle-core/{p-935e7cfc.js → p-4bd4dab2.js} +1 -1
  170. package/dist/sparkle-core/{p-d5b05ece.entry.js → p-4ef4b8bd.entry.js} +1 -1
  171. package/dist/sparkle-core/{p-55ae49e1.js → p-4f144efa.js} +1 -1
  172. package/dist/sparkle-core/{p-713590fc.js → p-52d4715a.js} +1 -1
  173. package/dist/sparkle-core/{p-bca0e465.entry.js → p-52f1d1ca.entry.js} +1 -1
  174. package/dist/sparkle-core/{p-7e61973d.entry.js → p-5a98d42e.entry.js} +1 -1
  175. package/dist/sparkle-core/{p-99b43ee1.entry.js → p-5e4ec238.entry.js} +1 -1
  176. package/dist/sparkle-core/{p-e6b66cef.entry.js → p-5ec7fd67.entry.js} +1 -1
  177. package/dist/sparkle-core/p-618f6f82.entry.js +1 -0
  178. package/dist/sparkle-core/p-65ca1fb2.entry.js +1 -0
  179. package/dist/sparkle-core/{p-a080e768.entry.js → p-663fafa9.entry.js} +1 -1
  180. package/dist/sparkle-core/p-67f71099.entry.js +4 -0
  181. package/dist/sparkle-core/{p-6e88764b.entry.js → p-6a16b9ef.entry.js} +2 -2
  182. package/dist/sparkle-core/p-6b6a8f0a.entry.js +1 -0
  183. package/dist/sparkle-core/p-6c5b5ea2.entry.js +1 -0
  184. package/dist/sparkle-core/{p-941eaa3a.entry.js → p-6ebf52fb.entry.js} +1 -1
  185. package/dist/sparkle-core/p-6f45db93.js +1 -0
  186. package/dist/sparkle-core/p-74106ca8.entry.js +1 -0
  187. package/dist/sparkle-core/{p-6fbe3ca3.entry.js → p-7568dcab.entry.js} +1 -1
  188. package/dist/sparkle-core/p-7703bae9.entry.js +1 -0
  189. package/dist/sparkle-core/p-77c23496.entry.js +1 -0
  190. package/dist/sparkle-core/p-79606a41.entry.js +1 -0
  191. package/dist/sparkle-core/p-7976e88c.entry.js +1 -0
  192. package/dist/sparkle-core/p-7c1f59ec.js +1 -0
  193. package/dist/sparkle-core/p-7de0a22b.entry.js +1 -0
  194. package/dist/sparkle-core/p-848fe770.entry.js +1 -0
  195. package/dist/sparkle-core/{p-cbbeed67.entry.js → p-85429b12.entry.js} +1 -1
  196. package/dist/sparkle-core/{p-64e72f8f.js → p-86d099f1.js} +2 -2
  197. package/dist/sparkle-core/{p-389500fd.js → p-87549bb7.js} +2 -2
  198. package/dist/sparkle-core/{p-1b78dea1.entry.js → p-8c470e28.entry.js} +1 -1
  199. package/dist/sparkle-core/{p-50aac721.entry.js → p-90466494.entry.js} +1 -1
  200. package/dist/sparkle-core/p-954c89c2.entry.js +1 -0
  201. package/dist/sparkle-core/{p-f4001fdf.js → p-95d01c4c.js} +1 -1
  202. package/dist/sparkle-core/{p-6ee40949.js → p-987c64eb.js} +1 -1
  203. package/dist/sparkle-core/{p-1af044f7.js → p-a7832a51.js} +1 -1
  204. package/dist/sparkle-core/p-a89dea80.entry.js +1 -0
  205. package/dist/sparkle-core/p-aef8aa31.entry.js +1 -0
  206. package/dist/sparkle-core/{p-6c6145cd.js → p-b17dd6df.js} +2 -2
  207. package/dist/sparkle-core/{p-5ff6416d.entry.js → p-b21d0d9f.entry.js} +1 -1
  208. package/dist/sparkle-core/p-b7dafaae.entry.js +1 -0
  209. package/dist/sparkle-core/{p-c3986a52.entry.js → p-bd062288.entry.js} +1 -1
  210. package/dist/sparkle-core/{p-c1279cc9.entry.js → p-beb401e3.entry.js} +1 -1
  211. package/dist/sparkle-core/p-bef34cfe.entry.js +1 -0
  212. package/dist/sparkle-core/{p-6bf07a28.js → p-c1c59771.js} +1 -1
  213. package/dist/sparkle-core/p-c4104929.entry.js +1 -0
  214. package/dist/sparkle-core/{p-173d5461.entry.js → p-c748f64e.entry.js} +1 -1
  215. package/dist/sparkle-core/{p-d4a435f8.entry.js → p-c753207f.entry.js} +1 -1
  216. package/dist/sparkle-core/{p-18e62133.entry.js → p-c8ae9e47.entry.js} +1 -1
  217. package/dist/sparkle-core/p-c8ed0575.js +1 -0
  218. package/dist/sparkle-core/{p-8fe2e51f.entry.js → p-c96b24bd.entry.js} +2 -2
  219. package/dist/sparkle-core/p-ce13171b.entry.js +1 -0
  220. package/dist/sparkle-core/{p-5c9aa1f9.entry.js → p-d00f550b.entry.js} +1 -1
  221. package/dist/sparkle-core/p-d394eed1.entry.js +1 -0
  222. package/dist/sparkle-core/p-d48e95c1.entry.js +1 -0
  223. package/dist/sparkle-core/p-d4b1a14a.entry.js +1 -0
  224. package/dist/sparkle-core/{p-b81e20fe.entry.js → p-d56efeac.entry.js} +1 -1
  225. package/dist/sparkle-core/{p-932bfb69.entry.js → p-d59a5984.entry.js} +1 -1
  226. package/dist/sparkle-core/p-d8aff730.entry.js +1 -0
  227. package/dist/sparkle-core/{p-5d2e54ee.entry.js → p-da8921d0.entry.js} +1 -1
  228. package/dist/sparkle-core/{p-a1cab0f3.js → p-e08059b6.js} +2 -2
  229. package/dist/sparkle-core/{p-5598650a.entry.js → p-ec4d22e3.entry.js} +1 -1
  230. package/dist/sparkle-core/{p-eb70a23c.entry.js → p-ed3eed72.entry.js} +1 -1
  231. package/dist/sparkle-core/{p-a7cc0052.entry.js → p-ee0717e1.entry.js} +1 -1
  232. package/dist/sparkle-core/p-ef2dace6.js +4 -0
  233. package/dist/sparkle-core/{p-2ee6a5f9.entry.js → p-f1106984.entry.js} +1 -1
  234. package/dist/sparkle-core/p-f61ca75c.entry.js +1 -0
  235. package/dist/sparkle-core/{p-e225581a.js → p-f6bafe1d.js} +1 -1
  236. package/dist/sparkle-core/{p-1df05176.js → p-ff4d6858.js} +1 -1
  237. package/dist/sparkle-core/sparkle-core.esm.js +1 -1
  238. package/dist/types/components/sparkle-intro/sparkle-intro.d.ts +7 -0
  239. package/dist/types/components.d.ts +13 -0
  240. package/package.json +1 -1
  241. package/dist/cjs/student.service-744c3155.js +0 -77
  242. package/dist/sparkle-core/p-03189863.js +0 -1
  243. package/dist/sparkle-core/p-0f899097.entry.js +0 -352
  244. package/dist/sparkle-core/p-1339830f.entry.js +0 -1
  245. package/dist/sparkle-core/p-145e40f5.entry.js +0 -1
  246. package/dist/sparkle-core/p-547b70c6.entry.js +0 -1
  247. package/dist/sparkle-core/p-6bbabb80.entry.js +0 -1
  248. package/dist/sparkle-core/p-950effe7.entry.js +0 -1
  249. package/dist/sparkle-core/p-d8d3524a.js +0 -1
  250. package/dist/sparkle-core/p-e0fced48.entry.js +0 -1
  251. package/dist/sparkle-core/p-e72d4450.js +0 -4
  252. package/dist/sparkle-core/p-fc933591.entry.js +0 -1
@@ -2,10 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const PrivateRoute = require('./PrivateRoute-043bb7d3.js');
5
+ const auth_service = require('./auth.service-f878f6ab.js');
6
6
  const environmentConfig_service = require('./environment-config.service-0e02b049.js');
7
7
  const assets_service = require('./assets.service-0c759d51.js');
8
8
  const auth_store = require('./auth.store-ff3fda09.js');
9
+ const PrivateRoute = require('./PrivateRoute-482697a6.js');
9
10
  require('./index-bae2a754.js');
10
11
  require('./localstorage.service-6346a41d.js');
11
12
  require('./overlays-0a748609.js');
@@ -15,10 +16,10 @@ require('./helpers-7e28976c.js');
15
16
 
16
17
 
17
18
 
18
- exports.AuthService = PrivateRoute.AuthService;
19
- exports.PrivateRoute = PrivateRoute.PrivateRoute;
20
- exports.initSetupEnvironmentConfig = PrivateRoute.initSetupConfig;
21
- exports.setupEnvironmentConfig = PrivateRoute.setupConfig;
19
+ exports.AuthService = auth_service.AuthService;
20
+ exports.initSetupEnvironmentConfig = auth_service.initSetupConfig;
21
+ exports.setupEnvironmentConfig = auth_service.setupConfig;
22
22
  exports.EnvironmentConfigService = environmentConfig_service.EnvironmentConfigService;
23
23
  exports.AssetsService = assets_service.AssetsService;
24
24
  exports.AuthStore = auth_store.AuthStore;
25
+ exports.PrivateRoute = PrivateRoute.PrivateRoute;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ const activeRouter = require('./active-router-eedb3bfe.js');
4
+
5
+ function injectHistory(Component) {
6
+ activeRouter.ActiveRouter.injectProps(Component, ['history', 'location']);
7
+ }
8
+
9
+ exports.injectHistory = injectHistory;
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-bae2a754.js');
6
+ const ionicGlobal = require('./ionic-global-878073d1.js');
7
+
8
+ const avatarIosCss = ":host{border-radius:var(--border-radius);display:block}::slotted(ion-img),::slotted(img){border-radius:var(--border-radius);width:100%;height:100%;object-fit:cover;overflow:hidden}:host{--border-radius:50%;width:48px;height:48px}";
9
+
10
+ const avatarMdCss = ":host{border-radius:var(--border-radius);display:block}::slotted(ion-img),::slotted(img){border-radius:var(--border-radius);width:100%;height:100%;object-fit:cover;overflow:hidden}:host{--border-radius:50%;width:64px;height:64px}";
11
+
12
+ const Avatar = class {
13
+ constructor(hostRef) {
14
+ index.registerInstance(this, hostRef);
15
+ }
16
+ render() {
17
+ return (index.h(index.Host, { class: ionicGlobal.getIonMode(this) }, index.h("slot", null)));
18
+ }
19
+ };
20
+ Avatar.style = {
21
+ ios: avatarIosCss,
22
+ md: avatarMdCss
23
+ };
24
+
25
+ exports.ion_avatar = Avatar;
@@ -0,0 +1,383 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-bae2a754.js');
6
+ const ionicGlobal = require('./ionic-global-878073d1.js');
7
+ const helpers = require('./helpers-7e28976c.js');
8
+ const theme = require('./theme-4252ac15.js');
9
+ const index$1 = require('./index-8540d72e.js');
10
+
11
+ const buttonIosCss = ":host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #3880ff);--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;display:block;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;display:block;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;box-sizing:border-box;appearance:none}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.button-native::-moz-focus-inner{border:0}.button-inner{display:flex;position:relative;flex-flow:row nowrap;flex-shrink:0;align-items:center;justify-content:center;width:100%;height:100%;z-index:1}::slotted(ion-icon){font-size:1.4em;pointer-events:none}::slotted(ion-icon[slot=start]){margin-left:-0.3em;margin-right:0.3em;margin-top:0;margin-bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em}}::slotted(ion-icon[slot=end]){margin-left:0.3em;margin-right:-0.2em;margin-top:0;margin-bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em}}::slotted(ion-icon[slot=icon-only]){font-size:1.8em}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:\"\";opacity:0}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host{--border-radius:10px;--padding-top:0;--padding-bottom:0;--padding-start:1em;--padding-end:1em;--transition:background-color, opacity 100ms linear;margin-left:2px;margin-right:2px;margin-top:4px;margin-bottom:4px;height:2.8em;font-size:16px;font-weight:500;letter-spacing:-0.03em}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px}}:host(.button-solid){--background-activated:var(--ion-color-primary-shade, #3171e0);--background-focused:var(--ion-color-primary-shade, #3171e0);--background-hover:var(--ion-color-primary-tint, #4c8dff);--background-activated-opacity:1;--background-focused-opacity:1;--background-hover-opacity:1}:host(.button-outline){--border-radius:10px;--border-width:1px;--border-style:solid;--background-activated:var(--ion-color-primary, #3880ff);--background-focused:var(--ion-color-primary, #3880ff);--background-hover:transparent;--background-focused-opacity:.1;--color-activated:var(--ion-color-primary-contrast, #fff)}:host(.button-clear){--background-activated:transparent;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:transparent;--background-focused-opacity:.1;font-size:17px;font-weight:normal;letter-spacing:0}:host(.button-large){--border-radius:12px;--padding-top:0;--padding-start:1em;--padding-end:1em;--padding-bottom:0;height:2.8em;font-size:20px}:host(.button-small){--border-radius:6px;--padding-top:0;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:0;height:2.1em;font-size:13px}:host(.button-round){--border-radius:64px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-strong){font-weight:600}:host(.button-clear.ion-activated){opacity:0.4}:host(.button-outline.ion-activated.ion-color) .button-native{color:var(--ion-color-contrast)}:host(.button-outline.ion-activated.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-activated) .button-native::after{background:var(--ion-color-shade)}:host(.button-outline.ion-focused.ion-color) .button-native,:host(.button-clear.ion-focused.ion-color) .button-native{color:var(--ion-color-base)}:host(.button-outline.ion-focused.ion-color) .button-native::after,:host(.button-clear.ion-focused.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-shade)}@media (any-hover: hover){:host(.button-clear:hover),:host(.button-outline:hover){opacity:0.6}:host(.button-clear.ion-color:hover) .button-native,:host(.button-outline.ion-color:hover) .button-native{color:var(--ion-color-base)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:transparent}:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-tint)}:host(:hover.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native::after{background:#fff;opacity:0.1}}";
12
+
13
+ const buttonMdCss = ":host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #3880ff);--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;display:block;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;display:block;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;box-sizing:border-box;appearance:none}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.button-native::-moz-focus-inner{border:0}.button-inner{display:flex;position:relative;flex-flow:row nowrap;flex-shrink:0;align-items:center;justify-content:center;width:100%;height:100%;z-index:1}::slotted(ion-icon){font-size:1.4em;pointer-events:none}::slotted(ion-icon[slot=start]){margin-left:-0.3em;margin-right:0.3em;margin-top:0;margin-bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em}}::slotted(ion-icon[slot=end]){margin-left:0.3em;margin-right:-0.2em;margin-top:0;margin-bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em}}::slotted(ion-icon[slot=icon-only]){font-size:1.8em}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:\"\";opacity:0}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host{--border-radius:4px;--padding-top:0;--padding-bottom:0;--padding-start:1.1em;--padding-end:1.1em;--transition:box-shadow 280ms cubic-bezier(.4, 0, .2, 1),\n background-color 15ms linear,\n color 15ms linear;margin-left:2px;margin-right:2px;margin-top:4px;margin-bottom:4px;height:36px;font-size:14px;font-weight:500;letter-spacing:0.06em;text-transform:uppercase}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px}}:host(.button-solid){--background-activated:transparent;--background-hover:var(--ion-color-primary-contrast, #fff);--background-focused:var(--ion-color-primary-contrast, #fff);--background-activated-opacity:0;--background-focused-opacity:.24;--background-hover-opacity:.08;--box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}:host(.button-solid.ion-activated){--box-shadow:0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12)}:host(.button-outline){--border-width:2px;--border-style:solid;--box-shadow:none;--background-activated:transparent;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:var(--ion-color-primary, #3880ff);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04}:host(.button-outline.ion-activated.ion-color) .button-native{background:transparent}:host(.button-clear){--background-activated:transparent;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:var(--ion-color-primary, #3880ff);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04}:host(.button-round){--border-radius:64px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-large){--padding-top:0;--padding-start:1em;--padding-end:1em;--padding-bottom:0;height:2.8em;font-size:20px}:host(.button-small){--padding-top:0;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:0;height:2.1em;font-size:13px}:host(.button-strong){font-weight:bold}::slotted(ion-icon[slot=icon-only]){padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-contrast)}:host(.button-clear.ion-color.ion-focused) .button-native::after,:host(.button-outline.ion-color.ion-focused) .button-native::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-contrast)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}";
14
+
15
+ const Button = class {
16
+ constructor(hostRef) {
17
+ index.registerInstance(this, hostRef);
18
+ this.ionFocus = index.createEvent(this, "ionFocus", 7);
19
+ this.ionBlur = index.createEvent(this, "ionBlur", 7);
20
+ this.inItem = false;
21
+ this.inListHeader = false;
22
+ this.inToolbar = false;
23
+ this.inheritedAttributes = {};
24
+ /**
25
+ * The type of button.
26
+ */
27
+ this.buttonType = 'button';
28
+ /**
29
+ * If `true`, the user cannot interact with the button.
30
+ */
31
+ this.disabled = false;
32
+ /**
33
+ * When using a router, it specifies the transition direction when navigating to
34
+ * another page using `href`.
35
+ */
36
+ this.routerDirection = 'forward';
37
+ /**
38
+ * If `true`, activates a button with a heavier font weight.
39
+ */
40
+ this.strong = false;
41
+ /**
42
+ * The type of the button.
43
+ */
44
+ this.type = 'button';
45
+ this.handleClick = (ev) => {
46
+ if (this.type === 'button') {
47
+ theme.openURL(this.href, ev, this.routerDirection, this.routerAnimation);
48
+ }
49
+ else if (helpers.hasShadowDom(this.el)) {
50
+ // this button wants to specifically submit a form
51
+ // climb up the dom to see if we're in a <form>
52
+ // and if so, then use JS to submit it
53
+ const form = this.el.closest('form');
54
+ if (form) {
55
+ ev.preventDefault();
56
+ const fakeButton = document.createElement('button');
57
+ fakeButton.type = this.type;
58
+ fakeButton.style.display = 'none';
59
+ form.appendChild(fakeButton);
60
+ fakeButton.click();
61
+ fakeButton.remove();
62
+ }
63
+ }
64
+ };
65
+ this.onFocus = () => {
66
+ this.ionFocus.emit();
67
+ };
68
+ this.onBlur = () => {
69
+ this.ionBlur.emit();
70
+ };
71
+ }
72
+ componentWillLoad() {
73
+ this.inToolbar = !!this.el.closest('ion-buttons');
74
+ this.inListHeader = !!this.el.closest('ion-list-header');
75
+ this.inItem = !!this.el.closest('ion-item') || !!this.el.closest('ion-item-divider');
76
+ this.inheritedAttributes = helpers.inheritAttributes(this.el, ['aria-label']);
77
+ }
78
+ get hasIconOnly() {
79
+ return !!this.el.querySelector('[slot="icon-only"]');
80
+ }
81
+ get rippleType() {
82
+ const hasClearFill = this.fill === undefined || this.fill === 'clear';
83
+ // If the button is in a toolbar, has a clear fill (which is the default)
84
+ // and only has an icon we use the unbounded "circular" ripple effect
85
+ if (hasClearFill && this.hasIconOnly && this.inToolbar) {
86
+ return 'unbounded';
87
+ }
88
+ return 'bounded';
89
+ }
90
+ render() {
91
+ const mode = ionicGlobal.getIonMode(this);
92
+ const { buttonType, type, disabled, rel, target, size, href, color, expand, hasIconOnly, shape, strong, inheritedAttributes } = this;
93
+ const finalSize = size === undefined && this.inItem ? 'small' : size;
94
+ const TagType = href === undefined ? 'button' : 'a';
95
+ const attrs = (TagType === 'button')
96
+ ? { type }
97
+ : {
98
+ download: this.download,
99
+ href,
100
+ rel,
101
+ target
102
+ };
103
+ let fill = this.fill;
104
+ if (fill === undefined) {
105
+ fill = this.inToolbar || this.inListHeader ? 'clear' : 'solid';
106
+ }
107
+ return (index.h(index.Host, { onClick: this.handleClick, "aria-disabled": disabled ? 'true' : null, class: theme.createColorClasses(color, {
108
+ [mode]: true,
109
+ [buttonType]: true,
110
+ [`${buttonType}-${expand}`]: expand !== undefined,
111
+ [`${buttonType}-${finalSize}`]: finalSize !== undefined,
112
+ [`${buttonType}-${shape}`]: shape !== undefined,
113
+ [`${buttonType}-${fill}`]: true,
114
+ [`${buttonType}-strong`]: strong,
115
+ 'in-toolbar': theme.hostContext('ion-toolbar', this.el),
116
+ 'in-toolbar-color': theme.hostContext('ion-toolbar[color]', this.el),
117
+ 'button-has-icon-only': hasIconOnly,
118
+ 'button-disabled': disabled,
119
+ 'ion-activatable': true,
120
+ 'ion-focusable': true,
121
+ }) }, index.h(TagType, Object.assign({}, attrs, { class: "button-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur }, inheritedAttributes), index.h("span", { class: "button-inner" }, index.h("slot", { name: "icon-only" }), index.h("slot", { name: "start" }), index.h("slot", null), index.h("slot", { name: "end" })), mode === 'md' && index.h("ion-ripple-effect", { type: this.rippleType }))));
122
+ }
123
+ get el() { return index.getElement(this); }
124
+ };
125
+ Button.style = {
126
+ ios: buttonIosCss,
127
+ md: buttonMdCss
128
+ };
129
+
130
+ const itemIosCss = ":host{--border-radius:0px;--border-width:0px;--border-style:solid;--padding-top:0px;--padding-bottom:0px;--padding-end:0px;--padding-start:0px;--inner-border-width:0px;--inner-padding-top:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;--inner-padding-end:0px;--inner-box-shadow:none;--show-full-highlight:0;--show-inset-highlight:0;--detail-icon-color:initial;--detail-icon-font-size:20px;--detail-icon-opacity:0.25;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;align-items:center;justify-content:space-between;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:initial;text-decoration:none;overflow:hidden;box-sizing:border-box}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native,:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-inner{border-color:var(--ion-color-shade)}:host(.ion-activated) .item-native{color:var(--color-activated)}:host(.ion-activated) .item-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.ion-color.ion-activated) .item-native{color:var(--ion-color-contrast)}:host(.ion-focused) .item-native{color:var(--color-focused)}:host(.ion-focused) .item-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-color.ion-focused) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .item-native::after{background:var(--ion-color-contrast)}@media (any-hover: hover){:host(.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--color-hover)}:host(.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--ion-color-contrast)}}:host(.item-interactive-disabled:not(.item-multiple-inputs)){cursor:default;pointer-events:none}:host(.item-disabled){cursor:default;opacity:0.3;pointer-events:none}.item-native{border-radius:var(--border-radius);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:flex;position:relative;align-items:inherit;justify-content:inherit;width:100%;min-height:var(--min-height);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);overflow:inherit;box-sizing:border-box;z-index:1}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.item-native{padding-left:unset;padding-right:unset;-webkit-padding-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-inline-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.item-native::-moz-focus-inner{border:0}.item-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:\"\";opacity:0;transition:var(--transition);z-index:-1}button,a{cursor:pointer;user-select:none;-webkit-user-drag:none}.item-inner{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:var(--inner-padding-start);padding-right:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-top:var(--inner-padding-top);padding-bottom:var(--inner-padding-bottom);display:flex;position:relative;flex:1;flex-direction:inherit;align-items:inherit;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);box-shadow:var(--inner-box-shadow);overflow:inherit;box-sizing:border-box}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.item-inner{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--inner-padding-start);padding-inline-start:var(--inner-padding-start);-webkit-padding-end:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-inline-end:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end))}}.item-bottom{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:var(--inner-padding-end);padding-top:0;padding-bottom:0;display:flex;justify-content:space-between}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.item-bottom{padding-left:unset;padding-right:unset;-webkit-padding-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-inline-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));-webkit-padding-end:var(--inner-padding-end);padding-inline-end:var(--inner-padding-end)}}.item-detail-icon{color:var(--detail-icon-color);font-size:var(--detail-icon-font-size);opacity:var(--detail-icon-opacity)}::slotted(ion-icon){font-size:1.6em}::slotted(ion-button){--margin-top:0;--margin-bottom:0;--margin-start:0;--margin-end:0;z-index:1}::slotted(ion-label:not([slot=end])){flex:1}:host(.item-input){align-items:center}.input-wrapper{display:flex;flex:1;flex-direction:inherit;align-items:inherit;align-self:stretch;text-overflow:ellipsis;overflow:inherit;box-sizing:border-box}:host(.item-label-stacked),:host(.item-label-floating){align-items:start}:host(.item-label-stacked) .input-wrapper,:host(.item-label-floating) .input-wrapper{flex:1;flex-direction:column}.item-highlight,.item-inner-highlight{left:0;right:0;top:0;bottom:0;border-radius:inherit;position:absolute;width:100%;height:100%;transform:scaleX(0);transition:transform 200ms, border-bottom-width 200ms;z-index:2;box-sizing:border-box;pointer-events:none}:host(.item-interactive.item-has-focus) .item-native{caret-color:var(--highlight-background)}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus),:host(.item-interactive.ion-touched.ion-invalid){--full-highlight-height:calc(var(--highlight-height) * var(--show-full-highlight));--inset-highlight-height:calc(var(--highlight-height) * var(--show-inset-highlight))}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus){--highlight-background:var(--highlight-color-focused)}:host(.item-interactive.ion-valid){--highlight-background:var(--highlight-color-valid)}:host(.item-interactive.ion-invalid){--highlight-background:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=helper]){display:none}::slotted([slot=error]){display:none;color:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=error]){display:block}:host(:not(.item-label)) ::slotted(ion-select){--padding-start:0;max-width:none}:host(.item-label-stacked) ::slotted(ion-select),:host(.item-label-floating) ::slotted(ion-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0;align-self:stretch;width:100%;max-width:100%}:host(:not(.item-label)) ::slotted(ion-datetime){--padding-start:0}:host(.item-label-stacked) ::slotted(ion-datetime),:host(.item-label-floating) ::slotted(ion-datetime){--padding-start:0;width:100%}:host(.item-multiple-inputs) ::slotted(ion-checkbox),:host(.item-multiple-inputs) ::slotted(ion-datetime),:host(.item-multiple-inputs) ::slotted(ion-radio),:host(.item-multiple-inputs) ::slotted(ion-select){position:relative}:host(.item-textarea){align-items:stretch}::slotted(ion-reorder[slot]){margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){align-self:center}::slotted([slot=helper]),::slotted([slot=error]),.item-counter{padding-top:5px;font-size:12px;z-index:1}.item-counter{margin-left:auto;padding-inline-start:16px;white-space:nowrap}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.item-counter{margin-left:unset;-webkit-margin-start:auto;margin-inline-start:auto}}@media (prefers-reduced-motion: reduce){.item-highlight,.item-inner-highlight{transition:none}}:host{--min-height:44px;--transition:background-color 200ms linear, opacity 200ms linear;--padding-start:20px;--inner-padding-end:10px;--inner-border-width:0px 0px 0.55px 0px;--background:var(--ion-item-background, var(--ion-background-color, #fff));--background-activated:#000;--background-focused:#000;--background-hover:currentColor;--background-activated-opacity:.12;--background-focused-opacity:.15;--background-hover-opacity:.04;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));--color:var(--ion-item-color, var(--ion-text-color, #000));--highlight-height:0px;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--bottom-padding-start:0px;font-size:17px}:host(.ion-activated){--transition:none}:host(.ion-color.ion-focused) .item-native::after{background:#000;opacity:0.15}:host(.ion-color.ion-activated) .item-native::after{background:#000;opacity:0.12}:host(.item-interactive){--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-full){--border-width:0px 0px 0.55px 0px;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-inset){--inner-border-width:0px 0px 0.55px 0px;--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-inset),:host(.item-lines-none){--border-width:0px;--show-full-highlight:0}:host(.item-lines-full),:host(.item-lines-none){--inner-border-width:0px;--show-inset-highlight:0}.item-highlight,.item-inner-highlight{transition:none}:host(.item-has-focus) .item-inner-highlight,:host(.item-has-focus) .item-highlight{border-top:none;border-right:none;border-left:none}::slotted([slot=start]){margin-left:0;margin-right:20px;margin-top:2px;margin-bottom:2px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted([slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:20px;margin-inline-end:20px}}::slotted([slot=end]){margin-left:10px;margin-right:10px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted([slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px}}::slotted(ion-icon[slot=start]),::slotted(ion-icon[slot=end]){margin-top:7px;margin-bottom:7px}::slotted(ion-toggle[slot=start]),::slotted(ion-toggle[slot=end]){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host(.item-label-stacked) ::slotted([slot=end]),:host(.item-label-floating) ::slotted([slot=end]){margin-top:7px;margin-bottom:7px}::slotted(.button-small){--padding-top:0px;--padding-bottom:0px;--padding-start:.5em;--padding-end:.5em;height:24px;font-size:13px}::slotted(ion-avatar){width:36px;height:36px}::slotted(ion-thumbnail){width:56px;height:56px}::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){margin-left:10px;margin-right:10px;margin-top:10px;margin-bottom:10px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px}}:host(.item-radio) ::slotted(ion-label),:host(.item-toggle) ::slotted(ion-label){margin-left:0px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.item-radio) ::slotted(ion-label),:host(.item-toggle) ::slotted(ion-label){margin-left:unset;-webkit-margin-start:0px;margin-inline-start:0px}}::slotted(ion-label){margin-left:0;margin-right:8px;margin-top:10px;margin-bottom:10px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-label){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px}}:host(.item-label-floating),:host(.item-label-stacked){--min-height:68px}:host(.item-label-stacked) ::slotted(ion-select),:host(.item-label-floating) ::slotted(ion-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0px}:host(.item-label-fixed) ::slotted(ion-select),:host(.item-label-fixed) ::slotted(ion-datetime){--padding-start:0}";
131
+
132
+ const itemMdCss = ":host{--border-radius:0px;--border-width:0px;--border-style:solid;--padding-top:0px;--padding-bottom:0px;--padding-end:0px;--padding-start:0px;--inner-border-width:0px;--inner-padding-top:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;--inner-padding-end:0px;--inner-box-shadow:none;--show-full-highlight:0;--show-inset-highlight:0;--detail-icon-color:initial;--detail-icon-font-size:20px;--detail-icon-opacity:0.25;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;align-items:center;justify-content:space-between;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:initial;text-decoration:none;overflow:hidden;box-sizing:border-box}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native,:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-inner{border-color:var(--ion-color-shade)}:host(.ion-activated) .item-native{color:var(--color-activated)}:host(.ion-activated) .item-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.ion-color.ion-activated) .item-native{color:var(--ion-color-contrast)}:host(.ion-focused) .item-native{color:var(--color-focused)}:host(.ion-focused) .item-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-color.ion-focused) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .item-native::after{background:var(--ion-color-contrast)}@media (any-hover: hover){:host(.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--color-hover)}:host(.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--ion-color-contrast)}}:host(.item-interactive-disabled:not(.item-multiple-inputs)){cursor:default;pointer-events:none}:host(.item-disabled){cursor:default;opacity:0.3;pointer-events:none}.item-native{border-radius:var(--border-radius);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:flex;position:relative;align-items:inherit;justify-content:inherit;width:100%;min-height:var(--min-height);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);overflow:inherit;box-sizing:border-box;z-index:1}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.item-native{padding-left:unset;padding-right:unset;-webkit-padding-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-inline-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.item-native::-moz-focus-inner{border:0}.item-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:\"\";opacity:0;transition:var(--transition);z-index:-1}button,a{cursor:pointer;user-select:none;-webkit-user-drag:none}.item-inner{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:var(--inner-padding-start);padding-right:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-top:var(--inner-padding-top);padding-bottom:var(--inner-padding-bottom);display:flex;position:relative;flex:1;flex-direction:inherit;align-items:inherit;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);box-shadow:var(--inner-box-shadow);overflow:inherit;box-sizing:border-box}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.item-inner{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--inner-padding-start);padding-inline-start:var(--inner-padding-start);-webkit-padding-end:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-inline-end:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end))}}.item-bottom{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:var(--inner-padding-end);padding-top:0;padding-bottom:0;display:flex;justify-content:space-between}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.item-bottom{padding-left:unset;padding-right:unset;-webkit-padding-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-inline-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));-webkit-padding-end:var(--inner-padding-end);padding-inline-end:var(--inner-padding-end)}}.item-detail-icon{color:var(--detail-icon-color);font-size:var(--detail-icon-font-size);opacity:var(--detail-icon-opacity)}::slotted(ion-icon){font-size:1.6em}::slotted(ion-button){--margin-top:0;--margin-bottom:0;--margin-start:0;--margin-end:0;z-index:1}::slotted(ion-label:not([slot=end])){flex:1}:host(.item-input){align-items:center}.input-wrapper{display:flex;flex:1;flex-direction:inherit;align-items:inherit;align-self:stretch;text-overflow:ellipsis;overflow:inherit;box-sizing:border-box}:host(.item-label-stacked),:host(.item-label-floating){align-items:start}:host(.item-label-stacked) .input-wrapper,:host(.item-label-floating) .input-wrapper{flex:1;flex-direction:column}.item-highlight,.item-inner-highlight{left:0;right:0;top:0;bottom:0;border-radius:inherit;position:absolute;width:100%;height:100%;transform:scaleX(0);transition:transform 200ms, border-bottom-width 200ms;z-index:2;box-sizing:border-box;pointer-events:none}:host(.item-interactive.item-has-focus) .item-native{caret-color:var(--highlight-background)}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus),:host(.item-interactive.ion-touched.ion-invalid){--full-highlight-height:calc(var(--highlight-height) * var(--show-full-highlight));--inset-highlight-height:calc(var(--highlight-height) * var(--show-inset-highlight))}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus){--highlight-background:var(--highlight-color-focused)}:host(.item-interactive.ion-valid){--highlight-background:var(--highlight-color-valid)}:host(.item-interactive.ion-invalid){--highlight-background:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=helper]){display:none}::slotted([slot=error]){display:none;color:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=error]){display:block}:host(:not(.item-label)) ::slotted(ion-select){--padding-start:0;max-width:none}:host(.item-label-stacked) ::slotted(ion-select),:host(.item-label-floating) ::slotted(ion-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0;align-self:stretch;width:100%;max-width:100%}:host(:not(.item-label)) ::slotted(ion-datetime){--padding-start:0}:host(.item-label-stacked) ::slotted(ion-datetime),:host(.item-label-floating) ::slotted(ion-datetime){--padding-start:0;width:100%}:host(.item-multiple-inputs) ::slotted(ion-checkbox),:host(.item-multiple-inputs) ::slotted(ion-datetime),:host(.item-multiple-inputs) ::slotted(ion-radio),:host(.item-multiple-inputs) ::slotted(ion-select){position:relative}:host(.item-textarea){align-items:stretch}::slotted(ion-reorder[slot]){margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){align-self:center}::slotted([slot=helper]),::slotted([slot=error]),.item-counter{padding-top:5px;font-size:12px;z-index:1}.item-counter{margin-left:auto;padding-inline-start:16px;white-space:nowrap}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.item-counter{margin-left:unset;-webkit-margin-start:auto;margin-inline-start:auto}}@media (prefers-reduced-motion: reduce){.item-highlight,.item-inner-highlight{transition:none}}:host{--min-height:48px;--background:var(--ion-item-background, var(--ion-background-color, #fff));--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor;--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));--color:var(--ion-item-color, var(--ion-text-color, #000));--transition:opacity 15ms linear, background-color 15ms linear;--padding-start:16px;--inner-padding-end:16px;--inner-border-width:0 0 1px 0;--highlight-height:1px;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);font-size:16px;font-weight:normal;text-transform:none}:host(.item-fill-outline){--highlight-height:2px}:host(.item-fill-none.item-interactive.ion-focus) .item-highlight,:host(.item-fill-none.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-none.item-interactive.ion-touched.ion-invalid) .item-highlight{transform:scaleX(1);border-width:0 0 var(--full-highlight-height) 0;border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-none.item-interactive.ion-focus) .item-native,:host(.item-fill-none.item-interactive.item-has-focus) .item-native,:host(.item-fill-none.item-interactive.ion-touched.ion-invalid) .item-native{border-bottom-color:var(--highlight-background)}:host(.item-fill-outline.item-interactive.ion-focus) .item-highlight,:host(.item-fill-outline.item-interactive.item-has-focus) .item-highlight{transform:scaleX(1)}:host(.item-fill-outline.item-interactive.ion-focus) .item-highlight,:host(.item-fill-outline.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-outline.item-interactive.ion-touched.ion-invalid) .item-highlight{border-width:var(--full-highlight-height);border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-outline.item-interactive.ion-touched.ion-invalid) .item-native{border-color:var(--highlight-background)}:host(.item-fill-solid.item-interactive.ion-focus) .item-highlight,:host(.item-fill-solid.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-solid.item-interactive.ion-touched.ion-invalid) .item-highlight{transform:scaleX(1);border-width:0 0 var(--full-highlight-height) 0;border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-solid.item-interactive.ion-focus) .item-native,:host(.item-fill-solid.item-interactive.item-has-focus) .item-native,:host(.item-fill-solid.item-interactive.ion-touched.ion-invalid) .item-native{border-bottom-color:var(--highlight-background)}:host(.ion-color.ion-activated) .item-native::after{background:transparent}:host(.item-has-focus) .item-native{caret-color:var(--highlight-color-focused)}:host(.item-interactive){--border-width:0 0 1px 0;--inner-border-width:0;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-full){--border-width:0 0 1px 0;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-inset){--inner-border-width:0 0 1px 0;--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-inset),:host(.item-lines-none){--border-width:0;--show-full-highlight:0}:host(.item-lines-full),:host(.item-lines-none){--inner-border-width:0;--show-inset-highlight:0}:host(.item-fill-outline) .item-highlight{--position-offset:calc(-1 * var(--border-width));left:var(--position-offset);top:var(--position-offset);width:calc(100% + 2 * var(--border-width));height:calc(100% + 2 * var(--border-width));transition:none}:host-context([dir=rtl]):host(.item-fill-outline) .item-highlight,:host-context([dir=rtl]).item-fill-outline .item-highlight{left:unset;right:unset;right:var(--position-offset)}:host(.item-fill-outline.ion-focused) .item-native,:host(.item-fill-outline.item-has-focus) .item-native{border-color:transparent}:host(.item-multi-line) ::slotted([slot=start]),:host(.item-multi-line) ::slotted([slot=end]){margin-top:16px;margin-bottom:16px;align-self:flex-start}::slotted([slot=start]){margin-right:32px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted([slot=start]){margin-right:unset;-webkit-margin-end:32px;margin-inline-end:32px}}::slotted([slot=end]){margin-left:32px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted([slot=end]){margin-left:unset;-webkit-margin-start:32px;margin-inline-start:32px}}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){align-self:center}::slotted(ion-icon){color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);font-size:24px}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) ::slotted(ion-icon){color:var(--ion-color-contrast)}::slotted(ion-icon[slot]){margin-top:12px;margin-bottom:12px}::slotted(ion-icon[slot=start]){margin-right:32px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=start]){margin-right:unset;-webkit-margin-end:32px;margin-inline-end:32px}}::slotted(ion-icon[slot=end]){margin-left:16px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=end]){margin-left:unset;-webkit-margin-start:16px;margin-inline-start:16px}}:host(.item-fill-solid) ::slotted(ion-icon[slot=start]),:host(.item-fill-outline) ::slotted(ion-icon[slot=start]){margin-right:8px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.item-fill-solid) ::slotted(ion-icon[slot=start]),:host(.item-fill-outline) ::slotted(ion-icon[slot=start]){margin-right:unset;-webkit-margin-end:8px;margin-inline-end:8px}}::slotted(ion-toggle[slot=start]),::slotted(ion-toggle[slot=end]){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}::slotted(ion-note){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;align-self:flex-start;font-size:11px}::slotted(ion-note[slot]:not([slot=helper]):not([slot=error])){padding-left:0;padding-right:0;padding-top:18px;padding-bottom:10px}::slotted(ion-note[slot=start]){padding-right:16px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-note[slot=start]){padding-right:unset;-webkit-padding-end:16px;padding-inline-end:16px}}::slotted(ion-note[slot=end]){padding-left:16px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-note[slot=end]){padding-left:unset;-webkit-padding-start:16px;padding-inline-start:16px}}::slotted(ion-avatar){width:40px;height:40px}::slotted(ion-thumbnail){width:56px;height:56px}::slotted(ion-avatar),::slotted(ion-thumbnail){margin-top:8px;margin-bottom:8px}::slotted(ion-avatar[slot=start]),::slotted(ion-thumbnail[slot=start]){margin-right:16px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-avatar[slot=start]),::slotted(ion-thumbnail[slot=start]){margin-right:unset;-webkit-margin-end:16px;margin-inline-end:16px}}::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){margin-left:16px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){margin-left:unset;-webkit-margin-start:16px;margin-inline-start:16px}}::slotted(ion-label){margin-left:0;margin-right:0;margin-top:10px;margin-bottom:10px}:host(.item-label-stacked) ::slotted([slot=end]),:host(.item-label-floating) ::slotted([slot=end]){margin-top:7px;margin-bottom:7px}:host(.item-label-fixed) ::slotted(ion-select),:host(.item-label-fixed) ::slotted(ion-datetime){--padding-start:8px}:host(.item-toggle) ::slotted(ion-label),:host(.item-radio) ::slotted(ion-label){margin-left:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.item-toggle) ::slotted(ion-label),:host(.item-radio) ::slotted(ion-label){margin-left:unset;-webkit-margin-start:0;margin-inline-start:0}}::slotted(.button-small){--padding-top:0;--padding-bottom:0;--padding-start:.6em;--padding-end:.6em;height:25px;font-size:12px}:host(.item-label-floating),:host(.item-label-stacked){--min-height:55px}:host(.item-label-stacked) ::slotted(ion-select),:host(.item-label-floating) ::slotted(ion-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0}:host(.ion-focused:not(.ion-color)) ::slotted(.label-stacked),:host(.ion-focused:not(.ion-color)) ::slotted(.label-floating),:host(.item-has-focus:not(.ion-color)) ::slotted(.label-stacked),:host(.item-has-focus:not(.ion-color)) ::slotted(.label-floating){color:var(--ion-color-primary, #3880ff)}:host(.ion-color){--highlight-color-focused:var(--ion-color-contrast)}:host(.item-label-color){--highlight-color-focused:var(--ion-color-base)}:host(.item-fill-solid.ion-color),:host(.item-fill-outline.ion-color){--highlight-color-focused:var(--ion-color-base)}:host(.item-fill-solid){--background:var(--ion-color-step-50, #f2f2f2);--background-hover:var(--ion-color-step-100, #e6e6e6);--background-focused:var(--ion-color-step-150, #d9d9d9);--border-width:0 0 1px 0;--inner-border-width:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.item-fill-solid),:host-context([dir=rtl]).item-fill-solid{border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}:host(.item-fill-solid) .item-native{--border-color:var(--ion-color-step-500, gray)}:host(.item-fill-solid.ion-focused) .item-native,:host(.item-fill-solid.item-has-focus) .item-native{--background:var(--background-focused)}:host(.item-fill-solid.item-shape-round){border-top-left-radius:16px;border-top-right-radius:16px;border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.item-fill-solid.item-shape-round),:host-context([dir=rtl]).item-fill-solid.item-shape-round{border-top-left-radius:16px;border-top-right-radius:16px;border-bottom-right-radius:0;border-bottom-left-radius:0}@media (any-hover: hover){:host(.item-fill-solid:hover) .item-native{--background:var(--background-hover);--border-color:var(--ion-color-step-750, #404040)}}:host(.item-fill-outline){--ripple-color:transparent;--background-focused:transparent;--background-hover:transparent;--border-color:var(--ion-color-step-500, gray);--border-width:1px;border:none;overflow:visible}:host(.item-fill-outline) .item-native{--native-padding-left:16px;border-radius:4px}:host(.item-fill-outline.item-shape-round) .item-native{--inner-padding-start:16px;border-radius:28px}:host(.item-fill-outline.item-shape-round) .item-bottom{padding-left:32px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.item-fill-outline.item-shape-round) .item-bottom{padding-left:unset;-webkit-padding-start:32px;padding-inline-start:32px}}:host(.item-fill-outline.item-label-floating.ion-focused) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.ion-focused) .item-native ::slotted(ion-textarea:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-focus) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-focus) .item-native ::slotted(ion-textarea:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-value) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-value) .item-native ::slotted(ion-textarea:not(:first-child)){transform:translateY(-14px)}@media (any-hover: hover){:host(.item-fill-outline:hover) .item-native{--border-color:var(--ion-color-step-750, #404040)}}.item-counter{color:rgba(0, 0, 0, 0.6);letter-spacing:0.0333333333em}";
133
+
134
+ const Item = class {
135
+ constructor(hostRef) {
136
+ index.registerInstance(this, hostRef);
137
+ this.labelColorStyles = {};
138
+ this.itemStyles = new Map();
139
+ this.multipleInputs = false;
140
+ this.focusable = true;
141
+ /**
142
+ * If `true`, a button tag will be rendered and the item will be tappable.
143
+ */
144
+ this.button = false;
145
+ /**
146
+ * The icon to use when `detail` is set to `true`.
147
+ */
148
+ this.detailIcon = index$1.chevronForward;
149
+ /**
150
+ * If `true`, the user cannot interact with the item.
151
+ */
152
+ this.disabled = false;
153
+ /**
154
+ * If `true`, a character counter will display the ratio of characters used and the total character limit. Only applies when the `maxlength` property is set on the inner `ion-input` or `ion-textarea`.
155
+ */
156
+ this.counter = false;
157
+ /**
158
+ * When using a router, it specifies the transition direction when navigating to
159
+ * another page using `href`.
160
+ */
161
+ this.routerDirection = 'forward';
162
+ /**
163
+ * The type of the button. Only used when an `onclick` or `button` property is present.
164
+ */
165
+ this.type = 'button';
166
+ }
167
+ handleIonChange(ev) {
168
+ if (this.counter && ev.target === this.getFirstInput()) {
169
+ this.updateCounterOutput(ev.target);
170
+ }
171
+ }
172
+ labelColorChanged(ev) {
173
+ const { color } = this;
174
+ // There will be a conflict with item color if
175
+ // we apply the label color to item, so we ignore
176
+ // the label color if the user sets a color on item
177
+ if (color === undefined) {
178
+ this.labelColorStyles = ev.detail;
179
+ }
180
+ }
181
+ itemStyle(ev) {
182
+ ev.stopPropagation();
183
+ const tagName = ev.target.tagName;
184
+ const updatedStyles = ev.detail;
185
+ const newStyles = {};
186
+ const childStyles = this.itemStyles.get(tagName) || {};
187
+ let hasStyleChange = false;
188
+ Object.keys(updatedStyles).forEach(key => {
189
+ if (updatedStyles[key]) {
190
+ const itemKey = `item-${key}`;
191
+ if (!childStyles[itemKey]) {
192
+ hasStyleChange = true;
193
+ }
194
+ newStyles[itemKey] = true;
195
+ }
196
+ });
197
+ if (!hasStyleChange && Object.keys(newStyles).length !== Object.keys(childStyles).length) {
198
+ hasStyleChange = true;
199
+ }
200
+ if (hasStyleChange) {
201
+ this.itemStyles.set(tagName, newStyles);
202
+ index.forceUpdate(this);
203
+ }
204
+ }
205
+ connectedCallback() {
206
+ if (this.counter) {
207
+ this.updateCounterOutput(this.getFirstInput());
208
+ }
209
+ this.hasStartEl();
210
+ }
211
+ componentDidUpdate() {
212
+ // Do not use @Listen here to avoid making all items
213
+ // appear as clickable to screen readers
214
+ // https://github.com/ionic-team/ionic-framework/issues/22011
215
+ const input = this.getFirstInput();
216
+ if (input && !this.clickListener) {
217
+ this.clickListener = (ev) => this.delegateFocus(ev, input);
218
+ this.el.addEventListener('click', this.clickListener);
219
+ }
220
+ }
221
+ disconnectedCallback() {
222
+ const input = this.getFirstInput();
223
+ if (input && this.clickListener) {
224
+ this.el.removeEventListener('click', this.clickListener);
225
+ this.clickListener = undefined;
226
+ }
227
+ }
228
+ componentDidLoad() {
229
+ helpers.raf(() => {
230
+ this.setMultipleInputs();
231
+ this.focusable = this.isFocusable();
232
+ });
233
+ }
234
+ // If the item contains multiple clickable elements and/or inputs, then the item
235
+ // should not have a clickable input cover over the entire item to prevent
236
+ // interfering with their individual click events
237
+ setMultipleInputs() {
238
+ // The following elements have a clickable cover that is relative to the entire item
239
+ const covers = this.el.querySelectorAll('ion-checkbox, ion-datetime, ion-select, ion-radio');
240
+ // The following elements can accept focus alongside the previous elements
241
+ // therefore if these elements are also a child of item, we don't want the
242
+ // input cover on top of those interfering with their clicks
243
+ const inputs = this.el.querySelectorAll('ion-input, ion-range, ion-searchbar, ion-segment, ion-textarea, ion-toggle');
244
+ // The following elements should also stay clickable when an input with cover is present
245
+ const clickables = this.el.querySelectorAll('ion-anchor, ion-button, a, button');
246
+ // Check for multiple inputs to change the position of the input cover to relative
247
+ // for all of the covered inputs above
248
+ this.multipleInputs = covers.length + inputs.length > 1
249
+ || covers.length + clickables.length > 1
250
+ || covers.length > 0 && this.isClickable();
251
+ }
252
+ // If the item contains an input including a checkbox, datetime, select, or radio
253
+ // then the item will have a clickable input cover that covers the item
254
+ // that should get the hover, focused and activated states UNLESS it has multiple
255
+ // inputs, then those need to individually get each click
256
+ hasCover() {
257
+ const inputs = this.el.querySelectorAll('ion-checkbox, ion-datetime, ion-select, ion-radio');
258
+ return inputs.length === 1 && !this.multipleInputs;
259
+ }
260
+ // If the item has an href or button property it will render a native
261
+ // anchor or button that is clickable
262
+ isClickable() {
263
+ return (this.href !== undefined || this.button);
264
+ }
265
+ canActivate() {
266
+ return (this.isClickable() || this.hasCover());
267
+ }
268
+ isFocusable() {
269
+ const focusableChild = this.el.querySelector('.ion-focusable');
270
+ return (this.canActivate() || focusableChild !== null);
271
+ }
272
+ getFirstInput() {
273
+ const inputs = this.el.querySelectorAll('ion-input, ion-textarea');
274
+ return inputs[0];
275
+ }
276
+ // This is needed for WebKit due to a delegatesFocus bug where
277
+ // clicking on the left padding of an item is not focusing the input
278
+ // but is opening the keyboard. It will no longer be needed with
279
+ // iOS 14.
280
+ delegateFocus(ev, input) {
281
+ const clickedItem = ev.target.tagName === 'ION-ITEM';
282
+ let firstActive = false;
283
+ // If the first input is the same as the active element we need
284
+ // to focus the first input again, but if the active element
285
+ // is another input inside of the item we shouldn't switch focus
286
+ if (document.activeElement) {
287
+ firstActive = input.querySelector('input, textarea') === document.activeElement;
288
+ }
289
+ // Only focus the first input if we clicked on an ion-item
290
+ // and the first input exists
291
+ if (clickedItem && (firstActive || !this.multipleInputs)) {
292
+ input.fireFocusEvents = false;
293
+ input.setBlur();
294
+ input.setFocus();
295
+ helpers.raf(() => {
296
+ input.fireFocusEvents = true;
297
+ });
298
+ }
299
+ }
300
+ updateCounterOutput(inputEl) {
301
+ var _a, _b;
302
+ if (this.counter && !this.multipleInputs && (inputEl === null || inputEl === void 0 ? void 0 : inputEl.maxlength) !== undefined) {
303
+ const length = (_b = (_a = inputEl === null || inputEl === void 0 ? void 0 : inputEl.value) === null || _a === void 0 ? void 0 : _a.toString().length) !== null && _b !== void 0 ? _b : '0';
304
+ this.counterString = `${length} / ${inputEl.maxlength}`;
305
+ }
306
+ }
307
+ hasStartEl() {
308
+ const startEl = this.el.querySelector('[slot="start"]');
309
+ if (startEl !== null) {
310
+ this.el.classList.add('item-has-start-slot');
311
+ }
312
+ }
313
+ render() {
314
+ const { counterString, detail, detailIcon, download, fill, labelColorStyles, lines, disabled, href, rel, shape, target, routerAnimation, routerDirection } = this;
315
+ const childStyles = {};
316
+ const mode = ionicGlobal.getIonMode(this);
317
+ const clickable = this.isClickable();
318
+ const canActivate = this.canActivate();
319
+ const TagType = clickable ? (href === undefined ? 'button' : 'a') : 'div';
320
+ const attrs = (TagType === 'button')
321
+ ? { type: this.type }
322
+ : {
323
+ download,
324
+ href,
325
+ rel,
326
+ target
327
+ };
328
+ // Only set onClick if the item is clickable to prevent screen
329
+ // readers from reading all items as clickable
330
+ const clickFn = clickable ? {
331
+ onClick: (ev) => { theme.openURL(href, ev, routerDirection, routerAnimation); }
332
+ } : {};
333
+ const showDetail = detail !== undefined ? detail : mode === 'ios' && clickable;
334
+ this.itemStyles.forEach(value => {
335
+ Object.assign(childStyles, value);
336
+ });
337
+ const ariaDisabled = (disabled || childStyles['item-interactive-disabled']) ? 'true' : null;
338
+ const fillValue = fill || 'none';
339
+ return (index.h(index.Host, { "aria-disabled": ariaDisabled, class: Object.assign(Object.assign(Object.assign({}, childStyles), labelColorStyles), theme.createColorClasses(this.color, {
340
+ 'item': true,
341
+ [mode]: true,
342
+ [`item-lines-${lines}`]: lines !== undefined,
343
+ [`item-fill-${fillValue}`]: true,
344
+ [`item-shape-${shape}`]: shape !== undefined,
345
+ 'item-disabled': disabled,
346
+ 'in-list': theme.hostContext('ion-list', this.el),
347
+ 'item-multiple-inputs': this.multipleInputs,
348
+ 'ion-activatable': canActivate,
349
+ 'ion-focusable': this.focusable,
350
+ 'item-rtl': document.dir === 'rtl'
351
+ })) }, index.h(TagType, Object.assign({}, attrs, { class: "item-native", part: "native", disabled: disabled }, clickFn), index.h("slot", { name: "start" }), index.h("div", { class: "item-inner" }, index.h("div", { class: "input-wrapper" }, index.h("slot", null)), index.h("slot", { name: "end" }), showDetail && index.h("ion-icon", { icon: detailIcon, lazy: false, class: "item-detail-icon", part: "detail-icon", "aria-hidden": "true", "flip-rtl": detailIcon === index$1.chevronForward }), index.h("div", { class: "item-inner-highlight" })), canActivate && mode === 'md' && index.h("ion-ripple-effect", null), index.h("div", { class: "item-highlight" })), index.h("div", { class: "item-bottom" }, index.h("slot", { name: "error" }), index.h("slot", { name: "helper" }), counterString && index.h("ion-note", { class: "item-counter" }, counterString))));
352
+ }
353
+ static get delegatesFocus() { return true; }
354
+ get el() { return index.getElement(this); }
355
+ };
356
+ Item.style = {
357
+ ios: itemIosCss,
358
+ md: itemMdCss
359
+ };
360
+
361
+ const noteIosCss = ":host{color:var(--color);font-family:var(--ion-font-family, inherit);box-sizing:border-box}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-350, #a6a6a6)}";
362
+
363
+ const noteMdCss = ":host{color:var(--color);font-family:var(--ion-font-family, inherit);box-sizing:border-box}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-600, #666666);font-size:14px}";
364
+
365
+ const Note = class {
366
+ constructor(hostRef) {
367
+ index.registerInstance(this, hostRef);
368
+ }
369
+ render() {
370
+ const mode = ionicGlobal.getIonMode(this);
371
+ return (index.h(index.Host, { class: theme.createColorClasses(this.color, {
372
+ [mode]: true,
373
+ }) }, index.h("slot", null)));
374
+ }
375
+ };
376
+ Note.style = {
377
+ ios: noteIosCss,
378
+ md: noteMdCss
379
+ };
380
+
381
+ exports.ion_button = Button;
382
+ exports.ion_item = Item;
383
+ exports.ion_note = Note;
@@ -0,0 +1,93 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-bae2a754.js');
6
+ const ionicGlobal = require('./ionic-global-878073d1.js');
7
+ const theme = require('./theme-4252ac15.js');
8
+
9
+ const cardIosCss = ":host{--ion-safe-area-left:0px;--ion-safe-area-right:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.card-disabled){cursor:default;opacity:0.3;pointer-events:none}.card-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;min-height:var(--min-height);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:inherit}.card-native::-moz-focus-inner{border:0}button,a{cursor:pointer;user-select:none;-webkit-user-drag:none}ion-ripple-effect{color:var(--ripple-color)}:host{--background:var(--ion-card-background, var(--ion-item-background, var(--ion-background-color, #fff)));--color:var(--ion-card-color, var(--ion-item-color, var(--ion-color-step-600, #666666)));margin-left:16px;margin-right:16px;margin-top:24px;margin-bottom:24px;border-radius:8px;transform:translateZ(0);transition:transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);font-size:14px;box-shadow:0 4px 16px rgba(0, 0, 0, 0.12)}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px}}:host(.ion-activated){transform:scale3d(0.97, 0.97, 1)}";
10
+
11
+ const cardMdCss = ":host{--ion-safe-area-left:0px;--ion-safe-area-right:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.card-disabled){cursor:default;opacity:0.3;pointer-events:none}.card-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;min-height:var(--min-height);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:inherit}.card-native::-moz-focus-inner{border:0}button,a{cursor:pointer;user-select:none;-webkit-user-drag:none}ion-ripple-effect{color:var(--ripple-color)}:host{--background:var(--ion-card-background, var(--ion-item-background, var(--ion-background-color, #fff)));--color:var(--ion-card-color, var(--ion-item-color, var(--ion-color-step-550, #737373)));margin-left:10px;margin-right:10px;margin-top:10px;margin-bottom:10px;border-radius:4px;font-size:14px;box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px}}";
12
+
13
+ const Card = class {
14
+ constructor(hostRef) {
15
+ index.registerInstance(this, hostRef);
16
+ /**
17
+ * If `true`, a button tag will be rendered and the card will be tappable.
18
+ */
19
+ this.button = false;
20
+ /**
21
+ * The type of the button. Only used when an `onclick` or `button` property is present.
22
+ */
23
+ this.type = 'button';
24
+ /**
25
+ * If `true`, the user cannot interact with the card.
26
+ */
27
+ this.disabled = false;
28
+ /**
29
+ * When using a router, it specifies the transition direction when navigating to
30
+ * another page using `href`.
31
+ */
32
+ this.routerDirection = 'forward';
33
+ }
34
+ isClickable() {
35
+ return (this.href !== undefined || this.button);
36
+ }
37
+ renderCard(mode) {
38
+ const clickable = this.isClickable();
39
+ if (!clickable) {
40
+ return [
41
+ index.h("slot", null)
42
+ ];
43
+ }
44
+ const { href, routerAnimation, routerDirection } = this;
45
+ const TagType = clickable ? (href === undefined ? 'button' : 'a') : 'div';
46
+ const attrs = (TagType === 'button')
47
+ ? { type: this.type }
48
+ : {
49
+ download: this.download,
50
+ href: this.href,
51
+ rel: this.rel,
52
+ target: this.target
53
+ };
54
+ return (index.h(TagType, Object.assign({}, attrs, { class: "card-native", part: "native", disabled: this.disabled, onClick: (ev) => theme.openURL(href, ev, routerDirection, routerAnimation) }), index.h("slot", null), clickable && mode === 'md' && index.h("ion-ripple-effect", null)));
55
+ }
56
+ render() {
57
+ const mode = ionicGlobal.getIonMode(this);
58
+ return (index.h(index.Host, { class: theme.createColorClasses(this.color, {
59
+ [mode]: true,
60
+ 'card-disabled': this.disabled,
61
+ 'ion-activatable': this.isClickable()
62
+ }) }, this.renderCard(mode)));
63
+ }
64
+ };
65
+ Card.style = {
66
+ ios: cardIosCss,
67
+ md: cardMdCss
68
+ };
69
+
70
+ const cardContentIosCss = "ion-card-content{display:block;position:relative}.card-content-ios{padding-left:20px;padding-right:20px;padding-top:20px;padding-bottom:20px;font-size:16px;line-height:1.4}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.card-content-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px}}.card-content-ios h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:24px;font-weight:normal}.card-content-ios h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:16px;font-weight:normal}.card-content-ios h3,.card-content-ios h4,.card-content-ios h5,.card-content-ios h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:14px;font-weight:normal}.card-content-ios p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px}ion-card-header+.card-content-ios{padding-top:0}";
71
+
72
+ const cardContentMdCss = "ion-card-content{display:block;position:relative}.card-content-md{padding-left:16px;padding-right:16px;padding-top:13px;padding-bottom:13px;font-size:14px;line-height:1.5}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.card-content-md{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.card-content-md h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:24px;font-weight:normal}.card-content-md h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:16px;font-weight:normal}.card-content-md h3,.card-content-md h4,.card-content-md h5,.card-content-md h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:14px;font-weight:normal}.card-content-md p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px;font-weight:normal;line-height:1.5}ion-card-header+.card-content-md{padding-top:0}";
73
+
74
+ const CardContent = class {
75
+ constructor(hostRef) {
76
+ index.registerInstance(this, hostRef);
77
+ }
78
+ render() {
79
+ const mode = ionicGlobal.getIonMode(this);
80
+ return (index.h(index.Host, { class: {
81
+ [mode]: true,
82
+ // Used internally for styling
83
+ [`card-content-${mode}`]: true
84
+ } }));
85
+ }
86
+ };
87
+ CardContent.style = {
88
+ ios: cardContentIosCss,
89
+ md: cardContentMdCss
90
+ };
91
+
92
+ exports.ion_card = Card;
93
+ exports.ion_card_content = CardContent;