@simple-reporting/base 0.0.1

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 (483) hide show
  1. package/.github/workflows/npm-publish.yml +25 -0
  2. package/.nvmrc +1 -0
  3. package/.prettierrc +6 -0
  4. package/README.md +23 -0
  5. package/cli.js +114 -0
  6. package/dev/.ddev/config.yaml +279 -0
  7. package/dev/.ddev/nginx_full/custom.conf +12 -0
  8. package/dev/.env +1 -0
  9. package/dev/.env.development +1 -0
  10. package/dev/.eslintrc.cjs +15 -0
  11. package/dev/.nvmrc +1 -0
  12. package/dev/.prettierrc.json +8 -0
  13. package/dev/.vscode/extensions.json +3 -0
  14. package/dev/.vscode/settings.json +4 -0
  15. package/dev/README.md +45 -0
  16. package/dev/env.d.ts +1 -0
  17. package/dev/index.html +17 -0
  18. package/dev/ldd.html +7 -0
  19. package/dev/livingdocs/Media/image/app.scss +25 -0
  20. package/dev/livingdocs/Media/image/general.scss +11 -0
  21. package/dev/livingdocs/Media/image/image.html +46 -0
  22. package/dev/livingdocs/Media/image/ldd.scss +1 -0
  23. package/dev/livingdocs/Media/image/pdf.scss +1 -0
  24. package/dev/livingdocs/Media/image/print.scss +7 -0
  25. package/dev/livingdocs/Media/image/properties.json +41 -0
  26. package/dev/livingdocs/Media/image/web.scss +0 -0
  27. package/dev/livingdocs/Media/image/word.scss +1 -0
  28. package/dev/livingdocs/Properties/grid/app.scss +1 -0
  29. package/dev/livingdocs/Properties/grid/general.scss +95 -0
  30. package/dev/livingdocs/Properties/grid/ldd.scss +1 -0
  31. package/dev/livingdocs/Properties/grid/pdf.scss +1 -0
  32. package/dev/livingdocs/Properties/grid/print.scss +94 -0
  33. package/dev/livingdocs/Properties/grid/properties.json +68 -0
  34. package/dev/livingdocs/Properties/grid/web.scss +98 -0
  35. package/dev/livingdocs/Properties/grid/word.scss +1 -0
  36. package/dev/livingdocs/Text/paragraph/general.scss +9 -0
  37. package/dev/livingdocs/Text/paragraph/paragraph.html +22 -0
  38. package/dev/livingdocs/Titles/title-h1/general.scss +10 -0
  39. package/dev/livingdocs/Titles/title-h1/title-h1.html +16 -0
  40. package/dev/livingdocs/Titles/title-h2/app.scss +1 -0
  41. package/dev/livingdocs/Titles/title-h2/general.scss +13 -0
  42. package/dev/livingdocs/Titles/title-h2/ldd.scss +1 -0
  43. package/dev/livingdocs/Titles/title-h2/pdf.scss +1 -0
  44. package/dev/livingdocs/Titles/title-h2/print.scss +36 -0
  45. package/dev/livingdocs/Titles/title-h2/title-h2.html +24 -0
  46. package/dev/livingdocs/Titles/title-h2/web.scss +27 -0
  47. package/dev/livingdocs/Titles/title-h2/word.scss +1 -0
  48. package/dev/livingdocs/Titles/title-h3/app.scss +1 -0
  49. package/dev/livingdocs/Titles/title-h3/general.scss +13 -0
  50. package/dev/livingdocs/Titles/title-h3/ldd.scss +1 -0
  51. package/dev/livingdocs/Titles/title-h3/pdf.scss +1 -0
  52. package/dev/livingdocs/Titles/title-h3/print.scss +34 -0
  53. package/dev/livingdocs/Titles/title-h3/title-h3.html +24 -0
  54. package/dev/livingdocs/Titles/title-h3/web.scss +27 -0
  55. package/dev/livingdocs/Titles/title-h3/word.scss +1 -0
  56. package/dev/livingdocs/Titles/title-h4/app.scss +1 -0
  57. package/dev/livingdocs/Titles/title-h4/general.scss +13 -0
  58. package/dev/livingdocs/Titles/title-h4/ldd.scss +1 -0
  59. package/dev/livingdocs/Titles/title-h4/pdf.scss +1 -0
  60. package/dev/livingdocs/Titles/title-h4/print.scss +34 -0
  61. package/dev/livingdocs/Titles/title-h4/title-h4.html +24 -0
  62. package/dev/livingdocs/Titles/title-h4/web.scss +27 -0
  63. package/dev/livingdocs/Titles/title-h4/word.scss +1 -0
  64. package/dev/livingdocs/Titles/title-h5/general.scss +10 -0
  65. package/dev/livingdocs/Titles/title-h5/title-h5.html +16 -0
  66. package/dev/livingdocs/Titles/title-h6/general.scss +10 -0
  67. package/dev/livingdocs/Titles/title-h6/title-h6.html +16 -0
  68. package/dev/livingdocs.config.json +376 -0
  69. package/dev/nswow/ArticleAutoloader.ts +100 -0
  70. package/dev/nswow/ArticleLoader.ts +91 -0
  71. package/dev/nswow/colors.scss +3 -0
  72. package/dev/nswow/config.scss +13 -0
  73. package/dev/nswow/core-styles.scss +2 -0
  74. package/dev/nswow/fonts.scss +2 -0
  75. package/dev/nswow/grid.scss +2 -0
  76. package/dev/nswow/helpers.scss +2 -0
  77. package/dev/nswow/index.scss +9 -0
  78. package/dev/nswow/meta.scss +2 -0
  79. package/dev/nswow/spacer.scss +2 -0
  80. package/dev/nswow/system.scss +2 -0
  81. package/dev/nswow/typography.scss +3 -0
  82. package/dev/nswow.config.json +293 -0
  83. package/dev/package.json +61 -0
  84. package/dev/pdf/pdf-configuration-debug.xml +6 -0
  85. package/dev/pdf/pdf-configuration.xml +3 -0
  86. package/dev/pdf.ts +1 -0
  87. package/dev/public/.keep +0 -0
  88. package/dev/src/App.vue +44 -0
  89. package/dev/src/Autoload.ts +6 -0
  90. package/dev/src/assets/fonts/Roboto/roboto-v30-latin-300.woff2 +0 -0
  91. package/dev/src/assets/fonts/Roboto/roboto-v30-latin-700.woff2 +0 -0
  92. package/dev/src/assets/fonts/Roboto/roboto-v30-latin-italic.woff2 +0 -0
  93. package/dev/src/assets/fonts/Roboto/roboto-v30-latin-regular.woff2 +0 -0
  94. package/dev/src/assets/images/mms-logo-black.svg +91 -0
  95. package/dev/src/assets/images/mms-logo-white.svg +105 -0
  96. package/dev/src/assets/scss/app.scss +39 -0
  97. package/dev/src/assets/scss/general.scss +17 -0
  98. package/dev/src/assets/scss/ldd.scss +27 -0
  99. package/dev/src/assets/scss/pdf.scss +2 -0
  100. package/dev/src/assets/scss/print.scss +1 -0
  101. package/dev/src/assets/scss/web.scss +1 -0
  102. package/dev/src/assets/scss/word.scss +2 -0
  103. package/dev/src/components/LanguageSwitch.vue +100 -0
  104. package/dev/src/components/MainNavigation.vue +209 -0
  105. package/dev/src/components/MenuItem/MenuArticle.vue +15 -0
  106. package/dev/src/components/MenuItem/MenuEntry.vue +26 -0
  107. package/dev/src/components/MenuItem/MenuExternal.vue +28 -0
  108. package/dev/src/components/MenuItem/index.ts +5 -0
  109. package/dev/src/components/PageFooter.vue +86 -0
  110. package/dev/src/components/PageHeader.vue +149 -0
  111. package/dev/src/components/PageModal.vue +95 -0
  112. package/dev/src/components/PrevNext.vue +144 -0
  113. package/dev/src/components/ScrollToTop.vue +63 -0
  114. package/dev/src/components/SrlPage/KFCApplication/KFCApplication.vue +715 -0
  115. package/dev/src/components/SrlPage/KFCApplication/KFCDropdownCharts.vue +112 -0
  116. package/dev/src/components/SrlPage/KFCApplication/KFCDropdownPeriod.vue +85 -0
  117. package/dev/src/components/SrlPage/KFCApplication/KFCTable.vue +63 -0
  118. package/dev/src/components/SrlPage/KFCApplication/hooks/kfcData.ts +9 -0
  119. package/dev/src/components/SrlPage/KFCApplication/models/KFCApplication.ts +183 -0
  120. package/dev/src/components/SrlPage/KFCApplication/scss/_highcharts-basic.scss +1136 -0
  121. package/dev/src/components/SrlPage/KFCApplication/scss/_highcharts-custom.scss +71 -0
  122. package/dev/src/components/SrlPage/KFCApplication/scss/_highcharts-general.scss +113 -0
  123. package/dev/src/components/SrlPage/KFCApplication/scss/_iz-keyfigure-comparison-dropdown.scss +189 -0
  124. package/dev/src/components/SrlPage/KFCApplication/scss/_iz-keyfigure-comparison.scss +151 -0
  125. package/dev/src/components/SrlPage/KFCApplication/scss/_kfc-loading.scss +40 -0
  126. package/dev/src/components/SrlPage/KFCApplication/scss/_kfc-print.scss +20 -0
  127. package/dev/src/components/SrlPage/KFCApplication/scss/_srl-button-kfc.scss +21 -0
  128. package/dev/src/components/SrlPage/KFCApplication/scss/_variables.scss +10 -0
  129. package/dev/src/components/SrlPage/KFCApplication/services/xlsxParser.ts +194 -0
  130. package/dev/src/components/SrlPage/KFCApplication/theme/SvgColumnView.vue +28 -0
  131. package/dev/src/components/SrlPage/KFCApplication/theme/SvgDownloadChart.vue +26 -0
  132. package/dev/src/components/SrlPage/KFCApplication/theme/SvgDropdown.vue +18 -0
  133. package/dev/src/components/SrlPage/KFCApplication/theme/SvgIndexedValues.vue +18 -0
  134. package/dev/src/components/SrlPage/KFCApplication/theme/SvgLegendSwap.vue +18 -0
  135. package/dev/src/components/SrlPage/KFCApplication/theme/SvgLineView.vue +28 -0
  136. package/dev/src/components/SrlPage/KFCApplication/theme/SvgPDFChart.vue +26 -0
  137. package/dev/src/components/SrlPage/KFCApplication/theme/SvgPrintChart.vue +33 -0
  138. package/dev/src/components/SrlPage/KFCApplication/theme/SvgTableView.vue +67 -0
  139. package/dev/src/components/SrlPage/KFCApplication/utils/XDownloader.js +455 -0
  140. package/dev/src/components/SrlPage/KFCApplication/utils/XDownloaderStyle.js +44 -0
  141. package/dev/src/components/SrlPage/KFCApplication/utils/XTableNamer.js +68 -0
  142. package/dev/src/composables/config.ts +48 -0
  143. package/dev/src/i18n/index.ts +51 -0
  144. package/dev/src/i18n/translation.ts +85 -0
  145. package/dev/src/locales/de.json +15 -0
  146. package/dev/src/locales/en.json +15 -0
  147. package/dev/src/main.ts +16 -0
  148. package/dev/src/router/index.ts +47 -0
  149. package/dev/src/types/nswow.d.ts +73 -0
  150. package/dev/src/utils/variables.ts +13 -0
  151. package/dev/src/views/ArticleView.vue +77 -0
  152. package/dev/src/views/DownloadsView.vue +88 -0
  153. package/dev/src/views/HomeView.vue +35 -0
  154. package/dev/src/views/PageNotFound.vue +73 -0
  155. package/dev/src/views/SearchView.vue +126 -0
  156. package/dev/tsconfig.app.json +16 -0
  157. package/dev/tsconfig.json +14 -0
  158. package/dev/tsconfig.node.json +19 -0
  159. package/dev/tsconfig.vitest.json +11 -0
  160. package/dev/vite.config.ts +27 -0
  161. package/dev/vitest.config.ts +14 -0
  162. package/dev/word.ts +1 -0
  163. package/livingdocs/Buttons/button/app.scss +1 -0
  164. package/livingdocs/Buttons/button/button.html +18 -0
  165. package/livingdocs/Buttons/button/general.scss +33 -0
  166. package/livingdocs/Buttons/button/ldd.scss +1 -0
  167. package/livingdocs/Buttons/button/pdf.scss +1 -0
  168. package/livingdocs/Buttons/button/word.scss +1 -0
  169. package/livingdocs/Buttons/button-container/app.scss +1 -0
  170. package/livingdocs/Buttons/button-container/button-container.html +31 -0
  171. package/livingdocs/Buttons/button-container/general.scss +12 -0
  172. package/livingdocs/Buttons/button-container/ldd.scss +1 -0
  173. package/livingdocs/Buttons/button-container/pdf.scss +3 -0
  174. package/livingdocs/Buttons/button-container/properties.json +19 -0
  175. package/livingdocs/Buttons/button-container/word.scss +3 -0
  176. package/livingdocs/CV/cv-timeline/app.scss +1 -0
  177. package/livingdocs/CV/cv-timeline/cv-timeline.html +19 -0
  178. package/livingdocs/CV/cv-timeline/general.scss +1 -0
  179. package/livingdocs/CV/cv-timeline/ldd.scss +1 -0
  180. package/livingdocs/CV/cv-timeline/pdf.scss +1 -0
  181. package/livingdocs/CV/cv-timeline/print.scss +35 -0
  182. package/livingdocs/CV/cv-timeline/web.scss +27 -0
  183. package/livingdocs/CV/cv-timeline/word.scss +1 -0
  184. package/livingdocs/Container/column-container/column-container.html +44 -0
  185. package/livingdocs/Container/column-container/general.scss +105 -0
  186. package/livingdocs/Container/column-container/properties.json +83 -0
  187. package/livingdocs/Lists/alphanumeric-list-group/alphanumeric-list-group.html +25 -0
  188. package/livingdocs/Lists/alphanumeric-list-group/app.scss +1 -0
  189. package/livingdocs/Lists/alphanumeric-list-group/general.scss +5 -0
  190. package/livingdocs/Lists/alphanumeric-list-group/ldd.scss +1 -0
  191. package/livingdocs/Lists/alphanumeric-list-group/pdf.scss +1 -0
  192. package/livingdocs/Lists/alphanumeric-list-group/print.scss +0 -0
  193. package/livingdocs/Lists/alphanumeric-list-group/web.scss +0 -0
  194. package/livingdocs/Lists/alphanumeric-list-group/word.scss +1 -0
  195. package/livingdocs/Lists/list-item/app.scss +1 -0
  196. package/livingdocs/Lists/list-item/general.scss +4 -0
  197. package/livingdocs/Lists/list-item/ldd.scss +1 -0
  198. package/livingdocs/Lists/list-item/list-item.html +17 -0
  199. package/livingdocs/Lists/list-item/pdf.scss +1 -0
  200. package/livingdocs/Lists/list-item/print.scss +0 -0
  201. package/livingdocs/Lists/list-item/web.scss +0 -0
  202. package/livingdocs/Lists/list-item/word.scss +1 -0
  203. package/livingdocs/Lists/ordered-list-group/app.scss +1 -0
  204. package/livingdocs/Lists/ordered-list-group/general.scss +5 -0
  205. package/livingdocs/Lists/ordered-list-group/ldd.scss +1 -0
  206. package/livingdocs/Lists/ordered-list-group/ordered-list-group.html +25 -0
  207. package/livingdocs/Lists/ordered-list-group/pdf.scss +1 -0
  208. package/livingdocs/Lists/ordered-list-group/print.scss +0 -0
  209. package/livingdocs/Lists/ordered-list-group/web.scss +0 -0
  210. package/livingdocs/Lists/ordered-list-group/word.scss +1 -0
  211. package/livingdocs/Lists/unordered-list-group/app.scss +1 -0
  212. package/livingdocs/Lists/unordered-list-group/general.scss +5 -0
  213. package/livingdocs/Lists/unordered-list-group/ldd.scss +1 -0
  214. package/livingdocs/Lists/unordered-list-group/pdf.scss +1 -0
  215. package/livingdocs/Lists/unordered-list-group/print.scss +0 -0
  216. package/livingdocs/Lists/unordered-list-group/unordered-list-group.html +25 -0
  217. package/livingdocs/Lists/unordered-list-group/web.scss +0 -0
  218. package/livingdocs/Lists/unordered-list-group/word.scss +1 -0
  219. package/livingdocs/Media/chart/app.scss +19 -0
  220. package/livingdocs/Media/chart/chart.html +29 -0
  221. package/livingdocs/Media/chart/general.scss +11 -0
  222. package/livingdocs/Media/chart/ldd.scss +1 -0
  223. package/livingdocs/Media/chart/pdf.scss +9 -0
  224. package/livingdocs/Media/chart/print.scss +0 -0
  225. package/livingdocs/Media/chart/properties.json +41 -0
  226. package/livingdocs/Media/chart/web.scss +0 -0
  227. package/livingdocs/Media/chart/word.scss +1 -0
  228. package/livingdocs/Media/graphic/app.scss +1 -0
  229. package/livingdocs/Media/graphic/general.scss +18 -0
  230. package/livingdocs/Media/graphic/graphic.html +29 -0
  231. package/livingdocs/Media/graphic/ldd.scss +1 -0
  232. package/livingdocs/Media/graphic/pdf.scss +1 -0
  233. package/livingdocs/Media/graphic/print.scss +0 -0
  234. package/livingdocs/Media/graphic/properties.json +36 -0
  235. package/livingdocs/Media/graphic/web.scss +0 -0
  236. package/livingdocs/Media/graphic/word.scss +1 -0
  237. package/livingdocs/Media/image/app.scss +25 -0
  238. package/livingdocs/Media/image/general.scss +11 -0
  239. package/livingdocs/Media/image/image.html +55 -0
  240. package/livingdocs/Media/image/ldd.scss +1 -0
  241. package/livingdocs/Media/image/pdf.scss +1 -0
  242. package/livingdocs/Media/image/print.scss +7 -0
  243. package/livingdocs/Media/image/properties.json +41 -0
  244. package/livingdocs/Media/image/web.scss +0 -0
  245. package/livingdocs/Media/image/word.scss +1 -0
  246. package/livingdocs/Media/nswow-table/app.scss +2 -0
  247. package/livingdocs/Media/nswow-table/app.ts +35 -0
  248. package/livingdocs/Media/nswow-table/general.scss +281 -0
  249. package/livingdocs/Media/nswow-table/ldd.scss +2 -0
  250. package/livingdocs/Media/nswow-table/nswow-table.html +30 -0
  251. package/livingdocs/Media/nswow-table/pdf.scss +8 -0
  252. package/livingdocs/Media/nswow-table/print.scss +0 -0
  253. package/livingdocs/Media/nswow-table/properties.json +66 -0
  254. package/livingdocs/Media/nswow-table/web.scss +23 -0
  255. package/livingdocs/Media/nswow-table/word.scss +2 -0
  256. package/livingdocs/Media/video/app.scss +1 -0
  257. package/livingdocs/Media/video/general.scss +7 -0
  258. package/livingdocs/Media/video/ldd.scss +1 -0
  259. package/livingdocs/Media/video/pdf.scss +1 -0
  260. package/livingdocs/Media/video/print.scss +5 -0
  261. package/livingdocs/Media/video/properties.json +41 -0
  262. package/livingdocs/Media/video/video.html +26 -0
  263. package/livingdocs/Media/video/web.scss +0 -0
  264. package/livingdocs/Media/video/word.scss +1 -0
  265. package/livingdocs/Misc/accordion/accordion.html +56 -0
  266. package/livingdocs/Misc/accordion/app.scss +63 -0
  267. package/livingdocs/Misc/accordion/app.ts +10 -0
  268. package/livingdocs/Misc/accordion/general.scss +44 -0
  269. package/livingdocs/Misc/accordion/ldd.scss +36 -0
  270. package/livingdocs/Misc/accordion/pdf.scss +39 -0
  271. package/livingdocs/Misc/accordion/word.scss +39 -0
  272. package/livingdocs/Misc/anchor/anchor.html +15 -0
  273. package/livingdocs/Misc/anchor/app.scss +10 -0
  274. package/livingdocs/Misc/anchor/app.ts +11 -0
  275. package/livingdocs/Misc/anchor/general.scss +1 -0
  276. package/livingdocs/Misc/anchor/pdf.scss +1 -0
  277. package/livingdocs/Misc/anchor/print.scss +3 -0
  278. package/livingdocs/Misc/anchor/word.scss +1 -0
  279. package/livingdocs/Misc/spacer/app.scss +1 -0
  280. package/livingdocs/Misc/spacer/general.scss +8 -0
  281. package/livingdocs/Misc/spacer/ldd.scss +1 -0
  282. package/livingdocs/Misc/spacer/pdf.scss +1 -0
  283. package/livingdocs/Misc/spacer/print.scss +18 -0
  284. package/livingdocs/Misc/spacer/properties.json +52 -0
  285. package/livingdocs/Misc/spacer/spacer.html +12 -0
  286. package/livingdocs/Misc/spacer/web.scss +18 -0
  287. package/livingdocs/Misc/spacer/word.scss +1 -0
  288. package/livingdocs/PDF_only/pdf-cover/ldd.scss +42 -0
  289. package/livingdocs/PDF_only/pdf-cover/pdf-cover.html +29 -0
  290. package/livingdocs/PDF_only/pdf-cover/pdf.scss +1 -0
  291. package/livingdocs/PDF_only/pdf-cover/print.scss +0 -0
  292. package/livingdocs/PDF_only/pdf-cover/word.scss +1 -0
  293. package/livingdocs/PDF_only/pdf-cover-chapter/ldd.scss +19 -0
  294. package/livingdocs/PDF_only/pdf-cover-chapter/pdf-chapter-cover.html +18 -0
  295. package/livingdocs/PDF_only/pdf-cover-chapter/pdf.scss +1 -0
  296. package/livingdocs/PDF_only/pdf-cover-chapter/print.scss +19 -0
  297. package/livingdocs/PDF_only/pdf-cover-chapter/word.scss +1 -0
  298. package/livingdocs/PDF_only/pdf-pagebreak/general.scss +4 -0
  299. package/livingdocs/PDF_only/pdf-pagebreak/ldd.scss +5 -0
  300. package/livingdocs/PDF_only/pdf-pagebreak/pdf-pagebreak.html +8 -0
  301. package/livingdocs/PDF_only/pdf-publication-title/general.scss +5 -0
  302. package/livingdocs/PDF_only/pdf-publication-title/pdf-publication-title.html +15 -0
  303. package/livingdocs/PDF_only/pdf-toc-item/general.scss +41 -0
  304. package/livingdocs/PDF_only/pdf-toc-item/pdf-toc-item.html +33 -0
  305. package/livingdocs/PDF_only/pdf-toc-item/properties.json +7 -0
  306. package/livingdocs/PDF_only/pdf-toc-item-blank/general.scss +5 -0
  307. package/livingdocs/PDF_only/pdf-toc-item-blank/pdf-toc-item-blank.html +11 -0
  308. package/livingdocs/PDF_only/pdf-toc-item-title/general.scss +5 -0
  309. package/livingdocs/PDF_only/pdf-toc-item-title/pdf-toc-item-title.html +11 -0
  310. package/livingdocs/PDF_only/pdf-toc-page/app.scss +1 -0
  311. package/livingdocs/PDF_only/pdf-toc-page/general.scss +1 -0
  312. package/livingdocs/PDF_only/pdf-toc-page/ldd.scss +1 -0
  313. package/livingdocs/PDF_only/pdf-toc-page/pdf-toc-page.html +33 -0
  314. package/livingdocs/PDF_only/pdf-toc-page/pdf.scss +1 -0
  315. package/livingdocs/PDF_only/pdf-toc-page/properties.json +12 -0
  316. package/livingdocs/PDF_only/pdf-toc-page/word.scss +1 -0
  317. package/livingdocs/PDF_only/pdf-video-link/ldd.scss +16 -0
  318. package/livingdocs/PDF_only/pdf-video-link/pdf-video-link.html +41 -0
  319. package/livingdocs/PDF_only/pdf-video-link/pdf.scss +1 -0
  320. package/livingdocs/PDF_only/pdf-video-link/print.scss +12 -0
  321. package/livingdocs/PDF_only/pdf-video-link/word.scss +1 -0
  322. package/livingdocs/Properties/grid/app.scss +1 -0
  323. package/livingdocs/Properties/grid/general.scss +95 -0
  324. package/livingdocs/Properties/grid/ldd.scss +1 -0
  325. package/livingdocs/Properties/grid/pdf.scss +1 -0
  326. package/livingdocs/Properties/grid/print.scss +94 -0
  327. package/livingdocs/Properties/grid/properties.json +68 -0
  328. package/livingdocs/Properties/grid/web.scss +98 -0
  329. package/livingdocs/Properties/grid/word.scss +1 -0
  330. package/livingdocs/Signatures/signature-container/app.scss +1 -0
  331. package/livingdocs/Signatures/signature-container/general.scss +7 -0
  332. package/livingdocs/Signatures/signature-container/ldd.scss +1 -0
  333. package/livingdocs/Signatures/signature-container/pdf.scss +1 -0
  334. package/livingdocs/Signatures/signature-container/print.scss +0 -0
  335. package/livingdocs/Signatures/signature-container/signature-container.html +30 -0
  336. package/livingdocs/Signatures/signature-container/web.scss +0 -0
  337. package/livingdocs/Signatures/signature-container/word.scss +1 -0
  338. package/livingdocs/Signatures/signature-item/app.scss +1 -0
  339. package/livingdocs/Signatures/signature-item/general.scss +53 -0
  340. package/livingdocs/Signatures/signature-item/ldd.scss +1 -0
  341. package/livingdocs/Signatures/signature-item/pdf.scss +1 -0
  342. package/livingdocs/Signatures/signature-item/print.scss +0 -0
  343. package/livingdocs/Signatures/signature-item/signature-item.html +23 -0
  344. package/livingdocs/Signatures/signature-item/web.scss +0 -0
  345. package/livingdocs/Signatures/signature-item/word.scss +1 -0
  346. package/livingdocs/Text/footnote/app.scss +1 -0
  347. package/livingdocs/Text/footnote/footnote.html +14 -0
  348. package/livingdocs/Text/footnote/general.scss +12 -0
  349. package/livingdocs/Text/footnote/ldd.scss +1 -0
  350. package/livingdocs/Text/footnote/pdf.scss +1 -0
  351. package/livingdocs/Text/footnote/print.scss +36 -0
  352. package/livingdocs/Text/footnote/web.scss +27 -0
  353. package/livingdocs/Text/footnote/word.scss +1 -0
  354. package/livingdocs/Text/lead/general.scss +9 -0
  355. package/livingdocs/Text/lead/lead.html +23 -0
  356. package/livingdocs/Text/paragraph/general.scss +9 -0
  357. package/livingdocs/Text/paragraph/paragraph.html +24 -0
  358. package/livingdocs/Text/quote/general.scss +43 -0
  359. package/livingdocs/Text/quote/properties.json +7 -0
  360. package/livingdocs/Text/quote/quote.html +29 -0
  361. package/livingdocs/Text/quote-with-portrait/general.scss +81 -0
  362. package/livingdocs/Text/quote-with-portrait/properties.json +12 -0
  363. package/livingdocs/Text/quote-with-portrait/quote-with-portrait.html +49 -0
  364. package/livingdocs/Titles/title-h1/general.scss +10 -0
  365. package/livingdocs/Titles/title-h1/title-h1.html +16 -0
  366. package/livingdocs/Titles/title-h2/app.scss +1 -0
  367. package/livingdocs/Titles/title-h2/general.scss +13 -0
  368. package/livingdocs/Titles/title-h2/ldd.scss +1 -0
  369. package/livingdocs/Titles/title-h2/pdf.scss +1 -0
  370. package/livingdocs/Titles/title-h2/print.scss +36 -0
  371. package/livingdocs/Titles/title-h2/title-h2.html +26 -0
  372. package/livingdocs/Titles/title-h2/web.scss +27 -0
  373. package/livingdocs/Titles/title-h2/word.scss +1 -0
  374. package/livingdocs/Titles/title-h3/app.scss +1 -0
  375. package/livingdocs/Titles/title-h3/general.scss +13 -0
  376. package/livingdocs/Titles/title-h3/ldd.scss +1 -0
  377. package/livingdocs/Titles/title-h3/pdf.scss +1 -0
  378. package/livingdocs/Titles/title-h3/print.scss +34 -0
  379. package/livingdocs/Titles/title-h3/title-h3.html +26 -0
  380. package/livingdocs/Titles/title-h3/web.scss +27 -0
  381. package/livingdocs/Titles/title-h3/word.scss +1 -0
  382. package/livingdocs/Titles/title-h4/app.scss +1 -0
  383. package/livingdocs/Titles/title-h4/general.scss +13 -0
  384. package/livingdocs/Titles/title-h4/ldd.scss +1 -0
  385. package/livingdocs/Titles/title-h4/pdf.scss +1 -0
  386. package/livingdocs/Titles/title-h4/print.scss +34 -0
  387. package/livingdocs/Titles/title-h4/title-h4.html +26 -0
  388. package/livingdocs/Titles/title-h4/web.scss +27 -0
  389. package/livingdocs/Titles/title-h4/word.scss +1 -0
  390. package/livingdocs/Titles/title-h5/general.scss +10 -0
  391. package/livingdocs/Titles/title-h5/title-h5.html +16 -0
  392. package/livingdocs/Titles/title-h6/general.scss +10 -0
  393. package/livingdocs/Titles/title-h6/title-h6.html +16 -0
  394. package/package.json +50 -0
  395. package/preparePublish.cjs +95 -0
  396. package/scripts/beaver.d.ts +6 -0
  397. package/scripts/beaver.js +316 -0
  398. package/scripts/build.d.ts +40 -0
  399. package/scripts/build.js +812 -0
  400. package/scripts/colors.d.ts +3 -0
  401. package/scripts/colors.js +27 -0
  402. package/scripts/components.d.ts +43 -0
  403. package/scripts/components.js +566 -0
  404. package/scripts/config.d.ts +1 -0
  405. package/scripts/config.js +1 -0
  406. package/scripts/doPublish.d.ts +1 -0
  407. package/scripts/doPublish.js +43 -0
  408. package/scripts/init.d.ts +9 -0
  409. package/scripts/init.js +45 -0
  410. package/scripts/migrate-livingdocs-build/LICENSE +21 -0
  411. package/scripts/migrate-livingdocs-build/bin/build.d.ts +8 -0
  412. package/scripts/migrate-livingdocs-build/bin/build.js +53 -0
  413. package/scripts/migrate-livingdocs-build/bin/migrate.d.ts +2 -0
  414. package/scripts/migrate-livingdocs-build/bin/migrate.js +43 -0
  415. package/scripts/migrate-livingdocs-build/dev/build/v1.d.ts +9 -0
  416. package/scripts/migrate-livingdocs-build/dev/build/v1.d.ts.map +1 -0
  417. package/scripts/migrate-livingdocs-build/dev/build/v1.js +51 -0
  418. package/scripts/migrate-livingdocs-build/dev/build/v2.d.ts +2 -0
  419. package/scripts/migrate-livingdocs-build/dev/build/v2.d.ts.map +1 -0
  420. package/scripts/migrate-livingdocs-build/dev/build/v2.js +44 -0
  421. package/scripts/migrate-livingdocs-build/dev/build/zip-archive.d.ts +2 -0
  422. package/scripts/migrate-livingdocs-build/dev/build/zip-archive.d.ts.map +1 -0
  423. package/scripts/migrate-livingdocs-build/dev/build/zip-archive.js +39 -0
  424. package/scripts/migrate-livingdocs-build/dev/build.d.ts +9 -0
  425. package/scripts/migrate-livingdocs-build/dev/build.js +7 -0
  426. package/scripts/migrate-livingdocs-build/dev/configuration-defaults.d.ts +20 -0
  427. package/scripts/migrate-livingdocs-build/dev/configuration-defaults.js +18 -0
  428. package/scripts/migrate-livingdocs-build/dev/configuration.d.ts +2 -0
  429. package/scripts/migrate-livingdocs-build/dev/configuration.js +34 -0
  430. package/scripts/migrate-livingdocs-build/dev/lib.d.ts +33 -0
  431. package/scripts/migrate-livingdocs-build/dev/lib.js +251 -0
  432. package/scripts/migrate-livingdocs-build/dev/livingdocs-design.d.ts +9 -0
  433. package/scripts/migrate-livingdocs-build/dev/livingdocs-design.js +80 -0
  434. package/scripts/migrate-livingdocs-build/dev/logger.d.ts +2 -0
  435. package/scripts/migrate-livingdocs-build/dev/logger.js +16 -0
  436. package/scripts/migrate-livingdocs-build/dev/migrate.d.ts +22 -0
  437. package/scripts/migrate-livingdocs-build/dev/migrate.js +241 -0
  438. package/scripts/migrate-livingdocs-build/readme.md +62 -0
  439. package/scripts/preparePublish.d.ts +1 -0
  440. package/scripts/preparePublish.js +88 -0
  441. package/scripts/renamePackage.d.ts +1 -0
  442. package/scripts/renamePackage.js +48 -0
  443. package/scripts/utils.d.ts +49 -0
  444. package/scripts/utils.js +106 -0
  445. package/scripts/vite.d.ts +10 -0
  446. package/scripts/vite.js +58 -0
  447. package/scss/colors/functions.scss +18 -0
  448. package/scss/colors/index.scss +3 -0
  449. package/scss/colors/mixins.scss +45 -0
  450. package/scss/colors/variables.scss +6 -0
  451. package/scss/config.scss +7 -0
  452. package/scss/core-styles.scss +22 -0
  453. package/scss/fonts/functions.scss +21 -0
  454. package/scss/fonts/index.scss +3 -0
  455. package/scss/fonts/mixins.scss +31 -0
  456. package/scss/fonts/variables.scss +8 -0
  457. package/scss/grid/functions.scss +29 -0
  458. package/scss/grid/index.scss +3 -0
  459. package/scss/grid/mixins.scss +388 -0
  460. package/scss/grid/variables.scss +10 -0
  461. package/scss/helpers/functions.scss +0 -0
  462. package/scss/helpers/index.scss +3 -0
  463. package/scss/helpers/mixins.scss +87 -0
  464. package/scss/helpers/variables.scss +7 -0
  465. package/scss/index.scss +8 -0
  466. package/scss/meta/functions.scss +64 -0
  467. package/scss/meta/index.scss +3 -0
  468. package/scss/meta/mixins.scss +6 -0
  469. package/scss/meta/variables.scss +8 -0
  470. package/scss/spacer/functions.scss +9 -0
  471. package/scss/spacer/index.scss +3 -0
  472. package/scss/spacer/mixins.scss +236 -0
  473. package/scss/spacer/variables.scss +6 -0
  474. package/scss/system/functions.scss +77 -0
  475. package/scss/system/index.scss +3 -0
  476. package/scss/system/mixins.scss +27 -0
  477. package/scss/system/root.scss +39 -0
  478. package/scss/system/variables.scss +13 -0
  479. package/scss/typography/functions.scss +63 -0
  480. package/scss/typography/index.scss +3 -0
  481. package/scss/typography/mixins.scss +262 -0
  482. package/scss/typography/variables.scss +11 -0
  483. package/tags.txt +1 -0
