@simple-reporting/base 1.0.26 → 1.0.28
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 +1 -1
- package/livingdocs/040.Media/010.table/table.html +1 -1
- package/livingdocs/040.Media/030.video/video.html +1 -1
- package/livingdocs/100.Misc/010.anchor/anchor.html +1 -1
- package/package.json +1 -1
- package/scripts/beaver.js +6 -0
- package/scripts/build.js +5 -1
- package/scripts/doPublish.js +5 -0
- package/scss/spacer/root.scss +55 -19
package/dev/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div class="srl-table">
|
|
2
|
-
<srl-ld-table data-remove-from-
|
|
2
|
+
<srl-ld-table data-remove-from-xhtml="transient" data-remove-from-pdf="transient">
|
|
3
3
|
<div ref="wrapper" class="srl-table__container" doc-include="nswow-table">
|
|
4
4
|
<p class="srl-grid srl-paragraph">
|
|
5
5
|
<span class="srl-grid__inner srl-paragraph__text">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<div class="srl-video" data-remove-from-word="complete">
|
|
2
2
|
<div class="srl-grid srl-grid--media">
|
|
3
3
|
<div class="srl-grid__inner srl-video__inner">
|
|
4
|
-
<srl-ld-video data-remove-from-
|
|
4
|
+
<srl-ld-video data-remove-from-xhtml="transient" data-remove-from-pdf="transient">
|
|
5
5
|
<div class="srl-video__video-container" doc-html="free-html" data-remove-from-pdf="complete"></div>
|
|
6
6
|
<img class="srl-video__thumbnail" doc-image="video-thumbnail"></img>
|
|
7
7
|
<div class="srl-video__play" data-remove-from-pdf="complete">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<p class="srl-anchor srl-editor-component" data-remove-from-translate-plus="true" data-remove-from-xhtml="complete"
|
|
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
2
|
data-is-anchor="true">
|
|
3
3
|
<span class="srl-anchor__text srl-editor-component__text" doc-editable="anchor-text">
|
|
4
4
|
Must start with a letter (A–Z or a–z); a number is not allowed. After the
|
package/package.json
CHANGED
package/scripts/beaver.js
CHANGED
|
@@ -126,6 +126,11 @@ function hasPointsOutsideOfParentheses(text) {
|
|
|
126
126
|
return false;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
+
function isUnitSize(value) {
|
|
130
|
+
const unitSizePattern = /^-?\d*\.?\d+(px|em|rem|%|vw|vh|vmin|vmax|cm|mm|in|pt|pc|ex|ch)?$/;
|
|
131
|
+
return unitSizePattern.test(value);
|
|
132
|
+
}
|
|
133
|
+
|
|
129
134
|
/**
|
|
130
135
|
* Converts a JavaScript object into SCSS variables.
|
|
131
136
|
*
|
|
@@ -155,6 +160,7 @@ function makeScssVariables(values, indent = 2) {
|
|
|
155
160
|
if (
|
|
156
161
|
typeof values === 'string' &&
|
|
157
162
|
values !== `""` &&
|
|
163
|
+
!isUnitSize(values) &&
|
|
158
164
|
(hasPointsOutsideOfParentheses(values) ||
|
|
159
165
|
hasCommasOutsideOfParentheses(values))
|
|
160
166
|
) {
|
package/scripts/build.js
CHANGED
|
@@ -1065,7 +1065,11 @@ async function mapJs() {
|
|
|
1065
1065
|
|
|
1066
1066
|
for (let i = 0; i < jsFiles.length; i++) {
|
|
1067
1067
|
const file = jsFiles[i];
|
|
1068
|
-
|
|
1068
|
+
let className = file.parent.name.split('.');
|
|
1069
|
+
if (className.length > 1) {
|
|
1070
|
+
className.shift();
|
|
1071
|
+
}
|
|
1072
|
+
className = camelCase(className.join('.'));
|
|
1069
1073
|
const path = [file.name];
|
|
1070
1074
|
let parent = file.parent;
|
|
1071
1075
|
while (parent) {
|
package/scripts/doPublish.js
CHANGED
|
@@ -17,6 +17,9 @@ export async function doPublish(version = null) {
|
|
|
17
17
|
try {
|
|
18
18
|
const publishVersion = await preparePublish(version);
|
|
19
19
|
|
|
20
|
+
await execSync(`npm publish`, { stdio: 'inherit' });
|
|
21
|
+
|
|
22
|
+
/*
|
|
20
23
|
const tag = `v${publishVersion.split('.')[0]}-lts`;
|
|
21
24
|
|
|
22
25
|
await execSync(`npm publish --tag ${tag}`, { stdio: 'inherit' });
|
|
@@ -32,6 +35,8 @@ export async function doPublish(version = null) {
|
|
|
32
35
|
);
|
|
33
36
|
}
|
|
34
37
|
|
|
38
|
+
*/
|
|
39
|
+
|
|
35
40
|
console.log(
|
|
36
41
|
`Package ${packageName}@${publishVersion} published successfully!`,
|
|
37
42
|
);
|
package/scss/spacer/root.scss
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@use "variables";
|
|
2
2
|
@use "../system";
|
|
3
3
|
@use "sass:map";
|
|
4
|
+
@use "sass:meta";
|
|
4
5
|
|
|
5
6
|
@each $spacer, $spacerValue in variables.$spacer {
|
|
6
7
|
$varName: #{variables.$variable-prefix}spacer-#{$spacer};
|
|
@@ -20,35 +21,70 @@
|
|
|
20
21
|
@if map.has-key($spacerValue, media) {
|
|
21
22
|
@each $breakpoint, $breakpointValue in map.get($spacerValue, media) {
|
|
22
23
|
@if $breakpoint == print {
|
|
23
|
-
@
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
@
|
|
24
|
+
@if (meta.type-of($breakpointValue) == 'map' and map.has-key($breakpointValue, size)) {
|
|
25
|
+
@include system.add-root-style(
|
|
26
|
+
$varName,
|
|
27
|
+
system.size-unit(map.get($breakpointValue, size)),
|
|
28
|
+
print
|
|
29
|
+
);
|
|
30
|
+
} @else {
|
|
30
31
|
@include system.add-root-style(
|
|
31
32
|
$varName,
|
|
32
|
-
system.size-unit($
|
|
33
|
-
|
|
34
|
-
up
|
|
33
|
+
system.size-unit($breakpointValue),
|
|
34
|
+
print
|
|
35
35
|
);
|
|
36
36
|
}
|
|
37
|
+
|
|
38
|
+
} @else if $breakpoint == up {
|
|
39
|
+
@each $upBreakpoint, $upBreakpointValue in $breakpointValue {
|
|
40
|
+
@if meta.type-of($upBreakpointValue) == 'map' and map.has-key($upBreakpointValue, size) {
|
|
41
|
+
@include system.add-root-style(
|
|
42
|
+
$varName,
|
|
43
|
+
system.size-unit(map.get($upBreakpointValue, size)),
|
|
44
|
+
$upBreakpoint,
|
|
45
|
+
up
|
|
46
|
+
);
|
|
47
|
+
} @else {
|
|
48
|
+
@include system.add-root-style(
|
|
49
|
+
$varName,
|
|
50
|
+
system.size-unit($upBreakpointValue),
|
|
51
|
+
$upBreakpoint,
|
|
52
|
+
up
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
37
56
|
} @else if $breakpoint == down {
|
|
38
57
|
@each $downBreakpoint, $downBreakpointValue in $breakpointValue {
|
|
58
|
+
@if meta.type-of($downBreakpointValue) == 'map' and map.has-key($downBreakpointValue, size) {
|
|
59
|
+
@include system.add-root-style(
|
|
60
|
+
$varName,
|
|
61
|
+
system.size-unit(map.get($downBreakpointValue, size)),
|
|
62
|
+
$downBreakpoint,
|
|
63
|
+
down
|
|
64
|
+
);
|
|
65
|
+
} @else {
|
|
66
|
+
@include system.add-root-style(
|
|
67
|
+
$varName,
|
|
68
|
+
system.size-unit($downBreakpointValue),
|
|
69
|
+
$downBreakpoint,
|
|
70
|
+
down
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
} @else {
|
|
75
|
+
@if meta.type-of($breakpointValue) == 'map' and map.has-key($breakpointValue, size) {
|
|
39
76
|
@include system.add-root-style(
|
|
40
77
|
$varName,
|
|
41
|
-
system.size-unit($
|
|
42
|
-
$
|
|
43
|
-
|
|
78
|
+
system.size-unit(map.get($breakpointValue, size)),
|
|
79
|
+
$breakpoint
|
|
80
|
+
);
|
|
81
|
+
} @else {
|
|
82
|
+
@include system.add-root-style(
|
|
83
|
+
$varName,
|
|
84
|
+
system.size-unit($breakpointValue),
|
|
85
|
+
$breakpoint
|
|
44
86
|
);
|
|
45
87
|
}
|
|
46
|
-
} @else {
|
|
47
|
-
@include system.add-root-style(
|
|
48
|
-
$varName,
|
|
49
|
-
system.size-unit($breakpointValue),
|
|
50
|
-
$breakpoint
|
|
51
|
-
);
|
|
52
88
|
}
|
|
53
89
|
}
|
|
54
90
|
}
|