@simple-reporting/base 0.1.112 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (763) hide show
  1. package/.github/workflows/npm-publish.yml +0 -1
  2. package/cli.js +9 -2
  3. package/dev/index.html +3 -2
  4. package/dev/livingdocs.config.json +6 -228
  5. package/dev/package.json +24 -21
  6. package/dev/pdf/pdf-configuration-debug.xml +3 -0
  7. package/dev/public/downloads/downloads_de.json +1 -0
  8. package/dev/public/downloads/downloads_en.json +1 -0
  9. package/dev/public/favicon.png +0 -0
  10. package/dev/public/html/de/Downloads.html +3 -0
  11. package/dev/public/html/de/Home.html +3 -0
  12. package/dev/public/html/de/Suche.html +3 -0
  13. package/dev/public/html/en/Downloads.html +3 -0
  14. package/dev/public/html/en/Home.html +3 -0
  15. package/dev/public/html/en/Suche.html +3 -0
  16. package/dev/public/json/routing_de.json +86 -0
  17. package/dev/public/json/routing_en.json +86 -0
  18. package/dev/public/json/settings.json +8 -0
  19. package/dev/public/json/translations_hosting.json +1 -0
  20. package/dev/src/App.vue +23 -34
  21. package/dev/src/Autoload.ts +1 -1
  22. package/dev/src/Dialog.vue +99 -0
  23. package/dev/src/assets/fonts/Inter/Inter-Regular.ttf +0 -0
  24. package/dev/src/assets/fonts/Inter/Inter-Regular.woff2 +0 -0
  25. package/dev/src/assets/fonts/Inter/Inter-SemiBold.ttf +0 -0
  26. package/dev/src/assets/fonts/Inter/Inter-SemiBold.woff2 +0 -0
  27. package/dev/src/assets/fonts/Inter/inter.scss +17 -0
  28. package/dev/src/assets/images/next.svg +12 -0
  29. package/dev/src/assets/images/prev.svg +12 -0
  30. package/dev/src/assets/images/toTop.svg +12 -0
  31. package/dev/src/assets/scss/app.scss +1 -1
  32. package/dev/src/assets/scss/{ldd.scss → editor.scss} +6 -6
  33. package/dev/src/assets/scss/general.scss +53 -11
  34. package/dev/src/assets/scss/pdf.scss +137 -1
  35. package/dev/src/assets/scss/placeholders.scss +226 -0
  36. package/dev/src/assets/scss/print.scss +1 -1
  37. package/dev/src/assets/scss/web.scss +32 -1
  38. package/dev/src/assets/scss/word.scss +1 -1
  39. package/dev/src/components/BypassLinks.vue +90 -0
  40. package/dev/src/components/MainNavigation.vue +6 -200
  41. package/dev/src/components/NavLanguages.vue +57 -0
  42. package/dev/src/components/PageFooter.vue +11 -52
  43. package/dev/src/components/PageHeader.vue +27 -135
  44. package/dev/src/components/PageMain.vue +13 -0
  45. package/dev/src/components/PrevNext.vue +130 -106
  46. package/dev/src/components/SrlPage/KFCApplication/hooks/kfcData.ts +2 -2
  47. package/dev/src/components/SrlPage/KFCApplication/scss/_iz-keyfigure-comparison.scss +21 -21
  48. package/dev/src/components/SrlPage/KFCApplication/scss/_kfc-loading.scss +3 -3
  49. package/dev/src/components/SrlPage/KFCApplication/scss/_srl-button-kfc.scss +2 -2
  50. package/dev/src/components/Svg/Close.vue +14 -0
  51. package/dev/src/entries/main.ts +4 -0
  52. package/dev/src/entries/pdf.ts +2 -0
  53. package/dev/src/i18n/index.ts +12 -42
  54. package/dev/src/i18n/translation.ts +6 -6
  55. package/dev/src/locales/de.json +7 -13
  56. package/dev/src/locales/en.json +7 -13
  57. package/dev/src/router/index.ts +30 -33
  58. package/dev/src/views/ArticleView.vue +6 -71
  59. package/dev/src/views/DevView.vue +861 -0
  60. package/dev/src/views/HomeView.vue +2 -32
  61. package/dev/src/views/PageNotFound.vue +8 -4
  62. package/dev/srl.config.json +754 -0
  63. package/dev/tsconfig.app.json +1 -4
  64. package/dev/tsconfig.node.json +1 -0
  65. package/dev/vite.config.ts +4 -13
  66. package/initTestProject.js +91 -0
  67. package/jest.config.mjs +200 -0
  68. package/livingdocs/010.Titles/010.title-h1/ld-conf.json +5 -0
  69. package/livingdocs/010.Titles/010.title-h1/scss/app.scss +1 -0
  70. package/livingdocs/010.Titles/010.title-h1/scss/editor.scss +1 -0
  71. package/livingdocs/010.Titles/010.title-h1/scss/general.scss +5 -0
  72. package/livingdocs/010.Titles/010.title-h1/scss/xbrl.scss +1 -0
  73. package/livingdocs/010.Titles/010.title-h1/title-h1.html +5 -0
  74. package/livingdocs/010.Titles/020.title-h2/ld-conf.json +10 -0
  75. package/livingdocs/010.Titles/020.title-h2/properties.json +27 -0
  76. package/livingdocs/010.Titles/020.title-h2/scss/app.scss +1 -0
  77. package/livingdocs/010.Titles/020.title-h2/scss/editor.scss +1 -0
  78. package/livingdocs/010.Titles/020.title-h2/scss/general.scss +21 -0
  79. package/livingdocs/010.Titles/020.title-h2/scss/xbrl.scss +1 -0
  80. package/livingdocs/010.Titles/020.title-h2/title-h2.html +22 -0
  81. package/livingdocs/010.Titles/030.title-h3/ld-conf.json +10 -0
  82. package/livingdocs/010.Titles/030.title-h3/properties.json +23 -0
  83. package/livingdocs/010.Titles/030.title-h3/scss/app.scss +1 -0
  84. package/livingdocs/010.Titles/030.title-h3/scss/editor.scss +1 -0
  85. package/livingdocs/010.Titles/030.title-h3/scss/general.scss +21 -0
  86. package/livingdocs/010.Titles/030.title-h3/scss/xbrl.scss +1 -0
  87. package/livingdocs/010.Titles/030.title-h3/title-h3.html +22 -0
  88. package/livingdocs/010.Titles/040.title-h4/ld-conf.json +10 -0
  89. package/livingdocs/010.Titles/040.title-h4/properties.json +19 -0
  90. package/livingdocs/010.Titles/040.title-h4/scss/app.scss +1 -0
  91. package/livingdocs/010.Titles/040.title-h4/scss/editor.scss +1 -0
  92. package/livingdocs/010.Titles/040.title-h4/scss/general.scss +21 -0
  93. package/livingdocs/010.Titles/040.title-h4/scss/xbrl.scss +1 -0
  94. package/livingdocs/010.Titles/040.title-h4/title-h4.html +22 -0
  95. package/livingdocs/010.Titles/050.title-h5/ld-conf.json +5 -0
  96. package/livingdocs/010.Titles/050.title-h5/properties.json +15 -0
  97. package/livingdocs/010.Titles/050.title-h5/scss/app.scss +1 -0
  98. package/livingdocs/010.Titles/050.title-h5/scss/editor.scss +1 -0
  99. package/livingdocs/010.Titles/050.title-h5/scss/general.scss +6 -0
  100. package/livingdocs/010.Titles/050.title-h5/scss/xbrl.scss +1 -0
  101. package/livingdocs/010.Titles/050.title-h5/title-h5.html +5 -0
  102. package/livingdocs/010.Titles/060.title-h6/ld-conf.json +5 -0
  103. package/livingdocs/010.Titles/060.title-h6/scss/app.scss +1 -0
  104. package/livingdocs/010.Titles/060.title-h6/scss/editor.scss +1 -0
  105. package/livingdocs/010.Titles/060.title-h6/scss/general.scss +6 -0
  106. package/livingdocs/010.Titles/060.title-h6/scss/xbrl.scss +1 -0
  107. package/livingdocs/010.Titles/060.title-h6/title-h6.html +5 -0
  108. package/livingdocs/020.Text/010.lead/ld-conf.json +10 -0
  109. package/livingdocs/020.Text/010.lead/lead.html +7 -0
  110. package/livingdocs/020.Text/010.lead/scss/app.scss +1 -0
  111. package/livingdocs/020.Text/010.lead/scss/editor.scss +1 -0
  112. package/livingdocs/020.Text/010.lead/scss/general.scss +6 -0
  113. package/livingdocs/020.Text/010.lead/scss/xbrl.scss +1 -0
  114. package/livingdocs/020.Text/020.paragraph/ld-conf.json +5 -0
  115. package/livingdocs/{Text/paragraph → 020.Text/020.paragraph}/paragraph.html +2 -13
  116. package/livingdocs/020.Text/020.paragraph/scss/app.scss +1 -0
  117. package/livingdocs/020.Text/020.paragraph/scss/editor.scss +1 -0
  118. package/livingdocs/020.Text/020.paragraph/scss/general.scss +6 -0
  119. package/livingdocs/020.Text/020.paragraph/scss/web.scss +0 -0
  120. package/livingdocs/020.Text/020.paragraph/scss/word.scss +0 -0
  121. package/livingdocs/020.Text/020.paragraph/scss/xbrl.scss +1 -0
  122. package/livingdocs/020.Text/030.paragraph-strong/ld-conf.json +5 -0
  123. package/livingdocs/020.Text/030.paragraph-strong/paragraph.html +16 -0
  124. package/livingdocs/020.Text/030.paragraph-strong/scss/app.scss +1 -0
  125. package/livingdocs/020.Text/030.paragraph-strong/scss/editor.scss +0 -0
  126. package/livingdocs/020.Text/030.paragraph-strong/scss/general.scss +5 -0
  127. package/livingdocs/020.Text/030.paragraph-strong/scss/pdf.scss +1 -0
  128. package/livingdocs/020.Text/030.paragraph-strong/scss/web.scss +0 -0
  129. package/livingdocs/020.Text/030.paragraph-strong/scss/word.scss +0 -0
  130. package/livingdocs/020.Text/030.paragraph-strong/scss/xbrl.scss +1 -0
  131. package/livingdocs/020.Text/040.link/ld-conf.json +15 -0
  132. package/livingdocs/020.Text/040.link/link.html +12 -0
  133. package/livingdocs/020.Text/040.link/scss/app.scss +1 -0
  134. package/livingdocs/020.Text/040.link/scss/editor.scss +1 -0
  135. package/livingdocs/020.Text/040.link/scss/general.scss +6 -0
  136. package/livingdocs/020.Text/040.link/scss/pdf.scss +0 -0
  137. package/livingdocs/020.Text/040.link/scss/web.scss +0 -0
  138. package/livingdocs/020.Text/040.link/scss/word.scss +0 -0
  139. package/livingdocs/020.Text/040.link/scss/xbrl.scss +1 -0
  140. package/livingdocs/020.Text/050.quote/ld-conf.json +5 -0
  141. package/livingdocs/020.Text/050.quote/quote.html +15 -0
  142. package/livingdocs/020.Text/050.quote/scss/app.scss +1 -0
  143. package/livingdocs/020.Text/050.quote/scss/editor.scss +1 -0
  144. package/livingdocs/020.Text/050.quote/scss/general.scss +17 -0
  145. package/livingdocs/020.Text/050.quote/scss/pdf.scss +0 -0
  146. package/livingdocs/020.Text/050.quote/scss/web.scss +0 -0
  147. package/livingdocs/020.Text/050.quote/scss/word.scss +0 -0
  148. package/livingdocs/020.Text/050.quote/scss/xbrl.scss +1 -0
  149. package/livingdocs/020.Text/060.quote-with-portrait/ld-conf.json +11 -0
  150. package/livingdocs/020.Text/060.quote-with-portrait/quote-with-portrait.html +18 -0
  151. package/livingdocs/020.Text/060.quote-with-portrait/scss/app.scss +1 -0
  152. package/livingdocs/020.Text/060.quote-with-portrait/scss/editor.scss +1 -0
  153. package/livingdocs/020.Text/060.quote-with-portrait/scss/general.scss +17 -0
  154. package/livingdocs/020.Text/060.quote-with-portrait/scss/pdf.scss +29 -0
  155. package/livingdocs/020.Text/060.quote-with-portrait/scss/web.scss +24 -0
  156. package/livingdocs/020.Text/060.quote-with-portrait/scss/word.scss +0 -0
  157. package/livingdocs/020.Text/060.quote-with-portrait/scss/xbrl.scss +1 -0
  158. package/livingdocs/020.Text/070.footnote-container/footnote-container.html +6 -0
  159. package/livingdocs/020.Text/070.footnote-container/ld-conf.json +18 -0
  160. package/livingdocs/020.Text/070.footnote-container/scss/app.scss +1 -0
  161. package/livingdocs/020.Text/070.footnote-container/scss/editor.scss +1 -0
  162. package/livingdocs/020.Text/070.footnote-container/scss/general.scss +5 -0
  163. package/livingdocs/020.Text/070.footnote-container/scss/pdf.scss +0 -0
  164. package/livingdocs/020.Text/070.footnote-container/scss/web.scss +6 -0
  165. package/livingdocs/020.Text/070.footnote-container/scss/word.scss +0 -0
  166. package/livingdocs/020.Text/070.footnote-container/scss/xbrl.scss +1 -0
  167. package/livingdocs/020.Text/080.footnote-item/footnote-item.html +6 -0
  168. package/livingdocs/020.Text/080.footnote-item/ld-conf.json +5 -0
  169. package/livingdocs/020.Text/080.footnote-item/scss/app.scss +1 -0
  170. package/livingdocs/020.Text/080.footnote-item/scss/editor.scss +1 -0
  171. package/livingdocs/020.Text/080.footnote-item/scss/general.scss +28 -0
  172. package/livingdocs/020.Text/080.footnote-item/scss/pdf.scss +0 -0
  173. package/livingdocs/020.Text/080.footnote-item/scss/web.scss +0 -0
  174. package/livingdocs/020.Text/080.footnote-item/scss/word.scss +0 -0
  175. package/livingdocs/020.Text/080.footnote-item/scss/xbrl.scss +1 -0
  176. package/livingdocs/030.Lists/010.unordered-list/ld-conf.json +18 -0
  177. package/livingdocs/030.Lists/010.unordered-list/scss/app.scss +1 -0
  178. package/livingdocs/030.Lists/010.unordered-list/scss/editor.scss +1 -0
  179. package/livingdocs/030.Lists/010.unordered-list/scss/general.scss +12 -0
  180. package/livingdocs/030.Lists/010.unordered-list/scss/pdf.scss +0 -0
  181. package/livingdocs/030.Lists/010.unordered-list/scss/web.scss +0 -0
  182. package/livingdocs/030.Lists/010.unordered-list/scss/word.scss +0 -0
  183. package/livingdocs/030.Lists/010.unordered-list/scss/xbrl.scss +1 -0
  184. package/livingdocs/030.Lists/010.unordered-list/unordered-list.html +6 -0
  185. package/livingdocs/030.Lists/020.ordered-list/ld-conf.json +18 -0
  186. package/livingdocs/030.Lists/020.ordered-list/ordered-list.html +6 -0
  187. package/livingdocs/030.Lists/020.ordered-list/scss/app.scss +1 -0
  188. package/livingdocs/030.Lists/020.ordered-list/scss/editor.scss +1 -0
  189. package/livingdocs/030.Lists/020.ordered-list/scss/general.scss +9 -0
  190. package/livingdocs/030.Lists/020.ordered-list/scss/pdf.scss +0 -0
  191. package/livingdocs/030.Lists/020.ordered-list/scss/web.scss +0 -0
  192. package/livingdocs/030.Lists/020.ordered-list/scss/word.scss +0 -0
  193. package/livingdocs/030.Lists/020.ordered-list/scss/xbrl.scss +1 -0
  194. package/livingdocs/030.Lists/030.alphanumeric-list/alphanumeric-list.html +6 -0
  195. package/livingdocs/030.Lists/030.alphanumeric-list/ld-conf.json +18 -0
  196. package/livingdocs/030.Lists/030.alphanumeric-list/scss/app.scss +1 -0
  197. package/livingdocs/030.Lists/030.alphanumeric-list/scss/editor.scss +1 -0
  198. package/livingdocs/030.Lists/030.alphanumeric-list/scss/general.scss +9 -0
  199. package/livingdocs/030.Lists/030.alphanumeric-list/scss/pdf.scss +0 -0
  200. package/livingdocs/030.Lists/030.alphanumeric-list/scss/web.scss +0 -0
  201. package/livingdocs/030.Lists/030.alphanumeric-list/scss/word.scss +0 -0
  202. package/livingdocs/030.Lists/030.alphanumeric-list/scss/xbrl.scss +1 -0
  203. package/livingdocs/030.Lists/040.list-item/ld-conf.json +5 -0
  204. package/livingdocs/030.Lists/040.list-item/list-item.html +5 -0
  205. package/livingdocs/030.Lists/040.list-item/scss/app.scss +1 -0
  206. package/livingdocs/030.Lists/040.list-item/scss/editor.scss +1 -0
  207. package/livingdocs/030.Lists/040.list-item/scss/general.scss +35 -0
  208. package/livingdocs/030.Lists/040.list-item/scss/pdf.scss +0 -0
  209. package/livingdocs/030.Lists/040.list-item/scss/web.scss +0 -0
  210. package/livingdocs/030.Lists/040.list-item/scss/word.scss +0 -0
  211. package/livingdocs/030.Lists/040.list-item/scss/xbrl.scss +1 -0
  212. package/livingdocs/040.Media/010.table/ld-conf.json +15 -0
  213. package/livingdocs/040.Media/010.table/properties.json +32 -0
  214. package/livingdocs/040.Media/010.table/scss/app.scss +1 -0
  215. package/livingdocs/040.Media/010.table/scss/editor.scss +1 -0
  216. package/livingdocs/040.Media/010.table/scss/general.scss +328 -0
  217. package/livingdocs/040.Media/010.table/scss/pdf.scss +34 -0
  218. package/livingdocs/040.Media/010.table/scss/web.scss +14 -0
  219. package/livingdocs/040.Media/010.table/scss/word.scss +0 -0
  220. package/livingdocs/040.Media/010.table/scss/xbrl.scss +1 -0
  221. package/livingdocs/040.Media/010.table/table.html +9 -0
  222. package/livingdocs/040.Media/020.image/image.html +40 -0
  223. package/livingdocs/040.Media/020.image/ld-conf.json +25 -0
  224. package/livingdocs/040.Media/020.image/scss/app.scss +1 -0
  225. package/livingdocs/040.Media/020.image/scss/editor.scss +1 -0
  226. package/livingdocs/040.Media/020.image/scss/general.scss +17 -0
  227. package/livingdocs/040.Media/020.image/scss/pdf.scss +26 -0
  228. package/livingdocs/040.Media/020.image/scss/web.scss +1 -0
  229. package/livingdocs/040.Media/020.image/scss/word.scss +0 -0
  230. package/livingdocs/040.Media/020.image/scss/xbrl.scss +5 -0
  231. package/livingdocs/040.Media/030.video/ld-conf.json +19 -0
  232. package/livingdocs/040.Media/030.video/scss/app.scss +1 -0
  233. package/livingdocs/040.Media/030.video/scss/editor.scss +1 -0
  234. package/livingdocs/040.Media/030.video/scss/general.scss +5 -0
  235. package/livingdocs/040.Media/030.video/scss/pdf.scss +0 -0
  236. package/livingdocs/040.Media/030.video/scss/web.scss +12 -0
  237. package/livingdocs/040.Media/030.video/scss/word.scss +0 -0
  238. package/livingdocs/040.Media/030.video/scss/xbrl.scss +5 -0
  239. package/livingdocs/040.Media/030.video/video.html +59 -0
  240. package/livingdocs/040.Media/040.interactive-element/interactive-element.html +27 -0
  241. package/livingdocs/040.Media/040.interactive-element/ld-conf.json +6 -0
  242. package/livingdocs/050.Hero-and-Slider/.gitkeep +0 -0
  243. package/livingdocs/060.Buttons/.gitkeep +0 -0
  244. package/livingdocs/070.Container/010.aside-content-container/aside-content-container.html +10 -0
  245. package/livingdocs/070.Container/010.aside-content-container/ld-conf.json +20 -0
  246. package/livingdocs/070.Container/010.aside-content-container/properties.json +7 -0
  247. package/livingdocs/070.Container/010.aside-content-container/scss/app.scss +1 -0
  248. package/livingdocs/070.Container/010.aside-content-container/scss/editor.scss +1 -0
  249. package/livingdocs/070.Container/010.aside-content-container/scss/general.scss +1 -0
  250. package/livingdocs/070.Container/010.aside-content-container/scss/pdf.scss +3 -0
  251. package/livingdocs/070.Container/010.aside-content-container/scss/web.scss +1 -0
  252. package/livingdocs/070.Container/010.aside-content-container/scss/word.scss +0 -0
  253. package/livingdocs/070.Container/010.aside-content-container/scss/xbrl.scss +1 -0
  254. package/livingdocs/070.Container/020.columns-container/columns-container.html +22 -0
  255. package/livingdocs/070.Container/020.columns-container/ld-conf.json +17 -0
  256. package/livingdocs/080.CV/010.cv/cv.html +40 -0
  257. package/livingdocs/080.CV/010.cv/ld-conf.json +11 -0
  258. package/livingdocs/080.CV/020.cv-time-span/cv-time-span.html +13 -0
  259. package/livingdocs/080.CV/020.cv-time-span/ld-conf.json +4 -0
  260. package/livingdocs/090.Signatures/010.signature-container/ld-conf.json +18 -0
  261. package/livingdocs/090.Signatures/010.signature-container/scss/app.scss +1 -0
  262. package/livingdocs/090.Signatures/010.signature-container/scss/editor.scss +1 -0
  263. package/livingdocs/090.Signatures/010.signature-container/scss/general.scss +5 -0
  264. package/livingdocs/090.Signatures/010.signature-container/scss/pdf.scss +0 -0
  265. package/livingdocs/090.Signatures/010.signature-container/scss/web.scss +6 -0
  266. package/livingdocs/090.Signatures/010.signature-container/scss/word.scss +0 -0
  267. package/livingdocs/090.Signatures/010.signature-container/scss/xbrl.scss +1 -0
  268. package/livingdocs/090.Signatures/010.signature-container/signature-container.html +6 -0
  269. package/livingdocs/090.Signatures/020.signature-item/ld-conf.json +11 -0
  270. package/livingdocs/090.Signatures/020.signature-item/scss/app.scss +1 -0
  271. package/livingdocs/090.Signatures/020.signature-item/scss/editor.scss +1 -0
  272. package/livingdocs/090.Signatures/020.signature-item/scss/general.scss +9 -0
  273. package/livingdocs/090.Signatures/020.signature-item/scss/pdf.scss +0 -0
  274. package/livingdocs/090.Signatures/020.signature-item/scss/web.scss +5 -0
  275. package/livingdocs/090.Signatures/020.signature-item/scss/word.scss +0 -0
  276. package/livingdocs/090.Signatures/020.signature-item/scss/xbrl.scss +1 -0
  277. package/livingdocs/090.Signatures/020.signature-item/signature-item.html +9 -0
  278. package/livingdocs/100.Misc/010.anchor/anchor.html +8 -0
  279. package/livingdocs/100.Misc/010.anchor/ld-conf.json +4 -0
  280. package/livingdocs/100.Misc/020.accordion/accordion.html +8 -0
  281. package/livingdocs/100.Misc/020.accordion/ld-conf.json +26 -0
  282. package/livingdocs/110.PDF/010.pdf-pagebreak/ld-conf.json +4 -0
  283. package/livingdocs/110.PDF/010.pdf-pagebreak/pdf-pagebreak.html +1 -0
  284. package/livingdocs/110.PDF/020.pdf-column-container/ld-conf.json +4 -0
  285. package/livingdocs/110.PDF/020.pdf-column-container/pdf-column-container.html +5 -0
  286. package/livingdocs/110.PDF/030.pdf-publication-title/ld-conf.json +4 -0
  287. package/livingdocs/110.PDF/030.pdf-publication-title/pdf-publication-title.html +7 -0
  288. package/livingdocs/110.PDF/040.pdf-chapter-title/ld-conf.json +4 -0
  289. package/livingdocs/110.PDF/040.pdf-chapter-title/pdf-chapter-title.html +7 -0
  290. package/livingdocs/110.PDF/050.pdf-chapter-navigation-container/ld-conf.json +17 -0
  291. package/livingdocs/110.PDF/050.pdf-chapter-navigation-container/pdf-chapter-navigation.html +10 -0
  292. package/livingdocs/110.PDF/060.pdf-chapter-navigation-item/ld-conf.json +6 -0
  293. package/livingdocs/110.PDF/060.pdf-chapter-navigation-item/pdf-chapter-navigation-item.html +7 -0
  294. package/livingdocs/110.PDF/060.pdf-chapter-navigation-item/properties.json +7 -0
  295. package/livingdocs/110.PDF/070.pdf-cover/ld-conf.json +25 -0
  296. package/livingdocs/110.PDF/070.pdf-cover/pdf-cover.html +26 -0
  297. package/livingdocs/110.PDF/080.pdf-toc-page/ld-conf.json +15 -0
  298. package/livingdocs/110.PDF/080.pdf-toc-page/pdf-toc-page.html +8 -0
  299. package/livingdocs/{PDF_only/pdf-toc-page → 110.PDF/080.pdf-toc-page}/properties.json +11 -3
  300. package/livingdocs/110.PDF/090.pdf-toc-item-title/ld-conf.json +5 -0
  301. package/livingdocs/110.PDF/090.pdf-toc-item-title/pdf-toc-item-title.html +3 -0
  302. package/livingdocs/110.PDF/100.pdf-toc-item/ld-conf.json +14 -0
  303. package/livingdocs/110.PDF/100.pdf-toc-item/pdf-toc-item.html +6 -0
  304. package/livingdocs/110.PDF/110.pdf-toc-item-blank/ld-conf.json +5 -0
  305. package/livingdocs/110.PDF/110.pdf-toc-item-blank/pdf-toc-item-blank.html +4 -0
  306. package/livingdocs/120.Startpage/.gitkeep +0 -0
  307. package/livingdocs/999.Properties/alignment/properties.json +36 -0
  308. package/livingdocs/{Text/quote-with-portrait → 999.Properties/hide-quote-characters}/properties.json +0 -5
  309. package/livingdocs/999.Properties/pdf-spacer/properties.json +43 -0
  310. package/livingdocs/999.Properties/width/properties.json +32 -0
  311. package/package.json +8 -10
  312. package/scripts/beaver.js +16 -15
  313. package/scripts/build.d.ts +4 -7
  314. package/scripts/build.js +345 -320
  315. package/scripts/components.js +62 -64
  316. package/scripts/config.d.ts +8 -0
  317. package/scripts/config.js +52 -1
  318. package/scripts/doPublish.js +12 -0
  319. package/scripts/folders.d.ts +43 -0
  320. package/scripts/folders.js +46 -0
  321. package/scripts/init.js +28 -8
  322. package/scripts/ldd/LivingdocsDesignValidator.d.ts +61 -0
  323. package/scripts/ldd/LivingdocsDesignValidator.js +296 -0
  324. package/scripts/ldd/__tests__/LivingdocsDesignValidation.test.mjs +273 -0
  325. package/scripts/ldd/mapLdd.d.ts +1 -0
  326. package/scripts/ldd/mapLdd.js +204 -0
  327. package/scripts/prepare.d.ts +2 -0
  328. package/scripts/prepare.js +66 -0
  329. package/scripts/preparePublish.d.ts +1 -1
  330. package/scripts/preparePublish.js +34 -1
  331. package/scripts/renamePackage.d.ts +1 -1
  332. package/scripts/utils.d.ts +45 -30
  333. package/scripts/utils.js +112 -55
  334. package/srl/components/Srl/Aria/TabChain.vue +100 -0
  335. package/srl/components/Srl/Article/Autoload.vue +41 -0
  336. package/srl/components/Srl/Article/DialogButton.vue +55 -0
  337. package/srl/components/Srl/Article/Root.vue +76 -0
  338. package/srl/components/Srl/Menu/Item/Content/Image.vue +12 -0
  339. package/srl/components/Srl/Menu/Item/Content/ImageAfter.vue +13 -0
  340. package/srl/components/Srl/Menu/Item/Content/ImageBefore.vue +13 -0
  341. package/srl/components/Srl/Menu/Item/Content/Text.vue +9 -0
  342. package/srl/components/Srl/Menu/Item/Content.vue +23 -0
  343. package/srl/components/Srl/Menu/Item.vue +208 -0
  344. package/srl/components/Srl/Menu/List.vue +184 -0
  345. package/srl/components/Srl/Page/App.vue +65 -0
  346. package/srl/components/Srl/Page/Dialog.vue +71 -0
  347. package/srl/composables/article.ts +24 -0
  348. package/srl/composables/articles.ts +41 -0
  349. package/srl/composables/config.ts +165 -0
  350. package/srl/composables/downloads.ts +46 -0
  351. package/srl/composables/index.ts +34 -0
  352. package/srl/composables/locale.ts +8 -0
  353. package/srl/composables/menu.ts +101 -0
  354. package/srl/composables/root.ts +5 -0
  355. package/srl/composables/search.ts +108 -0
  356. package/srl/composables/settings.ts +9 -0
  357. package/srl/composables/viewPort.ts +78 -0
  358. package/srl/imports/app.scss +0 -0
  359. package/srl/imports/ldd.scss +0 -0
  360. package/srl/imports/pdf.scss +0 -0
  361. package/srl/imports/word.scss +0 -0
  362. package/srl/imports/xbrl.scss +0 -0
  363. package/srl/plugins/asyncLdComponent.ts +2 -0
  364. package/srl/plugins/initProject.ts +19 -0
  365. package/srl/plugins/viteSrlPlugin.ts +214 -0
  366. package/srl/plugins/vueSrlPlugin.ts +23 -0
  367. package/srl/scss/config.scss +7 -0
  368. package/{scss → srl/scss}/core-styles.scss +1 -0
  369. package/{scss → srl/scss}/grid/functions.scss +20 -0
  370. package/{scss → srl/scss}/grid/mixins.scss +10 -152
  371. package/{scss → srl/scss}/grid/variables.scss +1 -0
  372. package/srl/scss/helpers/functions.scss +0 -0
  373. package/{scss → srl/scss}/helpers/mixins.scss +0 -33
  374. package/{scss → srl/scss}/typography/mixins.scss +53 -13
  375. package/srl/scss/xbrl-core-styles.scss +47 -0
  376. package/{dev/nswow → srl/srl}/ArticleAutoloader.ts +22 -22
  377. package/{dev/nswow → srl/srl}/ArticleLoader.ts +25 -18
  378. package/srl/srl/Awesomizr.js +682 -0
  379. package/srl/srl/colors.scss +3 -0
  380. package/srl/srl/config.scss +7 -0
  381. package/srl/srl/core-styles.scss +2 -0
  382. package/srl/srl/fonts.scss +2 -0
  383. package/srl/srl/grid.scss +2 -0
  384. package/srl/srl/helpers.scss +2 -0
  385. package/srl/srl/meta.scss +2 -0
  386. package/srl/srl/pdf.scss +2 -0
  387. package/srl/srl/spacer.scss +2 -0
  388. package/srl/srl/system.scss +2 -0
  389. package/srl/srl/typography.scss +3 -0
  390. package/srl/types/components.d.ts +17 -0
  391. package/srl/types/nswow.d.ts +121 -0
  392. package/srl/utils/camelCase.ts +11 -0
  393. package/srl/utils/html.ts +82 -0
  394. package/srl/utils/index.ts +5 -0
  395. package/srl/utils/uri.ts +52 -0
  396. package/dev/ldd.html +0 -7
  397. package/dev/livingdocs/Media/image/app.scss +0 -25
  398. package/dev/livingdocs/Media/image/general.scss +0 -11
  399. package/dev/livingdocs/Media/image/image.html +0 -46
  400. package/dev/livingdocs/Media/image/ldd.scss +0 -1
  401. package/dev/livingdocs/Media/image/pdf.scss +0 -1
  402. package/dev/livingdocs/Media/image/print.scss +0 -7
  403. package/dev/livingdocs/Media/image/properties.json +0 -41
  404. package/dev/livingdocs/Media/image/word.scss +0 -1
  405. package/dev/livingdocs/Properties/grid/app.scss +0 -1
  406. package/dev/livingdocs/Properties/grid/general.scss +0 -95
  407. package/dev/livingdocs/Properties/grid/ldd.scss +0 -1
  408. package/dev/livingdocs/Properties/grid/pdf.scss +0 -1
  409. package/dev/livingdocs/Properties/grid/print.scss +0 -94
  410. package/dev/livingdocs/Properties/grid/properties.json +0 -68
  411. package/dev/livingdocs/Properties/grid/web.scss +0 -98
  412. package/dev/livingdocs/Properties/grid/word.scss +0 -1
  413. package/dev/livingdocs/Text/paragraph/general.scss +0 -9
  414. package/dev/livingdocs/Text/paragraph/paragraph.html +0 -22
  415. package/dev/livingdocs/Titles/title-h1/general.scss +0 -10
  416. package/dev/livingdocs/Titles/title-h1/title-h1.html +0 -16
  417. package/dev/livingdocs/Titles/title-h2/app.scss +0 -1
  418. package/dev/livingdocs/Titles/title-h2/general.scss +0 -13
  419. package/dev/livingdocs/Titles/title-h2/ldd.scss +0 -1
  420. package/dev/livingdocs/Titles/title-h2/pdf.scss +0 -1
  421. package/dev/livingdocs/Titles/title-h2/print.scss +0 -36
  422. package/dev/livingdocs/Titles/title-h2/title-h2.html +0 -24
  423. package/dev/livingdocs/Titles/title-h2/web.scss +0 -27
  424. package/dev/livingdocs/Titles/title-h2/word.scss +0 -1
  425. package/dev/livingdocs/Titles/title-h3/app.scss +0 -1
  426. package/dev/livingdocs/Titles/title-h3/general.scss +0 -13
  427. package/dev/livingdocs/Titles/title-h3/ldd.scss +0 -1
  428. package/dev/livingdocs/Titles/title-h3/pdf.scss +0 -1
  429. package/dev/livingdocs/Titles/title-h3/print.scss +0 -34
  430. package/dev/livingdocs/Titles/title-h3/title-h3.html +0 -24
  431. package/dev/livingdocs/Titles/title-h3/web.scss +0 -27
  432. package/dev/livingdocs/Titles/title-h3/word.scss +0 -1
  433. package/dev/livingdocs/Titles/title-h4/app.scss +0 -1
  434. package/dev/livingdocs/Titles/title-h4/general.scss +0 -13
  435. package/dev/livingdocs/Titles/title-h4/ldd.scss +0 -1
  436. package/dev/livingdocs/Titles/title-h4/pdf.scss +0 -1
  437. package/dev/livingdocs/Titles/title-h4/print.scss +0 -34
  438. package/dev/livingdocs/Titles/title-h4/title-h4.html +0 -24
  439. package/dev/livingdocs/Titles/title-h4/web.scss +0 -27
  440. package/dev/livingdocs/Titles/title-h4/word.scss +0 -1
  441. package/dev/livingdocs/Titles/title-h5/general.scss +0 -10
  442. package/dev/livingdocs/Titles/title-h5/title-h5.html +0 -16
  443. package/dev/livingdocs/Titles/title-h6/general.scss +0 -10
  444. package/dev/livingdocs/Titles/title-h6/title-h6.html +0 -16
  445. package/dev/nswow/colors.scss +0 -3
  446. package/dev/nswow/config.scss +0 -13
  447. package/dev/nswow/core-styles.scss +0 -2
  448. package/dev/nswow/fonts.scss +0 -2
  449. package/dev/nswow/grid.scss +0 -2
  450. package/dev/nswow/helpers.scss +0 -2
  451. package/dev/nswow/meta.scss +0 -2
  452. package/dev/nswow/spacer.scss +0 -2
  453. package/dev/nswow/system.scss +0 -2
  454. package/dev/nswow/typography.scss +0 -3
  455. package/dev/nswow.config.json +0 -293
  456. package/dev/pdf.ts +0 -1
  457. package/dev/src/components/LanguageSwitch.vue +0 -100
  458. package/dev/src/components/MenuItem/MenuArticle.vue +0 -15
  459. package/dev/src/components/MenuItem/MenuEntry.vue +0 -26
  460. package/dev/src/components/MenuItem/MenuExternal.vue +0 -28
  461. package/dev/src/components/MenuItem/index.ts +0 -5
  462. package/dev/src/components/PageModal.vue +0 -95
  463. package/dev/src/components/ScrollToTop.vue +0 -63
  464. package/dev/src/composables/config.ts +0 -48
  465. package/dev/src/main.ts +0 -16
  466. package/dev/src/types/nswow.d.ts +0 -73
  467. package/dev/src/views/DownloadsView.vue +0 -88
  468. package/dev/src/views/SearchView.vue +0 -126
  469. package/dev/word.ts +0 -1
  470. package/livingdocs/Buttons/button/app.scss +0 -1
  471. package/livingdocs/Buttons/button/button.html +0 -18
  472. package/livingdocs/Buttons/button/general.scss +0 -33
  473. package/livingdocs/Buttons/button/ldd.scss +0 -1
  474. package/livingdocs/Buttons/button/pdf.scss +0 -1
  475. package/livingdocs/Buttons/button/word.scss +0 -1
  476. package/livingdocs/Buttons/button-container/app.scss +0 -1
  477. package/livingdocs/Buttons/button-container/button-container.html +0 -31
  478. package/livingdocs/Buttons/button-container/general.scss +0 -12
  479. package/livingdocs/Buttons/button-container/ldd.scss +0 -1
  480. package/livingdocs/Buttons/button-container/pdf.scss +0 -3
  481. package/livingdocs/Buttons/button-container/properties.json +0 -19
  482. package/livingdocs/Buttons/button-container/word.scss +0 -3
  483. package/livingdocs/CV/cv-timeline/app.scss +0 -1
  484. package/livingdocs/CV/cv-timeline/cv-timeline.html +0 -19
  485. package/livingdocs/CV/cv-timeline/general.scss +0 -1
  486. package/livingdocs/CV/cv-timeline/ldd.scss +0 -1
  487. package/livingdocs/CV/cv-timeline/pdf.scss +0 -1
  488. package/livingdocs/CV/cv-timeline/print.scss +0 -35
  489. package/livingdocs/CV/cv-timeline/web.scss +0 -27
  490. package/livingdocs/CV/cv-timeline/word.scss +0 -1
  491. package/livingdocs/Container/column-container/column-container.html +0 -44
  492. package/livingdocs/Container/column-container/general.scss +0 -105
  493. package/livingdocs/Container/column-container/properties.json +0 -83
  494. package/livingdocs/Lists/alphanumeric-list-group/alphanumeric-list-group.html +0 -25
  495. package/livingdocs/Lists/alphanumeric-list-group/app.scss +0 -1
  496. package/livingdocs/Lists/alphanumeric-list-group/general.scss +0 -5
  497. package/livingdocs/Lists/alphanumeric-list-group/ldd.scss +0 -1
  498. package/livingdocs/Lists/alphanumeric-list-group/pdf.scss +0 -1
  499. package/livingdocs/Lists/alphanumeric-list-group/word.scss +0 -1
  500. package/livingdocs/Lists/list-item/app.scss +0 -1
  501. package/livingdocs/Lists/list-item/general.scss +0 -4
  502. package/livingdocs/Lists/list-item/ldd.scss +0 -1
  503. package/livingdocs/Lists/list-item/list-item.html +0 -17
  504. package/livingdocs/Lists/list-item/pdf.scss +0 -1
  505. package/livingdocs/Lists/list-item/word.scss +0 -1
  506. package/livingdocs/Lists/ordered-list-group/app.scss +0 -1
  507. package/livingdocs/Lists/ordered-list-group/general.scss +0 -5
  508. package/livingdocs/Lists/ordered-list-group/ldd.scss +0 -1
  509. package/livingdocs/Lists/ordered-list-group/ordered-list-group.html +0 -25
  510. package/livingdocs/Lists/ordered-list-group/pdf.scss +0 -1
  511. package/livingdocs/Lists/ordered-list-group/word.scss +0 -1
  512. package/livingdocs/Lists/unordered-list-group/app.scss +0 -1
  513. package/livingdocs/Lists/unordered-list-group/general.scss +0 -5
  514. package/livingdocs/Lists/unordered-list-group/ldd.scss +0 -1
  515. package/livingdocs/Lists/unordered-list-group/pdf.scss +0 -1
  516. package/livingdocs/Lists/unordered-list-group/unordered-list-group.html +0 -25
  517. package/livingdocs/Lists/unordered-list-group/word.scss +0 -1
  518. package/livingdocs/Media/chart/app.scss +0 -19
  519. package/livingdocs/Media/chart/chart.html +0 -29
  520. package/livingdocs/Media/chart/general.scss +0 -11
  521. package/livingdocs/Media/chart/ldd.scss +0 -1
  522. package/livingdocs/Media/chart/pdf.scss +0 -9
  523. package/livingdocs/Media/chart/properties.json +0 -41
  524. package/livingdocs/Media/chart/word.scss +0 -1
  525. package/livingdocs/Media/graphic/app.scss +0 -1
  526. package/livingdocs/Media/graphic/general.scss +0 -18
  527. package/livingdocs/Media/graphic/graphic.html +0 -29
  528. package/livingdocs/Media/graphic/ldd.scss +0 -1
  529. package/livingdocs/Media/graphic/pdf.scss +0 -1
  530. package/livingdocs/Media/graphic/properties.json +0 -36
  531. package/livingdocs/Media/graphic/word.scss +0 -1
  532. package/livingdocs/Media/image/app.scss +0 -25
  533. package/livingdocs/Media/image/general.scss +0 -11
  534. package/livingdocs/Media/image/image.html +0 -55
  535. package/livingdocs/Media/image/ldd.scss +0 -1
  536. package/livingdocs/Media/image/pdf.scss +0 -1
  537. package/livingdocs/Media/image/print.scss +0 -7
  538. package/livingdocs/Media/image/properties.json +0 -41
  539. package/livingdocs/Media/image/word.scss +0 -1
  540. package/livingdocs/Media/nswow-table/app.scss +0 -2
  541. package/livingdocs/Media/nswow-table/app.ts +0 -35
  542. package/livingdocs/Media/nswow-table/general.scss +0 -281
  543. package/livingdocs/Media/nswow-table/ldd.scss +0 -2
  544. package/livingdocs/Media/nswow-table/nswow-table.html +0 -30
  545. package/livingdocs/Media/nswow-table/pdf.scss +0 -8
  546. package/livingdocs/Media/nswow-table/properties.json +0 -66
  547. package/livingdocs/Media/nswow-table/web.scss +0 -23
  548. package/livingdocs/Media/nswow-table/word.scss +0 -2
  549. package/livingdocs/Media/video/app.scss +0 -1
  550. package/livingdocs/Media/video/general.scss +0 -7
  551. package/livingdocs/Media/video/ldd.scss +0 -1
  552. package/livingdocs/Media/video/pdf.scss +0 -1
  553. package/livingdocs/Media/video/print.scss +0 -5
  554. package/livingdocs/Media/video/properties.json +0 -41
  555. package/livingdocs/Media/video/video.html +0 -26
  556. package/livingdocs/Media/video/word.scss +0 -1
  557. package/livingdocs/Misc/accordion/accordion.html +0 -56
  558. package/livingdocs/Misc/accordion/app.scss +0 -63
  559. package/livingdocs/Misc/accordion/app.ts +0 -10
  560. package/livingdocs/Misc/accordion/general.scss +0 -44
  561. package/livingdocs/Misc/accordion/ldd.scss +0 -36
  562. package/livingdocs/Misc/accordion/pdf.scss +0 -39
  563. package/livingdocs/Misc/accordion/word.scss +0 -39
  564. package/livingdocs/Misc/anchor/anchor.html +0 -15
  565. package/livingdocs/Misc/anchor/app.scss +0 -10
  566. package/livingdocs/Misc/anchor/app.ts +0 -11
  567. package/livingdocs/Misc/anchor/general.scss +0 -1
  568. package/livingdocs/Misc/anchor/pdf.scss +0 -1
  569. package/livingdocs/Misc/anchor/print.scss +0 -3
  570. package/livingdocs/Misc/anchor/word.scss +0 -1
  571. package/livingdocs/Misc/spacer/app.scss +0 -1
  572. package/livingdocs/Misc/spacer/general.scss +0 -8
  573. package/livingdocs/Misc/spacer/ldd.scss +0 -1
  574. package/livingdocs/Misc/spacer/pdf.scss +0 -1
  575. package/livingdocs/Misc/spacer/print.scss +0 -18
  576. package/livingdocs/Misc/spacer/properties.json +0 -52
  577. package/livingdocs/Misc/spacer/spacer.html +0 -12
  578. package/livingdocs/Misc/spacer/web.scss +0 -18
  579. package/livingdocs/Misc/spacer/word.scss +0 -1
  580. package/livingdocs/PDF_only/pdf-cover/ldd.scss +0 -42
  581. package/livingdocs/PDF_only/pdf-cover/pdf-cover.html +0 -29
  582. package/livingdocs/PDF_only/pdf-cover/pdf.scss +0 -1
  583. package/livingdocs/PDF_only/pdf-cover/word.scss +0 -1
  584. package/livingdocs/PDF_only/pdf-cover-chapter/ldd.scss +0 -19
  585. package/livingdocs/PDF_only/pdf-cover-chapter/pdf-chapter-cover.html +0 -18
  586. package/livingdocs/PDF_only/pdf-cover-chapter/pdf.scss +0 -1
  587. package/livingdocs/PDF_only/pdf-cover-chapter/print.scss +0 -19
  588. package/livingdocs/PDF_only/pdf-cover-chapter/word.scss +0 -1
  589. package/livingdocs/PDF_only/pdf-pagebreak/general.scss +0 -4
  590. package/livingdocs/PDF_only/pdf-pagebreak/ldd.scss +0 -5
  591. package/livingdocs/PDF_only/pdf-pagebreak/pdf-pagebreak.html +0 -8
  592. package/livingdocs/PDF_only/pdf-publication-title/general.scss +0 -5
  593. package/livingdocs/PDF_only/pdf-publication-title/pdf-publication-title.html +0 -15
  594. package/livingdocs/PDF_only/pdf-toc-item/general.scss +0 -41
  595. package/livingdocs/PDF_only/pdf-toc-item/pdf-toc-item.html +0 -33
  596. package/livingdocs/PDF_only/pdf-toc-item-blank/general.scss +0 -5
  597. package/livingdocs/PDF_only/pdf-toc-item-blank/pdf-toc-item-blank.html +0 -11
  598. package/livingdocs/PDF_only/pdf-toc-item-title/general.scss +0 -5
  599. package/livingdocs/PDF_only/pdf-toc-item-title/pdf-toc-item-title.html +0 -11
  600. package/livingdocs/PDF_only/pdf-toc-page/app.scss +0 -1
  601. package/livingdocs/PDF_only/pdf-toc-page/general.scss +0 -1
  602. package/livingdocs/PDF_only/pdf-toc-page/ldd.scss +0 -1
  603. package/livingdocs/PDF_only/pdf-toc-page/pdf-toc-page.html +0 -33
  604. package/livingdocs/PDF_only/pdf-toc-page/pdf.scss +0 -1
  605. package/livingdocs/PDF_only/pdf-toc-page/word.scss +0 -1
  606. package/livingdocs/PDF_only/pdf-video-link/ldd.scss +0 -16
  607. package/livingdocs/PDF_only/pdf-video-link/pdf-video-link.html +0 -41
  608. package/livingdocs/PDF_only/pdf-video-link/pdf.scss +0 -1
  609. package/livingdocs/PDF_only/pdf-video-link/print.scss +0 -12
  610. package/livingdocs/PDF_only/pdf-video-link/word.scss +0 -1
  611. package/livingdocs/Properties/grid/app.scss +0 -1
  612. package/livingdocs/Properties/grid/general.scss +0 -95
  613. package/livingdocs/Properties/grid/ldd.scss +0 -1
  614. package/livingdocs/Properties/grid/pdf.scss +0 -1
  615. package/livingdocs/Properties/grid/print.scss +0 -94
  616. package/livingdocs/Properties/grid/properties.json +0 -68
  617. package/livingdocs/Properties/grid/web.scss +0 -98
  618. package/livingdocs/Properties/grid/word.scss +0 -1
  619. package/livingdocs/Signatures/signature-container/app.scss +0 -1
  620. package/livingdocs/Signatures/signature-container/general.scss +0 -7
  621. package/livingdocs/Signatures/signature-container/ldd.scss +0 -1
  622. package/livingdocs/Signatures/signature-container/pdf.scss +0 -1
  623. package/livingdocs/Signatures/signature-container/signature-container.html +0 -30
  624. package/livingdocs/Signatures/signature-container/word.scss +0 -1
  625. package/livingdocs/Signatures/signature-item/app.scss +0 -1
  626. package/livingdocs/Signatures/signature-item/general.scss +0 -53
  627. package/livingdocs/Signatures/signature-item/ldd.scss +0 -1
  628. package/livingdocs/Signatures/signature-item/pdf.scss +0 -1
  629. package/livingdocs/Signatures/signature-item/signature-item.html +0 -23
  630. package/livingdocs/Signatures/signature-item/word.scss +0 -1
  631. package/livingdocs/Text/footnote/app.scss +0 -1
  632. package/livingdocs/Text/footnote/footnote.html +0 -14
  633. package/livingdocs/Text/footnote/general.scss +0 -12
  634. package/livingdocs/Text/footnote/ldd.scss +0 -1
  635. package/livingdocs/Text/footnote/pdf.scss +0 -1
  636. package/livingdocs/Text/footnote/print.scss +0 -36
  637. package/livingdocs/Text/footnote/web.scss +0 -27
  638. package/livingdocs/Text/footnote/word.scss +0 -1
  639. package/livingdocs/Text/lead/general.scss +0 -9
  640. package/livingdocs/Text/lead/lead.html +0 -23
  641. package/livingdocs/Text/paragraph/general.scss +0 -9
  642. package/livingdocs/Text/quote/general.scss +0 -43
  643. package/livingdocs/Text/quote/quote.html +0 -29
  644. package/livingdocs/Text/quote-with-portrait/general.scss +0 -81
  645. package/livingdocs/Text/quote-with-portrait/quote-with-portrait.html +0 -49
  646. package/livingdocs/Titles/title-h1/general.scss +0 -10
  647. package/livingdocs/Titles/title-h1/title-h1.html +0 -16
  648. package/livingdocs/Titles/title-h2/app.scss +0 -1
  649. package/livingdocs/Titles/title-h2/general.scss +0 -13
  650. package/livingdocs/Titles/title-h2/ldd.scss +0 -1
  651. package/livingdocs/Titles/title-h2/pdf.scss +0 -1
  652. package/livingdocs/Titles/title-h2/print.scss +0 -36
  653. package/livingdocs/Titles/title-h2/title-h2.html +0 -26
  654. package/livingdocs/Titles/title-h2/web.scss +0 -27
  655. package/livingdocs/Titles/title-h2/word.scss +0 -1
  656. package/livingdocs/Titles/title-h3/app.scss +0 -1
  657. package/livingdocs/Titles/title-h3/general.scss +0 -13
  658. package/livingdocs/Titles/title-h3/ldd.scss +0 -1
  659. package/livingdocs/Titles/title-h3/pdf.scss +0 -1
  660. package/livingdocs/Titles/title-h3/print.scss +0 -34
  661. package/livingdocs/Titles/title-h3/title-h3.html +0 -26
  662. package/livingdocs/Titles/title-h3/web.scss +0 -27
  663. package/livingdocs/Titles/title-h3/word.scss +0 -1
  664. package/livingdocs/Titles/title-h4/app.scss +0 -1
  665. package/livingdocs/Titles/title-h4/general.scss +0 -13
  666. package/livingdocs/Titles/title-h4/ldd.scss +0 -1
  667. package/livingdocs/Titles/title-h4/pdf.scss +0 -1
  668. package/livingdocs/Titles/title-h4/print.scss +0 -34
  669. package/livingdocs/Titles/title-h4/title-h4.html +0 -26
  670. package/livingdocs/Titles/title-h4/web.scss +0 -27
  671. package/livingdocs/Titles/title-h4/word.scss +0 -1
  672. package/livingdocs/Titles/title-h5/general.scss +0 -10
  673. package/livingdocs/Titles/title-h5/title-h5.html +0 -16
  674. package/livingdocs/Titles/title-h6/general.scss +0 -10
  675. package/livingdocs/Titles/title-h6/title-h6.html +0 -16
  676. package/preparePublish.cjs +0 -95
  677. package/scripts/migrate-livingdocs-build/LICENSE +0 -21
  678. package/scripts/migrate-livingdocs-build/bin/build.d.ts +0 -8
  679. package/scripts/migrate-livingdocs-build/bin/build.js +0 -53
  680. package/scripts/migrate-livingdocs-build/bin/migrate.d.ts +0 -2
  681. package/scripts/migrate-livingdocs-build/bin/migrate.js +0 -43
  682. package/scripts/migrate-livingdocs-build/dev/build/v1.d.ts +0 -9
  683. package/scripts/migrate-livingdocs-build/dev/build/v1.d.ts.map +0 -1
  684. package/scripts/migrate-livingdocs-build/dev/build/v1.js +0 -51
  685. package/scripts/migrate-livingdocs-build/dev/build/v2.d.ts +0 -2
  686. package/scripts/migrate-livingdocs-build/dev/build/v2.d.ts.map +0 -1
  687. package/scripts/migrate-livingdocs-build/dev/build/v2.js +0 -44
  688. package/scripts/migrate-livingdocs-build/dev/build/zip-archive.d.ts +0 -2
  689. package/scripts/migrate-livingdocs-build/dev/build/zip-archive.d.ts.map +0 -1
  690. package/scripts/migrate-livingdocs-build/dev/build/zip-archive.js +0 -39
  691. package/scripts/migrate-livingdocs-build/dev/build.d.ts +0 -9
  692. package/scripts/migrate-livingdocs-build/dev/build.js +0 -7
  693. package/scripts/migrate-livingdocs-build/dev/configuration-defaults.d.ts +0 -20
  694. package/scripts/migrate-livingdocs-build/dev/configuration-defaults.js +0 -18
  695. package/scripts/migrate-livingdocs-build/dev/configuration.d.ts +0 -2
  696. package/scripts/migrate-livingdocs-build/dev/configuration.js +0 -34
  697. package/scripts/migrate-livingdocs-build/dev/lib.d.ts +0 -33
  698. package/scripts/migrate-livingdocs-build/dev/lib.js +0 -251
  699. package/scripts/migrate-livingdocs-build/dev/livingdocs-design.d.ts +0 -9
  700. package/scripts/migrate-livingdocs-build/dev/livingdocs-design.js +0 -80
  701. package/scripts/migrate-livingdocs-build/dev/logger.d.ts +0 -2
  702. package/scripts/migrate-livingdocs-build/dev/logger.js +0 -16
  703. package/scripts/migrate-livingdocs-build/dev/migrate.d.ts +0 -22
  704. package/scripts/migrate-livingdocs-build/dev/migrate.js +0 -241
  705. package/scripts/migrate-livingdocs-build/readme.md +0 -62
  706. package/scripts/vite.d.ts +0 -10
  707. package/scripts/vite.js +0 -58
  708. package/scss/config.scss +0 -7
  709. package/tags.txt +0 -1
  710. /package/dev/livingdocs/{Media/image/web.scss → .gitkeep} +0 -0
  711. /package/{dev/public/.keep → livingdocs/010.Titles/010.title-h1/scss/pdf.scss} +0 -0
  712. /package/livingdocs/{Lists/alphanumeric-list-group → 010.Titles/010.title-h1/scss}/web.scss +0 -0
  713. /package/livingdocs/{Lists/alphanumeric-list-group/print.scss → 010.Titles/010.title-h1/scss/word.scss} +0 -0
  714. /package/livingdocs/{Lists/list-item/print.scss → 010.Titles/020.title-h2/scss/pdf.scss} +0 -0
  715. /package/livingdocs/{Lists/list-item → 010.Titles/020.title-h2/scss}/web.scss +0 -0
  716. /package/livingdocs/{Lists/ordered-list-group/print.scss → 010.Titles/020.title-h2/scss/word.scss} +0 -0
  717. /package/livingdocs/{Lists/ordered-list-group/web.scss → 010.Titles/030.title-h3/scss/pdf.scss} +0 -0
  718. /package/livingdocs/{Lists/unordered-list-group → 010.Titles/030.title-h3/scss}/web.scss +0 -0
  719. /package/livingdocs/{Lists/unordered-list-group/print.scss → 010.Titles/030.title-h3/scss/word.scss} +0 -0
  720. /package/livingdocs/{Media/chart/print.scss → 010.Titles/040.title-h4/scss/pdf.scss} +0 -0
  721. /package/livingdocs/{Media/chart → 010.Titles/040.title-h4/scss}/web.scss +0 -0
  722. /package/livingdocs/{Media/graphic/print.scss → 010.Titles/040.title-h4/scss/word.scss} +0 -0
  723. /package/livingdocs/{Media/graphic/web.scss → 010.Titles/050.title-h5/scss/pdf.scss} +0 -0
  724. /package/livingdocs/{Media/image → 010.Titles/050.title-h5/scss}/web.scss +0 -0
  725. /package/livingdocs/{Media/nswow-table/print.scss → 010.Titles/050.title-h5/scss/word.scss} +0 -0
  726. /package/livingdocs/{Media/video/web.scss → 010.Titles/060.title-h6/scss/pdf.scss} +0 -0
  727. /package/livingdocs/{Signatures/signature-container → 010.Titles/060.title-h6/scss}/web.scss +0 -0
  728. /package/livingdocs/{PDF_only/pdf-cover/print.scss → 010.Titles/060.title-h6/scss/word.scss} +0 -0
  729. /package/livingdocs/{Signatures/signature-container/print.scss → 020.Text/010.lead/scss/pdf.scss} +0 -0
  730. /package/livingdocs/{Signatures/signature-item → 020.Text/010.lead/scss}/web.scss +0 -0
  731. /package/livingdocs/{Signatures/signature-item/print.scss → 020.Text/010.lead/scss/word.scss} +0 -0
  732. /package/{scss/helpers/functions.scss → livingdocs/020.Text/020.paragraph/scss/pdf.scss} +0 -0
  733. /package/livingdocs/{Text/quote → 020.Text/050.quote}/properties.json +0 -0
  734. /package/livingdocs/{PDF_only/pdf-toc-item → 110.PDF/100.pdf-toc-item}/properties.json +0 -0
  735. /package/{scss → srl/scss}/colors/functions.scss +0 -0
  736. /package/{scss → srl/scss}/colors/index.scss +0 -0
  737. /package/{scss → srl/scss}/colors/mixins.scss +0 -0
  738. /package/{scss → srl/scss}/colors/variables.scss +0 -0
  739. /package/{scss → srl/scss}/fonts/functions.scss +0 -0
  740. /package/{scss → srl/scss}/fonts/index.scss +0 -0
  741. /package/{scss → srl/scss}/fonts/mixins.scss +0 -0
  742. /package/{scss → srl/scss}/fonts/variables.scss +0 -0
  743. /package/{scss → srl/scss}/grid/index.scss +0 -0
  744. /package/{scss → srl/scss}/helpers/index.scss +0 -0
  745. /package/{scss → srl/scss}/helpers/variables.scss +0 -0
  746. /package/{scss → srl/scss}/index.scss +0 -0
  747. /package/{scss → srl/scss}/meta/functions.scss +0 -0
  748. /package/{scss → srl/scss}/meta/index.scss +0 -0
  749. /package/{scss → srl/scss}/meta/mixins.scss +0 -0
  750. /package/{scss → srl/scss}/meta/variables.scss +0 -0
  751. /package/{scss → srl/scss}/spacer/functions.scss +0 -0
  752. /package/{scss → srl/scss}/spacer/index.scss +0 -0
  753. /package/{scss → srl/scss}/spacer/mixins.scss +0 -0
  754. /package/{scss → srl/scss}/spacer/variables.scss +0 -0
  755. /package/{scss → srl/scss}/system/functions.scss +0 -0
  756. /package/{scss → srl/scss}/system/index.scss +0 -0
  757. /package/{scss → srl/scss}/system/mixins.scss +0 -0
  758. /package/{scss → srl/scss}/system/root.scss +0 -0
  759. /package/{scss → srl/scss}/system/variables.scss +0 -0
  760. /package/{scss → srl/scss}/typography/functions.scss +0 -0
  761. /package/{scss → srl/scss}/typography/index.scss +0 -0
  762. /package/{scss → srl/scss}/typography/variables.scss +0 -0
  763. /package/{dev/nswow → srl/srl}/index.scss +0 -0
