@lumiastream/ui 0.2.8-alpha.24 → 0.2.8-alpha.25
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/dist/index.js +15 -0
- package/dist/se-import.js +15 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4678,7 +4678,21 @@ function mapTimer(widget, ctx) {
|
|
|
4678
4678
|
if (v.seconds !== false) clockBits.push("{{seconds}}");
|
|
4679
4679
|
if (clockBits.length) parts.push(clockBits.join(":"));
|
|
4680
4680
|
}
|
|
4681
|
+
const seTextCss = widget.text?.css ?? {};
|
|
4682
|
+
const asStr = (v2, fallback) => typeof v2 === "string" && v2.length > 0 ? v2 : fallback;
|
|
4683
|
+
const asNum = (v2, fallback) => typeof v2 === "number" && Number.isFinite(v2) ? v2 : typeof v2 === "string" && v2.length > 0 ? v2 : fallback;
|
|
4684
|
+
const moduleCss = {
|
|
4685
|
+
lineHeight: asNum(seTextCss["line-height"], 1),
|
|
4686
|
+
fontSize: asNum(seTextCss["font-size"], 24),
|
|
4687
|
+
textAlign: asStr(seTextCss["text-align"], "center"),
|
|
4688
|
+
fontFamily: asStr(seTextCss["font-family"], "Roboto"),
|
|
4689
|
+
fontWeight: asStr(seTextCss["font-weight"], "bold"),
|
|
4690
|
+
color: asStr(seTextCss.color, "#ffffff"),
|
|
4691
|
+
textShadow: asStr(seTextCss["text-shadow"], "rgb(0, 0, 0) 1px 1px 1px"),
|
|
4692
|
+
background: "transparent"
|
|
4693
|
+
};
|
|
4681
4694
|
return buildUnit(widget, "timer", {
|
|
4695
|
+
css: moduleCss,
|
|
4682
4696
|
content: {
|
|
4683
4697
|
version: 1,
|
|
4684
4698
|
type: "countdown",
|
|
@@ -4687,6 +4701,7 @@ function mapTimer(widget, ctx) {
|
|
|
4687
4701
|
showMilliseconds: false,
|
|
4688
4702
|
endAnimation: "",
|
|
4689
4703
|
hideAfter: 0,
|
|
4704
|
+
highlightColor: "inherit",
|
|
4690
4705
|
messageAfterCountdown: translateSeText(v.messageAfterCountdown ?? ""),
|
|
4691
4706
|
changeMessageAfter: !!v.changeMessageAfterCountdown,
|
|
4692
4707
|
countDate: hasValidAbsoluteDate && (!!v.exactTime || !!v.datePicker || !!absoluteDate),
|
package/dist/se-import.js
CHANGED
|
@@ -1563,7 +1563,21 @@ function mapTimer(widget, ctx) {
|
|
|
1563
1563
|
if (v.seconds !== false) clockBits.push("{{seconds}}");
|
|
1564
1564
|
if (clockBits.length) parts.push(clockBits.join(":"));
|
|
1565
1565
|
}
|
|
1566
|
+
const seTextCss = widget.text?.css ?? {};
|
|
1567
|
+
const asStr = (v2, fallback) => typeof v2 === "string" && v2.length > 0 ? v2 : fallback;
|
|
1568
|
+
const asNum = (v2, fallback) => typeof v2 === "number" && Number.isFinite(v2) ? v2 : typeof v2 === "string" && v2.length > 0 ? v2 : fallback;
|
|
1569
|
+
const moduleCss = {
|
|
1570
|
+
lineHeight: asNum(seTextCss["line-height"], 1),
|
|
1571
|
+
fontSize: asNum(seTextCss["font-size"], 24),
|
|
1572
|
+
textAlign: asStr(seTextCss["text-align"], "center"),
|
|
1573
|
+
fontFamily: asStr(seTextCss["font-family"], "Roboto"),
|
|
1574
|
+
fontWeight: asStr(seTextCss["font-weight"], "bold"),
|
|
1575
|
+
color: asStr(seTextCss.color, "#ffffff"),
|
|
1576
|
+
textShadow: asStr(seTextCss["text-shadow"], "rgb(0, 0, 0) 1px 1px 1px"),
|
|
1577
|
+
background: "transparent"
|
|
1578
|
+
};
|
|
1566
1579
|
return buildUnit(widget, "timer", {
|
|
1580
|
+
css: moduleCss,
|
|
1567
1581
|
content: {
|
|
1568
1582
|
version: 1,
|
|
1569
1583
|
type: "countdown",
|
|
@@ -1572,6 +1586,7 @@ function mapTimer(widget, ctx) {
|
|
|
1572
1586
|
showMilliseconds: false,
|
|
1573
1587
|
endAnimation: "",
|
|
1574
1588
|
hideAfter: 0,
|
|
1589
|
+
highlightColor: "inherit",
|
|
1575
1590
|
messageAfterCountdown: translateSeText(v.messageAfterCountdown ?? ""),
|
|
1576
1591
|
changeMessageAfter: !!v.changeMessageAfterCountdown,
|
|
1577
1592
|
countDate: hasValidAbsoluteDate && (!!v.exactTime || !!v.datePicker || !!absoluteDate),
|