@simple-reporting/base 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (483) hide show
  1. package/.github/workflows/npm-publish.yml +25 -0
  2. package/.nvmrc +1 -0
  3. package/.prettierrc +6 -0
  4. package/README.md +23 -0
  5. package/cli.js +114 -0
  6. package/dev/.ddev/config.yaml +279 -0
  7. package/dev/.ddev/nginx_full/custom.conf +12 -0
  8. package/dev/.env +1 -0
  9. package/dev/.env.development +1 -0
  10. package/dev/.eslintrc.cjs +15 -0
  11. package/dev/.nvmrc +1 -0
  12. package/dev/.prettierrc.json +8 -0
  13. package/dev/.vscode/extensions.json +3 -0
  14. package/dev/.vscode/settings.json +4 -0
  15. package/dev/README.md +45 -0
  16. package/dev/env.d.ts +1 -0
  17. package/dev/index.html +17 -0
  18. package/dev/ldd.html +7 -0
  19. package/dev/livingdocs/Media/image/app.scss +25 -0
  20. package/dev/livingdocs/Media/image/general.scss +11 -0
  21. package/dev/livingdocs/Media/image/image.html +46 -0
  22. package/dev/livingdocs/Media/image/ldd.scss +1 -0
  23. package/dev/livingdocs/Media/image/pdf.scss +1 -0
  24. package/dev/livingdocs/Media/image/print.scss +7 -0
  25. package/dev/livingdocs/Media/image/properties.json +41 -0
  26. package/dev/livingdocs/Media/image/web.scss +0 -0
  27. package/dev/livingdocs/Media/image/word.scss +1 -0
  28. package/dev/livingdocs/Properties/grid/app.scss +1 -0
  29. package/dev/livingdocs/Properties/grid/general.scss +95 -0
  30. package/dev/livingdocs/Properties/grid/ldd.scss +1 -0
  31. package/dev/livingdocs/Properties/grid/pdf.scss +1 -0
  32. package/dev/livingdocs/Properties/grid/print.scss +94 -0
  33. package/dev/livingdocs/Properties/grid/properties.json +68 -0
  34. package/dev/livingdocs/Properties/grid/web.scss +98 -0
  35. package/dev/livingdocs/Properties/grid/word.scss +1 -0
  36. package/dev/livingdocs/Text/paragraph/general.scss +9 -0
  37. package/dev/livingdocs/Text/paragraph/paragraph.html +22 -0
  38. package/dev/livingdocs/Titles/title-h1/general.scss +10 -0
  39. package/dev/livingdocs/Titles/title-h1/title-h1.html +16 -0
  40. package/dev/livingdocs/Titles/title-h2/app.scss +1 -0
  41. package/dev/livingdocs/Titles/title-h2/general.scss +13 -0
  42. package/dev/livingdocs/Titles/title-h2/ldd.scss +1 -0
  43. package/dev/livingdocs/Titles/title-h2/pdf.scss +1 -0
  44. package/dev/livingdocs/Titles/title-h2/print.scss +36 -0
  45. package/dev/livingdocs/Titles/title-h2/title-h2.html +24 -0
  46. package/dev/livingdocs/Titles/title-h2/web.scss +27 -0
  47. package/dev/livingdocs/Titles/title-h2/word.scss +1 -0
  48. package/dev/livingdocs/Titles/title-h3/app.scss +1 -0
  49. package/dev/livingdocs/Titles/title-h3/general.scss +13 -0
  50. package/dev/livingdocs/Titles/title-h3/ldd.scss +1 -0
  51. package/dev/livingdocs/Titles/title-h3/pdf.scss +1 -0
  52. package/dev/livingdocs/Titles/title-h3/print.scss +34 -0
  53. package/dev/livingdocs/Titles/title-h3/title-h3.html +24 -0
  54. package/dev/livingdocs/Titles/title-h3/web.scss +27 -0
  55. package/dev/livingdocs/Titles/title-h3/word.scss +1 -0
  56. package/dev/livingdocs/Titles/title-h4/app.scss +1 -0
  57. package/dev/livingdocs/Titles/title-h4/general.scss +13 -0
  58. package/dev/livingdocs/Titles/title-h4/ldd.scss +1 -0
  59. package/dev/livingdocs/Titles/title-h4/pdf.scss +1 -0
  60. package/dev/livingdocs/Titles/title-h4/print.scss +34 -0
  61. package/dev/livingdocs/Titles/title-h4/title-h4.html +24 -0
  62. package/dev/livingdocs/Titles/title-h4/web.scss +27 -0
  63. package/dev/livingdocs/Titles/title-h4/word.scss +1 -0
  64. package/dev/livingdocs/Titles/title-h5/general.scss +10 -0
  65. package/dev/livingdocs/Titles/title-h5/title-h5.html +16 -0
  66. package/dev/livingdocs/Titles/title-h6/general.scss +10 -0
  67. package/dev/livingdocs/Titles/title-h6/title-h6.html +16 -0
  68. package/dev/livingdocs.config.json +376 -0
  69. package/dev/nswow/ArticleAutoloader.ts +100 -0
  70. package/dev/nswow/ArticleLoader.ts +91 -0
  71. package/dev/nswow/colors.scss +3 -0
  72. package/dev/nswow/config.scss +13 -0
  73. package/dev/nswow/core-styles.scss +2 -0
  74. package/dev/nswow/fonts.scss +2 -0
  75. package/dev/nswow/grid.scss +2 -0
  76. package/dev/nswow/helpers.scss +2 -0
  77. package/dev/nswow/index.scss +9 -0
  78. package/dev/nswow/meta.scss +2 -0
  79. package/dev/nswow/spacer.scss +2 -0
  80. package/dev/nswow/system.scss +2 -0
  81. package/dev/nswow/typography.scss +3 -0
  82. package/dev/nswow.config.json +293 -0
  83. package/dev/package.json +61 -0
  84. package/dev/pdf/pdf-configuration-debug.xml +6 -0
  85. package/dev/pdf/pdf-configuration.xml +3 -0
  86. package/dev/pdf.ts +1 -0
  87. package/dev/public/.keep +0 -0
  88. package/dev/src/App.vue +44 -0
  89. package/dev/src/Autoload.ts +6 -0
  90. package/dev/src/assets/fonts/Roboto/roboto-v30-latin-300.woff2 +0 -0
  91. package/dev/src/assets/fonts/Roboto/roboto-v30-latin-700.woff2 +0 -0
  92. package/dev/src/assets/fonts/Roboto/roboto-v30-latin-italic.woff2 +0 -0
  93. package/dev/src/assets/fonts/Roboto/roboto-v30-latin-regular.woff2 +0 -0
  94. package/dev/src/assets/images/mms-logo-black.svg +91 -0
  95. package/dev/src/assets/images/mms-logo-white.svg +105 -0
  96. package/dev/src/assets/scss/app.scss +39 -0
  97. package/dev/src/assets/scss/general.scss +17 -0
  98. package/dev/src/assets/scss/ldd.scss +27 -0
  99. package/dev/src/assets/scss/pdf.scss +2 -0
  100. package/dev/src/assets/scss/print.scss +1 -0
  101. package/dev/src/assets/scss/web.scss +1 -0
  102. package/dev/src/assets/scss/word.scss +2 -0
  103. package/dev/src/components/LanguageSwitch.vue +100 -0
  104. package/dev/src/components/MainNavigation.vue +209 -0
  105. package/dev/src/components/MenuItem/MenuArticle.vue +15 -0
  106. package/dev/src/components/MenuItem/MenuEntry.vue +26 -0
  107. package/dev/src/components/MenuItem/MenuExternal.vue +28 -0
  108. package/dev/src/components/MenuItem/index.ts +5 -0
  109. package/dev/src/components/PageFooter.vue +86 -0
  110. package/dev/src/components/PageHeader.vue +149 -0
  111. package/dev/src/components/PageModal.vue +95 -0
  112. package/dev/src/components/PrevNext.vue +144 -0
  113. package/dev/src/components/ScrollToTop.vue +63 -0
  114. package/dev/src/components/SrlPage/KFCApplication/KFCApplication.vue +715 -0
  115. package/dev/src/components/SrlPage/KFCApplication/KFCDropdownCharts.vue +112 -0
  116. package/dev/src/components/SrlPage/KFCApplication/KFCDropdownPeriod.vue +85 -0
  117. package/dev/src/components/SrlPage/KFCApplication/KFCTable.vue +63 -0
  118. package/dev/src/components/SrlPage/KFCApplication/hooks/kfcData.ts +9 -0
  119. package/dev/src/components/SrlPage/KFCApplication/models/KFCApplication.ts +183 -0
  120. package/dev/src/components/SrlPage/KFCApplication/scss/_highcharts-basic.scss +1136 -0
  121. package/dev/src/components/SrlPage/KFCApplication/scss/_highcharts-custom.scss +71 -0
  122. package/dev/src/components/SrlPage/KFCApplication/scss/_highcharts-general.scss +113 -0
  123. package/dev/src/components/SrlPage/KFCApplication/scss/_iz-keyfigure-comparison-dropdown.scss +189 -0
  124. package/dev/src/components/SrlPage/KFCApplication/scss/_iz-keyfigure-comparison.scss +151 -0
  125. package/dev/src/components/SrlPage/KFCApplication/scss/_kfc-loading.scss +40 -0
  126. package/dev/src/components/SrlPage/KFCApplication/scss/_kfc-print.scss +20 -0
  127. package/dev/src/components/SrlPage/KFCApplication/scss/_srl-button-kfc.scss +21 -0
  128. package/dev/src/components/SrlPage/KFCApplication/scss/_variables.scss +10 -0
  129. package/dev/src/components/SrlPage/KFCApplication/services/xlsxParser.ts +194 -0
  130. package/dev/src/components/SrlPage/KFCApplication/theme/SvgColumnView.vue +28 -0
  131. package/dev/src/components/SrlPage/KFCApplication/theme/SvgDownloadChart.vue +26 -0
  132. package/dev/src/components/SrlPage/KFCApplication/theme/SvgDropdown.vue +18 -0
  133. package/dev/src/components/SrlPage/KFCApplication/theme/SvgIndexedValues.vue +18 -0
  134. package/dev/src/components/SrlPage/KFCApplication/theme/SvgLegendSwap.vue +18 -0
  135. package/dev/src/components/SrlPage/KFCApplication/theme/SvgLineView.vue +28 -0
  136. package/dev/src/components/SrlPage/KFCApplication/theme/SvgPDFChart.vue +26 -0
  137. package/dev/src/components/SrlPage/KFCApplication/theme/SvgPrintChart.vue +33 -0
  138. package/dev/src/components/SrlPage/KFCApplication/theme/SvgTableView.vue +67 -0
  139. package/dev/src/components/SrlPage/KFCApplication/utils/XDownloader.js +455 -0
  140. package/dev/src/components/SrlPage/KFCApplication/utils/XDownloaderStyle.js +44 -0
  141. package/dev/src/components/SrlPage/KFCApplication/utils/XTableNamer.js +68 -0
  142. package/dev/src/composables/config.ts +48 -0
  143. package/dev/src/i18n/index.ts +51 -0
  144. package/dev/src/i18n/translation.ts +85 -0
  145. package/dev/src/locales/de.json +15 -0
  146. package/dev/src/locales/en.json +15 -0
  147. package/dev/src/main.ts +16 -0
  148. package/dev/src/router/index.ts +47 -0
  149. package/dev/src/types/nswow.d.ts +73 -0
  150. package/dev/src/utils/variables.ts +13 -0
  151. package/dev/src/views/ArticleView.vue +77 -0
  152. package/dev/src/views/DownloadsView.vue +88 -0
  153. package/dev/src/views/HomeView.vue +35 -0
  154. package/dev/src/views/PageNotFound.vue +73 -0
  155. package/dev/src/views/SearchView.vue +126 -0
  156. package/dev/tsconfig.app.json +16 -0
  157. package/dev/tsconfig.json +14 -0
  158. package/dev/tsconfig.node.json +19 -0
  159. package/dev/tsconfig.vitest.json +11 -0
  160. package/dev/vite.config.ts +27 -0
  161. package/dev/vitest.config.ts +14 -0
  162. package/dev/word.ts +1 -0
  163. package/livingdocs/Buttons/button/app.scss +1 -0
  164. package/livingdocs/Buttons/button/button.html +18 -0
  165. package/livingdocs/Buttons/button/general.scss +33 -0
  166. package/livingdocs/Buttons/button/ldd.scss +1 -0
  167. package/livingdocs/Buttons/button/pdf.scss +1 -0
  168. package/livingdocs/Buttons/button/word.scss +1 -0
  169. package/livingdocs/Buttons/button-container/app.scss +1 -0
  170. package/livingdocs/Buttons/button-container/button-container.html +31 -0
  171. package/livingdocs/Buttons/button-container/general.scss +12 -0
  172. package/livingdocs/Buttons/button-container/ldd.scss +1 -0
  173. package/livingdocs/Buttons/button-container/pdf.scss +3 -0
  174. package/livingdocs/Buttons/button-container/properties.json +19 -0
  175. package/livingdocs/Buttons/button-container/word.scss +3 -0
  176. package/livingdocs/CV/cv-timeline/app.scss +1 -0
  177. package/livingdocs/CV/cv-timeline/cv-timeline.html +19 -0
  178. package/livingdocs/CV/cv-timeline/general.scss +1 -0
  179. package/livingdocs/CV/cv-timeline/ldd.scss +1 -0
  180. package/livingdocs/CV/cv-timeline/pdf.scss +1 -0
  181. package/livingdocs/CV/cv-timeline/print.scss +35 -0
  182. package/livingdocs/CV/cv-timeline/web.scss +27 -0
  183. package/livingdocs/CV/cv-timeline/word.scss +1 -0
  184. package/livingdocs/Container/column-container/column-container.html +44 -0
  185. package/livingdocs/Container/column-container/general.scss +105 -0
  186. package/livingdocs/Container/column-container/properties.json +83 -0
  187. package/livingdocs/Lists/alphanumeric-list-group/alphanumeric-list-group.html +25 -0
  188. package/livingdocs/Lists/alphanumeric-list-group/app.scss +1 -0
  189. package/livingdocs/Lists/alphanumeric-list-group/general.scss +5 -0
  190. package/livingdocs/Lists/alphanumeric-list-group/ldd.scss +1 -0
  191. package/livingdocs/Lists/alphanumeric-list-group/pdf.scss +1 -0
  192. package/livingdocs/Lists/alphanumeric-list-group/print.scss +0 -0
  193. package/livingdocs/Lists/alphanumeric-list-group/web.scss +0 -0
  194. package/livingdocs/Lists/alphanumeric-list-group/word.scss +1 -0
  195. package/livingdocs/Lists/list-item/app.scss +1 -0
  196. package/livingdocs/Lists/list-item/general.scss +4 -0
  197. package/livingdocs/Lists/list-item/ldd.scss +1 -0
  198. package/livingdocs/Lists/list-item/list-item.html +17 -0
  199. package/livingdocs/Lists/list-item/pdf.scss +1 -0
  200. package/livingdocs/Lists/list-item/print.scss +0 -0
  201. package/livingdocs/Lists/list-item/web.scss +0 -0
  202. package/livingdocs/Lists/list-item/word.scss +1 -0
  203. package/livingdocs/Lists/ordered-list-group/app.scss +1 -0
  204. package/livingdocs/Lists/ordered-list-group/general.scss +5 -0
  205. package/livingdocs/Lists/ordered-list-group/ldd.scss +1 -0
  206. package/livingdocs/Lists/ordered-list-group/ordered-list-group.html +25 -0
  207. package/livingdocs/Lists/ordered-list-group/pdf.scss +1 -0
  208. package/livingdocs/Lists/ordered-list-group/print.scss +0 -0
  209. package/livingdocs/Lists/ordered-list-group/web.scss +0 -0
  210. package/livingdocs/Lists/ordered-list-group/word.scss +1 -0
  211. package/livingdocs/Lists/unordered-list-group/app.scss +1 -0
  212. package/livingdocs/Lists/unordered-list-group/general.scss +5 -0
  213. package/livingdocs/Lists/unordered-list-group/ldd.scss +1 -0
  214. package/livingdocs/Lists/unordered-list-group/pdf.scss +1 -0
  215. package/livingdocs/Lists/unordered-list-group/print.scss +0 -0
  216. package/livingdocs/Lists/unordered-list-group/unordered-list-group.html +25 -0
  217. package/livingdocs/Lists/unordered-list-group/web.scss +0 -0
  218. package/livingdocs/Lists/unordered-list-group/word.scss +1 -0
  219. package/livingdocs/Media/chart/app.scss +19 -0
  220. package/livingdocs/Media/chart/chart.html +29 -0
  221. package/livingdocs/Media/chart/general.scss +11 -0
  222. package/livingdocs/Media/chart/ldd.scss +1 -0
  223. package/livingdocs/Media/chart/pdf.scss +9 -0
  224. package/livingdocs/Media/chart/print.scss +0 -0
  225. package/livingdocs/Media/chart/properties.json +41 -0
  226. package/livingdocs/Media/chart/web.scss +0 -0
  227. package/livingdocs/Media/chart/word.scss +1 -0
  228. package/livingdocs/Media/graphic/app.scss +1 -0
  229. package/livingdocs/Media/graphic/general.scss +18 -0
  230. package/livingdocs/Media/graphic/graphic.html +29 -0
  231. package/livingdocs/Media/graphic/ldd.scss +1 -0
  232. package/livingdocs/Media/graphic/pdf.scss +1 -0
  233. package/livingdocs/Media/graphic/print.scss +0 -0
  234. package/livingdocs/Media/graphic/properties.json +36 -0
  235. package/livingdocs/Media/graphic/web.scss +0 -0
  236. package/livingdocs/Media/graphic/word.scss +1 -0
  237. package/livingdocs/Media/image/app.scss +25 -0
  238. package/livingdocs/Media/image/general.scss +11 -0
  239. package/livingdocs/Media/image/image.html +55 -0
  240. package/livingdocs/Media/image/ldd.scss +1 -0
  241. package/livingdocs/Media/image/pdf.scss +1 -0
  242. package/livingdocs/Media/image/print.scss +7 -0
  243. package/livingdocs/Media/image/properties.json +41 -0
  244. package/livingdocs/Media/image/web.scss +0 -0
  245. package/livingdocs/Media/image/word.scss +1 -0
  246. package/livingdocs/Media/nswow-table/app.scss +2 -0
  247. package/livingdocs/Media/nswow-table/app.ts +35 -0
  248. package/livingdocs/Media/nswow-table/general.scss +281 -0
  249. package/livingdocs/Media/nswow-table/ldd.scss +2 -0
  250. package/livingdocs/Media/nswow-table/nswow-table.html +30 -0
  251. package/livingdocs/Media/nswow-table/pdf.scss +8 -0
  252. package/livingdocs/Media/nswow-table/print.scss +0 -0
  253. package/livingdocs/Media/nswow-table/properties.json +66 -0
  254. package/livingdocs/Media/nswow-table/web.scss +23 -0
  255. package/livingdocs/Media/nswow-table/word.scss +2 -0
  256. package/livingdocs/Media/video/app.scss +1 -0
  257. package/livingdocs/Media/video/general.scss +7 -0
  258. package/livingdocs/Media/video/ldd.scss +1 -0
  259. package/livingdocs/Media/video/pdf.scss +1 -0
  260. package/livingdocs/Media/video/print.scss +5 -0
  261. package/livingdocs/Media/video/properties.json +41 -0
  262. package/livingdocs/Media/video/video.html +26 -0
  263. package/livingdocs/Media/video/web.scss +0 -0
  264. package/livingdocs/Media/video/word.scss +1 -0
  265. package/livingdocs/Misc/accordion/accordion.html +56 -0
  266. package/livingdocs/Misc/accordion/app.scss +63 -0
  267. package/livingdocs/Misc/accordion/app.ts +10 -0
  268. package/livingdocs/Misc/accordion/general.scss +44 -0
  269. package/livingdocs/Misc/accordion/ldd.scss +36 -0
  270. package/livingdocs/Misc/accordion/pdf.scss +39 -0
  271. package/livingdocs/Misc/accordion/word.scss +39 -0
  272. package/livingdocs/Misc/anchor/anchor.html +15 -0
  273. package/livingdocs/Misc/anchor/app.scss +10 -0
  274. package/livingdocs/Misc/anchor/app.ts +11 -0
  275. package/livingdocs/Misc/anchor/general.scss +1 -0
  276. package/livingdocs/Misc/anchor/pdf.scss +1 -0
  277. package/livingdocs/Misc/anchor/print.scss +3 -0
  278. package/livingdocs/Misc/anchor/word.scss +1 -0
  279. package/livingdocs/Misc/spacer/app.scss +1 -0
  280. package/livingdocs/Misc/spacer/general.scss +8 -0
  281. package/livingdocs/Misc/spacer/ldd.scss +1 -0
  282. package/livingdocs/Misc/spacer/pdf.scss +1 -0
  283. package/livingdocs/Misc/spacer/print.scss +18 -0
  284. package/livingdocs/Misc/spacer/properties.json +52 -0
  285. package/livingdocs/Misc/spacer/spacer.html +12 -0
  286. package/livingdocs/Misc/spacer/web.scss +18 -0
  287. package/livingdocs/Misc/spacer/word.scss +1 -0
  288. package/livingdocs/PDF_only/pdf-cover/ldd.scss +42 -0
  289. package/livingdocs/PDF_only/pdf-cover/pdf-cover.html +29 -0
  290. package/livingdocs/PDF_only/pdf-cover/pdf.scss +1 -0
  291. package/livingdocs/PDF_only/pdf-cover/print.scss +0 -0
  292. package/livingdocs/PDF_only/pdf-cover/word.scss +1 -0
  293. package/livingdocs/PDF_only/pdf-cover-chapter/ldd.scss +19 -0
  294. package/livingdocs/PDF_only/pdf-cover-chapter/pdf-chapter-cover.html +18 -0
  295. package/livingdocs/PDF_only/pdf-cover-chapter/pdf.scss +1 -0
  296. package/livingdocs/PDF_only/pdf-cover-chapter/print.scss +19 -0
  297. package/livingdocs/PDF_only/pdf-cover-chapter/word.scss +1 -0
  298. package/livingdocs/PDF_only/pdf-pagebreak/general.scss +4 -0
  299. package/livingdocs/PDF_only/pdf-pagebreak/ldd.scss +5 -0
  300. package/livingdocs/PDF_only/pdf-pagebreak/pdf-pagebreak.html +8 -0
  301. package/livingdocs/PDF_only/pdf-publication-title/general.scss +5 -0
  302. package/livingdocs/PDF_only/pdf-publication-title/pdf-publication-title.html +15 -0
  303. package/livingdocs/PDF_only/pdf-toc-item/general.scss +41 -0
  304. package/livingdocs/PDF_only/pdf-toc-item/pdf-toc-item.html +33 -0
  305. package/livingdocs/PDF_only/pdf-toc-item/properties.json +7 -0
  306. package/livingdocs/PDF_only/pdf-toc-item-blank/general.scss +5 -0
  307. package/livingdocs/PDF_only/pdf-toc-item-blank/pdf-toc-item-blank.html +11 -0
  308. package/livingdocs/PDF_only/pdf-toc-item-title/general.scss +5 -0
  309. package/livingdocs/PDF_only/pdf-toc-item-title/pdf-toc-item-title.html +11 -0
  310. package/livingdocs/PDF_only/pdf-toc-page/app.scss +1 -0
  311. package/livingdocs/PDF_only/pdf-toc-page/general.scss +1 -0
  312. package/livingdocs/PDF_only/pdf-toc-page/ldd.scss +1 -0
  313. package/livingdocs/PDF_only/pdf-toc-page/pdf-toc-page.html +33 -0
  314. package/livingdocs/PDF_only/pdf-toc-page/pdf.scss +1 -0
  315. package/livingdocs/PDF_only/pdf-toc-page/properties.json +12 -0
  316. package/livingdocs/PDF_only/pdf-toc-page/word.scss +1 -0
  317. package/livingdocs/PDF_only/pdf-video-link/ldd.scss +16 -0
  318. package/livingdocs/PDF_only/pdf-video-link/pdf-video-link.html +41 -0
  319. package/livingdocs/PDF_only/pdf-video-link/pdf.scss +1 -0
  320. package/livingdocs/PDF_only/pdf-video-link/print.scss +12 -0
  321. package/livingdocs/PDF_only/pdf-video-link/word.scss +1 -0
  322. package/livingdocs/Properties/grid/app.scss +1 -0
  323. package/livingdocs/Properties/grid/general.scss +95 -0
  324. package/livingdocs/Properties/grid/ldd.scss +1 -0
  325. package/livingdocs/Properties/grid/pdf.scss +1 -0
  326. package/livingdocs/Properties/grid/print.scss +94 -0
  327. package/livingdocs/Properties/grid/properties.json +68 -0
  328. package/livingdocs/Properties/grid/web.scss +98 -0
  329. package/livingdocs/Properties/grid/word.scss +1 -0
  330. package/livingdocs/Signatures/signature-container/app.scss +1 -0
  331. package/livingdocs/Signatures/signature-container/general.scss +7 -0
  332. package/livingdocs/Signatures/signature-container/ldd.scss +1 -0
  333. package/livingdocs/Signatures/signature-container/pdf.scss +1 -0
  334. package/livingdocs/Signatures/signature-container/print.scss +0 -0
  335. package/livingdocs/Signatures/signature-container/signature-container.html +30 -0
  336. package/livingdocs/Signatures/signature-container/web.scss +0 -0
  337. package/livingdocs/Signatures/signature-container/word.scss +1 -0
  338. package/livingdocs/Signatures/signature-item/app.scss +1 -0
  339. package/livingdocs/Signatures/signature-item/general.scss +53 -0
  340. package/livingdocs/Signatures/signature-item/ldd.scss +1 -0
  341. package/livingdocs/Signatures/signature-item/pdf.scss +1 -0
  342. package/livingdocs/Signatures/signature-item/print.scss +0 -0
  343. package/livingdocs/Signatures/signature-item/signature-item.html +23 -0
  344. package/livingdocs/Signatures/signature-item/web.scss +0 -0
  345. package/livingdocs/Signatures/signature-item/word.scss +1 -0
  346. package/livingdocs/Text/footnote/app.scss +1 -0
  347. package/livingdocs/Text/footnote/footnote.html +14 -0
  348. package/livingdocs/Text/footnote/general.scss +12 -0
  349. package/livingdocs/Text/footnote/ldd.scss +1 -0
  350. package/livingdocs/Text/footnote/pdf.scss +1 -0
  351. package/livingdocs/Text/footnote/print.scss +36 -0
  352. package/livingdocs/Text/footnote/web.scss +27 -0
  353. package/livingdocs/Text/footnote/word.scss +1 -0
  354. package/livingdocs/Text/lead/general.scss +9 -0
  355. package/livingdocs/Text/lead/lead.html +23 -0
  356. package/livingdocs/Text/paragraph/general.scss +9 -0
  357. package/livingdocs/Text/paragraph/paragraph.html +24 -0
  358. package/livingdocs/Text/quote/general.scss +43 -0
  359. package/livingdocs/Text/quote/properties.json +7 -0
  360. package/livingdocs/Text/quote/quote.html +29 -0
  361. package/livingdocs/Text/quote-with-portrait/general.scss +81 -0
  362. package/livingdocs/Text/quote-with-portrait/properties.json +12 -0
  363. package/livingdocs/Text/quote-with-portrait/quote-with-portrait.html +49 -0
  364. package/livingdocs/Titles/title-h1/general.scss +10 -0
  365. package/livingdocs/Titles/title-h1/title-h1.html +16 -0
  366. package/livingdocs/Titles/title-h2/app.scss +1 -0
  367. package/livingdocs/Titles/title-h2/general.scss +13 -0
  368. package/livingdocs/Titles/title-h2/ldd.scss +1 -0
  369. package/livingdocs/Titles/title-h2/pdf.scss +1 -0
  370. package/livingdocs/Titles/title-h2/print.scss +36 -0
  371. package/livingdocs/Titles/title-h2/title-h2.html +26 -0
  372. package/livingdocs/Titles/title-h2/web.scss +27 -0
  373. package/livingdocs/Titles/title-h2/word.scss +1 -0
  374. package/livingdocs/Titles/title-h3/app.scss +1 -0
  375. package/livingdocs/Titles/title-h3/general.scss +13 -0
  376. package/livingdocs/Titles/title-h3/ldd.scss +1 -0
  377. package/livingdocs/Titles/title-h3/pdf.scss +1 -0
  378. package/livingdocs/Titles/title-h3/print.scss +34 -0
  379. package/livingdocs/Titles/title-h3/title-h3.html +26 -0
  380. package/livingdocs/Titles/title-h3/web.scss +27 -0
  381. package/livingdocs/Titles/title-h3/word.scss +1 -0
  382. package/livingdocs/Titles/title-h4/app.scss +1 -0
  383. package/livingdocs/Titles/title-h4/general.scss +13 -0
  384. package/livingdocs/Titles/title-h4/ldd.scss +1 -0
  385. package/livingdocs/Titles/title-h4/pdf.scss +1 -0
  386. package/livingdocs/Titles/title-h4/print.scss +34 -0
  387. package/livingdocs/Titles/title-h4/title-h4.html +26 -0
  388. package/livingdocs/Titles/title-h4/web.scss +27 -0
  389. package/livingdocs/Titles/title-h4/word.scss +1 -0
  390. package/livingdocs/Titles/title-h5/general.scss +10 -0
  391. package/livingdocs/Titles/title-h5/title-h5.html +16 -0
  392. package/livingdocs/Titles/title-h6/general.scss +10 -0
  393. package/livingdocs/Titles/title-h6/title-h6.html +16 -0
  394. package/package.json +50 -0
  395. package/preparePublish.cjs +95 -0
  396. package/scripts/beaver.d.ts +6 -0
  397. package/scripts/beaver.js +316 -0
  398. package/scripts/build.d.ts +40 -0
  399. package/scripts/build.js +812 -0
  400. package/scripts/colors.d.ts +3 -0
  401. package/scripts/colors.js +27 -0
  402. package/scripts/components.d.ts +43 -0
  403. package/scripts/components.js +566 -0
  404. package/scripts/config.d.ts +1 -0
  405. package/scripts/config.js +1 -0
  406. package/scripts/doPublish.d.ts +1 -0
  407. package/scripts/doPublish.js +43 -0
  408. package/scripts/init.d.ts +9 -0
  409. package/scripts/init.js +45 -0
  410. package/scripts/migrate-livingdocs-build/LICENSE +21 -0
  411. package/scripts/migrate-livingdocs-build/bin/build.d.ts +8 -0
  412. package/scripts/migrate-livingdocs-build/bin/build.js +53 -0
  413. package/scripts/migrate-livingdocs-build/bin/migrate.d.ts +2 -0
  414. package/scripts/migrate-livingdocs-build/bin/migrate.js +43 -0
  415. package/scripts/migrate-livingdocs-build/dev/build/v1.d.ts +9 -0
  416. package/scripts/migrate-livingdocs-build/dev/build/v1.d.ts.map +1 -0
  417. package/scripts/migrate-livingdocs-build/dev/build/v1.js +51 -0
  418. package/scripts/migrate-livingdocs-build/dev/build/v2.d.ts +2 -0
  419. package/scripts/migrate-livingdocs-build/dev/build/v2.d.ts.map +1 -0
  420. package/scripts/migrate-livingdocs-build/dev/build/v2.js +44 -0
  421. package/scripts/migrate-livingdocs-build/dev/build/zip-archive.d.ts +2 -0
  422. package/scripts/migrate-livingdocs-build/dev/build/zip-archive.d.ts.map +1 -0
  423. package/scripts/migrate-livingdocs-build/dev/build/zip-archive.js +39 -0
  424. package/scripts/migrate-livingdocs-build/dev/build.d.ts +9 -0
  425. package/scripts/migrate-livingdocs-build/dev/build.js +7 -0
  426. package/scripts/migrate-livingdocs-build/dev/configuration-defaults.d.ts +20 -0
  427. package/scripts/migrate-livingdocs-build/dev/configuration-defaults.js +18 -0
  428. package/scripts/migrate-livingdocs-build/dev/configuration.d.ts +2 -0
  429. package/scripts/migrate-livingdocs-build/dev/configuration.js +34 -0
  430. package/scripts/migrate-livingdocs-build/dev/lib.d.ts +33 -0
  431. package/scripts/migrate-livingdocs-build/dev/lib.js +251 -0
  432. package/scripts/migrate-livingdocs-build/dev/livingdocs-design.d.ts +9 -0
  433. package/scripts/migrate-livingdocs-build/dev/livingdocs-design.js +80 -0
  434. package/scripts/migrate-livingdocs-build/dev/logger.d.ts +2 -0
  435. package/scripts/migrate-livingdocs-build/dev/logger.js +16 -0
  436. package/scripts/migrate-livingdocs-build/dev/migrate.d.ts +22 -0
  437. package/scripts/migrate-livingdocs-build/dev/migrate.js +241 -0
  438. package/scripts/migrate-livingdocs-build/readme.md +62 -0
  439. package/scripts/preparePublish.d.ts +1 -0
  440. package/scripts/preparePublish.js +88 -0
  441. package/scripts/renamePackage.d.ts +1 -0
  442. package/scripts/renamePackage.js +48 -0
  443. package/scripts/utils.d.ts +49 -0
  444. package/scripts/utils.js +106 -0
  445. package/scripts/vite.d.ts +10 -0
  446. package/scripts/vite.js +58 -0
  447. package/scss/colors/functions.scss +18 -0
  448. package/scss/colors/index.scss +3 -0
  449. package/scss/colors/mixins.scss +45 -0
  450. package/scss/colors/variables.scss +6 -0
  451. package/scss/config.scss +7 -0
  452. package/scss/core-styles.scss +22 -0
  453. package/scss/fonts/functions.scss +21 -0
  454. package/scss/fonts/index.scss +3 -0
  455. package/scss/fonts/mixins.scss +31 -0
  456. package/scss/fonts/variables.scss +8 -0
  457. package/scss/grid/functions.scss +29 -0
  458. package/scss/grid/index.scss +3 -0
  459. package/scss/grid/mixins.scss +388 -0
  460. package/scss/grid/variables.scss +10 -0
  461. package/scss/helpers/functions.scss +0 -0
  462. package/scss/helpers/index.scss +3 -0
  463. package/scss/helpers/mixins.scss +87 -0
  464. package/scss/helpers/variables.scss +7 -0
  465. package/scss/index.scss +8 -0
  466. package/scss/meta/functions.scss +64 -0
  467. package/scss/meta/index.scss +3 -0
  468. package/scss/meta/mixins.scss +6 -0
  469. package/scss/meta/variables.scss +8 -0
  470. package/scss/spacer/functions.scss +9 -0
  471. package/scss/spacer/index.scss +3 -0
  472. package/scss/spacer/mixins.scss +236 -0
  473. package/scss/spacer/variables.scss +6 -0
  474. package/scss/system/functions.scss +77 -0
  475. package/scss/system/index.scss +3 -0
  476. package/scss/system/mixins.scss +27 -0
  477. package/scss/system/root.scss +39 -0
  478. package/scss/system/variables.scss +13 -0
  479. package/scss/typography/functions.scss +63 -0
  480. package/scss/typography/index.scss +3 -0
  481. package/scss/typography/mixins.scss +262 -0
  482. package/scss/typography/variables.scss +11 -0
  483. package/tags.txt +1 -0
