@geoscene/common-components 5.0.19

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 (427) hide show
  1. package/LICENSE.md +18 -0
  2. package/README.md +3 -0
  3. package/dist/cdn/27FRM3HV.js +2 -0
  4. package/dist/cdn/2D2NKM3O.js +2 -0
  5. package/dist/cdn/2FQUZGYJ.js +2 -0
  6. package/dist/cdn/2S7JKSJD.js +2 -0
  7. package/dist/cdn/3WYIVRKX.js +2 -0
  8. package/dist/cdn/4GB75ZTF.js +2 -0
  9. package/dist/cdn/72K7GT6K.js +2 -0
  10. package/dist/cdn/AN7IRFRK.js +2 -0
  11. package/dist/cdn/ASOUKSL6.js +2 -0
  12. package/dist/cdn/BSDNFTJO.js +2 -0
  13. package/dist/cdn/E4XZNNVC.js +4 -0
  14. package/dist/cdn/GZUZQYY5.js +2 -0
  15. package/dist/cdn/H2BVMF74.js +8208 -0
  16. package/dist/cdn/HP5Y5YVC.js +2 -0
  17. package/dist/cdn/N7DIUMSU.js +2 -0
  18. package/dist/cdn/POFRTJBW.js +2 -0
  19. package/dist/cdn/RZ3OAEZR.js +2 -0
  20. package/dist/cdn/RZ3WI4EA.js +2 -0
  21. package/dist/cdn/SNHG3XBB.js +2 -0
  22. package/dist/cdn/VTZTPXBM.js +2 -0
  23. package/dist/cdn/XB5G476Y.js +2 -0
  24. package/dist/cdn/XTTF5WK3.js +2 -0
  25. package/dist/cdn/Y2JNAEHH.js +2 -0
  26. package/dist/cdn/YAJOLKIL.js +2 -0
  27. package/dist/cdn/YOSOOJIA.js +2 -0
  28. package/dist/cdn/assets/ckeditor5/translations/af.js +112 -0
  29. package/dist/cdn/assets/ckeditor5/translations/ar.js +321 -0
  30. package/dist/cdn/assets/ckeditor5/translations/ast.js +171 -0
  31. package/dist/cdn/assets/ckeditor5/translations/az.js +292 -0
  32. package/dist/cdn/assets/ckeditor5/translations/bg.js +319 -0
  33. package/dist/cdn/assets/ckeditor5/translations/bn.js +314 -0
  34. package/dist/cdn/assets/ckeditor5/translations/bs.js +163 -0
  35. package/dist/cdn/assets/ckeditor5/translations/ca.js +318 -0
  36. package/dist/cdn/assets/ckeditor5/translations/cs.js +314 -0
  37. package/dist/cdn/assets/ckeditor5/translations/da.js +314 -0
  38. package/dist/cdn/assets/ckeditor5/translations/de-ch.js +295 -0
  39. package/dist/cdn/assets/ckeditor5/translations/de.js +319 -0
  40. package/dist/cdn/assets/ckeditor5/translations/el.js +320 -0
  41. package/dist/cdn/assets/ckeditor5/translations/en-au.js +299 -0
  42. package/dist/cdn/assets/ckeditor5/translations/en-gb.js +279 -0
  43. package/dist/cdn/assets/ckeditor5/translations/eo.js +180 -0
  44. package/dist/cdn/assets/ckeditor5/translations/es-co.js +158 -0
  45. package/dist/cdn/assets/ckeditor5/translations/es.js +321 -0
  46. package/dist/cdn/assets/ckeditor5/translations/et.js +311 -0
  47. package/dist/cdn/assets/ckeditor5/translations/eu.js +181 -0
  48. package/dist/cdn/assets/ckeditor5/translations/fa.js +293 -0
  49. package/dist/cdn/assets/ckeditor5/translations/fi.js +316 -0
  50. package/dist/cdn/assets/ckeditor5/translations/fr.js +323 -0
  51. package/dist/cdn/assets/ckeditor5/translations/gl.js +300 -0
  52. package/dist/cdn/assets/ckeditor5/translations/gu.js +48 -0
  53. package/dist/cdn/assets/ckeditor5/translations/he.js +309 -0
  54. package/dist/cdn/assets/ckeditor5/translations/hi.js +315 -0
  55. package/dist/cdn/assets/ckeditor5/translations/hr.js +306 -0
  56. package/dist/cdn/assets/ckeditor5/translations/hu.js +318 -0
  57. package/dist/cdn/assets/ckeditor5/translations/hy.js +131 -0
  58. package/dist/cdn/assets/ckeditor5/translations/id.js +315 -0
  59. package/dist/cdn/assets/ckeditor5/translations/it.js +322 -0
  60. package/dist/cdn/assets/ckeditor5/translations/ja.js +319 -0
  61. package/dist/cdn/assets/ckeditor5/translations/jv.js +194 -0
  62. package/dist/cdn/assets/ckeditor5/translations/kk.js +14 -0
  63. package/dist/cdn/assets/ckeditor5/translations/km.js +187 -0
  64. package/dist/cdn/assets/ckeditor5/translations/kn.js +181 -0
  65. package/dist/cdn/assets/ckeditor5/translations/ko.js +309 -0
  66. package/dist/cdn/assets/ckeditor5/translations/ku.js +292 -0
  67. package/dist/cdn/assets/ckeditor5/translations/lt.js +325 -0
  68. package/dist/cdn/assets/ckeditor5/translations/lv.js +314 -0
  69. package/dist/cdn/assets/ckeditor5/translations/ms.js +314 -0
  70. package/dist/cdn/assets/ckeditor5/translations/nb.js +262 -0
  71. package/dist/cdn/assets/ckeditor5/translations/ne.js +279 -0
  72. package/dist/cdn/assets/ckeditor5/translations/nl.js +318 -0
  73. package/dist/cdn/assets/ckeditor5/translations/no.js +310 -0
  74. package/dist/cdn/assets/ckeditor5/translations/oc.js +47 -0
  75. package/dist/cdn/assets/ckeditor5/translations/pl.js +325 -0
  76. package/dist/cdn/assets/ckeditor5/translations/pt-br.js +317 -0
  77. package/dist/cdn/assets/ckeditor5/translations/pt.js +322 -0
  78. package/dist/cdn/assets/ckeditor5/translations/ro.js +321 -0
  79. package/dist/cdn/assets/ckeditor5/translations/ru.js +325 -0
  80. package/dist/cdn/assets/ckeditor5/translations/si.js +112 -0
  81. package/dist/cdn/assets/ckeditor5/translations/sk.js +316 -0
  82. package/dist/cdn/assets/ckeditor5/translations/sl.js +192 -0
  83. package/dist/cdn/assets/ckeditor5/translations/sq.js +292 -0
  84. package/dist/cdn/assets/ckeditor5/translations/sr-latn.js +299 -0
  85. package/dist/cdn/assets/ckeditor5/translations/sr.js +316 -0
  86. package/dist/cdn/assets/ckeditor5/translations/sv.js +315 -0
  87. package/dist/cdn/assets/ckeditor5/translations/th.js +311 -0
  88. package/dist/cdn/assets/ckeditor5/translations/tk.js +295 -0
  89. package/dist/cdn/assets/ckeditor5/translations/tr.js +318 -0
  90. package/dist/cdn/assets/ckeditor5/translations/tt.js +235 -0
  91. package/dist/cdn/assets/ckeditor5/translations/ug.js +279 -0
  92. package/dist/cdn/assets/ckeditor5/translations/uk.js +322 -0
  93. package/dist/cdn/assets/ckeditor5/translations/ur.js +297 -0
  94. package/dist/cdn/assets/ckeditor5/translations/uz.js +296 -0
  95. package/dist/cdn/assets/ckeditor5/translations/vi.js +316 -0
  96. package/dist/cdn/assets/ckeditor5/translations/zh-cn.js +308 -0
  97. package/dist/cdn/assets/ckeditor5/translations/zh.js +308 -0
  98. package/dist/cdn/assets/color-input/t9n/messages.ar.json +1 -0
  99. package/dist/cdn/assets/color-input/t9n/messages.bg.json +1 -0
  100. package/dist/cdn/assets/color-input/t9n/messages.bs.json +1 -0
  101. package/dist/cdn/assets/color-input/t9n/messages.ca.json +1 -0
  102. package/dist/cdn/assets/color-input/t9n/messages.cs.json +1 -0
  103. package/dist/cdn/assets/color-input/t9n/messages.da.json +1 -0
  104. package/dist/cdn/assets/color-input/t9n/messages.de.json +1 -0
  105. package/dist/cdn/assets/color-input/t9n/messages.el.json +1 -0
  106. package/dist/cdn/assets/color-input/t9n/messages.en.json +1 -0
  107. package/dist/cdn/assets/color-input/t9n/messages.es.json +1 -0
  108. package/dist/cdn/assets/color-input/t9n/messages.et.json +1 -0
  109. package/dist/cdn/assets/color-input/t9n/messages.fi.json +1 -0
  110. package/dist/cdn/assets/color-input/t9n/messages.fr.json +1 -0
  111. package/dist/cdn/assets/color-input/t9n/messages.he.json +1 -0
  112. package/dist/cdn/assets/color-input/t9n/messages.hr.json +1 -0
  113. package/dist/cdn/assets/color-input/t9n/messages.hu.json +1 -0
  114. package/dist/cdn/assets/color-input/t9n/messages.id.json +1 -0
  115. package/dist/cdn/assets/color-input/t9n/messages.it.json +1 -0
  116. package/dist/cdn/assets/color-input/t9n/messages.ja.json +1 -0
  117. package/dist/cdn/assets/color-input/t9n/messages.ko.json +1 -0
  118. package/dist/cdn/assets/color-input/t9n/messages.lt.json +1 -0
  119. package/dist/cdn/assets/color-input/t9n/messages.lv.json +1 -0
  120. package/dist/cdn/assets/color-input/t9n/messages.nl.json +1 -0
  121. package/dist/cdn/assets/color-input/t9n/messages.no.json +1 -0
  122. package/dist/cdn/assets/color-input/t9n/messages.pl.json +1 -0
  123. package/dist/cdn/assets/color-input/t9n/messages.pt-BR.json +1 -0
  124. package/dist/cdn/assets/color-input/t9n/messages.pt-PT.json +1 -0
  125. package/dist/cdn/assets/color-input/t9n/messages.ro.json +1 -0
  126. package/dist/cdn/assets/color-input/t9n/messages.ru.json +1 -0
  127. package/dist/cdn/assets/color-input/t9n/messages.sk.json +1 -0
  128. package/dist/cdn/assets/color-input/t9n/messages.sl.json +1 -0
  129. package/dist/cdn/assets/color-input/t9n/messages.sr.json +1 -0
  130. package/dist/cdn/assets/color-input/t9n/messages.sv.json +1 -0
  131. package/dist/cdn/assets/color-input/t9n/messages.th.json +1 -0
  132. package/dist/cdn/assets/color-input/t9n/messages.tr.json +1 -0
  133. package/dist/cdn/assets/color-input/t9n/messages.uk.json +1 -0
  134. package/dist/cdn/assets/color-input/t9n/messages.vi.json +1 -0
  135. package/dist/cdn/assets/color-input/t9n/messages.zh-CN.json +1 -0
  136. package/dist/cdn/assets/color-input/t9n/messages.zh-HK.json +1 -0
  137. package/dist/cdn/assets/color-input/t9n/messages.zh-TW.json +1 -0
  138. package/dist/cdn/assets/field-info/t9n/messages.ar.json +1 -0
  139. package/dist/cdn/assets/field-info/t9n/messages.bg.json +1 -0
  140. package/dist/cdn/assets/field-info/t9n/messages.bs.json +1 -0
  141. package/dist/cdn/assets/field-info/t9n/messages.ca.json +1 -0
  142. package/dist/cdn/assets/field-info/t9n/messages.cs.json +1 -0
  143. package/dist/cdn/assets/field-info/t9n/messages.da.json +1 -0
  144. package/dist/cdn/assets/field-info/t9n/messages.de.json +1 -0
  145. package/dist/cdn/assets/field-info/t9n/messages.el.json +1 -0
  146. package/dist/cdn/assets/field-info/t9n/messages.en.json +1 -0
  147. package/dist/cdn/assets/field-info/t9n/messages.es.json +1 -0
  148. package/dist/cdn/assets/field-info/t9n/messages.et.json +1 -0
  149. package/dist/cdn/assets/field-info/t9n/messages.fi.json +1 -0
  150. package/dist/cdn/assets/field-info/t9n/messages.fr.json +1 -0
  151. package/dist/cdn/assets/field-info/t9n/messages.he.json +1 -0
  152. package/dist/cdn/assets/field-info/t9n/messages.hr.json +1 -0
  153. package/dist/cdn/assets/field-info/t9n/messages.hu.json +1 -0
  154. package/dist/cdn/assets/field-info/t9n/messages.id.json +1 -0
  155. package/dist/cdn/assets/field-info/t9n/messages.it.json +1 -0
  156. package/dist/cdn/assets/field-info/t9n/messages.ja.json +1 -0
  157. package/dist/cdn/assets/field-info/t9n/messages.ko.json +1 -0
  158. package/dist/cdn/assets/field-info/t9n/messages.lt.json +1 -0
  159. package/dist/cdn/assets/field-info/t9n/messages.lv.json +1 -0
  160. package/dist/cdn/assets/field-info/t9n/messages.nl.json +1 -0
  161. package/dist/cdn/assets/field-info/t9n/messages.no.json +1 -0
  162. package/dist/cdn/assets/field-info/t9n/messages.pl.json +1 -0
  163. package/dist/cdn/assets/field-info/t9n/messages.pt-BR.json +1 -0
  164. package/dist/cdn/assets/field-info/t9n/messages.pt-PT.json +1 -0
  165. package/dist/cdn/assets/field-info/t9n/messages.ro.json +1 -0
  166. package/dist/cdn/assets/field-info/t9n/messages.ru.json +1 -0
  167. package/dist/cdn/assets/field-info/t9n/messages.sk.json +1 -0
  168. package/dist/cdn/assets/field-info/t9n/messages.sl.json +1 -0
  169. package/dist/cdn/assets/field-info/t9n/messages.sr.json +1 -0
  170. package/dist/cdn/assets/field-info/t9n/messages.sv.json +1 -0
  171. package/dist/cdn/assets/field-info/t9n/messages.th.json +1 -0
  172. package/dist/cdn/assets/field-info/t9n/messages.tr.json +1 -0
  173. package/dist/cdn/assets/field-info/t9n/messages.uk.json +1 -0
  174. package/dist/cdn/assets/field-info/t9n/messages.vi.json +1 -0
  175. package/dist/cdn/assets/field-info/t9n/messages.zh-CN.json +1 -0
  176. package/dist/cdn/assets/field-info/t9n/messages.zh-HK.json +1 -0
  177. package/dist/cdn/assets/field-info/t9n/messages.zh-TW.json +1 -0
  178. package/dist/cdn/assets/field-pick-list/t9n/messages.ar.json +1 -0
  179. package/dist/cdn/assets/field-pick-list/t9n/messages.bg.json +1 -0
  180. package/dist/cdn/assets/field-pick-list/t9n/messages.bs.json +1 -0
  181. package/dist/cdn/assets/field-pick-list/t9n/messages.ca.json +1 -0
  182. package/dist/cdn/assets/field-pick-list/t9n/messages.cs.json +1 -0
  183. package/dist/cdn/assets/field-pick-list/t9n/messages.da.json +1 -0
  184. package/dist/cdn/assets/field-pick-list/t9n/messages.de.json +1 -0
  185. package/dist/cdn/assets/field-pick-list/t9n/messages.el.json +1 -0
  186. package/dist/cdn/assets/field-pick-list/t9n/messages.en.json +1 -0
  187. package/dist/cdn/assets/field-pick-list/t9n/messages.es.json +1 -0
  188. package/dist/cdn/assets/field-pick-list/t9n/messages.et.json +1 -0
  189. package/dist/cdn/assets/field-pick-list/t9n/messages.fi.json +1 -0
  190. package/dist/cdn/assets/field-pick-list/t9n/messages.fr.json +1 -0
  191. package/dist/cdn/assets/field-pick-list/t9n/messages.he.json +1 -0
  192. package/dist/cdn/assets/field-pick-list/t9n/messages.hr.json +1 -0
  193. package/dist/cdn/assets/field-pick-list/t9n/messages.hu.json +1 -0
  194. package/dist/cdn/assets/field-pick-list/t9n/messages.id.json +1 -0
  195. package/dist/cdn/assets/field-pick-list/t9n/messages.it.json +1 -0
  196. package/dist/cdn/assets/field-pick-list/t9n/messages.ja.json +1 -0
  197. package/dist/cdn/assets/field-pick-list/t9n/messages.ko.json +1 -0
  198. package/dist/cdn/assets/field-pick-list/t9n/messages.lt.json +1 -0
  199. package/dist/cdn/assets/field-pick-list/t9n/messages.lv.json +1 -0
  200. package/dist/cdn/assets/field-pick-list/t9n/messages.nl.json +1 -0
  201. package/dist/cdn/assets/field-pick-list/t9n/messages.no.json +1 -0
  202. package/dist/cdn/assets/field-pick-list/t9n/messages.pl.json +1 -0
  203. package/dist/cdn/assets/field-pick-list/t9n/messages.pt-BR.json +1 -0
  204. package/dist/cdn/assets/field-pick-list/t9n/messages.pt-PT.json +1 -0
  205. package/dist/cdn/assets/field-pick-list/t9n/messages.ro.json +1 -0
  206. package/dist/cdn/assets/field-pick-list/t9n/messages.ru.json +1 -0
  207. package/dist/cdn/assets/field-pick-list/t9n/messages.sk.json +1 -0
  208. package/dist/cdn/assets/field-pick-list/t9n/messages.sl.json +1 -0
  209. package/dist/cdn/assets/field-pick-list/t9n/messages.sr.json +1 -0
  210. package/dist/cdn/assets/field-pick-list/t9n/messages.sv.json +1 -0
  211. package/dist/cdn/assets/field-pick-list/t9n/messages.th.json +1 -0
  212. package/dist/cdn/assets/field-pick-list/t9n/messages.tr.json +1 -0
  213. package/dist/cdn/assets/field-pick-list/t9n/messages.uk.json +1 -0
  214. package/dist/cdn/assets/field-pick-list/t9n/messages.vi.json +1 -0
  215. package/dist/cdn/assets/field-pick-list/t9n/messages.zh-CN.json +1 -0
  216. package/dist/cdn/assets/field-pick-list/t9n/messages.zh-HK.json +1 -0
  217. package/dist/cdn/assets/field-pick-list/t9n/messages.zh-TW.json +1 -0
  218. package/dist/cdn/assets/histogram/t9n/messages.ar.json +1 -0
  219. package/dist/cdn/assets/histogram/t9n/messages.bg.json +1 -0
  220. package/dist/cdn/assets/histogram/t9n/messages.bs.json +1 -0
  221. package/dist/cdn/assets/histogram/t9n/messages.ca.json +1 -0
  222. package/dist/cdn/assets/histogram/t9n/messages.cs.json +1 -0
  223. package/dist/cdn/assets/histogram/t9n/messages.da.json +1 -0
  224. package/dist/cdn/assets/histogram/t9n/messages.de.json +1 -0
  225. package/dist/cdn/assets/histogram/t9n/messages.el.json +1 -0
  226. package/dist/cdn/assets/histogram/t9n/messages.en.json +1 -0
  227. package/dist/cdn/assets/histogram/t9n/messages.es.json +1 -0
  228. package/dist/cdn/assets/histogram/t9n/messages.et.json +1 -0
  229. package/dist/cdn/assets/histogram/t9n/messages.fi.json +1 -0
  230. package/dist/cdn/assets/histogram/t9n/messages.fr.json +1 -0
  231. package/dist/cdn/assets/histogram/t9n/messages.he.json +1 -0
  232. package/dist/cdn/assets/histogram/t9n/messages.hr.json +1 -0
  233. package/dist/cdn/assets/histogram/t9n/messages.hu.json +1 -0
  234. package/dist/cdn/assets/histogram/t9n/messages.id.json +1 -0
  235. package/dist/cdn/assets/histogram/t9n/messages.it.json +1 -0
  236. package/dist/cdn/assets/histogram/t9n/messages.ja.json +1 -0
  237. package/dist/cdn/assets/histogram/t9n/messages.ko.json +1 -0
  238. package/dist/cdn/assets/histogram/t9n/messages.lt.json +1 -0
  239. package/dist/cdn/assets/histogram/t9n/messages.lv.json +1 -0
  240. package/dist/cdn/assets/histogram/t9n/messages.nl.json +1 -0
  241. package/dist/cdn/assets/histogram/t9n/messages.no.json +1 -0
  242. package/dist/cdn/assets/histogram/t9n/messages.pl.json +1 -0
  243. package/dist/cdn/assets/histogram/t9n/messages.pt-BR.json +1 -0
  244. package/dist/cdn/assets/histogram/t9n/messages.pt-PT.json +1 -0
  245. package/dist/cdn/assets/histogram/t9n/messages.ro.json +1 -0
  246. package/dist/cdn/assets/histogram/t9n/messages.ru.json +1 -0
  247. package/dist/cdn/assets/histogram/t9n/messages.sk.json +1 -0
  248. package/dist/cdn/assets/histogram/t9n/messages.sl.json +1 -0
  249. package/dist/cdn/assets/histogram/t9n/messages.sr.json +1 -0
  250. package/dist/cdn/assets/histogram/t9n/messages.sv.json +1 -0
  251. package/dist/cdn/assets/histogram/t9n/messages.th.json +1 -0
  252. package/dist/cdn/assets/histogram/t9n/messages.tr.json +1 -0
  253. package/dist/cdn/assets/histogram/t9n/messages.uk.json +1 -0
  254. package/dist/cdn/assets/histogram/t9n/messages.vi.json +1 -0
  255. package/dist/cdn/assets/histogram/t9n/messages.zh-CN.json +1 -0
  256. package/dist/cdn/assets/histogram/t9n/messages.zh-HK.json +1 -0
  257. package/dist/cdn/assets/histogram/t9n/messages.zh-TW.json +1 -0
  258. package/dist/cdn/assets/slider/t9n/messages.ar.json +1 -0
  259. package/dist/cdn/assets/slider/t9n/messages.bg.json +1 -0
  260. package/dist/cdn/assets/slider/t9n/messages.bs.json +1 -0
  261. package/dist/cdn/assets/slider/t9n/messages.ca.json +1 -0
  262. package/dist/cdn/assets/slider/t9n/messages.cs.json +1 -0
  263. package/dist/cdn/assets/slider/t9n/messages.da.json +1 -0
  264. package/dist/cdn/assets/slider/t9n/messages.de.json +1 -0
  265. package/dist/cdn/assets/slider/t9n/messages.el.json +1 -0
  266. package/dist/cdn/assets/slider/t9n/messages.en.json +1 -0
  267. package/dist/cdn/assets/slider/t9n/messages.es.json +1 -0
  268. package/dist/cdn/assets/slider/t9n/messages.et.json +1 -0
  269. package/dist/cdn/assets/slider/t9n/messages.fi.json +1 -0
  270. package/dist/cdn/assets/slider/t9n/messages.fr.json +1 -0
  271. package/dist/cdn/assets/slider/t9n/messages.he.json +1 -0
  272. package/dist/cdn/assets/slider/t9n/messages.hr.json +1 -0
  273. package/dist/cdn/assets/slider/t9n/messages.hu.json +1 -0
  274. package/dist/cdn/assets/slider/t9n/messages.id.json +1 -0
  275. package/dist/cdn/assets/slider/t9n/messages.it.json +1 -0
  276. package/dist/cdn/assets/slider/t9n/messages.ja.json +1 -0
  277. package/dist/cdn/assets/slider/t9n/messages.ko.json +1 -0
  278. package/dist/cdn/assets/slider/t9n/messages.lt.json +1 -0
  279. package/dist/cdn/assets/slider/t9n/messages.lv.json +1 -0
  280. package/dist/cdn/assets/slider/t9n/messages.nl.json +1 -0
  281. package/dist/cdn/assets/slider/t9n/messages.no.json +1 -0
  282. package/dist/cdn/assets/slider/t9n/messages.pl.json +1 -0
  283. package/dist/cdn/assets/slider/t9n/messages.pt-BR.json +1 -0
  284. package/dist/cdn/assets/slider/t9n/messages.pt-PT.json +1 -0
  285. package/dist/cdn/assets/slider/t9n/messages.ro.json +1 -0
  286. package/dist/cdn/assets/slider/t9n/messages.ru.json +1 -0
  287. package/dist/cdn/assets/slider/t9n/messages.sk.json +1 -0
  288. package/dist/cdn/assets/slider/t9n/messages.sl.json +1 -0
  289. package/dist/cdn/assets/slider/t9n/messages.sr.json +1 -0
  290. package/dist/cdn/assets/slider/t9n/messages.sv.json +1 -0
  291. package/dist/cdn/assets/slider/t9n/messages.th.json +1 -0
  292. package/dist/cdn/assets/slider/t9n/messages.tr.json +1 -0
  293. package/dist/cdn/assets/slider/t9n/messages.uk.json +1 -0
  294. package/dist/cdn/assets/slider/t9n/messages.vi.json +1 -0
  295. package/dist/cdn/assets/slider/t9n/messages.zh-CN.json +1 -0
  296. package/dist/cdn/assets/slider/t9n/messages.zh-HK.json +1 -0
  297. package/dist/cdn/assets/slider/t9n/messages.zh-TW.json +1 -0
  298. package/dist/cdn/assets/unique-values-list/t9n/messages.ar.json +1 -0
  299. package/dist/cdn/assets/unique-values-list/t9n/messages.bg.json +1 -0
  300. package/dist/cdn/assets/unique-values-list/t9n/messages.bs.json +1 -0
  301. package/dist/cdn/assets/unique-values-list/t9n/messages.ca.json +1 -0
  302. package/dist/cdn/assets/unique-values-list/t9n/messages.cs.json +1 -0
  303. package/dist/cdn/assets/unique-values-list/t9n/messages.da.json +1 -0
  304. package/dist/cdn/assets/unique-values-list/t9n/messages.de.json +1 -0
  305. package/dist/cdn/assets/unique-values-list/t9n/messages.el.json +1 -0
  306. package/dist/cdn/assets/unique-values-list/t9n/messages.en.json +1 -0
  307. package/dist/cdn/assets/unique-values-list/t9n/messages.es.json +1 -0
  308. package/dist/cdn/assets/unique-values-list/t9n/messages.et.json +1 -0
  309. package/dist/cdn/assets/unique-values-list/t9n/messages.fi.json +1 -0
  310. package/dist/cdn/assets/unique-values-list/t9n/messages.fr.json +1 -0
  311. package/dist/cdn/assets/unique-values-list/t9n/messages.he.json +1 -0
  312. package/dist/cdn/assets/unique-values-list/t9n/messages.hr.json +1 -0
  313. package/dist/cdn/assets/unique-values-list/t9n/messages.hu.json +1 -0
  314. package/dist/cdn/assets/unique-values-list/t9n/messages.id.json +1 -0
  315. package/dist/cdn/assets/unique-values-list/t9n/messages.it.json +1 -0
  316. package/dist/cdn/assets/unique-values-list/t9n/messages.ja.json +1 -0
  317. package/dist/cdn/assets/unique-values-list/t9n/messages.ko.json +1 -0
  318. package/dist/cdn/assets/unique-values-list/t9n/messages.lt.json +1 -0
  319. package/dist/cdn/assets/unique-values-list/t9n/messages.lv.json +1 -0
  320. package/dist/cdn/assets/unique-values-list/t9n/messages.nl.json +1 -0
  321. package/dist/cdn/assets/unique-values-list/t9n/messages.no.json +1 -0
  322. package/dist/cdn/assets/unique-values-list/t9n/messages.pl.json +1 -0
  323. package/dist/cdn/assets/unique-values-list/t9n/messages.pt-BR.json +1 -0
  324. package/dist/cdn/assets/unique-values-list/t9n/messages.pt-PT.json +1 -0
  325. package/dist/cdn/assets/unique-values-list/t9n/messages.ro.json +1 -0
  326. package/dist/cdn/assets/unique-values-list/t9n/messages.ru.json +1 -0
  327. package/dist/cdn/assets/unique-values-list/t9n/messages.sk.json +1 -0
  328. package/dist/cdn/assets/unique-values-list/t9n/messages.sl.json +1 -0
  329. package/dist/cdn/assets/unique-values-list/t9n/messages.sr.json +1 -0
  330. package/dist/cdn/assets/unique-values-list/t9n/messages.sv.json +1 -0
  331. package/dist/cdn/assets/unique-values-list/t9n/messages.th.json +1 -0
  332. package/dist/cdn/assets/unique-values-list/t9n/messages.tr.json +1 -0
  333. package/dist/cdn/assets/unique-values-list/t9n/messages.uk.json +1 -0
  334. package/dist/cdn/assets/unique-values-list/t9n/messages.vi.json +1 -0
  335. package/dist/cdn/assets/unique-values-list/t9n/messages.zh-CN.json +1 -0
  336. package/dist/cdn/assets/unique-values-list/t9n/messages.zh-HK.json +1 -0
  337. package/dist/cdn/assets/unique-values-list/t9n/messages.zh-TW.json +1 -0
  338. package/dist/cdn/index.js +2 -0
  339. package/dist/cdn/main.css +1 -0
  340. package/dist/chunks/commonFunctions.js +7 -0
  341. package/dist/chunks/locale.js +12 -0
  342. package/dist/chunks/resources.js +13 -0
  343. package/dist/chunks/runtime.js +15 -0
  344. package/dist/chunks/types.js +8 -0
  345. package/dist/chunks/useT9n.js +7 -0
  346. package/dist/components/geoscene-ckeditor5/customElement.d.ts +97 -0
  347. package/dist/components/geoscene-ckeditor5/customElement.js +35958 -0
  348. package/dist/components/geoscene-ckeditor5/index.d.ts +1 -0
  349. package/dist/components/geoscene-ckeditor5/index.js +1 -0
  350. package/dist/components/geoscene-ckeditor5/types.d.ts +15 -0
  351. package/dist/components/geoscene-ckeditor5-popover/customElement.d.ts +40 -0
  352. package/dist/components/geoscene-ckeditor5-popover/customElement.js +58 -0
  353. package/dist/components/geoscene-ckeditor5-popover/index.d.ts +1 -0
  354. package/dist/components/geoscene-ckeditor5-popover/index.js +3 -0
  355. package/dist/components/geoscene-color-input/customElement.d.ts +108 -0
  356. package/dist/components/geoscene-color-input/customElement.js +135 -0
  357. package/dist/components/geoscene-color-input/index.d.ts +1 -0
  358. package/dist/components/geoscene-color-input/index.js +6 -0
  359. package/dist/components/geoscene-field-info/customElement.d.ts +207 -0
  360. package/dist/components/geoscene-field-info/customElement.js +691 -0
  361. package/dist/components/geoscene-field-info/index.d.ts +1 -0
  362. package/dist/components/geoscene-field-info/index.js +1 -0
  363. package/dist/components/geoscene-field-info/utils/basic.d.ts +4 -0
  364. package/dist/components/geoscene-field-pick-list/customElement.d.ts +208 -0
  365. package/dist/components/geoscene-field-pick-list/customElement.js +263 -0
  366. package/dist/components/geoscene-field-pick-list/index.d.ts +1 -0
  367. package/dist/components/geoscene-field-pick-list/index.js +14 -0
  368. package/dist/components/geoscene-field-pick-list/utils/types.d.ts +8 -0
  369. package/dist/components/geoscene-histogram/customElement.d.ts +258 -0
  370. package/dist/components/geoscene-histogram/customElement.js +194 -0
  371. package/dist/components/geoscene-histogram/index.d.ts +1 -0
  372. package/dist/components/geoscene-histogram/index.js +1 -0
  373. package/dist/components/geoscene-histogram/types.d.ts +26 -0
  374. package/dist/components/geoscene-label-input/customElement.d.ts +48 -0
  375. package/dist/components/geoscene-label-input/customElement.js +116 -0
  376. package/dist/components/geoscene-label-input/index.d.ts +1 -0
  377. package/dist/components/geoscene-label-input/index.js +3 -0
  378. package/dist/components/geoscene-picker-input/customElement.d.ts +44 -0
  379. package/dist/components/geoscene-picker-input/customElement.js +57 -0
  380. package/dist/components/geoscene-picker-input/index.d.ts +1 -0
  381. package/dist/components/geoscene-picker-input/index.js +5 -0
  382. package/dist/components/geoscene-ramp-color/customElement.d.ts +21 -0
  383. package/dist/components/geoscene-ramp-color/customElement.js +82 -0
  384. package/dist/components/geoscene-ramp-color/index.d.ts +1 -0
  385. package/dist/components/geoscene-ramp-color/index.js +1 -0
  386. package/dist/components/geoscene-ramp-color-break/customElement.d.ts +22 -0
  387. package/dist/components/geoscene-ramp-color-break/customElement.js +38 -0
  388. package/dist/components/geoscene-ramp-color-break/index.d.ts +1 -0
  389. package/dist/components/geoscene-ramp-color-break/index.js +2 -0
  390. package/dist/components/geoscene-ramp-opacity/customElement.d.ts +19 -0
  391. package/dist/components/geoscene-ramp-opacity/customElement.js +33 -0
  392. package/dist/components/geoscene-ramp-opacity/index.d.ts +1 -0
  393. package/dist/components/geoscene-ramp-opacity/index.js +2 -0
  394. package/dist/components/geoscene-slider/customElement.d.ts +487 -0
  395. package/dist/components/geoscene-slider/customElement.js +877 -0
  396. package/dist/components/geoscene-slider/index.d.ts +1 -0
  397. package/dist/components/geoscene-slider/index.js +3 -0
  398. package/dist/components/geoscene-slider-input/customElement.d.ts +60 -0
  399. package/dist/components/geoscene-slider-input/customElement.js +29 -0
  400. package/dist/components/geoscene-slider-input/index.d.ts +1 -0
  401. package/dist/components/geoscene-slider-input/index.js +3 -0
  402. package/dist/components/geoscene-ticks/customElement.d.ts +190 -0
  403. package/dist/components/geoscene-ticks/customElement.js +141 -0
  404. package/dist/components/geoscene-ticks/index.d.ts +1 -0
  405. package/dist/components/geoscene-ticks/index.js +1 -0
  406. package/dist/components/geoscene-ticks/types.d.ts +23 -0
  407. package/dist/components/geoscene-unique-values-list/customElement.d.ts +115 -0
  408. package/dist/components/geoscene-unique-values-list/customElement.js +303 -0
  409. package/dist/components/geoscene-unique-values-list/index.d.ts +1 -0
  410. package/dist/components/geoscene-unique-values-list/index.js +8 -0
  411. package/dist/components/geoscene-unique-values-list/utils/basic.d.ts +4 -0
  412. package/dist/docs/api.json +1 -0
  413. package/dist/docs/docs.json +1 -0
  414. package/dist/docs/vscode.css-custom-data.json +1 -0
  415. package/dist/docs/vscode.html-custom-data.json +1 -0
  416. package/dist/docs/web-types.json +1 -0
  417. package/dist/index.d.ts +166 -0
  418. package/dist/index.js +6 -0
  419. package/dist/loader.d.ts +2 -0
  420. package/dist/loader.js +23 -0
  421. package/dist/types/components.d.ts +2 -0
  422. package/dist/types/lumina.d.ts +123 -0
  423. package/dist/types/preact.d.ts +143 -0
  424. package/dist/types/react.d.ts +166 -0
  425. package/dist/types/stencil.d.ts +130 -0
  426. package/dist/utils/types.d.ts +66 -0
  427. package/package.json +64 -0
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";
@@ -0,0 +1,3 @@
1
+ import "@geoscene/calcite-components/components/calcite-popover";
2
+ import "../geoscene-label-input/index.js";
3
+ export * from "./customElement.js";
@@ -0,0 +1,60 @@
1
+ /// <reference path="../../index.d.ts" />
2
+ import type { PublicLitElement as LitElement } from "@geoscene/lumina";
3
+
4
+ /** @internal */
5
+ export abstract class GeosceneSliderInput extends LitElement {
6
+ /**
7
+ * If true, prevents interaction with the component.
8
+ *
9
+ * @default false
10
+ */
11
+ accessor disabled: boolean;
12
+ /**
13
+ * Handle LTR and RTL label placement.
14
+ *
15
+ * @default false
16
+ */
17
+ accessor flipLabels: boolean;
18
+ /** Label for the component. */
19
+ accessor label: string | undefined;
20
+ /**
21
+ * Max value for the component.
22
+ *
23
+ * @default 100
24
+ */
25
+ accessor max: number;
26
+ /**
27
+ * Min value for the component.
28
+ *
29
+ * @default 0
30
+ */
31
+ accessor min: number;
32
+ /**
33
+ * Increment interval for the component.
34
+ *
35
+ * @default 1
36
+ */
37
+ accessor step: number;
38
+ /** If provided, specifies units for the input. */
39
+ accessor unitsLabel: string | undefined;
40
+ /**
41
+ * Initial value for the component.
42
+ *
43
+ * @default 50
44
+ */
45
+ accessor value: number;
46
+ /**
47
+ * If true, adds up/down arrows to the input.
48
+ *
49
+ * @default false
50
+ */
51
+ accessor withSteppers: boolean;
52
+ /** @deprecated use geosceneValueChange instead. */
53
+ readonly geosceneSliderInputValueChange: import("@geoscene/lumina").TargetedEvent<this, number>;
54
+ /** Emitted when the value has changed. */
55
+ readonly geosceneValueChange: import("@geoscene/lumina").TargetedEvent<this, number>;
56
+ readonly "@eventTypes": {
57
+ geosceneSliderInputValueChange: GeosceneSliderInput["geosceneSliderInputValueChange"]["detail"];
58
+ geosceneValueChange: GeosceneSliderInput["geosceneValueChange"]["detail"];
59
+ };
60
+ }
@@ -0,0 +1,29 @@
1
+ /* COPYRIGHT GeoScene - https://js.geoscene.cn/5.0/LICENSE.txt */
2
+ import { c as d } from "../../chunks/runtime.js";
3
+ import { css as h, html as m } from "lit";
4
+ import { LitElement as o, createEvent as c } from "@geoscene/lumina";
5
+ import { debounce as b } from "@geoscene/toolkit/function";
6
+ const g = h`.container{display:flex;align-items:center;justify-content:space-between;position:relative}.slider{width:50%}.input{width:45%}`;
7
+ class $ extends o {
8
+ constructor() {
9
+ super(...arguments), this.debouncedApplyValueOnChange = b((e) => this.applyValueOnChange(e), 800), this.disabled = !1, this.flipLabels = !1, this.min = 0, this.max = 100, this.value = 50, this.step = 1, this.withSteppers = !1, this.geosceneSliderInputValueChange = c(), this.geosceneValueChange = c();
10
+ }
11
+ static {
12
+ this.properties = { disabled: 5, label: 1, flipLabels: 5, min: 9, max: 9, value: 9, step: 9, unitsLabel: 1, withSteppers: 5 };
13
+ }
14
+ static {
15
+ this.styles = g;
16
+ }
17
+ applyValueOnChange(e) {
18
+ const { min: i, max: a, value: n } = this, s = Number(e.value), t = i !== void 0 && a !== void 0 ? Math.min(a, Math.max(i, s)) : s;
19
+ s !== n && (e.value = `${t}`, this.geosceneValueChange.emit(t), this.geosceneSliderInputValueChange.emit(t), this.value = t);
20
+ }
21
+ render() {
22
+ const { disabled: e, min: i, max: a, value: n, step: s, withSteppers: t, flipLabels: r, unitsLabel: p, label: u } = this;
23
+ return m`<div class="container"><calcite-slider class="slider" .disabled=${e} .min=${i} .max=${a} .value=${n} .step=${s} @calciteSliderInput=${(l) => this.debouncedApplyValueOnChange(l.currentTarget)}></calcite-slider><calcite-input class="input" .disabled=${e} .min=${i} .max=${a} .numberButtonType=${t ? "vertical" : "none"} .prefixText=${r ? p : ""} @calciteInputInput=${(l) => this.debouncedApplyValueOnChange(l.target)} @click=${(l) => l.stopPropagation()} scale=s step=any .suffixText=${r ? "" : p} type=number .value=${`${n}`} .label=${u}></calcite-input></div>`;
24
+ }
25
+ }
26
+ d("geoscene-slider-input", $);
27
+ export {
28
+ $ as GeosceneSliderInput
29
+ };
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";
@@ -0,0 +1,3 @@
1
+ import "@geoscene/calcite-components/components/calcite-slider";
2
+ import "@geoscene/calcite-components/components/calcite-input";
3
+ export * from "./customElement.js";
@@ -0,0 +1,190 @@
1
+ /// <reference path="../../index.d.ts" />
2
+ /// <reference types="@geoscene/core/interfaces.d.ts" />
3
+ import type { PublicLitElement as LitElement } from "@geoscene/lumina";
4
+ import type { Layout, TickMode, TickValues } from "./types.js";
5
+
6
+ /**
7
+ * The ticks component displays visual markers along a line to indicate scale, intervals, or specific values. It is often used in conjunction with the
8
+ * [Slider component](https://doc.geoscene.cn/javascript/5.0/references/common-components/components/geoscene-slider/). Ticks help users understand the
9
+ * slider’s range and make more precise selections.
10
+ *
11
+ * Tick placement is controlled by the [mode](https://doc.geoscene.cn/javascript/5.0/references/common-components/components/geoscene-ticks/#mode), which defines how the [values](https://doc.geoscene.cn/javascript/5.0/references/common-components/components/geoscene-ticks/#values) are parsed and translated into positions along the
12
+ * line. Tick positions are derived from the component’s [min](https://doc.geoscene.cn/javascript/5.0/references/common-components/components/geoscene-ticks/#min) and [max](https://doc.geoscene.cn/javascript/5.0/references/common-components/components/geoscene-ticks/#max) range, with optional none-linear scaling via
13
+ * [interpolationExponent](https://doc.geoscene.cn/javascript/5.0/references/common-components/components/geoscene-ticks/#interpolationExponent). Ticks can be displayed in vertical or horizontal [layout](https://doc.geoscene.cn/javascript/5.0/references/common-components/components/geoscene-ticks/#layout), with optional [showLabels](https://doc.geoscene.cn/javascript/5.0/references/common-components/components/geoscene-ticks/#showLabels) and a [showBaseline](https://doc.geoscene.cn/javascript/5.0/references/common-components/components/geoscene-ticks/#showBaseline).
14
+ * The component can also be made [interactive](https://doc.geoscene.cn/javascript/5.0/references/common-components/components/geoscene-ticks/#interactive) to respond to user clicks on individual ticks. The [labelFormatter](https://doc.geoscene.cn/javascript/5.0/references/common-components/components/geoscene-ticks/#labelFormatter) property allows customization of tick label formatting.
15
+ *
16
+ * @cssproperty [--geoscene-ticks-tick-length] - Specifies the length of the ticks.
17
+ * @cssproperty [--geoscene-ticks-tick-color] - Specifies the color of the ticks.
18
+ * @cssproperty [--geoscene-ticks-gap] - Specifies the gap between the ticks and labels.
19
+ * @since 5.0
20
+ * @example
21
+ * The following example creates a vertical slider with vertical ticks displayed at every 10 units from 0 to 100.
22
+ * The ticks are labeled and positioned on the end side of the slider.
23
+ * ```html
24
+ * <geoscene-slider id="sliderComponent" min="0" max="100" show-range-labels values="50" layout="vertical">
25
+ * <geoscene-ticks slot="content-end" style="flex:1;"
26
+ * min="0" max="100"
27
+ * mode="value"
28
+ * show-labels
29
+ * label-placement="end"
30
+ * values="0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100"
31
+ * layout="vertical">
32
+ * </geoscene-ticks>
33
+ * </geoscene-slider>
34
+ * ```
35
+ */
36
+ export abstract class GeosceneTicks extends LitElement {
37
+ /**
38
+ * When `true`, ticks are clickable and the component emits [@geosceneTickClick](https://doc.geoscene.cn/javascript/5.0/references/common-components/components/geoscene-ticks/#event-geosceneTickClick) when the user selects a tick.
39
+ *
40
+ * @default false
41
+ * @see [@geosceneTickClick](https://doc.geoscene.cn/javascript/5.0/references/common-components/components/geoscene-ticks/#event-geosceneTickClick)
42
+ */
43
+ accessor interactive: boolean;
44
+ /**
45
+ * The exponent used to interpolate the position of ticks along the component.
46
+ * A value of `0` indicates linear interpolation. Positive values indicate exponential interpolation, and negative values indicate logarithmic interpolation.
47
+ *
48
+ * Set this property when the range of values is large and users need precision in the lower range of values (for an exponential interpolation), or in the higher range (for a logarithmic interpolation).
49
+ *
50
+ * ```tsx
51
+ * <geoscene-ticks interpolation-exponent={14} min={1} max={5518000} mode="value" values={[1, 11500, 5518000]} />
52
+ * ```
53
+ *
54
+ * @default 0
55
+ */
56
+ accessor interpolationExponent: number;
57
+ /**
58
+ * Allows customizing how tick labels are formatted based on their numeric value.
59
+ *
60
+ * @example
61
+ * The following example formats tick labels as percentages.
62
+ * ```js
63
+ * const ticks = document.querySelector("geoscene-ticks");
64
+ * ticks.labelFormatter = (value, defaultFormatter) => {
65
+ * return value + "%";
66
+ * };
67
+ * ```
68
+ */
69
+ accessor labelFormatter: ((value: number, defaultFormatter: (value: number) => string) => nullish | string) | undefined;
70
+ /**
71
+ * Determines whether the labels are placed before or after the ticks.
72
+ *
73
+ * @default "end"
74
+ */
75
+ accessor labelPlacement: "end" | "start";
76
+ /**
77
+ * Determines the layout/orientation of the ticks component. By default, the ticks will render horizontally.
78
+ * When set to `vertical`, the ticks will render vertically.
79
+ *
80
+ * @default "horizontal"
81
+ */
82
+ accessor layout: Layout;
83
+ /**
84
+ * The component's maximum rendered value.
85
+ *
86
+ * @default 100
87
+ */
88
+ accessor max: number;
89
+ /**
90
+ * The component's minimum rendered value.
91
+ *
92
+ * @default 0
93
+ */
94
+ accessor min: number;
95
+ /**
96
+ * When `true`, the values are displayed from high to low.
97
+ *
98
+ * @default false
99
+ */
100
+ accessor mirrored: boolean;
101
+ /**
102
+ * The mode or method of positioning ticks along the component. It drives how [values](https://doc.geoscene.cn/javascript/5.0/references/common-components/components/geoscene-ticks/#values) is interpreted.
103
+ * - `count`: Places a fixed number of ticks (provided in the [values](https://doc.geoscene.cn/javascript/5.0/references/common-components/components/geoscene-ticks/#values) property) at equal distances from each other.
104
+ * - `percent`: [values](https://doc.geoscene.cn/javascript/5.0/references/common-components/components/geoscene-ticks/#values) is interpreted as percentage. If [values](https://doc.geoscene.cn/javascript/5.0/references/common-components/components/geoscene-ticks/#values) is a number, it indicates the interval between ticks. If it is an array, it indicates the percentage values at which to place the ticks.
105
+ * - `value`: Indicates that ticks will only be placed at the values specified in the property.
106
+ *
107
+ * @default "count"
108
+ * @example
109
+ * ```html
110
+ * <!-- Place ticks at each value listed in `values` -->
111
+ * <geoscene-slider min="0" max="100" show-range-labels values="20, 50">
112
+ * <geoscene-ticks
113
+ * slot="content-end" style="flex:1;"
114
+ * min="0" max="100"
115
+ * show-labels label-placement="end"
116
+ * mode="value"
117
+ * values="0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100">
118
+ * </geoscene-ticks>
119
+ * </geoscene-slider>
120
+ * ```
121
+ * @example
122
+ * In count mode, values is the number of ticks to render (not a list of tick values).
123
+ * For example, use `11` ticks to show 0–100 in steps of 10 (0, 10, 20, ..., 100).
124
+ * ```html
125
+ * <!-- 11 ticks from 0 to 100 -->
126
+ * <geoscene-slider min="0" max="100" show-range-labels values="20, 50">
127
+ * <geoscene-ticks
128
+ * slot="content-end" style="flex:1;"
129
+ * min="0" max="100"
130
+ * show-labels label-placement="end"
131
+ * mode="count"
132
+ * values="11">
133
+ * </geoscene-ticks>
134
+ * </geoscene-slider>
135
+ * ```
136
+ * @example
137
+ * In percent mode, values are percentages along the track.
138
+ * Use an array to place ticks at specific percentages, or a single number as a repeating interval.
139
+ * ```html
140
+ * <!-- Ticks at 0%, 25%, 50%, 75%, and 100% -->
141
+ * <geoscene-slider min="0" max="200" show-range-labels values="50, 150">
142
+ * <geoscene-ticks
143
+ * slot="content-end" style="flex:1;"
144
+ * min="0" max="200"
145
+ * show-labels label-placement="end"
146
+ * mode="percent"
147
+ * values="0, 25, 50, 75, 100">
148
+ * </geoscene-ticks>
149
+ * </geoscene-slider>
150
+ * ```
151
+ * @see [values](https://doc.geoscene.cn/javascript/5.0/references/common-components/components/geoscene-ticks/#values)
152
+ */
153
+ accessor mode: TickMode;
154
+ /**
155
+ * Indicates whether to render a line connecting the ticks.
156
+ *
157
+ * @default false
158
+ */
159
+ accessor showBaseline: boolean;
160
+ /**
161
+ * Indicates whether to render labels for the ticks.
162
+ *
163
+ * @default false
164
+ */
165
+ accessor showLabels: boolean;
166
+ /**
167
+ * Indicates where ticks will be rendered along the component.
168
+ * See the description for [mode](https://doc.geoscene.cn/javascript/5.0/references/common-components/components/geoscene-ticks/#mode) for more information about how this property is interpreted by each mode.
169
+ *
170
+ * @see [mode](https://doc.geoscene.cn/javascript/5.0/references/common-components/components/geoscene-ticks/#mode)
171
+ */
172
+ accessor values: TickValues;
173
+ /**
174
+ * Fires when the user clicks on one of the ticks. This event is only emitted when the [interactive](https://doc.geoscene.cn/javascript/5.0/references/common-components/components/geoscene-ticks/#interactive) property is set to `true`.
175
+ *
176
+ * @see [interactive](https://doc.geoscene.cn/javascript/5.0/references/common-components/components/geoscene-ticks/#interactive)
177
+ * @example
178
+ * The following example listens for the `geosceneTickClick` event and logs the clicked tick's value.
179
+ * ```js
180
+ * const ticks = document.querySelector("geoscene-ticks");
181
+ * ticks.addEventListener("geosceneTickClick", (event) => {
182
+ * console.log("Clicked tick value:", event.detail.value);
183
+ * });
184
+ * ```
185
+ */
186
+ readonly geosceneTickClick: import("@geoscene/lumina").TargetedEvent<this, { value: number; }>;
187
+ readonly "@eventTypes": {
188
+ geosceneTickClick: GeosceneTicks["geosceneTickClick"]["detail"];
189
+ };
190
+ }
@@ -0,0 +1,141 @@
1
+ /* COPYRIGHT GeoScene - https://js.geoscene.cn/5.0/LICENSE.txt */
2
+ import { c as $ } from "../../chunks/runtime.js";
3
+ import { css as M, html as c } from "lit";
4
+ import { LitElement as _, createEvent as C, safeClassMap as h, safeStyleMap as u, nothing as v } from "@geoscene/lumina";
5
+ import { formatNumber as z } from "@geoscene/core/intl.js";
6
+ const n = {
7
+ container: "container",
8
+ ticksContainer: "ticks-container",
9
+ labelsContainer: "labels-container",
10
+ tick: "tick",
11
+ tickMin: "tick--min",
12
+ tickMax: "tick--max",
13
+ tickLabel: "tick-label",
14
+ baseline: "baseline"
15
+ }, A = M`:host{display:flex;--geoscene-ticks-tick-length: .5rem;--geoscene-ticks-tick-color: var(--calcite-color-border-input);--geoscene-ticks-gap: 1em;--geoscene-ticks-font-size: var(--calcite-font-size--2)}.container{align-items:stretch;display:flex;color:var(--calcite-color-text-2);flex:1;font-weight:var(--calcite-font-weight-medium);font-size:var(--geoscene-ticks-font-size);line-height:1em;position:relative;user-select:none;word-wrap:normal;word-break:normal}.baseline{background-color:var(--geoscene-ticks-tick-color, var(--calcite-color-border-input))}.tick{position:absolute;background-color:var(--geoscene-ticks-tick-color, var(--calcite-color-border-input))}.tick-label{position:absolute;text-align:var(--geoscene-ticks-label-text-align, center);width:var(--geoscene-ticks-label-width, var(--labels-container-width, "auto"))}:host([layout="horizontal"]){.ticks-container{height:var(--geoscene-ticks-tick-length)}.labels-container{height:var(--labels-container-height, "auto")}.tick{width:.125rem;height:var(--geoscene-ticks-tick-length);transform:translate(-50%)}.tick-label{transform:translate(-50%)}.tick--min{transform:unset}.tick--max{transform:translate(-100%)}}:host([layout="vertical"]){.ticks-container{width:var(--geoscene-ticks-tick-length)}.labels-container{width:var(--labels-container-width)}.tick{width:var(--geoscene-ticks-tick-length);height:.125rem;transform:translateY(50%)}.tick-label{text-align:right;transform:translateY(50%)}.tick--min{transform:unset}.tick--max{transform:translateY(100%)}}:host([layout="horizontal"][mirrored]){.tick,.tick-label{transform:translate(50%)}.tick--min{transform:unset}.tick--max{transform:translate(100%)}}:host([layout="vertical"][mirrored]){.tick,.tick-label{transform:translateY(-50%)}.tick--min{transform:unset}.tick--max{transform:translateY(-100%)}}:host([layout="horizontal"][label-placement="start"]){.container{flex-direction:column;justify-content:flex-end}.labels-container{margin-bottom:var(--geoscene-ticks-gap)}}:host([layout="horizontal"][label-placement="end"]){.container{flex-direction:column-reverse;justify-content:flex-end}.labels-container{margin-top:var(--geoscene-ticks-gap)}}:host([layout="vertical"][label-placement="start"]){.container{flex-direction:row;justify-content:flex-end}:dir(ltr){.labels-container{margin-right:var(--geoscene-ticks-gap)}.tick-label{text-align:right}}:dir(rtl){.labels-container{margin-left:var(--geoscene-ticks-gap)}.tick-label{text-align:left;unicode-bidi:plaintext}}}:host([layout="vertical"][label-placement="end"]){.container{flex-direction:row-reverse;justify-content:flex-end}:dir(ltr){.labels-container{margin-left:var(--geoscene-ticks-gap)}.tick-label{text-align:left}}:dir(rtl){.labels-container{margin-right:var(--geoscene-ticks-gap)}.tick-label{text-align:right;unicode-bidi:plaintext}}}:host([interactive]){pointer-events:none;.tick,.tick-label{pointer-events:auto;cursor:pointer}.tick-label:hover{text-decoration:underline}}`;
16
+ class F extends _ {
17
+ constructor() {
18
+ super(...arguments), this._formatValue = (e) => z(e, this._formatOptions), this._formatOptions = {
19
+ style: "decimal",
20
+ useGrouping: !0,
21
+ minimumFractionDigits: 0,
22
+ maximumFractionDigits: 2
23
+ }, this.interactive = !1, this.interpolationExponent = 0, this.labelPlacement = "end", this.layout = "horizontal", this.max = 100, this.min = 0, this.mirrored = !1, this.mode = "count", this.showLabels = !1, this.showBaseline = !1, this.values = [], this.geosceneTickClick = C({ cancelable: !1 });
24
+ }
25
+ static {
26
+ this.properties = { _formatOptions: 16, interactive: 7, interpolationExponent: 9, labelFormatter: 0, labelPlacement: 3, layout: 3, max: 9, min: 9, mirrored: 7, mode: 1, showLabels: 5, showBaseline: 5, values: [9, { converter: {
27
+ fromAttribute(e) {
28
+ if (e.includes(","))
29
+ return e.split(",").filter((t) => t.trim() !== "").map(parseFloat).filter((t) => Number.isFinite(t));
30
+ {
31
+ const t = parseFloat(e);
32
+ return Number.isFinite(t) ? [t] : [];
33
+ }
34
+ }
35
+ } }] };
36
+ }
37
+ static {
38
+ this.styles = A;
39
+ }
40
+ updated() {
41
+ const e = this.renderRoot.querySelector(`.${n.labelsContainer}`);
42
+ if (e) {
43
+ let t = 0, i = 0;
44
+ for (const r of this.renderRoot.querySelectorAll(`.${n.tickLabel}`)) {
45
+ const a = r.getBoundingClientRect();
46
+ t = Math.max(t, a.width), i = Math.max(i, a.height);
47
+ }
48
+ t = Math.ceil(t), i = Math.ceil(i), !t || !i ? (e.style.removeProperty("--labels-container-width"), e.style.removeProperty("--labels-container-height")) : (e.style.setProperty("--labels-container-width", `${t}px`), e.style.setProperty("--labels-container-height", `${i}px`));
49
+ }
50
+ }
51
+ _handleClick(e) {
52
+ if (!this.interactive)
53
+ return;
54
+ const i = e.target.dataset.value;
55
+ i && this.geosceneTickClick.emit({ value: Number(i) });
56
+ }
57
+ _internalLabelFormatter(e) {
58
+ const t = this.labelFormatter;
59
+ if (!t)
60
+ return this._formatValue(e);
61
+ const i = t(e, this._formatValue);
62
+ return i ?? this._formatValue(e);
63
+ }
64
+ render() {
65
+ return c`<div class=${h(n.container)} touch-action=none @click=${this._handleClick}>${this._renderContent()}${this._renderBaseline()}</div>`;
66
+ }
67
+ _renderContent() {
68
+ const { interpolationExponent: e, max: t, min: i, mode: r, values: a, layout: o, mirrored: l, showLabels: x } = this, g = [], b = [];
69
+ for (const [f, d] of L(r, i, t, e, a)) {
70
+ const p = { [o === "horizontal" ? l ? "right" : "left" : l ? "top" : "bottom"]: `${f}%` }, w = {
71
+ [n.tick]: !0,
72
+ [n.tickMin]: f === 0,
73
+ [n.tickMax]: f === 100
74
+ };
75
+ g.push(c`<div class=${h(w)} style=${u(p)} data-value=${d ?? v}></div>`), x && b.push(c`<div class=${h(n.tickLabel)} style=${u(p)} data-value=${d ?? v}>${this._internalLabelFormatter(d)}</div>`);
76
+ }
77
+ return [c`<div class=${h(n.labelsContainer)}>${b}</div>`, c`<div class=${h(n.ticksContainer)}>${g}</div>`];
78
+ }
79
+ _renderBaseline() {
80
+ const { showBaseline: e, layout: t } = this;
81
+ return e && c`<div class=${h(n.baseline)} style=${u({
82
+ [t === "horizontal" ? "width" : "height"]: "100%",
83
+ [t === "horizontal" ? "height" : "width"]: "0.125rem"
84
+ })}></div>` || "";
85
+ }
86
+ }
87
+ function* L(s, e, t, i, r) {
88
+ switch (s) {
89
+ case "value": {
90
+ const a = Array.isArray(r) ? r : [r];
91
+ for (const o of a) {
92
+ const l = P(e, t, o, i) * 100;
93
+ l >= 0 && l <= 100 && (yield [l, o]);
94
+ }
95
+ break;
96
+ }
97
+ case "percent": {
98
+ if (Array.isArray(r))
99
+ for (const a of r)
100
+ a >= 0 && a <= 100 && (yield [a, m(e, t, a / 100, i)]);
101
+ else if (r > 0)
102
+ for (let a = 0; a <= 100; a += r)
103
+ yield [a, m(e, t, a / 100, i)];
104
+ break;
105
+ }
106
+ case "count": {
107
+ const a = Array.isArray(r) ? r[0] : r;
108
+ if (a <= 1)
109
+ yield [50, m(e, t, 0.5, i)];
110
+ else
111
+ for (let o = 0; o < a; o++) {
112
+ const l = o * 100 / (a - 1);
113
+ yield [l, m(e, t, l / 100, i)];
114
+ }
115
+ break;
116
+ }
117
+ }
118
+ }
119
+ function k(s, e, t) {
120
+ return t < s ? s : t > e ? e : t;
121
+ }
122
+ function y(s, e, t) {
123
+ return s + (e - s) * t;
124
+ }
125
+ function P(s, e, t, i = 0) {
126
+ let r = (t - s) / (e - s);
127
+ if (r = k(0, 1, r), Math.abs(i) < 1e-9)
128
+ return r;
129
+ const a = 1 + Math.expm1(i) * r;
130
+ return r = Math.log(a) / i, k(0, 1, r);
131
+ }
132
+ function m(s, e, t, i = 0) {
133
+ if (t = k(0, 1, t), Math.abs(i) < 1e-9)
134
+ return y(s, e, t);
135
+ const r = Math.expm1(i * t) / Math.expm1(i);
136
+ return y(s, e, r);
137
+ }
138
+ $("geoscene-ticks", F);
139
+ export {
140
+ F as GeosceneTicks
141
+ };
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";
@@ -0,0 +1,23 @@
1
+ /**
2
+ * The layout of the [geoscene-ticks](https://doc.geoscene.cn/javascript/5.0/references/common-components/components/geoscene-ticks/) component, which determines the orientation of the ticks.
3
+ *
4
+ * @since 5.0
5
+ */
6
+ export type Layout = "horizontal" | "vertical";
7
+
8
+ /**
9
+ * The mode of positioning ticks along the [geoscene-ticks](https://doc.geoscene.cn/javascript/5.0/references/common-components/components/geoscene-ticks/) component. It drives how [geoscene-ticks.values](https://doc.geoscene.cn/javascript/5.0/references/common-components/components/geoscene-ticks/#values) is interpreted.
10
+ * - `count`: Places a fixed number of ticks (provided in the [geoscene-ticks.values](https://doc.geoscene.cn/javascript/5.0/references/common-components/components/geoscene-ticks/#values) property) at equal distances from each other.
11
+ * - `percent`: [geoscene-ticks.values](https://doc.geoscene.cn/javascript/5.0/references/common-components/components/geoscene-ticks/#values) is interpreted as percentage. If [geoscene-ticks.values](https://doc.geoscene.cn/javascript/5.0/references/common-components/components/geoscene-ticks/#values) is a number, it indicates the interval between ticks. If it is an array, it indicates the percentage values at which to place the ticks.
12
+ * - `value`: Indicates that ticks will only be placed at the values specified in the property.
13
+ *
14
+ * @since 5.0
15
+ */
16
+ export type TickMode = "count" | "percent" | "value";
17
+
18
+ /**
19
+ * Indicates where ticks will be rendered along the [geoscene-ticks](https://doc.geoscene.cn/javascript/5.0/references/common-components/components/geoscene-ticks/) component.
20
+ *
21
+ * @since 5.0
22
+ */
23
+ export type TickValues = number[] | number;
@@ -0,0 +1,115 @@
1
+ /// <reference path="../../index.d.ts" />
2
+ /// <reference types="@geoscene/core/interfaces.d.ts" />
3
+ import type { PublicLitElement as LitElement } from "@geoscene/lumina";
4
+ import type { SupportedLayer } from "./utils/basic.js";
5
+ import type { FieldSource } from "../../utils/types.js";
6
+ import type { T9nMeta } from "@geoscene/lumina/controllers";
7
+
8
+ /**
9
+ * Displays a list of unique values taking into account field type formatting and field domains.
10
+ *
11
+ * @internal
12
+ */
13
+ export abstract class GeosceneUniqueValuesList extends LitElement {
14
+ /** @internal */
15
+ protected _messages: {
16
+ searchValues: string;
17
+ sortValues: string;
18
+ values: string;
19
+ sortByCount: string;
20
+ sortAlphabetical: string;
21
+ sortAscending: string;
22
+ sortSelected: string;
23
+ errors: { tooManyUniqueValues: string; };
24
+ } & T9nMeta<{
25
+ searchValues: string;
26
+ sortValues: string;
27
+ values: string;
28
+ sortByCount: string;
29
+ sortAlphabetical: string;
30
+ sortAscending: string;
31
+ sortSelected: string;
32
+ errors: { tooManyUniqueValues: string; };
33
+ }>;
34
+ /** Field name, required if uniqueValues is not provided, if component needs to format values, or needs to check for field domains. */
35
+ accessor fieldName: string | undefined;
36
+ /** Optional, specify field source other than the layer's fields. */
37
+ accessor fieldSource: FieldSource | undefined;
38
+ /** Layer instance, required if uniqueValues is not provided, if component needs to format values, or needs to check for field domains. */
39
+ accessor layer: SupportedLayer | undefined;
40
+ /** Optional, max height of list in pixel. */
41
+ accessor maxHeight: number | undefined;
42
+ /**
43
+ * Multiple selections allowed?
44
+ *
45
+ * @default false
46
+ */
47
+ accessor multiple: boolean | undefined;
48
+ /**
49
+ * Optional format options if values are numbers.
50
+ *
51
+ * e.g.
52
+ * {
53
+ * style: "decimal",
54
+ * useGrouping: true,
55
+ * minimumFractionDigits: 0,
56
+ * maximumFractionDigits: 2
57
+ * }
58
+ *
59
+ * {
60
+ * style: "percent",
61
+ * useGrouping: true
62
+ * }
63
+ *
64
+ * {
65
+ * style: "currency",
66
+ * currency: "EUR",
67
+ * currencyDisplay: "symbol"
68
+ * }
69
+ */
70
+ accessor numberFormatOptions: Intl.NumberFormatOptions | undefined;
71
+ /**
72
+ * Too many values? If true then it displays a message below the list. Only required if uniqueValues is provided.
73
+ *
74
+ * @default false
75
+ */
76
+ accessor partialUniqueValues: boolean | undefined;
77
+ /** Lists of selected values */
78
+ accessor selectedValues: (number | string)[] | undefined;
79
+ /**
80
+ * If true, displays the filter option based on the number of fields.
81
+ *
82
+ * @default 10
83
+ */
84
+ accessor showFilterLength: number;
85
+ /** Sort by default setting */
86
+ accessor sortBy: "count" | "name" | "selected" | undefined;
87
+ /**
88
+ * List of all unique values. If not provided component will get the unique values from the layer.
89
+ * An empty list would mean that there are no unique values for this field on the layer. The component renders nothing then.
90
+ */
91
+ accessor uniqueValues: __geoscene.UniqueValuesResultUniqueValueInfos[] | undefined;
92
+ /** MapView instance, required if uniqueValues is not provided and/or to display dates in the correct timezone */
93
+ accessor view: __geoscene.MapView | __geoscene.SceneView | undefined;
94
+ /**
95
+ * Get all unique values.
96
+ * E.g. to be used to limit how often these unique values need to be requested from the layer.
97
+ */
98
+ getUniqueValues(): Promise<{
99
+ uniqueValues: __geoscene.UniqueValuesResultUniqueValueInfos[];
100
+ partialUniqueValues: boolean;
101
+ } | undefined>;
102
+ /** Sets focus on component */
103
+ setFocus(): Promise<void>;
104
+ /** Emitted if selection has changed */
105
+ readonly geosceneChange: import("@geoscene/lumina").TargetedEvent<this, (number | string)[]>;
106
+ /** Emitted once the component is loaded. Useful when no uniqueValues were passed in. */
107
+ readonly geosceneLoad: import("@geoscene/lumina").TargetedEvent<this, void>;
108
+ /** Emitted if the sort order has changed */
109
+ readonly geosceneSortByChange: import("@geoscene/lumina").TargetedEvent<this, string | undefined>;
110
+ readonly "@eventTypes": {
111
+ geosceneChange: GeosceneUniqueValuesList["geosceneChange"]["detail"];
112
+ geosceneLoad: GeosceneUniqueValuesList["geosceneLoad"]["detail"];
113
+ geosceneSortByChange: GeosceneUniqueValuesList["geosceneSortByChange"]["detail"];
114
+ };
115
+ }