@simple-reporting/base 1.0.41 → 1.0.44
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/README.md +15 -10
- package/dev/package.json +1 -1
- package/dev/src/assets/scss/placeholders/decoration-line.scss +32 -0
- package/dev/src/i18n/translation.ts +1 -1
- package/dev/src/router/index.ts +25 -2
- package/livingdocs/020.Text/070.footnote-container/scss/general.scss +3 -0
- package/livingdocs/999.Properties/background-color/scss/general.scss +7 -0
- package/package.json +1 -1
- package/scss/colors/mixins.scss +0 -3
package/README.md
CHANGED
|
@@ -24,14 +24,19 @@ Build all required files.
|
|
|
24
24
|
|
|
25
25
|
## Important CLI commands
|
|
26
26
|
|
|
27
|
-
| Command
|
|
28
|
-
|
|
29
|
-
| `npm install`
|
|
30
|
-
| `npm run dev`
|
|
31
|
-
| `npm run build`
|
|
32
|
-
| `
|
|
33
|
-
| `
|
|
34
|
-
| `
|
|
35
|
-
| `
|
|
36
|
-
| `
|
|
27
|
+
| Command | Description |
|
|
28
|
+
|-----------------------------|--------------------------------------------------------------------------------|
|
|
29
|
+
| `npm install` | Installs all packages listed in `package.json` |
|
|
30
|
+
| `npm run dev` | Starts the development environment including SCSS and JS watcher (Live Reload) |
|
|
31
|
+
| `npm run build` | Generates all CSS and JS files and ZIP packages in `.output` |
|
|
32
|
+
| `npm run build-app` | Generates the ZIP package for the web application in `.output` |
|
|
33
|
+
| `npm run build-ldd` | Generates the ZIP package for the editor in `.output` |
|
|
34
|
+
| `npm run build-pdf` | Generates the pdf CSS and JS in `.output` |
|
|
35
|
+
| `npm run build-word` | Generates the word CSS in `.output` |
|
|
36
|
+
| `npm run build-xbrl` | Generates the XBRL/XHTML CSS in `.output` |
|
|
37
|
+
| `npx srl create component` | Creates a component |
|
|
38
|
+
| `npx srl add components` | Adds predefined components |
|
|
39
|
+
| `npx srl remove components` | Removes one or more components |
|
|
40
|
+
| `npx srl add groups` | Adds predefined groups and their components |
|
|
41
|
+
| `npx srl remove groups` | Removes one or more groups |
|
|
37
42
|
|
package/dev/package.json
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@use "srl/system";
|
|
2
|
+
@use "srl/colors";
|
|
3
|
+
@use "srl/spacer";
|
|
4
|
+
|
|
5
|
+
%srl-decoration-line {
|
|
6
|
+
padding-top: spacer.get(200);
|
|
7
|
+
position: relative;
|
|
8
|
+
|
|
9
|
+
&:before {
|
|
10
|
+
content: "";
|
|
11
|
+
display: block;
|
|
12
|
+
background: colors.grey-200();
|
|
13
|
+
position: absolute;
|
|
14
|
+
top: 0;
|
|
15
|
+
left: 0;
|
|
16
|
+
@if system.$build == "pdf" {
|
|
17
|
+
height: system.size-unit(1pt);
|
|
18
|
+
width: system.size-unit(80pt);
|
|
19
|
+
} @else {
|
|
20
|
+
height: system.size-unit(1);
|
|
21
|
+
width: system.size-unit(80);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
%srl-decoration-line-reset {
|
|
27
|
+
padding-top: 0;
|
|
28
|
+
|
|
29
|
+
&:before {
|
|
30
|
+
display: none;
|
|
31
|
+
}
|
|
32
|
+
}
|
package/dev/src/router/index.ts
CHANGED
|
@@ -34,8 +34,31 @@ if (import.meta.env.DEV) {
|
|
|
34
34
|
|
|
35
35
|
const router = createRouter({
|
|
36
36
|
history: createWebHistory(import.meta.BASE_URL),
|
|
37
|
-
scrollBehavior() {
|
|
38
|
-
|
|
37
|
+
scrollBehavior(to, from, savedPosition) {
|
|
38
|
+
return new Promise( resolve => {
|
|
39
|
+
setTimeout(() => {
|
|
40
|
+
if (to.hash) {
|
|
41
|
+
resolve({
|
|
42
|
+
el: to.hash,
|
|
43
|
+
behavior: 'smooth'
|
|
44
|
+
})
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
if (savedPosition) {
|
|
48
|
+
resolve({
|
|
49
|
+
top: savedPosition.top,
|
|
50
|
+
left: savedPosition.left,
|
|
51
|
+
behavior: 'smooth'
|
|
52
|
+
})
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
resolve({
|
|
56
|
+
top: 0,
|
|
57
|
+
left: 0,
|
|
58
|
+
behavior: 'instant'
|
|
59
|
+
})
|
|
60
|
+
}, 100)
|
|
61
|
+
})
|
|
39
62
|
},
|
|
40
63
|
routes: routes
|
|
41
64
|
})
|
package/package.json
CHANGED