@orangelogic/design-system 2.43.0 → 2.44.0
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/library/components/line-clamp.js +19 -19
- package/library/components/tooltip.js +8 -8
- package/library/components/types.js +13 -14
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/line-clamp/line-clamp.d.ts +1 -1
- package/library/packages/atoms/src/components/tooltip/tooltip.d.ts +1 -1
- package/library/react-web-component.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../chunks/button.DrU92LJQ.js";
|
|
2
2
|
import "./tooltip.js";
|
|
3
3
|
import "./resize-observer.js";
|
|
4
|
-
import { i as g, n as r, C as
|
|
5
|
-
import { c as
|
|
4
|
+
import { i as g, n as r, C as b, x as h, c as x } from "../chunks/custom-element.fmLrnDZr.js";
|
|
5
|
+
import { c as w } from "../chunks/component.styles.DtouHn2g.js";
|
|
6
6
|
import { i as f } from "../chunks/browser.Va59Ix3P.js";
|
|
7
7
|
import { d as C } from "../chunks/popup.CJrePm7n.js";
|
|
8
8
|
import { r as u } from "../chunks/state.Dt9F_SuS.js";
|
|
@@ -38,28 +38,28 @@ const v = g`
|
|
|
38
38
|
padding-left: 0;
|
|
39
39
|
}
|
|
40
40
|
`;
|
|
41
|
-
var T = Object.defineProperty,
|
|
42
|
-
for (var l = a > 1 ? void 0 : a ?
|
|
41
|
+
var T = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, e = (i, s, n, a) => {
|
|
42
|
+
for (var l = a > 1 ? void 0 : a ? $(s, n) : s, o = i.length - 1, p; o >= 0; o--)
|
|
43
43
|
(p = i[o]) && (l = (a ? p(s, n, l) : p(l)) || l);
|
|
44
44
|
return a && l && T(s, n, l), l;
|
|
45
45
|
};
|
|
46
|
-
let t = class extends
|
|
46
|
+
let t = class extends b {
|
|
47
47
|
constructor() {
|
|
48
|
-
super(...arguments), this.lines = 1, this.open = !1, this.showMore = !1, this.showMoreText = "View more...", this.showLessText = "View less...", this.disabledTooltip = !1, this.
|
|
48
|
+
super(...arguments), this.lines = 1, this.open = !1, this.showMore = !1, this.showMoreText = "View more...", this.showLessText = "View less...", this.disabledTooltip = !1, this.disabledHoverBridge = !1, this.placement = "top", this.isClamped = !1, this.tooltipContent = "", this.calculated = !1;
|
|
49
49
|
}
|
|
50
50
|
async updateTooltipContent() {
|
|
51
51
|
const s = this.shadowRoot.querySelector("slot").assignedNodes({ flatten: !0 }), n = async (o) => {
|
|
52
52
|
if (o.nodeType === Node.ELEMENT_NODE)
|
|
53
53
|
try {
|
|
54
|
-
let
|
|
54
|
+
let d = o.childNodes.length > 0 || o.shadowRoot ? "" : o.textContent ?? "";
|
|
55
55
|
if (await customElements.whenDefined(o.nodeName.toLowerCase()), o.shadowRoot) {
|
|
56
|
-
const
|
|
57
|
-
for (const m of
|
|
58
|
-
|
|
56
|
+
const c = o.shadowRoot?.childNodes ?? [];
|
|
57
|
+
for (const m of c)
|
|
58
|
+
d += await n(m);
|
|
59
59
|
}
|
|
60
|
-
for (const
|
|
61
|
-
|
|
62
|
-
return
|
|
60
|
+
for (const c of o.childNodes)
|
|
61
|
+
d += await n(c);
|
|
62
|
+
return d.trim();
|
|
63
63
|
} catch {
|
|
64
64
|
}
|
|
65
65
|
return o.nodeType !== Node.COMMENT_NODE ? o.textContent ?? "" : "";
|
|
@@ -134,7 +134,7 @@ let t = class extends x {
|
|
|
134
134
|
class="tooltip"
|
|
135
135
|
content=${this.tooltip}
|
|
136
136
|
hoist
|
|
137
|
-
|
|
137
|
+
?disabled-hover-bridge=${this.disabledHoverBridge}
|
|
138
138
|
.flipBoundary=${this.flipBoundary}
|
|
139
139
|
.shiftBoundary=${this.shiftBoundary}
|
|
140
140
|
placement=${this.placement}
|
|
@@ -147,7 +147,7 @@ let t = class extends x {
|
|
|
147
147
|
class="tooltip"
|
|
148
148
|
content=${this.tooltipContent}
|
|
149
149
|
hoist
|
|
150
|
-
|
|
150
|
+
?disabled-hover-bridge=${this.disabledHoverBridge}
|
|
151
151
|
.flipBoundary=${this.flipBoundary}
|
|
152
152
|
.shiftBoundary=${this.shiftBoundary}
|
|
153
153
|
placement=${this.placement}
|
|
@@ -158,7 +158,7 @@ let t = class extends x {
|
|
|
158
158
|
`;
|
|
159
159
|
}
|
|
160
160
|
};
|
|
161
|
-
t.styles = [
|
|
161
|
+
t.styles = [w, v];
|
|
162
162
|
e([
|
|
163
163
|
r({ type: Number })
|
|
164
164
|
], t.prototype, "lines", 2);
|
|
@@ -181,8 +181,8 @@ e([
|
|
|
181
181
|
r({ attribute: "disabled-tooltip", type: Boolean })
|
|
182
182
|
], t.prototype, "disabledTooltip", 2);
|
|
183
183
|
e([
|
|
184
|
-
r({ attribute: "hover-bridge", reflect: !0, type: Boolean })
|
|
185
|
-
], t.prototype, "
|
|
184
|
+
r({ attribute: "disabled-hover-bridge", reflect: !0, type: Boolean })
|
|
185
|
+
], t.prototype, "disabledHoverBridge", 2);
|
|
186
186
|
e([
|
|
187
187
|
r({ attribute: "flip-boundary", type: Object })
|
|
188
188
|
], t.prototype, "flipBoundary", 2);
|
|
@@ -211,7 +211,7 @@ e([
|
|
|
211
211
|
C(100)
|
|
212
212
|
], t.prototype, "handleResize", 1);
|
|
213
213
|
t = e([
|
|
214
|
-
|
|
214
|
+
x("cx-line-clamp")
|
|
215
215
|
], t);
|
|
216
216
|
export {
|
|
217
217
|
t as default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as
|
|
1
|
+
import { i as b, n as i, C as v, x as w, c as x } from "../chunks/custom-element.fmLrnDZr.js";
|
|
2
2
|
import { c as C } from "../chunks/component.styles.DtouHn2g.js";
|
|
3
3
|
import { s as g, p as c, a as u, g as y, b as m } from "../chunks/animation-registry.DavRkTTr.js";
|
|
4
4
|
import { w as f } from "../chunks/event.mFzZi4sr.js";
|
|
@@ -7,7 +7,7 @@ import { w as l } from "../chunks/watch.BCJD77bD.js";
|
|
|
7
7
|
import { e as d } from "../chunks/query.BBf1UFkC.js";
|
|
8
8
|
import { e as B } from "../chunks/class-map.DqNfBvJI.js";
|
|
9
9
|
import { C as D } from "../chunks/popup.CJrePm7n.js";
|
|
10
|
-
const O =
|
|
10
|
+
const O = b`
|
|
11
11
|
:host {
|
|
12
12
|
--hide-delay: 0ms;
|
|
13
13
|
--show-delay: 500ms;
|
|
@@ -69,9 +69,9 @@ var T = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, e = (o, s, n
|
|
|
69
69
|
(h = o[p]) && (r = (a ? h(s, n, r) : h(r)) || r);
|
|
70
70
|
return a && r && T(s, n, r), r;
|
|
71
71
|
};
|
|
72
|
-
let t = class extends
|
|
72
|
+
let t = class extends v {
|
|
73
73
|
constructor() {
|
|
74
|
-
super(), this.localize = new k(this), this.content = "", this.placement = "top", this.disabled = !1, this.distance = 8, this.open = !1, this.skidding = 0, this.trigger = "hover focus", this.hoist = !1, this.
|
|
74
|
+
super(), this.localize = new k(this), this.content = "", this.placement = "top", this.disabled = !1, this.distance = 8, this.open = !1, this.skidding = 0, this.trigger = "hover focus", this.hoist = !1, this.disabledHoverBridge = !1, this.handleBlur = this.handleBlur.bind(this), this.handleFocus = this.handleFocus.bind(this), this.handleClick = this.handleClick.bind(this), this.handleMouseOver = this.handleMouseOver.bind(this), this.handleMouseOut = this.handleMouseOut.bind(this), this.handleDocumentKeyDown = this.handleDocumentKeyDown.bind(this), this.addEventListener("blur", this.handleBlur, !0), this.addEventListener("focus", this.handleFocus, !0), this.addEventListener("click", this.handleClick), this.addEventListener("mouseover", this.handleMouseOver), this.addEventListener("mouseout", this.handleMouseOut);
|
|
75
75
|
}
|
|
76
76
|
disconnectedCallback() {
|
|
77
77
|
super.disconnectedCallback(), this.closeWatcher?.destroy(), document.removeEventListener("keydown", this.handleDocumentKeyDown);
|
|
@@ -161,7 +161,7 @@ let t = class extends b {
|
|
|
161
161
|
"
|
|
162
162
|
class=${B({
|
|
163
163
|
tooltip: !0,
|
|
164
|
-
"tooltip--disabled-hover":
|
|
164
|
+
"tooltip--disabled-hover": this.disabledHoverBridge,
|
|
165
165
|
"tooltip--open": this.open
|
|
166
166
|
})}
|
|
167
167
|
placement=${this.placement}
|
|
@@ -171,7 +171,7 @@ let t = class extends b {
|
|
|
171
171
|
flip
|
|
172
172
|
shift
|
|
173
173
|
arrow
|
|
174
|
-
?hover-bridge=${this.
|
|
174
|
+
?hover-bridge=${!this.disabledHoverBridge}
|
|
175
175
|
.anchor=${this.anchor}
|
|
176
176
|
.flipBoundary=${this.flipBoundary}
|
|
177
177
|
.shiftBoundary=${this.shiftBoundary}
|
|
@@ -229,8 +229,8 @@ e([
|
|
|
229
229
|
i({ type: Boolean })
|
|
230
230
|
], t.prototype, "hoist", 2);
|
|
231
231
|
e([
|
|
232
|
-
i({ attribute: "hover-bridge", reflect: !0, type: Boolean })
|
|
233
|
-
], t.prototype, "
|
|
232
|
+
i({ attribute: "disabled-hover-bridge", reflect: !0, type: Boolean })
|
|
233
|
+
], t.prototype, "disabledHoverBridge", 2);
|
|
234
234
|
e([
|
|
235
235
|
i({ attribute: "flip-boundary", type: Object })
|
|
236
236
|
], t.prototype, "flipBoundary", 2);
|
|
@@ -499,7 +499,7 @@ let Ri = class extends zn {
|
|
|
499
499
|
}
|
|
500
500
|
render() {
|
|
501
501
|
return Z`<div class="viewer-config">
|
|
502
|
-
<cx-tooltip content=${this.localize.term("settings")}
|
|
502
|
+
<cx-tooltip content=${this.localize.term("settings")} disabled-hover-bridge trigger="hover">
|
|
503
503
|
<cx-dropdown class="viewer-config__dropdown" placement="top-end" stay-open-on-select hoist flip-padding="-10">
|
|
504
504
|
<cx-icon-button
|
|
505
505
|
slot="trigger"
|
|
@@ -1092,7 +1092,7 @@ let ni = class extends zn {
|
|
|
1092
1092
|
|
|
1093
1093
|
<div class="viewer-control__action-buttons">
|
|
1094
1094
|
<div class="viewer-control__action-buttons__left">
|
|
1095
|
-
<cx-tooltip content=${this.isAnimationPlaying ? this.localize.term("pause") : this.localize.term("play")}
|
|
1095
|
+
<cx-tooltip content=${this.isAnimationPlaying ? this.localize.term("pause") : this.localize.term("play")} disabled-hover-bridge>
|
|
1096
1096
|
<cx-icon-button
|
|
1097
1097
|
class="viewer-control__play-pause-btn"
|
|
1098
1098
|
name=${this.isAnimationPlaying ? "pause" : "play_arrow"}
|
|
@@ -1104,7 +1104,7 @@ let ni = class extends zn {
|
|
|
1104
1104
|
|
|
1105
1105
|
<div class="viewer-control__time-display">${this.currentTime} / ${this.totalTime}</div>
|
|
1106
1106
|
|
|
1107
|
-
<cx-tooltip content=${this.localize.term("animation")}
|
|
1107
|
+
<cx-tooltip content=${this.localize.term("animation")} disabled-hover-bridge trigger="hover">
|
|
1108
1108
|
<cx-dropdown class="viewer-control__animation-dropdown" placement="top-start" stay-open-on-select>
|
|
1109
1109
|
<cx-button class="viewer-control__animation-button" variant="custom" slot="trigger" caret> ${this.selectedAnimation} </cx-button>
|
|
1110
1110
|
<cx-menu class="viewer-control__animation-menu" @cx-select=${this.handleAnimationSelect}>
|
|
@@ -1133,7 +1133,7 @@ let ni = class extends zn {
|
|
|
1133
1133
|
</div>
|
|
1134
1134
|
|
|
1135
1135
|
<div class="viewer-control__action-buttons__right">
|
|
1136
|
-
<cx-tooltip content=${this.localize.term("start")}
|
|
1136
|
+
<cx-tooltip content=${this.localize.term("start")} disabled-hover-bridge>
|
|
1137
1137
|
<cx-icon-button
|
|
1138
1138
|
class="viewer-control__icon-button"
|
|
1139
1139
|
name="replay"
|
|
@@ -1163,7 +1163,7 @@ let ni = class extends zn {
|
|
|
1163
1163
|
|
|
1164
1164
|
<cx-tooltip
|
|
1165
1165
|
content=${this.isFullscreen ? this.localize.term("exitFullscreen") : this.localize.term("fullscreen")}
|
|
1166
|
-
|
|
1166
|
+
disabled-hover-bridge
|
|
1167
1167
|
>
|
|
1168
1168
|
<cx-icon-button
|
|
1169
1169
|
class="viewer-control__icon-button"
|
|
@@ -1180,7 +1180,7 @@ let ni = class extends zn {
|
|
|
1180
1180
|
<div class="viewer-control--static">
|
|
1181
1181
|
<cx-tooltip
|
|
1182
1182
|
content=${this.localize.term("resetPosition")}
|
|
1183
|
-
|
|
1183
|
+
disabled-hover-bridge
|
|
1184
1184
|
>
|
|
1185
1185
|
<cx-icon-button
|
|
1186
1186
|
class="viewer-control__icon-button"
|
|
@@ -1208,7 +1208,7 @@ let ni = class extends zn {
|
|
|
1208
1208
|
></cx-3d-viewer-config>
|
|
1209
1209
|
<cx-tooltip
|
|
1210
1210
|
content=${this.isFullscreen ? this.localize.term("exitFullscreen") : this.localize.term("fullscreen")}
|
|
1211
|
-
|
|
1211
|
+
disabled-hover-bridge
|
|
1212
1212
|
>
|
|
1213
1213
|
<cx-icon-button
|
|
1214
1214
|
class="viewer-control__icon-button"
|
|
@@ -4346,7 +4346,6 @@ const vJ = Dn`
|
|
|
4346
4346
|
transparent
|
|
4347
4347
|
);
|
|
4348
4348
|
position: relative;
|
|
4349
|
-
isolation: isolate;
|
|
4350
4349
|
}
|
|
4351
4350
|
|
|
4352
4351
|
:host(:focus-visible) {
|
|
@@ -20987,7 +20986,7 @@ let tu = class extends zn {
|
|
|
20987
20986
|
<cx-tooltip
|
|
20988
20987
|
content=${l}
|
|
20989
20988
|
.disabled=${n.disabled || !l}
|
|
20990
|
-
|
|
20989
|
+
disabled-hover-bridge
|
|
20991
20990
|
hoist
|
|
20992
20991
|
>
|
|
20993
20992
|
<cx-line-clamp lines="1">${n.label}</cx-line-clamp>
|
|
@@ -21019,7 +21018,7 @@ let tu = class extends zn {
|
|
|
21019
21018
|
slot="suffix"
|
|
21020
21019
|
content=${F8(a ?? "")}
|
|
21021
21020
|
.disabled=${!a}
|
|
21022
|
-
|
|
21021
|
+
disabled-hover-bridge
|
|
21023
21022
|
hoist
|
|
21024
21023
|
>
|
|
21025
21024
|
<cx-switch
|
|
@@ -135521,7 +135520,7 @@ let q2 = class extends _d {
|
|
|
135521
135520
|
return Z` <cx-tooltip
|
|
135522
135521
|
content=${this.tooltip}
|
|
135523
135522
|
?disabled=${!this.tooltip || this.disabled || this.open}
|
|
135524
|
-
|
|
135523
|
+
disabled-hover-bridge
|
|
135525
135524
|
>
|
|
135526
135525
|
${super.render()}</cx-tooltip
|
|
135527
135526
|
>`;
|
|
@@ -147266,7 +147265,7 @@ let La = class extends zn {
|
|
|
147266
147265
|
class="board-list-item__text__content"
|
|
147267
147266
|
lines="2"
|
|
147268
147267
|
?disabled-tooltip=${!!this.tooltip}
|
|
147269
|
-
|
|
147268
|
+
disabled-hover-bridge
|
|
147270
147269
|
>
|
|
147271
147270
|
${this.text}
|
|
147272
147271
|
</cx-line-clamp>
|
|
@@ -147275,7 +147274,7 @@ let La = class extends zn {
|
|
|
147275
147274
|
hoist
|
|
147276
147275
|
trigger="manual"
|
|
147277
147276
|
?disabled=${this.disabledTooltip || !this.tooltip}
|
|
147278
|
-
|
|
147277
|
+
disabled-hover-bridge
|
|
147279
147278
|
>
|
|
147280
147279
|
<div class="board-list-item__text__anchor"></div>
|
|
147281
147280
|
<div slot="content">${Yu(this.tooltip)}</div>
|
|
@@ -153685,7 +153684,7 @@ let Ra = class extends zn {
|
|
|
153685
153684
|
})}
|
|
153686
153685
|
>
|
|
153687
153686
|
<div class="video-editor-track__name">
|
|
153688
|
-
<cx-line-clamp lines="1">
|
|
153687
|
+
<cx-line-clamp lines="1" disabled-hover-bridge>
|
|
153689
153688
|
<cx-typography variant="body2">
|
|
153690
153689
|
${this.data.label}
|
|
153691
153690
|
</cx-typography>
|
package/library/package.json
CHANGED
|
@@ -34,7 +34,7 @@ export default class CxLineClamp extends CortexElement {
|
|
|
34
34
|
*/
|
|
35
35
|
tooltip: string;
|
|
36
36
|
disabledTooltip: boolean;
|
|
37
|
-
|
|
37
|
+
disabledHoverBridge: boolean;
|
|
38
38
|
/** The flip boundary for the tooltip. */
|
|
39
39
|
flipBoundary: Element | Element[];
|
|
40
40
|
/** The shift boundary for the tooltip. */
|
|
@@ -80,7 +80,7 @@ export default class CxTooltip extends CortexElement {
|
|
|
80
80
|
* because the pointer never technically leaves the element. The hover bridge will only be drawn when the popover is
|
|
81
81
|
* active.
|
|
82
82
|
*/
|
|
83
|
-
|
|
83
|
+
disabledHoverBridge: boolean;
|
|
84
84
|
/** The flip boundary for the popup. */
|
|
85
85
|
flipBoundary: Element | Element[];
|
|
86
86
|
/** The shift boundary for the popup. */
|
|
@@ -1563,7 +1563,7 @@
|
|
|
1563
1563
|
/**
|
|
1564
1564
|
* When a gap exists between the anchor and the popup element, this option will add a "hover bridge" that fills the gap using an invisible element. This makes listening for events such as `mouseenter` and `mouseleave` more sane because the pointer never technically leaves the element. The hover bridge will only be drawn when the popover is active.
|
|
1565
1565
|
*/
|
|
1566
|
-
|
|
1566
|
+
disabledHoverBridge?: boolean;
|
|
1567
1567
|
/**
|
|
1568
1568
|
* Make localization attributes reactive eslint-disable-next-line lit/no-native-attributes
|
|
1569
1569
|
*/
|
|
@@ -2717,7 +2717,7 @@
|
|
|
2717
2717
|
/**
|
|
2718
2718
|
*
|
|
2719
2719
|
*/
|
|
2720
|
-
|
|
2720
|
+
disabledHoverBridge?: boolean;
|
|
2721
2721
|
/**
|
|
2722
2722
|
* The preferred placement of the tooltip. Note that the actual placement may vary as needed to keep the tooltip inside of the viewport.
|
|
2723
2723
|
*/
|