@juo/orion-core 0.20.0 → 0.20.1
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.
|
@@ -25,8 +25,10 @@ const _InlineText = class _InlineText extends HTMLElement {
|
|
|
25
25
|
return ["prop", "readonly"];
|
|
26
26
|
}
|
|
27
27
|
connectedCallback() {
|
|
28
|
-
this.style.display
|
|
29
|
-
|
|
28
|
+
if (!this.style.display)
|
|
29
|
+
this.style.display = "inline-block";
|
|
30
|
+
if (!this.style.overflowWrap)
|
|
31
|
+
this.style.overflowWrap = "anywhere";
|
|
30
32
|
this.propName = this.getAttribute("prop");
|
|
31
33
|
if (!this.propName) {
|
|
32
34
|
console.warn("juo-text: 'prop' attribute is required");
|
|
@@ -70,9 +72,12 @@ const _InlineText = class _InlineText extends HTMLElement {
|
|
|
70
72
|
this.style.outline = "0.5px solid transparent";
|
|
71
73
|
this.style.outlineOffset = "2px";
|
|
72
74
|
}
|
|
73
|
-
this.style.width
|
|
74
|
-
|
|
75
|
-
this.style.
|
|
75
|
+
if (!this.style.width)
|
|
76
|
+
this.style.width = "100%";
|
|
77
|
+
if (!this.style.overflowWrap)
|
|
78
|
+
this.style.overflowWrap = "anywhere";
|
|
79
|
+
if (!this.style.whiteSpace)
|
|
80
|
+
this.style.whiteSpace = "pre-wrap";
|
|
76
81
|
if (!this.isReadonly) {
|
|
77
82
|
this.injectStyles();
|
|
78
83
|
}
|
|
@@ -13,8 +13,10 @@ class InlineText extends HTMLElement {
|
|
|
13
13
|
__publicField(this, "dispose");
|
|
14
14
|
}
|
|
15
15
|
connectedCallback() {
|
|
16
|
-
this.style.display
|
|
17
|
-
|
|
16
|
+
if (!this.style.display)
|
|
17
|
+
this.style.display = "inline-block";
|
|
18
|
+
if (!this.style.overflowWrap)
|
|
19
|
+
this.style.overflowWrap = "anywhere";
|
|
18
20
|
const key = this.getAttribute("prop");
|
|
19
21
|
if (!key)
|
|
20
22
|
return;
|