@ccrpc/webmapgl 0.18.6 → 0.18.8

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 (250) hide show
  1. package/dist/cjs/app-globals-62694daf.js.map +1 -1
  2. package/dist/cjs/gl-address-search_52.cjs.entry.js +31 -30
  3. package/dist/cjs/gl-address-search_52.cjs.entry.js.map +1 -1
  4. package/dist/cjs/gl-draw-toolbar.cjs.entry.js +3 -3
  5. package/dist/cjs/gl-draw-toolbar.cjs.entry.js.map +1 -1
  6. package/dist/cjs/gl-facet_5.cjs.entry.js +1 -1
  7. package/dist/cjs/gl-facet_5.cjs.entry.js.map +1 -1
  8. package/dist/cjs/gl-like-button.cjs.entry.js +5 -5
  9. package/dist/cjs/gl-like-button.cjs.entry.js.map +1 -1
  10. package/dist/cjs/index.cjs.js +11 -0
  11. package/dist/cjs/index.cjs.js.map +1 -1
  12. package/dist/collection/components/address-search/address-search.js +4 -4
  13. package/dist/collection/components/address-search/address-search.js.map +1 -1
  14. package/dist/collection/components/app/app.js +1 -1
  15. package/dist/collection/components/app/app.js.map +1 -1
  16. package/dist/collection/components/attribute-values/attribute-values.js +1 -1
  17. package/dist/collection/components/basemaps/basemaps.js +2 -2
  18. package/dist/collection/components/basemaps/basemaps.js.map +1 -1
  19. package/dist/collection/components/download-button/download-button.js +3 -3
  20. package/dist/collection/components/download-button/download-button.js.map +1 -1
  21. package/dist/collection/components/download-list/download-list.js +2 -1
  22. package/dist/collection/components/download-list/download-list.js.map +1 -1
  23. package/dist/collection/components/draw-toolbar/draw-toolbar.js +4 -4
  24. package/dist/collection/components/draw-toolbar/draw-toolbar.js.map +1 -1
  25. package/dist/collection/components/drawer/drawer.js +4 -4
  26. package/dist/collection/components/drawer/drawer.js.map +1 -1
  27. package/dist/collection/components/drawer-toggle/drawer-toggle.js +1 -1
  28. package/dist/collection/components/drawer-toggle/drawer-toggle.js.map +1 -1
  29. package/dist/collection/components/feature-list/feature-list.js +1 -1
  30. package/dist/collection/components/form-page/form-page.js +2 -2
  31. package/dist/collection/components/form-page/form-page.js.map +1 -1
  32. package/dist/collection/components/fullscreen/fullscreen.js +1 -1
  33. package/dist/collection/components/fullscreen/fullscreen.js.map +1 -1
  34. package/dist/collection/components/legend-item/legend-item.js +2 -2
  35. package/dist/collection/components/legend-item/legend-item.js.map +1 -1
  36. package/dist/collection/components/like-button/like-button.js +6 -6
  37. package/dist/collection/components/like-button/like-button.js.map +1 -1
  38. package/dist/collection/components/share/share.js +3 -3
  39. package/dist/collection/components/share/share.js.map +1 -1
  40. package/dist/collection/components/share-button/share-button.js +2 -2
  41. package/dist/collection/components/share-button/share-button.js.map +1 -1
  42. package/dist/collection/components/story-button/story-button.js +4 -4
  43. package/dist/collection/components/story-button/story-button.js.map +1 -1
  44. package/dist/collection/components/style/style.js +3 -3
  45. package/dist/collection/components/table-column-visibility/table-column-visibility.js +1 -1
  46. package/dist/collection/components/table-column-visibility/table-column-visibility.js.map +1 -1
  47. package/dist/collection/components/table-column-visibility-button/table-column-visibility-button.js +3 -3
  48. package/dist/collection/components/table-column-visibility-button/table-column-visibility-button.js.map +1 -1
  49. package/dist/collection/components/table-export-button/table-export-button.js +1 -1
  50. package/dist/collection/components/table-export-button/table-export-button.js.map +1 -1
  51. package/dist/collection/global/webmapgl.js +1 -0
  52. package/dist/collection/global/webmapgl.js.map +1 -1
  53. package/dist/collection/index.js +2 -0
  54. package/dist/collection/index.js.map +1 -0
  55. package/dist/esm/app-globals-755c21e9.js.map +1 -1
  56. package/dist/esm/gl-address-search_52.entry.js +32 -31
  57. package/dist/esm/gl-address-search_52.entry.js.map +1 -1
  58. package/dist/esm/gl-draw-controller.entry.js +1 -1
  59. package/dist/esm/gl-draw-toolbar.entry.js +3 -3
  60. package/dist/esm/gl-draw-toolbar.entry.js.map +1 -1
  61. package/dist/esm/gl-facet_5.entry.js +2 -2
  62. package/dist/esm/gl-facet_5.entry.js.map +1 -1
  63. package/dist/esm/gl-feature-list.entry.js +1 -1
  64. package/dist/esm/gl-like-button.entry.js +6 -6
  65. package/dist/esm/gl-like-button.entry.js.map +1 -1
  66. package/dist/esm/gl-table-export-controller.entry.js +1 -1
  67. package/dist/esm/index.js +2 -1
  68. package/dist/esm/index.js.map +1 -1
  69. package/dist/esm/polyfills/core-js.js +0 -0
  70. package/dist/esm/polyfills/dom.js +0 -0
  71. package/dist/esm/polyfills/es5-html-element.js +0 -0
  72. package/dist/esm/polyfills/index.js +0 -0
  73. package/dist/esm/polyfills/system.js +0 -0
  74. package/dist/esm/{utils-0af5fee1.js → utils-e86257fd.js} +2 -2
  75. package/dist/esm/{utils-0af5fee1.js.map → utils-e86257fd.js.map} +1 -1
  76. package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.ios.css +83 -0
  77. package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.md.css +80 -0
  78. package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.ios.css +17 -0
  79. package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.md.css +64 -0
  80. package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.ios.css +319 -0
  81. package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.md.css +259 -0
  82. package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.ios.css +503 -0
  83. package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.md.css +531 -0
  84. package/dist/node_modules/@ionic/core/dist/collection/components/app/app.css +17 -0
  85. package/dist/node_modules/@ionic/core/dist/collection/components/avatar/avatar.ios.css +22 -0
  86. package/dist/node_modules/@ionic/core/dist/collection/components/avatar/avatar.md.css +22 -0
  87. package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.ios.css +246 -0
  88. package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.md.css +269 -0
  89. package/dist/node_modules/@ionic/core/dist/collection/components/backdrop/backdrop.ios.css +26 -0
  90. package/dist/node_modules/@ionic/core/dist/collection/components/backdrop/backdrop.md.css +26 -0
  91. package/dist/node_modules/@ionic/core/dist/collection/components/badge/badge.ios.css +50 -0
  92. package/dist/node_modules/@ionic/core/dist/collection/components/badge/badge.md.css +54 -0
  93. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.ios.css +205 -0
  94. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.md.css +200 -0
  95. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.ios.css +26 -0
  96. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.md.css +25 -0
  97. package/dist/node_modules/@ionic/core/dist/collection/components/button/button.ios.css +431 -0
  98. package/dist/node_modules/@ionic/core/dist/collection/components/button/button.md.css +408 -0
  99. package/dist/node_modules/@ionic/core/dist/collection/components/buttons/buttons.ios.css +114 -0
  100. package/dist/node_modules/@ionic/core/dist/collection/components/buttons/buttons.md.css +134 -0
  101. package/dist/node_modules/@ionic/core/dist/collection/components/card/card.ios.css +93 -0
  102. package/dist/node_modules/@ionic/core/dist/collection/components/card/card.md.css +88 -0
  103. package/dist/node_modules/@ionic/core/dist/collection/components/card-content/card-content.ios.css +53 -0
  104. package/dist/node_modules/@ionic/core/dist/collection/components/card-content/card-content.md.css +55 -0
  105. package/dist/node_modules/@ionic/core/dist/collection/components/card-header/card-header.ios.css +31 -0
  106. package/dist/node_modules/@ionic/core/dist/collection/components/card-header/card-header.md.css +28 -0
  107. package/dist/node_modules/@ionic/core/dist/collection/components/card-subtitle/card-subtitle.ios.css +28 -0
  108. package/dist/node_modules/@ionic/core/dist/collection/components/card-subtitle/card-subtitle.md.css +26 -0
  109. package/dist/node_modules/@ionic/core/dist/collection/components/card-title/card-title.ios.css +27 -0
  110. package/dist/node_modules/@ionic/core/dist/collection/components/card-title/card-title.md.css +27 -0
  111. package/dist/node_modules/@ionic/core/dist/collection/components/checkbox/checkbox.ios.css +310 -0
  112. package/dist/node_modules/@ionic/core/dist/collection/components/checkbox/checkbox.md.css +326 -0
  113. package/dist/node_modules/@ionic/core/dist/collection/components/chip/chip.css +149 -0
  114. package/dist/node_modules/@ionic/core/dist/collection/components/col/col.css +68 -0
  115. package/dist/node_modules/@ionic/core/dist/collection/components/content/content.css +227 -0
  116. package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.ios.css +589 -0
  117. package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.md.css +561 -0
  118. package/dist/node_modules/@ionic/core/dist/collection/components/datetime-button/datetime-button.css +44 -0
  119. package/dist/node_modules/@ionic/core/dist/collection/components/fab/fab.css +98 -0
  120. package/dist/node_modules/@ionic/core/dist/collection/components/fab-button/fab-button.ios.css +312 -0
  121. package/dist/node_modules/@ionic/core/dist/collection/components/fab-button/fab-button.md.css +283 -0
  122. package/dist/node_modules/@ionic/core/dist/collection/components/fab-list/fab-list.css +123 -0
  123. package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.ios.css +36 -0
  124. package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.md.css +19 -0
  125. package/dist/node_modules/@ionic/core/dist/collection/components/grid/grid.css +103 -0
  126. package/dist/node_modules/@ionic/core/dist/collection/components/header/header.ios.css +106 -0
  127. package/dist/node_modules/@ionic/core/dist/collection/components/header/header.md.css +23 -0
  128. package/dist/node_modules/@ionic/core/dist/collection/components/img/img.css +12 -0
  129. package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll/infinite-scroll.css +8 -0
  130. package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll-content/infinite-scroll-content.ios.css +46 -0
  131. package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll-content/infinite-scroll-content.md.css +46 -0
  132. package/dist/node_modules/@ionic/core/dist/collection/components/input/input.ios.css +635 -0
  133. package/dist/node_modules/@ionic/core/dist/collection/components/input/input.md.css +1077 -0
  134. package/dist/node_modules/@ionic/core/dist/collection/components/item/item.ios.css +646 -0
  135. package/dist/node_modules/@ionic/core/dist/collection/components/item/item.md.css +908 -0
  136. package/dist/node_modules/@ionic/core/dist/collection/components/item-divider/item-divider.ios.css +166 -0
  137. package/dist/node_modules/@ionic/core/dist/collection/components/item-divider/item-divider.md.css +232 -0
  138. package/dist/node_modules/@ionic/core/dist/collection/components/item-group/item-group.ios.css +3 -0
  139. package/dist/node_modules/@ionic/core/dist/collection/components/item-group/item-group.md.css +3 -0
  140. package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.ios.css +142 -0
  141. package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.md.css +136 -0
  142. package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.ios.css +121 -0
  143. package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.md.css +118 -0
  144. package/dist/node_modules/@ionic/core/dist/collection/components/item-sliding/item-sliding.css +66 -0
  145. package/dist/node_modules/@ionic/core/dist/collection/components/label/label.ios.css +164 -0
  146. package/dist/node_modules/@ionic/core/dist/collection/components/label/label.md.css +251 -0
  147. package/dist/node_modules/@ionic/core/dist/collection/components/list/list.ios.css +63 -0
  148. package/dist/node_modules/@ionic/core/dist/collection/components/list/list.md.css +104 -0
  149. package/dist/node_modules/@ionic/core/dist/collection/components/list-header/list-header.ios.css +107 -0
  150. package/dist/node_modules/@ionic/core/dist/collection/components/list-header/list-header.md.css +88 -0
  151. package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.ios.css +95 -0
  152. package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.md.css +86 -0
  153. package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.ios.css +167 -0
  154. package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.md.css +163 -0
  155. package/dist/node_modules/@ionic/core/dist/collection/components/menu-button/menu-button.ios.css +167 -0
  156. package/dist/node_modules/@ionic/core/dist/collection/components/menu-button/menu-button.md.css +170 -0
  157. package/dist/node_modules/@ionic/core/dist/collection/components/menu-toggle/menu-toggle.css +3 -0
  158. package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.ios.css +247 -0
  159. package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.md.css +162 -0
  160. package/dist/node_modules/@ionic/core/dist/collection/components/nav/nav.css +10 -0
  161. package/dist/node_modules/@ionic/core/dist/collection/components/note/note.ios.css +16 -0
  162. package/dist/node_modules/@ionic/core/dist/collection/components/note/note.md.css +17 -0
  163. package/dist/node_modules/@ionic/core/dist/collection/components/picker/picker.ios.css +257 -0
  164. package/dist/node_modules/@ionic/core/dist/collection/components/picker/picker.md.css +244 -0
  165. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column/picker-column.ios.css +145 -0
  166. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column/picker-column.md.css +136 -0
  167. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.ios.css +75 -0
  168. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.md.css +78 -0
  169. package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.ios.css +152 -0
  170. package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.md.css +148 -0
  171. package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.ios.css +250 -0
  172. package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.md.css +157 -0
  173. package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.ios.css +206 -0
  174. package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.md.css +206 -0
  175. package/dist/node_modules/@ionic/core/dist/collection/components/radio/radio.ios.css +331 -0
  176. package/dist/node_modules/@ionic/core/dist/collection/components/radio/radio.md.css +354 -0
  177. package/dist/node_modules/@ionic/core/dist/collection/components/range/range.ios.css +469 -0
  178. package/dist/node_modules/@ionic/core/dist/collection/components/range/range.md.css +614 -0
  179. package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.ios.css +211 -0
  180. package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.md.css +206 -0
  181. package/dist/node_modules/@ionic/core/dist/collection/components/reorder/reorder.ios.css +15 -0
  182. package/dist/node_modules/@ionic/core/dist/collection/components/reorder/reorder.md.css +15 -0
  183. package/dist/node_modules/@ionic/core/dist/collection/components/reorder-group/reorder-group.css +34 -0
  184. package/dist/node_modules/@ionic/core/dist/collection/components/ripple-effect/ripple-effect.css +58 -0
  185. package/dist/node_modules/@ionic/core/dist/collection/components/router-link/router-link.css +29 -0
  186. package/dist/node_modules/@ionic/core/dist/collection/components/router-outlet/route-outlet.css +10 -0
  187. package/dist/node_modules/@ionic/core/dist/collection/components/row/row.css +4 -0
  188. package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.ios.css +354 -0
  189. package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.md.css +339 -0
  190. package/dist/node_modules/@ionic/core/dist/collection/components/segment/segment.ios.css +59 -0
  191. package/dist/node_modules/@ionic/core/dist/collection/components/segment/segment.md.css +49 -0
  192. package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.ios.css +410 -0
  193. package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.md.css +396 -0
  194. package/dist/node_modules/@ionic/core/dist/collection/components/select/select.ios.css +552 -0
  195. package/dist/node_modules/@ionic/core/dist/collection/components/select/select.md.css +1025 -0
  196. package/dist/node_modules/@ionic/core/dist/collection/components/select-option/select-option.css +3 -0
  197. package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/select-popover.ios.css +14 -0
  198. package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/select-popover.md.css +37 -0
  199. package/dist/node_modules/@ionic/core/dist/collection/components/skeleton-text/skeleton-text.css +53 -0
  200. package/dist/node_modules/@ionic/core/dist/collection/components/spinner/spinner.css +177 -0
  201. package/dist/node_modules/@ionic/core/dist/collection/components/split-pane/split-pane.ios.css +92 -0
  202. package/dist/node_modules/@ionic/core/dist/collection/components/split-pane/split-pane.md.css +92 -0
  203. package/dist/node_modules/@ionic/core/dist/collection/components/tab/tab.css +4 -0
  204. package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.ios.css +87 -0
  205. package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.md.css +74 -0
  206. package/dist/node_modules/@ionic/core/dist/collection/components/tab-button/tab-button.ios.css +367 -0
  207. package/dist/node_modules/@ionic/core/dist/collection/components/tab-button/tab-button.md.css +391 -0
  208. package/dist/node_modules/@ionic/core/dist/collection/components/tabs/tabs.css +19 -0
  209. package/dist/node_modules/@ionic/core/dist/collection/components/text/text.css +3 -0
  210. package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.ios.css +693 -0
  211. package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.md.css +1142 -0
  212. package/dist/node_modules/@ionic/core/dist/collection/components/thumbnail/thumbnail.css +21 -0
  213. package/dist/node_modules/@ionic/core/dist/collection/components/title/title.ios.css +119 -0
  214. package/dist/node_modules/@ionic/core/dist/collection/components/title/title.md.css +47 -0
  215. package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.ios.css +284 -0
  216. package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.md.css +305 -0
  217. package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.ios.css +455 -0
  218. package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.md.css +400 -0
  219. package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.ios.css +161 -0
  220. package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.md.css +136 -0
  221. package/dist/node_modules/ionicons/dist/collection/components/icon/icon.css +101 -0
  222. package/dist/types/global/webmapgl.d.ts +1 -0
  223. package/dist/types/index.d.ts +1 -0
  224. package/dist/webmapgl/index.esm.js +1 -1
  225. package/dist/webmapgl/{p-29a0ba94.entry.js → p-10ecfbc1.entry.js} +3 -3
  226. package/dist/webmapgl/p-10ecfbc1.entry.js.map +1 -0
  227. package/dist/webmapgl/{p-d8674de4.js → p-1109414b.js} +2 -2
  228. package/dist/webmapgl/p-41aed25d.entry.js +8 -0
  229. package/dist/webmapgl/p-41aed25d.entry.js.map +1 -0
  230. package/dist/webmapgl/{p-9a52a393.entry.js → p-4bdbedef.entry.js} +2 -2
  231. package/dist/webmapgl/{p-43063806.entry.js → p-60c4d25c.entry.js} +2 -2
  232. package/dist/webmapgl/{p-47516d22.entry.js → p-725281ca.entry.js} +2 -2
  233. package/dist/webmapgl/{p-8d22e12f.entry.js → p-8e93527b.entry.js} +2 -2
  234. package/dist/webmapgl/p-8e93527b.entry.js.map +1 -0
  235. package/dist/webmapgl/p-b3dc2acc.js.map +1 -1
  236. package/dist/webmapgl/{p-96e77bf2.entry.js → p-c61eaf23.entry.js} +2 -2
  237. package/dist/webmapgl/p-c61eaf23.entry.js.map +1 -0
  238. package/dist/webmapgl/webmapgl.css +1 -1
  239. package/dist/webmapgl/webmapgl.esm.js +1 -1
  240. package/package.json +4 -3
  241. package/CHANGELOG.md +0 -234
  242. package/dist/webmapgl/p-29a0ba94.entry.js.map +0 -1
  243. package/dist/webmapgl/p-8d22e12f.entry.js.map +0 -1
  244. package/dist/webmapgl/p-96e77bf2.entry.js.map +0 -1
  245. package/dist/webmapgl/p-99a83939.entry.js +0 -8
  246. package/dist/webmapgl/p-99a83939.entry.js.map +0 -1
  247. /package/dist/webmapgl/{p-d8674de4.js.map → p-1109414b.js.map} +0 -0
  248. /package/dist/webmapgl/{p-9a52a393.entry.js.map → p-4bdbedef.entry.js.map} +0 -0
  249. /package/dist/webmapgl/{p-43063806.entry.js.map → p-60c4d25c.entry.js.map} +0 -0
  250. /package/dist/webmapgl/{p-47516d22.entry.js.map → p-725281ca.entry.js.map} +0 -0
