@simple-reporting/base 1.0.32 → 1.0.34

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 (104) hide show
  1. package/dev/package.json +2 -1
  2. package/dev/pdf/pdf-configuration-debug.xml +3 -0
  3. package/dev/pdf/pdf-configuration.xml +3 -0
  4. package/dev/src/assets/scss/app.scss +5 -0
  5. package/dev/src/assets/scss/components/note/accordion.scss +1 -1
  6. package/dev/src/assets/scss/pdf.scss +4 -0
  7. package/dev/srl.config.json +1 -1
  8. package/dev/vite.config.ts +4 -1
  9. package/devTools/SrlDevTools.vue +234 -0
  10. package/devTools/assets/Svg/Check.vue +7 -0
  11. package/devTools/assets/Svg/Close.vue +5 -0
  12. package/devTools/assets/Svg/Eye.vue +16 -0
  13. package/devTools/assets/Svg/Info.vue +7 -0
  14. package/devTools/assets/Svg/Settings.vue +5 -0
  15. package/devTools/assets/Svg/Uncheck.vue +7 -0
  16. package/devTools/box/Content.vue +93 -0
  17. package/devTools/components/BoxPanel.vue +23 -0
  18. package/devTools/components/Content.vue +17 -0
  19. package/devTools/config.ts +34 -0
  20. package/devTools/dialog/Colors.vue +33 -0
  21. package/devTools/dialog/Grid.vue +111 -0
  22. package/devTools/dialog/Settings.vue +62 -0
  23. package/devTools/dialog/Spacer.vue +110 -0
  24. package/devTools/dialog/ViewPort.vue +33 -0
  25. package/devTools/panel/Content.vue +50 -0
  26. package/devTools/settings.ts +28 -0
  27. package/devTools/utils/index.ts +7 -0
  28. package/devTools/utils/wheelResizeHandler.ts +19 -0
  29. package/livingdocs/010.Titles/020.title-h2/scss/editor.scss +8 -0
  30. package/livingdocs/010.Titles/020.title-h2/scss/general.scss +0 -11
  31. package/livingdocs/010.Titles/020.title-h2/scss/pdf.scss +16 -0
  32. package/livingdocs/010.Titles/020.title-h2/scss/web.scss +16 -0
  33. package/livingdocs/010.Titles/030.title-h3/scss/editor.scss +8 -0
  34. package/livingdocs/010.Titles/030.title-h3/scss/general.scss +0 -11
  35. package/livingdocs/010.Titles/030.title-h3/scss/pdf.scss +16 -0
  36. package/livingdocs/010.Titles/030.title-h3/scss/web.scss +16 -0
  37. package/livingdocs/010.Titles/040.title-h4/scss/editor.scss +8 -0
  38. package/livingdocs/010.Titles/040.title-h4/scss/general.scss +0 -11
  39. package/livingdocs/010.Titles/040.title-h4/scss/pdf.scss +16 -0
  40. package/livingdocs/010.Titles/040.title-h4/scss/web.scss +16 -0
  41. package/livingdocs/020.Text/060.quote-with-portrait/scss/web.scss +1 -1
  42. package/livingdocs/020.Text/070.footnote-container/scss/web.scss +1 -1
  43. package/livingdocs/030.Lists/010.unordered-list/scss/pdf.scss +4 -0
  44. package/livingdocs/030.Lists/020.ordered-list/scss/pdf.scss +5 -0
  45. package/livingdocs/030.Lists/030.alphanumeric-list/scss/pdf.scss +5 -0
  46. package/livingdocs/030.Lists/040.list-item/scss/pdf.scss +4 -0
  47. package/livingdocs/040.Media/010.table/scss/general.scss +6 -7
  48. package/livingdocs/040.Media/010.table/scss/web.scss +7 -1
  49. package/livingdocs/040.Media/010.table/scss/xbrl.scss +16 -1
  50. package/livingdocs/040.Media/020.image/scss/editor.scss +1 -1
  51. package/livingdocs/040.Media/020.image/scss/general.scss +1 -1
  52. package/livingdocs/040.Media/020.image/scss/web.scss +1 -1
  53. package/livingdocs/040.Media/030.video/scss/web.scss +1 -1
  54. package/livingdocs/060.Buttons/020.button/scss/general.scss +1 -1
  55. package/livingdocs/080.CV/010.cv/scss/web.scss +1 -1
  56. package/livingdocs/080.CV/020.cv-time-span/scss/web.scss +1 -1
  57. package/livingdocs/100.Misc/010.anchor/anchor.html +7 -2
  58. package/livingdocs/110.PDF/010.pdf-pagebreak/pdf-pagebreak.html +7 -2
  59. package/livingdocs/110.PDF/020.pdf-column-container/ld-conf.json +2 -1
  60. package/livingdocs/110.PDF/020.pdf-column-container/pdf-column-container.html +21 -3
  61. package/livingdocs/110.PDF/020.pdf-column-container/properties.json +15 -0
  62. package/livingdocs/110.PDF/020.pdf-column-container/scss/editor.scss +8 -0
  63. package/livingdocs/110.PDF/020.pdf-column-container/scss/pdf.scss +14 -0
  64. package/livingdocs/110.PDF/021.pdf-columnbreak/ld-conf.json +5 -0
  65. package/livingdocs/110.PDF/021.pdf-columnbreak/pdf-columnbreak.html +10 -0
  66. package/livingdocs/110.PDF/021.pdf-columnbreak/scss/editor.scss +12 -0
  67. package/livingdocs/110.PDF/021.pdf-columnbreak/scss/general.scss +5 -0
  68. package/livingdocs/110.PDF/021.pdf-columnbreak/scss/pdf.scss +6 -0
  69. package/livingdocs/110.PDF/021.pdf-columnbreak/scss/web.scss +1 -0
  70. package/livingdocs/110.PDF/021.pdf-columnbreak/scss/word.scss +0 -0
  71. package/livingdocs/110.PDF/021.pdf-columnbreak/scss/xbrl.scss +1 -0
  72. package/livingdocs/110.PDF/030.pdf-publication-title/pdf-publication-title.html +1 -0
  73. package/livingdocs/110.PDF/040.pdf-chapter-title/pdf-chapter-title.html +1 -0
  74. package/livingdocs/110.PDF/050.pdf-chapter-navigation-container/pdf-chapter-navigation.html +1 -0
  75. package/livingdocs/110.PDF/050.pdf-chapter-navigation-container/scss/editor.scss +1 -1
  76. package/livingdocs/110.PDF/060.pdf-chapter-navigation-item/pdf-chapter-navigation-item.html +2 -0
  77. package/livingdocs/110.PDF/070.pdf-cover/pdf-cover.html +7 -1
  78. package/livingdocs/110.PDF/080.pdf-toc-page/pdf-toc-page.html +7 -1
  79. package/livingdocs/110.PDF/080.pdf-toc-page/scss/pdf.scss +7 -0
  80. package/livingdocs/110.PDF/090.pdf-toc-item-title/pdf-toc-item-title.html +7 -1
  81. package/livingdocs/110.PDF/100.pdf-toc-item/pdf-toc-item.html +8 -1
  82. package/livingdocs/110.PDF/100.pdf-toc-item/scss/general.scss +6 -1
  83. package/livingdocs/110.PDF/100.pdf-toc-item/scss/pdf.scss +10 -0
  84. package/package.json +8 -3
  85. package/plugins/viteSrlPlugin.js +19 -6
  86. package/scripts/build.d.ts +2 -0
  87. package/scripts/build.js +68 -3
  88. package/scripts/css/stripMediaFromCss.d.ts +17 -0
  89. package/scripts/css/stripMediaFromCss.js +147 -0
  90. package/scripts/vue/components.js +9 -2
  91. package/srl/.srl/App.vue +7 -1
  92. package/srl/.srl/components/Srl/Article/Accordion.vue +1 -0
  93. package/srl/.srl/components/Srl/Article/Root.vue +4 -4
  94. package/srl/.srl/components/Srl/Category/Accordion/Toggle.vue +2 -1
  95. package/srl/.srl/components/Srl/Menu/Item.vue +58 -24
  96. package/srl/.srl/components/Srl/Menu.vue +43 -17
  97. package/srl/.srl/composables/config.ts +3 -2
  98. package/srl/.srl/composables/index.ts +3 -0
  99. package/srl/.srl/composables/menu.ts +6 -3
  100. package/srl/.srl/composables/srlConfig.ts +3 -0
  101. package/srl/.srl/types/global.d.ts +11 -0
  102. package/srl/.srl/types/nswow.d.ts +5 -0
  103. package/srl/.srl/utils/index.ts +27 -25
  104. package/srl/.srl/utils/object.ts +60 -0