package/scripts/build.js CHANGED
@@ -1,4 +1,4 @@
1
- import { resolve } from 'node:path';
1
+ import { join } from 'node:path/posix';
2
2
  import {
3
3
  statSync,
4
4
  writeFileSync,
@@ -8,25 +8,26 @@ import {
8
8
  createWriteStream,
9
9
  rmSync,
10
10
  cpSync,
11
+ copyFileSync,
11
12
  } from 'node:fs';
12
- import { fileURLToPath, URL } from 'node:url';
13
13
  import { createRequire } from 'node:module';
14
14
  import { glob } from 'glob';
15
- import { beaver } from './beaver.js';
16
15
  import { build as viteBuild } from 'vite';
17
- import { build as finalizeLdd } from './migrate-livingdocs-build/bin/build.js';
18
16
  import {
19
17
  readPackageJson,
20
18
  writePackageJson,
21
19
  readLivingDocsJson,
22
20
  writeLivingDocsJson,
23
21
  } from './utils.js';
24
- import { camelCase } from 'cheerio/utils';
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';
25
27
 
26
28
  const placeholderId = '6297EAFB-33A0-48B8-8D64-E61CDC3E9035';
27
- const CWD = process.cwd();
28
- const nswowPath = resolve(CWD, '.nswow');
29
- const outputPath = resolve(CWD, '.output');
29
+ const nswowPath = folders.srlImports;
30
+ const outputPath = folders.srlOutput;
30
31
  const require = createRequire(import.meta.url);
31
32
 
32
33
  const { Input } = require('enquirer');
@@ -65,7 +66,7 @@ async function cleanOutput() {
65
66
  await checkFolders();
66
67
  const output = readdirSync(outputPath);
67
68
  for (let i = 0; i < output.length; i++) {
68
- await rmSync(`${outputPath}/${output[i]}`, {
69
+ await rmSync(join(outputPath, output[i]), {
69
70
  force: true,
70
71
  recursive: true,
71
72
  });
@@ -82,29 +83,38 @@ async function cleanOutput() {
82
83
  * @returns {Promise<void>} A Promise that resolves when the application is built.
83
84
  */
84
85
  async function buildApp() {
86
+ console.log("\n\nBuild application");
85
87
  await checkFolders();
86
88
  const build = await viteBuild({
87
89
  build: {
88
90
  copyPublicDir: false,
89
91
  },
92
+ css: {
93
+ preprocessorOptions: {
94
+ scss: {
95
+ api: 'modern-compiler',
96
+ },
97
+ },
98
+ },
99
+ publicDir: false,
90
100
  });
91
101
 
92
102
  // Copy public folder exclude nswow folders
93
103
  console.log(
94
104
  '\n\nCopy public folder exclude nswow folders and exclude folder',
95
105
  );
96
- await cpSync(`${CWD}/public/`, `${outputPath}/app`, {
106
+ await cpSync(join(folders.srlPublic, '/'), join(outputPath, 'app'), {
97
107
  filter: (src) => {
98
108
  if (
99
- src.startsWith(`${CWD}/public/downloads`) ||
100
- src.startsWith(`${CWD}/public/html`) ||
101
- src.startsWith(`${CWD}/public/images`) ||
102
- src.startsWith(`${CWD}/public/json`) ||
103
- src.startsWith(`${CWD}/public/exclude`)
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'))
104
114
  ) {
105
115
  return false;
106
116
  } else {
107
- src === `${CWD}/public/` ||
117
+ src === join(folders.srlPublic, '/') ||
108
118
  console.log(`Copy ${src} to ${outputPath}/app`);
109
119
  return true;
110
120
  }
@@ -113,7 +123,10 @@ async function buildApp() {
113
123
  });
114
124
  console.log('\n');
115
125
 
116
- let index = await readFileSync(`${outputPath}/app/index.html`, 'utf8');
126
+ let index = await readFileSync(
127
+ join(folders.srlOutput, 'app', 'index.html'),
128
+ 'utf8',
129
+ );
117
130
 
118
131
  console.log('Create file /template/article.html for nswow hybrid\n');
119
132
  index = index.replace(
@@ -126,6 +139,8 @@ async function buildApp() {
126
139
  [[meta-${placeholderId}]]`,
127
140
  );
128
141
 
142
+ await writeFileSync(join(outputPath, 'app', 'index.html'), index);
143
+
129
144
  index = index.replace(
130
145
  /(<div\s+[^>]*id\s*=\s*["']app["'][^>]*>)([\s\S]*?)(<\/div>)/i,
131
146
  `$1
@@ -135,9 +150,11 @@ async function buildApp() {
135
150
  $3`,
136
151
  );
137
152
 
138
- await mkdirSync(`${outputPath}/app/template`, { recursive: true });
139
- await writeFileSync(`${outputPath}/app/index.html`, index);
140
- await writeFileSync(`${outputPath}/app/template/article.html`, index);
153
+ await mkdirSync(join(outputPath, 'app', 'template'), { recursive: true });
154
+ await writeFileSync(
155
+ join(outputPath, 'app', 'template', 'article.html'),
156
+ index,
157
+ );
141
158
  /**
142
159
  await writeFileSync(`${outputPath}/app/web.config`, `<?xml version="1.0" encoding="UTF-8"?>
143
160
  <configuration>
@@ -174,11 +191,13 @@ async function buildApp() {
174
191
  * @returns {Promise<void>} A Promise that resolves when the application is built.
175
192
  */
176
193
  async function buildDDev() {
194
+ console.log("\n\nBuild application for DDEV");
177
195
  await checkFolders();
178
196
  const build = await viteBuild({
179
197
  build: {
180
198
  outDir: './.output/ddev',
181
199
  },
200
+ publicDir: true,
182
201
  });
183
202
  return build;
184
203
  }
@@ -191,9 +210,10 @@ async function buildDDev() {
191
210
  * @returns {Promise<void>} - A Promise that resolves when the zip operation is complete, or rejects with an error.
192
211
  */
193
212
  async function zipApp() {
213
+ console.log("\n\nCreate zip file for app");
194
214
  await checkFolders();
195
215
  const archiver = require('archiver');
196
- const output = createWriteStream(outputPath + '/app.zip');
216
+ const output = createWriteStream(join(outputPath, 'app.zip'));
197
217
  const archive = archiver('zip', {
198
218
  zlib: { level: 9 }, // Sets the compression level.
199
219
  });
@@ -216,7 +236,38 @@ async function zipApp() {
216
236
  throw err;
217
237
  });
218
238
  archive.pipe(output);
219
- archive.directory(outputPath + '/app/', false);
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);
220
271
  archive.finalize();
221
272
  }
222
273
 
@@ -227,66 +278,66 @@ async function zipApp() {
227
278
  * false otherwise.
228
279
  */
229
280
  async function buildPdf() {
281
+ console.log("\n\nBuild PDF");
230
282
  await checkFolders();
231
283
 
232
- try {
233
- const input = resolve(CWD, 'pdf.html');
234
- await statSync(input);
235
- return await viteBuild({
236
- build: {
237
- outDir: resolve(CWD, '.output/pdf'),
238
- rollupOptions: {
239
- input: {
240
- pdf: input,
241
- },
242
- output: {
243
- entryFileNames: `[name].js`,
244
- chunkFileNames: `[name].js`,
245
- assetFileNames: `[name].[ext]`,
246
- },
284
+ const config = {
285
+ css: {
286
+ preprocessorOptions: {
287
+ scss: {
288
+ api: 'modern-compiler',
247
289
  },
248
- copyPublicDir: false,
249
290
  },
250
- });
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);
251
306
  } catch (e) {
252
- let configFile = false;
253
- try {
254
- const file = resolve(CWD, 'vite.config.pdf.ts');
255
- await statSync(file);
256
- console.log('Use vite.config.pdf.ts file');
257
- configFile = file;
258
- } catch (e) {
259
- console.log('No use of vite.config.pdf.ts file');
260
- }
307
+ console.error(e);
308
+ return false;
309
+ }
310
+ }
311
+
312
+ async function buildXbrl() {
313
+ console.log("\n\nBuild XBRL");
314
+ await checkFolders();
261
315
 
262
- const entry = resolve(CWD, 'pdf.ts');
263
-
264
- const config = {
265
- configFile: configFile,
266
- base: './',
267
- build: {
268
- outDir: resolve(CWD, '.output/pdf'),
269
- lib: {
270
- fileName: 'pdf',
271
- entry: entry,
272
- formats: ['es'],
316
+ const config = {
317
+ css: {
318
+ preprocessorOptions: {
319
+ scss: {
320
+ api: 'modern-compiler',
273
321
  },
274
322
  },
275
- resolve: {
276
- alias: {
277
- '@': fileURLToPath(new URL(resolve(CWD, 'src'), import.meta.url)),
278
- nswow: fileURLToPath(new URL(resolve(CWD, 'nswow'), import.meta.url)),
279
- },
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'],
280
331
  },
281
- publicDir: false,
282
- };
332
+ },
333
+ publicDir: false,
334
+ };
283
335
 
284
- try {
285
- return await viteBuild(config);
286
- } catch (e) {
287
- console.error(e);
288
- return false;
289
- }
336
+ try {
337
+ return await viteBuild(config);
338
+ } catch (e) {
339
+ console.error(e);
340
+ return false;
290
341
  }
291
342
  }
292
343
 
@@ -298,72 +349,141 @@ async function buildPdf() {
298
349
  * @returns {Promise<boolean>} - A Promise that resolves to true if the LDD build is successful, false otherwise.
299
350
  */
300
351
  async function buildLdd(version) {
301
- let action = false;
352
+ console.log("\n\nBuild Livingdocs");
302
353
  await checkFolders();
354
+ await mapLdd();
303
355
 
304
356
  const packageJson = await readPackageJson();
305
357
  const lddJson = await readLivingDocsJson();
306
358
 
307
359
  if (version) {
308
360
  packageJson.version = version;
309
- await writePackageJson(packageJson);
310
- action = true;
361
+ await writePackageJson();
311
362
  }
312
363
 
313
364
  lddJson.name = packageJson.name;
314
365
  lddJson.version = packageJson.version;
315
366
 
316
- const input = resolve(CWD, 'ldd.html');
317
- try {
318
- await statSync(input);
319
- } catch (e) {
320
- return true;
321
- }
322
- try {
323
- await writeFileSync(`${outputPath}/v${lddJson.version}.txt`, '');
324
- return await viteBuild({
325
- build: {
326
- outDir: './.output/ldd',
327
- rollupOptions: {
328
- input: {
329
- ldd: input,
330
- },
331
- output: {
332
- entryFileNames: `assets/[name].js`,
333
- chunkFileNames: `assets/[name].js`,
334
- assetFileNames: `assets/[name].[ext]`,
335
- },
367
+ const config = {
368
+ css: {
369
+ preprocessorOptions: {
370
+ scss: {
371
+ api: 'modern-compiler',
336
372
  },
337
- copyPublicDir: false,
338
373
  },
339
- })
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)
340
391
  .then(async () => {
341
- const assetsPath = outputPath + '/ldd/assets';
392
+ const assetsPath = join(outputPath, 'ldd', 'assets');
342
393
  const assetsFiles = await readdirSync(assetsPath);
394
+ lddJson.assets.css = [];
395
+ lddJson.assets.js = [];
343
396
  for (let i = 0; i < assetsFiles.length; i++) {
344
397
  const file = assetsFiles[i];
345
398
  if (file.endsWith('.css')) {
346
- const path = './assets/' + file;
399
+ const path = join('./assets/' + file);
347
400
  if (!lddJson.assets.css.includes(path)) {
348
- action = true;
349
401
  lddJson.assets.css.push(path);
350
402
  }
351
403
  }
352
404
  if (file.endsWith('.js')) {
353
- const path = './assets/' + file;
405
+ const path = join('./assets/' + file);
354
406
  if (!lddJson.assets.js.includes(path)) {
355
- action = true;
356
407
  lddJson.assets.js.push(path);
357
408
  }
358
409
  }
359
410
  }
360
- if (action) {
361
- await writeLivingDocsJson(lddJson);
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
+ })
362
475
  }
476
+
477
+ console.log("\n\nBuild Livingdocs design.json");
478
+ await writeLivingDocsJson();
479
+
363
480
  return true;
364
481
  })
365
482
  .then(async () => {
366
- return await finalizeLdd();
483
+ copyFileSync(
484
+ join(folders.root, 'livingdocs.config.json'),
485
+ join(folders.srlOutput, 'ldd', 'design.json'),
486
+ );
367
487
  });
368
488
  } catch (e) {
369
489
  console.error(e);
@@ -379,66 +499,35 @@ async function buildLdd(version) {
379
499
  * or false if there was an error during the build process.
380
500
  */
381
501
  async function buildWord() {
502
+ console.log("\n\nBuild Word");
382
503
  await checkFolders();
504
+ let configFile = false;
383
505
 
384
- try {
385
- const input = resolve(CWD, 'word.html');
386
- await statSync(input);
387
- return await viteBuild({
388
- build: {
389
- outDir: resolve(CWD, '.output/word'),
390
- rollupOptions: {
391
- input: {
392
- word: input,
393
- },
394
- output: {
395
- entryFileNames: `[name].js`,
396
- chunkFileNames: `[name].js`,
397
- assetFileNames: `[name].[ext]`,
398
- },
506
+ const config = {
507
+ css: {
508
+ preprocessorOptions: {
509
+ scss: {
510
+ api: 'modern-compiler',
399
511
  },
400
- copyPublicDir: false,
401
512
  },
402
- });
403
- } catch (e) {
404
- let configFile = false;
405
- try {
406
- const file = resolve(CWD, 'vite.config.word.ts');
407
- await statSync(file);
408
- console.log('Use vite.config.word.ts file');
409
- configFile = file;
410
- } catch (e) {
411
- console.log('No use of vite.config.word.ts file');
412
- }
413
-
414
- const entry = resolve(CWD, 'word.ts');
415
-
416
- const config = {
417
- configFile: configFile,
418
- base: './',
419
- build: {
420
- outDir: resolve(CWD, '.output/word'),
421
- lib: {
422
- fileName: 'word',
423
- entry: entry,
424
- formats: ['es'],
425
- },
426
- },
427
- resolve: {
428
- alias: {
429
- '@': fileURLToPath(new URL(resolve(CWD, 'src'), import.meta.url)),
430
- nswow: fileURLToPath(new URL(resolve(CWD, 'nswow'), import.meta.url)),
431
- },
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'],
432
521
  },
433
- publicDir: false,
434
- };
522
+ },
523
+ publicDir: false,
524
+ };
435
525
 
436
- try {
437
- return await viteBuild(config);
438
- } catch (e) {
439
- console.error(e);
440
- return false;
441
- }
526
+ try {
527
+ return await viteBuild(config);
528
+ } catch (e) {
529
+ console.error(e);
530
+ return false;
442
531
  }
443
532
  }
444
533
 
@@ -446,26 +535,34 @@ async function buildWord() {
446
535
  * Builds the project sequentially by executing a series of asynchronous tasks in a specific order.
447
536
  * This method is used to build the project in a predetermined sequence.
448
537
  *
538
+ * @param {string} version
449
539
  * @return {Promise<void>} A Promise that resolves when the build process is completed or rejects if an error occurs.
450
540
  */
451
- async function build() {
541
+ async function build(version) {
452
542
  try {
453
543
  await checkFolders();
454
544
  const packageJson = await readPackageJson();
455
- const prompt = new Input({
456
- message: 'Livingdocs version',
457
- initial: packageJson.version,
458
- });
459
- const version = await prompt.run();
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
+
460
557
  await cleanOutput();
461
- await beaver(1);
462
- await mapScss();
463
- await mapLdd();
464
558
  await buildApp();
465
559
  await buildPdf();
466
560
  await buildWord();
467
- await buildLdd(version);
561
+ await buildXbrl();
562
+ await buildLdd();
563
+ new LivingdocsDesignValidator(await readLivingDocsJson()).IsDesignValid();
468
564
  await zipApp();
565
+ await zipLdd();
469
566
  } catch (error) {
470
567
  console.log(error);
471
568
  }
@@ -480,10 +577,6 @@ async function build() {
480
577
  async function ddev() {
481
578
  try {
482
579
  await checkFolders();
483
- const packageJson = await readPackageJson();
484
- await beaver(1);
485
- await mapScss();
486
- await mapLdd();
487
580
  await buildDDev();
488
581
  } catch (error) {
489
582
  console.error(error);
@@ -506,66 +599,93 @@ function cleanupScssAlias(string) {
506
599
  async function mapScss() {
507
600
  await checkFolders();
508
601
  try {
509
- const relativePathToRoot = '../';
602
+ const packageJson = await readPackageJson();
603
+
604
+ const relativePathToRoot = join('..', '..', '/');
510
605
 
511
606
  const output = {
512
607
  app: [],
513
608
  ldd: [],
514
609
  pdf: [],
515
610
  word: [],
611
+ xbrl: [],
516
612
  };
517
613
 
518
- const mainFiles = await glob(
519
- resolve(process.cwd(), './src/assets/scss/*.scss'),
520
- {
521
- withFileTypes: true,
522
- },
523
- );
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
+ });
524
636
 
525
637
  let f = mainFiles.find((p) => {
526
638
  return p.name === 'general.scss';
527
639
  });
528
640
 
529
- const alias = cleanupScssAlias(f.relative());
530
-
531
641
  if (f) {
532
- output.app.push(`"${relativePathToRoot}${f.relative()}" as ${alias}`);
533
- output.ldd.push(`"${relativePathToRoot}${f.relative()}" as ${alias}`);
534
- output.pdf.push(`"${relativePathToRoot}${f.relative()}" as ${alias}`);
535
- output.word.push(`"${relativePathToRoot}${f.relative()}" as ${alias}`);
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 *`);
536
646
  }
537
647
 
538
648
  for (let x = 0; x < mainFiles.length; x++) {
539
- const alias = cleanupScssAlias(mainFiles[x].relative());
649
+ const alias = cleanupScssAlias(mainFiles[x].relativePosix());
540
650
  if (mainFiles[x].name === 'app.scss') {
541
651
  output.app.push(
542
- `"${relativePathToRoot}${mainFiles[x].relative()}" as ${alias}`,
652
+ `"${relativePathToRoot}${mainFiles[x].relativePosix()}" as *`,
543
653
  );
544
654
  }
545
655
  if (mainFiles[x].name === 'ldd.scss') {
546
656
  output.ldd.push(
547
- `"${relativePathToRoot}${mainFiles[x].relative()}" as ${alias}`,
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 *`,
548
663
  );
549
664
  }
550
665
  if (mainFiles[x].name === 'pdf.scss') {
551
666
  output.pdf.push(
552
- `"${relativePathToRoot}${mainFiles[x].relative()}" as ${alias}`,
667
+ `"${relativePathToRoot}${mainFiles[x].relativePosix()}" as *`,
553
668
  );
554
669
  }
555
670
  if (mainFiles[x].name === 'word.scss') {
556
671
  output.word.push(
557
- `"${relativePathToRoot}${mainFiles[x].relative()}" as ${alias}`,
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 *`,
558
678
  );
559
679
  }
560
680
  }
561
681
 
562
- const livingdocs = await glob(resolve(process.cwd(), './livingdocs/**/*'), {
682
+ const livingdocs = await glob(join(folders.ld, '**', '*'), {
563
683
  maxDepth: 3,
564
684
  withFileTypes: true,
565
685
  });
566
686
  livingdocs.sort((a, b) => {
567
- const valueA = a.relative().toUpperCase();
568
- const valueB = b.relative().toUpperCase();
687
+ const valueA = a.relativePosix().toUpperCase();
688
+ const valueB = b.relativePosix().toUpperCase();
569
689
  if (valueA < valueB) {
570
690
  return -1;
571
691
  }
@@ -588,59 +708,68 @@ async function mapScss() {
588
708
  for (let x = 0; x < livingdocsList.length; x++) {
589
709
  const p = livingdocsList[x];
590
710
  try {
591
- const general = await statSync(p.fullpath() + '/general.scss');
592
- const alias = cleanupScssAlias(`${p.relative()}/general.scss`);
711
+ const general = await statSync(
712
+ join(p.fullpath(), 'scss', 'general.scss'),
713
+ );
593
714
  output.app.push(
594
- `"${relativePathToRoot}${p.relative()}/general.scss" as ${alias}`,
715
+ `"${relativePathToRoot}${p.relativePosix()}/scss/general.scss" as *`,
595
716
  );
596
717
  output.ldd.push(
597
- `"${relativePathToRoot}${p.relative()}/general.scss" as ${alias}`,
718
+ `"${relativePathToRoot}${p.relativePosix()}/scss/general.scss" as *`,
598
719
  );
599
720
  output.pdf.push(
600
- `"${relativePathToRoot}${p.relative()}/general.scss" as ${alias}`,
721
+ `"${relativePathToRoot}${p.relativePosix()}/scss/general.scss" as *`,
601
722
  );
602
723
  output.word.push(
603
- `"${relativePathToRoot}${p.relative()}/general.scss" as ${alias}`,
724
+ `"${relativePathToRoot}${p.relativePosix()}/scss/general.scss" as *`,
604
725
  );
605
726
  } catch (e) {}
606
727
 
607
- const types = ['app', 'ldd', 'pdf', 'word'];
728
+ const types = ['app', 'ldd', 'editor', 'pdf', 'word', 'xbrl'];
608
729
 
609
730
  for (let i = 0; i < types.length; i++) {
610
731
  const type = types[i];
611
732
  try {
612
- const f = await statSync(p.fullpath() + '/' + type + '.scss');
613
- const alias = cleanupScssAlias(`${p.relative()}/${type}.scss`);
614
- output[type].push(
615
- `"${relativePathToRoot}${p.relative()}/${type}.scss" as ${alias}`,
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 *`,
616
738
  );
617
739
  } catch (e) {}
618
740
  }
619
741
  }
620
742
 
621
743
  await writeFileSync(
622
- `${CWD}/.nswow/app.scss`,
744
+ join(folders.srlImports, 'app.scss'),
623
745
  `@use ` +
624
746
  output.app.join(';\n@use ') +
625
- `;\n@use "nswow/core-styles" as nswowcorestyles;\n`,
747
+ `;\n@use "../scss/core-styles.scss" as *;\n`,
626
748
  );
627
749
  await writeFileSync(
628
- `${CWD}/.nswow/ldd.scss`,
750
+ join(folders.srlImports, 'ldd.scss'),
629
751
  `@use ` +
630
752
  output.ldd.join(';\n@use ') +
631
- `;\n@use "nswow/core-styles" as nswowcorestyles;\n`,
753
+ `;\n@use "../scss/core-styles.scss" as *;\n`,
632
754
  );
633
755
  await writeFileSync(
634
- `${CWD}/.nswow/pdf.scss`,
756
+ join(folders.srlImports, 'pdf.scss'),
635
757
  `@use ` +
636
758
  output.pdf.join(';\n@use ') +
637
- `;\n@use "nswow/core-styles" as nswowcorestyles;\n`,
759
+ `;\n@use "../scss/core-styles.scss" as *;\n`,
638
760
  );
639
761
  await writeFileSync(
640
- `${CWD}/.nswow/word.scss`,
762
+ join(folders.srlImports, 'word.scss'),
641
763
  `@use ` +
642
764
  output.word.join(';\n@use ') +
643
- `;\n@use "nswow/core-styles" as nswowcorestyles;\n`,
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`,
644
773
  );
645
774
 
646
775
  return true;
@@ -655,7 +784,7 @@ async function mapScss() {
655
784
  * @returns {Promise<boolean>} - A promise that resolves to true if the mapping and importing is successful.
656
785
  */
657
786
  async function mapJs() {
658
- const jsFiles = await glob(resolve(CWD, './livingdocs/' + '**/app.[t,j]s'), {
787
+ const jsFiles = await glob(join(folders.ld, '**', 'app.[t,j]s'), {
659
788
  withFileTypes: true,
660
789
  });
661
790
 
@@ -679,121 +808,17 @@ async function mapJs() {
679
808
  register.push(`ClassAutoLoader.register(${className}, "${className}")`);
680
809
  }
681
810
 
682
- const content = `import ArticleAutoloader from 'nswow/ArticleAutoloader'
811
+ const content = `import ArticleAutoloader from 'srl/ArticleAutoloader'
683
812
  ${imports.join('\n')}
684
813
  const ClassAutoLoader = new ArticleAutoloader()
685
814
  ${register.join('\n')}
686
815
  export default ClassAutoLoader
687
816
  export { ClassAutoLoader }`;
688
817
 
689
- await writeFileSync(resolve(CWD, './src/Autoload.ts'), content);
818
+ await writeFileSync(join(folders.srlSrc, 'Autoload.ts'), content);
690
819
  return true;
691
820
  }
692
821
 
693
- /**
694
- * Maps the livingdocs properties to components and groups.
695
- *
696
- * @returns {Promise<boolean>} Returns a promise that resolves to a boolean indicating the success or failure of the mapping.
697
- */
698
- async function mapLdd() {
699
- await checkFolders();
700
- try {
701
- const lddJson = await readLivingDocsJson();
702
-
703
- const propertiesFiles = await glob(
704
- resolve(CWD, './livingdocs/**/properties.{json,js,ts}'),
705
- );
706
- const mapProperties = {};
707
- for (let i = 0; i < propertiesFiles.length; i++) {
708
- const file = propertiesFiles[i];
709
- if (file.endsWith('.js') || file.endsWith('.ts')) {
710
- const properties = require(propertiesFiles[i]).default;
711
- const oKeys = Object.keys(properties);
712
- for (let j = 0; j < oKeys.length; j++) {
713
- mapProperties[oKeys[j]] = properties[oKeys[j]];
714
- }
715
- } else if (file.endsWith('.json')) {
716
- const properties = JSON.parse(readFileSync(propertiesFiles[i]));
717
- const oKeys = Object.keys(properties);
718
- for (let j = 0; j < oKeys.length; j++) {
719
- mapProperties[oKeys[j]] = properties[oKeys[j]];
720
- }
721
- }
722
- }
723
- lddJson.componentProperties = mapProperties;
724
-
725
- const groupsPath = resolve(CWD, './livingdocs');
726
- const groups = readdirSync(groupsPath);
727
- const keepGroups = [];
728
-
729
- for (let x = 0; x < groups.length; x++) {
730
- const group = groups[x];
731
- const groupName = group.replace('_and_', ' / ').replace('_', ' ');
732
- try {
733
- const stat = statSync(`${groupsPath}/${group}`);
734
- if (stat.isDirectory()) {
735
- const components = [];
736
- const c = readdirSync(`${groupsPath}/${group}`);
737
- for (let j = 0; j < c.length; j++) {
738
- const component = c[j];
739
- try {
740
- const stat = statSync(
741
- `${groupsPath}/${group}/${component}/${component}.html`,
742
- );
743
- components.push(component);
744
- } catch (e) {}
745
- }
746
- if (components.length) {
747
- keepGroups.push(groupName);
748
- const i = lddJson.groups.find((g) => {
749
- return g.label === groupName;
750
- });
751
- if (i) {
752
- const newComponents = [];
753
- for (let j = 0; j < i.components.length; j++) {
754
- const index = components.indexOf(i.components[j]);
755
- if (index !== -1) {
756
- newComponents.push(components[index]);
757
- components.splice(index, 1);
758
- }
759
- }
760
- for (let j = 0; j < components.length; j++) {
761
- newComponents.push(components[j]);
762
- }
763
-
764
- i.components = newComponents;
765
- } else {
766
- lddJson.groups.push({
767
- label: groupName,
768
- components: components,
769
- });
770
- }
771
- }
772
- } else {
773
- rmSync(`${groupsPath}/${group}`);
774
- }
775
- } catch (e) {
776
- console.log(e);
777
- return false;
778
- }
779
- }
780
-
781
- const newMap = [];
782
- for (let i = 0; i < lddJson.groups.length; i++) {
783
- const c = lddJson.groups[i];
784
- if (keepGroups.includes(c.label)) {
785
- newMap.push(c);
786
- }
787
- }
788
- lddJson.groups = newMap;
789
- await writeLivingDocsJson(lddJson);
790
- return true;
791
- } catch (e) {
792
- console.error(e);
793
- return false;
794
- }
795
- }
796
-
797
822
  /**
798
823
  * Maps the SCSS files and the LDD files in the project.
799
824
  *