@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
@@ -1 +1 @@
1
- {"version":3,"file":"legend-item.js","sourceRoot":"","sources":["../../../src/components/legend-item/legend-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,CAAC,EACD,SAAS,EACT,OAAO,EACP,MAAM,EACN,IAAI,EACJ,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AAC,GAAG,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;OAC9D;MACD,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC;IACH,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;EACtB,CAAC;EAEO,MAAM,CAAC,IAAwB;IACrC,IAAI,IAAI,IAAI,IAAI;MAAE,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;EACzD,CAAC;EAKD,MAAM;IACJ,IAAI,OAAO,GAAG,EAAE,CAAC;IACjB,IAAI,IAAI,CAAC,KAAK,IAAI,SAAS;MACzB,OAAO,CAAC,IAAI,CACV,qBAAe,IAAI,EAAC,OAAO;QACzB,WAAK,GAAG,EAAE,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC,WAAW,GAAI,CACpC,CACjB,CAAC;IACJ,OAAO,CAAC,IAAI,CACV;MACE,eAAQ,CACE,CACb,CAAC;IACF,IAAI,IAAI,CAAC,MAAM;MACb,OAAO,CAAC,IAAI,CACV,kBACE,IAAI,EAAC,KAAK,EACV,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,WAAW,EAAE,IAAI,CAAC,QAAQ,GACd,CACf,CAAC;IAEJ,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS;MAC3B,OAAO,4BAAmB,OAAO,CAAoB,CAAC;IACxD,OAAO,oBAAW,OAAO,CAAY,CAAC;EACxC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n h,\n Component,\n Element,\n Listen,\n Prop,\n State,\n Watch,\n} from \"@stencil/core\";\nimport { toArray } from \"../utils\";\nimport { ToggleCustomEvent } from \"@ionic/core\";\nimport { StyleSpecification } from \"maplibre-gl\";\n\n@Component({\n tag: \"gl-legend-item\",\n styleUrl: \"legend-item.css\",\n})\nexport class LegendItem {\n @Element() el: HTMLGlLegendItemElement;\n\n @State() visible: boolean;\n\n /**\n * The IDs of the style layers controlled by this legend item. If controls\n * which layers are toggled or on off by this legend item.\n */\n @Prop() readonly layers: string | string[];\n\n /**\n * The URL of the image for the legend item.\n */\n @Prop() readonly image: string;\n\n /**\n * Show a toggle switch to turn the corresponding layer on and off. If\n * it is `true`, `layers` and `styleId` must be provided.\n */\n @Prop() readonly toggle: boolean = false;\n\n /**\n * ID of the `gl-style` containing the layers referenced in `layers`.\n */\n @Prop() readonly styleId: string;\n\n /**\n * Widget used to render the legend item. The `divider` value renders an\n * `ion-list-divider` component suitable for grouping subsequent legend items.\n */\n @Prop() readonly widget: \"divider\" | \"item\" = \"item\";\n\n async componentWillLoad() {\n this.handleStyleId();\n }\n\n @Watch(\"styleId\")\n async handleStyleId() {\n let styleEl = await this.getStyle();\n if (styleEl != undefined) this.update(styleEl.json);\n }\n\n @Listen(\"glStyleElementAdded\", { target: \"body\" })\n handleStyleAdded(e: CustomEvent) {\n if (e.detail.id === this.styleId) this.update(e.detail.style.json);\n }\n\n @Listen(\"glStyleElementModified\", { target: \"body\" })\n handleStyleUpdated(e: CustomEvent) {\n if (e.detail.id === this.styleId) this.update(e.detail.style.json);\n }\n\n private async getStyle(): Promise<HTMLGlStyleElement> {\n let styleEl: HTMLGlStyleElement = document.querySelector(\n `gl-style#${this.styleId}`\n );\n\n if (styleEl != undefined) await styleEl.componentOnReady();\n return styleEl;\n }\n\n private getVisible(json: StyleSpecification) {\n const layers = toArray(this.layers);\n if (layers == undefined || layers.length === 0) return true;\n if (json.layers == undefined || json.layers.length === 0) return false;\n for (let layer of json.layers) {\n if (layers.indexOf(layer.id) !== -1) {\n if (\"layout\" in layer && layer.layout != undefined) {\n return layer.layout.visibility !== \"none\";\n } else return true;\n }\n }\n }\n\n private async setVisible(visible: boolean) {\n if (this.visible === visible) return;\n\n let layers = toArray(this.layers);\n let styleEl = await this.getStyle();\n if (styleEl == undefined) return;\n\n let json: StyleSpecification = { ...styleEl.json };\n json.layers = (json.layers || []).map((layer) => {\n if (layers.indexOf(layer.id) !== -1) {\n if (!(\"layout\" in layer) || layer.layout == undefined)\n layer[\"layout\"] = {};\n layer[\"layout\"][\"visibility\"] = visible ? \"visible\" : \"none\";\n }\n return layer;\n });\n styleEl.json = json;\n }\n\n private update(json: StyleSpecification) {\n if (json != null) this.visible = this.getVisible(json);\n }\n\n private onToggle = (e: ToggleCustomEvent) =>\n this.setVisible(e.detail.checked);\n\n render() {\n let content = [];\n if (this.image != undefined)\n content.push(\n <ion-thumbnail slot=\"start\">\n <img src={this.image} alt={this.el.textContent} />\n </ion-thumbnail>\n );\n content.push(\n <ion-label>\n <slot />\n </ion-label>\n );\n if (this.toggle)\n content.push(\n <ion-toggle\n slot=\"end\"\n checked={this.visible}\n onIonChange={this.onToggle}\n ></ion-toggle>\n );\n\n if (this.widget === \"divider\")\n return <ion-item-divider>{content}</ion-item-divider>;\n return <ion-item>{content}</ion-item>;\n }\n}\n"]}
1
+ {"version":3,"file":"legend-item.js","sourceRoot":"","sources":["../../../src/components/legend-item/legend-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,CAAC,EACD,SAAS,EACT,OAAO,EACP,MAAM,EACN,IAAI,EACJ,KAAK,EACL,KAAK,EACN,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAQnC,MAAM,OAAO,UAAU;;IAkGb,aAAQ,GAAG,CAAC,CAAoB,EAAE,EAAE,CAC1C,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;;;;kBA/ED,KAAK;;kBAWM,MAAM;;EAEpD,KAAK,CAAC,iBAAiB;IACrB,IAAI,CAAC,aAAa,EAAE,CAAC;EACvB,CAAC;EAGD,KAAK,CAAC,aAAa;IACjB,IAAI,OAAO,GAAG,M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K,IAAI,SAAS;MACzB,OAAO,CAAC,IAAI,CACV,qBAAe,IAAI,EAAC,OAAO;QACzB,WAAK,GAAG,EAAE,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC,WAAW,GAAI,CACpC,CACjB,CAAC;IACJ,OAAO,CAAC,IAAI,CACV;MACE,eAAQ,CACE,CACb,CAAC;IACF,IAAI,IAAI,CAAC,MAAM;MACb,OAAO,CAAC,IAAI,CACV,kBACE,IAAI,EAAC,KAAK,EACV,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,WAAW,EAAE,IAAI,CAAC,QAAQ,gBACf,cAAc,GACb,CACf,CAAC;IAEJ,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS;MAC3B,OAAO,4BAAmB,OAAO,CAAoB,CAAC;IACxD,OAAO,oBAAW,OAAO,CAAY,CAAC;EACxC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n h,\n Component,\n Element,\n Listen,\n Prop,\n State,\n Watch\n} from \"@stencil/core\";\nimport { toArray } from \"../utils\";\nimport { ToggleCustomEvent } from \"@ionic/core\";\nimport { StyleSpecification } from \"maplibre-gl\";\n\n@Component({\n tag: \"gl-legend-item\",\n styleUrl: \"legend-item.css\"\n})\nexport class LegendItem {\n @Element() el: HTMLGlLegendItemElement;\n\n @State() visible: boolean;\n\n /**\n * The IDs of the style layers controlled by this legend item. If controls\n * which layers are toggled or on off by this legend item.\n */\n @Prop() readonly layers: string | string[];\n\n /**\n * The URL of the image for the legend item.\n */\n @Prop() readonly image: string;\n\n /**\n * Show a toggle switch to turn the corresponding layer on and off. If\n * it is `true`, `layers` and `styleId` must be provided.\n */\n @Prop() readonly toggle: boolean = false;\n\n /**\n * ID of the `gl-style` containing the layers referenced in `layers`.\n */\n @Prop() readonly styleId: string;\n\n /**\n * Widget used to render the legend item. The `divider` value renders an\n * `ion-list-divider` component suitable for grouping subsequent legend items.\n */\n @Prop() readonly widget: \"divider\" | \"item\" = \"item\";\n\n async componentWillLoad() {\n this.handleStyleId();\n }\n\n @Watch(\"styleId\")\n async handleStyleId() {\n let styleEl = await this.getStyle();\n if (styleEl != undefined) this.update(styleEl.json);\n }\n\n @Listen(\"glStyleElementAdded\", { target: \"body\" })\n handleStyleAdded(e: CustomEvent) {\n if (e.detail.id === this.styleId) this.update(e.detail.style.json);\n }\n\n @Listen(\"glStyleElementModified\", { target: \"body\" })\n handleStyleUpdated(e: CustomEvent) {\n if (e.detail.id === this.styleId) this.update(e.detail.style.json);\n }\n\n private async getStyle(): Promise<HTMLGlStyleElement> {\n let styleEl: HTMLGlStyleElement = document.querySelector(\n `gl-style#${this.styleId}`\n );\n\n if (styleEl != undefined) await styleEl.componentOnReady();\n return styleEl;\n }\n\n private getVisible(json: StyleSpecification) {\n const layers = toArray(this.layers);\n if (layers == undefined || layers.length === 0) return true;\n if (json.layers == undefined || json.layers.length === 0) return false;\n for (let layer of json.layers) {\n if (layers.indexOf(layer.id) !== -1) {\n if (\"layout\" in layer && layer.layout != undefined) {\n return layer.layout.visibility !== \"none\";\n } else return true;\n }\n }\n }\n\n private async setVisible(visible: boolean) {\n if (this.visible === visible) return;\n\n let layers = toArray(this.layers);\n let styleEl = await this.getStyle();\n if (styleEl == undefined) return;\n\n let json: StyleSpecification = { ...styleEl.json };\n json.layers = (json.layers || []).map((layer) => {\n if (layers.indexOf(layer.id) !== -1) {\n if (!(\"layout\" in layer) || layer.layout == undefined)\n layer[\"layout\"] = {};\n layer[\"layout\"][\"visibility\"] = visible ? \"visible\" : \"none\";\n }\n return layer;\n });\n styleEl.json = json;\n }\n\n private update(json: StyleSpecification) {\n if (json != null) this.visible = this.getVisible(json);\n }\n\n private onToggle = (e: ToggleCustomEvent) =>\n this.setVisible(e.detail.checked);\n\n render() {\n let content = [];\n if (this.image != undefined)\n content.push(\n <ion-thumbnail slot=\"start\">\n <img src={this.image} alt={this.el.textContent} />\n </ion-thumbnail>\n );\n content.push(\n <ion-label>\n <slot />\n </ion-label>\n );\n if (this.toggle)\n content.push(\n <ion-toggle\n slot=\"end\"\n checked={this.visible}\n onIonChange={this.onToggle}\n aria-label=\"Toggle Layer\"\n ></ion-toggle>\n );\n\n if (this.widget === \"divider\")\n return <ion-item-divider>{content}</ion-item-divider>;\n return <ion-item>{content}</ion-item>;\n }\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { h, } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  import { findOrCreateOnReady } from "../utils";
3
3
  export class LikeButton {
4
4
  constructor() {
@@ -53,13 +53,13 @@ export class LikeButton {
53
53
  properties: {
54
54
  action: this.liked ? "like" : "unlike",
55
55
  feature_id: this.feature.id,
56
- client_id: clientId,
57
- },
56
+ client_id: clientId
57
+ }
58
58
  }, {
59
59
  url: this.url,
60
60
  token: this.token,
61
61
  method: this.method,
62
- mode: this.requestMode,
62
+ mode: this.requestMode
63
63
  });
64
64
  success = true;
65
65
  }
@@ -68,11 +68,11 @@ export class LikeButton {
68
68
  success: success,
69
69
  feature: this.feature,
70
70
  action: this.liked ? "like" : "unlike",
71
- client_id: clientId,
71
+ client_id: clientId
72
72
  });
