@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,88 @@
|
|
|
1
|
+
import { join } from 'node:path/posix';
|
|
2
|
+
import { readFileSync, writeFileSync, rmSync } from 'node:fs';
|
|
3
|
+
import { globSync } from 'glob';
|
|
4
|
+
import writeJson from 'write-json';
|
|
5
|
+
import ts from 'typescript';
|
|
6
|
+
import Enquirer from 'enquirer';
|
|
7
|
+
import { packageName } from './config.js';
|
|
8
|
+
|
|
9
|
+
const { Input } = Enquirer;
|
|
10
|
+
|
|
11
|
+
async function compile(fileNames, options) {
|
|
12
|
+
// Create a Program with an in-memory emit
|
|
13
|
+
const createdFiles = {};
|
|
14
|
+
const host = ts.createCompilerHost(options);
|
|
15
|
+
host.writeFile = (fileName, contents) => (createdFiles[fileName] = contents);
|
|
16
|
+
|
|
17
|
+
// Prepare and emit the d.ts files
|
|
18
|
+
const program = ts.createProgram(fileNames, options, host);
|
|
19
|
+
program.emit();
|
|
20
|
+
|
|
21
|
+
for (const file in createdFiles) {
|
|
22
|
+
const content = createdFiles[file];
|
|
23
|
+
await writeFileSync(file, content);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export async function preparePublish(version) {
|
|
28
|
+
|
|
29
|
+
if (version) {
|
|
30
|
+
const packageJson = JSON.parse(
|
|
31
|
+
await readFileSync(join(process.cwd(), 'package.json')),
|
|
32
|
+
);
|
|
33
|
+
packageJson.version = version;
|
|
34
|
+
await writeJson(join(process.cwd(), 'package.json'), packageJson);
|
|
35
|
+
|
|
36
|
+
const devJson = JSON.parse(
|
|
37
|
+
await readFileSync(join(process.cwd(), 'dev', 'package.json')),
|
|
38
|
+
);
|
|
39
|
+
devJson.dependencies[packageName] = `^${version}`;
|
|
40
|
+
await writeJson(join(process.cwd(), 'dev', 'package.json'), devJson);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const typescriptFiles = await globSync(
|
|
44
|
+
join(process.cwd(), 'scripts', '**', '*.d.ts'),
|
|
45
|
+
);
|
|
46
|
+
for (let i = 0; i < typescriptFiles.length; i++) {
|
|
47
|
+
await rmSync(typescriptFiles[i]);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const jsFiles = await globSync(join(process.cwd(), 'scripts', '**', '*.js'));
|
|
51
|
+
|
|
52
|
+
await compile(jsFiles, {
|
|
53
|
+
allowJs: true,
|
|
54
|
+
declaration: true,
|
|
55
|
+
emitDeclarationOnly: true,
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
const vueComponents = await globSync(
|
|
59
|
+
join(process.cwd(), 'src', '**', '*.vue'),
|
|
60
|
+
);
|
|
61
|
+
await compile(vueComponents, {
|
|
62
|
+
allowJs: true,
|
|
63
|
+
declaration: true,
|
|
64
|
+
emitDeclarationOnly: true,
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
return version;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
71
|
+
try {
|
|
72
|
+
let version = null;
|
|
73
|
+
const indexVersion = process.argv.indexOf('-v');
|
|
74
|
+
if (indexVersion !== -1 && process.argv[indexVersion + 1]) {
|
|
75
|
+
const newVersion = process.argv[indexVersion + 1];
|
|
76
|
+
if (/^\d+\.\d+\.\d+$/.test(newVersion)) {
|
|
77
|
+
version = newVersion;
|
|
78
|
+
} else {
|
|
79
|
+
throw new Error(
|
|
80
|
+
`Invalid version format ${newVersion}. Use $number.$number.$number`,
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
preparePublish(version);
|
|
85
|
+
} catch (error) {
|
|
86
|
+
console.error(error);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function renamePackages(startDir?: any): void;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import fs from 'fs';
|
|
2
|
+
import path from 'path';
|
|
3
|
+
|
|
4
|
+
const search = '@multivisio/nswow';
|
|
5
|
+
const replace = '@simple-reporting/base';
|
|
6
|
+
const CWD = process.cwd();
|
|
7
|
+
const excludes = [
|
|
8
|
+
'scripts/renamePackage.js',
|
|
9
|
+
'scripts/renamePackage.d.ts',
|
|
10
|
+
'.git',
|
|
11
|
+
'node_modules',
|
|
12
|
+
'test-data',
|
|
13
|
+
];
|
|
14
|
+
|
|
15
|
+
const excludePaths = [...excludes.map((f) => path.join(CWD, ...f.split('/')))];
|
|
16
|
+
|
|
17
|
+
function replaceInFile(filePath) {
|
|
18
|
+
const content = fs.readFileSync(filePath, 'utf8');
|
|
19
|
+
if (content.includes(search)) {
|
|
20
|
+
const newContent = content.split(search).join(replace);
|
|
21
|
+
fs.writeFileSync(filePath, newContent, 'utf8');
|
|
22
|
+
console.log(`Replaced in: ${filePath}`);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function walkDir(dir) {
|
|
27
|
+
for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
|
|
28
|
+
const fullPath = path.join(dir, entry.name);
|
|
29
|
+
if (excludePaths.includes(fullPath)) continue;
|
|
30
|
+
if (entry.isDirectory()) {
|
|
31
|
+
console.log(fullPath);
|
|
32
|
+
walkDir(fullPath);
|
|
33
|
+
} else if (entry.isFile()) {
|
|
34
|
+
console.log(fullPath);
|
|
35
|
+
replaceInFile(fullPath);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function renamePackages(startDir = process.cwd()) {
|
|
41
|
+
console.log(`Starting to rename packages from "${search}" to "${replace}"`);
|
|
42
|
+
walkDir(startDir);
|
|
43
|
+
console.log('Done!');
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
47
|
+
renamePackages();
|
|
48
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Replaces underscore (_) placeholders with spaces and replaces '_and_' with a forward slash (/) separator.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} name - The name to modify.
|
|
5
|
+
* @return {string} The modified name with replaced placeholders.
|
|
6
|
+
*/
|
|
7
|
+
export function lddGroupNames(name: string): string;
|
|
8
|
+
/**
|
|
9
|
+
* Reads the contents of the package.json file.
|
|
10
|
+
*
|
|
11
|
+
* @returns {Promise<Object>} A Promise that resolves to the parsed contents of the package.json file.
|
|
12
|
+
*/
|
|
13
|
+
export function readPackageJson(): Promise<any>;
|
|
14
|
+
/**
|
|
15
|
+
* Writes a package.json file with the given configuration object.
|
|
16
|
+
*
|
|
17
|
+
* @param {Object} config - The configuration object for the package.json file.
|
|
18
|
+
* @return {Boolean} - Returns true if the package.json file is successfully written, else returns false.
|
|
19
|
+
*/
|
|
20
|
+
export function writePackageJson(config: any): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Reads the contents of the "livingdocs.config.json" file and returns the parsed JSON.
|
|
23
|
+
*
|
|
24
|
+
* @return {Promise<Object>} A promise that resolves to the parsed JSON from the file.
|
|
25
|
+
*/
|
|
26
|
+
export function readLivingDocsJson(): Promise<any>;
|
|
27
|
+
/**
|
|
28
|
+
* Writes the given configuration object to a JSON file.
|
|
29
|
+
*
|
|
30
|
+
* @param {Object} config - The configuration object to write.
|
|
31
|
+
* @returns {Promise<boolean>} - A Promise that resolves to true if the file was successfully written, otherwise false.
|
|
32
|
+
*/
|
|
33
|
+
export function writeLivingDocsJson(config: any): Promise<boolean>;
|
|
34
|
+
/**
|
|
35
|
+
* Reads the contents of the `nswow.config.json` file and returns the parsed JSON object.
|
|
36
|
+
*
|
|
37
|
+
* @returns {Promise<Object>} - Resolves to the parsed JSON object from the `nswow.config.json` file.
|
|
38
|
+
*/
|
|
39
|
+
export function readNsWowJson(): Promise<any>;
|
|
40
|
+
/**
|
|
41
|
+
* Writes the given configuration object to an nswow.config.json file.
|
|
42
|
+
* If no configuration object is provided, the method does nothing.
|
|
43
|
+
*
|
|
44
|
+
* @param {Object} config - The configuration object to write.
|
|
45
|
+
*
|
|
46
|
+
* @return {boolean} - Returns true if the configuration was successfully written, otherwise false.
|
|
47
|
+
*/
|
|
48
|
+
export function writeNsWowJson(config: any): boolean;
|
|
49
|
+
export { writeJson };
|
package/scripts/utils.js
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { resolve } from 'node:path';
|
|
2
|
+
import { readFileSync } from 'node:fs';
|
|
3
|
+
import { createRequire } from 'node:module';
|
|
4
|
+
|
|
5
|
+
const require = createRequire(import.meta.url);
|
|
6
|
+
/**
|
|
7
|
+
* A module for writing JSON data to a file.
|
|
8
|
+
*
|
|
9
|
+
* @module writeJson
|
|
10
|
+
*/
|
|
11
|
+
const writeJson = require('write-json');
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Replaces underscore (_) placeholders with spaces and replaces '_and_' with a forward slash (/) separator.
|
|
15
|
+
*
|
|
16
|
+
* @param {string} name - The name to modify.
|
|
17
|
+
* @return {string} The modified name with replaced placeholders.
|
|
18
|
+
*/
|
|
19
|
+
function lddGroupNames(name) {
|
|
20
|
+
return name.replace('_and_', ' / ').replace('_', ' ');
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Reads the contents of the package.json file.
|
|
25
|
+
*
|
|
26
|
+
* @returns {Promise<Object>} A Promise that resolves to the parsed contents of the package.json file.
|
|
27
|
+
*/
|
|
28
|
+
async function readPackageJson() {
|
|
29
|
+
const file = resolve(process.cwd(), './package.json');
|
|
30
|
+
return JSON.parse(await readFileSync(file));
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Writes a package.json file with the given configuration object.
|
|
35
|
+
*
|
|
36
|
+
* @param {Object} config - The configuration object for the package.json file.
|
|
37
|
+
* @return {Boolean} - Returns true if the package.json file is successfully written, else returns false.
|
|
38
|
+
*/
|
|
39
|
+
async function writePackageJson(config) {
|
|
40
|
+
if (config) {
|
|
41
|
+
const file = resolve(process.cwd(), './package.json');
|
|
42
|
+
writeJson.sync(file, config);
|
|
43
|
+
}
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Reads the contents of the "livingdocs.config.json" file and returns the parsed JSON.
|
|
49
|
+
*
|
|
50
|
+
* @return {Promise<Object>} A promise that resolves to the parsed JSON from the file.
|
|
51
|
+
*/
|
|
52
|
+
async function readLivingDocsJson() {
|
|
53
|
+
const file = resolve(process.cwd(), './livingdocs.config.json');
|
|
54
|
+
return JSON.parse(await readFileSync(file));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Writes the given configuration object to a JSON file.
|
|
59
|
+
*
|
|
60
|
+
* @param {Object} config - The configuration object to write.
|
|
61
|
+
* @returns {Promise<boolean>} - A Promise that resolves to true if the file was successfully written, otherwise false.
|
|
62
|
+
*/
|
|
63
|
+
async function writeLivingDocsJson(config) {
|
|
64
|
+
if (config) {
|
|
65
|
+
const file = resolve(process.cwd(), './livingdocs.config.json');
|
|
66
|
+
writeJson.sync(file, config);
|
|
67
|
+
}
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Reads the contents of the `nswow.config.json` file and returns the parsed JSON object.
|
|
73
|
+
*
|
|
74
|
+
* @returns {Promise<Object>} - Resolves to the parsed JSON object from the `nswow.config.json` file.
|
|
75
|
+
*/
|
|
76
|
+
async function readNsWowJson() {
|
|
77
|
+
const file = resolve(process.cwd(), './nswow.config.json');
|
|
78
|
+
return JSON.parse(await readFileSync(file));
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Writes the given configuration object to an nswow.config.json file.
|
|
83
|
+
* If no configuration object is provided, the method does nothing.
|
|
84
|
+
*
|
|
85
|
+
* @param {Object} config - The configuration object to write.
|
|
86
|
+
*
|
|
87
|
+
* @return {boolean} - Returns true if the configuration was successfully written, otherwise false.
|
|
88
|
+
*/
|
|
89
|
+
async function writeNsWowJson(config) {
|
|
90
|
+
if (config) {
|
|
91
|
+
const file = resolve(process.cwd(), './nswow.config.json');
|
|
92
|
+
writeJson.sync(file, config);
|
|
93
|
+
}
|
|
94
|
+
return true;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export {
|
|
98
|
+
writeJson,
|
|
99
|
+
lddGroupNames,
|
|
100
|
+
readPackageJson,
|
|
101
|
+
writePackageJson,
|
|
102
|
+
readLivingDocsJson,
|
|
103
|
+
writeLivingDocsJson,
|
|
104
|
+
readNsWowJson,
|
|
105
|
+
writeNsWowJson,
|
|
106
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configures the nswow-watcher for the server to monitor changes in specific files.
|
|
3
|
+
* When a change, add, or unlink event is triggered, corresponding actions are executed.
|
|
4
|
+
*
|
|
5
|
+
* @param {Object} server - The server object.
|
|
6
|
+
*/
|
|
7
|
+
export function nswowWatcher(): {
|
|
8
|
+
name: string;
|
|
9
|
+
configureServer(server: any): void;
|
|
10
|
+
};
|
package/scripts/vite.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { beaver } from './beaver.js';
|
|
2
|
+
import { map, mapLdd, mapJs } from './build.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Configures the nswow-watcher for the server to monitor changes in specific files.
|
|
6
|
+
* When a change, add, or unlink event is triggered, corresponding actions are executed.
|
|
7
|
+
*
|
|
8
|
+
* @param {Object} server - The server object.
|
|
9
|
+
*/
|
|
10
|
+
function nswowWatcher() {
|
|
11
|
+
return {
|
|
12
|
+
name: 'nswow-watcher',
|
|
13
|
+
configureServer(server) {
|
|
14
|
+
server.watcher.on('change', (path) => {
|
|
15
|
+
if (path.endsWith('/nswow.config.json')) {
|
|
16
|
+
beaver();
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
if (path.endsWith('/properties.json')) {
|
|
20
|
+
mapLdd();
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
server.watcher.on('add', (path) => {
|
|
24
|
+
if (
|
|
25
|
+
path.endsWith('/general.scss') ||
|
|
26
|
+
path.endsWith('/app.scss') ||
|
|
27
|
+
path.endsWith('/ldd.scss') ||
|
|
28
|
+
path.endsWith('/pdf.scss') ||
|
|
29
|
+
path.endsWith('/word.scss')
|
|
30
|
+
) {
|
|
31
|
+
map();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
if (path.endsWith('/app.js') || path.endsWith('/app.ts')) {
|
|
35
|
+
mapJs();
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
server.watcher.on('unlink', (path) => {
|
|
39
|
+
if (
|
|
40
|
+
path.endsWith('/general.scss') ||
|
|
41
|
+
path.endsWith('/app.scss') ||
|
|
42
|
+
path.endsWith('/ldd.scss') ||
|
|
43
|
+
path.endsWith('/pdf.scss') ||
|
|
44
|
+
path.endsWith('/word.scss') ||
|
|
45
|
+
path.endsWith('/properties.json')
|
|
46
|
+
) {
|
|
47
|
+
map();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
if (path.endsWith('/app.js') || path.endsWith('/app.ts')) {
|
|
51
|
+
mapJs();
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export { nswowWatcher };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'variables';
|
|
3
|
+
@use '../system';
|
|
4
|
+
|
|
5
|
+
@function get($colorName, $media: false) {
|
|
6
|
+
@if not map.has-key(variables.$colors, $colorName) {
|
|
7
|
+
@error "Invalid color \"#{$colorName}\" specified! Choose one of #{map.keys(variables.$colors)}";
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@if $media {
|
|
11
|
+
@return var(
|
|
12
|
+
--#{variables.$variable-prefix}color-#{$colorName}-#{$media},
|
|
13
|
+
var(--#{variables.$variable-prefix}color-#{$colorName})
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@return var(--#{variables.$variable-prefix}color-#{$colorName});
|
|
18
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'sass:string';
|
|
3
|
+
@use 'variables';
|
|
4
|
+
@use 'functions';
|
|
5
|
+
@use '../system';
|
|
6
|
+
|
|
7
|
+
@mixin set($colorName, $value, $media: false) {
|
|
8
|
+
@if not map.has-key(variables.$colors, $colorName) {
|
|
9
|
+
@error "Invalid color \"#{$colorName}\" specified! Choose one of #{map.keys(variables.$colors)}";
|
|
10
|
+
}
|
|
11
|
+
@if $media {
|
|
12
|
+
--#{variables.$variable-prefix}color-#{"" + $colorName}-#{$media}: #{$value};
|
|
13
|
+
} @else {
|
|
14
|
+
--#{variables.$variable-prefix}color-#{"" + $colorName}: #{$value};
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@each $colorName, $colors in variables.$colors {
|
|
19
|
+
@include system.add-root-style(
|
|
20
|
+
#{variables.$variable-prefix}color-#{'' + $colorName},
|
|
21
|
+
map.get($colors, color)
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@mixin core-styles {
|
|
26
|
+
@at-root {
|
|
27
|
+
@each $colorName, $colors in variables.$colors {
|
|
28
|
+
.#{variables.$class-prefix}color-#{'' + $colorName} {
|
|
29
|
+
color: functions.get($colorName);
|
|
30
|
+
}
|
|
31
|
+
$onKey: 'on-' + $colorName;
|
|
32
|
+
@if string.index($colorName, 'on-') != 1 {
|
|
33
|
+
.#{variables.$class-prefix}bg-#{'' + $colorName} {
|
|
34
|
+
background-color: functions.get($colorName);
|
|
35
|
+
@if map.has-key(variables.$colors, $onKey) {
|
|
36
|
+
color: functions.get($onKey);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
.#{variables.$class-prefix}bg-transparent {
|
|
43
|
+
background-color: transparent;
|
|
44
|
+
}
|
|
45
|
+
}
|
package/scss/config.scss
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
@use '@simple-reporting/base/scss/system/variables' as systemVariables;
|
|
2
|
+
@use '@simple-reporting/base/scss/meta/variables' as metaVariables;
|
|
3
|
+
@use '@simple-reporting/base/scss/grid/variables' as gridVariables;
|
|
4
|
+
@use '@simple-reporting/base/scss/colors/variables' as colorsVariables;
|
|
5
|
+
@use '@simple-reporting/base/scss/typography/variables' as typographyVariables;
|
|
6
|
+
@use '@simple-reporting/base/scss/spacer/variables' as spacerVariables;
|
|
7
|
+
@use '@simple-reporting/base/scss/helpers/variables' as helpersVariables;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@use 'index';
|
|
2
|
+
@use 'system/root';
|
|
3
|
+
|
|
4
|
+
@use 'modern-css-reset';
|
|
5
|
+
|
|
6
|
+
h5,
|
|
7
|
+
h6,
|
|
8
|
+
ol,
|
|
9
|
+
ul,
|
|
10
|
+
li {
|
|
11
|
+
margin: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@include root.core-styles;
|
|
15
|
+
@include index.core-styles;
|
|
16
|
+
@include index.system-core-styles;
|
|
17
|
+
@include index.fonts-core-styles;
|
|
18
|
+
@include index.grid-core-styles;
|
|
19
|
+
@include index.colors-core-styles;
|
|
20
|
+
@include index.typography-core-styles;
|
|
21
|
+
@include index.spacer-core-styles;
|
|
22
|
+
@include index.helpers-core-styles;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@use 'variables';
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
|
|
4
|
+
@function is($font) {
|
|
5
|
+
@return map.has-key(variables.$fonts, $font);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@function get($font) {
|
|
9
|
+
@if not map.has-key(variables.$fonts, $font) {
|
|
10
|
+
@error "Invalid font for fonts specified! Choose one of #{map.keys(variables.$fonts)}";
|
|
11
|
+
}
|
|
12
|
+
@return map.get(variables.$fonts, $font);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@function is-default() {
|
|
16
|
+
@return variables.$default-font != '';
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@function get-default() {
|
|
20
|
+
@return variables.$default-font;
|
|
21
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'variables';
|
|
3
|
+
@use '../system';
|
|
4
|
+
|
|
5
|
+
@mixin core-styles {
|
|
6
|
+
@each $font-family, $valFontFamily in variables.$fonts {
|
|
7
|
+
@each $index, $font in map.get($valFontFamily, 'types') {
|
|
8
|
+
$font-types: ();
|
|
9
|
+
@each $format, $file in map.get($font, 'src') {
|
|
10
|
+
$font-types: append(
|
|
11
|
+
$font-types,
|
|
12
|
+
'url("#{variables.$font-base-path}/#{$font-family}/#{$file}") format("#{$format}")',
|
|
13
|
+
comma
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
@font-face {
|
|
17
|
+
font-family: '#{$font-family}';
|
|
18
|
+
src: #{$font-types};
|
|
19
|
+
@if map.has-key($font, 'font-weight') {
|
|
20
|
+
font-weight: map.get($font, 'font-weight');
|
|
21
|
+
}
|
|
22
|
+
@if map.has-key($font, 'font-style') {
|
|
23
|
+
font-style: '#{map.get($font, 'font-style')}';
|
|
24
|
+
}
|
|
25
|
+
@if map.has-key($font, 'font-display') {
|
|
26
|
+
font-display: '#{map.get($font, 'font-display')}';
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'variables';
|
|
3
|
+
|
|
4
|
+
@function get-container-max-width() {
|
|
5
|
+
@return var(--#{variables.$variable-prefix}container-max-width, 0);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@function get-container-padding() {
|
|
9
|
+
@return var(--#{variables.$variable-prefix}container-padding, 0);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@function get-breakpoint($breakpoint) {
|
|
13
|
+
@if not map.has-key(variables.$breakpoints, $breakpoint) {
|
|
14
|
+
@error "Invalid breakpoint for container specified! Choose one of #{map.keys(variables.$breakpoints)}";
|
|
15
|
+
}
|
|
16
|
+
@return var(--#{variables.$variable-prefix}-breakpoint-#{$breakpoint});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@function get-gutter-columns() {
|
|
20
|
+
@return var(--#{variables.$variable-prefix}gutter-columns);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@function get-gutter-row-gap() {
|
|
24
|
+
@return var(--#{variables.$variable-prefix}gutter-row-gap);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@function get-gutter-column-gap() {
|
|
28
|
+
@return var(--#{variables.$variable-prefix}gutter-column-gap);
|
|
29
|
+
}
|