@webwriter/geogebra 1.1.0 → 2.0.2

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 (338) hide show
  1. package/README.md +280 -124
  2. package/custom-elements.json +2255 -1259
  3. package/dist/chunks/af-35CD6HFH.js +12 -0
  4. package/dist/chunks/am-JMDT5LI7.js +12 -0
  5. package/dist/chunks/ar-JL4QKYYL.js +12 -0
  6. package/dist/chunks/az-3SZS6WCY.js +12 -0
  7. package/dist/chunks/be-C4GWVHR2.js +12 -0
  8. package/dist/chunks/bg-6QGE5EQ4.js +12 -0
  9. package/dist/chunks/bn-UM2BV46R.js +12 -0
  10. package/dist/chunks/bs-XE2PWKCS.js +12 -0
  11. package/dist/chunks/ca-ZO2BQKPZ.js +12 -0
  12. package/dist/chunks/ca-balear-GJKWY5R7.js +12 -0
  13. package/dist/chunks/ca-valencia-CNQYSJSJ.js +12 -0
  14. package/dist/chunks/chunk-ANJTU3IB.js +203 -0
  15. package/dist/chunks/chunk-BSUFUO7E.js +65 -0
  16. package/dist/chunks/chunk-RYZMQM25.js +789 -0
  17. package/dist/chunks/cnr-MCZGASOD.js +12 -0
  18. package/dist/chunks/cs-4Q7FRISG.js +12 -0
  19. package/dist/chunks/cy-7VXG3AYH.js +12 -0
  20. package/dist/chunks/da-VDMHGBXD.js +12 -0
  21. package/dist/chunks/de-AT-YM5GCI75.js +12 -0
  22. package/dist/chunks/de-CH-LQNHTGYT.js +12 -0
  23. package/dist/chunks/de-GJT7RSHT.js +12 -0
  24. package/dist/chunks/el-ZVUVWEQ3.js +12 -0
  25. package/dist/chunks/en-AU-PCIYYC4M.js +12 -0
  26. package/dist/chunks/en-CA-37T7YUIL.js +12 -0
  27. package/dist/chunks/en-GB-ZYCA2CIZ.js +12 -0
  28. package/dist/chunks/en-IN-EPHXLNO6.js +12 -0
  29. package/dist/chunks/en-US-ECSJ5HDL.js +12 -0
  30. package/dist/chunks/es-5VBYK2HE.js +12 -0
  31. package/dist/chunks/et-OFQRRTW6.js +12 -0
  32. package/dist/chunks/eu-7TNOYFB7.js +12 -0
  33. package/dist/chunks/fa-KZU6GKWU.js +12 -0
  34. package/dist/chunks/fi-THJEKJPW.js +12 -0
  35. package/dist/chunks/fr-MUVVTBQZ.js +12 -0
  36. package/dist/chunks/ga-UWUVCWOT.js +12 -0
  37. package/dist/chunks/gl-NHQ52YCN.js +12 -0
  38. package/dist/chunks/gu-HVDD4QHO.js +12 -0
  39. package/dist/chunks/ha-2BPTATOZ.js +12 -0
  40. package/dist/chunks/he-MDESCUHJ.js +12 -0
  41. package/dist/chunks/hi-C6BGPR4Y.js +12 -0
  42. package/dist/chunks/hr-77MP3ELT.js +12 -0
  43. package/dist/chunks/hu-7PRNX6NB.js +12 -0
  44. package/dist/chunks/hy-R3VEL63L.js +12 -0
  45. package/dist/chunks/id-O6B2T3Y2.js +12 -0
  46. package/dist/chunks/is-XLNS5CAZ.js +12 -0
  47. package/dist/chunks/it-NZODUGUP.js +12 -0
  48. package/dist/chunks/ja-FFK5WXSB.js +12 -0
  49. package/dist/chunks/jv-GS3IRAIB.js +12 -0
  50. package/dist/chunks/ka-NWIJAO54.js +12 -0
  51. package/dist/chunks/kk-WQFRFG44.js +12 -0
  52. package/dist/chunks/km-AUKBN3YT.js +12 -0
  53. package/dist/chunks/kn-PKZFPECM.js +12 -0
  54. package/dist/chunks/ko-XNGAWKQ4.js +12 -0
  55. package/dist/chunks/ky-AQTYDJIL.js +12 -0
  56. package/dist/chunks/la-ERS7V4N4.js +12 -0
  57. package/dist/chunks/lb-KU3DVPI4.js +12 -0
  58. package/dist/chunks/locale-codes-TGY5LMYX.js +11 -0
  59. package/dist/chunks/lt-6RI4HSG3.js +12 -0
  60. package/dist/chunks/lv-RGIUQVA7.js +12 -0
  61. package/dist/chunks/mk-JMAYXTCL.js +12 -0
  62. package/dist/chunks/ml-5ZAIPAYV.js +12 -0
  63. package/dist/chunks/mn-N2GZBVDP.js +12 -0
  64. package/dist/chunks/mr-2SRCJIBC.js +12 -0
  65. package/dist/chunks/ms-WHD5PUQM.js +12 -0
  66. package/dist/chunks/mt-EXRK5UO6.js +12 -0
  67. package/dist/chunks/my-D2COGDRI.js +12 -0
  68. package/dist/chunks/nb-3XNBS2DU.js +12 -0
  69. package/dist/chunks/ne-PA4KUBGU.js +12 -0
  70. package/dist/chunks/nl-QMM3PBPM.js +12 -0
  71. package/dist/chunks/nn-CLFEMF2K.js +12 -0
  72. package/dist/chunks/no-CV376NZG.js +12 -0
  73. package/dist/chunks/or-KP7CET7X.js +12 -0
  74. package/dist/chunks/pa-CH5JYVXT.js +12 -0
  75. package/dist/chunks/pl-DDW4HT7M.js +12 -0
  76. package/dist/chunks/pt-BR-CVNA2MRU.js +12 -0
  77. package/dist/chunks/pt-CRTRYTDJ.js +12 -0
  78. package/dist/chunks/pt-PT-IZMPF3BY.js +12 -0
  79. package/dist/chunks/ro-FUOGHWJA.js +12 -0
  80. package/dist/chunks/ru-KAT4X5EC.js +12 -0
  81. package/dist/chunks/si-GDAXEOBK.js +12 -0
  82. package/dist/chunks/sk-CDSK6MY5.js +12 -0
  83. package/dist/chunks/sl-TFJQYNA4.js +12 -0
  84. package/dist/chunks/so-TXI6JJPW.js +12 -0
  85. package/dist/chunks/sq-KMM2QIRU.js +12 -0
  86. package/dist/chunks/sr-OTZNEL5Z.js +12 -0
  87. package/dist/chunks/sv-7CANJ6CF.js +12 -0
  88. package/dist/chunks/sw-5JDMTJ5K.js +12 -0
  89. package/dist/chunks/ta-HT4SO7PD.js +12 -0
  90. package/dist/chunks/te-FECCLHOI.js +12 -0
  91. package/dist/chunks/tg-FJWFJWF2.js +12 -0
  92. package/dist/chunks/th-JEP434LN.js +12 -0
  93. package/dist/chunks/tl-GN35ZR2F.js +12 -0
  94. package/dist/chunks/tr-IPVLQUE4.js +12 -0
  95. package/dist/chunks/uk-LHWPGFRV.js +12 -0
  96. package/dist/chunks/ur-7FU4XRAY.js +12 -0
  97. package/dist/chunks/uz-RO7XCKFE.js +12 -0
  98. package/dist/chunks/vi-5PHPTVV4.js +12 -0
  99. package/dist/chunks/zh-Hans-UM7MUEDB.js +12 -0
  100. package/dist/chunks/zh-Hant-7M2P4G7R.js +12 -0
  101. package/dist/chunks/zh-LHCPWZN2.js +12 -0
  102. package/dist/widgets/webwriter-geogebra-3d.js +19 -25827
  103. package/dist/widgets/webwriter-geogebra-classic.js +18 -25826
  104. package/dist/widgets/webwriter-geogebra-geometry.js +18 -25826
  105. package/dist/widgets/webwriter-geogebra-notes.js +18 -25826
  106. package/dist/widgets/webwriter-geogebra-scientific.js +18 -25826
  107. package/dist/widgets/webwriter-geogebra.js +20 -25830
  108. package/editing-config.json +839 -20
  109. package/lit-localize.json +73 -9
  110. package/localization/af.xlf +290 -0
  111. package/localization/am.xlf +290 -0
  112. package/localization/ar.xlf +271 -6
  113. package/localization/az.xlf +290 -0
  114. package/localization/be.xlf +290 -0
  115. package/localization/bg.xlf +271 -6
  116. package/localization/bn.xlf +290 -0
  117. package/localization/bs.xlf +290 -0
  118. package/localization/ca-balear.xlf +290 -0
  119. package/localization/ca-valencia.xlf +290 -0
  120. package/localization/ca.xlf +290 -0
  121. package/localization/cnr.xlf +290 -0
  122. package/localization/cs.xlf +271 -6
  123. package/localization/cy.xlf +290 -0
  124. package/localization/da.xlf +271 -6
  125. package/localization/de-AT.xlf +294 -0
  126. package/localization/de-CH.xlf +294 -0
  127. package/localization/de.xlf +271 -6
  128. package/localization/el.xlf +271 -6
  129. package/localization/es.xlf +271 -6
  130. package/localization/et.xlf +271 -6
  131. package/localization/eu.xlf +290 -0
  132. package/localization/fa.xlf +290 -0
  133. package/localization/fi.xlf +271 -6
  134. package/localization/fr.xlf +271 -6
  135. package/localization/ga.xlf +290 -0
  136. package/localization/generated/af.ts +16 -0
  137. package/localization/generated/am.ts +16 -0
  138. package/localization/generated/ar.ts +6 -12
  139. package/localization/generated/az.ts +16 -0
  140. package/localization/generated/be.ts +16 -0
  141. package/localization/generated/bg.ts +6 -12
  142. package/localization/generated/bn.ts +16 -0
  143. package/localization/generated/bs.ts +16 -0
  144. package/localization/generated/ca-balear.ts +16 -0
  145. package/localization/generated/ca-valencia.ts +16 -0
  146. package/localization/generated/ca.ts +16 -0
  147. package/localization/generated/cnr.ts +16 -0
  148. package/localization/generated/cs.ts +6 -12
  149. package/localization/generated/cy.ts +16 -0
  150. package/localization/generated/da.ts +6 -12
  151. package/localization/generated/de-AT.ts +16 -0
  152. package/localization/generated/de-CH.ts +16 -0
  153. package/localization/generated/de.ts +6 -11
  154. package/localization/generated/el.ts +6 -12
  155. package/localization/generated/en-AU.ts +16 -0
  156. package/localization/generated/en-CA.ts +16 -0
  157. package/localization/generated/en-GB.ts +16 -0
  158. package/localization/generated/en-IN.ts +16 -0
  159. package/localization/generated/en-US.ts +16 -0
  160. package/localization/generated/es.ts +6 -12
  161. package/localization/generated/et.ts +6 -12
  162. package/localization/generated/eu.ts +16 -0
  163. package/localization/generated/fa.ts +16 -0
  164. package/localization/generated/fi.ts +6 -12
  165. package/localization/generated/fr.ts +6 -12
  166. package/localization/generated/ga.ts +16 -0
  167. package/localization/generated/gl.ts +16 -0
  168. package/localization/generated/gu.ts +16 -0
  169. package/localization/generated/ha.ts +16 -0
  170. package/localization/generated/he.ts +16 -0
  171. package/localization/generated/hi.ts +16 -0
  172. package/localization/generated/hr.ts +16 -0
  173. package/localization/generated/hu.ts +6 -12
  174. package/localization/generated/hy.ts +16 -0
  175. package/localization/generated/id.ts +6 -12
  176. package/localization/generated/is.ts +16 -0
  177. package/localization/generated/it.ts +6 -12
  178. package/localization/generated/ja.ts +6 -12
  179. package/localization/generated/jv.ts +16 -0
  180. package/localization/generated/ka.ts +16 -0
  181. package/localization/generated/kk.ts +16 -0
  182. package/localization/generated/km.ts +16 -0
  183. package/localization/generated/kn.ts +16 -0
  184. package/localization/generated/ko.ts +6 -12
  185. package/localization/generated/ky.ts +16 -0
  186. package/localization/generated/la.ts +16 -0
  187. package/localization/generated/lb.ts +16 -0
  188. package/localization/generated/locale-codes.ts +211 -0
  189. package/localization/generated/lt.ts +6 -12
  190. package/localization/generated/lv.ts +6 -12
  191. package/localization/generated/mk.ts +16 -0
  192. package/localization/generated/ml.ts +16 -0
  193. package/localization/generated/mn.ts +16 -0
  194. package/localization/generated/mr.ts +16 -0
  195. package/localization/generated/ms.ts +16 -0
  196. package/localization/generated/mt.ts +16 -0
  197. package/localization/generated/my.ts +16 -0
  198. package/localization/generated/nb.ts +6 -12
  199. package/localization/generated/ne.ts +16 -0
  200. package/localization/generated/nl.ts +6 -12
  201. package/localization/generated/nn.ts +16 -0
  202. package/localization/generated/no.ts +16 -0
  203. package/localization/generated/or.ts +16 -0
  204. package/localization/generated/pa.ts +16 -0
  205. package/localization/generated/pl.ts +6 -12
  206. package/localization/generated/pt-BR.ts +6 -12
  207. package/localization/generated/pt-PT.ts +6 -12
  208. package/localization/generated/pt.ts +16 -0
  209. package/localization/generated/ro.ts +6 -12
  210. package/localization/generated/ru.ts +6 -12
  211. package/localization/generated/si.ts +16 -0
  212. package/localization/generated/sk.ts +6 -12
  213. package/localization/generated/sl.ts +6 -12
  214. package/localization/generated/so.ts +16 -0
  215. package/localization/generated/sq.ts +16 -0
  216. package/localization/generated/sr.ts +16 -0
  217. package/localization/generated/sv.ts +6 -12
  218. package/localization/generated/sw.ts +16 -0
  219. package/localization/generated/ta.ts +16 -0
  220. package/localization/generated/te.ts +16 -0
  221. package/localization/generated/tg.ts +16 -0
  222. package/localization/generated/th.ts +16 -0
  223. package/localization/generated/tl.ts +16 -0
  224. package/localization/generated/tr.ts +6 -12
  225. package/localization/generated/uk.ts +6 -12
  226. package/localization/generated/ur.ts +16 -0
  227. package/localization/generated/uz.ts +16 -0
  228. package/localization/generated/vi.ts +16 -0
  229. package/localization/generated/zh-Hans.ts +16 -0
  230. package/localization/generated/zh-Hant.ts +16 -0
  231. package/localization/generated/zh.ts +16 -0
  232. package/localization/gl.xlf +290 -0
  233. package/localization/gu.xlf +290 -0
  234. package/localization/ha.xlf +290 -0
  235. package/localization/he.xlf +290 -0
  236. package/localization/hi.xlf +290 -0
  237. package/localization/hr.xlf +290 -0
  238. package/localization/hu.xlf +271 -6
  239. package/localization/hy.xlf +290 -0
  240. package/localization/id.xlf +271 -6
  241. package/localization/is.xlf +290 -0
  242. package/localization/it.xlf +271 -6
  243. package/localization/ja.xlf +271 -6
  244. package/localization/jv.xlf +290 -0
  245. package/localization/ka.xlf +290 -0
  246. package/localization/kk.xlf +290 -0
  247. package/localization/km.xlf +290 -0
  248. package/localization/kn.xlf +290 -0
  249. package/localization/ko.xlf +271 -6
  250. package/localization/ky.xlf +290 -0
  251. package/localization/la.xlf +290 -0
  252. package/localization/lb.xlf +290 -0
  253. package/localization/lt.xlf +271 -6
  254. package/localization/lv.xlf +271 -6
  255. package/localization/mk.xlf +290 -0
  256. package/localization/ml.xlf +290 -0
  257. package/localization/mn.xlf +290 -0
  258. package/localization/mr.xlf +290 -0
  259. package/localization/ms.xlf +290 -0
  260. package/localization/mt.xlf +290 -0
  261. package/localization/my.xlf +290 -0
  262. package/localization/nb.xlf +271 -6
  263. package/localization/ne.xlf +290 -0
  264. package/localization/nl.xlf +271 -6
  265. package/localization/nn.xlf +290 -0
  266. package/localization/no.xlf +295 -0
  267. package/localization/or.xlf +290 -0
  268. package/localization/pa.xlf +290 -0
  269. package/localization/pl.xlf +271 -6
  270. package/localization/pt-BR.xlf +271 -6
  271. package/localization/pt-PT.xlf +271 -6
  272. package/localization/pt.xlf +295 -0
  273. package/localization/ro.xlf +271 -6
  274. package/localization/ru.xlf +271 -6
  275. package/localization/si.xlf +290 -0
  276. package/localization/sk.xlf +271 -6
  277. package/localization/sl.xlf +271 -6
  278. package/localization/so.xlf +290 -0
  279. package/localization/sq.xlf +290 -0
  280. package/localization/sr.xlf +290 -0
  281. package/localization/sv.xlf +271 -6
  282. package/localization/sw.xlf +290 -0
  283. package/localization/ta.xlf +290 -0
  284. package/localization/te.xlf +290 -0
  285. package/localization/tg.xlf +290 -0
  286. package/localization/th.xlf +290 -0
  287. package/localization/tl.xlf +290 -0
  288. package/localization/tr.xlf +271 -6
  289. package/localization/uk.xlf +271 -6
  290. package/localization/ur.xlf +290 -0
  291. package/localization/uz.xlf +290 -0
  292. package/localization/vi.xlf +290 -0
  293. package/localization/zh-Hans.xlf +295 -0
  294. package/localization/zh-Hant.xlf +295 -0
  295. package/localization/zh.xlf +295 -0
  296. package/package.json +194 -86
  297. package/src/components/geogebra-app.styles.ts +47 -0
  298. package/{components → src/components}/geogebra-app.ts +237 -332
  299. package/src/model/geogebra-api.ts +148 -0
  300. package/src/model/geogebra-options.ts +72 -0
  301. package/src/model/geogebra-parameters.ts +53 -0
  302. package/src/model/ggb-file.ts +30 -0
  303. package/src/types.d.ts +3 -0
  304. package/{widgets → src/widgets}/webwriter-geogebra-3d.ts +1 -1
  305. package/{widgets → src/widgets}/webwriter-geogebra.ts +1 -2
  306. package/tests/conversions.test.ts +80 -0
  307. package/tests/data-block.test.ts +72 -0
  308. package/tests/helpers.ts +48 -0
  309. package/tests/language.test.ts +49 -0
  310. package/tests/presentation.test.ts +114 -0
  311. package/tsconfig.json +3 -7
  312. package/assets/icons/file-earmark-arrow-up.svg +0 -4
  313. package/components/geogebra-app.styles.ts +0 -10
  314. package/components/geogebra-options.styles.ts +0 -37
  315. package/components/geogebra-options.ts +0 -187
  316. package/custom.d.ts +0 -180
  317. package/dist/widgets/webwriter-geogebra-3d.css +0 -444
  318. package/dist/widgets/webwriter-geogebra-classic.css +0 -444
  319. package/dist/widgets/webwriter-geogebra-geometry.css +0 -444
  320. package/dist/widgets/webwriter-geogebra-notes.css +0 -444
  321. package/dist/widgets/webwriter-geogebra-scientific.css +0 -444
  322. package/dist/widgets/webwriter-geogebra.css +0 -444
  323. package/localization/generated/locale-codes.js +0 -83
  324. package/localization/generated/zh-hans.ts +0 -20
  325. package/localization/generated/zh-hant.ts +0 -20
  326. package/localization/zh-hans.xlf +0 -30
  327. package/localization/zh-hant.xlf +0 -30
  328. package/widgets/webwriter-geogebra-evaluator.ts +0 -15
  329. /package/.github/workflows/{main.yml → publish.yml} +0 -0
  330. /package/localization/pkg/{zh-hans.xliff → zh-Hans.xliff} +0 -0
  331. /package/localization/pkg/{zh-hant.xliff → zh-Hant.xliff} +0 -0
  332. /package/localization/snippets/{zh-hans.xliff → zh-Hans.xliff} +0 -0
  333. /package/localization/snippets/{zh-hant.xliff → zh-Hant.xliff} +0 -0
  334. /package/{utils → src/model}/boolean-attribute-converter.ts +0 -0
  335. /package/{widgets → src/widgets}/webwriter-geogebra-classic.ts +0 -0
  336. /package/{widgets → src/widgets}/webwriter-geogebra-geometry.ts +0 -0
  337. /package/{widgets → src/widgets}/webwriter-geogebra-notes.ts +0 -0
  338. /package/{widgets → src/widgets}/webwriter-geogebra-scientific.ts +0 -0