@@ -0,0 +1,59 @@
1
+ :host {
2
+ /**
3
+ * @prop --background: Background of the segment button
4
+ */
5
+ --ripple-color: currentColor;
6
+ -moz-osx-font-smoothing: grayscale;
7
+ -webkit-font-smoothing: antialiased;
8
+ display: grid;
9
+ grid-auto-columns: 1fr;
10
+ position: relative;
11
+ align-items: stretch;
12
+ justify-content: center;
13
+ width: 100%;
14
+ background: var(--background);
15
+ font-family: var(--ion-font-family, inherit);
16
+ text-align: center;
17
+ contain: paint;
18
+ user-select: none;
19
+ }
20
+
21
+ :host(.segment-scrollable) {
22
+ justify-content: start;
23
+ width: auto;
24
+ overflow-x: auto;
25
+ grid-auto-columns: minmax(min-content, 1fr);
26
+ }
27
+
28
+ :host(.segment-scrollable::-webkit-scrollbar) {
29
+ display: none;
30
+ }
31
+
32
+ :host {
33
+ --background: rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.065);
34
+ border-radius: 8px;
35
+ overflow: hidden;
36
+ z-index: 0;
37
+ }
38
+
39
+ :host(.ion-color) {
40
+ background: rgba(var(--ion-color-base-rgb), 0.065);
41
+ }
42
+
43
+ :host(.in-toolbar) {
44
+ -webkit-margin-start: auto;
45
+ margin-inline-start: auto;
46
+ -webkit-margin-end: auto;
47
+ margin-inline-end: auto;
48
+ margin-top: 0;
49
+ margin-bottom: 0;
50
+ width: auto;
51
+ }
52
+
53
+ :host(.in-toolbar:not(.ion-color)) {
54
+ background: var(--ion-toolbar-segment-background, var(--background));
55
+ }
56
+
57
+ :host(.in-toolbar-color:not(.ion-color)) {
58
+ background: rgba(var(--ion-color-contrast-rgb), 0.11);
59
+ }
@@ -0,0 +1,49 @@
1
+ :host {
2
+ /**
3
+ * @prop --background: Background of the segment button
4
+ */
5
+ --ripple-color: currentColor;
6
+ -moz-osx-font-smoothing: grayscale;
7
+ -webkit-font-smoothing: antialiased;
8
+ display: grid;
9
+ grid-auto-columns: 1fr;
10
+ position: relative;
11
+ align-items: stretch;
12
+ justify-content: center;
13
+ width: 100%;
14
+ background: var(--background);
15
+ font-family: var(--ion-font-family, inherit);
16
+ text-align: center;
17
+ contain: paint;
18
+ user-select: none;
19
+ }
20
+
21
+ :host(.segment-scrollable) {
22
+ justify-content: start;
23
+ width: auto;
24
+ overflow-x: auto;
25
+ grid-auto-columns: minmax(min-content, 1fr);
26
+ }
27
+
28
+ :host(.segment-scrollable::-webkit-scrollbar) {
29
+ display: none;
30
+ }
31
+
32
+ :host {
33
+ --background: transparent;
34
+ grid-auto-columns: minmax(auto, 360px);
35
+ }
36
+
37
+ :host(.in-toolbar) {
38
+ /**
39
+ * Segment should inherit the
40
+ * height of the toolbar.
41
+ * Note: --min-height is initially
42
+ * set on ion-toolbar, not ion-segment
43
+ */
44
+ min-height: var(--min-height);
45
+ }
46
+
47
+ :host(.segment-scrollable) ::slotted(ion-segment-button) {
48
+ min-width: auto;
49
+ }
@@ -0,0 +1,410 @@
1
+ :host {
2
+ /**
3
+ * @prop --background: Background of the segment button
4
+ * @prop --background-checked: Background of the checked segment button
5
+ *
6
+ * @prop --background-hover: Background of the segment button on hover
7
+ * @prop --background-focused: Background of the segment button when focused with the tab key
8
+ *
9
+ * @prop --background-hover-opacity: Opacity of the segment button background on hover
10
+ * @prop --background-focused-opacity: Opacity of the segment button background when focused with the tab key
11
+ *
12
+ * @prop --color: Color of the segment button
13
+ * @prop --color-checked: Color of the checked segment button
14
+ * @prop --color-hover: Color of the segment button on hover
15
+ * @prop --color-focused: Color of the segment button when focused with the tab key
16
+ *
17
+ * @prop --border-radius: Radius of the segment button border
18
+ * @prop --border-color: Color of the segment button border
19
+ * @prop --border-style: Style of the segment button border
20
+ * @prop --border-width: Width of the segment button border
21
+ *
22
+ * @prop --margin-top: Top margin of the segment button
23
+ * @prop --margin-end: Right margin if direction is left-to-right, and left margin if direction is right-to-left of the segment button
24
+ * @prop --margin-bottom: Bottom margin of the segment button
25
+ * @prop --margin-start: Left margin if direction is left-to-right, and right margin if direction is right-to-left of the segment button
26
+ *
27
+ * @prop --padding-top: Top padding of the segment button
28
+ * @prop --padding-end: Right padding if direction is left-to-right, and left padding if direction is right-to-left of the segment button
29
+ * @prop --padding-bottom: Bottom padding of the segment button
30
+ * @prop --padding-start: Left padding if direction is left-to-right, and right padding if direction is right-to-left of the segment button
31
+ *
32
+ * @prop --transition: Transition of the segment button
33
+ *
34
+ * @prop --indicator-height: Height of the indicator for the checked segment button
35
+ * @prop --indicator-box-shadow: Box shadow on the indicator for the checked segment button
36
+ * @prop --indicator-color: Color of the indicator for the checked segment button
37
+ * @prop --indicator-transition: Transition of the indicator for the checked segment button
38
+ * @prop --indicator-transform: Transform of the indicator for the checked segment button
39
+ */
40
+ --color: initial;
41
+ --color-hover: var(--color);
42
+ --color-checked: var(--color);
43
+ --color-disabled: var(--color);
44
+ --padding-start: 0;
45
+ --padding-end: 0;
46
+ --padding-top: 0;
47
+ --padding-bottom: 0;
48
+ border-radius: var(--border-radius);
49
+ display: flex;
50
+ position: relative;
51
+ flex-direction: column;
52
+ height: auto;
53
+ background: var(--background);
54
+ color: var(--color);
55
+ text-decoration: none;
56
+ text-overflow: ellipsis;
57
+ white-space: nowrap;
58
+ cursor: pointer;
59
+ grid-row: 1;
60
+ font-kerning: none;
61
+ }
62
+
63
+ .button-native {
64
+ border-radius: 0;
65
+ font-family: inherit;
66
+ font-size: inherit;
67
+ font-style: inherit;
68
+ font-weight: inherit;
69
+ letter-spacing: inherit;
70
+ text-decoration: inherit;
71
+ text-indent: inherit;
72
+ text-overflow: inherit;
73
+ text-transform: inherit;
74
+ text-align: inherit;
75
+ white-space: inherit;
76
+ color: inherit;
77
+ -webkit-margin-start: var(--margin-start);
78
+ margin-inline-start: var(--margin-start);
79
+ -webkit-margin-end: var(--margin-end);
80
+ margin-inline-end: var(--margin-end);
81
+ margin-top: var(--margin-top);
82
+ margin-bottom: var(--margin-bottom);
83
+ -webkit-padding-start: var(--padding-start);
84
+ padding-inline-start: var(--padding-start);
85
+ -webkit-padding-end: var(--padding-end);
86
+ padding-inline-end: var(--padding-end);
87
+ padding-top: var(--padding-top);
88
+ padding-bottom: var(--padding-bottom);
89
+ transform: translate3d(0, 0, 0);
90
+ display: flex;
91
+ position: relative;
92
+ flex-direction: inherit;
93
+ flex-grow: 1;
94
+ align-items: center;
95
+ justify-content: center;
96
+ width: 100%;
97
+ min-width: inherit;
98
+ max-width: inherit;
99
+ height: auto;
100
+ min-height: inherit;
101
+ max-height: inherit;
102
+ transition: var(--transition);
103
+ border: none;
104
+ outline: none;
105
+ background: transparent;
106
+ contain: content;
107
+ pointer-events: none;
108
+ overflow: hidden;
109
+ z-index: 2;
110
+ }
111
+
112
+ .button-native::after {
113
+ left: 0;
114
+ right: 0;
115
+ top: 0;
116
+ bottom: 0;
117
+ position: absolute;
118
+ content: "";
119
+ opacity: 0;
120
+ }
121
+
122
+ .button-inner {
123
+ display: flex;
124
+ position: relative;
125
+ flex-flow: inherit;
126
+ align-items: center;
127
+ justify-content: center;
128
+ width: 100%;
129
+ height: 100%;
130
+ z-index: 1;
131
+ }
132
+
133
+ :host(.segment-button-checked) {
134
+ background: var(--background-checked);
135
+ color: var(--color-checked);
136
+ }
137
+
138
+ :host(.segment-button-disabled) {
139
+ cursor: default;
140
+ pointer-events: none;
141
+ }
142
+
143
+ :host(.ion-focused) .button-native {
144
+ color: var(--color-focused);
145
+ }
146
+ :host(.ion-focused) .button-native::after {
147
+ background: var(--background-focused);
148
+ opacity: var(--background-focused-opacity);
149
+ }
150
+
151
+ :host(:focus) {
152
+ outline: none;
153
+ }
154
+
155
+ @media (any-hover: hover) {
156
+ :host(:hover) .button-native {
157
+ color: var(--color-hover);
158
+ }
159
+ :host(:hover) .button-native::after {
160
+ background: var(--background-hover);
161
+ opacity: var(--background-hover-opacity);
162
+ }
163
+ :host(.segment-button-checked:hover) .button-native {
164
+ color: var(--color-checked);
165
+ }
166
+ }
167
+ ::slotted(ion-icon) {
168
+ flex-shrink: 0;
169
+ order: -1;
170
+ pointer-events: none;
171
+ }
172
+
173
+ ::slotted(ion-label) {
174
+ display: block;
175
+ align-self: center;
176
+ max-width: 100%;
177
+ line-height: 22px;
178
+ text-overflow: ellipsis;
179
+ white-space: nowrap;
180
+ overflow: hidden;
181
+ box-sizing: border-box;
182
+ pointer-events: none;
183
+ }
184
+
185
+ :host(.segment-button-layout-icon-top) .button-native {
186
+ flex-direction: column;
187
+ }
188
+
189
+ :host(.segment-button-layout-icon-start) .button-native {
190
+ flex-direction: row;
191
+ }
192
+
193
+ :host(.segment-button-layout-icon-end) .button-native {
194
+ flex-direction: row-reverse;
195
+ }
196
+
197
+ :host(.segment-button-layout-icon-bottom) .button-native {
198
+ flex-direction: column-reverse;
199
+ }
200
+
201
+ :host(.segment-button-layout-icon-hide) ::slotted(ion-icon) {
202
+ display: none;
203
+ }
204
+
205
+ :host(.segment-button-layout-label-hide) ::slotted(ion-label) {
206
+ display: none;
207
+ }
208
+
209
+ ion-ripple-effect {
210
+ color: var(--ripple-color, var(--color-checked));
211
+ }
212
+
213
+ .segment-button-indicator {
214
+ transform-origin: left;
215
+ position: absolute;
216
+ opacity: 0;
217
+ box-sizing: border-box;
218
+ will-change: transform, opacity;
219
+ pointer-events: none;
220
+ }
221
+
222
+ .segment-button-indicator-background {
223
+ width: 100%;
224
+ height: var(--indicator-height);
225
+ transform: var(--indicator-transform);
226
+ box-shadow: var(--indicator-box-shadow);
227
+ pointer-events: none;
228
+ }
229
+
230
+ .segment-button-indicator-animated {
231
+ transition: var(--indicator-transition);
232
+ }
233
+
234
+ :host(.segment-button-checked) .segment-button-indicator {
235
+ opacity: 1;
236
+ }
237
+
238
+ @media (prefers-reduced-motion: reduce) {
239
+ .segment-button-indicator-background {
240
+ transform: none;
241
+ }
242
+ .segment-button-indicator-animated {
243
+ transition: none;
244
+ }
245
+ }
246
+ :host {
247
+ --background: none;
248
+ --background-checked: none;
249
+ --background-hover: none;
250
+ --background-hover-opacity: 0;
251
+ --background-focused: none;
252
+ --background-focused-opacity: 0;
253
+ --border-radius: 7px;
254
+ --border-width: 1px;
255
+ --border-color: rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.12);
256
+ --border-style: solid;
257
+ --indicator-box-shadow: 0 0 5px rgba(0, 0, 0, 0.16);
258
+ --indicator-color: var(--ion-color-step-350, var(--ion-background-color, #fff));
259
+ --indicator-height: 100%;
260
+ --indicator-transition: transform 260ms cubic-bezier(0.4, 0, 0.2, 1);
261
+ --indicator-transform: none;
262
+ --transition: 100ms all linear;
263
+ --padding-top: 0;
264
+ --padding-end: 13px;
265
+ --padding-bottom: 0;
266
+ --padding-start: 13px;
267
+ margin-top: 2px;
268
+ margin-bottom: 2px;
269
+ position: relative;
270
+ flex-direction: row;
271
+ min-width: 70px;
272
+ min-height: 28px;
273
+ transform: translate3d(0, 0, 0);
274
+ font-size: 13px;
275
+ font-weight: 450;
276
+ line-height: 37px;
277
+ }
278
+
279
+ :host::before {
280
+ margin-left: 0;
281
+ margin-right: 0;
282
+ margin-top: 5px;
283
+ margin-bottom: 5px;
284
+ transition: 160ms opacity ease-in-out;
285
+ transition-delay: 100ms;
286
+ border-left: var(--border-width) var(--border-style) var(--border-color);
287
+ content: "";
288
+ opacity: 1;
289
+ will-change: opacity;
290
+ }
291
+
292
+ :host(:first-of-type)::before {
293
+ border-left-color: transparent;
294
+ }
295
+
296
+ :host(.segment-button-disabled) {
297
+ opacity: 0.3;
298
+ }
299
+
300
+ ::slotted(ion-icon) {
301
+ font-size: 24px;
302
+ }
303
+
304
+ :host(.segment-button-layout-icon-start) ::slotted(ion-label) {
305
+ -webkit-margin-start: 2px;
306
+ margin-inline-start: 2px;
307
+ -webkit-margin-end: 0;
308
+ margin-inline-end: 0;
309
+ }
310
+
311
+ :host(.segment-button-layout-icon-end) ::slotted(ion-label) {
312
+ -webkit-margin-start: 0;
313
+ margin-inline-start: 0;
314
+ -webkit-margin-end: 2px;
315
+ margin-inline-end: 2px;
316
+ }
317
+
318
+ .segment-button-indicator {
319
+ -webkit-padding-start: 2px;
320
+ padding-inline-start: 2px;
321
+ -webkit-padding-end: 2px;
322
+ padding-inline-end: 2px;
323
+ left: 0;
324
+ right: 0;
325
+ top: 0;
326
+ bottom: 0;
327
+ }
328
+
329
+ .segment-button-indicator-background {
330
+ border-radius: var(--border-radius);
331
+ background: var(--indicator-color);
332
+ }
333
+
334
+ .segment-button-indicator-background {
335
+ transition: var(--indicator-transition);
336
+ }
337
+
338
+ :host(.segment-button-checked)::before,
339
+ :host(.segment-button-after-checked)::before {
340
+ opacity: 0;
341
+ }
342
+
343
+ :host(.segment-button-checked) {
344
+ z-index: -1;
345
+ }
346
+
347
+ :host(.segment-button-activated) {
348
+ --indicator-transform: scale(0.95);
349
+ }
350
+
351
+ :host(.ion-focused) .button-native {
352
+ opacity: 0.7;
353
+ }
354
+
355
+ @media (any-hover: hover) {
356
+ :host(:hover) .button-native {
357
+ opacity: 0.5;
358
+ }
359
+ :host(.segment-button-checked:hover) .button-native {
360
+ opacity: 1;
361
+ }
362
+ }
363
+ :host(.in-segment-color) {
364
+ background: none;
365
+ color: var(--ion-text-color, #000);
366
+ }
367
+
368
+ :host(.in-segment-color) .segment-button-indicator-background {
369
+ background: var(--ion-color-step-350, var(--ion-background-color, #fff));
370
+ }
371
+
372
+ @media (any-hover: hover) {
373
+ :host(.in-segment-color:hover) .button-native,
374
+ :host(.in-segment-color.segment-button-checked:hover) .button-native {
375
+ color: var(--ion-text-color, #000);
376
+ }
377
+ }
378
+ :host(.in-toolbar:not(.in-segment-color)) {
379
+ --background-checked: var(--ion-toolbar-segment-background-checked, none);
380
+ --color: var(--ion-toolbar-segment-color, var(--ion-toolbar-color), initial);
381
+ --color-checked: var(--ion-toolbar-segment-color-checked, var(--ion-toolbar-color), initial);
382
+ --indicator-color: var(--ion-toolbar-segment-indicator-color, var(--ion-color-step-350, var(--ion-background-color, #fff)));
383
+ }
384
+
385
+ /**
386
+ * Use the contrast color as background since
387
+ * since the text color is the base color. Otherwise
388
+ * we will have contrast issues when using light/medium/dark
389
+ * palettes across light and dark mode.
390
+ */
391
+ :host(.in-toolbar-color) .segment-button-indicator-background {
392
+ background: var(--ion-color-contrast);
393
+ }
394
+
395
+ :host(.in-toolbar-color:not(.in-segment-color)) .button-native {
396
+ color: var(--ion-color-contrast);
397
+ }
398
+
399
+ :host(.in-toolbar-color.segment-button-checked:not(.in-segment-color)) .button-native {
400
+ color: var(--ion-color-base);
401
+ }
402
+
403
+ @media (any-hover: hover) {
404
+ :host(.in-toolbar-color:not(.in-segment-color):hover) .button-native {
405
+ color: var(--ion-color-contrast);
406
+ }
407
+ :host(.in-toolbar-color.segment-button-checked:not(.in-segment-color):hover) .button-native {
408
+ color: var(--ion-color-base);
409
+ }
410
+ }