@simple-reporting/base 0.1.112 → 1.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 +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 +66 -71
- 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
package/scripts/components.js
CHANGED
|
@@ -1,28 +1,23 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';
|
|
2
|
-
import {
|
|
2
|
+
import { join } from 'node:path/posix';
|
|
3
3
|
import { glob } from 'glob';
|
|
4
|
-
import { copy
|
|
4
|
+
import { copy } from 'fs-extra';
|
|
5
5
|
import { rm, statSync, mkdirSync, readdirSync, writeFileSync } from 'node:fs';
|
|
6
|
-
import { fileURLToPath } from 'node:url';
|
|
7
6
|
import { lddGroupNames } from './utils.js';
|
|
8
|
-
import { map } from '
|
|
7
|
+
import { map } from './build.js';
|
|
8
|
+
import folders from './folders.js';
|
|
9
9
|
|
|
10
10
|
const require = createRequire(import.meta.url);
|
|
11
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
12
|
-
const __dirname = dirname(__filename);
|
|
13
11
|
|
|
14
|
-
const
|
|
15
|
-
const CWD = process.cwd();
|
|
16
|
-
|
|
17
|
-
const { MultiSelect, Confirm, AutoComplete, Input } = require('enquirer');
|
|
12
|
+
const { MultiSelect, Confirm, AutoComplete } = require('enquirer');
|
|
18
13
|
|
|
19
14
|
/**
|
|
20
15
|
* Adds groups of livingdocs to a specified output directory.
|
|
21
16
|
* @returns {boolean} - Returns true if groups were added successfully.
|
|
22
17
|
*/
|
|
23
18
|
async function addGroups() {
|
|
24
|
-
const outputPath =
|
|
25
|
-
const groupsPath =
|
|
19
|
+
const outputPath = folders.ld;
|
|
20
|
+
const groupsPath = folders.packageLd;
|
|
26
21
|
const groups = readdirSync(groupsPath);
|
|
27
22
|
const groupsExists = [];
|
|
28
23
|
for (let i = 0; i < groups.length; i++) {
|
|
@@ -60,17 +55,17 @@ async function addGroups() {
|
|
|
60
55
|
const installed = [];
|
|
61
56
|
for (const key in groups) {
|
|
62
57
|
const group = groups[key];
|
|
63
|
-
const components = readdirSync(
|
|
58
|
+
const components = readdirSync(join(groupsPath, group));
|
|
64
59
|
for (let i = 0; i < components.length; i++) {
|
|
65
60
|
const component = components[i];
|
|
66
61
|
try {
|
|
67
|
-
await statSync(
|
|
62
|
+
await statSync(join(outputPath, group, component));
|
|
68
63
|
console.log(`Component ${key} / ${component} allready exists!`);
|
|
69
64
|
} catch (e) {
|
|
70
65
|
action = true;
|
|
71
66
|
await copy(
|
|
72
|
-
|
|
73
|
-
|
|
67
|
+
join(groupsPath, group, component),
|
|
68
|
+
join(outputPath, group, component),
|
|
74
69
|
);
|
|
75
70
|
console.log(`Component ${key} / ${component} installed!`);
|
|
76
71
|
}
|
|
@@ -98,19 +93,19 @@ async function addGroups() {
|
|
|
98
93
|
* @returns {Promise<void>} - A promise that resolves when the components are added successfully.
|
|
99
94
|
*/
|
|
100
95
|
async function addComponents() {
|
|
101
|
-
const filesToAdd = await glob(
|
|
96
|
+
const filesToAdd = await glob(join(folders.packageLd, '**', '*'), {
|
|
102
97
|
maxDepth: 6,
|
|
103
98
|
});
|
|
104
|
-
const filesExists = await glob(
|
|
99
|
+
const filesExists = await glob(join(folders.ld, '**', '*'), { maxDepth: 3 });
|
|
105
100
|
const livingdocsToAdd = [];
|
|
106
101
|
const livingdocsExists = [];
|
|
107
102
|
|
|
108
103
|
for (let x = 0; x < filesExists.length; x++) {
|
|
109
|
-
const c = filesExists[x].replace(
|
|
104
|
+
const c = filesExists[x].replace(join(folders.ld, '/'), '');
|
|
110
105
|
livingdocsExists.push(c);
|
|
111
106
|
}
|
|
112
107
|
for (let x = 0; x < filesToAdd.length; x++) {
|
|
113
|
-
const c = filesToAdd[x].replace(
|
|
108
|
+
const c = filesToAdd[x].replace(join(folders.packageLd, '/'), '');
|
|
114
109
|
if (!livingdocsExists.includes(c) && c.indexOf('/') !== -1) {
|
|
115
110
|
livingdocsToAdd.push({ name: lddGroupNames(c), value: c });
|
|
116
111
|
}
|
|
@@ -148,8 +143,8 @@ async function addComponents() {
|
|
|
148
143
|
const oKeys = Object.keys(livingdocs);
|
|
149
144
|
for (let x = 0; x < oKeys.length; x++) {
|
|
150
145
|
await copy(
|
|
151
|
-
|
|
152
|
-
|
|
146
|
+
join(folders.packageLd, livingdocs[oKeys[x]]),
|
|
147
|
+
join(folders.ld, livingdocs[oKeys[x]]),
|
|
153
148
|
);
|
|
154
149
|
}
|
|
155
150
|
await map();
|
|
@@ -165,7 +160,7 @@ async function addComponents() {
|
|
|
165
160
|
* @returns {boolean} Returns true if the livingdocs groups were successfully removed, otherwise false.
|
|
166
161
|
*/
|
|
167
162
|
async function removeGroups() {
|
|
168
|
-
const livingdocsPath =
|
|
163
|
+
const livingdocsPath = folders.ld;
|
|
169
164
|
const groupsExists = [];
|
|
170
165
|
const groupsList = await readdirSync(livingdocsPath);
|
|
171
166
|
for (let i = 0; i < groupsList.length; i++) {
|
|
@@ -210,7 +205,7 @@ async function removeGroups() {
|
|
|
210
205
|
if (remove) {
|
|
211
206
|
oKeys.forEach(async (k) => {
|
|
212
207
|
await rm(
|
|
213
|
-
|
|
208
|
+
join(folders.ld, groups[k]),
|
|
214
209
|
{ recursive: true, force: true },
|
|
215
210
|
(err) => {
|
|
216
211
|
if (err) {
|
|
@@ -235,13 +230,13 @@ async function removeGroups() {
|
|
|
235
230
|
* @returns {Promise<void>} A promise that resolves once the components are removed.
|
|
236
231
|
*/
|
|
237
232
|
async function removeComponents() {
|
|
238
|
-
const filesExists = await glob(
|
|
233
|
+
const filesExists = await glob(join(folders.ld, '**', '*'), { maxDepth: 3 });
|
|
239
234
|
const livingdocsExists = [];
|
|
240
235
|
for (let x = 0; x < filesExists.length; x++) {
|
|
241
|
-
const c = filesExists[x].replace(
|
|
236
|
+
const c = filesExists[x].replace(join(folders.ld, '/'), '');
|
|
242
237
|
if (c.indexOf('/') !== -1) {
|
|
243
238
|
const p = c.split('/');
|
|
244
|
-
let group = p[0]
|
|
239
|
+
let group = lddGroupNames(p[0]);
|
|
245
240
|
livingdocsExists.push({
|
|
246
241
|
name: lddGroupNames(`${group} / ${p[1]}`),
|
|
247
242
|
value: c,
|
|
@@ -287,7 +282,7 @@ async function removeComponents() {
|
|
|
287
282
|
if (remove) {
|
|
288
283
|
oKeys.forEach(async (k) => {
|
|
289
284
|
await rm(
|
|
290
|
-
|
|
285
|
+
join(folders.ld, livingdocs[k]),
|
|
291
286
|
{ recursive: true, force: true },
|
|
292
287
|
(err) => {
|
|
293
288
|
if (err) {
|
|
@@ -317,7 +312,7 @@ function mapComponentName(name) {
|
|
|
317
312
|
name: false,
|
|
318
313
|
};
|
|
319
314
|
if (name) {
|
|
320
|
-
const n = name.split('/');
|
|
315
|
+
const n = name.includes('\\') ? name.split('\\') : name.split('/');
|
|
321
316
|
if (n.length > 1) {
|
|
322
317
|
component.group = n[0];
|
|
323
318
|
component.name = n[1];
|
|
@@ -345,29 +340,21 @@ async function writeComponent(group, name) {
|
|
|
345
340
|
}
|
|
346
341
|
|
|
347
342
|
try {
|
|
348
|
-
const stat = await statSync(
|
|
343
|
+
const stat = await statSync(join(folders.ld, group, name));
|
|
349
344
|
console.error(`Component ${group}/${name} already exist!`);
|
|
350
345
|
} catch (e) {
|
|
351
346
|
try {
|
|
352
|
-
await statSync(
|
|
347
|
+
await statSync(join(folders.ld, group));
|
|
353
348
|
} catch (e) {
|
|
354
|
-
await mkdirSync(
|
|
349
|
+
await mkdirSync(join(folders.ld, group));
|
|
350
|
+
await mkdirSync(join(folders.ld, group));
|
|
355
351
|
}
|
|
356
352
|
|
|
357
|
-
await mkdirSync(
|
|
353
|
+
await mkdirSync(join(folders.ld, group, name));
|
|
354
|
+
await mkdirSync(join(folders.ld, group, name, 'scss'));
|
|
358
355
|
await writeFileSync(
|
|
359
|
-
|
|
360
|
-
`<
|
|
361
|
-
{
|
|
362
|
-
"name": "${name}",
|
|
363
|
-
"label": "${name}",
|
|
364
|
-
"properties": [
|
|
365
|
-
"web-width",
|
|
366
|
-
"pdf-width"
|
|
367
|
-
]
|
|
368
|
-
}
|
|
369
|
-
</script>
|
|
370
|
-
<p class="srl-${name} srl-article__grid srl-article__grid--content">
|
|
356
|
+
join(folders.ld, group, name, `${name}.html`),
|
|
357
|
+
`<p class="srl-${name} srl-article__grid srl-article__grid--content">
|
|
371
358
|
<span class="srl-article__grid--inner" doc-editable="text">
|
|
372
359
|
Editable Text
|
|
373
360
|
</span>
|
|
@@ -375,42 +362,46 @@ async function writeComponent(group, name) {
|
|
|
375
362
|
`,
|
|
376
363
|
);
|
|
377
364
|
await writeFileSync(
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
.
|
|
382
|
-
|
|
383
|
-
}
|
|
384
|
-
`,
|
|
365
|
+
join(folders.ld, group, name, `ld-conf.json`),
|
|
366
|
+
`{
|
|
367
|
+
"name": "${name}",
|
|
368
|
+
"label": "${name.charAt(0).toUpperCase()}${name.slice(1)}"
|
|
369
|
+
}`,
|
|
385
370
|
);
|
|
386
371
|
await writeFileSync(
|
|
387
|
-
|
|
388
|
-
'@use "
|
|
372
|
+
join(folders.ld, group, name, 'scss', `app.scss`),
|
|
373
|
+
'@use "web";',
|
|
389
374
|
);
|
|
390
375
|
await writeFileSync(
|
|
391
|
-
|
|
392
|
-
'@use "
|
|
376
|
+
join(folders.ld, group, name, 'scss', `editor.scss`),
|
|
377
|
+
'@use "web";',
|
|
393
378
|
);
|
|
394
379
|
await writeFileSync(
|
|
395
|
-
|
|
396
|
-
|
|
380
|
+
join(folders.ld, group, name, 'scss', `general.scss`),
|
|
381
|
+
`@use "srl";
|
|
382
|
+
.srl-${name} {
|
|
383
|
+
|
|
384
|
+
}`,
|
|
397
385
|
);
|
|
398
386
|
await writeFileSync(
|
|
399
|
-
|
|
400
|
-
'@use "
|
|
387
|
+
join(folders.ld, group, name, 'scss', `pdf.scss`),
|
|
388
|
+
'@use "srl";',
|
|
401
389
|
);
|
|
402
390
|
await writeFileSync(
|
|
403
|
-
|
|
404
|
-
'@use "
|
|
391
|
+
join(folders.ld, group, name, 'scss', `web.scss`),
|
|
392
|
+
'@use "srl";',
|
|
405
393
|
);
|
|
406
394
|
await writeFileSync(
|
|
407
|
-
|
|
408
|
-
'@use "
|
|
395
|
+
join(folders.ld, group, name, 'scss', `word.scss`),
|
|
396
|
+
'@use "pdf";',
|
|
409
397
|
);
|
|
410
398
|
await writeFileSync(
|
|
411
|
-
|
|
412
|
-
|
|
399
|
+
join(folders.ld, group, name, 'scss', `xbrl.scss`),
|
|
400
|
+
`@use "srl";
|
|
401
|
+
@use "general";
|
|
402
|
+
`,
|
|
413
403
|
);
|
|
404
|
+
await writeFileSync(join(folders.ld, group, name, `properties.json`), '{}');
|
|
414
405
|
await map();
|
|
415
406
|
console.log(`Component ${group}/${name} created!`);
|
|
416
407
|
}
|
|
@@ -440,10 +431,12 @@ async function createComponent(name) {
|
|
|
440
431
|
.then(async (name) => {
|
|
441
432
|
component = mapComponentName(name);
|
|
442
433
|
if (!component.group) {
|
|
443
|
-
const groupFolders = await glob(
|
|
434
|
+
const groupFolders = await glob(join(folders.ld, '*'));
|
|
444
435
|
const groups = [];
|
|
445
436
|
for (let x = 0; x < groupFolders.length; x++) {
|
|
446
|
-
const f = groupFolders[x].
|
|
437
|
+
const f = groupFolders[x].includes('\\')
|
|
438
|
+
? groupFolders[x].split('\\')
|
|
439
|
+
: groupFolders[x].split('/');
|
|
447
440
|
groups.push(f.pop());
|
|
448
441
|
}
|
|
449
442
|
groups.sort((a, b) => {
|
|
@@ -474,10 +467,12 @@ async function createComponent(name) {
|
|
|
474
467
|
})
|
|
475
468
|
.catch(console.error);
|
|
476
469
|
} else if (!component.group) {
|
|
477
|
-
const groupFolders = await glob(
|
|
470
|
+
const groupFolders = await glob(join(folders.ld, '*'));
|
|
478
471
|
const groups = [];
|
|
479
472
|
for (let x = 0; x < groupFolders.length; x++) {
|
|
480
|
-
const f = groupFolders[x].
|
|
473
|
+
const f = groupFolders[x].includes('\\')
|
|
474
|
+
? groupFolders[x].split('\\')
|
|
475
|
+
: groupFolders[x].split('/');
|
|
481
476
|
groups.push(f.pop());
|
|
482
477
|
}
|
|
483
478
|
groups.sort((a, b) => {
|
|
@@ -519,7 +514,7 @@ async function writeGroup(group) {
|
|
|
519
514
|
console.error('No group name set!');
|
|
520
515
|
return false;
|
|
521
516
|
}
|
|
522
|
-
const path =
|
|
517
|
+
const path = join(folders.ld, group);
|
|
523
518
|
try {
|
|
524
519
|
const stat = await statSync(path);
|
|
525
520
|
console.error(`Group "${group}" allready exist!`);
|
package/scripts/config.d.ts
CHANGED
|
@@ -1 +1,9 @@
|
|
|
1
1
|
export const packageName: "@simple-reporting/base";
|
|
2
|
+
export const baseComponentsToInstall: string[];
|
|
3
|
+
export const nsWowInternalLddUrl: "https://nswow-ld.nswow.ch/designs";
|
|
4
|
+
declare namespace _default {
|
|
5
|
+
export { packageName };
|
|
6
|
+
export { baseComponentsToInstall };
|
|
7
|
+
export { nsWowInternalLddUrl };
|
|
8
|
+
}
|
|
9
|
+
export default _default;
|
package/scripts/config.js
CHANGED
|
@@ -1 +1,52 @@
|
|
|
1
|
-
export const packageName = '@simple-reporting/base';
|
|
1
|
+
export const packageName = '@simple-reporting/base';
|
|
2
|
+
|
|
3
|
+
export const baseComponentsToInstall = [
|
|
4
|
+
'010.Titles/010.title-h1',
|
|
5
|
+
'010.Titles/020.title-h2',
|
|
6
|
+
'010.Titles/030.title-h3',
|
|
7
|
+
'010.Titles/040.title-h4',
|
|
8
|
+
'010.Titles/050.title-h5',
|
|
9
|
+
'010.Titles/060.title-h6',
|
|
10
|
+
'020.Text/010.lead',
|
|
11
|
+
'020.Text/020.paragraph',
|
|
12
|
+
'020.Text/040.link',
|
|
13
|
+
'020.Text/050.quote',
|
|
14
|
+
'020.Text/060.quote-with-portrait',
|
|
15
|
+
'020.Text/070.footnote-container',
|
|
16
|
+
'020.Text/080.footnote-item',
|
|
17
|
+
'030.Lists/010.unordered-list',
|
|
18
|
+
'030.Lists/020.ordered-list',
|
|
19
|
+
'030.Lists/030.alphanumeric-list',
|
|
20
|
+
'030.Lists/040.list-item',
|
|
21
|
+
'040.Media/010.table',
|
|
22
|
+
'040.Media/020.image',
|
|
23
|
+
'040.Media/030.video',
|
|
24
|
+
'040.Media/040.interactive-element',
|
|
25
|
+
'070.Container/010.aside-content-container',
|
|
26
|
+
'070.Container/020.columns-container',
|
|
27
|
+
'080.CV/010.cv',
|
|
28
|
+
'080.CV/020.cv-time-span',
|
|
29
|
+
'090.Signatures/010.signature-container',
|
|
30
|
+
'090.Signatures/020.signature-item',
|
|
31
|
+
'100.Misc/010.anchor',
|
|
32
|
+
'110.PDF/010.pdf-pagebreak',
|
|
33
|
+
'110.PDF/030.pdf-publication-title',
|
|
34
|
+
'110.PDF/040.pdf-chapter-title',
|
|
35
|
+
'110.PDF/070.pdf-cover',
|
|
36
|
+
'110.PDF/080.pdf-toc-page',
|
|
37
|
+
'110.PDF/090.pdf-toc-item-title',
|
|
38
|
+
'110.PDF/100.pdf-toc-item',
|
|
39
|
+
'110.PDF/110.pdf-toc-item-blank',
|
|
40
|
+
'999.Properties/alignment',
|
|
41
|
+
'999.Properties/hide-quote-characters',
|
|
42
|
+
'999.Properties/pdf-spacer',
|
|
43
|
+
'999.Properties/width'
|
|
44
|
+
];
|
|
45
|
+
|
|
46
|
+
export const nsWowInternalLddUrl = 'https://nswow-ld.nswow.ch/designs';
|
|
47
|
+
|
|
48
|
+
export default {
|
|
49
|
+
packageName,
|
|
50
|
+
baseComponentsToInstall,
|
|
51
|
+
nsWowInternalLddUrl,
|
|
52
|
+
};
|
package/scripts/doPublish.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { execSync } from 'child_process';
|
|
2
2
|
import { preparePublish } from './preparePublish.js';
|
|
3
3
|
import { packageName } from './config.js';
|
|
4
|
+
import { getPackageVersion } from './utils.js';
|
|
4
5
|
|
|
5
6
|
export async function doPublish(version = null) {
|
|
6
7
|
try {
|
|
@@ -10,6 +11,17 @@ export async function doPublish(version = null) {
|
|
|
10
11
|
|
|
11
12
|
await execSync(`npm publish --tag ${tag}`, { stdio: 'inherit' });
|
|
12
13
|
|
|
14
|
+
const latest = await getPackageVersion(packageName);
|
|
15
|
+
|
|
16
|
+
if (publishVersion > latest) {
|
|
17
|
+
await execSync(
|
|
18
|
+
`npm dist-tag add ${packageName}@${publishVersion} latest`,
|
|
19
|
+
{
|
|
20
|
+
stdio: 'inherit',
|
|
21
|
+
},
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
|
|
13
25
|
console.log(
|
|
14
26
|
`Package ${packageName}@${publishVersion} published successfully!`,
|
|
15
27
|
);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export const root: string;
|
|
2
|
+
export const packageName: string;
|
|
3
|
+
export const packagePath: string;
|
|
4
|
+
export const packageSrl: string;
|
|
5
|
+
export const packageLd: string;
|
|
6
|
+
export const srlRoot: string;
|
|
7
|
+
export const srlSystem: string;
|
|
8
|
+
export const srlComponents: string;
|
|
9
|
+
export const srlComposables: string;
|
|
10
|
+
export const srlUtils: string;
|
|
11
|
+
export const srlPlugins: string;
|
|
12
|
+
export const srlScss: string;
|
|
13
|
+
export const srlImports: string;
|
|
14
|
+
export const srlTypes: string;
|
|
15
|
+
export const srlOutput: string;
|
|
16
|
+
export const srlPublic: string;
|
|
17
|
+
export const srlSrc: string;
|
|
18
|
+
export const srlAssets: string;
|
|
19
|
+
export const srlEntries: string;
|
|
20
|
+
export const ld: string;
|
|
21
|
+
declare namespace _default {
|
|
22
|
+
export { root };
|
|
23
|
+
export { packageName };
|
|
24
|
+
export { packagePath };
|
|
25
|
+
export { packageSrl };
|
|
26
|
+
export { packageLd };
|
|
27
|
+
export { srlRoot };
|
|
28
|
+
export { srlSystem };
|
|
29
|
+
export { srlComponents };
|
|
30
|
+
export { srlComposables };
|
|
31
|
+
export { srlUtils };
|
|
32
|
+
export { srlPlugins };
|
|
33
|
+
export { srlScss };
|
|
34
|
+
export { srlImports };
|
|
35
|
+
export { srlTypes };
|
|
36
|
+
export { srlOutput };
|
|
37
|
+
export { srlPublic };
|
|
38
|
+
export { srlSrc };
|
|
39
|
+
export { srlAssets };
|
|
40
|
+
export { srlEntries };
|
|
41
|
+
export { ld };
|
|
42
|
+
}
|
|
43
|
+
export default _default;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { join } from 'path/posix';
|
|
2
|
+
import { packageName as configPackageName } from './config.js';
|
|
3
|
+
|
|
4
|
+
export const root = process.cwd();
|
|
5
|
+
export const packageName = join(...configPackageName.split('/'));
|
|
6
|
+
export const packagePath = join(root, 'node_modules', packageName);
|
|
7
|
+
export const packageSrl = join(packagePath, 'srl');
|
|
8
|
+
export const packageLd = join(packagePath, 'livingdocs');
|
|
9
|
+
export const srlRoot = join(root, '.srl');
|
|
10
|
+
export const srlSystem = join(srlRoot, 'srl');
|
|
11
|
+
export const srlComponents = join(srlRoot, 'components');
|
|
12
|
+
export const srlComposables = join(srlRoot, 'composables');
|
|
13
|
+
export const srlUtils = join(srlRoot, 'utils');
|
|
14
|
+
export const srlPlugins = join(srlRoot, 'plugins');
|
|
15
|
+
export const srlScss = join(srlRoot, 'scss');
|
|
16
|
+
export const srlImports = join(srlRoot, 'imports');
|
|
17
|
+
export const srlTypes = join(srlRoot, 'types');
|
|
18
|
+
export const srlOutput = join(root, '.output');
|
|
19
|
+
export const srlPublic = join(root, 'public');
|
|
20
|
+
export const srlSrc = join(root, 'src');
|
|
21
|
+
export const srlAssets = join(srlSrc, 'assets');
|
|
22
|
+
export const srlEntries = join(srlSrc, 'entries');
|
|
23
|
+
export const ld = join(root, 'livingdocs');
|
|
24
|
+
|
|
25
|
+
export default {
|
|
26
|
+
root,
|
|
27
|
+
packageName,
|
|
28
|
+
packagePath,
|
|
29
|
+
packageSrl,
|
|
30
|
+
packageLd,
|
|
31
|
+
srlRoot,
|
|
32
|
+
srlSystem,
|
|
33
|
+
srlComponents,
|
|
34
|
+
srlComposables,
|
|
35
|
+
srlUtils,
|
|
36
|
+
srlPlugins,
|
|
37
|
+
srlScss,
|
|
38
|
+
srlImports,
|
|
39
|
+
srlTypes,
|
|
40
|
+
srlOutput,
|
|
41
|
+
srlPublic,
|
|
42
|
+
srlSrc,
|
|
43
|
+
srlAssets,
|
|
44
|
+
srlEntries,
|
|
45
|
+
ld,
|
|
46
|
+
};
|
package/scripts/init.js
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { dirname, join } from 'node:path';
|
|
2
2
|
import fs from 'fs-extra';
|
|
3
|
-
import { statSync, readFileSync, writeFileSync } from 'node:fs';
|
|
3
|
+
import { statSync, readFileSync, writeFileSync, cpSync } from 'node:fs';
|
|
4
4
|
import { fileURLToPath } from 'node:url';
|
|
5
5
|
import { createRequire } from 'node:module';
|
|
6
|
-
import
|
|
6
|
+
import { baseComponentsToInstall } from './config.js';
|
|
7
7
|
|
|
8
8
|
const require = createRequire(import.meta.url);
|
|
9
9
|
|
|
10
|
+
const { Input } = require('enquirer');
|
|
11
|
+
|
|
10
12
|
const __filename = fileURLToPath(import.meta.url);
|
|
11
13
|
const __dirname = dirname(__filename);
|
|
14
|
+
|
|
12
15
|
/**
|
|
13
16
|
* Initializes a new project in the given folder with the provided options.
|
|
14
17
|
*
|
|
@@ -18,22 +21,39 @@ const __dirname = dirname(__filename);
|
|
|
18
21
|
* @return {Promise<void>} - A promise that resolves when the project initialization is complete.
|
|
19
22
|
*/
|
|
20
23
|
async function init(folder, options) {
|
|
21
|
-
const
|
|
24
|
+
const prompt = new Input({
|
|
25
|
+
message: 'Project name',
|
|
26
|
+
initial: folder,
|
|
27
|
+
});
|
|
28
|
+
let projectName = await prompt.run();
|
|
29
|
+
if (projectName === '') {
|
|
30
|
+
projectName = folder;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const projectPath = join(process.cwd(), folder);
|
|
22
34
|
|
|
23
35
|
try {
|
|
24
36
|
const stat = statSync(projectPath);
|
|
25
37
|
console.error(`Folder ${projectPath} already exist!`);
|
|
26
38
|
} catch (e) {
|
|
27
|
-
await fs.copy(
|
|
28
|
-
const packageJsonFile =
|
|
39
|
+
await fs.copy(join(__dirname, '..', 'dev'), projectPath).then(async () => {
|
|
40
|
+
const packageJsonFile = join(projectPath, 'package.json');
|
|
29
41
|
const packageJson = JSON.parse(await readFileSync(packageJsonFile));
|
|
30
|
-
packageJson.name =
|
|
42
|
+
packageJson.name = projectName;
|
|
31
43
|
const writeJson = require('write-json');
|
|
32
44
|
writeJson.sync(packageJsonFile, packageJson);
|
|
33
45
|
|
|
46
|
+
baseComponentsToInstall.forEach((component) => {
|
|
47
|
+
cpSync(
|
|
48
|
+
join(__dirname, '..', 'livingdocs', ...component.split('/')),
|
|
49
|
+
join(projectPath, 'livingdocs', ...component.split('/')),
|
|
50
|
+
{ recursive: true, force: true },
|
|
51
|
+
);
|
|
52
|
+
});
|
|
53
|
+
|
|
34
54
|
await writeFileSync(
|
|
35
55
|
`${projectPath}/.gitignore`,
|
|
36
|
-
`/.output/\n/.
|
|
56
|
+
`/.output/\n/.srl/\n/node_modules/\n/public/downloads/\n/public/html/\n/public/images/\n/public/json/\n/public/exclude/\n/dev-dist/`,
|
|
37
57
|
);
|
|
38
58
|
console.log(`Project has created`);
|
|
39
59
|
console.log(`cd ${folder}`);
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export default LivingdocsDesignValidator;
|
|
2
|
+
export class LivingdocsDesignValidator {
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
constructor(lddDesign: any);
|
|
7
|
+
lddDesign: any;
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @returns {boolean} wether or not a design is valid
|
|
11
|
+
*/
|
|
12
|
+
IsDesignValid(): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Test if all component properties are declared
|
|
15
|
+
* @returns {boolean}
|
|
16
|
+
*/
|
|
17
|
+
usedPropertiesAreDeclared(): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Test if each components belong to at least one group
|
|
20
|
+
* @returns {boolean}
|
|
21
|
+
*/
|
|
22
|
+
everyComponentHasAGroup(): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Test if there are any duplicate component names
|
|
25
|
+
* @returns {boolean}
|
|
26
|
+
*/
|
|
27
|
+
hasNoDuplicateComponentNames(): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Test if there are any duplicate groups
|
|
30
|
+
* @returns {boolean}
|
|
31
|
+
*/
|
|
32
|
+
hasNoDuplicateGroupLabels(): boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Test if any component uses a declared property, log a warning if unused
|
|
35
|
+
* @returns {void}
|
|
36
|
+
*/
|
|
37
|
+
allComponentPropertiesAreUsed(): void;
|
|
38
|
+
/**
|
|
39
|
+
* Test if every doc-directive and json declaration exist
|
|
40
|
+
* common user failures are:
|
|
41
|
+
* - duplicate directive value
|
|
42
|
+
* - diplicate usage of doc-link
|
|
43
|
+
* - declared but not used directive value
|
|
44
|
+
* - allowedChildren component/s do not exist
|
|
45
|
+
* - defaultContent component does not exist
|
|
46
|
+
* @returns {boolean}
|
|
47
|
+
*/
|
|
48
|
+
everyDeclaredDirectiveExistsOnComponent(): boolean;
|
|
49
|
+
delcaredDirectivesExistsOnComponent(component: any): boolean;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @returns {boolean} true when parents exist
|
|
53
|
+
*/
|
|
54
|
+
everyAllowedParentExistsInDesign(): boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Test if referenced defaultContent and allowedChildren exist
|
|
57
|
+
* @param {object} directive
|
|
58
|
+
* @returns {boolean}
|
|
59
|
+
*/
|
|
60
|
+
_checkContainerDirective(directive: object): boolean;
|
|
61
|
+
}
|