@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.
- package/dev/package.json +2 -1
- package/dev/pdf/pdf-configuration-debug.xml +3 -0
- package/dev/pdf/pdf-configuration.xml +3 -0
- package/dev/src/assets/scss/app.scss +5 -0
- package/dev/src/assets/scss/components/note/accordion.scss +1 -1
- package/dev/src/assets/scss/pdf.scss +4 -0
- package/dev/srl.config.json +1 -1
- package/dev/vite.config.ts +4 -1
- package/devTools/SrlDevTools.vue +234 -0
- package/devTools/assets/Svg/Check.vue +7 -0
- package/devTools/assets/Svg/Close.vue +5 -0
- package/devTools/assets/Svg/Eye.vue +16 -0
- package/devTools/assets/Svg/Info.vue +7 -0
- package/devTools/assets/Svg/Settings.vue +5 -0
- package/devTools/assets/Svg/Uncheck.vue +7 -0
- package/devTools/box/Content.vue +93 -0
- package/devTools/components/BoxPanel.vue +23 -0
- package/devTools/components/Content.vue +17 -0
- package/devTools/config.ts +34 -0
- package/devTools/dialog/Colors.vue +33 -0
- package/devTools/dialog/Grid.vue +111 -0
- package/devTools/dialog/Settings.vue +62 -0
- package/devTools/dialog/Spacer.vue +110 -0
- package/devTools/dialog/ViewPort.vue +33 -0
- package/devTools/panel/Content.vue +50 -0
- package/devTools/settings.ts +28 -0
- package/devTools/utils/index.ts +7 -0
- package/devTools/utils/wheelResizeHandler.ts +19 -0
- package/livingdocs/010.Titles/020.title-h2/scss/editor.scss +8 -0
- package/livingdocs/010.Titles/020.title-h2/scss/general.scss +0 -11
- package/livingdocs/010.Titles/020.title-h2/scss/pdf.scss +16 -0
- package/livingdocs/010.Titles/020.title-h2/scss/web.scss +16 -0
- package/livingdocs/010.Titles/030.title-h3/scss/editor.scss +8 -0
- package/livingdocs/010.Titles/030.title-h3/scss/general.scss +0 -11
- package/livingdocs/010.Titles/030.title-h3/scss/pdf.scss +16 -0
- package/livingdocs/010.Titles/030.title-h3/scss/web.scss +16 -0
- package/livingdocs/010.Titles/040.title-h4/scss/editor.scss +8 -0
- package/livingdocs/010.Titles/040.title-h4/scss/general.scss +0 -11
- package/livingdocs/010.Titles/040.title-h4/scss/pdf.scss +16 -0
- package/livingdocs/010.Titles/040.title-h4/scss/web.scss +16 -0
- package/livingdocs/020.Text/060.quote-with-portrait/scss/web.scss +1 -1
- package/livingdocs/020.Text/070.footnote-container/scss/web.scss +1 -1
- package/livingdocs/030.Lists/010.unordered-list/scss/pdf.scss +4 -0
- package/livingdocs/030.Lists/020.ordered-list/scss/pdf.scss +5 -0
- package/livingdocs/030.Lists/030.alphanumeric-list/scss/pdf.scss +5 -0
- package/livingdocs/030.Lists/040.list-item/scss/pdf.scss +4 -0
- package/livingdocs/040.Media/010.table/scss/general.scss +6 -7
- package/livingdocs/040.Media/010.table/scss/web.scss +7 -1
- package/livingdocs/040.Media/010.table/scss/xbrl.scss +16 -1
- package/livingdocs/040.Media/020.image/scss/editor.scss +1 -1
- package/livingdocs/040.Media/020.image/scss/general.scss +1 -1
- package/livingdocs/040.Media/020.image/scss/web.scss +1 -1
- package/livingdocs/040.Media/030.video/scss/web.scss +1 -1
- package/livingdocs/060.Buttons/020.button/scss/general.scss +1 -1
- package/livingdocs/080.CV/010.cv/scss/web.scss +1 -1
- package/livingdocs/080.CV/020.cv-time-span/scss/web.scss +1 -1
- package/livingdocs/100.Misc/010.anchor/anchor.html +7 -2
- package/livingdocs/110.PDF/010.pdf-pagebreak/pdf-pagebreak.html +7 -2
- package/livingdocs/110.PDF/020.pdf-column-container/ld-conf.json +2 -1
- package/livingdocs/110.PDF/020.pdf-column-container/pdf-column-container.html +21 -3
- package/livingdocs/110.PDF/020.pdf-column-container/properties.json +15 -0
- package/livingdocs/110.PDF/020.pdf-column-container/scss/editor.scss +8 -0
- package/livingdocs/110.PDF/020.pdf-column-container/scss/pdf.scss +14 -0
- package/livingdocs/110.PDF/021.pdf-columnbreak/ld-conf.json +5 -0
- package/livingdocs/110.PDF/021.pdf-columnbreak/pdf-columnbreak.html +10 -0
- package/livingdocs/110.PDF/021.pdf-columnbreak/scss/editor.scss +12 -0
- package/livingdocs/110.PDF/021.pdf-columnbreak/scss/general.scss +5 -0
- package/livingdocs/110.PDF/021.pdf-columnbreak/scss/pdf.scss +6 -0
- package/livingdocs/110.PDF/021.pdf-columnbreak/scss/web.scss +1 -0
- package/livingdocs/110.PDF/021.pdf-columnbreak/scss/word.scss +0 -0
- package/livingdocs/110.PDF/021.pdf-columnbreak/scss/xbrl.scss +1 -0
- package/livingdocs/110.PDF/030.pdf-publication-title/pdf-publication-title.html +1 -0
- package/livingdocs/110.PDF/040.pdf-chapter-title/pdf-chapter-title.html +1 -0
- package/livingdocs/110.PDF/050.pdf-chapter-navigation-container/pdf-chapter-navigation.html +1 -0
- package/livingdocs/110.PDF/050.pdf-chapter-navigation-container/scss/editor.scss +1 -1
- package/livingdocs/110.PDF/060.pdf-chapter-navigation-item/pdf-chapter-navigation-item.html +2 -0
- package/livingdocs/110.PDF/070.pdf-cover/pdf-cover.html +7 -1
- package/livingdocs/110.PDF/080.pdf-toc-page/pdf-toc-page.html +7 -1
- package/livingdocs/110.PDF/080.pdf-toc-page/scss/pdf.scss +7 -0
- package/livingdocs/110.PDF/090.pdf-toc-item-title/pdf-toc-item-title.html +7 -1
- package/livingdocs/110.PDF/100.pdf-toc-item/pdf-toc-item.html +8 -1
- package/livingdocs/110.PDF/100.pdf-toc-item/scss/general.scss +6 -1
- package/livingdocs/110.PDF/100.pdf-toc-item/scss/pdf.scss +10 -0
- package/package.json +8 -3
- package/plugins/viteSrlPlugin.js +19 -6
- package/scripts/build.d.ts +2 -0
- package/scripts/build.js +68 -3
- package/scripts/css/stripMediaFromCss.d.ts +17 -0
- package/scripts/css/stripMediaFromCss.js +147 -0
- package/scripts/vue/components.js +9 -2
- package/srl/.srl/App.vue +7 -1
- package/srl/.srl/components/Srl/Article/Accordion.vue +1 -0
- package/srl/.srl/components/Srl/Article/Root.vue +4 -4
- package/srl/.srl/components/Srl/Category/Accordion/Toggle.vue +2 -1
- package/srl/.srl/components/Srl/Menu/Item.vue +58 -24
- package/srl/.srl/components/Srl/Menu.vue +43 -17
- package/srl/.srl/composables/config.ts +3 -2
- package/srl/.srl/composables/index.ts +3 -0
- package/srl/.srl/composables/menu.ts +6 -3
- package/srl/.srl/composables/srlConfig.ts +3 -0
- package/srl/.srl/types/global.d.ts +11 -0
- package/srl/.srl/types/nswow.d.ts +5 -0
- package/srl/.srl/utils/index.ts +27 -25
- package/srl/.srl/utils/object.ts +60 -0
|
@@ -270,15 +270,18 @@ td {
|
|
|
270
270
|
text-align: right;
|
|
271
271
|
}
|
|
272
272
|
|
|
273
|
-
&[class*=
|
|
273
|
+
&[class*='srl-vertical-top'],
|
|
274
|
+
&[class*='vatop'] {
|
|
274
275
|
vertical-align: top;
|
|
275
276
|
}
|
|
276
277
|
|
|
277
|
-
&[class*=
|
|
278
|
+
&[class*='srl-vertical-middle'],
|
|
279
|
+
&[class*='vamiddle'] {
|
|
278
280
|
vertical-align: middle;
|
|
279
281
|
}
|
|
280
282
|
|
|
281
|
-
&[class*=
|
|
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,5 +1,10 @@
|
|
|
1
|
-
<p
|
|
2
|
-
|
|
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
|
|
2
|
-
|
|
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,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
|
-
|
|
5
|
-
|
|
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,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 @@
|
|
|
1
|
+
@use "srl";
|
|
File without changes
|
|
@@ -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
|
|
@@ -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
|
|
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
|
|
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
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
<div
|
|
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
|
|
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
|
-
|
|
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
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simple-reporting/base",
|
|
3
|
-
"version": "1.0.
|
|
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",
|
package/plugins/viteSrlPlugin.js
CHANGED
|
@@ -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
|
};
|
package/scripts/build.d.ts
CHANGED
|
@@ -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
|
*
|