73
73
  }
74
74
  render() {
75
- return (h("ion-button", { fill: "clear", onClick: this.likeClicked, disabled: this.disabled }, h("ion-icon", { slot: "start", name: this.liked ? this.iconYes : this.iconNo }), h("span", { class: "gl-like-button-count" }, this.count)));
75
+ return (h("ion-button", { fill: "clear", onClick: this.likeClicked, disabled: this.disabled, "aria-label": "Like Button" }, h("ion-icon", { slot: "start", name: this.liked ? this.iconYes : this.iconNo, "aria-hidden": "true" }), h("span", { class: "gl-like-button-count" }, this.count)));
76
76
  }
77
77
  static get is() { return "gl-like-button"; }
78
78
  static get properties() {
@@ -1 +1 @@
1
- {"version":3,"file":"like-button.js","sourceRoot":"","sources":["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,SAAS,EAAE,QAAQ;KACpB,CAAC,CAAC;EACL,CAAC;EAMD,MAAM;IACJ,OAAO,CACL,kBACE,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ;MAEvB,gBACE,IAAI,EAAC,OAAO,EACZ,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,GACnC;MACZ,YAAM,KAAK,EAAC,sBAAsB,IAAE,IAAI,CAAC,KAAK,CAAQ,CAC3C,CACd,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n h,\n Component,\n Element,\n Event,\n EventEmitter,\n Prop,\n State,\n Watch,\n} from \"@stencil/core\";\nimport { LikeProxy } from \"../like-controller/like-proxy\";\nimport { findOrCreateOnReady } from \"../utils\";\nimport { Feature } from \"geojson\";\nimport { MapGeoJSONFeature } from \"maplibre-gl\";\n@Component({\n tag: \"gl-like-button\",\n})\nexport class LikeButton {\n @Element() el: HTMLGlLikeButtonElement;\n\n @State() count: number = 0;\n @State() liked: boolean = false;\n @State() proxy: LikeProxy;\n\n @State() likeCtrl: HTMLGlLikeControllerElement;\n @State() restCtrl: HTMLGlRestControllerElement;\n\n /**\n * The attribute which stores the number of likes this feature has received\n */\n @Prop() readonly attribute: string = \"_likes\";\n\n /**\n * Whether or not this like button is disabled\n */\n @Prop() readonly disabled: boolean = false;\n\n /**\n * The feature this like button is for\n */\n @Prop() readonly feature: Feature | MapGeoJSONFeature;\n\n /**\n * The icon for the like button if the user has not liked the feature\n */\n @Prop() readonly iconNo: string = \"star-outline\";\n\n /**\n * The icon for the like button if the user\n */\n @Prop() readonly iconYes: string = \"star\";\n\n /**\n * The HTTP method this like button uses to communicate a like\n */\n @Prop() readonly method: \"GET\" | \"POST\" | \"PATCH\" | \"PUT\" | \"DELETE\" = \"POST\";\n\n /**\n * The cors mode this like button uses to communicate\n */\n @Prop() readonly requestMode: RequestMode;\n\n /**\n * The authentication token this like button uses when communicating\n */\n @Prop() readonly token: string;\n\n /**\n * The url to the endpoint which which the like button communicates.\n * Most likely this will be the end point of a features-api instance.\n */\n @Prop() readonly url: string;\n\n /**\n * An event emitted when the user presses the like button\n */\n @Event() glLike: EventEmitter<{\n success: boolean;\n feature: Feature | MapGeoJSONFeature;\n action: \"like\" | \"unlike\";\n client_id: string;\n }>;\n\n async componentWillLoad() {\n await this.setState();\n }\n\n @Watch(\"feature\")\n async setState() {\n if (this.feature != undefined) {\n this.count = this.feature.properties[this.attribute];\n if (this.likeCtrl == undefined) {\n this.likeCtrl = await findOrCreateOnReady(\"gl-like-controller\");\n }\n this.proxy = await this.likeCtrl.create(this.feature);\n this.liked = this.proxy.isLiked();\n }\n }\n\n private async toggle() {\n this.liked = !this.liked;\n this.count += this.liked ? 1 : -1;\n if (this.feature?.properties != undefined)\n this.feature.properties[this.attribute] = this.count;\n this.liked ? this.proxy.like() : this.proxy.unlike();\n\n // Fail silently if request fails.\n let success = false;\n let clientId = this.proxy.getClientId();\n try {\n if (this.restCtrl == undefined) {\n this.restCtrl = await findOrCreateOnReady(\"gl-rest-controller\");\n }\n await this.restCtrl.create(\n {\n type: \"Feature\",\n properties: {\n action: this.liked ? \"like\" : \"unlike\",\n feature_id: this.feature.id,\n client_id: clientId,\n },\n },\n {\n url: this.url,\n token: this.token,\n method: this.method,\n mode: this.requestMode,\n }\n );\n success = true;\n } catch (e) {}\n\n this.glLike.emit({\n success: success,\n feature: this.feature,\n action: this.liked ? \"like\" : \"unlike\",\n client_id: clientId,\n });\n }\n\n private likeClicked = () => {\n if (!this.disabled) this.toggle();\n };\n\n render() {\n return (\n <ion-button\n fill=\"clear\"\n onClick={this.likeClicked}\n disabled={this.disabled}\n >\n <ion-icon\n slot=\"start\"\n name={this.liked ? this.iconYes : this.iconNo}\n ></ion-icon>\n <span class=\"gl-like-button-count\">{this.count}</span>\n </ion-button>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"like-button.js","sourceRoot":"","sources":["../../../src/components/like-button/like-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,CAAC,EACD,SAAS,EACT,OAAO,EACP,KAAK,EAEL,IAAI,EACJ,KAAK,EACL,KAAK,EACN,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAM/C,MAAM,OAAO,UAAU;;IA2Hb,gBAAW,GAAG,GAAG,EAAE;MACzB,IAAI,CAAC,IAAI,CAAC,QAAQ;QAAE,IAAI,CAAC,MAAM,EAAE,CAAC;IACpC,CAAC,CAAC;iBA1HuB,CAAC;iBACA,KAAK;;;;qBASM,QAAQ;oBAKR,KAAK;;kBAUR,cAAc;mBAKb,MAAM;kBAK8B,MAAM;;;;;EA4B7E,KAAK,CAAC,iBAAiB;IACrB,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;EACxB,CAAC;EAGD,KAAK,CAAC,QAAQ;IACZ,IAAI,IAAI,CAAC,OAAO,IAAI,SAAS,EAAE;MAC7B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;MACrD,IAAI,IAAI,CAAC,QAAQ,IAAI,SAAS,EAAE;QAC9B,IAAI,CAAC,QAAQ,GAAG,MAAM,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;OACjE;MACD,IAAI,CAAC,KAAK,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,O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,IAAI,EAAE,IAAI,CAAC,WAAW;OACvB,CACF,CAAC;MACF,OAAO,GAAG,IAAI,CAAC;KAChB;IAAC,OAAO,CAAC,EAAE,GAAE;IAEd,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;MACf,OAAO,EAAE,OAAO;MAChB,OAAO,EAAE,IAAI,CAAC,OAAO;MACrB,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ;MACtC,SAAS,EAAE,QAAQ;KACpB,CAAC,CAAC;EACL,CAAC;EAMD,MAAM;IACJ,OAAO,CACL,kBACE,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ,gBACZ,aAAa;MAExB,gBACE,IAAI,EAAC,OAAO,EACZ,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,iBACjC,MAAM,GACR;MACZ,YAAM,KAAK,EAAC,sBAAsB,IAAE,IAAI,CAAC,KAAK,CAAQ,CAC3C,CACd,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n h,\n Component,\n Element,\n Event,\n EventEmitter,\n Prop,\n State,\n Watch\n} from \"@stencil/core\";\nimport { LikeProxy } from \"../like-controller/like-proxy\";\nimport { findOrCreateOnReady } from \"../utils\";\nimport { Feature } from \"geojson\";\nimport { MapGeoJSONFeature } from \"maplibre-gl\";\n@Component({\n tag: \"gl-like-button\"\n})\nexport class LikeButton {\n @Element() el: HTMLGlLikeButtonElement;\n\n @State() count: number = 0;\n @State() liked: boolean = false;\n @State() proxy: LikeProxy;\n\n @State() likeCtrl: HTMLGlLikeControllerElement;\n @State() restCtrl: HTMLGlRestControllerElement;\n\n /**\n * The attribute which stores the number of likes this feature has received\n */\n @Prop() readonly attribute: string = \"_likes\";\n\n /**\n * Whether or not this like button is disabled\n */\n @Prop() readonly disabled: boolean = false;\n\n /**\n * The feature this like button is for\n */\n @Prop() readonly feature: Feature | MapGeoJSONFeature;\n\n /**\n * The icon for the like button if the user has not liked the feature\n */\n @Prop() readonly iconNo: string = \"star-outline\";\n\n /**\n * The icon for the like button if the user\n */\n @Prop() readonly iconYes: string = \"star\";\n\n /**\n * The HTTP method this like button uses to communicate a like\n */\n @Prop() readonly method: \"GET\" | \"POST\" | \"PATCH\" | \"PUT\" | \"DELETE\" = \"POST\";\n\n /**\n * The cors mode this like button uses to communicate\n */\n @Prop() readonly requestMode: RequestMode;\n\n /**\n * The authentication token this like button uses when communicating\n */\n @Prop() readonly token: string;\n\n /**\n * The url to the endpoint which which the like button communicates.\n * Most likely this will be the end point of a features-api instance.\n */\n @Prop() readonly url: string;\n\n /**\n * An event emitted when the user presses the like button\n */\n @Event() glLike: EventEmitter<{\n success: boolean;\n feature: Feature | MapGeoJSONFeature;\n action: \"like\" | \"unlike\";\n client_id: string;\n }>;\n\n async componentWillLoad() {\n await this.setState();\n }\n\n @Watch(\"feature\")\n async setState() {\n if (this.feature != undefined) {\n this.count = this.feature.properties[this.attribute];\n if (this.likeCtrl == undefined) {\n this.likeCtrl = await findOrCreateOnReady(\"gl-like-controller\");\n }\n this.proxy = await this.likeCtrl.create(this.feature);\n this.liked = this.proxy.isLiked();\n }\n }\n\n private async toggle() {\n this.liked = !this.liked;\n this.count += this.liked ? 1 : -1;\n if (this.feature?.properties != undefined)\n this.feature.properties[this.attribute] = this.count;\n this.liked ? this.proxy.like() : this.proxy.unlike();\n\n // Fail silently if request fails.\n let success = false;\n let clientId = this.proxy.getClientId();\n try {\n if (this.restCtrl == undefined) {\n this.restCtrl = await findOrCreateOnReady(\"gl-rest-controller\");\n }\n await this.restCtrl.create(\n {\n type: \"Feature\",\n properties: {\n action: this.liked ? \"like\" : \"unlike\",\n feature_id: this.feature.id,\n client_id: clientId\n }\n },\n {\n url: this.url,\n token: this.token,\n method: this.method,\n mode: this.requestMode\n }\n );\n success = true;\n } catch (e) {}\n\n this.glLike.emit({\n success: success,\n feature: this.feature,\n action: this.liked ? \"like\" : \"unlike\",\n client_id: clientId\n });\n }\n\n private likeClicked = () => {\n if (!this.disabled) this.toggle();\n };\n\n render() {\n return (\n <ion-button\n fill=\"clear\"\n onClick={this.likeClicked}\n disabled={this.disabled}\n aria-label=\"Like Button\"\n >\n <ion-icon\n slot=\"start\"\n name={this.liked ? this.iconYes : this.iconNo}\n aria-hidden=\"true\"\n ></ion-icon>\n <span class=\"gl-like-button-count\">{this.count}</span>\n </ion-button>\n );\n }\n}\n"]}
@@ -33,12 +33,12 @@ export class Share {
33
33
  url: targetUrl,
34
34
  title: title,
35
35
  via: this.shareUser,
36
- hashtags: this.shareHashtags,
36
+ hashtags: this.shareHashtags
37
37
  });
