@simple-reporting/base 0.1.112 → 1.0.0
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 +0 -1
- package/cli.js +9 -2
- package/dev/index.html +3 -2
- package/dev/livingdocs.config.json +6 -228
- package/dev/package.json +24 -21
- package/dev/pdf/pdf-configuration-debug.xml +3 -0
- package/dev/public/downloads/downloads_de.json +1 -0
- package/dev/public/downloads/downloads_en.json +1 -0
- package/dev/public/favicon.png +0 -0
- package/dev/public/html/de/Downloads.html +3 -0
- package/dev/public/html/de/Home.html +3 -0
- package/dev/public/html/de/Suche.html +3 -0
- package/dev/public/html/en/Downloads.html +3 -0
- package/dev/public/html/en/Home.html +3 -0
- package/dev/public/html/en/Suche.html +3 -0
- package/dev/public/json/routing_de.json +86 -0
- package/dev/public/json/routing_en.json +86 -0
- package/dev/public/json/settings.json +8 -0
- package/dev/public/json/translations_hosting.json +1 -0
- package/dev/src/App.vue +23 -34
- package/dev/src/Autoload.ts +1 -1
- package/dev/src/Dialog.vue +99 -0
- package/dev/src/assets/fonts/Inter/Inter-Regular.ttf +0 -0
- package/dev/src/assets/fonts/Inter/Inter-Regular.woff2 +0 -0
- package/dev/src/assets/fonts/Inter/Inter-SemiBold.ttf +0 -0
- package/dev/src/assets/fonts/Inter/Inter-SemiBold.woff2 +0 -0
- package/dev/src/assets/fonts/Inter/inter.scss +17 -0
- package/dev/src/assets/images/next.svg +12 -0
- package/dev/src/assets/images/prev.svg +12 -0
- package/dev/src/assets/images/toTop.svg +12 -0
- package/dev/src/assets/scss/app.scss +1 -1
- package/dev/src/assets/scss/{ldd.scss → editor.scss} +6 -6
- package/dev/src/assets/scss/general.scss +53 -11
- package/dev/src/assets/scss/pdf.scss +137 -1
- package/dev/src/assets/scss/placeholders.scss +226 -0
- package/dev/src/assets/scss/print.scss +1 -1
- package/dev/src/assets/scss/web.scss +32 -1
- package/dev/src/assets/scss/word.scss +1 -1
- package/dev/src/components/BypassLinks.vue +90 -0
- package/dev/src/components/MainNavigation.vue +6 -200
- package/dev/src/components/NavLanguages.vue +57 -0
- package/dev/src/components/PageFooter.vue +11 -52
- package/dev/src/components/PageHeader.vue +27 -135
- package/dev/src/components/PageMain.vue +13 -0
- package/dev/src/components/PrevNext.vue +130 -106
- package/dev/src/components/SrlPage/KFCApplication/hooks/kfcData.ts +2 -2
- package/dev/src/components/SrlPage/KFCApplication/scss/_iz-keyfigure-comparison.scss +21 -21
- package/dev/src/components/SrlPage/KFCApplication/scss/_kfc-loading.scss +3 -3
- package/dev/src/components/SrlPage/KFCApplication/scss/_srl-button-kfc.scss +2 -2
- package/dev/src/components/Svg/Close.vue +14 -0
- package/dev/src/entries/main.ts +4 -0
- package/dev/src/entries/pdf.ts +2 -0
- package/dev/src/i18n/index.ts +12 -42
- package/dev/src/i18n/translation.ts +6 -6
- package/dev/src/locales/de.json +7 -13
- package/dev/src/locales/en.json +7 -13
- package/dev/src/router/index.ts +30 -33
- package/dev/src/views/ArticleView.vue +6 -71
- package/dev/src/views/DevView.vue +861 -0
- package/dev/src/views/HomeView.vue +2 -32
- package/dev/src/views/PageNotFound.vue +8 -4
- package/dev/srl.config.json +754 -0
- package/dev/tsconfig.app.json +1 -4
- package/dev/tsconfig.node.json +1 -0
- package/dev/vite.config.ts +4 -13
- package/initTestProject.js +91 -0
- package/jest.config.mjs +200 -0
- package/livingdocs/010.Titles/010.title-h1/ld-conf.json +5 -0
- package/livingdocs/010.Titles/010.title-h1/scss/app.scss +1 -0
- package/livingdocs/010.Titles/010.title-h1/scss/editor.scss +1 -0
- package/livingdocs/010.Titles/010.title-h1/scss/general.scss +5 -0
- package/livingdocs/010.Titles/010.title-h1/scss/xbrl.scss +1 -0
- package/livingdocs/010.Titles/010.title-h1/title-h1.html +5 -0
- package/livingdocs/010.Titles/020.title-h2/ld-conf.json +10 -0
- package/livingdocs/010.Titles/020.title-h2/properties.json +27 -0
- package/livingdocs/010.Titles/020.title-h2/scss/app.scss +1 -0
- package/livingdocs/010.Titles/020.title-h2/scss/editor.scss +1 -0
- package/livingdocs/010.Titles/020.title-h2/scss/general.scss +21 -0
- package/livingdocs/010.Titles/020.title-h2/scss/xbrl.scss +1 -0
- package/livingdocs/010.Titles/020.title-h2/title-h2.html +22 -0
- package/livingdocs/010.Titles/030.title-h3/ld-conf.json +10 -0
- package/livingdocs/010.Titles/030.title-h3/properties.json +23 -0
- package/livingdocs/010.Titles/030.title-h3/scss/app.scss +1 -0
- package/livingdocs/010.Titles/030.title-h3/scss/editor.scss +1 -0
- package/livingdocs/010.Titles/030.title-h3/scss/general.scss +21 -0
- package/livingdocs/010.Titles/030.title-h3/scss/xbrl.scss +1 -0
- package/livingdocs/010.Titles/030.title-h3/title-h3.html +22 -0
- package/livingdocs/010.Titles/040.title-h4/ld-conf.json +10 -0
- package/livingdocs/010.Titles/040.title-h4/properties.json +19 -0
- package/livingdocs/010.Titles/040.title-h4/scss/app.scss +1 -0
- package/livingdocs/010.Titles/040.title-h4/scss/editor.scss +1 -0
- package/livingdocs/010.Titles/040.title-h4/scss/general.scss +21 -0
- package/livingdocs/010.Titles/040.title-h4/scss/xbrl.scss +1 -0
- package/livingdocs/010.Titles/040.title-h4/title-h4.html +22 -0
- package/livingdocs/010.Titles/050.title-h5/ld-conf.json +5 -0
- package/livingdocs/010.Titles/050.title-h5/properties.json +15 -0
- package/livingdocs/010.Titles/050.title-h5/scss/app.scss +1 -0
- package/livingdocs/010.Titles/050.title-h5/scss/editor.scss +1 -0
- package/livingdocs/010.Titles/050.title-h5/scss/general.scss +6 -0
- package/livingdocs/010.Titles/050.title-h5/scss/xbrl.scss +1 -0
- package/livingdocs/010.Titles/050.title-h5/title-h5.html +5 -0
- package/livingdocs/010.Titles/060.title-h6/ld-conf.json +5 -0
- package/livingdocs/010.Titles/060.title-h6/scss/app.scss +1 -0
- package/livingdocs/010.Titles/060.title-h6/scss/editor.scss +1 -0
- package/livingdocs/010.Titles/060.title-h6/scss/general.scss +6 -0
- package/livingdocs/010.Titles/060.title-h6/scss/xbrl.scss +1 -0
- package/livingdocs/010.Titles/060.title-h6/title-h6.html +5 -0
- package/livingdocs/020.Text/010.lead/ld-conf.json +10 -0
- package/livingdocs/020.Text/010.lead/lead.html +7 -0
- package/livingdocs/020.Text/010.lead/scss/app.scss +1 -0
- package/livingdocs/020.Text/010.lead/scss/editor.scss +1 -0
- package/livingdocs/020.Text/010.lead/scss/general.scss +6 -0
- package/livingdocs/020.Text/010.lead/scss/xbrl.scss +1 -0
- package/livingdocs/020.Text/020.paragraph/ld-conf.json +5 -0
- package/livingdocs/{Text/paragraph → 020.Text/020.paragraph}/paragraph.html +2 -13
- package/livingdocs/020.Text/020.paragraph/scss/app.scss +1 -0
- package/livingdocs/020.Text/020.paragraph/scss/editor.scss +1 -0
- package/livingdocs/020.Text/020.paragraph/scss/general.scss +6 -0
- package/livingdocs/020.Text/020.paragraph/scss/web.scss +0 -0
- package/livingdocs/020.Text/020.paragraph/scss/word.scss +0 -0
- package/livingdocs/020.Text/020.paragraph/scss/xbrl.scss +1 -0
- package/livingdocs/020.Text/030.paragraph-strong/ld-conf.json +5 -0
- package/livingdocs/020.Text/030.paragraph-strong/paragraph.html +16 -0
- package/livingdocs/020.Text/030.paragraph-strong/scss/app.scss +1 -0
- package/livingdocs/020.Text/030.paragraph-strong/scss/editor.scss +0 -0
- package/livingdocs/020.Text/030.paragraph-strong/scss/general.scss +5 -0
- package/livingdocs/020.Text/030.paragraph-strong/scss/pdf.scss +1 -0
- package/livingdocs/020.Text/030.paragraph-strong/scss/web.scss +0 -0
- package/livingdocs/020.Text/030.paragraph-strong/scss/word.scss +0 -0
- package/livingdocs/020.Text/030.paragraph-strong/scss/xbrl.scss +1 -0
- package/livingdocs/020.Text/040.link/ld-conf.json +15 -0
- package/livingdocs/020.Text/040.link/link.html +12 -0
- package/livingdocs/020.Text/040.link/scss/app.scss +1 -0
- package/livingdocs/020.Text/040.link/scss/editor.scss +1 -0
- package/livingdocs/020.Text/040.link/scss/general.scss +6 -0
- package/livingdocs/020.Text/040.link/scss/pdf.scss +0 -0
- package/livingdocs/020.Text/040.link/scss/web.scss +0 -0
- package/livingdocs/020.Text/040.link/scss/word.scss +0 -0
- package/livingdocs/020.Text/040.link/scss/xbrl.scss +1 -0
- package/livingdocs/020.Text/050.quote/ld-conf.json +5 -0
- package/livingdocs/020.Text/050.quote/quote.html +15 -0
- package/livingdocs/020.Text/050.quote/scss/app.scss +1 -0
- package/livingdocs/020.Text/050.quote/scss/editor.scss +1 -0
- package/livingdocs/020.Text/050.quote/scss/general.scss +17 -0
- package/livingdocs/020.Text/050.quote/scss/pdf.scss +0 -0
- package/livingdocs/020.Text/050.quote/scss/web.scss +0 -0
- package/livingdocs/020.Text/050.quote/scss/word.scss +0 -0
- package/livingdocs/020.Text/050.quote/scss/xbrl.scss +1 -0
- package/livingdocs/020.Text/060.quote-with-portrait/ld-conf.json +11 -0
- package/livingdocs/020.Text/060.quote-with-portrait/quote-with-portrait.html +18 -0
- package/livingdocs/020.Text/060.quote-with-portrait/scss/app.scss +1 -0
- package/livingdocs/020.Text/060.quote-with-portrait/scss/editor.scss +1 -0
- package/livingdocs/020.Text/060.quote-with-portrait/scss/general.scss +17 -0
- package/livingdocs/020.Text/060.quote-with-portrait/scss/pdf.scss +29 -0
- package/livingdocs/020.Text/060.quote-with-portrait/scss/web.scss +24 -0
- package/livingdocs/020.Text/060.quote-with-portrait/scss/word.scss +0 -0
- package/livingdocs/020.Text/060.quote-with-portrait/scss/xbrl.scss +1 -0
- package/livingdocs/020.Text/070.footnote-container/footnote-container.html +6 -0
- package/livingdocs/020.Text/070.footnote-container/ld-conf.json +18 -0
- package/livingdocs/020.Text/070.footnote-container/scss/app.scss +1 -0
- package/livingdocs/020.Text/070.footnote-container/scss/editor.scss +1 -0
- package/livingdocs/020.Text/070.footnote-container/scss/general.scss +5 -0
- package/livingdocs/020.Text/070.footnote-container/scss/pdf.scss +0 -0
- package/livingdocs/020.Text/070.footnote-container/scss/web.scss +6 -0
- package/livingdocs/020.Text/070.footnote-container/scss/word.scss +0 -0
- package/livingdocs/020.Text/070.footnote-container/scss/xbrl.scss +1 -0
- package/livingdocs/020.Text/080.footnote-item/footnote-item.html +6 -0
- package/livingdocs/020.Text/080.footnote-item/ld-conf.json +5 -0
- package/livingdocs/020.Text/080.footnote-item/scss/app.scss +1 -0
- package/livingdocs/020.Text/080.footnote-item/scss/editor.scss +1 -0
- package/livingdocs/020.Text/080.footnote-item/scss/general.scss +28 -0
- package/livingdocs/020.Text/080.footnote-item/scss/pdf.scss +0 -0
- package/livingdocs/020.Text/080.footnote-item/scss/web.scss +0 -0
- package/livingdocs/020.Text/080.footnote-item/scss/word.scss +0 -0
- package/livingdocs/020.Text/080.footnote-item/scss/xbrl.scss +1 -0
- package/livingdocs/030.Lists/010.unordered-list/ld-conf.json +18 -0
- package/livingdocs/030.Lists/010.unordered-list/scss/app.scss +1 -0
- package/livingdocs/030.Lists/010.unordered-list/scss/editor.scss +1 -0
- package/livingdocs/030.Lists/010.unordered-list/scss/general.scss +12 -0
- package/livingdocs/030.Lists/010.unordered-list/scss/pdf.scss +0 -0
- package/livingdocs/030.Lists/010.unordered-list/scss/web.scss +0 -0
- package/livingdocs/030.Lists/010.unordered-list/scss/word.scss +0 -0
- package/livingdocs/030.Lists/010.unordered-list/scss/xbrl.scss +1 -0
- package/livingdocs/030.Lists/010.unordered-list/unordered-list.html +6 -0
- package/livingdocs/030.Lists/020.ordered-list/ld-conf.json +18 -0
- package/livingdocs/030.Lists/020.ordered-list/ordered-list.html +6 -0
- package/livingdocs/030.Lists/020.ordered-list/scss/app.scss +1 -0
- package/livingdocs/030.Lists/020.ordered-list/scss/editor.scss +1 -0
- package/livingdocs/030.Lists/020.ordered-list/scss/general.scss +9 -0
- package/livingdocs/030.Lists/020.ordered-list/scss/pdf.scss +0 -0
- package/livingdocs/030.Lists/020.ordered-list/scss/web.scss +0 -0
- package/livingdocs/030.Lists/020.ordered-list/scss/word.scss +0 -0
- package/livingdocs/030.Lists/020.ordered-list/scss/xbrl.scss +1 -0
- package/livingdocs/030.Lists/030.alphanumeric-list/alphanumeric-list.html +6 -0
- package/livingdocs/030.Lists/030.alphanumeric-list/ld-conf.json +18 -0
- package/livingdocs/030.Lists/030.alphanumeric-list/scss/app.scss +1 -0
- package/livingdocs/030.Lists/030.alphanumeric-list/scss/editor.scss +1 -0
- package/livingdocs/030.Lists/030.alphanumeric-list/scss/general.scss +9 -0
- package/livingdocs/030.Lists/030.alphanumeric-list/scss/pdf.scss +0 -0
- package/livingdocs/030.Lists/030.alphanumeric-list/scss/web.scss +0 -0
- package/livingdocs/030.Lists/030.alphanumeric-list/scss/word.scss +0 -0
- package/livingdocs/030.Lists/030.alphanumeric-list/scss/xbrl.scss +1 -0
- package/livingdocs/030.Lists/040.list-item/ld-conf.json +5 -0
- package/livingdocs/030.Lists/040.list-item/list-item.html +5 -0
- package/livingdocs/030.Lists/040.list-item/scss/app.scss +1 -0
- package/livingdocs/030.Lists/040.list-item/scss/editor.scss +1 -0
- package/livingdocs/030.Lists/040.list-item/scss/general.scss +35 -0
- package/livingdocs/030.Lists/040.list-item/scss/pdf.scss +0 -0
- package/livingdocs/030.Lists/040.list-item/scss/web.scss +0 -0
- package/livingdocs/030.Lists/040.list-item/scss/word.scss +0 -0
- package/livingdocs/030.Lists/040.list-item/scss/xbrl.scss +1 -0
- package/livingdocs/040.Media/010.table/ld-conf.json +15 -0
- package/livingdocs/040.Media/010.table/properties.json +32 -0
- package/livingdocs/040.Media/010.table/scss/app.scss +1 -0
- package/livingdocs/040.Media/010.table/scss/editor.scss +1 -0
- package/livingdocs/040.Media/010.table/scss/general.scss +328 -0
- package/livingdocs/040.Media/010.table/scss/pdf.scss +34 -0
- package/livingdocs/040.Media/010.table/scss/web.scss +14 -0
- package/livingdocs/040.Media/010.table/scss/word.scss +0 -0
- package/livingdocs/040.Media/010.table/scss/xbrl.scss +1 -0
- package/livingdocs/040.Media/010.table/table.html +9 -0
- package/livingdocs/040.Media/020.image/image.html +40 -0
- package/livingdocs/040.Media/020.image/ld-conf.json +25 -0
- package/livingdocs/040.Media/020.image/scss/app.scss +1 -0
- package/livingdocs/040.Media/020.image/scss/editor.scss +1 -0
- package/livingdocs/040.Media/020.image/scss/general.scss +17 -0
- package/livingdocs/040.Media/020.image/scss/pdf.scss +26 -0
- package/livingdocs/040.Media/020.image/scss/web.scss +1 -0
- package/livingdocs/040.Media/020.image/scss/word.scss +0 -0
- package/livingdocs/040.Media/020.image/scss/xbrl.scss +5 -0
- package/livingdocs/040.Media/030.video/ld-conf.json +19 -0
- package/livingdocs/040.Media/030.video/scss/app.scss +1 -0
- package/livingdocs/040.Media/030.video/scss/editor.scss +1 -0
- package/livingdocs/040.Media/030.video/scss/general.scss +5 -0
- package/livingdocs/040.Media/030.video/scss/pdf.scss +0 -0
- package/livingdocs/040.Media/030.video/scss/web.scss +12 -0
- package/livingdocs/040.Media/030.video/scss/word.scss +0 -0
- package/livingdocs/040.Media/030.video/scss/xbrl.scss +5 -0
- package/livingdocs/040.Media/030.video/video.html +59 -0
- package/livingdocs/040.Media/040.interactive-element/interactive-element.html +27 -0
- package/livingdocs/040.Media/040.interactive-element/ld-conf.json +6 -0
- package/livingdocs/050.Hero-and-Slider/.gitkeep +0 -0
- package/livingdocs/060.Buttons/.gitkeep +0 -0
- package/livingdocs/070.Container/010.aside-content-container/aside-content-container.html +10 -0
- package/livingdocs/070.Container/010.aside-content-container/ld-conf.json +20 -0
- package/livingdocs/070.Container/010.aside-content-container/properties.json +7 -0
- package/livingdocs/070.Container/010.aside-content-container/scss/app.scss +1 -0
- package/livingdocs/070.Container/010.aside-content-container/scss/editor.scss +1 -0
- package/livingdocs/070.Container/010.aside-content-container/scss/general.scss +1 -0
- package/livingdocs/070.Container/010.aside-content-container/scss/pdf.scss +3 -0
- package/livingdocs/070.Container/010.aside-content-container/scss/web.scss +1 -0
- package/livingdocs/070.Container/010.aside-content-container/scss/word.scss +0 -0
- package/livingdocs/070.Container/010.aside-content-container/scss/xbrl.scss +1 -0
- package/livingdocs/070.Container/020.columns-container/columns-container.html +22 -0
- package/livingdocs/070.Container/020.columns-container/ld-conf.json +17 -0
- package/livingdocs/080.CV/010.cv/cv.html +40 -0
- package/livingdocs/080.CV/010.cv/ld-conf.json +11 -0
- package/livingdocs/080.CV/020.cv-time-span/cv-time-span.html +13 -0
- package/livingdocs/080.CV/020.cv-time-span/ld-conf.json +4 -0
- package/livingdocs/090.Signatures/010.signature-container/ld-conf.json +18 -0
- package/livingdocs/090.Signatures/010.signature-container/scss/app.scss +1 -0
- package/livingdocs/090.Signatures/010.signature-container/scss/editor.scss +1 -0
- package/livingdocs/090.Signatures/010.signature-container/scss/general.scss +5 -0
- package/livingdocs/090.Signatures/010.signature-container/scss/pdf.scss +0 -0
- package/livingdocs/090.Signatures/010.signature-container/scss/web.scss +6 -0
- package/livingdocs/090.Signatures/010.signature-container/scss/word.scss +0 -0
- package/livingdocs/090.Signatures/010.signature-container/scss/xbrl.scss +1 -0
- package/livingdocs/090.Signatures/010.signature-container/signature-container.html +6 -0
- package/livingdocs/090.Signatures/020.signature-item/ld-conf.json +11 -0
- package/livingdocs/090.Signatures/020.signature-item/scss/app.scss +1 -0
- package/livingdocs/090.Signatures/020.signature-item/scss/editor.scss +1 -0
- package/livingdocs/090.Signatures/020.signature-item/scss/general.scss +9 -0
- package/livingdocs/090.Signatures/020.signature-item/scss/pdf.scss +0 -0
- package/livingdocs/090.Signatures/020.signature-item/scss/web.scss +5 -0
- package/livingdocs/090.Signatures/020.signature-item/scss/word.scss +0 -0
- package/livingdocs/090.Signatures/020.signature-item/scss/xbrl.scss +1 -0
- package/livingdocs/090.Signatures/020.signature-item/signature-item.html +9 -0
- package/livingdocs/100.Misc/010.anchor/anchor.html +8 -0
- package/livingdocs/100.Misc/010.anchor/ld-conf.json +4 -0
- package/livingdocs/100.Misc/020.accordion/accordion.html +8 -0
- package/livingdocs/100.Misc/020.accordion/ld-conf.json +26 -0
- package/livingdocs/110.PDF/010.pdf-pagebreak/ld-conf.json +4 -0
- package/livingdocs/110.PDF/010.pdf-pagebreak/pdf-pagebreak.html +1 -0
- package/livingdocs/110.PDF/020.pdf-column-container/ld-conf.json +4 -0
- package/livingdocs/110.PDF/020.pdf-column-container/pdf-column-container.html +5 -0
- package/livingdocs/110.PDF/030.pdf-publication-title/ld-conf.json +4 -0
- package/livingdocs/110.PDF/030.pdf-publication-title/pdf-publication-title.html +7 -0
- package/livingdocs/110.PDF/040.pdf-chapter-title/ld-conf.json +4 -0
- package/livingdocs/110.PDF/040.pdf-chapter-title/pdf-chapter-title.html +7 -0
- package/livingdocs/110.PDF/050.pdf-chapter-navigation-container/ld-conf.json +17 -0
- package/livingdocs/110.PDF/050.pdf-chapter-navigation-container/pdf-chapter-navigation.html +10 -0
- package/livingdocs/110.PDF/060.pdf-chapter-navigation-item/ld-conf.json +6 -0
- package/livingdocs/110.PDF/060.pdf-chapter-navigation-item/pdf-chapter-navigation-item.html +7 -0
- package/livingdocs/110.PDF/060.pdf-chapter-navigation-item/properties.json +7 -0
- package/livingdocs/110.PDF/070.pdf-cover/ld-conf.json +25 -0
- package/livingdocs/110.PDF/070.pdf-cover/pdf-cover.html +26 -0
- package/livingdocs/110.PDF/080.pdf-toc-page/ld-conf.json +15 -0
- package/livingdocs/110.PDF/080.pdf-toc-page/pdf-toc-page.html +8 -0
- package/livingdocs/{PDF_only/pdf-toc-page → 110.PDF/080.pdf-toc-page}/properties.json +11 -3
- package/livingdocs/110.PDF/090.pdf-toc-item-title/ld-conf.json +5 -0
- package/livingdocs/110.PDF/090.pdf-toc-item-title/pdf-toc-item-title.html +3 -0
- package/livingdocs/110.PDF/100.pdf-toc-item/ld-conf.json +14 -0
- package/livingdocs/110.PDF/100.pdf-toc-item/pdf-toc-item.html +6 -0
- package/livingdocs/110.PDF/110.pdf-toc-item-blank/ld-conf.json +5 -0
- package/livingdocs/110.PDF/110.pdf-toc-item-blank/pdf-toc-item-blank.html +4 -0
- package/livingdocs/120.Startpage/.gitkeep +0 -0
- package/livingdocs/999.Properties/alignment/properties.json +36 -0
- package/livingdocs/{Text/quote-with-portrait → 999.Properties/hide-quote-characters}/properties.json +0 -5
- package/livingdocs/999.Properties/pdf-spacer/properties.json +43 -0
- package/livingdocs/999.Properties/width/properties.json +32 -0
- package/package.json +8 -10
- package/scripts/beaver.js +16 -15
- package/scripts/build.d.ts +4 -7
- package/scripts/build.js +345 -320
- package/scripts/components.js +62 -64
- package/scripts/config.d.ts +8 -0
- package/scripts/config.js +52 -1
- package/scripts/doPublish.js +12 -0
- package/scripts/folders.d.ts +43 -0
- package/scripts/folders.js +46 -0
- package/scripts/init.js +28 -8
- package/scripts/ldd/LivingdocsDesignValidator.d.ts +61 -0
- package/scripts/ldd/LivingdocsDesignValidator.js +296 -0
- package/scripts/ldd/__tests__/LivingdocsDesignValidation.test.mjs +273 -0
- package/scripts/ldd/mapLdd.d.ts +1 -0
- package/scripts/ldd/mapLdd.js +204 -0
- package/scripts/prepare.d.ts +2 -0
- package/scripts/prepare.js +66 -0
- package/scripts/preparePublish.d.ts +1 -1
- package/scripts/preparePublish.js +34 -1
- package/scripts/renamePackage.d.ts +1 -1
- package/scripts/utils.d.ts +45 -30
- package/scripts/utils.js +112 -55
- package/srl/components/Srl/Aria/TabChain.vue +100 -0
- package/srl/components/Srl/Article/Autoload.vue +41 -0
- package/srl/components/Srl/Article/DialogButton.vue +55 -0
- package/srl/components/Srl/Article/Root.vue +76 -0
- package/srl/components/Srl/Menu/Item/Content/Image.vue +12 -0
- package/srl/components/Srl/Menu/Item/Content/ImageAfter.vue +13 -0
- package/srl/components/Srl/Menu/Item/Content/ImageBefore.vue +13 -0
- package/srl/components/Srl/Menu/Item/Content/Text.vue +9 -0
- package/srl/components/Srl/Menu/Item/Content.vue +23 -0
- package/srl/components/Srl/Menu/Item.vue +208 -0
- package/srl/components/Srl/Menu/List.vue +184 -0
- package/srl/components/Srl/Page/App.vue +65 -0
- package/srl/components/Srl/Page/Dialog.vue +71 -0
- package/srl/composables/article.ts +24 -0
- package/srl/composables/articles.ts +41 -0
- package/srl/composables/config.ts +165 -0
- package/srl/composables/downloads.ts +46 -0
- package/srl/composables/index.ts +34 -0
- package/srl/composables/locale.ts +8 -0
- package/srl/composables/menu.ts +101 -0
- package/srl/composables/root.ts +5 -0
- package/srl/composables/search.ts +108 -0
- package/srl/composables/settings.ts +9 -0
- package/srl/composables/viewPort.ts +78 -0
- package/srl/imports/app.scss +0 -0
- package/srl/imports/ldd.scss +0 -0
- package/srl/imports/pdf.scss +0 -0
- package/srl/imports/word.scss +0 -0
- package/srl/imports/xbrl.scss +0 -0
- package/srl/plugins/asyncLdComponent.ts +2 -0
- package/srl/plugins/initProject.ts +19 -0
- package/srl/plugins/viteSrlPlugin.ts +214 -0
- package/srl/plugins/vueSrlPlugin.ts +23 -0
- package/srl/scss/config.scss +7 -0
- package/{scss → srl/scss}/core-styles.scss +1 -0
- package/{scss → srl/scss}/grid/functions.scss +20 -0
- package/{scss → srl/scss}/grid/mixins.scss +10 -152
- package/{scss → srl/scss}/grid/variables.scss +1 -0
- package/srl/scss/helpers/functions.scss +0 -0
- package/{scss → srl/scss}/helpers/mixins.scss +0 -33
- package/{scss → srl/scss}/typography/mixins.scss +53 -13
- package/srl/scss/xbrl-core-styles.scss +47 -0
- package/{dev/nswow → srl/srl}/ArticleAutoloader.ts +22 -22
- package/{dev/nswow → srl/srl}/ArticleLoader.ts +25 -18
- package/srl/srl/Awesomizr.js +682 -0
- package/srl/srl/colors.scss +3 -0
- package/srl/srl/config.scss +7 -0
- package/srl/srl/core-styles.scss +2 -0
- package/srl/srl/fonts.scss +2 -0
- package/srl/srl/grid.scss +2 -0
- package/srl/srl/helpers.scss +2 -0
- package/srl/srl/meta.scss +2 -0
- package/srl/srl/pdf.scss +2 -0
- package/srl/srl/spacer.scss +2 -0
- package/srl/srl/system.scss +2 -0
- package/srl/srl/typography.scss +3 -0
- package/srl/types/components.d.ts +17 -0
- package/srl/types/nswow.d.ts +121 -0
- package/srl/utils/camelCase.ts +11 -0
- package/srl/utils/html.ts +82 -0
- package/srl/utils/index.ts +5 -0
- package/srl/utils/uri.ts +52 -0
- package/dev/ldd.html +0 -7
- package/dev/livingdocs/Media/image/app.scss +0 -25
- package/dev/livingdocs/Media/image/general.scss +0 -11
- package/dev/livingdocs/Media/image/image.html +0 -46
- package/dev/livingdocs/Media/image/ldd.scss +0 -1
- package/dev/livingdocs/Media/image/pdf.scss +0 -1
- package/dev/livingdocs/Media/image/print.scss +0 -7
- package/dev/livingdocs/Media/image/properties.json +0 -41
- package/dev/livingdocs/Media/image/word.scss +0 -1
- package/dev/livingdocs/Properties/grid/app.scss +0 -1
- package/dev/livingdocs/Properties/grid/general.scss +0 -95
- package/dev/livingdocs/Properties/grid/ldd.scss +0 -1
- package/dev/livingdocs/Properties/grid/pdf.scss +0 -1
- package/dev/livingdocs/Properties/grid/print.scss +0 -94
- package/dev/livingdocs/Properties/grid/properties.json +0 -68
- package/dev/livingdocs/Properties/grid/web.scss +0 -98
- package/dev/livingdocs/Properties/grid/word.scss +0 -1
- package/dev/livingdocs/Text/paragraph/general.scss +0 -9
- package/dev/livingdocs/Text/paragraph/paragraph.html +0 -22
- package/dev/livingdocs/Titles/title-h1/general.scss +0 -10
- package/dev/livingdocs/Titles/title-h1/title-h1.html +0 -16
- package/dev/livingdocs/Titles/title-h2/app.scss +0 -1
- package/dev/livingdocs/Titles/title-h2/general.scss +0 -13
- package/dev/livingdocs/Titles/title-h2/ldd.scss +0 -1
- package/dev/livingdocs/Titles/title-h2/pdf.scss +0 -1
- package/dev/livingdocs/Titles/title-h2/print.scss +0 -36
- package/dev/livingdocs/Titles/title-h2/title-h2.html +0 -24
- package/dev/livingdocs/Titles/title-h2/web.scss +0 -27
- package/dev/livingdocs/Titles/title-h2/word.scss +0 -1
- package/dev/livingdocs/Titles/title-h3/app.scss +0 -1
- package/dev/livingdocs/Titles/title-h3/general.scss +0 -13
- package/dev/livingdocs/Titles/title-h3/ldd.scss +0 -1
- package/dev/livingdocs/Titles/title-h3/pdf.scss +0 -1
- package/dev/livingdocs/Titles/title-h3/print.scss +0 -34
- package/dev/livingdocs/Titles/title-h3/title-h3.html +0 -24
- package/dev/livingdocs/Titles/title-h3/web.scss +0 -27
- package/dev/livingdocs/Titles/title-h3/word.scss +0 -1
- package/dev/livingdocs/Titles/title-h4/app.scss +0 -1
- package/dev/livingdocs/Titles/title-h4/general.scss +0 -13
- package/dev/livingdocs/Titles/title-h4/ldd.scss +0 -1
- package/dev/livingdocs/Titles/title-h4/pdf.scss +0 -1
- package/dev/livingdocs/Titles/title-h4/print.scss +0 -34
- package/dev/livingdocs/Titles/title-h4/title-h4.html +0 -24
- package/dev/livingdocs/Titles/title-h4/web.scss +0 -27
- package/dev/livingdocs/Titles/title-h4/word.scss +0 -1
- package/dev/livingdocs/Titles/title-h5/general.scss +0 -10
- package/dev/livingdocs/Titles/title-h5/title-h5.html +0 -16
- package/dev/livingdocs/Titles/title-h6/general.scss +0 -10
- package/dev/livingdocs/Titles/title-h6/title-h6.html +0 -16
- package/dev/nswow/colors.scss +0 -3
- package/dev/nswow/config.scss +0 -13
- package/dev/nswow/core-styles.scss +0 -2
- package/dev/nswow/fonts.scss +0 -2
- package/dev/nswow/grid.scss +0 -2
- package/dev/nswow/helpers.scss +0 -2
- package/dev/nswow/meta.scss +0 -2
- package/dev/nswow/spacer.scss +0 -2
- package/dev/nswow/system.scss +0 -2
- package/dev/nswow/typography.scss +0 -3
- package/dev/nswow.config.json +0 -293
- package/dev/pdf.ts +0 -1
- package/dev/src/components/LanguageSwitch.vue +0 -100
- package/dev/src/components/MenuItem/MenuArticle.vue +0 -15
- package/dev/src/components/MenuItem/MenuEntry.vue +0 -26
- package/dev/src/components/MenuItem/MenuExternal.vue +0 -28
- package/dev/src/components/MenuItem/index.ts +0 -5
- package/dev/src/components/PageModal.vue +0 -95
- package/dev/src/components/ScrollToTop.vue +0 -63
- package/dev/src/composables/config.ts +0 -48
- package/dev/src/main.ts +0 -16
- package/dev/src/types/nswow.d.ts +0 -73
- package/dev/src/views/DownloadsView.vue +0 -88
- package/dev/src/views/SearchView.vue +0 -126
- package/dev/word.ts +0 -1
- package/livingdocs/Buttons/button/app.scss +0 -1
- package/livingdocs/Buttons/button/button.html +0 -18
- package/livingdocs/Buttons/button/general.scss +0 -33
- package/livingdocs/Buttons/button/ldd.scss +0 -1
- package/livingdocs/Buttons/button/pdf.scss +0 -1
- package/livingdocs/Buttons/button/word.scss +0 -1
- package/livingdocs/Buttons/button-container/app.scss +0 -1
- package/livingdocs/Buttons/button-container/button-container.html +0 -31
- package/livingdocs/Buttons/button-container/general.scss +0 -12
- package/livingdocs/Buttons/button-container/ldd.scss +0 -1
- package/livingdocs/Buttons/button-container/pdf.scss +0 -3
- package/livingdocs/Buttons/button-container/properties.json +0 -19
- package/livingdocs/Buttons/button-container/word.scss +0 -3
- package/livingdocs/CV/cv-timeline/app.scss +0 -1
- package/livingdocs/CV/cv-timeline/cv-timeline.html +0 -19
- package/livingdocs/CV/cv-timeline/general.scss +0 -1
- package/livingdocs/CV/cv-timeline/ldd.scss +0 -1
- package/livingdocs/CV/cv-timeline/pdf.scss +0 -1
- package/livingdocs/CV/cv-timeline/print.scss +0 -35
- package/livingdocs/CV/cv-timeline/web.scss +0 -27
- package/livingdocs/CV/cv-timeline/word.scss +0 -1
- package/livingdocs/Container/column-container/column-container.html +0 -44
- package/livingdocs/Container/column-container/general.scss +0 -105
- package/livingdocs/Container/column-container/properties.json +0 -83
- package/livingdocs/Lists/alphanumeric-list-group/alphanumeric-list-group.html +0 -25
- package/livingdocs/Lists/alphanumeric-list-group/app.scss +0 -1
- package/livingdocs/Lists/alphanumeric-list-group/general.scss +0 -5
- package/livingdocs/Lists/alphanumeric-list-group/ldd.scss +0 -1
- package/livingdocs/Lists/alphanumeric-list-group/pdf.scss +0 -1
- package/livingdocs/Lists/alphanumeric-list-group/word.scss +0 -1
- package/livingdocs/Lists/list-item/app.scss +0 -1
- package/livingdocs/Lists/list-item/general.scss +0 -4
- package/livingdocs/Lists/list-item/ldd.scss +0 -1
- package/livingdocs/Lists/list-item/list-item.html +0 -17
- package/livingdocs/Lists/list-item/pdf.scss +0 -1
- package/livingdocs/Lists/list-item/word.scss +0 -1
- package/livingdocs/Lists/ordered-list-group/app.scss +0 -1
- package/livingdocs/Lists/ordered-list-group/general.scss +0 -5
- package/livingdocs/Lists/ordered-list-group/ldd.scss +0 -1
- package/livingdocs/Lists/ordered-list-group/ordered-list-group.html +0 -25
- package/livingdocs/Lists/ordered-list-group/pdf.scss +0 -1
- package/livingdocs/Lists/ordered-list-group/word.scss +0 -1
- package/livingdocs/Lists/unordered-list-group/app.scss +0 -1
- package/livingdocs/Lists/unordered-list-group/general.scss +0 -5
- package/livingdocs/Lists/unordered-list-group/ldd.scss +0 -1
- package/livingdocs/Lists/unordered-list-group/pdf.scss +0 -1
- package/livingdocs/Lists/unordered-list-group/unordered-list-group.html +0 -25
- package/livingdocs/Lists/unordered-list-group/word.scss +0 -1
- package/livingdocs/Media/chart/app.scss +0 -19
- package/livingdocs/Media/chart/chart.html +0 -29
- package/livingdocs/Media/chart/general.scss +0 -11
- package/livingdocs/Media/chart/ldd.scss +0 -1
- package/livingdocs/Media/chart/pdf.scss +0 -9
- package/livingdocs/Media/chart/properties.json +0 -41
- package/livingdocs/Media/chart/word.scss +0 -1
- package/livingdocs/Media/graphic/app.scss +0 -1
- package/livingdocs/Media/graphic/general.scss +0 -18
- package/livingdocs/Media/graphic/graphic.html +0 -29
- package/livingdocs/Media/graphic/ldd.scss +0 -1
- package/livingdocs/Media/graphic/pdf.scss +0 -1
- package/livingdocs/Media/graphic/properties.json +0 -36
- package/livingdocs/Media/graphic/word.scss +0 -1
- package/livingdocs/Media/image/app.scss +0 -25
- package/livingdocs/Media/image/general.scss +0 -11
- package/livingdocs/Media/image/image.html +0 -55
- package/livingdocs/Media/image/ldd.scss +0 -1
- package/livingdocs/Media/image/pdf.scss +0 -1
- package/livingdocs/Media/image/print.scss +0 -7
- package/livingdocs/Media/image/properties.json +0 -41
- package/livingdocs/Media/image/word.scss +0 -1
- package/livingdocs/Media/nswow-table/app.scss +0 -2
- package/livingdocs/Media/nswow-table/app.ts +0 -35
- package/livingdocs/Media/nswow-table/general.scss +0 -281
- package/livingdocs/Media/nswow-table/ldd.scss +0 -2
- package/livingdocs/Media/nswow-table/nswow-table.html +0 -30
- package/livingdocs/Media/nswow-table/pdf.scss +0 -8
- package/livingdocs/Media/nswow-table/properties.json +0 -66
- package/livingdocs/Media/nswow-table/web.scss +0 -23
- package/livingdocs/Media/nswow-table/word.scss +0 -2
- package/livingdocs/Media/video/app.scss +0 -1
- package/livingdocs/Media/video/general.scss +0 -7
- package/livingdocs/Media/video/ldd.scss +0 -1
- package/livingdocs/Media/video/pdf.scss +0 -1
- package/livingdocs/Media/video/print.scss +0 -5
- package/livingdocs/Media/video/properties.json +0 -41
- package/livingdocs/Media/video/video.html +0 -26
- package/livingdocs/Media/video/word.scss +0 -1
- package/livingdocs/Misc/accordion/accordion.html +0 -56
- package/livingdocs/Misc/accordion/app.scss +0 -63
- package/livingdocs/Misc/accordion/app.ts +0 -10
- package/livingdocs/Misc/accordion/general.scss +0 -44
- package/livingdocs/Misc/accordion/ldd.scss +0 -36
- package/livingdocs/Misc/accordion/pdf.scss +0 -39
- package/livingdocs/Misc/accordion/word.scss +0 -39
- package/livingdocs/Misc/anchor/anchor.html +0 -15
- package/livingdocs/Misc/anchor/app.scss +0 -10
- package/livingdocs/Misc/anchor/app.ts +0 -11
- package/livingdocs/Misc/anchor/general.scss +0 -1
- package/livingdocs/Misc/anchor/pdf.scss +0 -1
- package/livingdocs/Misc/anchor/print.scss +0 -3
- package/livingdocs/Misc/anchor/word.scss +0 -1
- package/livingdocs/Misc/spacer/app.scss +0 -1
- package/livingdocs/Misc/spacer/general.scss +0 -8
- package/livingdocs/Misc/spacer/ldd.scss +0 -1
- package/livingdocs/Misc/spacer/pdf.scss +0 -1
- package/livingdocs/Misc/spacer/print.scss +0 -18
- package/livingdocs/Misc/spacer/properties.json +0 -52
- package/livingdocs/Misc/spacer/spacer.html +0 -12
- package/livingdocs/Misc/spacer/web.scss +0 -18
- package/livingdocs/Misc/spacer/word.scss +0 -1
- package/livingdocs/PDF_only/pdf-cover/ldd.scss +0 -42
- package/livingdocs/PDF_only/pdf-cover/pdf-cover.html +0 -29
- package/livingdocs/PDF_only/pdf-cover/pdf.scss +0 -1
- package/livingdocs/PDF_only/pdf-cover/word.scss +0 -1
- package/livingdocs/PDF_only/pdf-cover-chapter/ldd.scss +0 -19
- package/livingdocs/PDF_only/pdf-cover-chapter/pdf-chapter-cover.html +0 -18
- package/livingdocs/PDF_only/pdf-cover-chapter/pdf.scss +0 -1
- package/livingdocs/PDF_only/pdf-cover-chapter/print.scss +0 -19
- package/livingdocs/PDF_only/pdf-cover-chapter/word.scss +0 -1
- package/livingdocs/PDF_only/pdf-pagebreak/general.scss +0 -4
- package/livingdocs/PDF_only/pdf-pagebreak/ldd.scss +0 -5
- package/livingdocs/PDF_only/pdf-pagebreak/pdf-pagebreak.html +0 -8
- package/livingdocs/PDF_only/pdf-publication-title/general.scss +0 -5
- package/livingdocs/PDF_only/pdf-publication-title/pdf-publication-title.html +0 -15
- package/livingdocs/PDF_only/pdf-toc-item/general.scss +0 -41
- package/livingdocs/PDF_only/pdf-toc-item/pdf-toc-item.html +0 -33
- package/livingdocs/PDF_only/pdf-toc-item-blank/general.scss +0 -5
- package/livingdocs/PDF_only/pdf-toc-item-blank/pdf-toc-item-blank.html +0 -11
- package/livingdocs/PDF_only/pdf-toc-item-title/general.scss +0 -5
- package/livingdocs/PDF_only/pdf-toc-item-title/pdf-toc-item-title.html +0 -11
- package/livingdocs/PDF_only/pdf-toc-page/app.scss +0 -1
- package/livingdocs/PDF_only/pdf-toc-page/general.scss +0 -1
- package/livingdocs/PDF_only/pdf-toc-page/ldd.scss +0 -1
- package/livingdocs/PDF_only/pdf-toc-page/pdf-toc-page.html +0 -33
- package/livingdocs/PDF_only/pdf-toc-page/pdf.scss +0 -1
- package/livingdocs/PDF_only/pdf-toc-page/word.scss +0 -1
- package/livingdocs/PDF_only/pdf-video-link/ldd.scss +0 -16
- package/livingdocs/PDF_only/pdf-video-link/pdf-video-link.html +0 -41
- package/livingdocs/PDF_only/pdf-video-link/pdf.scss +0 -1
- package/livingdocs/PDF_only/pdf-video-link/print.scss +0 -12
- package/livingdocs/PDF_only/pdf-video-link/word.scss +0 -1
- package/livingdocs/Properties/grid/app.scss +0 -1
- package/livingdocs/Properties/grid/general.scss +0 -95
- package/livingdocs/Properties/grid/ldd.scss +0 -1
- package/livingdocs/Properties/grid/pdf.scss +0 -1
- package/livingdocs/Properties/grid/print.scss +0 -94
- package/livingdocs/Properties/grid/properties.json +0 -68
- package/livingdocs/Properties/grid/web.scss +0 -98
- package/livingdocs/Properties/grid/word.scss +0 -1
- package/livingdocs/Signatures/signature-container/app.scss +0 -1
- package/livingdocs/Signatures/signature-container/general.scss +0 -7
- package/livingdocs/Signatures/signature-container/ldd.scss +0 -1
- package/livingdocs/Signatures/signature-container/pdf.scss +0 -1
- package/livingdocs/Signatures/signature-container/signature-container.html +0 -30
- package/livingdocs/Signatures/signature-container/word.scss +0 -1
- package/livingdocs/Signatures/signature-item/app.scss +0 -1
- package/livingdocs/Signatures/signature-item/general.scss +0 -53
- package/livingdocs/Signatures/signature-item/ldd.scss +0 -1
- package/livingdocs/Signatures/signature-item/pdf.scss +0 -1
- package/livingdocs/Signatures/signature-item/signature-item.html +0 -23
- package/livingdocs/Signatures/signature-item/word.scss +0 -1
- package/livingdocs/Text/footnote/app.scss +0 -1
- package/livingdocs/Text/footnote/footnote.html +0 -14
- package/livingdocs/Text/footnote/general.scss +0 -12
- package/livingdocs/Text/footnote/ldd.scss +0 -1
- package/livingdocs/Text/footnote/pdf.scss +0 -1
- package/livingdocs/Text/footnote/print.scss +0 -36
- package/livingdocs/Text/footnote/web.scss +0 -27
- package/livingdocs/Text/footnote/word.scss +0 -1
- package/livingdocs/Text/lead/general.scss +0 -9
- package/livingdocs/Text/lead/lead.html +0 -23
- package/livingdocs/Text/paragraph/general.scss +0 -9
- package/livingdocs/Text/quote/general.scss +0 -43
- package/livingdocs/Text/quote/quote.html +0 -29
- package/livingdocs/Text/quote-with-portrait/general.scss +0 -81
- package/livingdocs/Text/quote-with-portrait/quote-with-portrait.html +0 -49
- package/livingdocs/Titles/title-h1/general.scss +0 -10
- package/livingdocs/Titles/title-h1/title-h1.html +0 -16
- package/livingdocs/Titles/title-h2/app.scss +0 -1
- package/livingdocs/Titles/title-h2/general.scss +0 -13
- package/livingdocs/Titles/title-h2/ldd.scss +0 -1
- package/livingdocs/Titles/title-h2/pdf.scss +0 -1
- package/livingdocs/Titles/title-h2/print.scss +0 -36
- package/livingdocs/Titles/title-h2/title-h2.html +0 -26
- package/livingdocs/Titles/title-h2/web.scss +0 -27
- package/livingdocs/Titles/title-h2/word.scss +0 -1
- package/livingdocs/Titles/title-h3/app.scss +0 -1
- package/livingdocs/Titles/title-h3/general.scss +0 -13
- package/livingdocs/Titles/title-h3/ldd.scss +0 -1
- package/livingdocs/Titles/title-h3/pdf.scss +0 -1
- package/livingdocs/Titles/title-h3/print.scss +0 -34
- package/livingdocs/Titles/title-h3/title-h3.html +0 -26
- package/livingdocs/Titles/title-h3/web.scss +0 -27
- package/livingdocs/Titles/title-h3/word.scss +0 -1
- package/livingdocs/Titles/title-h4/app.scss +0 -1
- package/livingdocs/Titles/title-h4/general.scss +0 -13
- package/livingdocs/Titles/title-h4/ldd.scss +0 -1
- package/livingdocs/Titles/title-h4/pdf.scss +0 -1
- package/livingdocs/Titles/title-h4/print.scss +0 -34
- package/livingdocs/Titles/title-h4/title-h4.html +0 -26
- package/livingdocs/Titles/title-h4/web.scss +0 -27
- package/livingdocs/Titles/title-h4/word.scss +0 -1
- package/livingdocs/Titles/title-h5/general.scss +0 -10
- package/livingdocs/Titles/title-h5/title-h5.html +0 -16
- package/livingdocs/Titles/title-h6/general.scss +0 -10
- package/livingdocs/Titles/title-h6/title-h6.html +0 -16
- package/preparePublish.cjs +0 -95
- package/scripts/migrate-livingdocs-build/LICENSE +0 -21
- package/scripts/migrate-livingdocs-build/bin/build.d.ts +0 -8
- package/scripts/migrate-livingdocs-build/bin/build.js +0 -53
- package/scripts/migrate-livingdocs-build/bin/migrate.d.ts +0 -2
- package/scripts/migrate-livingdocs-build/bin/migrate.js +0 -43
- package/scripts/migrate-livingdocs-build/dev/build/v1.d.ts +0 -9
- package/scripts/migrate-livingdocs-build/dev/build/v1.d.ts.map +0 -1
- package/scripts/migrate-livingdocs-build/dev/build/v1.js +0 -51
- package/scripts/migrate-livingdocs-build/dev/build/v2.d.ts +0 -2
- package/scripts/migrate-livingdocs-build/dev/build/v2.d.ts.map +0 -1
- package/scripts/migrate-livingdocs-build/dev/build/v2.js +0 -44
- package/scripts/migrate-livingdocs-build/dev/build/zip-archive.d.ts +0 -2
- package/scripts/migrate-livingdocs-build/dev/build/zip-archive.d.ts.map +0 -1
- package/scripts/migrate-livingdocs-build/dev/build/zip-archive.js +0 -39
- package/scripts/migrate-livingdocs-build/dev/build.d.ts +0 -9
- package/scripts/migrate-livingdocs-build/dev/build.js +0 -7
- package/scripts/migrate-livingdocs-build/dev/configuration-defaults.d.ts +0 -20
- package/scripts/migrate-livingdocs-build/dev/configuration-defaults.js +0 -18
- package/scripts/migrate-livingdocs-build/dev/configuration.d.ts +0 -2
- package/scripts/migrate-livingdocs-build/dev/configuration.js +0 -34
- package/scripts/migrate-livingdocs-build/dev/lib.d.ts +0 -33
- package/scripts/migrate-livingdocs-build/dev/lib.js +0 -251
- package/scripts/migrate-livingdocs-build/dev/livingdocs-design.d.ts +0 -9
- package/scripts/migrate-livingdocs-build/dev/livingdocs-design.js +0 -80
- package/scripts/migrate-livingdocs-build/dev/logger.d.ts +0 -2
- package/scripts/migrate-livingdocs-build/dev/logger.js +0 -16
- package/scripts/migrate-livingdocs-build/dev/migrate.d.ts +0 -22
- package/scripts/migrate-livingdocs-build/dev/migrate.js +0 -241
- package/scripts/migrate-livingdocs-build/readme.md +0 -62
- package/scripts/vite.d.ts +0 -10
- package/scripts/vite.js +0 -58
- package/scss/config.scss +0 -7
- package/tags.txt +0 -1
- /package/dev/livingdocs/{Media/image/web.scss → .gitkeep} +0 -0
- /package/{dev/public/.keep → livingdocs/010.Titles/010.title-h1/scss/pdf.scss} +0 -0
- /package/livingdocs/{Lists/alphanumeric-list-group → 010.Titles/010.title-h1/scss}/web.scss +0 -0
- /package/livingdocs/{Lists/alphanumeric-list-group/print.scss → 010.Titles/010.title-h1/scss/word.scss} +0 -0
- /package/livingdocs/{Lists/list-item/print.scss → 010.Titles/020.title-h2/scss/pdf.scss} +0 -0
- /package/livingdocs/{Lists/list-item → 010.Titles/020.title-h2/scss}/web.scss +0 -0
- /package/livingdocs/{Lists/ordered-list-group/print.scss → 010.Titles/020.title-h2/scss/word.scss} +0 -0
- /package/livingdocs/{Lists/ordered-list-group/web.scss → 010.Titles/030.title-h3/scss/pdf.scss} +0 -0
- /package/livingdocs/{Lists/unordered-list-group → 010.Titles/030.title-h3/scss}/web.scss +0 -0
- /package/livingdocs/{Lists/unordered-list-group/print.scss → 010.Titles/030.title-h3/scss/word.scss} +0 -0
- /package/livingdocs/{Media/chart/print.scss → 010.Titles/040.title-h4/scss/pdf.scss} +0 -0
- /package/livingdocs/{Media/chart → 010.Titles/040.title-h4/scss}/web.scss +0 -0
- /package/livingdocs/{Media/graphic/print.scss → 010.Titles/040.title-h4/scss/word.scss} +0 -0
- /package/livingdocs/{Media/graphic/web.scss → 010.Titles/050.title-h5/scss/pdf.scss} +0 -0
- /package/livingdocs/{Media/image → 010.Titles/050.title-h5/scss}/web.scss +0 -0
- /package/livingdocs/{Media/nswow-table/print.scss → 010.Titles/050.title-h5/scss/word.scss} +0 -0
- /package/livingdocs/{Media/video/web.scss → 010.Titles/060.title-h6/scss/pdf.scss} +0 -0
- /package/livingdocs/{Signatures/signature-container → 010.Titles/060.title-h6/scss}/web.scss +0 -0
- /package/livingdocs/{PDF_only/pdf-cover/print.scss → 010.Titles/060.title-h6/scss/word.scss} +0 -0
- /package/livingdocs/{Signatures/signature-container/print.scss → 020.Text/010.lead/scss/pdf.scss} +0 -0
- /package/livingdocs/{Signatures/signature-item → 020.Text/010.lead/scss}/web.scss +0 -0
- /package/livingdocs/{Signatures/signature-item/print.scss → 020.Text/010.lead/scss/word.scss} +0 -0
- /package/{scss/helpers/functions.scss → livingdocs/020.Text/020.paragraph/scss/pdf.scss} +0 -0
- /package/livingdocs/{Text/quote → 020.Text/050.quote}/properties.json +0 -0
- /package/livingdocs/{PDF_only/pdf-toc-item → 110.PDF/100.pdf-toc-item}/properties.json +0 -0
- /package/{scss → srl/scss}/colors/functions.scss +0 -0
- /package/{scss → srl/scss}/colors/index.scss +0 -0
- /package/{scss → srl/scss}/colors/mixins.scss +0 -0
- /package/{scss → srl/scss}/colors/variables.scss +0 -0
- /package/{scss → srl/scss}/fonts/functions.scss +0 -0
- /package/{scss → srl/scss}/fonts/index.scss +0 -0
- /package/{scss → srl/scss}/fonts/mixins.scss +0 -0
- /package/{scss → srl/scss}/fonts/variables.scss +0 -0
- /package/{scss → srl/scss}/grid/index.scss +0 -0
- /package/{scss → srl/scss}/helpers/index.scss +0 -0
- /package/{scss → srl/scss}/helpers/variables.scss +0 -0
- /package/{scss → srl/scss}/index.scss +0 -0
- /package/{scss → srl/scss}/meta/functions.scss +0 -0
- /package/{scss → srl/scss}/meta/index.scss +0 -0
- /package/{scss → srl/scss}/meta/mixins.scss +0 -0
- /package/{scss → srl/scss}/meta/variables.scss +0 -0
- /package/{scss → srl/scss}/spacer/functions.scss +0 -0
- /package/{scss → srl/scss}/spacer/index.scss +0 -0
- /package/{scss → srl/scss}/spacer/mixins.scss +0 -0
- /package/{scss → srl/scss}/spacer/variables.scss +0 -0
- /package/{scss → srl/scss}/system/functions.scss +0 -0
- /package/{scss → srl/scss}/system/index.scss +0 -0
- /package/{scss → srl/scss}/system/mixins.scss +0 -0
- /package/{scss → srl/scss}/system/root.scss +0 -0
- /package/{scss → srl/scss}/system/variables.scss +0 -0
- /package/{scss → srl/scss}/typography/functions.scss +0 -0
- /package/{scss → srl/scss}/typography/index.scss +0 -0
- /package/{scss → srl/scss}/typography/variables.scss +0 -0
- /package/{dev/nswow → srl/srl}/index.scss +0 -0
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { join } from 'node:path/posix';
|
|
2
|
+
import { glob, globSync } from 'glob';
|
|
3
|
+
import { createRequire } from 'node:module';
|
|
4
|
+
import folders from '../folders.js';
|
|
5
|
+
import {
|
|
6
|
+
readdirSync,
|
|
7
|
+
readFileSync,
|
|
8
|
+
rmSync,
|
|
9
|
+
statSync,
|
|
10
|
+
writeFileSync,
|
|
11
|
+
} from 'node:fs';
|
|
12
|
+
import {
|
|
13
|
+
lddGroupNames,
|
|
14
|
+
readLivingDocsJson,
|
|
15
|
+
writeLivingDocsJson,
|
|
16
|
+
} from '../utils.js';
|
|
17
|
+
import { createLogger } from 'vite';
|
|
18
|
+
|
|
19
|
+
const logger = createLogger();
|
|
20
|
+
const require = createRequire(import.meta.url);
|
|
21
|
+
|
|
22
|
+
export async function mapLdd() {
|
|
23
|
+
const lddJson = await readLivingDocsJson();
|
|
24
|
+
|
|
25
|
+
await mapGroups(lddJson);
|
|
26
|
+
await mapComponents(lddJson);
|
|
27
|
+
await mapProperties(lddJson);
|
|
28
|
+
|
|
29
|
+
await writeLivingDocsJson();
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* map all properties.{json,js,ts} declarations
|
|
34
|
+
* @returns {Promise<void>}
|
|
35
|
+
*/
|
|
36
|
+
async function mapProperties(lddJson) {
|
|
37
|
+
const propertiesFiles = await glob(
|
|
38
|
+
join(folders.ld, '**', 'properties.{json,js,ts}'),
|
|
39
|
+
);
|
|
40
|
+
const mapProperties = {};
|
|
41
|
+
|
|
42
|
+
for (let i = 0; i < propertiesFiles.length; i++) {
|
|
43
|
+
const file = propertiesFiles[i];
|
|
44
|
+
if (file.endsWith('.js') || file.endsWith('.ts')) {
|
|
45
|
+
const properties = require(propertiesFiles[i]).default;
|
|
46
|
+
const oKeys = Object.keys(properties);
|
|
47
|
+
|
|
48
|
+
for (let j = 0; j < oKeys.length; j++) {
|
|
49
|
+
mapProperties[oKeys[j]] = properties[oKeys[j]];
|
|
50
|
+
}
|
|
51
|
+
} else if (file.endsWith('.json')) {
|
|
52
|
+
const properties = JSON.parse(readFileSync(propertiesFiles[i]));
|
|
53
|
+
const oKeys = Object.keys(properties);
|
|
54
|
+
for (let j = 0; j < oKeys.length; j++) {
|
|
55
|
+
mapProperties[oKeys[j]] = properties[oKeys[j]];
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
lddJson.componentProperties = mapProperties;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* map group / component folder structure to design configuration
|
|
65
|
+
* @param {*} lddJson
|
|
66
|
+
* @returns
|
|
67
|
+
*/
|
|
68
|
+
async function mapGroups(lddJson) {
|
|
69
|
+
const groupsPath = folders.ld;
|
|
70
|
+
const groups = readdirSync(groupsPath);
|
|
71
|
+
|
|
72
|
+
lddJson.groups = [];
|
|
73
|
+
|
|
74
|
+
for (let x = 0; x < groups.length; x++) {
|
|
75
|
+
const group = groups[x];
|
|
76
|
+
const groupName = lddGroupNames(group);
|
|
77
|
+
|
|
78
|
+
try {
|
|
79
|
+
const groupFolderPath = join(groupsPath, group);
|
|
80
|
+
const stat = statSync(groupFolderPath);
|
|
81
|
+
|
|
82
|
+
if (stat.isDirectory()) {
|
|
83
|
+
const components = getGroupComponents(groupFolderPath);
|
|
84
|
+
lddJson.groups.push({
|
|
85
|
+
label: groupName,
|
|
86
|
+
components: components,
|
|
87
|
+
});
|
|
88
|
+
} else {
|
|
89
|
+
rmSync(groupFolderPath);
|
|
90
|
+
}
|
|
91
|
+
} catch (error) {
|
|
92
|
+
logger.error(e);
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* load and map all ld-conf.json + component.html to component configuration
|
|
100
|
+
* @param {path} groupFolderPath
|
|
101
|
+
* @returns {string[]}
|
|
102
|
+
*/
|
|
103
|
+
function getGroupComponents(groupFolderPath) {
|
|
104
|
+
const componentFolders = readdirSync(groupFolderPath);
|
|
105
|
+
const components = [];
|
|
106
|
+
|
|
107
|
+
for (let j = 0; j < componentFolders.length; j++) {
|
|
108
|
+
const component = componentFolders[j];
|
|
109
|
+
|
|
110
|
+
try {
|
|
111
|
+
const htmlPath = globSync(join(groupFolderPath, component, `*.html`));
|
|
112
|
+
const ldConfPath = join(groupFolderPath, component, `ld-conf.json`);
|
|
113
|
+
|
|
114
|
+
const htmlStat = statSync(htmlPath[0]);
|
|
115
|
+
const ldConfStat = statSync(ldConfPath);
|
|
116
|
+
|
|
117
|
+
const arrComponent = component.split('.');
|
|
118
|
+
if (arrComponent.length > 1) {
|
|
119
|
+
arrComponent.shift()
|
|
120
|
+
}
|
|
121
|
+
components.push(arrComponent.join('.'));
|
|
122
|
+
} catch (e) {}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
return components;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
async function mapComponents(lddJson) {
|
|
129
|
+
const groupsPath = folders.ld;
|
|
130
|
+
const groups = readdirSync(groupsPath);
|
|
131
|
+
|
|
132
|
+
const lddComponents = [];
|
|
133
|
+
const vueComponents = [];
|
|
134
|
+
|
|
135
|
+
for (let groupIndex = 0; groupIndex < groups.length; groupIndex++) {
|
|
136
|
+
const group = groups[groupIndex];
|
|
137
|
+
|
|
138
|
+
const groupPath = join(groupsPath, group);
|
|
139
|
+
const components = readdirSync(groupPath);
|
|
140
|
+
|
|
141
|
+
components.forEach((component) => {
|
|
142
|
+
// ldd static component
|
|
143
|
+
try {
|
|
144
|
+
const htmlFile = globSync(join(groupPath, component, '*.html'));
|
|
145
|
+
if (htmlFile.length) {
|
|
146
|
+
const htmlPath = htmlFile[0];
|
|
147
|
+
const ldConfPath = join(groupPath, component, `ld-conf.json`);
|
|
148
|
+
const ldConfStat = statSync(ldConfPath);
|
|
149
|
+
|
|
150
|
+
const componentDeclaration = JSON.parse(
|
|
151
|
+
readFileSync(ldConfPath, { encoding: 'utf-8' }),
|
|
152
|
+
);
|
|
153
|
+
const componentHtml = readFileSync(htmlPath, { encoding: 'utf-8' });
|
|
154
|
+
|
|
155
|
+
lddComponents.push({ ...componentDeclaration, html: componentHtml });
|
|
156
|
+
}
|
|
157
|
+
} catch (error) {}
|
|
158
|
+
|
|
159
|
+
// vue async component
|
|
160
|
+
try {
|
|
161
|
+
const vueFiles = globSync(join(groupPath, component, '*.vue'));
|
|
162
|
+
if (vueFiles.length) {
|
|
163
|
+
vueFiles.forEach( c => {
|
|
164
|
+
const vueName = c.split('/').pop().substring(0, -4);
|
|
165
|
+
vueComponents.push({
|
|
166
|
+
name: `SrlLd${toUpperCamelCase(vueName)}`,
|
|
167
|
+
path: join('#ld', group, component, `${vueName}.vue`),
|
|
168
|
+
});
|
|
169
|
+
})
|
|
170
|
+
}
|
|
171
|
+
} catch (error) {}
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
// write ldd components
|
|
176
|
+
lddJson.components = lddComponents;
|
|
177
|
+
|
|
178
|
+
// write async components
|
|
179
|
+
const asyncComponents = [
|
|
180
|
+
`import { defineAsyncComponent } from 'vue'`,
|
|
181
|
+
`export default function asyncLdComponent(app) {`,
|
|
182
|
+
];
|
|
183
|
+
|
|
184
|
+
for (let i = 0; i < vueComponents.length; i++) {
|
|
185
|
+
const component = vueComponents[i];
|
|
186
|
+
asyncComponents.push(
|
|
187
|
+
` app.component('${component.name}', defineAsyncComponent(() => import('${component.path}')))`,
|
|
188
|
+
);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
asyncComponents.push('}');
|
|
192
|
+
|
|
193
|
+
writeFileSync(
|
|
194
|
+
join(folders.srlPlugins, 'asyncLdComponent.ts'),
|
|
195
|
+
asyncComponents.join('\n'),
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
function toUpperCamelCase(input) {
|
|
200
|
+
return input
|
|
201
|
+
.split('-')
|
|
202
|
+
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
|
203
|
+
.join('');
|
|
204
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import folders from './folders.js';
|
|
2
|
+
import fs from 'fs';
|
|
3
|
+
import path from 'path/posix';
|
|
4
|
+
|
|
5
|
+
const tsConfigIncludes = [
|
|
6
|
+
'.srl/**/*',
|
|
7
|
+
'.srl/**/*.d.ts',
|
|
8
|
+
'.srl/**/*.vue',
|
|
9
|
+
'livingdocs/**/*',
|
|
10
|
+
'livingdocs/**/*.vue',
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
const tsConfigPaths = {
|
|
14
|
+
'@/*': ['./src/*'],
|
|
15
|
+
'~/*': ['./*'],
|
|
16
|
+
'#srl': ['./.srl'],
|
|
17
|
+
'#srl/*': ['./.srl/*'],
|
|
18
|
+
'#components': ['./.srl/components'],
|
|
19
|
+
'#components/*': ['./.srl/components/*'],
|
|
20
|
+
'#composables': ['./.srl/composables'],
|
|
21
|
+
'#composables/*': ['./.srl/composables/*'],
|
|
22
|
+
'#utils': ['./.srl/utils'],
|
|
23
|
+
'#utils/*': ['./.srl/utils/*'],
|
|
24
|
+
'#plugins': ['./.srl/plugins'],
|
|
25
|
+
'#plugins/*': ['./.srl/plugins/*'],
|
|
26
|
+
'#types': ['./.srl/types'],
|
|
27
|
+
'#types/*': ['./.srl/types/*'],
|
|
28
|
+
'#imports': ['./.srl/imports'],
|
|
29
|
+
'#imports/*': ['./.srl/imports/*'],
|
|
30
|
+
'#ld': ['./livingdocs'],
|
|
31
|
+
'#ld/*': ['./livingdocs/*'],
|
|
32
|
+
assets: ['./src/assets'],
|
|
33
|
+
'assets/*': ['./src/assets/*'],
|
|
34
|
+
srl: ['./.srl/srl'],
|
|
35
|
+
'srl/*': ['./.srl/srl/*'],
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
function prepare() {
|
|
39
|
+
if (fs.existsSync(folders.srlRoot)) {
|
|
40
|
+
fs.rmSync(folders.srlRoot, { recursive: true, force: true });
|
|
41
|
+
}
|
|
42
|
+
fs.cpSync(folders.packageSrl, folders.srlRoot, { recursive: true });
|
|
43
|
+
|
|
44
|
+
const tsConfigPath = path.join(folders.root, 'tsconfig.app.json');
|
|
45
|
+
if (fs.existsSync(tsConfigPath)) {
|
|
46
|
+
const tsConfig = JSON.parse(fs.readFileSync(tsConfigPath, 'utf-8'));
|
|
47
|
+
|
|
48
|
+
const mergedIncludes = [
|
|
49
|
+
...(tsConfig.include || []),
|
|
50
|
+
...tsConfigIncludes.filter((i) => !(tsConfig.include || []).includes(i)),
|
|
51
|
+
];
|
|
52
|
+
tsConfig.include = tsConfig.include || [];
|
|
53
|
+
tsConfig.include = mergedIncludes;
|
|
54
|
+
|
|
55
|
+
const mergedPaths = {
|
|
56
|
+
...(tsConfig.compilerOptions?.paths || {}),
|
|
57
|
+
...tsConfigPaths,
|
|
58
|
+
};
|
|
59
|
+
tsConfig.compilerOptions = tsConfig.compilerOptions || {};
|
|
60
|
+
tsConfig.compilerOptions.paths = mergedPaths;
|
|
61
|
+
|
|
62
|
+
fs.writeFileSync(tsConfigPath, JSON.stringify(tsConfig, null, 2));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export default prepare;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function preparePublish(version
|
|
1
|
+
export function preparePublish(version?: any): Promise<any>;
|
|
@@ -5,6 +5,7 @@ import writeJson from 'write-json';
|
|
|
5
5
|
import ts from 'typescript';
|
|
6
6
|
import Enquirer from 'enquirer';
|
|
7
7
|
import { packageName } from './config.js';
|
|
8
|
+
import { getPackageVersion } from './utils.js';
|
|
8
9
|
|
|
9
10
|
const { Input } = Enquirer;
|
|
10
11
|
|
|
@@ -24,7 +25,39 @@ async function compile(fileNames, options) {
|
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
|
|
27
|
-
export async function preparePublish(version) {
|
|
28
|
+
export async function preparePublish(version = null) {
|
|
29
|
+
try {
|
|
30
|
+
if (version === null) {
|
|
31
|
+
const packageVersion = await getPackageVersion(packageName);
|
|
32
|
+
|
|
33
|
+
const currentVersion = packageVersion.split('.');
|
|
34
|
+
let major = parseInt(currentVersion[0]);
|
|
35
|
+
let minor = parseInt(currentVersion[1]);
|
|
36
|
+
let patch = parseInt(currentVersion[2]);
|
|
37
|
+
|
|
38
|
+
if (process.argv.includes('major')) {
|
|
39
|
+
major++;
|
|
40
|
+
minor = 0;
|
|
41
|
+
patch = 0;
|
|
42
|
+
} else if (process.argv.includes('minor')) {
|
|
43
|
+
minor++;
|
|
44
|
+
patch = 0;
|
|
45
|
+
} else {
|
|
46
|
+
patch++;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
version = `${major}.${minor}.${patch}`;
|
|
50
|
+
|
|
51
|
+
const prompt = new Input({
|
|
52
|
+
message: 'Package version',
|
|
53
|
+
initial: version,
|
|
54
|
+
});
|
|
55
|
+
version = await prompt.run();
|
|
56
|
+
}
|
|
57
|
+
} catch (error) {
|
|
58
|
+
console.error('Error during preparePublish:', error);
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
28
61
|
|
|
29
62
|
if (version) {
|
|
30
63
|
const packageJson = JSON.parse(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function renamePackages(startDir?:
|
|
1
|
+
export function renamePackages(startDir?: string): void;
|
package/scripts/utils.d.ts
CHANGED
|
@@ -1,49 +1,64 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @
|
|
5
|
-
* @return {string} The modified name with replaced placeholders.
|
|
2
|
+
* Formats a group name for Livingdocs.
|
|
3
|
+
* @param {string} name - The original group name.
|
|
4
|
+
* @returns {string} The formatted group name.
|
|
6
5
|
*/
|
|
7
6
|
export function lddGroupNames(name: string): string;
|
|
8
7
|
/**
|
|
9
|
-
* Reads
|
|
10
|
-
*
|
|
11
|
-
|
|
8
|
+
* Reads and caches the package.json file.
|
|
9
|
+
* @returns {Promise<Object>} The parsed package.json object.
|
|
10
|
+
*/
|
|
11
|
+
export function updatePackageJson(): Promise<any>;
|
|
12
|
+
/**
|
|
13
|
+
* Returns the cached package.json object or reads it if not cached.
|
|
14
|
+
* @returns {Promise<Object>} The package.json object.
|
|
12
15
|
*/
|
|
13
16
|
export function readPackageJson(): Promise<any>;
|
|
14
17
|
/**
|
|
15
|
-
* Writes
|
|
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.
|
|
18
|
+
* Writes the current package.json object to the file.
|
|
19
|
+
* @returns {Promise<boolean>} True if successful.
|
|
19
20
|
*/
|
|
20
|
-
export function writePackageJson(
|
|
21
|
+
export function writePackageJson(): Promise<boolean>;
|
|
21
22
|
/**
|
|
22
|
-
* Reads
|
|
23
|
-
*
|
|
24
|
-
|
|
23
|
+
* Reads and caches the livingdocs.config.json file.
|
|
24
|
+
* @returns {Promise<Object>} The parsed livingdocs.config.json object.
|
|
25
|
+
*/
|
|
26
|
+
export function updateLivingDocsJson(): Promise<any>;
|
|
27
|
+
/**
|
|
28
|
+
* Returns the cached livingdocs.config.json object or reads it if not cached.
|
|
29
|
+
* @returns {Promise<Object>} The livingdocs.config.json object.
|
|
25
30
|
*/
|
|
26
31
|
export function readLivingDocsJson(): Promise<any>;
|
|
27
32
|
/**
|
|
28
|
-
* Writes the
|
|
29
|
-
*
|
|
30
|
-
|
|
31
|
-
|
|
33
|
+
* Writes the current livingdocs.config.json object to the file.
|
|
34
|
+
* @returns {Promise<boolean>} True if successful.
|
|
35
|
+
*/
|
|
36
|
+
export function writeLivingDocsJson(): Promise<boolean>;
|
|
37
|
+
/**
|
|
38
|
+
* Reads and caches the srl.config.json file.
|
|
39
|
+
* @returns {Promise<Object>} The parsed srl.config.json object.
|
|
32
40
|
*/
|
|
33
|
-
export function
|
|
41
|
+
export function updateNsWowJson(): Promise<any>;
|
|
34
42
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* @returns {Promise<Object>} - Resolves to the parsed JSON object from the `nswow.config.json` file.
|
|
43
|
+
* Returns the cached srl.config.json object or reads it if not cached.
|
|
44
|
+
* @returns {Promise<Object>} The srl.config.json object.
|
|
38
45
|
*/
|
|
39
46
|
export function readNsWowJson(): Promise<any>;
|
|
40
47
|
/**
|
|
41
|
-
* Writes the
|
|
42
|
-
*
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
*
|
|
48
|
+
* Writes the current srl.config.json object to the file.
|
|
49
|
+
* @returns {Promise<boolean>} True if successful.
|
|
50
|
+
*/
|
|
51
|
+
export function writeNsWowJson(): Promise<boolean>;
|
|
52
|
+
/**
|
|
53
|
+
* Converts a string to camelCase.
|
|
54
|
+
* @param {string} str - The input string.
|
|
55
|
+
* @returns {string} The camelCase string.
|
|
56
|
+
*/
|
|
57
|
+
export function camelCase(str: string): string;
|
|
58
|
+
/**
|
|
59
|
+
* Gets the version of an npm package.
|
|
60
|
+
* @param {string} packageName - The name of the npm package.
|
|
61
|
+
* @returns {Promise<string>} The package version.
|
|
47
62
|
*/
|
|
48
|
-
export function
|
|
63
|
+
export function getPackageVersion(packageName: string): Promise<string>;
|
|
49
64
|
export { writeJson };
|
package/scripts/utils.js
CHANGED
|
@@ -1,106 +1,163 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { join } from 'node:path/posix';
|
|
2
2
|
import { readFileSync } from 'node:fs';
|
|
3
3
|
import { createRequire } from 'node:module';
|
|
4
|
+
import { exec } from 'child_process';
|
|
4
5
|
|
|
5
6
|
const require = createRequire(import.meta.url);
|
|
6
|
-
|
|
7
|
-
* A module for writing JSON data to a file.
|
|
8
|
-
*
|
|
9
|
-
* @module writeJson
|
|
10
|
-
*/
|
|
7
|
+
|
|
11
8
|
const writeJson = require('write-json');
|
|
12
9
|
|
|
10
|
+
const data = {
|
|
11
|
+
packageJson: null,
|
|
12
|
+
livingDocsJson: null,
|
|
13
|
+
nsWowJson: null,
|
|
14
|
+
}
|
|
15
|
+
|
|
13
16
|
/**
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* @
|
|
17
|
-
* @return {string} The modified name with replaced placeholders.
|
|
17
|
+
* Formats a group name for Livingdocs.
|
|
18
|
+
* @param {string} name - The original group name.
|
|
19
|
+
* @returns {string} The formatted group name.
|
|
18
20
|
*/
|
|
19
21
|
function lddGroupNames(name) {
|
|
22
|
+
const arrName = name.split('.');
|
|
23
|
+
if (arrName.length > 1) {
|
|
24
|
+
arrName.shift();
|
|
25
|
+
name = arrName.join('.');
|
|
26
|
+
}
|
|
20
27
|
return name.replace('_and_', ' / ').replace('_', ' ');
|
|
21
28
|
}
|
|
22
29
|
|
|
23
30
|
/**
|
|
24
|
-
* Reads
|
|
25
|
-
*
|
|
26
|
-
|
|
31
|
+
* Reads and caches the package.json file.
|
|
32
|
+
* @returns {Promise<Object>} The parsed package.json object.
|
|
33
|
+
*/
|
|
34
|
+
async function updatePackageJson() {
|
|
35
|
+
data.packageJson = JSON.parse(
|
|
36
|
+
await readFileSync(
|
|
37
|
+
join(process.cwd(), 'package.json')
|
|
38
|
+
)
|
|
39
|
+
);
|
|
40
|
+
return data.packageJson;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Returns the cached package.json object or reads it if not cached.
|
|
45
|
+
* @returns {Promise<Object>} The package.json object.
|
|
27
46
|
*/
|
|
28
47
|
async function readPackageJson() {
|
|
29
|
-
|
|
30
|
-
return JSON.parse(await readFileSync(file));
|
|
48
|
+
return data.packageJson || updatePackageJson();
|
|
31
49
|
}
|
|
32
50
|
|
|
33
51
|
/**
|
|
34
|
-
* Writes
|
|
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.
|
|
52
|
+
* Writes the current package.json object to the file.
|
|
53
|
+
* @returns {Promise<boolean>} True if successful.
|
|
38
54
|
*/
|
|
39
|
-
async function writePackageJson(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
writeJson.sync(file, config);
|
|
43
|
-
}
|
|
55
|
+
async function writePackageJson() {
|
|
56
|
+
const file = join(process.cwd(), 'package.json');
|
|
57
|
+
await writeJson.sync(file, data.packageJson);
|
|
44
58
|
return true;
|
|
45
59
|
}
|
|
46
60
|
|
|
47
61
|
/**
|
|
48
|
-
* Reads
|
|
49
|
-
*
|
|
50
|
-
|
|
62
|
+
* Reads and caches the livingdocs.config.json file.
|
|
63
|
+
* @returns {Promise<Object>} The parsed livingdocs.config.json object.
|
|
64
|
+
*/
|
|
65
|
+
async function updateLivingDocsJson() {
|
|
66
|
+
data.livingDocsJson = JSON.parse(
|
|
67
|
+
await readFileSync(
|
|
68
|
+
join(process.cwd(), 'livingdocs.config.json')
|
|
69
|
+
)
|
|
70
|
+
);
|
|
71
|
+
return data.livingDocsJson;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Returns the cached livingdocs.config.json object or reads it if not cached.
|
|
76
|
+
* @returns {Promise<Object>} The livingdocs.config.json object.
|
|
51
77
|
*/
|
|
52
78
|
async function readLivingDocsJson() {
|
|
53
|
-
|
|
54
|
-
return JSON.parse(await readFileSync(file));
|
|
79
|
+
return data.livingDocsJson || updateLivingDocsJson();
|
|
55
80
|
}
|
|
56
81
|
|
|
57
82
|
/**
|
|
58
|
-
* Writes the
|
|
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.
|
|
83
|
+
* Writes the current livingdocs.config.json object to the file.
|
|
84
|
+
* @returns {Promise<boolean>} True if successful.
|
|
62
85
|
*/
|
|
63
|
-
async function writeLivingDocsJson(
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
writeJson.sync(file, config);
|
|
67
|
-
}
|
|
86
|
+
async function writeLivingDocsJson() {
|
|
87
|
+
const file = join(process.cwd(), 'livingdocs.config.json');
|
|
88
|
+
await writeJson.sync(file, data.livingDocsJson);
|
|
68
89
|
return true;
|
|
69
90
|
}
|
|
70
91
|
|
|
71
92
|
/**
|
|
72
|
-
* Reads
|
|
73
|
-
*
|
|
74
|
-
|
|
93
|
+
* Reads and caches the srl.config.json file.
|
|
94
|
+
* @returns {Promise<Object>} The parsed srl.config.json object.
|
|
95
|
+
*/
|
|
96
|
+
async function updateNsWowJson() {
|
|
97
|
+
data.nsWowJson = JSON.parse(
|
|
98
|
+
await readFileSync(
|
|
99
|
+
join(process.cwd(), 'srl.config.json')
|
|
100
|
+
)
|
|
101
|
+
);
|
|
102
|
+
return data.nsWowJson;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Returns the cached srl.config.json object or reads it if not cached.
|
|
107
|
+
* @returns {Promise<Object>} The srl.config.json object.
|
|
75
108
|
*/
|
|
76
109
|
async function readNsWowJson() {
|
|
77
|
-
|
|
78
|
-
return JSON.parse(await readFileSync(file));
|
|
110
|
+
return data.nsWowJson || updateNsWowJson();
|
|
79
111
|
}
|
|
80
112
|
|
|
81
113
|
/**
|
|
82
|
-
* Writes the
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
* @param {Object} config - The configuration object to write.
|
|
86
|
-
*
|
|
87
|
-
* @return {boolean} - Returns true if the configuration was successfully written, otherwise false.
|
|
114
|
+
* Writes the current srl.config.json object to the file.
|
|
115
|
+
* @returns {Promise<boolean>} True if successful.
|
|
88
116
|
*/
|
|
89
|
-
async function writeNsWowJson(
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
writeJson.sync(file, config);
|
|
93
|
-
}
|
|
117
|
+
async function writeNsWowJson() {
|
|
118
|
+
const file = join(process.cwd(), 'srl.config.json');
|
|
119
|
+
await writeJson.sync(file, data.nsWowJson);
|
|
94
120
|
return true;
|
|
95
121
|
}
|
|
96
122
|
|
|
123
|
+
/**
|
|
124
|
+
* Converts a string to camelCase.
|
|
125
|
+
* @param {string} str - The input string.
|
|
126
|
+
* @returns {string} The camelCase string.
|
|
127
|
+
*/
|
|
128
|
+
function camelCase(str) {
|
|
129
|
+
return str.replace(/[._-](\w|$)/g, (_, x) => x.toUpperCase());
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Gets the version of an npm package.
|
|
134
|
+
* @param {string} packageName - The name of the npm package.
|
|
135
|
+
* @returns {Promise<string>} The package version.
|
|
136
|
+
*/
|
|
137
|
+
function getPackageVersion(packageName) {
|
|
138
|
+
return new Promise((resolve, reject) => {
|
|
139
|
+
exec(`npm view ${packageName} version`, (error, stdout, stderr) => {
|
|
140
|
+
let version = stdout.trim();
|
|
141
|
+
if (version === '') {
|
|
142
|
+
version = '0.0.0';
|
|
143
|
+
}
|
|
144
|
+
resolve(version);
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
|
|
97
149
|
export {
|
|
98
150
|
writeJson,
|
|
99
151
|
lddGroupNames,
|
|
152
|
+
updatePackageJson,
|
|
100
153
|
readPackageJson,
|
|
101
154
|
writePackageJson,
|
|
155
|
+
updateLivingDocsJson,
|
|
102
156
|
readLivingDocsJson,
|
|
103
157
|
writeLivingDocsJson,
|
|
158
|
+
updateNsWowJson,
|
|
104
159
|
readNsWowJson,
|
|
105
160
|
writeNsWowJson,
|
|
106
|
-
|
|
161
|
+
camelCase,
|
|
162
|
+
getPackageVersion,
|
|
163
|
+
};
|