@@ -270,15 +270,18 @@ td {
270
270
  text-align: right;
271
271
  }
272
272
 
273
- &[class*="vatop"] {
273
+ &[class*='srl-vertical-top'],
274
+ &[class*='vatop'] {
274
275
  vertical-align: top;
275
276
  }
276
277
 
277
- &[class*="vamiddle"] {
278
+ &[class*='srl-vertical-middle'],
279
+ &[class*='vamiddle'] {
278
280
  vertical-align: middle;
279
281
  }
280
282
 
281
- &[class*="vabottom"] {
283
+ &[class*='srl-vertical-bottom'],
284
+ &[class*='vabottom'] {
282
285
  vertical-align: bottom;
283
286
  }
284
287
 
@@ -348,10 +351,6 @@ td {
348
351
  cursor: pointer;
349
352
  transition: color 0.3s ease;
350
353
 
351
- @media (prefers-reduced-motion: reduce) {
352
- transition-duration: 0s;
353
- }
354
-
355
354
  &:hover {
356
355
  color: srl.colors-primary-1000();
357
356
  }
@@ -1,5 +1,5 @@
1
1
  @use "srl";
2
- @use "assets/scss/placeholders";
2
+ @use "@/assets/scss/placeholders";
3
3
 
4
4
  .srl-table__container > div {
5
5
  @extend %srl-grid-base;
@@ -11,4 +11,10 @@
11
11
  .srl-wide-width & {
12
12
  @extend %srl-wide-width;
13
13
  }
14
+ }
15
+
16
+ .note-link {
17
+ @media (prefers-reduced-motion: reduce) {
18
+ transition-duration: 0s;
19
+ }
14
20
  }
@@ -1 +1,16 @@
1
- @use 'general';
1
+ @use 'general';
2
+ @use "@/assets/scss/placeholders";
3
+
4
+ .srl-table__container > div,
5
+ .srl-table__container > .srl-table {
6
+ @extend %srl-grid-base;
7
+ }
8
+
9
+ .srl-table-container,
10
+ .srl-table__container > .srl-table > table {
11
+ @extend %srl-regular-width;
12
+
13
+ .srl-wide-width & {
14
+ @extend %srl-wide-width;
15
+ }
16
+ }
@@ -1,6 +1,6 @@
1
1
  @use "srl";
2
2
  @use "web";
3
- @use "assets/scss/placeholders";
3
+ @use "@/assets/scss/placeholders";
4
4
 
5
5
  .srl-image__alt-text{
6
6
  @include srl.typography-caption();
@@ -1,5 +1,5 @@
1
1
  @use 'srl';
2
- @use "assets/scss/placeholders";
2
+ @use "@/assets/scss/placeholders";
3
3
 
4
4
  .srl-grid--media {
5
5
  .srl-full-width & {
@@ -1,5 +1,5 @@
1
1
  @use "srl";
2
- @use "assets/scss/placeholders";
2
+ @use "@/assets/scss/placeholders";
3
3
 
4
4
  .srl-image__caption-text {
5
5
  @extend %srl-regular-width;
@@ -1,5 +1,5 @@
1
1
  @use "srl";
2
- @use "assets/scss/placeholders";
2
+ @use "@/assets/scss/placeholders";
3
3
 
4
4
  .srl-grid--media {
5
5
  .srl-full-width & {
@@ -1,5 +1,5 @@
1
1
  @use "srl";
2
- @use "assets/scss/placeholders";
2
+ @use "@/assets/scss/placeholders";
3
3
 
4
4
  .srl-button {
5
5
  display: flex;
@@ -1,5 +1,5 @@
1
1
  @use 'srl';
2
- @use "assets/scss/placeholders";
2
+ @use "@/assets/scss/placeholders";
3
3
 
4
4
  .srl-cv__inner {
5
5
  display: grid;
@@ -1,5 +1,5 @@
1
1
  @use 'srl';
2
- @use "assets/scss/placeholders";
2
+ @use "@/assets/scss/placeholders";
3
3
 
4
4
  .srl-cv-time-span__years {
5
5
  width: srl.system-size-unit(110);
@@ -1,5 +1,10 @@
1
- <p class="srl-anchor srl-editor-component" data-remove-from-translate-plus="true" data-remove-from-word="complete" data-remove-from-xhtml="complete"
2
- data-is-anchor="true">
1
+ <p
2
+ class="srl-anchor srl-editor-component"
3
+ data-remove-from-translate-plus="true"
4
+ data-remove-from-word="complete"
5
+ data-remove-from-xhtml="complete"
6
+ data-is-anchor="true"
7
+ >
3
8
  <span class="srl-anchor__text srl-editor-component__text" doc-editable="anchor-text">
4
9
  Must start with a letter (A–Z or a–z); a number is not allowed. After the
5
10
  first letter, any combination of letters (a–z, A–Z), digits (0–9), hyphens
@@ -1,5 +1,10 @@
1
- <div class="srl-pdf-pagebreak srl-editor-component" data-remove-from-web="complete">
2
- <span class="srl-pdf-pagebreak__editor-text srl-editor-component__text" data-remove-from-pdf="complete" data-remove-from-word="complete">
1
+ <div
2
+ class="srl-pdf-pagebreak srl-editor-component"
3
+ data-remove-from-web="complete"
4
+ data-remove-from-word="complete"
5
+ data-remove-from-xhtml="complete"
6
+ >
7
+ <span class="srl-pdf-pagebreak__editor-text srl-editor-component__text" data-remove-from-pdf="complete">
3
8
  PDF page break
4
9
  </span>
5
10
  </div>
@@ -1,4 +1,5 @@
1
1
  {
2
2
  "name": "pdf-column-container",
3
- "label": "PDF column container"
3
+ "label": "PDF column container",
4
+ "properties": ["column-behaviour", "width-reduced"]
4
5
  }
@@ -1,5 +1,23 @@
1
1
  <div
2
- class="srl-pdf-column-container"
2
+ class="srl-grid srl-pdf-column-container"
3
3
  data-remove-from-web="transient"
4
- doc-container="column-container"
5
- ></div>
4
+ data-remove-from-word="transient"
5
+ data-remove-from-xhtml="transient"
6
+ >
7
+ <div
8
+ class="srl-grid__inner"
9
+ data-remove-from-web="transient"
10
+ data-remove-from-word="transient"
11
+ data-remove-from-xhtml="transient"
12
+ >
13
+ <div
14
+ class="srl-pdf-column-container__content"
15
+ data-remove-from-web="transient"
16
+ data-remove-from-word="transient"
17
+ data-remove-from-xhtml="transient"
18
+ doc-container="column-container"
19
+ >
20
+
21
+ </div>
22
+ </div>
23
+ </div>
@@ -0,0 +1,15 @@
1
+ {
2
+ "column-behaviour": {
3
+ "label": "Column behaviour",
4
+ "type": "select",
5
+ "options": [
6
+ {
7
+ "caption": "Balanced (columns of equal height)"
8
+ },
9
+ {
10
+ "caption": "Unbalanced (last column should be empty or shorter)",
11
+ "value": "srl-columns-unbalanced"
12
+ }
13
+ ]
14
+ }
15
+ }
@@ -0,0 +1,8 @@
1
+ @use 'srl';
2
+
3
+ .srl-pdf-column-container {
4
+ padding-block: srl.spacer-get(100);
5
+ border-top: 1px solid #{srl.colors-primary-1000()};
6
+ border-bottom: 1px solid #{srl.colors-primary-1000()};
7
+ }
8
+
@@ -0,0 +1,14 @@
1
+ @use 'srl';
2
+
3
+ .srl-pdf-column-container__content {
4
+ column-count: 2;
5
+ column-gap: 5mm;
6
+
7
+ .srl-columns-unbalanced & {
8
+ column-fill: auto;
9
+ }
10
+
11
+ > * {
12
+ display: block;
13
+ }
14
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "pdf-columnbreak",
3
+ "label": "PDF column break",
4
+ "allowedParents": ["pdf-column-container"]
5
+ }
@@ -0,0 +1,10 @@
1
+ <div
2
+ class="srl-pdf-columnbreak srl-editor-component"
3
+ data-remove-from-web="complete"
4
+ data-remove-from-word="complete"
5
+ data-remove-from-xhtml="complete"
6
+ >
7
+ <span class="srl-pdf-columnbreak__editor-text srl-editor-component__text" data-remove-from-pdf="complete">
8
+ PDF column break
9
+ </span>
10
+ </div>
@@ -0,0 +1,12 @@
1
+ @use 'srl';
2
+ @use 'web';
3
+ @use 'assets/scss/placeholders';
4
+
5
+ .srl-pdf-columnbreak {
6
+ text-align: center;
7
+ }
8
+
9
+ .srl-pdf-columnbreak__editor-text {
10
+ @include srl.typography-editor-label-text();
11
+ @extend %srl-regular-width;
12
+ }
@@ -0,0 +1,5 @@
1
+ @use 'srl';
2
+
3
+ .srl-pdf-columnbreak__text {
4
+ @include srl.typography-pdf-header()
5
+ }
@@ -0,0 +1,6 @@
1
+ @use 'srl';
2
+ @use 'sass:map';
3
+
4
+ .srl-pdf-columnbreak {
5
+ break-after: column;
6
+ }
@@ -0,0 +1 @@
1
+ @use "srl";
@@ -0,0 +1 @@
1
+ @use 'general';
@@ -2,6 +2,7 @@
2
2
  class="srl-pdf-publication-title srl-editor-component"
3
3
  data-remove-from-web="complete"
4
4
  data-remove-from-word="complete"
5
+ data-remove-from-xhtml="complete"
5
6
  >
6
7
  <span class="srl-pdf-publication-title__text srl-editor-component__text" doc-editable="pdf-publication-titletext">
7
8
  Publication title
@@ -2,6 +2,7 @@
2
2
  class="srl-pdf-chapter-title srl-editor-component"
3
3
  data-remove-from-web="complete"
4
4
  data-remove-from-word="complete"
5
+ data-remove-from-xhtml="complete"
5
6
  >
6
7
  <span class="srl-pdf-chapter-title__text srl-editor-component__text" doc-editable="pdf-chapter-title-text">
7
8
  Chapter title
@@ -3,6 +3,7 @@
3
3
  data-is-chapter-override="true"
4
4
  data-remove-from-web="complete"
5
5
  data-remove-from-word="complete"
6
+ data-remove-from-xhtml="complete"
6
7
  >
7
8
  <ol
8
9
  class="srl-chapter-navigation__list"
@@ -1,5 +1,5 @@
1
1
  @use "web";
2
- @use "assets/scss/placeholders";
2
+ @use "@/assets/scss/placeholders";
3
3
 
4
4
  .srl-chapter-navigation__list {
5
5
  @extend %srl-regular-width;
@@ -1,6 +1,8 @@
1
1
  <li
2
2
  class="srl-chapter-navigation__list-item"
3
3
  data-remove-from-web="complete"
4
+ data-remove-from-word="complete"
5
+ data-remove-from-xhtml="complete"
4
6
  >
5
7
  <a class="srl-chapter-navigation__link" doc-link="href" doc-editable="pdf-chapter-navigation-item-text">
6
8
  Chapter Title
@@ -1,4 +1,10 @@
1
- <div class="srl-pdf-cover" data-remove-from-word="complete" doc-image="cover">
1
+ <div
2
+ class="srl-pdf-cover"
3
+ doc-image="cover"
4
+ data-remove-from-web="complete"
5
+ data-remove-from-word="complete"
6
+ data-remove-from-xhtml="complete"
7
+ >
2
8
  <div class="srl-pdf-cover__content">
3
9
  <div class="srl-pdf-cover__top">
4
10
  <div class="srl-pdf-cover__logo-container" doc-toggle="show-logo">
@@ -1,4 +1,10 @@
1
- <div class="srl-pdf-toc-page" data-remove-from-word="complete" data-is-toc-page="true">
1
+ <div
2
+ class="srl-pdf-toc-page"
3
+ data-remove-from-web="complete"
4
+ data-remove-from-word="complete"
5
+ data-remove-from-xhtml="complete"
6
+ data-is-toc-page="true"
7
+ >
2
8
  <div class="srl-pdf-toc-page__inner">
3
9
  <div class="srl-pdf-toc-page__title" doc-editable="pdf-toc-page-title">
4
10
  Chapter title
@@ -17,4 +17,11 @@
17
17
  @include srl.grid-pdf-flex-col(6);
18
18
  }
19
19
 
20
+ .srl-pdf-toc-page__title {
21
+ -ro-pdf-tag-type: h1;
22
+ }
23
+
24
+ .srl-pdf-toc-page__toc-container {
25
+ -ro-pdf-tag-type: toc;
26
+ }
20
27
 
@@ -1,3 +1,9 @@
1
- <div class="srl-pdf-toc-item-title" doc-editable="pdf-toc-item-title-text">
1
+ <div
2
+ class="srl-pdf-toc-item-title"
3
+ data-remove-from-web="complete"
4
+ data-remove-from-word="complete"
5
+ data-remove-from-xhtml="complete"
6
+ doc-editable="pdf-toc-item-title-text"
7
+ >
2
8
  Chapter title
3
9
  </div>
@@ -1,4 +1,11 @@
1
- <a class="srl-pdf-toc__item" doc-link="href" data-page-number="" data-is-toc-item="true">
1
+ <a
2
+ class="srl-pdf-toc__item"
3
+ doc-link="href" data-page-number=""
4
+ data-is-toc-item="true"
5
+ data-remove-from-web="complete"
6
+ data-remove-from-word="complete"
7
+ data-remove-from-xhtml="complete"
8
+ >
2
9
  <div class="srl-pdf-toc__text" doc-editable="pdf-toc-item-text" data-is-toc-text="true">
3
10
  Article title
4
11
  </div>
@@ -18,6 +18,11 @@
18
18
  width: srl.system-size-unit(24pt);
19
19
 
20
20
  &:after {
21
- content: target-counter(attr(data-page-number), page);
21
+ .srl-pdf-toc__link:not([href]) & {
22
+ content: "No link provided";
23
+ color: #FF0000;
24
+ display: inline-block;
25
+ margin-left: srl.spacer-get(100)
26
+ }
22
27
  }
23
28
  }
@@ -1,2 +1,12 @@
1
1
  @use 'srl';
2
2
  @use 'sass:map';
3
+
4
+ .srl-pdf-toc__item {
5
+ -ro-pdf-tag-type: toci;
6
+ }
7
+
8
+ .srl-pdf-toc__number {
9
+ &:after {
10
+ content: target-counter(attr(data-page-number), page);
11
+ }
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simple-reporting/base",
3
- "version": "1.0.32",
3
+ "version": "1.0.34",
4
4
  "description": "Manage srl templates, build and publish",
5
5
  "repository": {
6
6
  "url": "https://github.com/mmssolutionsio/simple-reporting-library"
@@ -21,6 +21,7 @@
21
21
  "main": "cli.js",
22
22
  "dependencies": {
23
23
  "@kne/color-palette": "^0.1.0",
24
+ "@vicons/ionicons5": "^0.13.0",
24
25
  "archiver": "^7.0.1",
25
26
  "chalk": "^5.6.2",
26
27
  "colors": "^1.4.0",
@@ -30,10 +31,14 @@
30
31
  "fs": "^0.0.1-security",
31
32
  "fs-extra": "^11.3.2",
32
33
  "glob": "^10.4.5",
34
+ "native-ui": "^0.0.1",
35
+ "write-json": "^3.0.1"
36
+ },
37
+ "peerDependencies": {
33
38
  "modern-css-reset": "^1.4.0",
39
+ "naive-ui": "^2.43.2",
34
40
  "node-html-parser": "^7.0.1",
35
- "vite": "^6.3.6",
36
- "write-json": "^3.0.1"
41
+ "vite": "^6.3.6"
37
42
  },
38
43
  "keywords": [
39
44
  "scss",
@@ -10,6 +10,8 @@ import {
10
10
  map,
11
11
  mapLdd,
12
12
  mapJs,
13
+ generateUseSrlConfig,
14
+ mapIndexScss,
13
15
  mapScss,
14
16
  } from '../scripts/build.js';
15
17
  import chalk from 'chalk';
@@ -121,6 +123,8 @@ async function startActions() {
121
123
  }
122
124
 
123
125
  await vueComponents();
126
+ await generateUseSrlConfig();
127
+ await mapIndexScss();
124
128
  await beaver(0);
125
129
  await map();
126
130
  await mapJs();
@@ -174,6 +178,7 @@ function viteSrlPlugin() {
174
178
  }
175
179
  if (path.endsWith('/srl.config.json')) {
176
180
  await updateNsWowJson();
181
+ await generateUseSrlConfig();
177
182
  triggerAction(beaver);
178
183
  }
179
184
  });
@@ -196,14 +201,14 @@ function viteSrlPlugin() {
196
201
  }
197
202
 
198
203
  if (
199
- path.includes('livingdocs') &&
204
+ path.includes('/livingdocs/') &&
200
205
  (path.endsWith('/app.js') || path.endsWith('/app.ts'))
201
206
  ) {
202
207
  triggerAction(mapJs);
203
208
  }
204
209
 
205
210
  if (
206
- path.includes('livingdocs') &&
211
+ path.includes('/livingdocs/') &&
207
212
  (path.endsWith('/properties.json') ||
208
213
  path.endsWith('/properties.ts') ||
209
214
  path.endsWith('/properties.js') ||
@@ -213,11 +218,15 @@ function viteSrlPlugin() {
213
218
  }
214
219
 
215
220
  if (
216
- path.includes('src/components/') &&
221
+ path.includes('/src/components/') &&
217
222
  path.endsWith('.vue')
218
223
  ) {
219
224
  triggerAction(vueComponents);
220
225
  }
226
+
227
+ if (path.includes('/src/assets/scss/placeholders/')) {
228
+ triggerAction(mapIndexScss);
229
+ }
221
230
  });
222
231
 
223
232
  server.watcher.on('unlink', (path) => {
@@ -238,14 +247,14 @@ function viteSrlPlugin() {
238
247
  }
239
248
 
240
249
  if (
241
- path.includes('livingdocs') &&
250
+ path.includes('/livingdocs/') &&
242
251
  (path.endsWith('/app.js') || path.endsWith('/app.ts'))
243
252
  ) {
244
253
  triggerAction(mapJs);
245
254
  }
246
255
 
247
256
  if (
248
- path.includes('livingdocs') &&
257
+ path.includes('/livingdocs/') &&
249
258
  (path.endsWith('/properties.json') ||
250
259
  path.endsWith('/properties.ts') ||
251
260
  path.endsWith('/properties.js') ||
@@ -255,11 +264,15 @@ function viteSrlPlugin() {
255
264
  }
256
265
 
257
266
  if (
258
- path.includes('src/components/') &&
267
+ path.includes('/src/components/') &&
259
268
  path.endsWith('.vue')
260
269
  ) {
261
270
  triggerAction(vueComponents);
262
271
  }
272
+
273
+ if (path.includes('/src/assets/scss/placeholders/')) {
274
+ triggerAction(mapIndexScss);
275
+ }
263
276
  });
264
277
  },
265
278
  };
@@ -22,6 +22,8 @@ export function ddev(): Promise<void>;
22
22
  * @throws {Error} If there is an error during the mapping process.
23
23
  */
24
24
  export function map(): Promise<boolean>;
25
+ export function generateUseSrlConfig(): Promise<void>;
26
+ export function mapIndexScss(): Promise<boolean>;
25
27
  /**
26
28
  * Maps SCSS files and generates import statements for different output files.
27
29
  *