@simple-reporting/base 1.0.30 → 1.0.32

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 CHANGED
@@ -24,7 +24,7 @@
24
24
  "postinstall": "srl prepare"
25
25
  },
26
26
  "dependencies": {
27
- "@simple-reporting/base": "^1.0.30",
27
+ "@simple-reporting/base": "^1.0.32",
28
28
  "axios": "^1.12.2",
29
29
  "chalk": "^5.6.2",
30
30
  "exceljs": "^4.4.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simple-reporting/base",
3
- "version": "1.0.30",
3
+ "version": "1.0.32",
4
4
  "description": "Manage srl templates, build and publish",
5
5
  "repository": {
6
6
  "url": "https://github.com/mmssolutionsio/simple-reporting-library"
@@ -111,6 +111,13 @@ async function startActions() {
111
111
  'Srl version changed',
112
112
  'Trigger srl prepare',
113
113
  ]);
114
+
115
+ printPromptsMessage([
116
+ 'Build or dev process abort',
117
+ 'Please restart the process to apply the new version.',
118
+ ]);
119
+
120
+ process.exit();
114
121
  }
115
122
 
116
123
  await vueComponents();
@@ -1,6 +1,29 @@
1
1
  @use 'variables';
2
2
  @use 'mixins';
3
3
  @use '../grid';
4
+ @use "sass:map";
5
+ @use "sass:list";
6
+
7
+ @function breakpoints-keys($map) {
8
+ $keys: ();
9
+ @each $key, $value in $map {
10
+ $keys: list.append($keys, $key);
11
+ }
12
+ @return $keys;
13
+ }
14
+
15
+
16
+ @function breakpoints-keys-reverse($map) {
17
+ $keys: breakpoints-keys($map);
18
+ $reversed: ();
19
+ @for $i from list.length($keys) through 1 {
20
+ $reversed: list.append($reversed, list.nth($keys, $i));
21
+ }
22
+ @return $reversed;
23
+ }
24
+
25
+ $bpList: breakpoints-keys(grid.$breakpoints);
26
+ $bpListReverse: breakpoints-keys-reverse(grid.$breakpoints);
4
27
 
5
28
  @mixin core-styles {
6
29
  @at-root {
@@ -8,26 +31,36 @@
8
31
  @each $key, $value in mixins.$styles {
9
32
  --#{$key}: #{$value};
10
33
  }
11
- @each $breakpoint, $breakpointValue in mixins.$stylesUp {
12
- @include grid.media-up($breakpoint) {
13
- @each $key, $value in $breakpointValue {
14
- --#{$key}: #{$value};
34
+
35
+ @each $breakpoint in $bpList {
36
+ $row: map.get(mixins.$stylesUp, $breakpoint);
37
+ @if $row {
38
+ @include grid.media-up($breakpoint) {
39
+ @each $key, $value in $row {
40
+ --#{$key}: #{$value};
41
+ }
15
42
  }
16
43
  }
17
44
  }
18
45
 
19
- @each $breakpoint, $breakpointValue in mixins.$stylesDown {
20
- @include grid.media-down($breakpoint) {
21
- @each $key, $value in $breakpointValue {
22
- --#{$key}: #{$value};
46
+ @each $breakpoint in $bpListReverse {
47
+ $row: map.get(mixins.$stylesDown, $breakpoint);
48
+ @if $row {
49
+ @include grid.media-down($breakpoint) {
50
+ @each $key, $value in $row {
51
+ --#{$key}: #{$value};
52
+ }
23
53
  }
24
54
  }
25
55
  }
26
56
 
27
- @each $breakpoint, $breakpointValue in mixins.$stylesOnly {
28
- @include grid.media($breakpoint) {
29
- @each $key, $value in $breakpointValue {
30
- --#{$key}: #{$value};
57
+ @each $breakpoint in $bpList {
58
+ $row: map.get(mixins.$stylesOnly, $breakpoint);
59
+ @if $row {
60
+ @include grid.media($breakpoint) {
61
+ @each $key, $value in $row {
62
+ --#{$key}: #{$value};
63
+ }
31
64
  }
32
65
  }
33
66
  }
@@ -5,6 +5,16 @@
5
5
  @use 'sass:map';
6
6
  @use 'sass:list';
7
7
 
8
+ @use 'modern-css-reset';
9
+
10
+ h5,
11
+ h6,
12
+ ol,
13
+ ul,
14
+ li {
15
+ margin: 0;
16
+ }
17
+
8
18
  $breakpointsList: map.keys(variables.$breakpoints);
9
19
  $breakpointsListLength: list.length($breakpointsList);
10
20
 
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, nextTick, ref, useId, VNode } from 'vue'
2
+ import { computed, nextTick, ref, useId, type VNode } from 'vue'
3
3
  import type { Ref } from 'vue'
4
4
  import type { RouterLink } from 'vue-router'
5
5
  import { isExternalPath } from '#utils/uri'
@@ -50,7 +50,7 @@
50
50
  * @link="handleNavigation"
51
51
  * />
52
52
  */
53
- import { computed, ref, VNode } from 'vue'
53
+ import { computed, ref, type VNode } from 'vue'
54
54
 
55
55
  type BackButtonItem = {
56
56
  title?: string