38
38
  }
39
39
  else {
40
40
  url = this.constructShareUrl("https://www.facebook.com/sharer.php", {
41
- u: targetUrl,
41
+ u: targetUrl
42
42
  });
43
43
  }
44
44
  this.openUrl(url);
@@ -57,7 +57,7 @@ export class Share {
57
57
  return () => this.share(name.toLocaleLowerCase());
58
58
  }
59
59
  render() {
60
- let items = ["Facebook", "Twitter"].map((name) => (h("ion-item", { button: true, onClick: this.clickShare(name) }, h("ion-icon", { slot: "start", name: `logo-${name.toLowerCase()}` }), h("ion-label", null, name))));
60
+ let items = ["Facebook", "Twitter"].map((name) => (h("ion-item", { button: true, onClick: this.clickShare(name), "aria-label": "Share Button" }, h("ion-icon", { slot: "start", name: `logo-${name.toLowerCase()}`, "aria-hidden": "true" }), h("ion-label", null, name))));
61
61
  return (h("ion-list", null, h("ion-list-header", null, _t("webmapgl.share.title")), items));
62
62
  }
63
63
  static get is() { return "gl-share"; }
@@ -1 +1 @@
1
- {"version":3,"file":"share.js","sourceRoot":"","sources":["../../../src/components/share/share.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAKlC,MAAM,OAAO,KAAK;;uBAMuB,GAAG;sBAKJ,GAAG;;;;;;EAsBjC,iBAAiB,CAAC,IAAY,EAAE,MAAW;IACjD,IAAI,GAAG,GAAG,IAAI,CAAC;IACf,IAAI,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,IAAI,EAAE,CAAC;OAC/B,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,SAAS,CAAC;OACzC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,GAAG,IAAI,kBAAkB,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;OACzD,IAAI,CAAC,GAAG,CAAC,CAAC;IAEb,IAAI,EAAE,IAAI,IAAI;MAAE,GAAG,IAAI,IAAI,EAAE,EAAE,CAAC;IAChC,OAAO,GAAG,CAAC;EACb,CAAC;EAEO,KAAK,CAAC,QAAgB;IAC5B,IAAI,SAAS,GAAG,IAAI,CAAC,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;IAEtD,IAAI,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC;IAC5B,IAAI,KAAK,IAAI,SAAS,EAAE;MACtB,IAAI,GAAG,GAAG,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;MACpC,IAAI,GAAG,IAAI,SAAS;QAAE,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;KACzC;IAED,IAAI,GAAW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CACpB,CACZ,CAAC,CAAC;IACH,OAAO,CACL;MACE,2BAAkB,EAAE,CAAC,sBAAsB,CAAC,CAAmB;MAC9D,KAAK,CACG,CACZ,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { h, Component, Element, Prop } from \"@stencil/core\";\nimport { _t } from \"../i18n/i18n\";\n\n@Component({\n tag: \"gl-share\",\n})\nexport class Share {\n @Element() el: HTMLGlShareElement;\n\n /**\n * Height of the popup window in pixels.\n */\n @Prop() readonly popupHeight: number = 480;\n\n /**\n * Width of the popup window in pixels.\n */\n @Prop() readonly popupWidth: number = 640;\n\n /**\n * Title of the item being shared.\n */\n @Prop() readonly shareTitle: string;\n\n /**\n * User attribution. It is used for sharing on Twitter.\n */\n @Prop() readonly shareUser: string;\n\n /**\n * Hashtags for the post. It is used for sharing on Twitter.\n */\n @Prop() readonly shareHashtags: string;\n\n /**\n * URL to share. If a URL is not provided, the current page URL is used.\n */\n @Prop() readonly shareUrl: string;\n\n private constructShareUrl(base: string, params: any) {\n let url = base;\n let qs = Object.keys(params || {})\n .filter((key) => params[key] != undefined)\n .map((key) => `${key}=${encodeURIComponent(params[key])}`)\n .join(\"&\");\n\n if (qs != null) url += `?${qs}`;\n return url;\n }\n\n private share(platform: string) {\n let targetUrl = this.shareUrl || window.location.href;\n\n let title = this.shareTitle;\n if (title == undefined) {\n let app = this.el.closest(\"gl-app\");\n if (app != undefined) title = app.label;\n }\n\n let url: string;\n if (platform === \"twitter\") {\n url = this.constructShareUrl(\"https://twitter.com/intent/tweet\", {\n url: targetUrl,\n title: title,\n via: this.shareUser,\n hashtags: this.shareHashtags,\n });\n } else {\n url = this.constructShareUrl(\"https://www.facebook.com/sharer.php\", {\n u: targetUrl,\n });\n }\n\n this.openUrl(url);\n this.closePopover();\n }\n\n private openUrl(url: string) {\n window.open(\n url,\n \"gl-share\",\n `width=${this.popupWidth},height=${this.popupHeight},` +\n `resizable,scrollbars=yes`\n );\n }\n\n private closePopover() {\n let popover = this.el.closest(\"ion-popover\");\n if (popover != undefined) popover.dismiss();\n }\n\n private clickShare(name: string) {\n return () => this.share(name.toLocaleLowerCase());\n }\n\n render() {\n let items = [\"Facebook\", \"Twitter\"].map((name) => (\n <ion-item button onClick={this.clickShare(name)}>\n <ion-icon slot=\"start\" name={`logo-${name.toLowerCase()}`}></ion-icon>\n <ion-label>{name}</ion-label>\n </ion-item>\n ));\n return (\n <ion-list>\n <ion-list-header>{_t(\"webmapgl.share.title\")}</ion-list-header>\n {items}\n </ion-list>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"share.js","sourceRoot":"","sources":["../../../src/components/share/share.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAKlC,MAAM,OAAO,KAAK;;uBAMuB,GAAG;sBAKJ,GAAG;;;;;;EAsBjC,iBAAiB,CAAC,IAAY,EAAE,MAAW;IACjD,IAAI,GAAG,GAAG,IAAI,CAAC;IACf,IAAI,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,IAAI,EAAE,CAAC;OAC/B,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,SAAS,CAAC;OACzC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,GAAG,IAAI,kBAAkB,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;OACzD,IAAI,CAAC,GAAG,CAAC,CAAC;IAEb,IAAI,EAAE,IAAI,IAAI;MAAE,GAAG,IAAI,IAAI,EAAE,EAAE,CAAC;IAChC,OAAO,GAAG,CAAC;EACb,CAAC;EA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C,KAAK,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC,CAAC;EACpD,CAAC;EAED,MAAM;IACJ,IAAI,KAAK,GAAG,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAChD,gBACE,MAAM,QACN,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,gBACnB,cAAc;MAEzB,gBACE,IAAI,EAAC,OAAO,EACZ,IAAI,EAAE,QAAQ,IAAI,CAAC,WAAW,EAAE,EAAE,iBACtB,MAAM,GACR;MACZ,qBAAY,IAAI,CAAa,CACpB,CACZ,CAAC,CAAC;IACH,OAAO,CACL;MACE,2BAAkB,EAAE,CAAC,sBAAsB,CAAC,CAAmB;MAC9D,KAAK,CACG,CACZ,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { h, Component, Element, Prop } from \"@stencil/core\";\nimport { _t } from \"../i18n/i18n\";\n\n@Component({\n tag: \"gl-share\"\n})\nexport class Share {\n @Element() el: HTMLGlShareElement;\n\n /**\n * Height of the popup window in pixels.\n */\n @Prop() readonly popupHeight: number = 480;\n\n /**\n * Width of the popup window in pixels.\n */\n @Prop() readonly popupWidth: number = 640;\n\n /**\n * Title of the item being shared.\n */\n @Prop() readonly shareTitle: string;\n\n /**\n * User attribution. It is used for sharing on Twitter.\n */\n @Prop() readonly shareUser: string;\n\n /**\n * Hashtags for the post. It is used for sharing on Twitter.\n */\n @Prop() readonly shareHashtags: string;\n\n /**\n * URL to share. If a URL is not provided, the current page URL is used.\n */\n @Prop() readonly shareUrl: string;\n\n private constructShareUrl(base: string, params: any) {\n let url = base;\n let qs = Object.keys(params || {})\n .filter((key) => params[key] != undefined)\n .map((key) => `${key}=${encodeURIComponent(params[key])}`)\n .join(\"&\");\n\n if (qs != null) url += `?${qs}`;\n return url;\n }\n\n private share(platform: string) {\n let targetUrl = this.shareUrl || window.location.href;\n\n let title = this.shareTitle;\n if (title == undefined) {\n let app = this.el.closest(\"gl-app\");\n if (app != undefined) title = app.label;\n }\n\n let url: string;\n if (platform === \"twitter\") {\n url = this.constructShareUrl(\"https://twitter.com/intent/tweet\", {\n url: targetUrl,\n title: title,\n via: this.shareUser,\n hashtags: this.shareHashtags\n });\n } else {\n url = this.constructShareUrl(\"https://www.facebook.com/sharer.php\", {\n u: targetUrl\n });\n }\n\n this.openUrl(url);\n this.closePopover();\n }\n\n private openUrl(url: string) {\n window.open(\n url,\n \"gl-share\",\n `width=${this.popupWidth},height=${this.popupHeight},` +\n `resizable,scrollbars=yes`\n );\n }\n\n private closePopover() {\n let popover = this.el.closest(\"ion-popover\");\n if (popover != undefined) popover.dismiss();\n }\n\n private clickShare(name: string) {\n return () => this.share(name.toLocaleLowerCase());\n }\n\n render() {\n let items = [\"Facebook\", \"Twitter\"].map((name) => (\n <ion-item\n button\n onClick={this.clickShare(name)}\n aria-label=\"Share Button\"\n >\n <ion-icon\n slot=\"start\"\n name={`logo-${name.toLowerCase()}`}\n aria-hidden=\"true\"\n ></ion-icon>\n <ion-label>{name}</ion-label>\n </ion-item>\n ));\n return (\n <ion-list>\n <ion-list-header>{_t(\"webmapgl.share.title\")}</ion-list-header>\n {items}\n </ion-list>\n );\n }\n}\n"]}
@@ -9,14 +9,14 @@ export class ShareButton {
9
9
  async openPopover(ev) {
10
10
  const options = {
11
11
  component: document.createElement("gl-share"),
12
- ev: ev,
12
+ ev: ev
13
13
  };
14
14
  const popover = await popoverController.create(options);
15
15
  await popover.present();
16
16
  return popover;
17
17
  }
18
18
  render() {
19
- return (h("ion-button", { title: _t("webmapgl.share-button.title"), onClick: this.clickOpen }, h("ion-icon", { slot: "icon-only", name: this.icon })));
19
+ return (h("ion-button", { title: _t("webmapgl.share-button.title"), "aria-label": _t("webmapgl.share-button.title"), onClick: this.clickOpen }, h("ion-icon", { slot: "icon-only", name: this.icon, "aria-hidden": "true" })));
20
20
  }
21
21
  static get is() { return "gl-share-button"; }
22
22
  static get properties() {
@@ -1 +1 @@
1
- {"version":3,"file":"share-button.js","sourceRoot":"","sources":["../../../src/components/share-button/share-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAKlC,MAAM,OAAO,WAAW;;IAgBd,cAAS,GAAG,KAAK,EAAE,CAAU,EAAE,EAAE,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;gBAZpC,cAAc;;EAEtC,KAAK,CAAC,WAAW,CAAC,EAAW;IACnC,MAAM,OAAO,GAAG;MACd,SAAS,EAAE,QAAQ,CAAC,aAAa,CAAC,UAAU,CAAC;MAC7C,EAAE,EAAE,EAAE;KACP,CAAC;IACF,MAAM,OAAO,GAAG,MAAM,iBAAiB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACxD,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC;IACxB,OAAO,OAAO,CAAC;EACjB,CAAC;EAID,MAAM;IACJ,OAAO,CACL,kBACE,KAAK,EAAE,EAAE,CAAC,6BAA6B,CAAC,EACxC,OAAO,EAAE,IAAI,CAAC,SAAS;MAEvB,gBAAU,IAAI,EAAC,WAAW,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,GAAa,CAC5C,CACd,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { h, Component, Prop } from \"@stencil/core\";\nimport { popoverController } from \"@ionic/core\";\nimport { _t } from \"../i18n/i18n\";\n\n@Component({\n tag: \"gl-share-button\",\n})\nexport class ShareButton {\n /**\n * Icon from the Ionicons set used in the button.\n */\n @Prop() readonly icon: string = \"share-social\";\n\n private async openPopover(ev: UIEvent) {\n const options = {\n component: document.createElement(\"gl-share\"),\n ev: ev,\n };\n const popover = await popoverController.create(options);\n await popover.present();\n return popover;\n }\n\n private clickOpen = async (e: UIEvent) => await this.openPopover(e);\n\n render() {\n return (\n <ion-button\n title={_t(\"webmapgl.share-button.title\")}\n onClick={this.clickOpen}\n >\n <ion-icon slot=\"icon-only\" name={this.icon}></ion-icon>\n </ion-button>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"share-button.js","sourceRoot":"","sources":["../../../src/components/share-button/share-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAKlC,MAAM,OAAO,WAAW;;IAgBd,cAAS,GAAG,KAAK,EAAE,CAAU,EAAE,EAAE,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;gBAZpC,cAAc;;EAEtC,KAAK,CAAC,WAAW,CAAC,EAAW;IACnC,MAAM,OAAO,GAAG;MACd,SAAS,EAAE,QAAQ,CAAC,aAAa,CAAC,UAAU,CAAC;MAC7C,EAAE,EAAE,EAAE;KACP,CAAC;IACF,MAAM,OAAO,GAAG,MAAM,iBAAiB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACxD,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC;IACxB,OAAO,OAAO,CAAC;EACjB,CAAC;EAID,MAAM;IACJ,OAAO,CACL,kBACE,KAAK,EAAE,EAAE,CAAC,6BAA6B,CAAC,gBAC5B,EAAE,CAAC,6BAA6B,CAAC,EAC7C,OAAO,EAAE,IAAI,CAAC,SAAS;MAEvB,gBACE,IAAI,EAAC,WAAW,EAChB,IAAI,EAAE,IAAI,CAAC,IAAI,iBACH,MAAM,GACR,CACD,CACd,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { h, Component, Prop } from \"@stencil/core\";\nimport { popoverController } from \"@ionic/core\";\nimport { _t } from \"../i18n/i18n\";\n\n@Component({\n tag: \"gl-share-button\"\n})\nexport class ShareButton {\n /**\n * Icon from the Ionicons set used in the button.\n */\n @Prop() readonly icon: string = \"share-social\";\n\n private async openPopover(ev: UIEvent) {\n const options = {\n component: document.createElement(\"gl-share\"),\n ev: ev\n };\n const popover = await popoverController.create(options);\n await popover.present();\n return popover;\n }\n\n private clickOpen = async (e: UIEvent) => await this.openPopover(e);\n\n render() {\n return (\n <ion-button\n title={_t(\"webmapgl.share-button.title\")}\n aria-label={_t(\"webmapgl.share-button.title\")}\n onClick={this.clickOpen}\n >\n <ion-icon\n slot=\"icon-only\"\n name={this.icon}\n aria-hidden=\"true\"\n ></ion-icon>\n </ion-button>\n );\n }\n}\n"]}
@@ -27,7 +27,7 @@ export class StoryButton {
27
27
  last: story.step === story.steps - 1,
28
28
  next: story.step == undefined || story.step === story.steps - 1,
29
29
  previous: story.step == undefined || story.step === 0,
30
- exit: false,
30
+ exit: false
31
31
  }[this.action];
32
32
  }
33
33
  doAction() {
@@ -39,7 +39,7 @@ export class StoryButton {
39
39
  last: story.steps - 1,
40
40
  next: story.step + 1,
41
41
  previous: story.step - 1,
42
- exit: undefined,
42
+ exit: undefined
43
43
  }[this.action];
44
44
  }
45
45
  render() {
@@ -50,9 +50,9 @@ export class StoryButton {
50
50
  last: "play-skip-forward-outline",
51
51
  next: "play-forward-outline",
52
52
  previous: "play-back-outline",
53
- exit: "close-outline",
53
+ exit: "close-outline"
54
54
  }[this.action];
55
- return (h("ion-button", { onClick: this.clickAction, title: title, disabled: this.disabled }, h("ion-icon", { slot: "icon-only", name: icon })));
55
+ return (h("ion-button", { onClick: this.clickAction, title: title, disabled: this.disabled, "aria-label": title }, h("ion-icon", { slot: "icon-only", name: icon, "aria-hidden": "true" })));
56
56
  }
57
57
  static get is() { return "gl-story-button"; }
58
58
  static get properties() {
@@ -1 +1 @@
1
- {"version":3,"file":"story-button.js","sourceRoot":"","sources":["../../../src/components/story-button/story-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAKlC,MAAM,OAAO,WAAW;;IAiEd,gBAAW,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;;oBA/Df,KAAK;kBAMhC,MAAM;;;;;EAiBR,KAAK,CAAC,iBAAiB;IACrB,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC;EAC3B,CAAC;EAGD,KAAK,CAAC,WAAW;IACf,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,aAAa,CACjC,IAAI,CAAC,OAAO,IAAI,SAAS,CAAC,CAAC,CAAC,YAAY,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,UAAU,CACpE,CAAC;IACF,MAAM,IAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAC;IACpC,IAAI,CAAC,cAAc,EAAE,CAAC;EACxB,CAAC;EAGD,cAAc;IACZ,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;IACzB,IAAI,KAAK,IAAI,SAAS;MAAE,OAAO;IAE/B,IAAI,CAAC,QAAQ,GAAG;MACd,KAAK,EAAE,KAAK,CAAC,IAAI,KAAK,CAAC;MACvB,IAAI,EAAE,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,KAAK,GAAG,CAAC;MACpC,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,KAAK,GAAG,CAAC;MAC/D,QAAQ,EAAE,KAAK,CAAC,IAAI,IAAI,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC;MACrD,IAAI,EAAE,KAAK;KACZ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;EACjB,CAAC;EAEO,QAAQ;IACd,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;IACzB,IAAI,KAAK,IAAI,SAAS;MAAE,OAAO;IAE/B,KAAK,CAAC,IAAI,GAAG;MACX,KAAK,EAAE,CAAC;MACR,IAAI,EAAE,KAAK,CAAC,KAAK,GAAG,CAAC;MACrB,IAAI,EAAE,KAAK,CAAC,IAAI,GAAG,CAAC;MACpB,QAAQ,EAAE,KAAK,CAAC,IAAI,GAAG,CAAC;MACxB,IAAI,EAAE,SAAS;KAChB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;EACjB,CAAC;EAID,MAAM;IACJ,IAAI,KAAK,GAAG,EAAE,CAAC,yBAAyB,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IACvD,IAAI,IAAI,GACN,IAAI,CAAC,IAAI;MACT;QACE,KAAK,EAAE,wBAAwB;QAC/B,IAAI,EAAE,2BAA2B;QACjC,IAAI,EAAE,sBAAsB;QAC5B,QAAQ,EAAE,mBAAmB;QAC7B,IAAI,EAAE,eAAe;OACtB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAEjB,OAAO,CACL,kBACE,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,IAAI,CAAC,QAAQ;MAEvB,gBAAU,IAAI,EAAC,WAAW,EAAC,IAAI,EAAE,IAAI,GAAa,CACvC,CACd,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { h, Component, Listen, Prop, State, Watch } from \"@stencil/core\";\nimport { _t } from \"../i18n/i18n\";\n\n@Component({\n tag: \"gl-story-button\",\n})\nexport class StoryButton {\n @State() story: HTMLGlStoryElement;\n @State() disabled: boolean = false;\n\n /**\n * Where in the story this button will take you\n */\n @Prop() readonly action: \"first\" | \"last\" | \"next\" | \"previous\" | \"close\" =\n \"next\";\n\n /**\n * The icon for the button\n */\n @Prop() readonly icon: string;\n\n /**\n * An alternative name for this button\n */\n @Prop() readonly label: string;\n\n /**\n * The id of the story which this button acts upon\n */\n @Prop() readonly storyId: string;\n\n async componentWillLoad() {\n await this.updateStory();\n }\n\n @Watch(\"storyId\")\n async updateStory() {\n this.story = document.querySelector(\n this.storyId != undefined ? `gl-story#${this.storyId}` : \"gl-story\"\n );\n await this.story.componentOnReady();\n this.updateDisabled();\n }\n\n @Listen(\"glStoryChange\", { target: \"body\" })\n updateDisabled() {\n const story = this.story;\n if (story == undefined) return;\n\n this.disabled = {\n first: story.step === 0,\n last: story.step === story.steps - 1,\n next: story.step == undefined || story.step === story.steps - 1,\n previous: story.step == undefined || story.step === 0,\n exit: false,\n }[this.action];\n }\n\n private doAction() {\n const story = this.story;\n if (story == undefined) return;\n\n story.step = {\n first: 0,\n last: story.steps - 1,\n next: story.step + 1,\n previous: story.step - 1,\n exit: undefined,\n }[this.action];\n }\n\n private clickAction = () => this.doAction();\n\n render() {\n let title = _t(`webmapgl.story-button.${this.action}`);\n let icon =\n this.icon ||\n {\n first: \"play-skip-back-outline\",\n last: \"play-skip-forward-outline\",\n next: \"play-forward-outline\",\n previous: \"play-back-outline\",\n exit: \"close-outline\",\n }[this.action];\n\n return (\n <ion-button\n onClick={this.clickAction}\n title={title}\n disabled={this.disabled}\n >\n <ion-icon slot=\"icon-only\" name={icon}></ion-icon>\n </ion-button>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"story-button.js","sourceRoot":"","sources":["../../../src/components/story-button/story-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,E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,IAAI,EAAE,KAAK,CAAC,KAAK,GAAG,CAAC;MACrB,IAAI,EAAE,KAAK,CAAC,IAAI,GAAG,CAAC;MACpB,QAAQ,EAAE,KAAK,CAAC,IAAI,GAAG,CAAC;MACxB,IAAI,EAAE,SAAS;KAChB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;EACjB,CAAC;EAID,MAAM;IACJ,IAAI,KAAK,GAAG,EAAE,CAAC,yBAAyB,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IACvD,IAAI,IAAI,GACN,IAAI,CAAC,IAAI;MACT;QACE,KAAK,EAAE,wBAAwB;QAC/B,IAAI,EAAE,2BAA2B;QACjC,IAAI,EAAE,sBAAsB;QAC5B,QAAQ,EAAE,mBAAmB;QAC7B,IAAI,EAAE,eAAe;OACtB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAEjB,OAAO,CACL,kBACE,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,IAAI,CAAC,QAAQ,gBACX,KAAK;MAEjB,gBAAU,IAAI,EAAC,WAAW,EAAC,IAAI,EAAE,IAAI,iBAAc,MAAM,GAAY,CAC1D,CACd,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { h, Component, Listen, Prop, State, Watch } from \"@stencil/core\";\nimport { _t } from \"../i18n/i18n\";\n\n@Component({\n tag: \"gl-story-button\"\n})\nexport class StoryButton {\n @State() story: HTMLGlStoryElement;\n @State() disabled: boolean = false;\n\n /**\n * Where in the story this button will take you\n */\n @Prop() readonly action: \"first\" | \"last\" | \"next\" | \"previous\" | \"close\" =\n \"next\";\n\n /**\n * The icon for the button\n */\n @Prop() readonly icon: string;\n\n /**\n * An alternative name for this button\n */\n @Prop() readonly label: string;\n\n /**\n * The id of the story which this button acts upon\n */\n @Prop() readonly storyId: string;\n\n async componentWillLoad() {\n await this.updateStory();\n }\n\n @Watch(\"storyId\")\n async updateStory() {\n this.story = document.querySelector(\n this.storyId != undefined ? `gl-story#${this.storyId}` : \"gl-story\"\n );\n await this.story.componentOnReady();\n this.updateDisabled();\n }\n\n @Listen(\"glStoryChange\", { target: \"body\" })\n updateDisabled() {\n const story = this.story;\n if (story == undefined) return;\n\n this.disabled = {\n first: story.step === 0,\n last: story.step === story.steps - 1,\n next: story.step == undefined || story.step === story.steps - 1,\n previous: story.step == undefined || story.step === 0,\n exit: false\n }[this.action];\n }\n\n private doAction() {\n const story = this.story;\n if (story == undefined) return;\n\n story.step = {\n first: 0,\n last: story.steps - 1,\n next: story.step + 1,\n previous: story.step - 1,\n exit: undefined\n }[this.action];\n }\n\n private clickAction = () => this.doAction();\n\n render() {\n let title = _t(`webmapgl.story-button.${this.action}`);\n let icon =\n this.icon ||\n {\n first: \"play-skip-back-outline\",\n last: \"play-skip-forward-outline\",\n next: \"play-forward-outline\",\n previous: \"play-back-outline\",\n exit: \"close-outline\"\n }[this.action];\n\n return (\n <ion-button\n onClick={this.clickAction}\n title={title}\n disabled={this.disabled}\n aria-label={title}\n >\n <ion-icon slot=\"icon-only\" name={icon} aria-hidden=\"true\"></ion-icon>\n </ion-button>\n );\n }\n}\n"]}
@@ -314,7 +314,7 @@ export class Style {
314
314
  "references": {
315
315
  "styleEvent": {
316
316
  "location": "local",
317
- "path": "/var/home/fj44404@co.champaign.il.us/.local/code/webmapgl/src/components/style/style.tsx",
317
+ "path": "/run/host/var/home/fj44404@co.champaign.il.us/.local/code/webmapgl/src/components/style/style.tsx",
318
318
  "id": "src/components/style/style.tsx::styleEvent"
319
319
  }
320
320
  }
@@ -335,7 +335,7 @@ export class Style {
335
335
  "references": {
336
336
  "styleEvent": {
337
337
  "location": "local",
338
- "path": "/var/home/fj44404@co.champaign.il.us/.local/code/webmapgl/src/components/style/style.tsx",
338
+ "path": "/run/host/var/home/fj44404@co.champaign.il.us/.local/code/webmapgl/src/components/style/style.tsx",
339
339
  "id": "src/components/style/style.tsx::styleEvent"
340
340
  }
341
341
  }
@@ -356,7 +356,7 @@ export class Style {
356
356
  "references": {
357
357
  "styleEvent": {
358
358
  "location": "local",
359
- "path": "/var/home/fj44404@co.champaign.il.us/.local/code/webmapgl/src/components/style/style.tsx",
359
+ "path": "/run/host/var/home/fj44404@co.champaign.il.us/.local/code/webmapgl/src/components/style/style.tsx",
360
360
  "id": "src/components/style/style.tsx::styleEvent"
361
361
  }
362
362
  }
@@ -15,7 +15,7 @@ export class TableColumnVisibility {
15
15
  return Array.from(document.querySelectorAll(selector)).map((column) => (h("gl-table-column-visibility-toggle", { column: column, enabled: column.visible })));
16
16
  }
17
17
  render() {
18
- return (h(Host, null, h("ion-header", null, h("ion-toolbar", null, h("ion-title", null, this.label), h("ion-buttons", { slot: "end" }, h("ion-button", { title: _t("webmapgl.table-column-visibility.close"), onClick: this.closeClick }, h("ion-icon", { slot: "icon-only", name: "close" }))))), h("ion-content", null, h("ion-list", null, this.createToggles()))));
18
+ return (h(Host, null, h("ion-header", null, h("ion-toolbar", null, h("ion-title", null, this.label), h("ion-buttons", { slot: "end" }, h("ion-button", { title: _t("webmapgl.table-column-visibility.close"), "aria-label": _t("webmapgl.table-column-visibility.close"), onClick: this.closeClick }, h("ion-icon", { slot: "icon-only", name: "close", "aria-hidden": "true" }))))), h("ion-content", null, h("ion-list", null, this.createToggles()))));
19
19
  }
20
20
  static get is() { return "gl-table-column-visibility"; }
21
21
  static get properties() {
@@ -1 +1 @@
1
- {"version":3,"file":"table-column-visibility.js","sourceRoot":"","sources":["../../../src/components/table-column-visibility/table-column-visibility.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAKlC,MAAM,OAAO,qBAAqB;;IA8BxB,eAAU,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC;iBAxBd,EAAE,CAAC,wCAAwC,CAAC;;;EAOrE,YAAY;IAClB,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,OAAO,EAAE,CAAC;EACzC,CAAC;EAEO,aAAa;IACnB,IAAI,EAAE,GAAG,IAAI,CAAC,OAAO,IAAI,SAAS,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAC7D,IAAI,QAAQ,GAAG,WAAW,EAAE,kBAAkB,CAAC;IAC/C,OAAO,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,CACxD,CAAC,MAAgC,EAAE,EAAE,CAAC,CACpC,yCACE,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,CAAC,OAAO,GACY,CACtC,CACF,CAAC;EACJ,CAAC;EAID,MAAM;IACJ,OAAO,CACL,EAAC,IAAI;MACH;QACE;UACE,qBAAY,IAAI,CAAC,KAAK,CAAa;UACnC,mBAAa,IAAI,EAAC,KAAK;YACrB,kBACE,KAAK,EAAE,EAAE,CAAC,wCAAwC,CAAC,EACnD,OAAO,EAAE,IAAI,CAAC,UAAU;cAExB,gBAAU,IAAI,EAAC,WAAW,EAAC,IAAI,EAAC,OAAO,GAAG,CAC/B,CACD,CACF,CACH;MACb;QACE,oBAAW,IAAI,CAAC,aAAa,EAAE,CAAY,CAC/B,CACT,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { h, Component, Element, Prop, Host } from \"@stencil/core\";\nimport { _t } from \"../i18n/i18n\";\n\n@Component({\n tag: \"gl-table-column-visibility\",\n})\nexport class TableColumnVisibility {\n @Element() el: HTMLGlTableColumnVisibilityElement;\n\n /**\n * The title of the column.\n */\n @Prop() readonly label: string = _t(\"webmapgl.table-column-visibility.label\");\n\n /**\n * The id of the table this column is a part of.\n */\n @Prop() readonly tableId: string;\n\n private closePopover() {\n this.el.closest(\"ion-modal\").dismiss();\n }\n\n private createToggles() {\n let id = this.tableId != undefined ? `#${this.tableId}` : \"\";\n let selector = `gl-table${id} gl-table-column`;\n return Array.from(document.querySelectorAll(selector)).map(\n (column: HTMLGlTableColumnElement) => (\n <gl-table-column-visibility-toggle\n column={column}\n enabled={column.visible}\n ></gl-table-column-visibility-toggle>\n )\n );\n }\n\n private closeClick = () => this.closePopover();\n\n render() {\n return (\n <Host>\n <ion-header>\n <ion-toolbar>\n <ion-title>{this.label}</ion-title>\n <ion-buttons slot=\"end\">\n <ion-button\n title={_t(\"webmapgl.table-column-visibility.close\")}\n onClick={this.closeClick}\n >\n <ion-icon slot=\"icon-only\" name=\"close\" />\n </ion-button>\n </ion-buttons>\n </ion-toolbar>\n </ion-header>\n <ion-content>\n <ion-list>{this.createToggles()}</ion-list>\n </ion-content>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"table-column-visibility.js","sourceRoot":"","sources":["../../../src/components/table-column-visibility/table-column-visibility.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAKlC,MAAM,OAAO,qBAAqB;;IA8BxB,eAAU,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC;iBAxBd,EAAE,CAAC,wCAAwC,CAAC;;;EAOrE,YAAY;IAClB,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,OAAO,EAAE,CAAC;EACzC,CAAC;EAEO,aAAa;IACnB,IAAI,EAAE,GAAG,IAAI,CAAC,OAAO,IAAI,SAAS,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAC7D,IAAI,QAAQ,GAAG,WAAW,EAAE,kBAAkB,CAAC;IAC/C,OAAO,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,CACxD,CAAC,MAAgC,EAAE,EAAE,CAAC,CACpC,yCACE,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,CAAC,OAAO,GACY,CACtC,CACF,CAAC;EACJ,CAAC;EAID,MAAM;IACJ,OAAO,CACL,EAAC,IAAI;MACH;QACE;UACE,qBAAY,IAAI,CAAC,KAAK,CAAa;UACnC,mBAAa,IAAI,EAAC,KAAK;YACrB,kBACE,KAAK,EAAE,EAAE,CAAC,wCAAwC,CAAC,gBACvC,EAAE,CAAC,wCAAwC,CAAC,EACxD,OAAO,EAAE,IAAI,CAAC,UAAU;cAExB,gBAAU,IAAI,EAAC,WAAW,EAAC,IAAI,EAAC,OAAO,iBAAa,MAAM,GAAG,CAClD,CACD,CACF,CACH;MACb;QACE,oBAAW,IAAI,CAAC,aAAa,EAAE,CAAY,CAC/B,CACT,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { h, Component, Element, Prop, Host } from \"@stencil/core\";\nimport { _t } from \"../i18n/i18n\";\n\n@Component({\n tag: \"gl-table-column-visibility\"\n})\nexport class TableColumnVisibility {\n @Element() el: HTMLGlTableColumnVisibilityElement;\n\n /**\n * The title of the column.\n */\n @Prop() readonly label: string = _t(\"webmapgl.table-column-visibility.label\");\n\n /**\n * The id of the table this column is a part of.\n */\n @Prop() readonly tableId: string;\n\n private closePopover() {\n this.el.closest(\"ion-modal\").dismiss();\n }\n\n private createToggles() {\n let id = this.tableId != undefined ? `#${this.tableId}` : \"\";\n let selector = `gl-table${id} gl-table-column`;\n return Array.from(document.querySelectorAll(selector)).map(\n (column: HTMLGlTableColumnElement) => (\n <gl-table-column-visibility-toggle\n column={column}\n enabled={column.visible}\n ></gl-table-column-visibility-toggle>\n )\n );\n }\n\n private closeClick = () => this.closePopover();\n\n render() {\n return (\n <Host>\n <ion-header>\n <ion-toolbar>\n <ion-title>{this.label}</ion-title>\n <ion-buttons slot=\"end\">\n <ion-button\n title={_t(\"webmapgl.table-column-visibility.close\")}\n aria-label={_t(\"webmapgl.table-column-visibility.close\")}\n onClick={this.closeClick}\n >\n <ion-icon slot=\"icon-only\" name=\"close\" aria-hidden=\"true\" />\n </ion-button>\n </ion-buttons>\n </ion-toolbar>\n </ion-header>\n <ion-content>\n <ion-list>{this.createToggles()}</ion-list>\n </ion-content>\n </Host>\n );\n }\n}\n"]}
@@ -11,16 +11,16 @@ export class TableColumnVisibilityButton {
11
11
  const options = {
12
12
  component: document.createElement("gl-table-column-visibility"),
13
13
  componentOptions: {
14
- tableId: this.tableId,
14
+ tableId: this.tableId
15
15
  },
16
- event: ev,
16
+ event: ev
17
17
  };
18
18
  const modal = await modalController.create(options);
19
19
  await modal.present();
20
20
  return modal;
21
21
  }
22
22
  render() {
23
- return h("ion-button", { onClick: this.openClick }, this.label);
23
+ return (h("ion-button", { onClick: this.openClick, "aria-label": this.label }, this.label));
24
24
  }
25
25
  static get is() { return "gl-table-column-visibility-button"; }
26
26
  static get properties() {
@@ -1 +1 @@
1
- {"version":3,"file":"table-column-visibility-button.js","sourceRoot":"","sources":["../../../src/components/table-column-visibility-button/table-column-visibility-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAKlC,MAAM,OAAO,2BAA2B;;IAyB9B,cAAS,GAAG,CAAC,CAAU,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;iBApBrB,EAAE,CAAC,wCAAwC,CAAC;;;EAOrE,KAAK,CAAC,SAAS,CAAC,EAAW;IACjC,MAAM,OAAO,GAAG;MACd,SAAS,EAAE,QAAQ,CAAC,aAAa,CAAC,4BAA4B,CAAC;MAC/D,gBAAgB,EAAE;QAChB,OAAO,EAAE,IAAI,CAAC,OAAO;OACtB;MACD,KAAK,EAAE,EAAE;KACV,CAAC;IACF,MAAM,KAAK,GAAG,MAAM,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACpD,MAAM,KAAK,CAAC,OAAO,EAAE,CAAC;IACtB,OAAO,KAAK,CAAC;EACf,CAAC;EAID,MAAM;IACJ,OAAO,kBAAY,OAAO,EAAE,IAAI,CAAC,SAAS,IAAG,IAAI,CAAC,KAAK,CAAc,CAAC;EACxE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { h, Component, Prop } from \"@stencil/core\";\nimport { modalController } from \"@ionic/core\";\nimport { _t } from \"../i18n/i18n\";\n\n@Component({\n tag: \"gl-table-column-visibility-button\",\n})\nexport class TableColumnVisibilityButton {\n /**\n * A label for the button.\n * In english it defaults to 'Column Visibility'.\n */\n @Prop() readonly label: string = _t(\"webmapgl.table-column-visibility.label\");\n\n /**\n * An id for the table.\n */\n @Prop() readonly tableId: string;\n\n private async openModal(ev: UIEvent) {\n const options = {\n component: document.createElement(\"gl-table-column-visibility\"),\n componentOptions: {\n tableId: this.tableId,\n },\n event: ev,\n };\n const modal = await modalController.create(options);\n await modal.present();\n return modal;\n }\n\n private openClick = (e: UIEvent) => this.openModal(e);\n\n render() {\n return <ion-button onClick={this.openClick}>{this.label}</ion-button>;\n }\n}\n"]}
1
+ {"version":3,"file":"table-column-visibility-button.js","sourceRoot":"","sources":["../../../src/components/table-column-visibility-button/table-column-visibility-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAKlC,MAAM,OAAO,2BAA2B;;IAyB9B,cAAS,GAAG,CAAC,CAAU,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;iBApBrB,EAAE,CAAC,wCAAwC,CAAC;;;EAOrE,KAAK,CAAC,SAAS,CAAC,EAAW;IACjC,MAAM,OAAO,GAAG;MACd,SAAS,EAAE,QAAQ,CAAC,aAAa,CAAC,4BAA4B,CAAC;MAC/D,gBAAgB,EAAE;QAChB,OAAO,EAAE,IAAI,CAAC,OAAO;OACtB;MACD,KAAK,EAAE,EAAE;KACV,CAAC;IACF,MAAM,KAAK,GAAG,MAAM,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACpD,MAAM,KAAK,CAAC,OAAO,EAAE,CAAC;IACtB,OAAO,KAAK,CAAC;EACf,CAAC;EAID,MAAM;IACJ,OAAO,CACL,kBAAY,OAAO,EAAE,IAAI,CAAC,SAAS,gBAAc,IAAI,CAAC,KAAK,IACxD,IAAI,CAAC,KAAK,CACA,CACd,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { h, Component, Prop } from \"@stencil/core\";\nimport { modalController } from \"@ionic/core\";\nimport { _t } from \"../i18n/i18n\";\n\n@Component({\n tag: \"gl-table-column-visibility-button\"\n})\nexport class TableColumnVisibilityButton {\n /**\n * A label for the button.\n * In english it defaults to 'Column Visibility'.\n */\n @Prop() readonly label: string = _t(\"webmapgl.table-column-visibility.label\");\n\n /**\n * An id for the table.\n */\n @Prop() readonly tableId: string;\n\n private async openModal(ev: UIEvent) {\n const options = {\n component: document.createElement(\"gl-table-column-visibility\"),\n componentOptions: {\n tableId: this.tableId\n },\n event: ev\n };\n const modal = await modalController.create(options);\n await modal.present();\n return modal;\n }\n\n private openClick = (e: UIEvent) => this.openModal(e);\n\n render() {\n return (\n <ion-button onClick={this.openClick} aria-label={this.label}>\n {this.label}\n </ion-button>\n );\n }\n}\n"]}
@@ -21,7 +21,7 @@ export class TableExportButton {
21
21
  this.exportCtrl.create(this);
22
22
  }
23
23
  render() {
24
- return (h("ion-button", { "ion-button": true, onClick: this.buttonClicked }, this.customButton ? h("slot", null) : this.format.toUpperCase()));
24
+ return (h("ion-button", { onClick: this.buttonClicked, "aria-label": "Download File" }, this.customButton ? h("slot", null) : this.format.toUpperCase()));
25
25
  }
26
26
  static get is() { return "gl-table-export-button"; }
27
27
  static get properties() {
@@ -1 +1 @@
1
- {"version":3,"file":"table-export-button.js","sourceRoot":"","sources":["../../../src/components/table-export-button/table-export-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAK/C,MAAM,OAAO,iBAAiB;;IAyDpB,kBAAa,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC;;;kBA3CT,KAAK;;;;;;wBAgCL,KAAK;;;EAItC,KAAK,CAAC,YAAY;IACxB,IAAI,IAAI,CAAC,UAAU,IAAI,SAAS,EAAE;MAChC,IAAI,CAAC,UAAU,GAAG,MAAM,mBAAmB,CAAC,4BAA4B,CAAC,CAAC;KAC3E;IACD,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;EAC/B,CAAC;EAID,MAAM;IACJ,OAAO,CACL,sCAAuB,OAAO,EAAE,IAAI,CAAC,aAAa,IAC/C,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,eAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,CAC9C,CACd,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { h, Component, Prop, State } from \"@stencil/core\";\nimport { findOrCreateOnReady } from \"../utils\";\n\n@Component({\n tag: \"gl-table-export-button\",\n})\nexport class TableExportButton {\n /**\n * If this is for a pdf export, the author variable of the pdf document.\n */\n @Prop() readonly author?: string;\n\n /**\n * When the document is exported, what file name it should be saved as.\n */\n @Prop() readonly filename: string;\n\n /**\n * The format in which the document should be exported, either csv or pdf.\n */\n @Prop() readonly format: \"csv\" | \"pdf\" = \"csv\";\n\n /**\n * The orientation of the exported document\n */\n @Prop() readonly pageOrientation?: \"landscape\" | \"portrait\";\n\n /**\n * The subtitle of the document if the document is exported as a pdf\n */\n @Prop() readonly pageSubtitle?: string;\n\n /**\n * The title of the document if the document is exported as a pdf.\n */\n @Prop() readonly pageTitle?: string;\n\n /**\n * The id of the [table]{@link ../table} this export button is for.\n */\n @Prop() readonly tableId?: string;\n\n /**\n * If this value is defined the application will attempt to send the contents of the pdf in a POST request to the specified\n * url when the export button is clicked, in addition to presenting it to the user for download.\n */\n @Prop() readonly url?: string;\n\n /**\n * If true the JSX component for the table-export-button will expose a <slot /> for a custom button whereas otherwise it is this.format.toUpperCase()\n * aka CSV or PDF\n */\n @Prop() readonly customButton: boolean = false;\n\n @State() exportCtrl: HTMLGlTableExportControllerElement;\n\n private async clickHandler() {\n if (this.exportCtrl == undefined) {\n this.exportCtrl = await findOrCreateOnReady(\"gl-table-export-controller\");\n }\n this.exportCtrl.create(this);\n }\n\n private buttonClicked = () => this.clickHandler();\n\n render() {\n return (\n <ion-button ion-button onClick={this.buttonClicked}>\n {this.customButton ? <slot /> : this.format.toUpperCase()}\n </ion-button>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"table-export-button.js","sourceRoot":"","sources":["../../../src/components/table-export-button/table-export-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAK/C,MAAM,OAAO,iBAAiB;;IAyDpB,kBAAa,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC;;;kBA3CT,KAAK;;;;;;wBAgCL,KAAK;;;EAItC,KAAK,CAAC,YAAY;IACxB,IAAI,IAAI,CAAC,UAAU,IAAI,SAAS,EAAE;MAChC,IAAI,CAAC,UAAU,GAAG,MAAM,mBAAmB,CAAC,4BAA4B,CAAC,CAAC;KAC3E;IACD,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;EAC/B,CAAC;EAID,MAAM;IACJ,OAAO,CACL,kBAAY,OAAO,EAAE,IAAI,CAAC,aAAa,gBAAa,eAAe,IAChE,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,eAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,CAC9C,CACd,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { h, Component, Prop, State } from \"@stencil/core\";\nimport { findOrCreateOnReady } from \"../utils\";\n\n@Component({\n tag: \"gl-table-export-button\"\n})\nexport class TableExportButton {\n /**\n * If this is for a pdf export, the author variable of the pdf document.\n */\n @Prop() readonly author?: string;\n\n /**\n * When the document is exported, what file name it should be saved as.\n */\n @Prop() readonly filename: string;\n\n /**\n * The format in which the document should be exported, either csv or pdf.\n */\n @Prop() readonly format: \"csv\" | \"pdf\" = \"csv\";\n\n /**\n * The orientation of the exported document\n */\n @Prop() readonly pageOrientation?: \"landscape\" | \"portrait\";\n\n /**\n * The subtitle of the document if the document is exported as a pdf\n */\n @Prop() readonly pageSubtitle?: string;\n\n /**\n * The title of the document if the document is exported as a pdf.\n */\n @Prop() readonly pageTitle?: string;\n\n /**\n * The id of the [table]{@link ../table} this export button is for.\n */\n @Prop() readonly tableId?: string;\n\n /**\n * If this value is defined the application will attempt to send the contents of the pdf in a POST request to the specified\n * url when the export button is clicked, in addition to presenting it to the user for download.\n */\n @Prop() readonly url?: string;\n\n /**\n * If true the JSX component for the table-export-button will expose a <slot /> for a custom button whereas otherwise it is this.format.toUpperCase()\n * aka CSV or PDF\n */\n @Prop() readonly customButton: boolean = false;\n\n @State() exportCtrl: HTMLGlTableExportControllerElement;\n\n private async clickHandler() {\n if (this.exportCtrl == undefined) {\n this.exportCtrl = await findOrCreateOnReady(\"gl-table-export-controller\");\n }\n this.exportCtrl.create(this);\n }\n\n private buttonClicked = () => this.clickHandler();\n\n render() {\n return (\n <ion-button onClick={this.buttonClicked} aria-label=\"Download File\">\n {this.customButton ? <slot /> : this.format.toUpperCase()}\n </ion-button>\n );\n }\n}\n"]}
@@ -1,3 +1,4 @@
1
1
  import "ionicons";
2
2
  import "@ionic/core";
3
+ export default function () { }
3
4
  //# sourceMappingURL=webmapgl.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"webmapgl.js","sourceRoot":"","sources":["../../src/global/webmapgl.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,CAAC;AAClB,OAAO,aAAa,CAAC","sourcesContent":["import \"ionicons\";\nimport \"@ionic/core\";\n"]}
1
+ {"version":3,"file":"webmapgl.js","sourceRoot":"","sources":["../../src/global/webmapgl.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,CAAC;AAClB,OAAO,aAAa,CAAC;AAErB,MAAM,CAAC,OAAO,eAAc,CAAC","sourcesContent":["import \"ionicons\";\nimport \"@ionic/core\";\n\nexport default function () {}\n"]}
@@ -0,0 +1,2 @@
1
+ export { fetchPdf, findOrCreateOnReady, getMap, getAbsoluteUrl } from "./components/utils";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,mBAAmB,EACnB,MAAM,EACN,cAAc,EACf,MAAM,oBAAoB,CAAC","sourcesContent":["export {\n fetchPdf,\n findOrCreateOnReady,\n getMap,\n getAbsoluteUrl\n} from \"./components/utils\";\n"]}
@@ -1 +1 @@
1
- {"file":"app-globals-755c21e9.js","mappings":";;AAEY,MAAC,aAAa,GAAG,MAAM;AAEnC,EAAEA,UAAqB,EAAE,CAAC;AAC1B;;;;","names":["ionicCoreGlobalScript"],"sources":["@stencil/core/internal/app-globals"],"sourcesContent":["import ionicCoreGlobalScript from '/var/home/fj44404@co.champaign.il.us/.local/code/webmapgl/node_modules/@ionic/core/dist/collection/global/ionic-global.js';\nimport webmapglGlobalScript from '/var/home/fj44404@co.champaign.il.us/.local/code/webmapgl/src/global/webmapgl.ts';\nexport const globalScripts = () => {\n webmapglGlobalScript();\n ionicCoreGlobalScript();\n};\n"],"version":3}
1
+ {"file":"app-globals-755c21e9.js","mappings":";;AAEY,MAAC,aAAa,GAAG,MAAM;AAEnC,EAAEA,UAAqB,EAAE,CAAC;AAC1B;;;;","names":["ionicCoreGlobalScript"],"sources":["@stencil/core/internal/app-globals"],"sourcesContent":["import ionicCoreGlobalScript from '/run/host/var/home/fj44404@co.champaign.il.us/.local/code/webmapgl/node_modules/@ionic/core/dist/collection/global/ionic-global.js';\nimport webmapglGlobalScript from '/run/host/var/home/fj44404@co.champaign.il.us/.local/code/webmapgl/src/global/webmapgl.ts';\nexport const globalScripts = () => {\n webmapglGlobalScript();\n ionicCoreGlobalScript();\n};\n"],"version":3}