@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.
- package/.github/workflows/npm-publish.yml +25 -0
- package/.nvmrc +1 -0
- package/.prettierrc +6 -0
- package/README.md +23 -0
- package/cli.js +114 -0
- package/dev/.ddev/config.yaml +279 -0
- package/dev/.ddev/nginx_full/custom.conf +12 -0
- package/dev/.env +1 -0
- package/dev/.env.development +1 -0
- package/dev/.eslintrc.cjs +15 -0
- package/dev/.nvmrc +1 -0
- package/dev/.prettierrc.json +8 -0
- package/dev/.vscode/extensions.json +3 -0
- package/dev/.vscode/settings.json +4 -0
- package/dev/README.md +45 -0
- package/dev/env.d.ts +1 -0
- package/dev/index.html +17 -0
- package/dev/ldd.html +7 -0
- package/dev/livingdocs/Media/image/app.scss +25 -0
- package/dev/livingdocs/Media/image/general.scss +11 -0
- package/dev/livingdocs/Media/image/image.html +46 -0
- package/dev/livingdocs/Media/image/ldd.scss +1 -0
- package/dev/livingdocs/Media/image/pdf.scss +1 -0
- package/dev/livingdocs/Media/image/print.scss +7 -0
- package/dev/livingdocs/Media/image/properties.json +41 -0
- package/dev/livingdocs/Media/image/web.scss +0 -0
- package/dev/livingdocs/Media/image/word.scss +1 -0
- package/dev/livingdocs/Properties/grid/app.scss +1 -0
- package/dev/livingdocs/Properties/grid/general.scss +95 -0
- package/dev/livingdocs/Properties/grid/ldd.scss +1 -0
- package/dev/livingdocs/Properties/grid/pdf.scss +1 -0
- package/dev/livingdocs/Properties/grid/print.scss +94 -0
- package/dev/livingdocs/Properties/grid/properties.json +68 -0
- package/dev/livingdocs/Properties/grid/web.scss +98 -0
- package/dev/livingdocs/Properties/grid/word.scss +1 -0
- package/dev/livingdocs/Text/paragraph/general.scss +9 -0
- package/dev/livingdocs/Text/paragraph/paragraph.html +22 -0
- package/dev/livingdocs/Titles/title-h1/general.scss +10 -0
- package/dev/livingdocs/Titles/title-h1/title-h1.html +16 -0
- package/dev/livingdocs/Titles/title-h2/app.scss +1 -0
- package/dev/livingdocs/Titles/title-h2/general.scss +13 -0
- package/dev/livingdocs/Titles/title-h2/ldd.scss +1 -0
- package/dev/livingdocs/Titles/title-h2/pdf.scss +1 -0
- package/dev/livingdocs/Titles/title-h2/print.scss +36 -0
- package/dev/livingdocs/Titles/title-h2/title-h2.html +24 -0
- package/dev/livingdocs/Titles/title-h2/web.scss +27 -0
- package/dev/livingdocs/Titles/title-h2/word.scss +1 -0
- package/dev/livingdocs/Titles/title-h3/app.scss +1 -0
- package/dev/livingdocs/Titles/title-h3/general.scss +13 -0
- package/dev/livingdocs/Titles/title-h3/ldd.scss +1 -0
- package/dev/livingdocs/Titles/title-h3/pdf.scss +1 -0
- package/dev/livingdocs/Titles/title-h3/print.scss +34 -0
- package/dev/livingdocs/Titles/title-h3/title-h3.html +24 -0
- package/dev/livingdocs/Titles/title-h3/web.scss +27 -0
- package/dev/livingdocs/Titles/title-h3/word.scss +1 -0
- package/dev/livingdocs/Titles/title-h4/app.scss +1 -0
- package/dev/livingdocs/Titles/title-h4/general.scss +13 -0
- package/dev/livingdocs/Titles/title-h4/ldd.scss +1 -0
- package/dev/livingdocs/Titles/title-h4/pdf.scss +1 -0
- package/dev/livingdocs/Titles/title-h4/print.scss +34 -0
- package/dev/livingdocs/Titles/title-h4/title-h4.html +24 -0
- package/dev/livingdocs/Titles/title-h4/web.scss +27 -0
- package/dev/livingdocs/Titles/title-h4/word.scss +1 -0
- package/dev/livingdocs/Titles/title-h5/general.scss +10 -0
- package/dev/livingdocs/Titles/title-h5/title-h5.html +16 -0
- package/dev/livingdocs/Titles/title-h6/general.scss +10 -0
- package/dev/livingdocs/Titles/title-h6/title-h6.html +16 -0
- package/dev/livingdocs.config.json +376 -0
- package/dev/nswow/ArticleAutoloader.ts +100 -0
- package/dev/nswow/ArticleLoader.ts +91 -0
- package/dev/nswow/colors.scss +3 -0
- package/dev/nswow/config.scss +13 -0
- package/dev/nswow/core-styles.scss +2 -0
- package/dev/nswow/fonts.scss +2 -0
- package/dev/nswow/grid.scss +2 -0
- package/dev/nswow/helpers.scss +2 -0
- package/dev/nswow/index.scss +9 -0
- package/dev/nswow/meta.scss +2 -0
- package/dev/nswow/spacer.scss +2 -0
- package/dev/nswow/system.scss +2 -0
- package/dev/nswow/typography.scss +3 -0
- package/dev/nswow.config.json +293 -0
- package/dev/package.json +61 -0
- package/dev/pdf/pdf-configuration-debug.xml +6 -0
- package/dev/pdf/pdf-configuration.xml +3 -0
- package/dev/pdf.ts +1 -0
- package/dev/public/.keep +0 -0
- package/dev/src/App.vue +44 -0
- package/dev/src/Autoload.ts +6 -0
- package/dev/src/assets/fonts/Roboto/roboto-v30-latin-300.woff2 +0 -0
- package/dev/src/assets/fonts/Roboto/roboto-v30-latin-700.woff2 +0 -0
- package/dev/src/assets/fonts/Roboto/roboto-v30-latin-italic.woff2 +0 -0
- package/dev/src/assets/fonts/Roboto/roboto-v30-latin-regular.woff2 +0 -0
- package/dev/src/assets/images/mms-logo-black.svg +91 -0
- package/dev/src/assets/images/mms-logo-white.svg +105 -0
- package/dev/src/assets/scss/app.scss +39 -0
- package/dev/src/assets/scss/general.scss +17 -0
- package/dev/src/assets/scss/ldd.scss +27 -0
- package/dev/src/assets/scss/pdf.scss +2 -0
- package/dev/src/assets/scss/print.scss +1 -0
- package/dev/src/assets/scss/web.scss +1 -0
- package/dev/src/assets/scss/word.scss +2 -0
- package/dev/src/components/LanguageSwitch.vue +100 -0
- package/dev/src/components/MainNavigation.vue +209 -0
- package/dev/src/components/MenuItem/MenuArticle.vue +15 -0
- package/dev/src/components/MenuItem/MenuEntry.vue +26 -0
- package/dev/src/components/MenuItem/MenuExternal.vue +28 -0
- package/dev/src/components/MenuItem/index.ts +5 -0
- package/dev/src/components/PageFooter.vue +86 -0
- package/dev/src/components/PageHeader.vue +149 -0
- package/dev/src/components/PageModal.vue +95 -0
- package/dev/src/components/PrevNext.vue +144 -0
- package/dev/src/components/ScrollToTop.vue +63 -0
- package/dev/src/components/SrlPage/KFCApplication/KFCApplication.vue +715 -0
- package/dev/src/components/SrlPage/KFCApplication/KFCDropdownCharts.vue +112 -0
- package/dev/src/components/SrlPage/KFCApplication/KFCDropdownPeriod.vue +85 -0
- package/dev/src/components/SrlPage/KFCApplication/KFCTable.vue +63 -0
- package/dev/src/components/SrlPage/KFCApplication/hooks/kfcData.ts +9 -0
- package/dev/src/components/SrlPage/KFCApplication/models/KFCApplication.ts +183 -0
- package/dev/src/components/SrlPage/KFCApplication/scss/_highcharts-basic.scss +1136 -0
- package/dev/src/components/SrlPage/KFCApplication/scss/_highcharts-custom.scss +71 -0
- package/dev/src/components/SrlPage/KFCApplication/scss/_highcharts-general.scss +113 -0
- package/dev/src/components/SrlPage/KFCApplication/scss/_iz-keyfigure-comparison-dropdown.scss +189 -0
- package/dev/src/components/SrlPage/KFCApplication/scss/_iz-keyfigure-comparison.scss +151 -0
- package/dev/src/components/SrlPage/KFCApplication/scss/_kfc-loading.scss +40 -0
- package/dev/src/components/SrlPage/KFCApplication/scss/_kfc-print.scss +20 -0
- package/dev/src/components/SrlPage/KFCApplication/scss/_srl-button-kfc.scss +21 -0
- package/dev/src/components/SrlPage/KFCApplication/scss/_variables.scss +10 -0
- package/dev/src/components/SrlPage/KFCApplication/services/xlsxParser.ts +194 -0
- package/dev/src/components/SrlPage/KFCApplication/theme/SvgColumnView.vue +28 -0
- package/dev/src/components/SrlPage/KFCApplication/theme/SvgDownloadChart.vue +26 -0
- package/dev/src/components/SrlPage/KFCApplication/theme/SvgDropdown.vue +18 -0
- package/dev/src/components/SrlPage/KFCApplication/theme/SvgIndexedValues.vue +18 -0
- package/dev/src/components/SrlPage/KFCApplication/theme/SvgLegendSwap.vue +18 -0
- package/dev/src/components/SrlPage/KFCApplication/theme/SvgLineView.vue +28 -0
- package/dev/src/components/SrlPage/KFCApplication/theme/SvgPDFChart.vue +26 -0
- package/dev/src/components/SrlPage/KFCApplication/theme/SvgPrintChart.vue +33 -0
- package/dev/src/components/SrlPage/KFCApplication/theme/SvgTableView.vue +67 -0
- package/dev/src/components/SrlPage/KFCApplication/utils/XDownloader.js +455 -0
- package/dev/src/components/SrlPage/KFCApplication/utils/XDownloaderStyle.js +44 -0
- package/dev/src/components/SrlPage/KFCApplication/utils/XTableNamer.js +68 -0
- package/dev/src/composables/config.ts +48 -0
- package/dev/src/i18n/index.ts +51 -0
- package/dev/src/i18n/translation.ts +85 -0
- package/dev/src/locales/de.json +15 -0
- package/dev/src/locales/en.json +15 -0
- package/dev/src/main.ts +16 -0
- package/dev/src/router/index.ts +47 -0
- package/dev/src/types/nswow.d.ts +73 -0
- package/dev/src/utils/variables.ts +13 -0
- package/dev/src/views/ArticleView.vue +77 -0
- package/dev/src/views/DownloadsView.vue +88 -0
- package/dev/src/views/HomeView.vue +35 -0
- package/dev/src/views/PageNotFound.vue +73 -0
- package/dev/src/views/SearchView.vue +126 -0
- package/dev/tsconfig.app.json +16 -0
- package/dev/tsconfig.json +14 -0
- package/dev/tsconfig.node.json +19 -0
- package/dev/tsconfig.vitest.json +11 -0
- package/dev/vite.config.ts +27 -0
- package/dev/vitest.config.ts +14 -0
- package/dev/word.ts +1 -0
- package/livingdocs/Buttons/button/app.scss +1 -0
- package/livingdocs/Buttons/button/button.html +18 -0
- package/livingdocs/Buttons/button/general.scss +33 -0
- package/livingdocs/Buttons/button/ldd.scss +1 -0
- package/livingdocs/Buttons/button/pdf.scss +1 -0
- package/livingdocs/Buttons/button/word.scss +1 -0
- package/livingdocs/Buttons/button-container/app.scss +1 -0
- package/livingdocs/Buttons/button-container/button-container.html +31 -0
- package/livingdocs/Buttons/button-container/general.scss +12 -0
- package/livingdocs/Buttons/button-container/ldd.scss +1 -0
- package/livingdocs/Buttons/button-container/pdf.scss +3 -0
- package/livingdocs/Buttons/button-container/properties.json +19 -0
- package/livingdocs/Buttons/button-container/word.scss +3 -0
- package/livingdocs/CV/cv-timeline/app.scss +1 -0
- package/livingdocs/CV/cv-timeline/cv-timeline.html +19 -0
- package/livingdocs/CV/cv-timeline/general.scss +1 -0
- package/livingdocs/CV/cv-timeline/ldd.scss +1 -0
- package/livingdocs/CV/cv-timeline/pdf.scss +1 -0
- package/livingdocs/CV/cv-timeline/print.scss +35 -0
- package/livingdocs/CV/cv-timeline/web.scss +27 -0
- package/livingdocs/CV/cv-timeline/word.scss +1 -0
- package/livingdocs/Container/column-container/column-container.html +44 -0
- package/livingdocs/Container/column-container/general.scss +105 -0
- package/livingdocs/Container/column-container/properties.json +83 -0
- package/livingdocs/Lists/alphanumeric-list-group/alphanumeric-list-group.html +25 -0
- package/livingdocs/Lists/alphanumeric-list-group/app.scss +1 -0
- package/livingdocs/Lists/alphanumeric-list-group/general.scss +5 -0
- package/livingdocs/Lists/alphanumeric-list-group/ldd.scss +1 -0
- package/livingdocs/Lists/alphanumeric-list-group/pdf.scss +1 -0
- package/livingdocs/Lists/alphanumeric-list-group/print.scss +0 -0
- package/livingdocs/Lists/alphanumeric-list-group/web.scss +0 -0
- package/livingdocs/Lists/alphanumeric-list-group/word.scss +1 -0
- package/livingdocs/Lists/list-item/app.scss +1 -0
- package/livingdocs/Lists/list-item/general.scss +4 -0
- package/livingdocs/Lists/list-item/ldd.scss +1 -0
- package/livingdocs/Lists/list-item/list-item.html +17 -0
- package/livingdocs/Lists/list-item/pdf.scss +1 -0
- package/livingdocs/Lists/list-item/print.scss +0 -0
- package/livingdocs/Lists/list-item/web.scss +0 -0
- package/livingdocs/Lists/list-item/word.scss +1 -0
- package/livingdocs/Lists/ordered-list-group/app.scss +1 -0
- package/livingdocs/Lists/ordered-list-group/general.scss +5 -0
- package/livingdocs/Lists/ordered-list-group/ldd.scss +1 -0
- package/livingdocs/Lists/ordered-list-group/ordered-list-group.html +25 -0
- package/livingdocs/Lists/ordered-list-group/pdf.scss +1 -0
- package/livingdocs/Lists/ordered-list-group/print.scss +0 -0
- package/livingdocs/Lists/ordered-list-group/web.scss +0 -0
- package/livingdocs/Lists/ordered-list-group/word.scss +1 -0
- package/livingdocs/Lists/unordered-list-group/app.scss +1 -0
- package/livingdocs/Lists/unordered-list-group/general.scss +5 -0
- package/livingdocs/Lists/unordered-list-group/ldd.scss +1 -0
- package/livingdocs/Lists/unordered-list-group/pdf.scss +1 -0
- package/livingdocs/Lists/unordered-list-group/print.scss +0 -0
- package/livingdocs/Lists/unordered-list-group/unordered-list-group.html +25 -0
- package/livingdocs/Lists/unordered-list-group/web.scss +0 -0
- package/livingdocs/Lists/unordered-list-group/word.scss +1 -0
- package/livingdocs/Media/chart/app.scss +19 -0
- package/livingdocs/Media/chart/chart.html +29 -0
- package/livingdocs/Media/chart/general.scss +11 -0
- package/livingdocs/Media/chart/ldd.scss +1 -0
- package/livingdocs/Media/chart/pdf.scss +9 -0
- package/livingdocs/Media/chart/print.scss +0 -0
- package/livingdocs/Media/chart/properties.json +41 -0
- package/livingdocs/Media/chart/web.scss +0 -0
- package/livingdocs/Media/chart/word.scss +1 -0
- package/livingdocs/Media/graphic/app.scss +1 -0
- package/livingdocs/Media/graphic/general.scss +18 -0
- package/livingdocs/Media/graphic/graphic.html +29 -0
- package/livingdocs/Media/graphic/ldd.scss +1 -0
- package/livingdocs/Media/graphic/pdf.scss +1 -0
- package/livingdocs/Media/graphic/print.scss +0 -0
- package/livingdocs/Media/graphic/properties.json +36 -0
- package/livingdocs/Media/graphic/web.scss +0 -0
- package/livingdocs/Media/graphic/word.scss +1 -0
- package/livingdocs/Media/image/app.scss +25 -0
- package/livingdocs/Media/image/general.scss +11 -0
- package/livingdocs/Media/image/image.html +55 -0
- package/livingdocs/Media/image/ldd.scss +1 -0
- package/livingdocs/Media/image/pdf.scss +1 -0
- package/livingdocs/Media/image/print.scss +7 -0
- package/livingdocs/Media/image/properties.json +41 -0
- package/livingdocs/Media/image/web.scss +0 -0
- package/livingdocs/Media/image/word.scss +1 -0
- package/livingdocs/Media/nswow-table/app.scss +2 -0
- package/livingdocs/Media/nswow-table/app.ts +35 -0
- package/livingdocs/Media/nswow-table/general.scss +281 -0
- package/livingdocs/Media/nswow-table/ldd.scss +2 -0
- package/livingdocs/Media/nswow-table/nswow-table.html +30 -0
- package/livingdocs/Media/nswow-table/pdf.scss +8 -0
- package/livingdocs/Media/nswow-table/print.scss +0 -0
- package/livingdocs/Media/nswow-table/properties.json +66 -0
- package/livingdocs/Media/nswow-table/web.scss +23 -0
- package/livingdocs/Media/nswow-table/word.scss +2 -0
- package/livingdocs/Media/video/app.scss +1 -0
- package/livingdocs/Media/video/general.scss +7 -0
- package/livingdocs/Media/video/ldd.scss +1 -0
- package/livingdocs/Media/video/pdf.scss +1 -0
- package/livingdocs/Media/video/print.scss +5 -0
- package/livingdocs/Media/video/properties.json +41 -0
- package/livingdocs/Media/video/video.html +26 -0
- package/livingdocs/Media/video/web.scss +0 -0
- package/livingdocs/Media/video/word.scss +1 -0
- package/livingdocs/Misc/accordion/accordion.html +56 -0
- package/livingdocs/Misc/accordion/app.scss +63 -0
- package/livingdocs/Misc/accordion/app.ts +10 -0
- package/livingdocs/Misc/accordion/general.scss +44 -0
- package/livingdocs/Misc/accordion/ldd.scss +36 -0
- package/livingdocs/Misc/accordion/pdf.scss +39 -0
- package/livingdocs/Misc/accordion/word.scss +39 -0
- package/livingdocs/Misc/anchor/anchor.html +15 -0
- package/livingdocs/Misc/anchor/app.scss +10 -0
- package/livingdocs/Misc/anchor/app.ts +11 -0
- package/livingdocs/Misc/anchor/general.scss +1 -0
- package/livingdocs/Misc/anchor/pdf.scss +1 -0
- package/livingdocs/Misc/anchor/print.scss +3 -0
- package/livingdocs/Misc/anchor/word.scss +1 -0
- package/livingdocs/Misc/spacer/app.scss +1 -0
- package/livingdocs/Misc/spacer/general.scss +8 -0
- package/livingdocs/Misc/spacer/ldd.scss +1 -0
- package/livingdocs/Misc/spacer/pdf.scss +1 -0
- package/livingdocs/Misc/spacer/print.scss +18 -0
- package/livingdocs/Misc/spacer/properties.json +52 -0
- package/livingdocs/Misc/spacer/spacer.html +12 -0
- package/livingdocs/Misc/spacer/web.scss +18 -0
- package/livingdocs/Misc/spacer/word.scss +1 -0
- package/livingdocs/PDF_only/pdf-cover/ldd.scss +42 -0
- package/livingdocs/PDF_only/pdf-cover/pdf-cover.html +29 -0
- package/livingdocs/PDF_only/pdf-cover/pdf.scss +1 -0
- package/livingdocs/PDF_only/pdf-cover/print.scss +0 -0
- package/livingdocs/PDF_only/pdf-cover/word.scss +1 -0
- package/livingdocs/PDF_only/pdf-cover-chapter/ldd.scss +19 -0
- package/livingdocs/PDF_only/pdf-cover-chapter/pdf-chapter-cover.html +18 -0
- package/livingdocs/PDF_only/pdf-cover-chapter/pdf.scss +1 -0
- package/livingdocs/PDF_only/pdf-cover-chapter/print.scss +19 -0
- package/livingdocs/PDF_only/pdf-cover-chapter/word.scss +1 -0
- package/livingdocs/PDF_only/pdf-pagebreak/general.scss +4 -0
- package/livingdocs/PDF_only/pdf-pagebreak/ldd.scss +5 -0
- package/livingdocs/PDF_only/pdf-pagebreak/pdf-pagebreak.html +8 -0
- package/livingdocs/PDF_only/pdf-publication-title/general.scss +5 -0
- package/livingdocs/PDF_only/pdf-publication-title/pdf-publication-title.html +15 -0
- package/livingdocs/PDF_only/pdf-toc-item/general.scss +41 -0
- package/livingdocs/PDF_only/pdf-toc-item/pdf-toc-item.html +33 -0
- package/livingdocs/PDF_only/pdf-toc-item/properties.json +7 -0
- package/livingdocs/PDF_only/pdf-toc-item-blank/general.scss +5 -0
- package/livingdocs/PDF_only/pdf-toc-item-blank/pdf-toc-item-blank.html +11 -0
- package/livingdocs/PDF_only/pdf-toc-item-title/general.scss +5 -0
- package/livingdocs/PDF_only/pdf-toc-item-title/pdf-toc-item-title.html +11 -0
- package/livingdocs/PDF_only/pdf-toc-page/app.scss +1 -0
- package/livingdocs/PDF_only/pdf-toc-page/general.scss +1 -0
- package/livingdocs/PDF_only/pdf-toc-page/ldd.scss +1 -0
- package/livingdocs/PDF_only/pdf-toc-page/pdf-toc-page.html +33 -0
- package/livingdocs/PDF_only/pdf-toc-page/pdf.scss +1 -0
- package/livingdocs/PDF_only/pdf-toc-page/properties.json +12 -0
- package/livingdocs/PDF_only/pdf-toc-page/word.scss +1 -0
- package/livingdocs/PDF_only/pdf-video-link/ldd.scss +16 -0
- package/livingdocs/PDF_only/pdf-video-link/pdf-video-link.html +41 -0
- package/livingdocs/PDF_only/pdf-video-link/pdf.scss +1 -0
- package/livingdocs/PDF_only/pdf-video-link/print.scss +12 -0
- package/livingdocs/PDF_only/pdf-video-link/word.scss +1 -0
- package/livingdocs/Properties/grid/app.scss +1 -0
- package/livingdocs/Properties/grid/general.scss +95 -0
- package/livingdocs/Properties/grid/ldd.scss +1 -0
- package/livingdocs/Properties/grid/pdf.scss +1 -0
- package/livingdocs/Properties/grid/print.scss +94 -0
- package/livingdocs/Properties/grid/properties.json +68 -0
- package/livingdocs/Properties/grid/web.scss +98 -0
- package/livingdocs/Properties/grid/word.scss +1 -0
- package/livingdocs/Signatures/signature-container/app.scss +1 -0
- package/livingdocs/Signatures/signature-container/general.scss +7 -0
- package/livingdocs/Signatures/signature-container/ldd.scss +1 -0
- package/livingdocs/Signatures/signature-container/pdf.scss +1 -0
- package/livingdocs/Signatures/signature-container/print.scss +0 -0
- package/livingdocs/Signatures/signature-container/signature-container.html +30 -0
- package/livingdocs/Signatures/signature-container/web.scss +0 -0
- package/livingdocs/Signatures/signature-container/word.scss +1 -0
- package/livingdocs/Signatures/signature-item/app.scss +1 -0
- package/livingdocs/Signatures/signature-item/general.scss +53 -0
- package/livingdocs/Signatures/signature-item/ldd.scss +1 -0
- package/livingdocs/Signatures/signature-item/pdf.scss +1 -0
- package/livingdocs/Signatures/signature-item/print.scss +0 -0
- package/livingdocs/Signatures/signature-item/signature-item.html +23 -0
- package/livingdocs/Signatures/signature-item/web.scss +0 -0
- package/livingdocs/Signatures/signature-item/word.scss +1 -0
- package/livingdocs/Text/footnote/app.scss +1 -0
- package/livingdocs/Text/footnote/footnote.html +14 -0
- package/livingdocs/Text/footnote/general.scss +12 -0
- package/livingdocs/Text/footnote/ldd.scss +1 -0
- package/livingdocs/Text/footnote/pdf.scss +1 -0
- package/livingdocs/Text/footnote/print.scss +36 -0
- package/livingdocs/Text/footnote/web.scss +27 -0
- package/livingdocs/Text/footnote/word.scss +1 -0
- package/livingdocs/Text/lead/general.scss +9 -0
- package/livingdocs/Text/lead/lead.html +23 -0
- package/livingdocs/Text/paragraph/general.scss +9 -0
- package/livingdocs/Text/paragraph/paragraph.html +24 -0
- package/livingdocs/Text/quote/general.scss +43 -0
- package/livingdocs/Text/quote/properties.json +7 -0
- package/livingdocs/Text/quote/quote.html +29 -0
- package/livingdocs/Text/quote-with-portrait/general.scss +81 -0
- package/livingdocs/Text/quote-with-portrait/properties.json +12 -0
- package/livingdocs/Text/quote-with-portrait/quote-with-portrait.html +49 -0
- package/livingdocs/Titles/title-h1/general.scss +10 -0
- package/livingdocs/Titles/title-h1/title-h1.html +16 -0
- package/livingdocs/Titles/title-h2/app.scss +1 -0
- package/livingdocs/Titles/title-h2/general.scss +13 -0
- package/livingdocs/Titles/title-h2/ldd.scss +1 -0
- package/livingdocs/Titles/title-h2/pdf.scss +1 -0
- package/livingdocs/Titles/title-h2/print.scss +36 -0
- package/livingdocs/Titles/title-h2/title-h2.html +26 -0
- package/livingdocs/Titles/title-h2/web.scss +27 -0
- package/livingdocs/Titles/title-h2/word.scss +1 -0
- package/livingdocs/Titles/title-h3/app.scss +1 -0
- package/livingdocs/Titles/title-h3/general.scss +13 -0
- package/livingdocs/Titles/title-h3/ldd.scss +1 -0
- package/livingdocs/Titles/title-h3/pdf.scss +1 -0
- package/livingdocs/Titles/title-h3/print.scss +34 -0
- package/livingdocs/Titles/title-h3/title-h3.html +26 -0
- package/livingdocs/Titles/title-h3/web.scss +27 -0
- package/livingdocs/Titles/title-h3/word.scss +1 -0
- package/livingdocs/Titles/title-h4/app.scss +1 -0
- package/livingdocs/Titles/title-h4/general.scss +13 -0
- package/livingdocs/Titles/title-h4/ldd.scss +1 -0
- package/livingdocs/Titles/title-h4/pdf.scss +1 -0
- package/livingdocs/Titles/title-h4/print.scss +34 -0
- package/livingdocs/Titles/title-h4/title-h4.html +26 -0
- package/livingdocs/Titles/title-h4/web.scss +27 -0
- package/livingdocs/Titles/title-h4/word.scss +1 -0
- package/livingdocs/Titles/title-h5/general.scss +10 -0
- package/livingdocs/Titles/title-h5/title-h5.html +16 -0
- package/livingdocs/Titles/title-h6/general.scss +10 -0
- package/livingdocs/Titles/title-h6/title-h6.html +16 -0
- package/package.json +50 -0
- package/preparePublish.cjs +95 -0
- package/scripts/beaver.d.ts +6 -0
- package/scripts/beaver.js +316 -0
- package/scripts/build.d.ts +40 -0
- package/scripts/build.js +812 -0
- package/scripts/colors.d.ts +3 -0
- package/scripts/colors.js +27 -0
- package/scripts/components.d.ts +43 -0
- package/scripts/components.js +566 -0
- package/scripts/config.d.ts +1 -0
- package/scripts/config.js +1 -0
- package/scripts/doPublish.d.ts +1 -0
- package/scripts/doPublish.js +43 -0
- package/scripts/init.d.ts +9 -0
- package/scripts/init.js +45 -0
- package/scripts/migrate-livingdocs-build/LICENSE +21 -0
- package/scripts/migrate-livingdocs-build/bin/build.d.ts +8 -0
- package/scripts/migrate-livingdocs-build/bin/build.js +53 -0
- package/scripts/migrate-livingdocs-build/bin/migrate.d.ts +2 -0
- package/scripts/migrate-livingdocs-build/bin/migrate.js +43 -0
- package/scripts/migrate-livingdocs-build/dev/build/v1.d.ts +9 -0
- package/scripts/migrate-livingdocs-build/dev/build/v1.d.ts.map +1 -0
- package/scripts/migrate-livingdocs-build/dev/build/v1.js +51 -0
- package/scripts/migrate-livingdocs-build/dev/build/v2.d.ts +2 -0
- package/scripts/migrate-livingdocs-build/dev/build/v2.d.ts.map +1 -0
- package/scripts/migrate-livingdocs-build/dev/build/v2.js +44 -0
- package/scripts/migrate-livingdocs-build/dev/build/zip-archive.d.ts +2 -0
- package/scripts/migrate-livingdocs-build/dev/build/zip-archive.d.ts.map +1 -0
- package/scripts/migrate-livingdocs-build/dev/build/zip-archive.js +39 -0
- package/scripts/migrate-livingdocs-build/dev/build.d.ts +9 -0
- package/scripts/migrate-livingdocs-build/dev/build.js +7 -0
- package/scripts/migrate-livingdocs-build/dev/configuration-defaults.d.ts +20 -0
- package/scripts/migrate-livingdocs-build/dev/configuration-defaults.js +18 -0
- package/scripts/migrate-livingdocs-build/dev/configuration.d.ts +2 -0
- package/scripts/migrate-livingdocs-build/dev/configuration.js +34 -0
- package/scripts/migrate-livingdocs-build/dev/lib.d.ts +33 -0
- package/scripts/migrate-livingdocs-build/dev/lib.js +251 -0
- package/scripts/migrate-livingdocs-build/dev/livingdocs-design.d.ts +9 -0
- package/scripts/migrate-livingdocs-build/dev/livingdocs-design.js +80 -0
- package/scripts/migrate-livingdocs-build/dev/logger.d.ts +2 -0
- package/scripts/migrate-livingdocs-build/dev/logger.js +16 -0
- package/scripts/migrate-livingdocs-build/dev/migrate.d.ts +22 -0
- package/scripts/migrate-livingdocs-build/dev/migrate.js +241 -0
- package/scripts/migrate-livingdocs-build/readme.md +62 -0
- package/scripts/preparePublish.d.ts +1 -0
- package/scripts/preparePublish.js +88 -0
- package/scripts/renamePackage.d.ts +1 -0
- package/scripts/renamePackage.js +48 -0
- package/scripts/utils.d.ts +49 -0
- package/scripts/utils.js +106 -0
- package/scripts/vite.d.ts +10 -0
- package/scripts/vite.js +58 -0
- package/scss/colors/functions.scss +18 -0
- package/scss/colors/index.scss +3 -0
- package/scss/colors/mixins.scss +45 -0
- package/scss/colors/variables.scss +6 -0
- package/scss/config.scss +7 -0
- package/scss/core-styles.scss +22 -0
- package/scss/fonts/functions.scss +21 -0
- package/scss/fonts/index.scss +3 -0
- package/scss/fonts/mixins.scss +31 -0
- package/scss/fonts/variables.scss +8 -0
- package/scss/grid/functions.scss +29 -0
- package/scss/grid/index.scss +3 -0
- package/scss/grid/mixins.scss +388 -0
- package/scss/grid/variables.scss +10 -0
- package/scss/helpers/functions.scss +0 -0
- package/scss/helpers/index.scss +3 -0
- package/scss/helpers/mixins.scss +87 -0
- package/scss/helpers/variables.scss +7 -0
- package/scss/index.scss +8 -0
- package/scss/meta/functions.scss +64 -0
- package/scss/meta/index.scss +3 -0
- package/scss/meta/mixins.scss +6 -0
- package/scss/meta/variables.scss +8 -0
- package/scss/spacer/functions.scss +9 -0
- package/scss/spacer/index.scss +3 -0
- package/scss/spacer/mixins.scss +236 -0
- package/scss/spacer/variables.scss +6 -0
- package/scss/system/functions.scss +77 -0
- package/scss/system/index.scss +3 -0
- package/scss/system/mixins.scss +27 -0
- package/scss/system/root.scss +39 -0
- package/scss/system/variables.scss +13 -0
- package/scss/typography/functions.scss +63 -0
- package/scss/typography/index.scss +3 -0
- package/scss/typography/mixins.scss +262 -0
- package/scss/typography/variables.scss +11 -0
- 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>
|