package/package.json CHANGED
@@ -1,140 +1,199 @@
1
1
  {
2
2
  "name": "@webwriter/geogebra",
3
- "version": "1.1.0",
3
+ "version": "2.0.2",
4
4
  "description": "Use the mathematics learning apps of GeoGebra for algebra and geometry.",
5
5
  "keywords": [
6
6
  "webwriter-widget",
7
- "widget-conceptual",
8
- "widget-informational",
7
+ "widget-simulational",
8
+ "iscedf2013-0541",
9
9
  "widget-online",
10
+ "isced2011-2",
11
+ "isced2011-3",
12
+ "isced2011-4",
13
+ "isced2011-5",
14
+ "isced2011-6",
15
+ "isced2011-7",
16
+ "isced2011-8",
17
+ "widget-allows-pointer-input",
18
+ "widget-allows-keyboard-input",
19
+ "widget-allows-touch-input",
20
+ "widget-responsive",
21
+ "widget-themeable",
22
+ "widget-printable",
23
+ "widget-stateful",
24
+ "widget-configurable",
25
+ "widget-testable",
26
+ "algebra",
27
+ "geometry",
28
+ "spreadsheet",
29
+ "graph",
30
+ "widget-convertible-from-.ggb",
31
+ "widget-convertible-to-.ggb",
32
+ "widget-convertible-to-image/png",
33
+ "widget-convertible-to-image/svg+xml",
34
+ "widget-supports-shared-dependencies",
35
+ "widget-editable",
10
36
  "widget-lang-en",
11
- "widget-lang-de",
12
- "widget-lang-af",
13
- "widget-lang-am",
37
+ "widget-lang-en-US",
38
+ "widget-lang-en-GB",
39
+ "widget-lang-en-CA",
40
+ "widget-lang-en-AU",
41
+ "widget-lang-en-IN",
14
42
  "widget-lang-ar",
15
- "widget-lang-az",
16
43
  "widget-lang-bg",
17
- "widget-lang-bn",
18
- "widget-lang-bs",
19
- "widget-lang-ca",
44
+ "widget-lang-zh",
45
+ "widget-lang-zh-Hans",
46
+ "widget-lang-zh-Hant",
47
+ "widget-lang-hr",
20
48
  "widget-lang-cs",
21
- "widget-lang-cy",
22
49
  "widget-lang-da",
23
- "widget-lang-el",
24
- "widget-lang-eo",
25
- "widget-lang-es",
50
+ "widget-lang-nl",
26
51
  "widget-lang-et",
27
- "widget-lang-eu",
28
- "widget-lang-fa",
29
52
  "widget-lang-fi",
30
- "widget-lang-fil",
31
53
  "widget-lang-fr",
32
- "widget-lang-gl",
33
- "widget-lang-he",
34
- "widget-lang-hi",
35
- "widget-lang-hr",
54
+ "widget-lang-de",
55
+ "widget-lang-de-AT",
56
+ "widget-lang-de-CH",
57
+ "widget-lang-el",
36
58
  "widget-lang-hu",
37
- "widget-lang-hy",
38
- "widget-lang-id",
39
- "widget-lang-is",
59
+ "widget-lang-ga",
40
60
  "widget-lang-it",
41
- "widget-lang-ja",
42
- "widget-lang-ka",
43
- "widget-lang-kk",
44
- "widget-lang-km",
45
- "widget-lang-kn",
46
- "widget-lang-ko",
47
- "widget-lang-lt",
48
61
  "widget-lang-lv",
49
- "widget-lang-mk",
50
- "widget-lang-ml",
51
- "widget-lang-mn",
52
- "widget-lang-mr",
53
- "widget-lang-ms",
54
- "widget-lang-nb",
55
- "widget-lang-ne",
56
- "widget-lang-nl",
57
- "widget-lang-nn",
62
+ "widget-lang-lt",
63
+ "widget-lang-mt",
58
64
  "widget-lang-pl",
59
65
  "widget-lang-pt",
66
+ "widget-lang-pt-PT",
67
+ "widget-lang-pt-BR",
60
68
  "widget-lang-ro",
61
69
  "widget-lang-ru",
62
- "widget-lang-si",
63
70
  "widget-lang-sk",
64
71
  "widget-lang-sl",
72
+ "widget-lang-es",
73
+ "widget-lang-sv",
65
74
  "widget-lang-sq",
75
+ "widget-lang-eu",
76
+ "widget-lang-bn",
77
+ "widget-lang-bs",
78
+ "widget-lang-cnr",
79
+ "widget-lang-ca",
80
+ "widget-lang-ca-valencia",
81
+ "widget-lang-ca-balear",
82
+ "widget-lang-gl",
83
+ "widget-lang-gu",
84
+ "widget-lang-hi",
85
+ "widget-lang-is",
86
+ "widget-lang-ja",
87
+ "widget-lang-kn",
88
+ "widget-lang-ko",
89
+ "widget-lang-lb",
90
+ "widget-lang-mk",
91
+ "widget-lang-mr",
92
+ "widget-lang-ne",
93
+ "widget-lang-no",
94
+ "widget-lang-nb",
95
+ "widget-lang-nn",
96
+ "widget-lang-or",
97
+ "widget-lang-fa",
98
+ "widget-lang-pa",
66
99
  "widget-lang-sr",
67
- "widget-lang-sv",
68
- "widget-lang-ta",
69
- "widget-lang-tg",
70
- "widget-lang-th",
100
+ "widget-lang-si",
101
+ "widget-lang-te",
71
102
  "widget-lang-tr",
72
- "widget-lang-ug",
73
103
  "widget-lang-uk",
74
- "widget-lang-uz",
104
+ "widget-lang-ur",
105
+ "widget-lang-cy",
106
+ "widget-lang-ta",
107
+ "widget-lang-ml",
108
+ "widget-lang-jv",
109
+ "widget-lang-id",
110
+ "widget-lang-ms",
111
+ "widget-lang-tl",
112
+ "widget-lang-my",
113
+ "widget-lang-th",
75
114
  "widget-lang-vi",
76
- "widget-lang-xh",
77
- "widget-lang-yi",
78
- "widget-lang-zh",
79
- "iscedf2013-05",
80
- "isced2011-2",
81
- "isced2011-3",
82
- "isced2011-4",
83
- "isced2011-5",
84
- "isced2011-6",
85
- "isced2011-7",
86
- "isced2011-8",
87
- "algebra",
88
- "geometry",
89
- "spreadsheet",
90
- "table",
91
- "graph",
92
- "widget-lang-pt-PT",
93
- "widget-lang-pt-BR",
94
- "widget-lang-zh-hans",
95
- "widget-lang-zh-hant"
115
+ "widget-lang-km",
116
+ "widget-lang-kk",
117
+ "widget-lang-ky",
118
+ "widget-lang-mn",
119
+ "widget-lang-uz",
120
+ "widget-lang-tg",
121
+ "widget-lang-ka",
122
+ "widget-lang-hy",
123
+ "widget-lang-he",
124
+ "widget-lang-az",
125
+ "widget-lang-be",
126
+ "widget-lang-la",
127
+ "widget-lang-am",
128
+ "widget-lang-so",
129
+ "widget-lang-sw",
130
+ "widget-lang-ha",
131
+ "widget-lang-af"
96
132
  ],
97
133
  "license": "MIT",
98
134
  "author": "Frederic Salmen <frederic@fsalmen.de>",
99
135
  "scripts": {
100
- "prepublishOnly": "npx @webwriter/build",
101
- "dev": "npx @webwriter/build dev",
136
+ "prepublishOnly": "npx @webwriter/build --shared-dependencies",
137
+ "dev": "npx @webwriter/build dev --shared-dependencies",
102
138
  "localize": "lit-localize extract && npx @webwriter/build localize && lit-localize build"
103
139
  },
104
140
  "dependencies": {
105
141
  "@lit/localize": "^0.12.2",
106
142
  "@shoelace-style/shoelace": "^2.20.1",
107
- "@webwriter/lit": "^2.1.6",
108
- "lit": "^3"
143
+ "@webwriter/lit": "^3.4.0",
144
+ "@webwriter/widget": "^1.6.0",
145
+ "lit": "^3.3.3"
109
146
  },
110
147
  "devDependencies": {
111
- "@lit/localize-tools": "^0.8"
148
+ "@lit/localize-tools": "^0.8.2",
149
+ "@types/chai": "^5.2.3",
150
+ "@types/mocha": "^10.0.10",
151
+ "@webwriter/build": "^1.15.0",
152
+ "chai": "^6.3.0",
153
+ "mocha": "^12.0.3",
154
+ "typescript": "^7.0.2"
112
155
  },
113
156
  "exports": {
114
157
  "./widgets/webwriter-geogebra.*": {
115
- "source": "./widgets/webwriter-geogebra.ts",
158
+ "source": "./src/widgets/webwriter-geogebra.ts",
116
159
  "default": "./dist/widgets/webwriter-geogebra.*"
117
160
  },
118
161
  "./widgets/webwriter-geogebra-geometry.*": {
119
- "source": "./widgets/webwriter-geogebra-geometry.ts",
162
+ "source": "./src/widgets/webwriter-geogebra-geometry.ts",
120
163
  "default": "./dist/widgets/webwriter-geogebra-geometry.*"
121
164
  },
122
165
  "./widgets/webwriter-geogebra-3d.*": {
123
- "source": "./widgets/webwriter-geogebra-3d.ts",
166
+ "source": "./src/widgets/webwriter-geogebra-3d.ts",
124
167
  "default": "./dist/widgets/webwriter-geogebra-3d.*"
125
168
  },
126
169
  "./widgets/webwriter-geogebra-notes.*": {
127
- "source": "./widgets/webwriter-geogebra-notes.ts",
170
+ "source": "./src/widgets/webwriter-geogebra-notes.ts",
128
171
  "default": "./dist/widgets/webwriter-geogebra-notes.*"
129
172
  },
130
173
  "./widgets/webwriter-geogebra-scientific.*": {
131
- "source": "./widgets/webwriter-geogebra-scientific.ts",
174
+ "source": "./src/widgets/webwriter-geogebra-scientific.ts",
132
175
  "default": "./dist/widgets/webwriter-geogebra-scientific.*"
133
176
  },
134
177
  "./widgets/webwriter-geogebra-classic.*": {
135
- "source": "./widgets/webwriter-geogebra-classic.ts",
178
+ "source": "./src/widgets/webwriter-geogebra-classic.ts",
136
179
  "default": "./dist/widgets/webwriter-geogebra-classic.*"
137
180
  },
181
+ "./tests/data-block.*": {
182
+ "source": "./tests/data-block.test.ts",
183
+ "default": "./dist/tests/data-block.*"
184
+ },
185
+ "./tests/language.*": {
186
+ "source": "./tests/language.test.ts",
187
+ "default": "./dist/tests/language.*"
188
+ },
189
+ "./tests/presentation.*": {
190
+ "source": "./tests/presentation.test.ts",
191
+ "default": "./dist/tests/presentation.*"
192
+ },
193
+ "./tests/conversions.*": {
194
+ "source": "./tests/conversions.test.ts",
195
+ "default": "./dist/tests/conversions.*"
196
+ },
138
197
  "./icon": "./icon.svg",
139
198
  "./editing-config.json": "./editing-config.json",
140
199
  "./custom-elements.json": "./custom-elements.json"
@@ -142,23 +201,72 @@
142
201
  "editingConfig": {
143
202
  ".": {},
144
203
  "./widgets/webwriter-geogebra": {
145
- "content": "text*"
204
+ "content": "text*",
205
+ "importFormats": [
206
+ ".ggb"
207
+ ],
208
+ "exportFormats": [
209
+ ".ggb",
210
+ "image/png",
211
+ "image/svg+xml"
212
+ ]
146
213
  },
147
214
  "./widgets/webwriter-geogebra-geometry": {
148
- "content": "text*"
215
+ "content": "text*",
216
+ "importFormats": [
217
+ ".ggb"
218
+ ],
219
+ "exportFormats": [
220
+ ".ggb",
221
+ "image/png",
222
+ "image/svg+xml"
223
+ ]
149
224
  },
150
225
  "./widgets/webwriter-geogebra-3d": {
151
- "content": "text*"
226
+ "content": "text*",
227
+ "importFormats": [
228
+ ".ggb"
229
+ ],
230
+ "exportFormats": [
231
+ ".ggb",
232
+ "image/png",
233
+ "image/svg+xml"
234
+ ]
152
235
  },
153
236
  "./widgets/webwriter-geogebra-notes": {
154
- "content": "text*"
237
+ "content": "text*",
238
+ "importFormats": [
239
+ ".ggb"
240
+ ],
241
+ "exportFormats": [
242
+ ".ggb",
243
+ "image/png",
244
+ "image/svg+xml"
245
+ ]
155
246
  },
156
247
  "./widgets/webwriter-geogebra-scientific": {
157
- "content": "text*"
248
+ "content": "text*",
249
+ "importFormats": [
250
+ ".ggb"
251
+ ],
252
+ "exportFormats": [
253
+ ".ggb",
254
+ "image/png",
255
+ "image/svg+xml"
256
+ ]
158
257
  },
159
258
  "./widgets/webwriter-geogebra-classic": {
160
- "content": "text*"
259
+ "content": "text*",
260
+ "importFormats": [
261
+ ".ggb"
262
+ ],
263
+ "exportFormats": [
264
+ ".ggb",
265
+ "image/png",
266
+ "image/svg+xml"
267
+ ]
161
268
  }
162
269
  },
163
- "customElements": "custom-elements.json"
164
- }
270
+ "customElements": "custom-elements.json",
271
+ "repository": "https://github.com/webwriter-app/geogebra"
272
+ }
@@ -0,0 +1,47 @@
1
+ import { css } from "lit";
2
+
3
+ export const geogebraAppStyles = css`
4
+ :host {
5
+ display: block;
6
+ box-sizing: border-box;
7
+ min-width: 300px;
8
+ max-width: 2100px;
9
+ min-height: 18rem;
10
+ color: var(--ww-text-color, inherit);
11
+ font-family: var(--ww-font-family, inherit);
12
+ }
13
+
14
+ iframe {
15
+ display: block;
16
+ border: none;
17
+ width: 100%;
18
+ aspect-ratio: 16/9;
19
+ min-height: 18rem;
20
+ }
21
+
22
+ iframe:focus-visible {
23
+ outline: 2px solid var(--ww-link-color, currentColor);
24
+ outline-offset: -2px;
25
+ }
26
+
27
+ .print-note {
28
+ display: none;
29
+ }
30
+
31
+ @media print {
32
+ :host {
33
+ max-width: 100%;
34
+ break-inside: avoid;
35
+ }
36
+
37
+ .applet:not([data-ready]) iframe {
38
+ display: none;
39
+ }
40
+
41
+ .applet:not([data-ready]) .print-note {
42
+ display: block;
43
+ padding: 0.75rem;
44
+ border: 1px solid currentColor;
45
+ }
46
+ }
47
+ `