@@ -0,0 +1,45 @@
1
+ import { resolve, dirname } from 'node:path';
2
+ import fs from 'fs-extra';
3
+ import { statSync, readFileSync, writeFileSync } from 'node:fs';
4
+ import { fileURLToPath } from 'node:url';
5
+ import { createRequire } from 'node:module';
6
+ import writeJson from 'write-json';
7
+
8
+ const require = createRequire(import.meta.url);
9
+
10
+ const __filename = fileURLToPath(import.meta.url);
11
+ const __dirname = dirname(__filename);
12
+ /**
13
+ * Initializes a new project in the given folder with the provided options.
14
+ *
15
+ * @param {string} folder - The path to the folder where the project will be created.
16
+ * @param {object} options - Additional options for the initialization process.
17
+ *
18
+ * @return {Promise<void>} - A promise that resolves when the project initialization is complete.
19
+ */
20
+ async function init(folder, options) {
21
+ const projectPath = resolve(process.cwd(), folder);
22
+
23
+ try {
24
+ const stat = statSync(projectPath);
25
+ console.error(`Folder ${projectPath} already exist!`);
26
+ } catch (e) {
27
+ await fs.copy(resolve(__dirname, '../dev/'), projectPath).then(async () => {
28
+ const packageJsonFile = `${projectPath}/package.json`;
29
+ const packageJson = JSON.parse(await readFileSync(packageJsonFile));
30
+ packageJson.name = folder;
31
+ const writeJson = require('write-json');
32
+ writeJson.sync(packageJsonFile, packageJson);
33
+
34
+ await writeFileSync(
35
+ `${projectPath}/.gitignore`,
36
+ `/.output/\n/.nswow/\n/node_modules/\n/public/downloads/\n/public/html/\n/public/images/\n/public/json/\n/public/exclude/\n/dev-dist/`,
37
+ );
38
+ console.log(`Project has created`);
39
+ console.log(`cd ${folder}`);
40
+ console.log(`npm install`);
41
+ });
42
+ }
43
+ }
44
+
45
+ export { init };
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 mms solutions ag
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,8 @@
1
+ #! /usr/bin/env node
2
+ export default build;
3
+ /**
4
+ * Builds the Livingdocs design and components based on the configuration.
5
+ *
6
+ * @returns {boolean} - Indicates whether the build was successful or not.
7
+ */
8
+ export function build(): boolean;
@@ -0,0 +1,53 @@
1
+ #! /usr/bin/env node
2
+ import LivingdocsDesign from '../dev/livingdocs-design.js';
3
+ import configuration from '../dev/configuration.js';
4
+ import logger from '../dev/logger.js';
5
+ import Build from '../dev/build.js';
6
+
7
+ /**
8
+ * Builds the Livingdocs design and components based on the configuration.
9
+ *
10
+ * @returns {boolean} - Indicates whether the build was successful or not.
11
+ */
12
+ async function build() {
13
+ try {
14
+ const designData = LivingdocsDesign.loadDesign(configuration);
15
+ const componentData = LivingdocsDesign.loadComponents(configuration);
16
+
17
+ if (!designData) {
18
+ throw {
19
+ message: 'design is empty',
20
+ };
21
+ }
22
+
23
+ if (!componentData) {
24
+ throw {
25
+ message: 'no components found',
26
+ };
27
+ }
28
+
29
+ if (!!designData && designData['v'] === 2) {
30
+ logger.info(`Building ${designData.name} on V2`);
31
+ Build.BuildV2(designData, componentData);
32
+ } else {
33
+ logger.info(`Building ${designData.name} on V1`);
34
+ Build.BuildV1(designData, componentData);
35
+ }
36
+
37
+ Build.zipArchive();
38
+ } catch (error) {
39
+ if (error.message) {
40
+ logger.error(error.message);
41
+ }
42
+
43
+ // show js errors
44
+ if (error.error) {
45
+ logger.error(error.error);
46
+ }
47
+ }
48
+
49
+ return true;
50
+ }
51
+
52
+ export default build;
53
+ export { build };
@@ -0,0 +1,2 @@
1
+ #! /usr/bin/env node
2
+ export {};
@@ -0,0 +1,43 @@
1
+ #! /usr/bin/env node
2
+
3
+ import configuration from '../dev/configuration.js';
4
+ import LivingdocsDesign from '../dev/livingdocs-design.js';
5
+ import logger from '../dev/logger.js';
6
+ import Migrate from '../dev/migrate.js';
7
+
8
+ console.log('migrate command here');
9
+
10
+ try {
11
+ const designData = LivingdocsDesign.loadDesign(configuration);
12
+ const componentData = LivingdocsDesign.loadComponents(configuration);
13
+
14
+ if (!designData) {
15
+ throw {
16
+ message: 'design is empty',
17
+ };
18
+ }
19
+
20
+ if (!componentData) {
21
+ throw {
22
+ message: 'no components found',
23
+ };
24
+ }
25
+
26
+ const v2Design = Migrate.migrateDesign(designData);
27
+ // logger.info(JSON.stringify(v2Design));
28
+ const v2Components = Migrate.migrateComponents(componentData);
29
+
30
+ Migrate.writeDesign(v2Design);
31
+ Migrate.writeComponents(v2Components);
32
+
33
+ Migrate.writeManualReviews();
34
+ } catch (error) {
35
+ if (error.message) {
36
+ logger.error(error.message);
37
+ }
38
+
39
+ // show js errors
40
+ if (error.error) {
41
+ logger.error(error.error);
42
+ }
43
+ }
@@ -0,0 +1,9 @@
1
+ export default BuildV1;
2
+ /**
3
+ * Builds and packages a design version.
4
+ *
5
+ * @param {object} designData - The design data object.
6
+ * @param {object} components - The components object.
7
+ * @returns {void}
8
+ */
9
+ declare function BuildV1(designData: object, components: object): void;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../../../scripts/migrate-livingdocs-build/dev/build/v1.js"],"names":[],"mappings":";AAIA;;;;;;GAMG;AACH,qCAJW,MAAM,cACN,MAAM,GACJ,IAAI,CA6BhB"}
@@ -0,0 +1,51 @@
1
+ import configuration from '../configuration.js';
2
+ import lib from '../lib.js';
3
+ import fs from 'fs';
4
+
5
+ /**
6
+ * Builds and packages a design version.
7
+ *
8
+ * @param {object} designData - The design data object.
9
+ * @param {object} components - The components object.
10
+ * @returns {void}
11
+ */
12
+ const BuildV1 = (designData, components) => {
13
+ // critical tests
14
+ lib.testComponentExistV1(designData, components);
15
+ lib.testPropertyExistV1(designData, components);
16
+
17
+ // // logs when thing is never used
18
+ lib.testComponentsAllUsedV1(designData, components);
19
+ lib.testDesignPropertiesV1(designData, components);
20
+
21
+ // // cleanup dist and dest zip
22
+ lib.removeFolder(configuration.build.dist);
23
+ lib.removeFile(configuration.build.dest + configuration.build.archiveName);
24
+
25
+ // // create and make dist
26
+ fs.mkdirSync(configuration.build.dist);
27
+
28
+ // // copy folders
29
+ configuration.build.requiredFolders.forEach((folder) => {
30
+ const splitPath = folder.split('/');
31
+ fs.cpSync(
32
+ folder,
33
+ configuration.build.dist + '/' + splitPath[splitPath.length - 1],
34
+ { recursive: true },
35
+ );
36
+ });
37
+
38
+ const newDesignData = lib.mergeDesignV1(designData, components);
39
+
40
+ // // write json files
41
+ fs.writeFileSync(
42
+ configuration.build.dist + '/design.json',
43
+ JSON.stringify(newDesignData),
44
+ );
45
+ fs.writeFileSync(
46
+ configuration.build.dist + '/design.js',
47
+ `(function () { var designJSON = ${JSON.stringify(newDesignData)}; if(typeof module !== 'undefined' && module.exports) {return module.exports = designJSON;} else { this.design = this.design || {}; this.design['${newDesignData.name}'] = designJSON;} }).call(this);`,
48
+ );
49
+ };
50
+
51
+ export default BuildV1;
@@ -0,0 +1,2 @@
1
+ export default BuildV2;
2
+ declare function BuildV2(designData: any, components: any): void;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2.d.ts","sourceRoot":"","sources":["../../../../scripts/migrate-livingdocs-build/dev/build/v2.js"],"names":[],"mappings":";AAIA,iEA2BC"}
@@ -0,0 +1,44 @@
1
+ import configuration from '../configuration.js';
2
+ import lib from '../lib.js';
3
+ import fs from 'fs';
4
+
5
+ const BuildV2 = (designData, components) => {
6
+ // critical tests
7
+ lib.testComponentExistV2(designData, components);
8
+ lib.testPropertyExistV2(designData, components);
9
+
10
+ // logs when thing is never used
11
+ lib.testComponentsAllUsedV2(designData, components);
12
+ lib.testDesignPropertiesV2(designData, components);
13
+
14
+ // cleanup dist and dest zip
15
+ lib.removeFolder(configuration.build.dist);
16
+ lib.removeFile(configuration.build.dest + configuration.build.archiveName);
17
+
18
+ // create and make dist
19
+ fs.mkdirSync(configuration.build.dist);
20
+
21
+ // copy folders
22
+ configuration.build.requiredFolders.forEach((folder) => {
23
+ const splitPath = folder.split('/');
24
+ fs.cpSync(
25
+ folder,
26
+ configuration.build.dist + '/' + splitPath[splitPath.length - 1],
27
+ { recursive: true },
28
+ );
29
+ });
30
+
31
+ const newDesignData = lib.mergeDesignV2(designData, components);
32
+
33
+ // write json files
34
+ fs.writeFileSync(
35
+ configuration.build.dist + '/design.json',
36
+ JSON.stringify(newDesignData),
37
+ );
38
+ fs.writeFileSync(
39
+ configuration.build.dist + '/design.js',
40
+ `(function () { var designJSON = ${JSON.stringify(newDesignData)}; if(typeof module !== 'undefined' && module.exports) {return module.exports = designJSON;} else { this.design = this.design || {}; this.design['${newDesignData.name}'] = designJSON;} }).call(this);`,
41
+ );
42
+ };
43
+
44
+ export default BuildV2;
@@ -0,0 +1,2 @@
1
+ export default zipArchive;
2
+ declare function zipArchive(): void;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zip-archive.d.ts","sourceRoot":"","sources":["../../../../scripts/migrate-livingdocs-build/dev/build/zip-archive.js"],"names":[],"mappings":";AAKA,oCA4BC"}
@@ -0,0 +1,39 @@
1
+ import configuration from '../configuration.js';
2
+ import fs from 'fs';
3
+ import archiver from 'archiver';
4
+ import logger from '../logger.js';
5
+
6
+ const zipArchive = () => {
7
+ // zip em up
8
+ var output = fs.createWriteStream(
9
+ `${configuration.build.dest}/${configuration.build.archiveName}`,
10
+ );
11
+
12
+ output.on('close', function () {
13
+ logger.info('Archiver: ' + archive.pointer() + ' total bytes');
14
+ logger.info(
15
+ 'Archiver has been finalized and the output file descriptor has closed.',
16
+ );
17
+ });
18
+
19
+ var archive = archiver('zip');
20
+
21
+ archive.on('error', (err) => {
22
+ logger.error(err);
23
+ throw {
24
+ message: 'failed to create archive',
25
+ error: err,
26
+ };
27
+ // throw err;
28
+ });
29
+
30
+ archive.pipe(output);
31
+
32
+ // append files from a sub-directory, putting its contents at the root of archive
33
+ archive.directory(configuration.build.dist, false);
34
+ archive.finalize();
35
+
36
+ return;
37
+ };
38
+
39
+ export default zipArchive;
@@ -0,0 +1,9 @@
1
+ export default Build;
2
+ declare namespace Build {
3
+ export { BuildV1 };
4
+ export { BuildV2 };
5
+ export { zipArchive };
6
+ }
7
+ import BuildV1 from './build/v1.js';
8
+ import BuildV2 from './build/v2.js';
9
+ import zipArchive from './build/zip-archive.js';
@@ -0,0 +1,7 @@
1
+ import BuildV1 from './build/v1.js';
2
+ import BuildV2 from './build/v2.js';
3
+ import zipArchive from './build/zip-archive.js';
4
+
5
+ const Build = { BuildV1, BuildV2, zipArchive };
6
+
7
+ export default Build;
@@ -0,0 +1,20 @@
1
+ export default configurationDefaults;
2
+ declare namespace configurationDefaults {
3
+ let configurationSelector: string;
4
+ namespace build {
5
+ let design: string;
6
+ let components: string;
7
+ let requiredFolders: string[];
8
+ let dist: string;
9
+ let dest: string;
10
+ let archiveName: string;
11
+ }
12
+ namespace migration {
13
+ let design_1: string;
14
+ export { design_1 as design };
15
+ let components_1: string;
16
+ export { components_1 as components };
17
+ let dest_1: string;
18
+ export { dest_1 as dest };
19
+ }
20
+ }
@@ -0,0 +1,18 @@
1
+ const configurationDefaults = {
2
+ configurationSelector: '[type="ld-conf"]',
3
+ build: {
4
+ design: './livingdocs.config.json',
5
+ components: './livingdocs/**/*.html',
6
+ requiredFolders: ['./.output/ldd/assets'],
7
+ dist: './.output/livingdocs',
8
+ dest: './',
9
+ archiveName: './.output/livingdocs.zip',
10
+ },
11
+ migration: {
12
+ design: './livingdocs.config.json',
13
+ components: './livingdocs/**/*.html',
14
+ dest: './design-v2',
15
+ },
16
+ };
17
+
18
+ export default configurationDefaults;
@@ -0,0 +1,2 @@
1
+ export default configuration;
2
+ declare const configuration: any;
@@ -0,0 +1,34 @@
1
+ import configurationDefaults from './configuration-defaults.js';
2
+ import _ from 'lodash';
3
+
4
+ /*
5
+ import fs from "fs";
6
+ import path from "path";
7
+
8
+
9
+ let jsonPackageConfiguration;
10
+ const jsonpath = path.normalize(process.cwd() + "/package.json");
11
+
12
+ try {
13
+ jsonPackageConfiguration = JSON.parse(fs.readFileSync(jsonpath).toString());
14
+ } catch (error) {
15
+ throw {
16
+ message: "package json not found at " + jsonpath,
17
+ type: "error",
18
+ error: error,
19
+ };
20
+ }
21
+
22
+ const packageConfiguration = jsonPackageConfiguration["nhs-design-builder"] ? jsonPackageConfiguration["nhs-design-builder"] : {};
23
+
24
+ */
25
+ const packageConfiguration = {};
26
+ const configuration = _.merge(configurationDefaults, packageConfiguration);
27
+
28
+ /*
29
+ if (!!packageConfiguration?.build?.requiredFolders) {
30
+ configuration.build.requiredFolders = packageConfiguration.build.requiredFolders;
31
+ }
32
+ */
33
+
34
+ export default configuration;
@@ -0,0 +1,33 @@
1
+ export default lib;
2
+ declare namespace lib {
3
+ export { bFileExists };
4
+ export { removeFolder };
5
+ export { removeFile };
6
+ export { getAllComponentPaths };
7
+ export { minifyHtml };
8
+ export { mergeDesignV1 };
9
+ export { mergeDesignV2 };
10
+ export { testComponentExistV1 };
11
+ export { testComponentExistV2 };
12
+ export { testPropertyExistV1 };
13
+ export { testPropertyExistV2 };
14
+ export { testComponentsAllUsedV1 };
15
+ export { testComponentsAllUsedV2 };
16
+ export { testDesignPropertiesV1 };
17
+ export { testDesignPropertiesV2 };
18
+ }
19
+ declare function bFileExists(path: any): any;
20
+ declare function removeFolder(path: any): void;
21
+ declare function removeFile(path: any): void;
22
+ declare function getAllComponentPaths(componentPath: any): string[];
23
+ declare function minifyHtml(s: any): any;
24
+ declare function mergeDesignV1(designData: any, components: any): any;
25
+ declare function mergeDesignV2(designData: any, components: any): any;
26
+ declare function testComponentExistV1(designData: any, components: any): void;
27
+ declare function testComponentExistV2(designData: any, components: any): boolean;
28
+ declare function testPropertyExistV1(designData: any, components: any): void;
29
+ declare function testPropertyExistV2(designData: any, components: any): void;
30
+ declare function testComponentsAllUsedV1(designData: any, components: any): void;
31
+ declare function testComponentsAllUsedV2(designData: any, components: any): void;
32
+ declare function testDesignPropertiesV1(designData: any, components: any): void;
33
+ declare function testDesignPropertiesV2(designData: any, components: any): void;