@simple-reporting/base 0.1.111 → 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 +24 -25
- package/.nvmrc +1 -1
- package/README.md +23 -23
- package/cli.js +121 -114
- package/dev/.ddev/nginx_full/custom.conf +12 -12
- package/dev/index.html +18 -17
- package/dev/livingdocs.config.json +154 -376
- package/dev/package.json +64 -60
- package/dev/pdf/pdf-configuration-debug.xml +8 -5
- package/dev/pdf/pdf-configuration.xml +2 -2
- 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 +33 -44
- package/dev/src/Autoload.ts +6 -6
- 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/mms-logo-black.svg +91 -91
- package/dev/src/assets/images/mms-logo-white.svg +105 -105
- 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 +39 -39
- package/dev/src/assets/scss/{ldd.scss → editor.scss} +27 -27
- package/dev/src/assets/scss/general.scss +59 -17
- package/dev/src/assets/scss/pdf.scss +138 -2
- 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 +2 -2
- package/dev/src/components/BypassLinks.vue +90 -0
- package/dev/src/components/MainNavigation.vue +15 -209
- package/dev/src/components/NavLanguages.vue +57 -0
- package/dev/src/components/PageFooter.vue +45 -86
- package/dev/src/components/PageHeader.vue +41 -149
- package/dev/src/components/PageMain.vue +13 -0
- package/dev/src/components/PrevNext.vue +168 -144
- package/dev/src/components/SrlPage/KFCApplication/hooks/kfcData.ts +9 -9
- package/dev/src/components/SrlPage/KFCApplication/scss/_iz-keyfigure-comparison.scss +151 -151
- package/dev/src/components/SrlPage/KFCApplication/scss/_kfc-loading.scss +40 -40
- package/dev/src/components/SrlPage/KFCApplication/scss/_srl-button-kfc.scss +21 -21
- 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 +21 -51
- package/dev/src/i18n/translation.ts +85 -85
- package/dev/src/locales/de.json +9 -15
- package/dev/src/locales/en.json +9 -15
- package/dev/src/router/index.ts +44 -47
- package/dev/src/views/ArticleView.vue +12 -77
- package/dev/src/views/DevView.vue +861 -0
- package/dev/src/views/HomeView.vue +5 -35
- package/dev/src/views/PageNotFound.vue +77 -73
- package/dev/srl.config.json +754 -0
- package/dev/tsconfig.app.json +13 -16
- package/dev/tsconfig.node.json +20 -19
- package/dev/vite.config.ts +18 -27
- 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 +13 -24
- 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/{Text/quote → 020.Text/050.quote}/properties.json +7 -7
- 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 +20 -12
- 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/{PDF_only/pdf-toc-item → 110.PDF/100.pdf-toc-item}/properties.json +7 -7
- 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 +7 -12
- package/livingdocs/999.Properties/pdf-spacer/properties.json +43 -0
- package/livingdocs/999.Properties/width/properties.json +32 -0
- package/package.json +48 -50
- package/scripts/beaver.js +317 -316
- package/scripts/build.d.ts +4 -7
- package/scripts/build.js +837 -812
- package/scripts/components.js +564 -566
- package/scripts/config.d.ts +8 -0
- package/scripts/config.js +52 -1
- package/scripts/doPublish.js +55 -43
- package/scripts/folders.d.ts +43 -0
- package/scripts/folders.js +46 -0
- package/scripts/init.js +65 -45
- 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 +121 -88
- package/scripts/renamePackage.js +48 -48
- package/scripts/utils.d.ts +45 -30
- package/scripts/utils.js +163 -106
- 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/{scss → srl/scss}/colors/functions.scss +18 -18
- package/{scss/helpers → srl/scss/colors}/index.scss +3 -3
- package/{scss → srl/scss}/colors/mixins.scss +45 -45
- package/{scss → srl/scss}/colors/variables.scss +6 -6
- package/srl/scss/config.scss +7 -0
- package/{scss → srl/scss}/core-styles.scss +23 -22
- package/{scss → srl/scss}/fonts/functions.scss +21 -21
- package/{scss/colors → srl/scss/fonts}/index.scss +3 -3
- package/{scss → srl/scss}/fonts/mixins.scss +31 -31
- package/{scss → srl/scss}/fonts/variables.scss +8 -8
- package/{scss → srl/scss}/grid/functions.scss +49 -29
- package/{scss/fonts → srl/scss/grid}/index.scss +3 -3
- package/{scss → srl/scss}/grid/mixins.scss +246 -388
- package/{scss → srl/scss}/grid/variables.scss +11 -10
- package/srl/scss/helpers/functions.scss +0 -0
- package/{scss/grid → srl/scss/helpers}/index.scss +3 -3
- package/{scss → srl/scss}/helpers/mixins.scss +54 -87
- package/{scss → srl/scss}/helpers/variables.scss +7 -7
- package/{scss → srl/scss}/index.scss +8 -8
- package/{scss → srl/scss}/meta/functions.scss +64 -64
- package/srl/scss/meta/index.scss +3 -0
- package/{scss → srl/scss}/meta/mixins.scss +6 -6
- package/{scss → srl/scss}/meta/variables.scss +8 -8
- package/{scss → srl/scss}/spacer/functions.scss +9 -9
- package/srl/scss/spacer/index.scss +3 -0
- package/{scss → srl/scss}/spacer/mixins.scss +236 -236
- package/{scss → srl/scss}/spacer/variables.scss +6 -6
- package/{scss → srl/scss}/system/functions.scss +77 -77
- package/srl/scss/system/index.scss +3 -0
- package/{scss → srl/scss}/system/mixins.scss +27 -27
- package/{scss → srl/scss}/system/root.scss +39 -39
- package/{scss → srl/scss}/system/variables.scss +13 -13
- package/{scss → srl/scss}/typography/functions.scss +63 -63
- package/srl/scss/typography/index.scss +3 -0
- package/{scss → srl/scss}/typography/mixins.scss +302 -262
- package/{scss → srl/scss}/typography/variables.scss +11 -11
- package/srl/scss/xbrl-core-styles.scss +47 -0
- package/{dev/nswow → srl/srl}/ArticleAutoloader.ts +100 -100
- package/{dev/nswow → srl/srl}/ArticleLoader.ts +98 -91
- 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/{dev/nswow → srl/srl}/index.scss +9 -9
- 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/scss/meta/index.scss +0 -3
- package/scss/spacer/index.scss +0 -3
- package/scss/system/index.scss +0 -3
- package/scss/typography/index.scss +0 -3
- 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/scripts/build.js
CHANGED
|
@@ -1,812 +1,837 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
statSync,
|
|
4
|
-
writeFileSync,
|
|
5
|
-
readFileSync,
|
|
6
|
-
mkdirSync,
|
|
7
|
-
readdirSync,
|
|
8
|
-
createWriteStream,
|
|
9
|
-
rmSync,
|
|
10
|
-
cpSync,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
import { createRequire } from 'node:module';
|
|
14
|
-
import { glob } from 'glob';
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* @
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
await writeFileSync(`${outputPath}/app
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
* @returns {Promise<void>}
|
|
192
|
-
*/
|
|
193
|
-
async function
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
const
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
const
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
} catch (
|
|
489
|
-
console.error(
|
|
490
|
-
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
*
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
output.
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
await
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
const
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
const
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
const
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
1
|
+
import { join } from 'node:path/posix';
|
|
2
|
+
import {
|
|
3
|
+
statSync,
|
|
4
|
+
writeFileSync,
|
|
5
|
+
readFileSync,
|
|
6
|
+
mkdirSync,
|
|
7
|
+
readdirSync,
|
|
8
|
+
createWriteStream,
|
|
9
|
+
rmSync,
|
|
10
|
+
cpSync,
|
|
11
|
+
copyFileSync,
|
|
12
|
+
} from 'node:fs';
|
|
13
|
+
import { createRequire } from 'node:module';
|
|
14
|
+
import { glob } from 'glob';
|
|
15
|
+
import { build as viteBuild } from 'vite';
|
|
16
|
+
import {
|
|
17
|
+
readPackageJson,
|
|
18
|
+
writePackageJson,
|
|
19
|
+
readLivingDocsJson,
|
|
20
|
+
writeLivingDocsJson,
|
|
21
|
+
} from './utils.js';
|
|
22
|
+
import { nsWowInternalLddUrl } from './config.js';
|
|
23
|
+
import folders from './folders.js';
|
|
24
|
+
import { mapLdd } from './ldd/mapLdd.js';
|
|
25
|
+
import { LivingdocsDesignValidator } from './ldd/LivingdocsDesignValidator.js';
|
|
26
|
+
import { camelCase } from './utils.js';
|
|
27
|
+
|
|
28
|
+
const placeholderId = '6297EAFB-33A0-48B8-8D64-E61CDC3E9035';
|
|
29
|
+
const nswowPath = folders.srlImports;
|
|
30
|
+
const outputPath = folders.srlOutput;
|
|
31
|
+
const require = createRequire(import.meta.url);
|
|
32
|
+
|
|
33
|
+
const { Input } = require('enquirer');
|
|
34
|
+
|
|
35
|
+
let foldersChecked = false;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Checks if the required folders exist and creates them if necessary.
|
|
39
|
+
*
|
|
40
|
+
* @async
|
|
41
|
+
* @returns {Promise<boolean>} A promise that resolves to true once the folders are checked and created.
|
|
42
|
+
*/
|
|
43
|
+
async function checkFolders() {
|
|
44
|
+
if (!foldersChecked) {
|
|
45
|
+
foldersChecked = true;
|
|
46
|
+
try {
|
|
47
|
+
await statSync(nswowPath);
|
|
48
|
+
} catch (e) {
|
|
49
|
+
await mkdirSync(nswowPath);
|
|
50
|
+
}
|
|
51
|
+
try {
|
|
52
|
+
await statSync(outputPath);
|
|
53
|
+
} catch (e) {
|
|
54
|
+
await mkdirSync(outputPath);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Cleans the output directory by removing all files and folders.
|
|
62
|
+
*
|
|
63
|
+
* @returns {Promise<boolean>} A promise that resolves to a boolean indicating whether the cleanup was successful.
|
|
64
|
+
*/
|
|
65
|
+
async function cleanOutput() {
|
|
66
|
+
await checkFolders();
|
|
67
|
+
const output = readdirSync(outputPath);
|
|
68
|
+
for (let i = 0; i < output.length; i++) {
|
|
69
|
+
await rmSync(join(outputPath, output[i]), {
|
|
70
|
+
force: true,
|
|
71
|
+
recursive: true,
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Builds the application by performing the following steps:
|
|
79
|
+
*
|
|
80
|
+
* 1. Checks the folders.
|
|
81
|
+
* 2. Executes the viteBuild function.
|
|
82
|
+
*
|
|
83
|
+
* @returns {Promise<void>} A Promise that resolves when the application is built.
|
|
84
|
+
*/
|
|
85
|
+
async function buildApp() {
|
|
86
|
+
console.log("\n\nBuild application");
|
|
87
|
+
await checkFolders();
|
|
88
|
+
const build = await viteBuild({
|
|
89
|
+
build: {
|
|
90
|
+
copyPublicDir: false,
|
|
91
|
+
},
|
|
92
|
+
css: {
|
|
93
|
+
preprocessorOptions: {
|
|
94
|
+
scss: {
|
|
95
|
+
api: 'modern-compiler',
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
publicDir: false,
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
// Copy public folder exclude nswow folders
|
|
103
|
+
console.log(
|
|
104
|
+
'\n\nCopy public folder exclude nswow folders and exclude folder',
|
|
105
|
+
);
|
|
106
|
+
await cpSync(join(folders.srlPublic, '/'), join(outputPath, 'app'), {
|
|
107
|
+
filter: (src) => {
|
|
108
|
+
if (
|
|
109
|
+
src.startsWith(join(folders.srlPublic, 'downloads')) ||
|
|
110
|
+
src.startsWith(join(folders.srlPublic, 'html')) ||
|
|
111
|
+
src.startsWith(join(folders.srlPublic, 'images')) ||
|
|
112
|
+
src.startsWith(join(folders.srlPublic, 'json')) ||
|
|
113
|
+
src.startsWith(join(folders.srlPublic, 'exclude'))
|
|
114
|
+
) {
|
|
115
|
+
return false;
|
|
116
|
+
} else {
|
|
117
|
+
src === join(folders.srlPublic, '/') ||
|
|
118
|
+
console.log(`Copy ${src} to ${outputPath}/app`);
|
|
119
|
+
return true;
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
recursive: true,
|
|
123
|
+
});
|
|
124
|
+
console.log('\n');
|
|
125
|
+
|
|
126
|
+
let index = await readFileSync(
|
|
127
|
+
join(folders.srlOutput, 'app', 'index.html'),
|
|
128
|
+
'utf8',
|
|
129
|
+
);
|
|
130
|
+
|
|
131
|
+
console.log('Create file /template/article.html for nswow hybrid\n');
|
|
132
|
+
index = index.replace(
|
|
133
|
+
'<html>',
|
|
134
|
+
`<html lang="[[language-${placeholderId}]]">`,
|
|
135
|
+
);
|
|
136
|
+
index = index.replace(
|
|
137
|
+
/<base\s+href\s*=\s*(['"])(.*?)\1\s*\/?>/gi,
|
|
138
|
+
`<base href="[[base-${placeholderId}]]" />
|
|
139
|
+
[[meta-${placeholderId}]]`,
|
|
140
|
+
);
|
|
141
|
+
|
|
142
|
+
await writeFileSync(join(outputPath, 'app', 'index.html'), index);
|
|
143
|
+
|
|
144
|
+
index = index.replace(
|
|
145
|
+
/(<div\s+[^>]*id\s*=\s*["']app["'][^>]*>)([\s\S]*?)(<\/div>)/i,
|
|
146
|
+
`$1
|
|
147
|
+
<template>
|
|
148
|
+
[[content-${placeholderId}]]
|
|
149
|
+
</template>
|
|
150
|
+
$3`,
|
|
151
|
+
);
|
|
152
|
+
|
|
153
|
+
await mkdirSync(join(outputPath, 'app', 'template'), { recursive: true });
|
|
154
|
+
await writeFileSync(
|
|
155
|
+
join(outputPath, 'app', 'template', 'article.html'),
|
|
156
|
+
index,
|
|
157
|
+
);
|
|
158
|
+
/**
|
|
159
|
+
await writeFileSync(`${outputPath}/app/web.config`, `<?xml version="1.0" encoding="UTF-8"?>
|
|
160
|
+
<configuration>
|
|
161
|
+
<system.webServer>
|
|
162
|
+
<rewrite>
|
|
163
|
+
<rules>
|
|
164
|
+
<rule name="Rewrite to index.html" stopProcessing="true">
|
|
165
|
+
<match url=".*" />
|
|
166
|
+
<conditions logicalGrouping="MatchAll">
|
|
167
|
+
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
|
|
168
|
+
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
|
|
169
|
+
</conditions>
|
|
170
|
+
<action type="Rewrite" url="index.html" />
|
|
171
|
+
</rule>
|
|
172
|
+
</rules>
|
|
173
|
+
</rewrite>
|
|
174
|
+
</system.webServer>
|
|
175
|
+
</configuration>`);
|
|
176
|
+
await writeFileSync(`${outputPath}/app/.htaccess`, `RewriteEngine On
|
|
177
|
+
RewriteCond %{REQUEST_FILENAME} !-f
|
|
178
|
+
RewriteCond %{REQUEST_FILENAME} !-l
|
|
179
|
+
RewriteCond %{REQUEST_FILENAME} !-d
|
|
180
|
+
RewriteRule ^(.*)$ index.html [L]`);
|
|
181
|
+
/**/
|
|
182
|
+
return build;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Builds the application by performing the following steps:
|
|
187
|
+
*
|
|
188
|
+
* 1. Checks the folders.
|
|
189
|
+
* 2. Executes the viteBuild function.
|
|
190
|
+
*
|
|
191
|
+
* @returns {Promise<void>} A Promise that resolves when the application is built.
|
|
192
|
+
*/
|
|
193
|
+
async function buildDDev() {
|
|
194
|
+
console.log("\n\nBuild application for DDEV");
|
|
195
|
+
await checkFolders();
|
|
196
|
+
const build = await viteBuild({
|
|
197
|
+
build: {
|
|
198
|
+
outDir: './.output/ddev',
|
|
199
|
+
},
|
|
200
|
+
publicDir: true,
|
|
201
|
+
});
|
|
202
|
+
return build;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Compresses the 'app' folder into a zip file using archiver library.
|
|
207
|
+
*
|
|
208
|
+
* @async
|
|
209
|
+
* @function zipApp
|
|
210
|
+
* @returns {Promise<void>} - A Promise that resolves when the zip operation is complete, or rejects with an error.
|
|
211
|
+
*/
|
|
212
|
+
async function zipApp() {
|
|
213
|
+
console.log("\n\nCreate zip file for app");
|
|
214
|
+
await checkFolders();
|
|
215
|
+
const archiver = require('archiver');
|
|
216
|
+
const output = createWriteStream(join(outputPath, 'app.zip'));
|
|
217
|
+
const archive = archiver('zip', {
|
|
218
|
+
zlib: { level: 9 }, // Sets the compression level.
|
|
219
|
+
});
|
|
220
|
+
output.on('close', function () {
|
|
221
|
+
console.log('Create zip ' + outputPath + '/app.zip');
|
|
222
|
+
console.log(archive.pointer() + ' total bytes');
|
|
223
|
+
});
|
|
224
|
+
output.on('end', function () {
|
|
225
|
+
console.log('Data has been drained');
|
|
226
|
+
});
|
|
227
|
+
archive.on('warning', function (err) {
|
|
228
|
+
if (err.code === 'ENOENT') {
|
|
229
|
+
console.error(err);
|
|
230
|
+
} else {
|
|
231
|
+
// throw error
|
|
232
|
+
throw err;
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
archive.on('error', function (err) {
|
|
236
|
+
throw err;
|
|
237
|
+
});
|
|
238
|
+
archive.pipe(output);
|
|
239
|
+
archive.directory(join(outputPath, 'app', '/'), false);
|
|
240
|
+
archive.finalize();
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
async function zipLdd() {
|
|
244
|
+
console.log("\n\nCreate zip file for LDD");
|
|
245
|
+
await checkFolders();
|
|
246
|
+
const archiver = require('archiver');
|
|
247
|
+
const output = createWriteStream(join(outputPath, 'design.zip'));
|
|
248
|
+
const archive = archiver('zip', {
|
|
249
|
+
zlib: { level: 9 }, // Sets the compression level.
|
|
250
|
+
});
|
|
251
|
+
output.on('close', function () {
|
|
252
|
+
console.log('Create zip ' + outputPath + '/design.zip');
|
|
253
|
+
console.log(archive.pointer() + ' total bytes');
|
|
254
|
+
});
|
|
255
|
+
output.on('end', function () {
|
|
256
|
+
console.log('Data has been drained');
|
|
257
|
+
});
|
|
258
|
+
archive.on('warning', function (err) {
|
|
259
|
+
if (err.code === 'ENOENT') {
|
|
260
|
+
console.error(err);
|
|
261
|
+
} else {
|
|
262
|
+
// throw error
|
|
263
|
+
throw err;
|
|
264
|
+
}
|
|
265
|
+
});
|
|
266
|
+
archive.on('error', function (err) {
|
|
267
|
+
throw err;
|
|
268
|
+
});
|
|
269
|
+
archive.pipe(output);
|
|
270
|
+
archive.directory(join(outputPath, 'ldd', '/'), false);
|
|
271
|
+
archive.finalize();
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Builds a PDF using the provided HTML template.
|
|
276
|
+
*
|
|
277
|
+
* @returns {Promise<boolean>} - Returns a Promise that resolves to true if the PDF was successfully built,
|
|
278
|
+
* false otherwise.
|
|
279
|
+
*/
|
|
280
|
+
async function buildPdf() {
|
|
281
|
+
console.log("\n\nBuild PDF");
|
|
282
|
+
await checkFolders();
|
|
283
|
+
|
|
284
|
+
const config = {
|
|
285
|
+
css: {
|
|
286
|
+
preprocessorOptions: {
|
|
287
|
+
scss: {
|
|
288
|
+
api: 'modern-compiler',
|
|
289
|
+
},
|
|
290
|
+
},
|
|
291
|
+
},
|
|
292
|
+
base: './',
|
|
293
|
+
build: {
|
|
294
|
+
outDir: join(folders.srlOutput, 'pdf'),
|
|
295
|
+
lib: {
|
|
296
|
+
fileName: 'pdf',
|
|
297
|
+
entry: join(folders.srlEntries, 'pdf.ts'),
|
|
298
|
+
formats: ['es'],
|
|
299
|
+
},
|
|
300
|
+
},
|
|
301
|
+
publicDir: false,
|
|
302
|
+
};
|
|
303
|
+
|
|
304
|
+
try {
|
|
305
|
+
return await viteBuild(config);
|
|
306
|
+
} catch (e) {
|
|
307
|
+
console.error(e);
|
|
308
|
+
return false;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
async function buildXbrl() {
|
|
313
|
+
console.log("\n\nBuild XBRL");
|
|
314
|
+
await checkFolders();
|
|
315
|
+
|
|
316
|
+
const config = {
|
|
317
|
+
css: {
|
|
318
|
+
preprocessorOptions: {
|
|
319
|
+
scss: {
|
|
320
|
+
api: 'modern-compiler',
|
|
321
|
+
},
|
|
322
|
+
},
|
|
323
|
+
},
|
|
324
|
+
base: './',
|
|
325
|
+
build: {
|
|
326
|
+
outDir: join(folders.srlOutput, 'xbrl'),
|
|
327
|
+
lib: {
|
|
328
|
+
fileName: 'xbrl',
|
|
329
|
+
entry: join(folders.srlImports, 'xbrl.scss'),
|
|
330
|
+
formats: ['es'],
|
|
331
|
+
},
|
|
332
|
+
},
|
|
333
|
+
publicDir: false,
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
try {
|
|
337
|
+
return await viteBuild(config);
|
|
338
|
+
} catch (e) {
|
|
339
|
+
console.error(e);
|
|
340
|
+
return false;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Builds Living Documentation (LDD) for a project.
|
|
346
|
+
*
|
|
347
|
+
* @async
|
|
348
|
+
* @param {string} version - The version number to update in the project's package.json file. (optional)
|
|
349
|
+
* @returns {Promise<boolean>} - A Promise that resolves to true if the LDD build is successful, false otherwise.
|
|
350
|
+
*/
|
|
351
|
+
async function buildLdd(version) {
|
|
352
|
+
console.log("\n\nBuild Livingdocs");
|
|
353
|
+
await checkFolders();
|
|
354
|
+
await mapLdd();
|
|
355
|
+
|
|
356
|
+
const packageJson = await readPackageJson();
|
|
357
|
+
const lddJson = await readLivingDocsJson();
|
|
358
|
+
|
|
359
|
+
if (version) {
|
|
360
|
+
packageJson.version = version;
|
|
361
|
+
await writePackageJson();
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
lddJson.name = packageJson.name;
|
|
365
|
+
lddJson.version = packageJson.version;
|
|
366
|
+
|
|
367
|
+
const config = {
|
|
368
|
+
css: {
|
|
369
|
+
preprocessorOptions: {
|
|
370
|
+
scss: {
|
|
371
|
+
api: 'modern-compiler',
|
|
372
|
+
},
|
|
373
|
+
},
|
|
374
|
+
},
|
|
375
|
+
base: './',
|
|
376
|
+
build: {
|
|
377
|
+
outDir: join(folders.srlOutput, 'ldd', 'assets'),
|
|
378
|
+
lib: {
|
|
379
|
+
fileName: 'ldd',
|
|
380
|
+
entry: join(folders.srlImports, 'ldd.scss'),
|
|
381
|
+
formats: ['es'],
|
|
382
|
+
},
|
|
383
|
+
},
|
|
384
|
+
publicDir: false,
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
await writeFileSync(join(outputPath, `v${lddJson.version}.txt`), '');
|
|
388
|
+
|
|
389
|
+
try {
|
|
390
|
+
return await viteBuild(config)
|
|
391
|
+
.then(async () => {
|
|
392
|
+
const assetsPath = join(outputPath, 'ldd', 'assets');
|
|
393
|
+
const assetsFiles = await readdirSync(assetsPath);
|
|
394
|
+
lddJson.assets.css = [];
|
|
395
|
+
lddJson.assets.js = [];
|
|
396
|
+
for (let i = 0; i < assetsFiles.length; i++) {
|
|
397
|
+
const file = assetsFiles[i];
|
|
398
|
+
if (file.endsWith('.css')) {
|
|
399
|
+
const path = join('./assets/' + file);
|
|
400
|
+
if (!lddJson.assets.css.includes(path)) {
|
|
401
|
+
lddJson.assets.css.push(path);
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
if (file.endsWith('.js')) {
|
|
405
|
+
const path = join('./assets/' + file);
|
|
406
|
+
if (!lddJson.assets.js.includes(path)) {
|
|
407
|
+
lddJson.assets.js.push(path);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
const fontFiles = await glob(join(folders.srlAssets, 'fonts', '**', '*.scss'), {
|
|
413
|
+
withFileTypes: true,
|
|
414
|
+
});
|
|
415
|
+
|
|
416
|
+
if (fontFiles.length) {
|
|
417
|
+
console.log("\n\nBuild Livingdocs fonts");
|
|
418
|
+
|
|
419
|
+
const importPath = join(folders.srlImports, 'fonts');
|
|
420
|
+
try {
|
|
421
|
+
await statSync(importPath);
|
|
422
|
+
} catch (e) {
|
|
423
|
+
await mkdirSync(importPath, { recursive: true });
|
|
424
|
+
}
|
|
425
|
+
const importFile = join(importPath, 'style.scss');
|
|
426
|
+
|
|
427
|
+
const importFonts = [];
|
|
428
|
+
fontFiles.forEach( f => {
|
|
429
|
+
importFonts.push(`../../../${f.relativePosix()}`);
|
|
430
|
+
})
|
|
431
|
+
await writeFileSync(importFile, `@use "` + importFonts.join('" as *;\n@use "') + `" as *;\n`)
|
|
432
|
+
|
|
433
|
+
await viteBuild({
|
|
434
|
+
css: {
|
|
435
|
+
preprocessorOptions: {
|
|
436
|
+
scss: {
|
|
437
|
+
api: 'modern-compiler',
|
|
438
|
+
},
|
|
439
|
+
},
|
|
440
|
+
},
|
|
441
|
+
base: './',
|
|
442
|
+
build: {
|
|
443
|
+
outDir: join(folders.srlOutput, 'ldd', 'fonts'),
|
|
444
|
+
assetsInlineLimit: 0,
|
|
445
|
+
assetsDir: '',
|
|
446
|
+
rollupOptions: {
|
|
447
|
+
input: importFile,
|
|
448
|
+
output: {
|
|
449
|
+
assetFileNames: (assetInfo) => {
|
|
450
|
+
if (/woff|woff2|ttf|otf|svg|jpe?g|png|gif|webp|avif|bmp|ico|apng/.test(assetInfo.name)) {
|
|
451
|
+
return '[name]-[hash][extname]';
|
|
452
|
+
}
|
|
453
|
+
return '[name][extname]';
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
resolve: {
|
|
459
|
+
alias: {
|
|
460
|
+
'~': folders.root,
|
|
461
|
+
'@': folders.srlSrc,
|
|
462
|
+
'#components': folders.srlComponents,
|
|
463
|
+
'#composables': folders.srlComposables,
|
|
464
|
+
'#plugins': folders.srlPlugins,
|
|
465
|
+
'#types': folders.srlTypes,
|
|
466
|
+
'#utils': folders.srlUtils,
|
|
467
|
+
'#imports': folders.srlImports,
|
|
468
|
+
'#ldd': folders.packageLd,
|
|
469
|
+
'assets': folders.srlAssets,
|
|
470
|
+
'srl': folders.srlSystem,
|
|
471
|
+
},
|
|
472
|
+
},
|
|
473
|
+
publicDir: false,
|
|
474
|
+
})
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
console.log("\n\nBuild Livingdocs design.json");
|
|
478
|
+
await writeLivingDocsJson();
|
|
479
|
+
|
|
480
|
+
return true;
|
|
481
|
+
})
|
|
482
|
+
.then(async () => {
|
|
483
|
+
copyFileSync(
|
|
484
|
+
join(folders.root, 'livingdocs.config.json'),
|
|
485
|
+
join(folders.srlOutput, 'ldd', 'design.json'),
|
|
486
|
+
);
|
|
487
|
+
});
|
|
488
|
+
} catch (e) {
|
|
489
|
+
console.error(e);
|
|
490
|
+
return false;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* Builds the word document by compiling the HTML file using Vite and
|
|
496
|
+
* returns the result.
|
|
497
|
+
*
|
|
498
|
+
* @returns {Promise<boolean>} - A promise that resolves to true if the word document is successfully built,
|
|
499
|
+
* or false if there was an error during the build process.
|
|
500
|
+
*/
|
|
501
|
+
async function buildWord() {
|
|
502
|
+
console.log("\n\nBuild Word");
|
|
503
|
+
await checkFolders();
|
|
504
|
+
let configFile = false;
|
|
505
|
+
|
|
506
|
+
const config = {
|
|
507
|
+
css: {
|
|
508
|
+
preprocessorOptions: {
|
|
509
|
+
scss: {
|
|
510
|
+
api: 'modern-compiler',
|
|
511
|
+
},
|
|
512
|
+
},
|
|
513
|
+
},
|
|
514
|
+
base: './',
|
|
515
|
+
build: {
|
|
516
|
+
outDir: join(folders.srlOutput, 'word'),
|
|
517
|
+
lib: {
|
|
518
|
+
fileName: 'word',
|
|
519
|
+
entry: join(folders.srlImports, 'word.scss'),
|
|
520
|
+
formats: ['es'],
|
|
521
|
+
},
|
|
522
|
+
},
|
|
523
|
+
publicDir: false,
|
|
524
|
+
};
|
|
525
|
+
|
|
526
|
+
try {
|
|
527
|
+
return await viteBuild(config);
|
|
528
|
+
} catch (e) {
|
|
529
|
+
console.error(e);
|
|
530
|
+
return false;
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* Builds the project sequentially by executing a series of asynchronous tasks in a specific order.
|
|
536
|
+
* This method is used to build the project in a predetermined sequence.
|
|
537
|
+
*
|
|
538
|
+
* @param {string} version
|
|
539
|
+
* @return {Promise<void>} A Promise that resolves when the build process is completed or rejects if an error occurs.
|
|
540
|
+
*/
|
|
541
|
+
async function build(version) {
|
|
542
|
+
try {
|
|
543
|
+
await checkFolders();
|
|
544
|
+
const packageJson = await readPackageJson();
|
|
545
|
+
|
|
546
|
+
if (!version) {
|
|
547
|
+
const prompt = new Input({
|
|
548
|
+
message: 'Livingdocs version',
|
|
549
|
+
initial: packageJson.version,
|
|
550
|
+
});
|
|
551
|
+
version = await prompt.run();
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
packageJson.version = version;
|
|
555
|
+
await writePackageJson();
|
|
556
|
+
|
|
557
|
+
await cleanOutput();
|
|
558
|
+
await buildApp();
|
|
559
|
+
await buildPdf();
|
|
560
|
+
await buildWord();
|
|
561
|
+
await buildXbrl();
|
|
562
|
+
await buildLdd();
|
|
563
|
+
new LivingdocsDesignValidator(await readLivingDocsJson()).IsDesignValid();
|
|
564
|
+
await zipApp();
|
|
565
|
+
await zipLdd();
|
|
566
|
+
} catch (error) {
|
|
567
|
+
console.log(error);
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Builds the project sequentially by executing a series of asynchronous tasks in a specific order.
|
|
573
|
+
* This method is used to build the project in a predetermined sequence.
|
|
574
|
+
*
|
|
575
|
+
* @return {Promise<void>} A Promise that resolves when the build process is completed or rejects if an error occurs.
|
|
576
|
+
*/
|
|
577
|
+
async function ddev() {
|
|
578
|
+
try {
|
|
579
|
+
await checkFolders();
|
|
580
|
+
await buildDDev();
|
|
581
|
+
} catch (error) {
|
|
582
|
+
console.error(error);
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* Cleans up the SCSS alias by removing any characters that are not alphanumeric.
|
|
588
|
+
* @param string
|
|
589
|
+
*/
|
|
590
|
+
function cleanupScssAlias(string) {
|
|
591
|
+
return string.replace(/[^a-zA-Z0-9]/g, '');
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* Maps SCSS files and generates import statements for different output files.
|
|
596
|
+
*
|
|
597
|
+
* @returns {Promise<boolean>} Returns a promise that resolves to true if the SCSS mapping is successful, and false if there's an error.
|
|
598
|
+
*/
|
|
599
|
+
async function mapScss() {
|
|
600
|
+
await checkFolders();
|
|
601
|
+
try {
|
|
602
|
+
const packageJson = await readPackageJson();
|
|
603
|
+
|
|
604
|
+
const relativePathToRoot = join('..', '..', '/');
|
|
605
|
+
|
|
606
|
+
const output = {
|
|
607
|
+
app: [],
|
|
608
|
+
ldd: [],
|
|
609
|
+
pdf: [],
|
|
610
|
+
word: [],
|
|
611
|
+
xbrl: [],
|
|
612
|
+
};
|
|
613
|
+
|
|
614
|
+
const fontFiles = await glob(join(folders.srlAssets, 'fonts', '**', '*.scss'), {
|
|
615
|
+
withFileTypes: true,
|
|
616
|
+
});
|
|
617
|
+
|
|
618
|
+
const fontsOutput = []
|
|
619
|
+
|
|
620
|
+
if (fontFiles.length) {
|
|
621
|
+
fontsOutput.push(`@import "${nsWowInternalLddUrl}/${packageJson.name}/${packageJson.version}/fonts/style.css";`);
|
|
622
|
+
fontFiles.forEach(f => {
|
|
623
|
+
output.app.push(`"${relativePathToRoot}${f.relativePosix()}" as *`);
|
|
624
|
+
output.xbrl.push(`"${relativePathToRoot}${f.relativePosix()}" as *`);
|
|
625
|
+
})
|
|
626
|
+
output.ldd.push(`"./fonts.scss" as *`);
|
|
627
|
+
output.pdf.push(`"./fonts.scss" as *`);
|
|
628
|
+
output.word.push(`"./fonts.scss" as *`);
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
await writeFileSync(join(folders.srlImports, 'fonts.scss'), fontsOutput.join('\n'));
|
|
632
|
+
|
|
633
|
+
const mainFiles = await glob(join(folders.srlAssets, 'scss', '*.scss'), {
|
|
634
|
+
withFileTypes: true,
|
|
635
|
+
});
|
|
636
|
+
|
|
637
|
+
let f = mainFiles.find((p) => {
|
|
638
|
+
return p.name === 'general.scss';
|
|
639
|
+
});
|
|
640
|
+
|
|
641
|
+
if (f) {
|
|
642
|
+
output.app.push(`"${relativePathToRoot}${f.relativePosix()}" as *`);
|
|
643
|
+
output.ldd.push(`"${relativePathToRoot}${f.relativePosix()}" as *`);
|
|
644
|
+
output.pdf.push(`"${relativePathToRoot}${f.relativePosix()}" as *`);
|
|
645
|
+
output.word.push(`"${relativePathToRoot}${f.relativePosix()}" as *`);
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
for (let x = 0; x < mainFiles.length; x++) {
|
|
649
|
+
const alias = cleanupScssAlias(mainFiles[x].relativePosix());
|
|
650
|
+
if (mainFiles[x].name === 'app.scss') {
|
|
651
|
+
output.app.push(
|
|
652
|
+
`"${relativePathToRoot}${mainFiles[x].relativePosix()}" as *`,
|
|
653
|
+
);
|
|
654
|
+
}
|
|
655
|
+
if (mainFiles[x].name === 'ldd.scss') {
|
|
656
|
+
output.ldd.push(
|
|
657
|
+
`"${relativePathToRoot}${mainFiles[x].relativePosix()}" as *`,
|
|
658
|
+
);
|
|
659
|
+
}
|
|
660
|
+
if (mainFiles[x].name === 'editor.scss') {
|
|
661
|
+
output.ldd.push(
|
|
662
|
+
`"${relativePathToRoot}${mainFiles[x].relativePosix()}" as *`,
|
|
663
|
+
);
|
|
664
|
+
}
|
|
665
|
+
if (mainFiles[x].name === 'pdf.scss') {
|
|
666
|
+
output.pdf.push(
|
|
667
|
+
`"${relativePathToRoot}${mainFiles[x].relativePosix()}" as *`,
|
|
668
|
+
);
|
|
669
|
+
}
|
|
670
|
+
if (mainFiles[x].name === 'word.scss') {
|
|
671
|
+
output.word.push(
|
|
672
|
+
`"${relativePathToRoot}${mainFiles[x].relativePosix()}" as *`,
|
|
673
|
+
);
|
|
674
|
+
}
|
|
675
|
+
if (mainFiles[x].name === 'xbrl.scss') {
|
|
676
|
+
output.xbrl.push(
|
|
677
|
+
`"${relativePathToRoot}${mainFiles[x].relativePosix()}" as *`,
|
|
678
|
+
);
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
const livingdocs = await glob(join(folders.ld, '**', '*'), {
|
|
683
|
+
maxDepth: 3,
|
|
684
|
+
withFileTypes: true,
|
|
685
|
+
});
|
|
686
|
+
livingdocs.sort((a, b) => {
|
|
687
|
+
const valueA = a.relativePosix().toUpperCase();
|
|
688
|
+
const valueB = b.relativePosix().toUpperCase();
|
|
689
|
+
if (valueA < valueB) {
|
|
690
|
+
return -1;
|
|
691
|
+
}
|
|
692
|
+
if (valueA > valueB) {
|
|
693
|
+
return 1;
|
|
694
|
+
}
|
|
695
|
+
return 0;
|
|
696
|
+
});
|
|
697
|
+
|
|
698
|
+
const components = livingdocs.filter((p) => {
|
|
699
|
+
return p.name !== 'Properties' && p.parent.name !== 'Properties';
|
|
700
|
+
});
|
|
701
|
+
|
|
702
|
+
const properties = livingdocs.filter((p) => {
|
|
703
|
+
return p.name === 'Properties' || p.parent.name === 'Properties';
|
|
704
|
+
});
|
|
705
|
+
|
|
706
|
+
const livingdocsList = [...components, ...properties];
|
|
707
|
+
|
|
708
|
+
for (let x = 0; x < livingdocsList.length; x++) {
|
|
709
|
+
const p = livingdocsList[x];
|
|
710
|
+
try {
|
|
711
|
+
const general = await statSync(
|
|
712
|
+
join(p.fullpath(), 'scss', 'general.scss'),
|
|
713
|
+
);
|
|
714
|
+
output.app.push(
|
|
715
|
+
`"${relativePathToRoot}${p.relativePosix()}/scss/general.scss" as *`,
|
|
716
|
+
);
|
|
717
|
+
output.ldd.push(
|
|
718
|
+
`"${relativePathToRoot}${p.relativePosix()}/scss/general.scss" as *`,
|
|
719
|
+
);
|
|
720
|
+
output.pdf.push(
|
|
721
|
+
`"${relativePathToRoot}${p.relativePosix()}/scss/general.scss" as *`,
|
|
722
|
+
);
|
|
723
|
+
output.word.push(
|
|
724
|
+
`"${relativePathToRoot}${p.relativePosix()}/scss/general.scss" as *`,
|
|
725
|
+
);
|
|
726
|
+
} catch (e) {}
|
|
727
|
+
|
|
728
|
+
const types = ['app', 'ldd', 'editor', 'pdf', 'word', 'xbrl'];
|
|
729
|
+
|
|
730
|
+
for (let i = 0; i < types.length; i++) {
|
|
731
|
+
const type = types[i];
|
|
732
|
+
try {
|
|
733
|
+
const f = await statSync(join(p.fullpath(), 'scss', `${type}.scss`));
|
|
734
|
+
const alias = cleanupScssAlias(`${p.relativePosix()}/${type}.scss`);
|
|
735
|
+
const fileName = type === 'editor' ? 'ldd' : type;
|
|
736
|
+
output[fileName].push(
|
|
737
|
+
`"${relativePathToRoot}${p.relativePosix()}/scss/${type}.scss" as *`,
|
|
738
|
+
);
|
|
739
|
+
} catch (e) {}
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
await writeFileSync(
|
|
744
|
+
join(folders.srlImports, 'app.scss'),
|
|
745
|
+
`@use ` +
|
|
746
|
+
output.app.join(';\n@use ') +
|
|
747
|
+
`;\n@use "../scss/core-styles.scss" as *;\n`,
|
|
748
|
+
);
|
|
749
|
+
await writeFileSync(
|
|
750
|
+
join(folders.srlImports, 'ldd.scss'),
|
|
751
|
+
`@use ` +
|
|
752
|
+
output.ldd.join(';\n@use ') +
|
|
753
|
+
`;\n@use "../scss/core-styles.scss" as *;\n`,
|
|
754
|
+
);
|
|
755
|
+
await writeFileSync(
|
|
756
|
+
join(folders.srlImports, 'pdf.scss'),
|
|
757
|
+
`@use ` +
|
|
758
|
+
output.pdf.join(';\n@use ') +
|
|
759
|
+
`;\n@use "../scss/core-styles.scss" as *;\n`,
|
|
760
|
+
);
|
|
761
|
+
await writeFileSync(
|
|
762
|
+
join(folders.srlImports, 'word.scss'),
|
|
763
|
+
`@use ` +
|
|
764
|
+
output.word.join(';\n@use ') +
|
|
765
|
+
`;\n@use "../scss/core-styles.scss" as *;\n`,
|
|
766
|
+
);
|
|
767
|
+
|
|
768
|
+
await writeFileSync(
|
|
769
|
+
join(folders.srlImports, 'xbrl.scss'),
|
|
770
|
+
output.xbrl.length
|
|
771
|
+
? `@use ` + output.xbrl.join(';\n@use ')
|
|
772
|
+
: '' + `;\n@use "../scss/xbrl-core-styles.scss" as *;\n`,
|
|
773
|
+
);
|
|
774
|
+
|
|
775
|
+
return true;
|
|
776
|
+
} catch (e) {
|
|
777
|
+
console.log(e);
|
|
778
|
+
return false;
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
/**
|
|
783
|
+
* This function asynchronously maps JavaScript files and imports them into specific files.
|
|
784
|
+
* @returns {Promise<boolean>} - A promise that resolves to true if the mapping and importing is successful.
|
|
785
|
+
*/
|
|
786
|
+
async function mapJs() {
|
|
787
|
+
const jsFiles = await glob(join(folders.ld, '**', 'app.[t,j]s'), {
|
|
788
|
+
withFileTypes: true,
|
|
789
|
+
});
|
|
790
|
+
|
|
791
|
+
const imports = [];
|
|
792
|
+
const register = [];
|
|
793
|
+
|
|
794
|
+
for (let i = 0; i < jsFiles.length; i++) {
|
|
795
|
+
const file = jsFiles[i];
|
|
796
|
+
const className = camelCase(file.parent.name);
|
|
797
|
+
const path = [file.name];
|
|
798
|
+
let parent = file.parent;
|
|
799
|
+
while (parent) {
|
|
800
|
+
path.unshift(parent.name);
|
|
801
|
+
if (parent.name !== 'livingdocs') {
|
|
802
|
+
parent = parent.parent;
|
|
803
|
+
} else {
|
|
804
|
+
parent = false;
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
imports.push(`import ${className} from "../${path.join(file.sep)}"`);
|
|
808
|
+
register.push(`ClassAutoLoader.register(${className}, "${className}")`);
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
const content = `import ArticleAutoloader from 'srl/ArticleAutoloader'
|
|
812
|
+
${imports.join('\n')}
|
|
813
|
+
const ClassAutoLoader = new ArticleAutoloader()
|
|
814
|
+
${register.join('\n')}
|
|
815
|
+
export default ClassAutoLoader
|
|
816
|
+
export { ClassAutoLoader }`;
|
|
817
|
+
|
|
818
|
+
await writeFileSync(join(folders.srlSrc, 'Autoload.ts'), content);
|
|
819
|
+
return true;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
/**
|
|
823
|
+
* Maps the SCSS files and the LDD files in the project.
|
|
824
|
+
*
|
|
825
|
+
* @async
|
|
826
|
+
* @function map
|
|
827
|
+
* @returns {Promise<boolean>} A promise that resolves after successfully mapping the files.
|
|
828
|
+
* @throws {Error} If there is an error during the mapping process.
|
|
829
|
+
*/
|
|
830
|
+
async function map() {
|
|
831
|
+
await checkFolders();
|
|
832
|
+
await mapScss();
|
|
833
|
+
await mapLdd();
|
|
834
|
+
return true;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
export { build, ddev, map, mapScss, mapLdd, mapJs };
|