@@ -0,0 +1,715 @@
1
+ <script setup lang="ts">
2
+ import { onMounted, ref, watch } from 'vue'
3
+ import { useI18n } from 'vue-i18n'
4
+ import * as Highcharts from 'highcharts'
5
+ import exportingModule from 'highcharts/modules/exporting'
6
+ import offlineExporting from 'highcharts/modules/offline-exporting'
7
+
8
+ import { KFCApplication } from '@/components/SrlPage/KFCApplication/models/KFCApplication'
9
+
10
+ import KFCTable from '@/components/SrlPage/KFCApplication/KFCTable.vue'
11
+ import KFCDropdownCharts from '@/components/SrlPage/KFCApplication/KFCDropdownCharts.vue'
12
+ import KFCDropdownPeriod from '@/components/SrlPage/KFCApplication/KFCDropdownPeriod.vue'
13
+ import XDownloader from '@/components/SrlPage/KFCApplication/utils/XDownloader.js'
14
+ import XDownloaderStyle from '@/components/SrlPage/KFCApplication/utils/XDownloaderStyle.js'
15
+
16
+ import SvgColumnView from '@/components/SrlPage/KFCApplication/theme/SvgColumnView.vue'
17
+ import SvgLineView from '@/components/SrlPage/KFCApplication/theme/SvgLineView.vue'
18
+ import SvgTableView from '@/components/SrlPage/KFCApplication/theme/SvgTableView.vue'
19
+ import SvgIndexedValues from '@/components/SrlPage/KFCApplication/theme/SvgIndexedValues.vue'
20
+ import SvgLegendSwap from '@/components/SrlPage/KFCApplication/theme/SvgLegendSwap.vue'
21
+ import SvgDownloadChart from '@/components/SrlPage/KFCApplication/theme/SvgDownloadChart.vue'
22
+ import SvgPDFChart from '@/components/SrlPage/KFCApplication/theme/SvgPDFChart.vue'
23
+ import SvgPrintChart from '@/components/SrlPage/KFCApplication/theme/SvgPrintChart.vue'
24
+
25
+ exportingModule(Highcharts)
26
+ offlineExporting(Highcharts)
27
+
28
+ const { locale } = useI18n()
29
+ const kfcApplication = new KFCApplication(locale.value)
30
+ const renderApplication = ref(false)
31
+ const chartRef = ref()
32
+ const tableRef = ref()
33
+ const kfcChart = ref()
34
+ const decimalPoint = {
35
+ de: '.',
36
+ en: '.',
37
+ it: '.',
38
+ fr: ','
39
+ }
40
+ const thousandsSep = {
41
+ de: ' ',
42
+ en: ',',
43
+ it: ' ',
44
+ fr: ' '
45
+ }
46
+
47
+ function hasNthYAxisDisplayed(nth: number) {
48
+ return !!kfcApplication.currentChart.value.series
49
+ .filter((d, i) => kfcApplication.activeSeries.includes(i))
50
+ .find((d) => d.yAxis === nth)
51
+ }
52
+
53
+ function getSeries() {
54
+ const { swapLabels, indexed } = kfcApplication
55
+ if (swapLabels && indexed) {
56
+ return _getIndexedLabelSwapSeries()
57
+ } else if (swapLabels) {
58
+ return _getLabelSwapSeries()
59
+ } else if (indexed) {
60
+ return _getIndexedSeries()
61
+ }
62
+
63
+ return _getSeries()
64
+ }
65
+
66
+ function _getSeries() {
67
+ const { currentChart, activeSeries, activeCategories, chartType } = kfcApplication
68
+ const { series } = currentChart.value
69
+
70
+ return series
71
+ .map((serie, serieIndex) => ({
72
+ ...serie,
73
+ visible: activeSeries.includes(serieIndex)
74
+ }))
75
+ .map((serie) => {
76
+ const filteredData = serie.data.filter((d, i) => activeCategories.includes(i))
77
+ const transformedType = handleChartTypeSerie(serie.type)
78
+ const newValue = {
79
+ name: serie.label[locale.value],
80
+ colorIndex: serie.colorIndex,
81
+ type: transformedType,
82
+ yAxis: serie.yAxis || 0,
83
+ data: filteredData,
84
+ zIndex: transformedType === 'line' ? 3 : 1,
85
+ stack: undefined,
86
+ stacking: undefined,
87
+ visible: serie.visible
88
+ }
89
+
90
+ if (serie.stack > 0 && chartType === 'column') {
91
+ newValue.stack = serie.stack
92
+ newValue.stacking = 'default'
93
+ }
94
+
95
+ return newValue
96
+ })
97
+ }
98
+
99
+ function _getIndexedSeries() {
100
+ return _getSeries().map((serie) => ({
101
+ ...serie,
102
+ stack: undefined,
103
+ stacking: undefined,
104
+ data: serie.data.map((d) => {
105
+ if (d <= 0) {
106
+ // N/A
107
+ return 0
108
+ }
109
+
110
+ return Math.round(Math.round((d / serie.data[0]) * 10000) / 100)
111
+ })
112
+ }))
113
+ }
114
+
115
+ function _getLabelSwapSeries() {
116
+ const { currentChart, activeSeries, activeCategories } = kfcApplication
117
+ const { categories, series, swapColors } = currentChart.value
118
+
119
+ return categories.map((category, categoryIndex) => {
120
+ const categoryData = series
121
+ .map((serie) => serie.data[categoryIndex])
122
+ .filter((s, i) => activeSeries.includes(i))
123
+ return {
124
+ name: category,
125
+ type: 'column',
126
+ stack: undefined,
127
+ yAxis: 0,
128
+ colorIndex: swapColors[categoryIndex],
129
+ data: categoryData,
130
+ visible: activeCategories.includes(categoryIndex)
131
+ }
132
+ })
133
+ }
134
+
135
+ function _getIndexedLabelSwapSeries() {
136
+ const swappedSeries = _getLabelSwapSeries()
137
+ const baseSeries = swappedSeries.find((x) => x.visible)
138
+
139
+ const indexed = swappedSeries.map((serie) => {
140
+ return {
141
+ ...serie,
142
+ stack: undefined,
143
+ stacking: undefined,
144
+ data: serie.data.map((d, di) => {
145
+ if (d <= 0) {
146
+ // N/A
147
+ return 0
148
+ }
149
+
150
+ return Math.round(Math.round((d / baseSeries.data[di]) * 10000) / 100)
151
+ })
152
+ }
153
+ })
154
+
155
+ return indexed
156
+ }
157
+
158
+ function getCategories() {
159
+ const { swapLabels } = kfcApplication
160
+
161
+ if (swapLabels) {
162
+ return _getLabelSwapCategories()
163
+ }
164
+
165
+ return _getCategories()
166
+ }
167
+ function _getCategories() {
168
+ const { activeCategories, currentChart } = kfcApplication
169
+ const { categories } = currentChart.value
170
+
171
+ return categories.filter((x, i) => activeCategories.includes(i))
172
+ }
173
+
174
+ function _getLabelSwapCategories() {
175
+ const { currentChart, activeSeries } = kfcApplication
176
+ const { series } = currentChart.value
177
+
178
+ return series
179
+ .map((serie) => serie.label[locale.value])
180
+ .filter((serie, i) => activeSeries.includes(i))
181
+ }
182
+
183
+ function updateCategories(newCategories) {
184
+ kfcApplication.activeCategories = newCategories.sort()
185
+ kfcApplication.writeQuery()
186
+ updateChart()
187
+ }
188
+
189
+ function updateSeries(newSeries) {
190
+ kfcApplication.activeSeries = newSeries.sort()
191
+ kfcApplication.writeQuery()
192
+ updateChart()
193
+ }
194
+
195
+ function toggleIndexed() {
196
+ kfcApplication.indexed = !kfcApplication.indexed
197
+ kfcApplication.writeQuery()
198
+ renderChart()
199
+ }
200
+
201
+ function toggleSwapLabels() {
202
+ if (kfcApplication.canSwapLabels()) {
203
+ kfcApplication.swapLabels = !kfcApplication.swapLabels
204
+ } else {
205
+ kfcApplication.swapLabels = false
206
+ }
207
+ kfcApplication.writeQuery()
208
+ renderChart()
209
+ }
210
+
211
+ function updateActiveChart(newChart) {
212
+ kfcApplication.updateActiveChart(newChart)
213
+ kfcApplication.writeQuery()
214
+ renderChart()
215
+ }
216
+
217
+ function changeChartType(chartType) {
218
+ kfcApplication.chartType = chartType
219
+ kfcApplication.swapLabels = false
220
+ kfcApplication.writeQuery()
221
+ renderChart()
222
+ }
223
+
224
+ function handleChartTypeSerie(serie) {
225
+ if (kfcApplication.chartType == 'line') {
226
+ if (serie == 'column') return 'line'
227
+ if (serie == 'line') return 'column'
228
+ return serie
229
+ }
230
+ return serie
231
+ }
232
+
233
+ function seriesStateChangedEvent(event) {
234
+ if (!event?.legendItem) {
235
+ //console.error('LEGEND ITEM IS UNDEFINED')
236
+ return
237
+ }
238
+
239
+ const { activeCategories, activeSeries, swapLabels } = kfcApplication
240
+ const { index, visible } = event.legendItem
241
+
242
+ event.preventDefault()
243
+
244
+ if (swapLabels) {
245
+ if (visible) {
246
+ updateCategories([...activeCategories.filter((x) => x !== index)])
247
+ } else {
248
+ updateCategories([...activeCategories, index])
249
+ }
250
+ } else {
251
+ if (visible) {
252
+ updateSeries(activeSeries.filter((x) => x !== index))
253
+ } else {
254
+ updateSeries([...activeSeries, index])
255
+ }
256
+ }
257
+ }
258
+
259
+ function updateChart() {
260
+ if (chartRef.value && chartRef.value && chartRef.value.destroy) {
261
+ chartRef.value.update(
262
+ {
263
+ series: getSeries(),
264
+ xAxis: { categories: getCategories() }
265
+ },
266
+ true
267
+ )
268
+ chartRef.value.yAxis[0].update({
269
+ title: {
270
+ enabled: hasNthYAxisDisplayed(0),
271
+ text: kfcApplication.indexed
272
+ ? '%'
273
+ : kfcApplication.currentChart.value.yAxisLabel0[locale.value]
274
+ }
275
+ })
276
+ chartRef.value.yAxis[1].update({
277
+ title: {
278
+ enabled: hasNthYAxisDisplayed(1),
279
+ text: kfcApplication.indexed
280
+ ? '%'
281
+ : kfcApplication.currentChart.value.yAxisLabel1[locale.value]
282
+ }
283
+ })
284
+ }
285
+ }
286
+
287
+ function renderChart() {
288
+ Highcharts.setOptions({
289
+ lang: {
290
+ decimalPoint: decimalPoint[locale.value],
291
+ thousandsSep: thousandsSep[locale.value]
292
+ }
293
+ })
294
+
295
+ if (!kfcApplication.currentChart) {
296
+ return
297
+ }
298
+
299
+ if (kfcApplication.chartType == 'table') {
300
+ // table does not need to update highchart
301
+ return
302
+ }
303
+
304
+ if (chartRef.value && chartRef.value && chartRef.value.destroy) {
305
+ try {
306
+ chartRef.value.destroy()
307
+ } catch (error) {
308
+ //
309
+ }
310
+ }
311
+ try {
312
+ chartRef.value = Highcharts.chart(document.querySelector('#kfc-chart'), {
313
+ responsive: {
314
+ rules: [
315
+ {
316
+ condition: {
317
+ maxWidth: 700
318
+ },
319
+ chartOptions: {
320
+ chart: {
321
+ height: '150%'
322
+ }
323
+ }
324
+ }
325
+ ]
326
+ },
327
+ chart: {
328
+ height: '56.9%',
329
+ styledMode: true,
330
+ spacingLeft: 5,
331
+ spacingRight: 5,
332
+ spacingBottom: 0,
333
+ reflow: true
334
+ },
335
+ legend: {
336
+ layout: 'horizontal',
337
+ alignColumns: false,
338
+ align: 'left',
339
+ symbolRadius: 0,
340
+ events: {
341
+ itemClick: (e) => seriesStateChangedEvent(e)
342
+ }
343
+ },
344
+ plotOptions: {
345
+ line: {
346
+ marker: {
347
+ symbol: 'circle'
348
+ }
349
+ },
350
+ column: {
351
+ borderRadius: 0,
352
+ legendSymbol: 'rectangle',
353
+ pointPadding: 0
354
+ },
355
+ series: {
356
+ marker: {
357
+ height: 8,
358
+ width: 8
359
+ },
360
+ dataLabels: {
361
+ formatter: function () {
362
+ return Highcharts.numberFormat(this.y, 2)
363
+ }
364
+ }
365
+ }
366
+ },
367
+ title: {
368
+ enabled: false,
369
+ text: kfcApplication.currentChart.value.label
370
+ },
371
+ credits: {
372
+ enabled: false
373
+ },
374
+ series: getSeries(),
375
+ yAxis: [
376
+ {
377
+ title: {
378
+ enabled: hasNthYAxisDisplayed(0),
379
+ text: kfcApplication.indexed
380
+ ? '%'
381
+ : kfcApplication.currentChart.value.yAxisLabel0[locale.value]
382
+ },
383
+ reversedStacks: false,
384
+ labels: {},
385
+ tickAmount: 8
386
+ },
387
+ {
388
+ reversedStacks: false,
389
+ allowDecimals: false,
390
+ title: {
391
+ enabled: hasNthYAxisDisplayed(1),
392
+ text: kfcApplication.indexed
393
+ ? '%'
394
+ : kfcApplication.currentChart.value.yAxisLabel1[locale.value]
395
+ },
396
+ labels: {},
397
+ opposite: true,
398
+ tickAmount: 8
399
+ }
400
+ ],
401
+ xAxis: {
402
+ categories: getCategories()
403
+ },
404
+ exporting: {
405
+ enabled: false
406
+ },
407
+ tooltip: {
408
+ useHTML: true,
409
+ shadow: false,
410
+ borderWidth: 0,
411
+ className: 'kfc-tooltip',
412
+ formatter: function (tooltip) {
413
+ if (kfcApplication.indexed) {
414
+ if (this.y == 100) {
415
+ return `<div>${this.y}%</div>`
416
+ } else if (this.y == 0) {
417
+ return `<div>n/a</div>`
418
+ }
419
+ return `
420
+ <div>
421
+ ${this.y}%
422
+ <br>Δ ${this.y - 100 > 0 ? '+' : ''}${Highcharts.numberFormat(
423
+ Math.round((this.y - 100) * 100) / 100,
424
+ -1
425
+ )}%
426
+ </div>`
427
+ } else {
428
+ //console.log(this)
429
+ const axisStr = this.point?.series?.yAxis?.axisTitle
430
+ ? this.point.series.yAxis.axisTitle.textStr
431
+ : ''
432
+ return `${this.x}<br>
433
+ <span class="tooltip-series-color color-${this.colorIndex}" data-series-color="${this.colorIndex}"></span>
434
+ ${this.series.name}: <span class="tooltip-series-value">${Highcharts.numberFormat(this.y, 1)} ${axisStr}</span>`
435
+ }
436
+ }
437
+ }
438
+ })
439
+ } catch (error) {
440
+ console.error('Error creating chart', error)
441
+ }
442
+ }
443
+
444
+ function downloadExcel() {
445
+ new XDownloader({
446
+ tableTitle: kfcApplication.currentChart.value.title[locale.value],
447
+ tableSelector: '.iz-keyfigure-comparison__table',
448
+ downloadText: '',
449
+ styles: XDownloaderStyle,
450
+ mergeStrings: []
451
+ })
452
+ }
453
+
454
+ function printPage() {
455
+ document.body.classList.add('pdf-print')
456
+ setTimeout(() => {
457
+ window.print()
458
+ document.body.classList.remove('pdf-print')
459
+ }, 500)
460
+ }
461
+
462
+ function exportHighchart() {
463
+ chartRef.value.exportChartLocal(
464
+ {
465
+ type: 'image/png',
466
+ filename: kfcApplication.currentChart.value.title[locale.value]
467
+ },
468
+ {
469
+ chart: {
470
+ width: 800,
471
+ height: 600
472
+ },
473
+ title: {
474
+ enabled: true,
475
+ text: kfcApplication.currentChart.value.title[locale.value]
476
+ },
477
+ subtitle: {
478
+ enabled: false,
479
+ text: kfcApplication.currentChart.value.title[locale.value]
480
+ },
481
+
482
+ yAxis: [
483
+ {
484
+ title: {
485
+ enabled: true,
486
+ text: kfcApplication.indexed
487
+ ? '%'
488
+ : kfcApplication.currentChart.value.yAxisLabel0[locale.value]
489
+ }
490
+ },
491
+ {
492
+ title: {
493
+ enabled: true,
494
+ text: kfcApplication.indexed
495
+ ? '%'
496
+ : kfcApplication.currentChart.value.yAxisLabel1[locale.value]
497
+ }
498
+ }
499
+ ]
500
+ }
501
+ )
502
+ }
503
+
504
+ function reloadApplication(count = 0) {
505
+ if (count > 100) {
506
+ console.error('KFC Application not loaded')
507
+ return
508
+ }
509
+
510
+ setTimeout(() => {
511
+ if (kfcApplication.dataLoaded.value) {
512
+ if (!window.location.search || window.location.search == '') {
513
+ kfcApplication.writeDefaultQuery()
514
+ } else {
515
+ kfcApplication.readQuery()
516
+ }
517
+ renderApplication.value = true
518
+ setTimeout(() => {
519
+ renderChart()
520
+ }, 300)
521
+ } else {
522
+ reloadApplication(count++)
523
+ }
524
+ }, 300)
525
+ }
526
+
527
+ watch(locale, () => {
528
+ kfcApplication.currentLang.value = locale.value
529
+ })
530
+
531
+ onMounted(() => {
532
+ Highcharts.setOptions({
533
+ lang: {
534
+ numericSymbols: null,
535
+ thousandsSep: "'",
536
+ decimalPoint: decimalPoint[locale.value]
537
+ }
538
+ })
539
+ reloadApplication()
540
+ })
541
+ </script>
542
+
543
+ <template>
544
+ <div v-if="renderApplication" class="srl-kfc">
545
+ <div class="iz-content__content iz-keyfigure-comparison">
546
+ <div class="srl-article__grid srl-article__grid--kfc srl-mt-400">
547
+ <div class="srl-article__grid--inner">
548
+ <KFCDropdownCharts
549
+ :charts="kfcApplication.getCharts()"
550
+ :activeSeries="kfcApplication.activeSeries"
551
+ :activeChart="kfcApplication.activeChart"
552
+ :changeChart="updateActiveChart"
553
+ :updateSeries="updateSeries"
554
+ >
555
+ </KFCDropdownCharts>
556
+ <KFCDropdownPeriod
557
+ :categories="kfcApplication.currentChart.value.categories"
558
+ :active-categories="kfcApplication.activeCategories"
559
+ :updateCategories="updateCategories"
560
+ >
561
+ </KFCDropdownPeriod>
562
+ </div>
563
+ </div>
564
+ <div class="srl-article__grid srl-article__grid--kfc srl-mt-900">
565
+ <div class="srl-article__grid--inner">
566
+ <h2 class="srl-title-h2 srl-component srl-title srl-color-dark kfc-chart-title">
567
+ <span
568
+ class="srl-typo-headline2"
569
+ v-text="kfcApplication.currentChart.value.title[locale]"
570
+ >
571
+ </span>
572
+ </h2>
573
+ <div class="iz-keyfigure-comparison__export-actions kfc-chart-actions">
574
+ <button
575
+ class="srl-button-kfc srl-button-kfc-icon srl-typo-copy2 srl-color-dark"
576
+ @click="exportHighchart()"
577
+ >
578
+ <SvgPrintChart></SvgPrintChart>
579
+ <span>{{ $t('kfc.labels.action.png') }}</span>
580
+ </button>
581
+ <button
582
+ class="srl-button-kfc srl-button-kfc-icon srl-typo-copy2 srl-color-dark"
583
+ @click="downloadExcel()"
584
+ >
585
+ <SvgDownloadChart></SvgDownloadChart>
586
+ <span>{{ $t('kfc.labels.action.xls') }}</span>
587
+ </button>
588
+ <button
589
+ class="srl-button-kfc srl-button-kfc-icon srl-typo-copy2 srl-color-dark"
590
+ @click="printPage()"
591
+ >
592
+ <SvgPDFChart></SvgPDFChart>
593
+ <span>{{ $t('kfc.labels.action.print') }}</span>
594
+ </button>
595
+ </div>
596
+ </div>
597
+ </div>
598
+ <div class="srl-article__grid srl-article__grid--kfc srl-mt-600">
599
+ <div class="srl-article__grid--inner">
600
+ <div class="iz-kfc-chart-types">
601
+ <button
602
+ class="srl-button-kfc"
603
+ :class="{ active: kfcApplication.chartType == 'column' }"
604
+ @click="changeChartType('column')"
605
+ >
606
+ <SvgColumnView></SvgColumnView>
607
+ </button>
608
+ <button
609
+ class="srl-button-kfc"
610
+ :class="{ active: kfcApplication.chartType == 'line' }"
611
+ @click="changeChartType('line')"
612
+ >
613
+ <SvgLineView></SvgLineView>
614
+ </button>
615
+ <button
616
+ class="srl-button-kfc"
617
+ :class="{ active: kfcApplication.chartType == 'table' }"
618
+ @click="changeChartType('table')"
619
+ >
620
+ <SvgTableView></SvgTableView>
621
+ </button>
622
+ </div>
623
+
624
+ <div class="iz-kfc-chart-toggles">
625
+ <button
626
+ @click="toggleIndexed()"
627
+ class="srl-button-kfc srl-button-kfc-icon srl-typo-copy2 srl-color-dark"
628
+ >
629
+ <SvgIndexedValues></SvgIndexedValues>
630
+ <span v-if="!kfcApplication.indexed">{{ $t('kfc.indexed.indexed') }}</span>
631
+ <span v-else>{{ $t('kfc.indexed.absolute') }}</span>
632
+ </button>
633
+ <button
634
+ @click="toggleSwapLabels()"
635
+ v-if="kfcApplication.canSwapLabels() && kfcApplication.chartType == 'column'"
636
+ class="srl-button-kfc srl-button-kfc-icon srl-typo-copy2 srl-color-dark"
637
+ :class="{ active: kfcApplication.swapLabels }"
638
+ >
639
+ <SvgLegendSwap></SvgLegendSwap>
640
+ <span>{{ $t('kfc.swaplabels') }}</span>
641
+ </button>
642
+ </div>
643
+ </div>
644
+ </div>
645
+
646
+ <div class="srl-article__grid srl-article__grid--kfc srl-mt-600">
647
+ <div class="srl-article__grid--inner">
648
+ <div
649
+ id="kfc-chart"
650
+ class="iz-keyfigure-comparison__chart"
651
+ :class="{ hidden: kfcApplication.chartType == 'table' }"
652
+ ></div>
653
+ <div class="iz-keyfigure-comparison__table">
654
+ <KFCTable
655
+ :currentChart="kfcApplication.currentChart"
656
+ :class="{ hidden: kfcApplication.chartType != 'table' }"
657
+ :categories="
658
+ kfcApplication.currentChart.value.categories?.filter((c, i) =>
659
+ kfcApplication.activeCategories.includes(i)
660
+ )
661
+ "
662
+ :series="
663
+ kfcApplication.currentChart.value.series
664
+ ?.filter((s, i) => kfcApplication.activeSeries.includes(i))
665
+ .map((d) => ({
666
+ ...d,
667
+ data: d.data.filter((a, i) => kfcApplication.activeCategories.includes(i))
668
+ }))
669
+ "
670
+ >
671
+ </KFCTable>
672
+ </div>
673
+ </div>
674
+ </div>
675
+ </div>
676
+
677
+ <div class="srl-article__grid srl-article__grid--kfc srl-mt-300">
678
+ <div class="srl-article__grid--inner">
679
+ <p
680
+ class="iz-keyfigure-comparison__footnote"
681
+ v-for="(footnote, footnoteIndex) in kfcApplication.currentChart.value.footnotes"
682
+ v-bind:key="footnoteIndex"
683
+ >
684
+ <span class="iz-keyfigure-comparison__footnote-key" v-html="footnote.key"></span>
685
+ <span class="iz-keyfigure-comparison__footnote-text">{{ footnote.value[locale] }}</span>
686
+ </p>
687
+ </div>
688
+ </div>
689
+ </div>
690
+ <div v-else class="srl-kfc">
691
+ <div class="iz-content__content">
692
+ <div class="srl-article__grid srl-article__grid--kfc srl-mt-900">
693
+ <div class="srl-article__grid--inner">
694
+ <p class="srl-typo-copy1 srl-color-primary loading-text">
695
+ {{ $t('kfcLoadingText') }}
696
+ </p>
697
+ <div class="loader-container">
698
+ <span class="loader"></span>
699
+ </div>
700
+ </div>
701
+ </div>
702
+ </div>
703
+ </div>
704
+ </template>
705
+
706
+ <style lang="scss">
707
+ @use 'scss/_highcharts-basic';
708
+ @use 'scss/_highcharts-general';
709
+ @use 'scss/_highcharts-custom';
710
+ @use 'scss/_iz-keyfigure-comparison';
711
+ @use 'scss/_iz-keyfigure-comparison-dropdown';
712
+ @use 'scss/_srl-button-kfc';
713
+ @use 'scss/_kfc-loading';
714
+ @use 'scss/_kfc-print';
715
+ </style>