@leuffen/themejs1 5.0.4 → 5.0.5
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.
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
const path = require('path');
|
|
2
2
|
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
|
3
|
-
const {ESBuildMinifyPlugin} = require("esbuild-loader");
|
|
4
3
|
|
|
5
4
|
module.exports = {
|
|
6
5
|
entry: {
|
|
@@ -25,6 +24,12 @@ module.exports = {
|
|
|
25
24
|
}
|
|
26
25
|
}
|
|
27
26
|
],
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
include: [
|
|
30
|
+
path.resolve(__dirname, "src"),
|
|
31
|
+
path.resolve(__dirname, "workspaces")
|
|
32
|
+
]
|
|
28
33
|
},
|
|
29
34
|
{
|
|
30
35
|
enforce: 'pre',
|
|
@@ -44,7 +49,7 @@ module.exports = {
|
|
|
44
49
|
extensions: ['.tsx', '.ts', '.js'],
|
|
45
50
|
},
|
|
46
51
|
|
|
47
|
-
devtool: "eval",
|
|
52
|
+
//devtool: "eval",
|
|
48
53
|
// switch to: 'development' to debug
|
|
49
54
|
mode: "production",
|
|
50
55
|
|
|
@@ -59,14 +64,10 @@ module.exports = {
|
|
|
59
64
|
|
|
60
65
|
|
|
61
66
|
],
|
|
67
|
+
|
|
62
68
|
optimization: {
|
|
63
69
|
minimize: true,
|
|
64
|
-
usedExports:
|
|
65
|
-
minimizer: [
|
|
66
|
-
new ESBuildMinifyPlugin({
|
|
67
|
-
target: "es2015"
|
|
68
|
-
})
|
|
69
|
-
]
|
|
70
|
+
usedExports: "global"
|
|
70
71
|
},
|
|
71
72
|
output: {
|
|
72
73
|
filename: '[name].js',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leuffen/themejs1",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.5",
|
|
4
4
|
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "proprietary",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
],
|
|
28
28
|
"author": "",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@leuffen/jodastyle": "^3.0.
|
|
30
|
+
"@leuffen/jodastyle": "^3.0.3",
|
|
31
31
|
"@kasimirjs/embed": "^1.0.8",
|
|
32
32
|
"@leuffen/isl-base": "^2.0.2",
|
|
33
|
-
"@leuffen/liscom": "^2.0.
|
|
33
|
+
"@leuffen/liscom": "^2.0.4",
|
|
34
34
|
"@leuffen/liweco-base": "^2.0.2",
|
|
35
35
|
"bootstrap": "^5.3.0"
|
|
36
36
|
},
|
|
@@ -5,13 +5,14 @@
|
|
|
5
5
|
background: var(--t-section-background);
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
|
|
9
8
|
map.aside {
|
|
10
9
|
--joda-class: "";
|
|
11
10
|
display: block;
|
|
12
11
|
min-height: 500px;
|
|
12
|
+
|
|
13
13
|
.as__map {
|
|
14
14
|
min-height: 500px;
|
|
15
|
+
|
|
15
16
|
iframe {
|
|
16
17
|
min-height: 500px;
|
|
17
18
|
}
|
|
@@ -20,38 +21,40 @@
|
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
.aside {
|
|
23
|
-
--joda-class: p-4 p-lg-5
|
|
24
|
+
--joda-class: p-4 p-lg-5;
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
--joda-class: "col-12 col-lg-6 p-4 p-lg-5 order-2 order-lg-1";
|
|
28
|
+
.row > .tjs__sec-card-2col--col-start {
|
|
29
|
+
order: 99;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
.row > .tjs__sec-card-2col--col-end
|
|
33
|
+
.row > .tjs__sec-card-2col--col-end {
|
|
34
|
+
order: 50;
|
|
34
35
|
|
|
35
|
-
--joda-class: "col-12 col-lg-6 order-1 order-lg-2";
|
|
36
|
-
&:has(> slot > .aside) {
|
|
37
|
-
--joda-class: "col-12 col-lg-6 order-3 order-lg-1";
|
|
38
|
-
}
|
|
39
36
|
slot {
|
|
40
37
|
display: block;
|
|
41
38
|
width: 100%;
|
|
42
39
|
height: 100%;
|
|
43
40
|
}
|
|
41
|
+
|
|
44
42
|
img {
|
|
45
43
|
height: 100%;
|
|
46
44
|
width: 100%;
|
|
47
45
|
object-position: center center;
|
|
48
46
|
object-fit: cover;
|
|
49
47
|
}
|
|
48
|
+
|
|
49
|
+
.slideshow {
|
|
50
|
+
min-height: 350px;
|
|
51
|
+
|
|
52
|
+
}
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
|
|
53
56
|
.tjs__sec-card-2col--container {
|
|
54
|
-
|
|
57
|
+
border: 1px solid var(--t-section-border-color);
|
|
55
58
|
border-radius: var(--t-section-border-radius);
|
|
56
59
|
overflow: hidden;
|
|
57
60
|
background-color: white;
|
|
@@ -60,7 +63,8 @@
|
|
|
60
63
|
|
|
61
64
|
}
|
|
62
65
|
|
|
63
|
-
.tjs__sec-card-2col:nth-of-type(odd) .row {
|
|
66
|
+
.tjs__sec-card-2col.desktop:nth-of-type(odd) .row {
|
|
64
67
|
flex-direction: row-reverse;
|
|
65
|
-
|
|
68
|
+
|
|
66
69
|
}
|
|
70
|
+
|
|
@@ -3,20 +3,27 @@ import {Joda} from "@leuffen/jodastyle";
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
Joda.registerTemplate(
|
|
6
|
+
Joda.registerTemplate(
|
|
7
|
+
"sec-card-2col",
|
|
7
8
|
// language=HTML
|
|
8
9
|
`
|
|
9
10
|
|
|
10
|
-
<section class="tjs__sec-card-2col">
|
|
11
|
+
<section class="tjs__sec-card-2col :: mobile :lg: desktop">
|
|
11
12
|
<div class="tjs__sec-card-2col--container [[layout.container]]">
|
|
12
13
|
<div class="row [[layout.order === 'reverse' ? 'flex-row-reverse': '']] [[layout.mobile_reverse === 'yes' ? ':: flex-row-reverse :lg:': '']]">
|
|
13
|
-
<div class="tjs__sec-card-2col--col-start tjs__section-text">
|
|
14
|
+
<div class="tjs__sec-card-2col--col-start tjs__section-text p-4 p-lg-5 :: col-12 :lg: col-[[layout.cols]]">
|
|
14
15
|
<slot></slot>
|
|
15
16
|
</div>
|
|
16
|
-
<div class="tjs__sec-card-2col--col-end image-side ">
|
|
17
|
+
<div class="tjs__sec-card-2col--col-end image-side :: col-12 :lg: col-[[12 - layout.cols]] ">
|
|
18
|
+
|
|
17
19
|
<slot class="[[layout.slideshow === true ? 'slideshow' : '']]" data-select="img, .children > .section-hr.aside, .aside" [[layout.slideshow !== true ? 'data-limit="1"' : '' ]]></slot>
|
|
18
20
|
</div>
|
|
19
21
|
</div>
|
|
20
22
|
</div>
|
|
21
23
|
</section>
|
|
22
|
-
|
|
24
|
+
`,
|
|
25
|
+
{
|
|
26
|
+
cols: 6,
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
);
|