@luzmo/lucero 0.0.38 → 0.0.39
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/components/action-menu/index.cjs +1 -1
- package/components/action-menu/index.js +1 -1
- package/components/button/index.cjs +1 -1
- package/components/button/index.js +17 -17
- package/components/color-menu/color-menu.d.ts +5 -3
- package/components/color-menu/index.cjs +6 -6
- package/components/color-menu/index.js +10 -6
- package/components/color-picker/index.cjs +2 -3
- package/components/color-picker/index.js +22 -22
- package/components/index.cjs +1 -1
- package/components/index.js +58 -56
- package/components/menu/index.cjs +1 -1
- package/components/menu/index.js +1 -1
- package/components/overlay/hover-controller.d.ts +2 -0
- package/components/overlay/index.cjs +7 -7
- package/components/overlay/index.js +114 -110
- package/components/overlay/interaction-controller.d.ts +11 -5
- package/components/overlay/overlay-stack.d.ts +1 -0
- package/components/overlay/overlay-trigger.d.ts +25 -2
- package/components/{overlay-BBNyvs8F.js → overlay-DaOKAKMl.js} +423 -387
- package/components/overlay-lzq2PziH.cjs +47 -0
- package/components/picker/index.cjs +1 -1
- package/components/picker/index.js +2 -2
- package/components/{picker-daUT4cUN.js → picker-BmoXv1jt.js} +1 -1
- package/components/{picker-0tQg3Aob.cjs → picker-DWsBWdPN.cjs} +1 -1
- package/components/select/index.cjs +1 -1
- package/components/select/index.js +1 -1
- package/components/strategies-BACP6MhR.cjs +18 -0
- package/custom-elements.json +1 -1
- package/package.json +1 -1
- package/utils/button-interaction-controllers/interaction-controller.d.ts +1 -0
- package/utils/button-interaction-controllers/mobile-controller.d.ts +0 -1
- package/components/overlay-o0tLxsk-.cjs +0 -47
- package/components/strategies-DGwsR7Xf.cjs +0 -18
- package/components/{strategies-Bc3hG-HA.js → strategies-9indNIEb.js} +1 -1
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
16
|
* SOFTWARE.
|
|
17
17
|
* */
|
|
18
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../base-CBCg3yyw.cjs"),c=require("../state-D8JEtYqe.cjs"),u=require("../query-BL-TJj7K.cjs"),h=require("../sized-mixin-CPxE5C96.cjs");require("../color-menu/index.cjs");require("../overlay/index.cjs");const d=require("../slottable-request-event-BfUUt1Mh.cjs");require("../popover/index.cjs");require("../swatch/index.cjs");const m="luzmo-popover{margin-left:var(--luzmo-color-picker-popover-horizontal-gap, var(--color-picker-popover-horizontal-gap));margin-right:var(--luzmo-color-picker-popover-horizontal-gap, var(--color-picker-popover-horizontal-gap))}luzmo-swatch{cursor:pointer}:host{--luzmo-popover-content-area-spacing-vertical: 0;--color-picker-popover-horizontal-gap: var(--luzmo-spacing-4)}:host([size=s]){--color-picker-popover-horizontal-gap: var(--luzmo-spacing-3)}:host([size=l]),:host([size=xl]){--color-picker-popover-horizontal-gap: var(--luzmo-spacing-5)}";var v=Object.defineProperty,o=(i,r,a,g)=>{for(var l=void 0,n=i.length-1,p;n>=0;n--)(p=i[n])&&(l=p(r,a,l)||l);return l&&v(r,a,l),l};const s=class s extends h.SizedMixin(t.LuzmoElement){constructor(){super(...arguments),this.color="rgb(255, 0, 0)",this.open=!1,this.disabled=!1,this.placement="left-start",this.rounding="full",this.swatches=[],this.noAlphaChannel=!1,this._renderMenu=!1}overlayCloseEvent(){this.open=!1}overlayOpenEvent(){this.open=!0}handleColorChange(){
|
|
18
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../base-CBCg3yyw.cjs"),c=require("../state-D8JEtYqe.cjs"),u=require("../query-BL-TJj7K.cjs"),h=require("../sized-mixin-CPxE5C96.cjs");require("../color-menu/index.cjs");require("../overlay/index.cjs");const d=require("../slottable-request-event-BfUUt1Mh.cjs");require("../popover/index.cjs");require("../swatch/index.cjs");const m="luzmo-popover{margin-left:var(--luzmo-color-picker-popover-horizontal-gap, var(--color-picker-popover-horizontal-gap));margin-right:var(--luzmo-color-picker-popover-horizontal-gap, var(--color-picker-popover-horizontal-gap))}luzmo-swatch{cursor:pointer}:host{--luzmo-popover-content-area-spacing-vertical: 0;--color-picker-popover-horizontal-gap: var(--luzmo-spacing-4)}:host([size=s]){--color-picker-popover-horizontal-gap: var(--luzmo-spacing-3)}:host([size=l]),:host([size=xl]){--color-picker-popover-horizontal-gap: var(--luzmo-spacing-5)}";var v=Object.defineProperty,o=(i,r,a,g)=>{for(var l=void 0,n=i.length-1,p;n>=0;n--)(p=i[n])&&(l=p(r,a,l)||l);return l&&v(r,a,l),l};const s=class s extends h.SizedMixin(t.LuzmoElement){constructor(){super(...arguments),this.color="rgb(255, 0, 0)",this.open=!1,this.disabled=!1,this.placement="left-start",this.rounding="full",this.swatches=[],this.noAlphaChannel=!1,this._renderMenu=!1}overlayCloseEvent(){this.open=!1}overlayOpenEvent(){this.open=!0}handleColorChange(){const r=this.menuElement.color;this.color=typeof r=="string"?r:String(r),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}firstUpdated(){this.overlayElement.addEventListener("slottable-request",r=>{this._renderMenu=r.data!==d.removeSlottableRequest})}updated(r){r.has("open")&&this.open===!0&&(this._renderMenu=!0)}renderColorMenu(){return t.x`
|
|
19
19
|
<luzmo-color-menu
|
|
20
20
|
.size=${this.size}
|
|
21
21
|
.color=${this.color}
|
|
@@ -37,9 +37,8 @@
|
|
|
37
37
|
></luzmo-swatch>
|
|
38
38
|
<luzmo-overlay
|
|
39
39
|
trigger=${this.disabled?"":"trigger@click"}
|
|
40
|
-
type="auto"
|
|
41
40
|
.placement=${this.placement}
|
|
42
|
-
type="
|
|
41
|
+
type="auto"
|
|
43
42
|
>
|
|
44
43
|
<luzmo-popover style="position:relative">
|
|
45
44
|
${this._renderMenu?this.renderColorMenu():t.x``}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
16
|
* SOFTWARE.
|
|
17
17
|
* */
|
|
18
|
-
import { a as z, r as d, x as u, n as
|
|
18
|
+
import { a as z, r as d, x as u, n as l } from "../base-WsynuqaS.js";
|
|
19
19
|
import { r as h } from "../state-Deh-vKYE.js";
|
|
20
20
|
import { e as c } from "../query-D_KR_GUc.js";
|
|
21
21
|
import { S as g } from "../sized-mixin-D4ACoVUr.js";
|
|
@@ -26,16 +26,16 @@ import "../popover/index.js";
|
|
|
26
26
|
import "../swatch/index.js";
|
|
27
27
|
const p = () => {
|
|
28
28
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
29
|
-
const
|
|
30
|
-
|
|
29
|
+
const t = document.createElement("style");
|
|
30
|
+
t.setAttribute("data-luzmo-vars", ""), t.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-disabled-color);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-informative-color: #1a77e9;--luzmo-informative-color-rgb: 26, 119, 233;--luzmo-disabled-color: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(t);
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
p();
|
|
34
34
|
const b = "luzmo-popover{margin-left:var(--luzmo-color-picker-popover-horizontal-gap, var(--color-picker-popover-horizontal-gap));margin-right:var(--luzmo-color-picker-popover-horizontal-gap, var(--color-picker-popover-horizontal-gap))}luzmo-swatch{cursor:pointer}:host{--luzmo-popover-content-area-spacing-vertical: 0;--color-picker-popover-horizontal-gap: var(--luzmo-spacing-4)}:host([size=s]){--color-picker-popover-horizontal-gap: var(--luzmo-spacing-3)}:host([size=l]),:host([size=xl]){--color-picker-popover-horizontal-gap: var(--luzmo-spacing-5)}";
|
|
35
|
-
var v = Object.defineProperty, e = (
|
|
36
|
-
for (var n = void 0, i =
|
|
37
|
-
(m =
|
|
38
|
-
return n && v(
|
|
35
|
+
var v = Object.defineProperty, e = (t, r, s, x) => {
|
|
36
|
+
for (var n = void 0, i = t.length - 1, m; i >= 0; i--)
|
|
37
|
+
(m = t[i]) && (n = m(r, s, n) || n);
|
|
38
|
+
return n && v(r, s, n), n;
|
|
39
39
|
};
|
|
40
40
|
const a = class a extends g(z) {
|
|
41
41
|
constructor() {
|
|
@@ -48,7 +48,8 @@ const a = class a extends g(z) {
|
|
|
48
48
|
this.open = !0;
|
|
49
49
|
}
|
|
50
50
|
handleColorChange() {
|
|
51
|
-
|
|
51
|
+
const r = this.menuElement.color;
|
|
52
|
+
this.color = typeof r == "string" ? r : String(r), this.dispatchEvent(
|
|
52
53
|
new Event("change", {
|
|
53
54
|
bubbles: !0,
|
|
54
55
|
composed: !0
|
|
@@ -56,12 +57,12 @@ const a = class a extends g(z) {
|
|
|
56
57
|
);
|
|
57
58
|
}
|
|
58
59
|
firstUpdated() {
|
|
59
|
-
this.overlayElement.addEventListener("slottable-request", (
|
|
60
|
-
this._renderMenu =
|
|
60
|
+
this.overlayElement.addEventListener("slottable-request", (r) => {
|
|
61
|
+
this._renderMenu = r.data !== f;
|
|
61
62
|
});
|
|
62
63
|
}
|
|
63
|
-
updated(
|
|
64
|
-
|
|
64
|
+
updated(r) {
|
|
65
|
+
r.has("open") && this.open === !0 && (this._renderMenu = !0);
|
|
65
66
|
}
|
|
66
67
|
renderColorMenu() {
|
|
67
68
|
return u`
|
|
@@ -89,9 +90,8 @@ const a = class a extends g(z) {
|
|
|
89
90
|
></luzmo-swatch>
|
|
90
91
|
<luzmo-overlay
|
|
91
92
|
trigger=${this.disabled ? "" : "trigger@click"}
|
|
92
|
-
type="auto"
|
|
93
93
|
.placement=${this.placement}
|
|
94
|
-
type="
|
|
94
|
+
type="auto"
|
|
95
95
|
>
|
|
96
96
|
<luzmo-popover style="position:relative">
|
|
97
97
|
${this._renderMenu ? this.renderColorMenu() : u``}
|
|
@@ -103,28 +103,28 @@ const a = class a extends g(z) {
|
|
|
103
103
|
a.styles = d(b);
|
|
104
104
|
let o = a;
|
|
105
105
|
e([
|
|
106
|
-
|
|
106
|
+
l({ type: String, reflect: !0 })
|
|
107
107
|
], o.prototype, "color");
|
|
108
108
|
e([
|
|
109
|
-
|
|
109
|
+
l({ type: Boolean, reflect: !0 })
|
|
110
110
|
], o.prototype, "open");
|
|
111
111
|
e([
|
|
112
|
-
|
|
112
|
+
l({ type: Boolean, reflect: !0 })
|
|
113
113
|
], o.prototype, "disabled");
|
|
114
114
|
e([
|
|
115
|
-
|
|
115
|
+
l({ type: String, reflect: !0 })
|
|
116
116
|
], o.prototype, "placement");
|
|
117
117
|
e([
|
|
118
|
-
|
|
118
|
+
l({ type: String, reflect: !0 })
|
|
119
119
|
], o.prototype, "rounding");
|
|
120
120
|
e([
|
|
121
|
-
|
|
121
|
+
l({ type: String, reflect: !0 })
|
|
122
122
|
], o.prototype, "shape");
|
|
123
123
|
e([
|
|
124
|
-
|
|
124
|
+
l({ type: Array, reflect: !0 })
|
|
125
125
|
], o.prototype, "swatches");
|
|
126
126
|
e([
|
|
127
|
-
|
|
127
|
+
l({ type: Boolean, reflect: !0, attribute: "no-alpha-channel" })
|
|
128
128
|
], o.prototype, "noAlphaChannel");
|
|
129
129
|
e([
|
|
130
130
|
c("luzmo-color-menu")
|
package/components/index.cjs
CHANGED
|
@@ -15,4 +15,4 @@
|
|
|
15
15
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
16
|
* SOFTWARE.
|
|
17
17
|
* */
|
|
18
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./accordion/index.cjs"),d=require("./action-bar/index.cjs"),q=require("./action-button/index.cjs");require("./action-group/index.cjs");const p=require("./action-menu/index.cjs"),x=require("./avatar/index.cjs"),_=require("./button/index.cjs"),
|
|
18
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./accordion/index.cjs"),d=require("./action-bar/index.cjs"),q=require("./action-button/index.cjs");require("./action-group/index.cjs");const p=require("./action-menu/index.cjs"),x=require("./avatar/index.cjs"),_=require("./button/index.cjs"),S=require("./button-group/index.cjs"),T=require("./index-BLWuwZXx.cjs"),b=require("./checkbox/index.cjs"),C=require("./color-area/index.cjs"),v=require("./color-field/index.cjs"),I=require("./color-handle/index.cjs");require("./color-loupe/index.cjs");const g=require("./color-menu/index.cjs"),A=require("./color-picker/index.cjs"),O=require("./color-slider/index.cjs"),M=require("./date-time-picker/index.cjs"),F=require("./divider/index.cjs");require("./field-group/index.cjs");require("./field-label/index.cjs");const P=require("./icon/index.cjs"),y=require("./infield-button/index.cjs"),R=require("./label/index.cjs"),i=require("./menu/index.cjs"),B=require("./multi-language-field/index.cjs"),k=require("./number-field/index.cjs"),u=require("./options/index.cjs"),r=require("./overlay/index.cjs");require("./picker/index.cjs");const G=require("./picker-button/index.cjs");require("./popover/index.cjs");require("./progress-circle/index.cjs");const m=require("./radio/index.cjs"),h=require("./search/index.cjs"),D=require("./select/index.cjs"),E=require("./slider/index.cjs"),c=require("./swatch/index.cjs"),f=require("./switch/index.cjs"),t=require("./tabs/index.cjs"),s=require("./tags/index.cjs"),N=require("./text-field/index.cjs"),U=require("./toast/index.cjs"),w=require("./tooltip/index.cjs"),H=require("./unit-input/index.cjs"),L=require("./base-CBCg3yyw.cjs"),V=require("./focus-visible-B0P9aY_G.cjs"),K=require("./focusable-EbipgXRh.cjs"),o=require("./platform-BiXhwqk3.cjs"),a=require("./sized-mixin-CPxE5C96.cjs"),W=require("./streaming-listener-B00MvALi.cjs"),Z=require("./action-group-DJGMcRHb.cjs"),j=require("./clear-button-Qi1pMA5S.cjs"),J=require("./close-button-BFMBEw3q.cjs"),Q=require("./color-loupe-CaA_Lfkk.cjs"),X=require("./field-group-DkGst3r5.cjs"),Y=require("./field-label-mO1AkUgR.cjs"),e=require("./overlay-lzq2PziH.cjs"),z=require("./slottable-request-event-BfUUt1Mh.cjs"),n=require("./picker-DWsBWdPN.cjs"),$=require("./popover-KFfO0IYL.cjs"),ee=require("./progress-circle-BvRJNuNo.cjs"),oe=require("./text-field-D5d_Gt0t.cjs");exports.LuzmoAccordion=l.LuzmoAccordion;exports.LuzmoAccordionItem=l.LuzmoAccordionItem;exports.LuzmoActionBar=d.LuzmoActionBar;exports.LuzmoActionButton=q.LuzmoActionButton;exports.LuzmoActionMenu=p.LuzmoActionMenu;exports.LuzmoAvatar=x.LuzmoAvatar;exports.LuzmoButton=_.LuzmoButton;exports.LuzmoButtonGroup=S.LuzmoButtonGroup;exports.LuzmoCalendar=T.LuzmoCalendar;exports.LuzmoCheckbox=b.LuzmoCheckbox;exports.LuzmoColorArea=C.LuzmoColorArea;exports.LuzmoColorField=v.LuzmoColorField;exports.LuzmoColorHandle=I.LuzmoColorHandle;exports.LuzmoColorMenu=g.LuzmoColorMenu;exports.LuzmoColorPicker=A.LuzmoColorPicker;exports.LuzmoColorSlider=O.LuzmoColorSlider;exports.LuzmoDateTimePicker=M.LuzmoDateTimePicker;exports.LuzmoDivider=F.LuzmoDivider;exports.LuzmoIcon=P.LuzmoIcon;exports.LuzmoInfieldButton=y.LuzmoInfieldButton;exports.LuzmoLabel=R.LuzmoLabel;exports.LuzmoMenu=i.LuzmoMenu;exports.LuzmoMenuDivider=i.LuzmoMenuDivider;exports.LuzmoMenuGroup=i.LuzmoMenuGroup;exports.LuzmoMenuItem=i.LuzmoMenuItem;exports.MenuItemAddedOrUpdatedEvent=i.MenuItemAddedOrUpdatedEvent;exports.LuzmoMultiLangField=B.LuzmoMultiLangField;exports.LuzmoNumberField=k.LuzmoNumberField;exports.LuzmoOption=u.LuzmoOption;exports.LuzmoOptions=u.LuzmoOptions;exports.LuzmoOptionsDivider=u.LuzmoOptionsDivider;exports.VIRTUALIZE_AS_OF_NUM_ITEMS=u.VIRTUALIZE_AS_OF_NUM_ITEMS;exports.LuzmoOverlayTrigger=r.LuzmoOverlayTrigger;exports.OverlayTriggerDirective=r.OverlayTriggerDirective;exports.SlottableRequestDirective=r.SlottableRequestDirective;exports.openOverlay=r.openOverlay;exports.slottableRequest=r.slottableRequest;exports.trigger=r.trigger;exports.LuzmoPickerButton=G.LuzmoPickerButton;exports.LuzmoRadio=m.LuzmoRadio;exports.LuzmoRadioGroup=m.LuzmoRadioGroup;exports.LuzmoSearch=h.LuzmoSearch;exports.LuzmoSelect=D.LuzmoSelect;exports.LuzmoSlider=E.LuzmoSlider;exports.LuzmoSwatch=c.LuzmoSwatch;exports.LuzmoSwatchGroup=c.LuzmoSwatchGroup;exports.LuzmoSwitch=f.LuzmoSwitch;exports.LuzmoTab=t.LuzmoTab;exports.LuzmoTabPanel=t.LuzmoTabPanel;exports.LuzmoTabs=t.LuzmoTabs;exports.LuzmoTabsOverflow=t.LuzmoTabsOverflow;exports.LuzmoTag=s.LuzmoTag;exports.LuzmoTags=s.LuzmoTags;exports.LuzmoHelpText=N.LuzmoHelpText;exports.LuzmoToast=U.LuzmoToast;exports.LuzmoTooltip=w.LuzmoTooltip;exports.LuzmoUnitInput=H.LuzmoUnitInput;exports.LuzmoElement=L.LuzmoElement;exports.LuzmoMixin=L.LuzmoMixin;exports.FocusVisiblePolyfillMixin=V.FocusVisiblePolyfillMixin;exports.Focusable=K.Focusable;exports.isAndroid=o.isAndroid;exports.isAppleDevice=o.isAppleDevice;exports.isChrome=o.isChrome;exports.isFirefox=o.isFirefox;exports.isIOS=o.isIOS;exports.isIPad=o.isIPad;exports.isIPhone=o.isIPhone;exports.isMac=o.isMac;exports.isSeamonkey=o.isSeamonkey;exports.isWebKit=o.isWebKit;exports.ElementSizes=a.ElementSizes;exports.SizedMixin=a.SizedMixin;exports.streamingListener=W.streamingListener;exports.LuzmoActionGroup=Z.LuzmoActionGroup;exports.LuzmoClearButton=j.LuzmoClearButton;exports.LuzmoCloseButton=J.LuzmoCloseButton;exports.LuzmoColorLoupe=Q.LuzmoColorLoupe;exports.LuzmoFieldGroup=X.LuzmoFieldGroup;exports.LuzmoFieldLabel=Y.LuzmoFieldLabel;exports.ClickController=e.ClickController;exports.HoverController=e.HoverController;exports.InteractionController=e.InteractionController;exports.InteractionTypes=e.InteractionTypes;exports.LONGPRESS_INSTRUCTIONS=e.LONGPRESS_INSTRUCTIONS;exports.LongpressController=e.LongpressController;exports.LuzmoAbstractOverlay=e.LuzmoAbstractOverlay;exports.LuzmoOverlay=e.LuzmoOverlay;exports.PlacementController=e.PlacementController;exports.SAFARI_FOCUS_RING_CLASS=e.SAFARI_FOCUS_RING_CLASS;exports.VirtualTrigger=e.VirtualTrigger;exports.guaranteedAllTransitionend=e.guaranteedAllTransitionend;exports.lastInteractionType=e.lastInteractionType;exports.nextFrame=e.nextFrame;exports.noop=e.noop;exports.overlayTimer=e.overlayTimer;exports.placementUpdatedSymbol=e.placementUpdatedSymbol;exports.SlottableRequestEvent=z.SlottableRequestEvent;exports.removeSlottableRequest=z.removeSlottableRequest;exports.DESCRIPTION_ID=n.DESCRIPTION_ID;exports.LuzmoPicker=n.LuzmoPicker;exports.LuzmoPickerBase=n.LuzmoPickerBase;exports.LuzmoPopover=$.LuzmoPopover;exports.LuzmoProgressCircle=ee.LuzmoProgressCircle;exports.LuzmoTextField=oe.LuzmoTextField;
|
package/components/index.js
CHANGED
|
@@ -21,18 +21,18 @@ import { LuzmoActionButton as x } from "./action-button/index.js";
|
|
|
21
21
|
import "./action-group/index.js";
|
|
22
22
|
import { LuzmoActionMenu as g } from "./action-menu/index.js";
|
|
23
23
|
import { LuzmoAvatar as h } from "./avatar/index.js";
|
|
24
|
-
import { LuzmoButton as
|
|
24
|
+
import { LuzmoButton as S } from "./button/index.js";
|
|
25
25
|
import { LuzmoButtonGroup as C } from "./button-group/index.js";
|
|
26
|
-
import { L as
|
|
26
|
+
import { L as T } from "./index-A-yOTB_d.js";
|
|
27
27
|
import { LuzmoCheckbox as w } from "./checkbox/index.js";
|
|
28
28
|
import { LuzmoColorArea as O } from "./color-area/index.js";
|
|
29
|
-
import { LuzmoColorField as
|
|
30
|
-
import { LuzmoColorHandle as
|
|
29
|
+
import { LuzmoColorField as M } from "./color-field/index.js";
|
|
30
|
+
import { LuzmoColorHandle as R } from "./color-handle/index.js";
|
|
31
31
|
import "./color-loupe/index.js";
|
|
32
32
|
import { LuzmoColorMenu as B } from "./color-menu/index.js";
|
|
33
33
|
import { LuzmoColorPicker as G } from "./color-picker/index.js";
|
|
34
|
-
import { LuzmoColorSlider as
|
|
35
|
-
import { LuzmoDateTimePicker as
|
|
34
|
+
import { LuzmoColorSlider as _ } from "./color-slider/index.js";
|
|
35
|
+
import { LuzmoDateTimePicker as H } from "./date-time-picker/index.js";
|
|
36
36
|
import { LuzmoDivider as V } from "./divider/index.js";
|
|
37
37
|
import "./field-group/index.js";
|
|
38
38
|
import "./field-label/index.js";
|
|
@@ -48,14 +48,14 @@ import "./picker/index.js";
|
|
|
48
48
|
import { LuzmoPickerButton as vo } from "./picker-button/index.js";
|
|
49
49
|
import "./popover/index.js";
|
|
50
50
|
import "./progress-circle/index.js";
|
|
51
|
-
import { LuzmoRadio as
|
|
52
|
-
import { LuzmoSearch as
|
|
51
|
+
import { LuzmoRadio as yo, LuzmoRadioGroup as Co } from "./radio/index.js";
|
|
52
|
+
import { LuzmoSearch as To } from "./search/index.js";
|
|
53
53
|
import { LuzmoSelect as wo } from "./select/index.js";
|
|
54
54
|
import { LuzmoSlider as Oo } from "./slider/index.js";
|
|
55
|
-
import { LuzmoSwatch as
|
|
56
|
-
import { LuzmoSwitch as
|
|
57
|
-
import { LuzmoTab as Do, LuzmoTabPanel as Go, LuzmoTabs as Uo, LuzmoTabsOverflow as
|
|
58
|
-
import { LuzmoTag as
|
|
55
|
+
import { LuzmoSwatch as Mo, LuzmoSwatchGroup as Po } from "./swatch/index.js";
|
|
56
|
+
import { LuzmoSwitch as Eo } from "./switch/index.js";
|
|
57
|
+
import { LuzmoTab as Do, LuzmoTabPanel as Go, LuzmoTabs as Uo, LuzmoTabsOverflow as _o } from "./tabs/index.js";
|
|
58
|
+
import { LuzmoTag as Ho, LuzmoTags as qo } from "./tags/index.js";
|
|
59
59
|
import { LuzmoHelpText as jo } from "./text-field/index.js";
|
|
60
60
|
import { LuzmoToast as Wo } from "./toast/index.js";
|
|
61
61
|
import { LuzmoTooltip as Jo } from "./tooltip/index.js";
|
|
@@ -66,18 +66,18 @@ import { F as mr } from "./focusable-BxtpnzWp.js";
|
|
|
66
66
|
import { j as tr, d as ar, e as ir, h as zr, c as nr, b as sr, a as cr, i as pr, g as fr, f as dr } from "./platform-BM-uMWpX.js";
|
|
67
67
|
import { E as br, S as gr } from "./sized-mixin-D4ACoVUr.js";
|
|
68
68
|
import { s as hr } from "./streaming-listener-CP-JE6Fa.js";
|
|
69
|
-
import { L as
|
|
69
|
+
import { L as Sr } from "./action-group-DBImibFn.js";
|
|
70
70
|
import { L as Cr } from "./clear-button-DoeRUWQ3.js";
|
|
71
|
-
import { L as
|
|
71
|
+
import { L as Tr } from "./close-button-BWXdHSx3.js";
|
|
72
72
|
import { L as wr } from "./color-loupe-CmMsXbjT.js";
|
|
73
73
|
import { L as Or } from "./field-group-DXfBWrkO.js";
|
|
74
|
-
import { L as
|
|
75
|
-
import { C as
|
|
76
|
-
import { S as
|
|
77
|
-
import { D as
|
|
78
|
-
import { LuzmoPopover as
|
|
79
|
-
import { L as
|
|
80
|
-
import { L as
|
|
74
|
+
import { L as Mr } from "./field-label-CZ2zzChK.js";
|
|
75
|
+
import { C as Rr, H as Er, b as Br, I as Dr, c as Gr, d as Ur, L as _r, e as Nr, P as Hr, S as qr, V as Vr, g as jr, l as Kr, a as Wr, n as Zr, o as Jr, p as Qr } from "./overlay-DaOKAKMl.js";
|
|
76
|
+
import { S as Yr, r as $r } from "./slottable-request-event-DggLA4Rx.js";
|
|
77
|
+
import { D as re, a as ee, L as le } from "./picker-BmoXv1jt.js";
|
|
78
|
+
import { LuzmoPopover as ue } from "./popover-DjX0aAnY.js";
|
|
79
|
+
import { L as ae } from "./progress-circle-DXH9z8-6.js";
|
|
80
|
+
import { L as ze } from "./text-field-BIADXoLC.js";
|
|
81
81
|
const r = () => {
|
|
82
82
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
83
83
|
const o = document.createElement("style");
|
|
@@ -86,42 +86,42 @@ const r = () => {
|
|
|
86
86
|
};
|
|
87
87
|
r();
|
|
88
88
|
export {
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
Rr as ClickController,
|
|
90
|
+
re as DESCRIPTION_ID,
|
|
91
91
|
br as ElementSizes,
|
|
92
92
|
er as FocusVisiblePolyfillMixin,
|
|
93
93
|
mr as Focusable,
|
|
94
|
-
|
|
94
|
+
Er as HoverController,
|
|
95
95
|
Br as InteractionController,
|
|
96
96
|
Dr as InteractionTypes,
|
|
97
97
|
Gr as LONGPRESS_INSTRUCTIONS,
|
|
98
98
|
Ur as LongpressController,
|
|
99
|
-
|
|
99
|
+
_r as LuzmoAbstractOverlay,
|
|
100
100
|
s as LuzmoAccordion,
|
|
101
101
|
c as LuzmoAccordionItem,
|
|
102
102
|
f as LuzmoActionBar,
|
|
103
103
|
x as LuzmoActionButton,
|
|
104
|
-
|
|
104
|
+
Sr as LuzmoActionGroup,
|
|
105
105
|
g as LuzmoActionMenu,
|
|
106
106
|
h as LuzmoAvatar,
|
|
107
|
-
|
|
107
|
+
S as LuzmoButton,
|
|
108
108
|
C as LuzmoButtonGroup,
|
|
109
|
-
|
|
109
|
+
T as LuzmoCalendar,
|
|
110
110
|
w as LuzmoCheckbox,
|
|
111
111
|
Cr as LuzmoClearButton,
|
|
112
|
-
|
|
112
|
+
Tr as LuzmoCloseButton,
|
|
113
113
|
O as LuzmoColorArea,
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
M as LuzmoColorField,
|
|
115
|
+
R as LuzmoColorHandle,
|
|
116
116
|
wr as LuzmoColorLoupe,
|
|
117
117
|
B as LuzmoColorMenu,
|
|
118
118
|
G as LuzmoColorPicker,
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
_ as LuzmoColorSlider,
|
|
120
|
+
H as LuzmoDateTimePicker,
|
|
121
121
|
V as LuzmoDivider,
|
|
122
122
|
$o as LuzmoElement,
|
|
123
123
|
Or as LuzmoFieldGroup,
|
|
124
|
-
|
|
124
|
+
Mr as LuzmoFieldLabel,
|
|
125
125
|
jo as LuzmoHelpText,
|
|
126
126
|
K as LuzmoIcon,
|
|
127
127
|
Z as LuzmoInfieldButton,
|
|
@@ -136,40 +136,41 @@ export {
|
|
|
136
136
|
io as LuzmoOption,
|
|
137
137
|
zo as LuzmoOptions,
|
|
138
138
|
no as LuzmoOptionsDivider,
|
|
139
|
-
|
|
139
|
+
Nr as LuzmoOverlay,
|
|
140
140
|
po as LuzmoOverlayTrigger,
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
ee as LuzmoPicker,
|
|
142
|
+
le as LuzmoPickerBase,
|
|
143
143
|
vo as LuzmoPickerButton,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
ue as LuzmoPopover,
|
|
145
|
+
ae as LuzmoProgressCircle,
|
|
146
|
+
yo as LuzmoRadio,
|
|
147
147
|
Co as LuzmoRadioGroup,
|
|
148
|
-
|
|
148
|
+
To as LuzmoSearch,
|
|
149
149
|
wo as LuzmoSelect,
|
|
150
150
|
Oo as LuzmoSlider,
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
151
|
+
Mo as LuzmoSwatch,
|
|
152
|
+
Po as LuzmoSwatchGroup,
|
|
153
|
+
Eo as LuzmoSwitch,
|
|
154
154
|
Do as LuzmoTab,
|
|
155
155
|
Go as LuzmoTabPanel,
|
|
156
156
|
Uo as LuzmoTabs,
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
_o as LuzmoTabsOverflow,
|
|
158
|
+
Ho as LuzmoTag,
|
|
159
159
|
qo as LuzmoTags,
|
|
160
|
-
|
|
160
|
+
ze as LuzmoTextField,
|
|
161
161
|
Wo as LuzmoToast,
|
|
162
162
|
Jo as LuzmoTooltip,
|
|
163
163
|
Xo as LuzmoUnitInput,
|
|
164
164
|
eo as MenuItemAddedOrUpdatedEvent,
|
|
165
165
|
fo as OverlayTriggerDirective,
|
|
166
|
-
|
|
166
|
+
Hr as PlacementController,
|
|
167
|
+
qr as SAFARI_FOCUS_RING_CLASS,
|
|
167
168
|
gr as SizedMixin,
|
|
168
169
|
xo as SlottableRequestDirective,
|
|
169
|
-
|
|
170
|
+
Yr as SlottableRequestEvent,
|
|
170
171
|
so as VIRTUALIZE_AS_OF_NUM_ITEMS,
|
|
171
|
-
|
|
172
|
-
|
|
172
|
+
Vr as VirtualTrigger,
|
|
173
|
+
jr as guaranteedAllTransitionend,
|
|
173
174
|
tr as isAndroid,
|
|
174
175
|
ar as isAppleDevice,
|
|
175
176
|
ir as isChrome,
|
|
@@ -180,12 +181,13 @@ export {
|
|
|
180
181
|
pr as isMac,
|
|
181
182
|
fr as isSeamonkey,
|
|
182
183
|
dr as isWebKit,
|
|
183
|
-
|
|
184
|
-
|
|
184
|
+
Kr as lastInteractionType,
|
|
185
|
+
Wr as nextFrame,
|
|
186
|
+
Zr as noop,
|
|
185
187
|
bo as openOverlay,
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
188
|
+
Jr as overlayTimer,
|
|
189
|
+
Qr as placementUpdatedSymbol,
|
|
190
|
+
$r as removeSlottableRequest,
|
|
189
191
|
go as slottableRequest,
|
|
190
192
|
hr as streamingListener,
|
|
191
193
|
Lo as trigger
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
@luzmo-menu-item-added-or-updated=${{handleEvent:t=>{t.clear(t.item)},capture:!0}}
|
|
48
48
|
@focusin=${t=>t.stopPropagation()}
|
|
49
49
|
></slot>
|
|
50
|
-
`;return this.hasSubmenu?(this.dependencyManager.add("luzmo-overlay"),this.dependencyManager.add("luzmo-popover"),Promise.resolve().then(()=>require("../overlay-
|
|
50
|
+
`;return this.hasSubmenu?(this.dependencyManager.add("luzmo-overlay"),this.dependencyManager.add("luzmo-popover"),Promise.resolve().then(()=>require("../overlay-lzq2PziH.cjs")).then(t=>t.overlay),Promise.resolve().then(()=>require("../popover-KFfO0IYL.cjs")),a.x`
|
|
51
51
|
<luzmo-overlay
|
|
52
52
|
.triggerElement=${this}
|
|
53
53
|
?disabled=${!this.hasSubmenu}
|
package/components/menu/index.js
CHANGED
|
@@ -688,7 +688,7 @@ class s extends R(
|
|
|
688
688
|
@focusin=${(t) => t.stopPropagation()}
|
|
689
689
|
></slot>
|
|
690
690
|
`;
|
|
691
|
-
return this.hasSubmenu ? (this.dependencyManager.add("luzmo-overlay"), this.dependencyManager.add("luzmo-popover"), import("../overlay-
|
|
691
|
+
return this.hasSubmenu ? (this.dependencyManager.add("luzmo-overlay"), this.dependencyManager.add("luzmo-popover"), import("../overlay-DaOKAKMl.js").then((t) => t.f), import("../popover-DjX0aAnY.js"), d`
|
|
692
692
|
<luzmo-overlay
|
|
693
693
|
.triggerElement=${this}
|
|
694
694
|
?disabled=${!this.hasSubmenu}
|
|
@@ -5,6 +5,7 @@ export declare class HoverController extends InteractionController {
|
|
|
5
5
|
focusedin: boolean;
|
|
6
6
|
private hoverTimeout?;
|
|
7
7
|
pointerentered: boolean;
|
|
8
|
+
handleKeyup(event: KeyboardEvent): void;
|
|
8
9
|
handleTargetFocusin(): void;
|
|
9
10
|
handleTargetFocusout(): void;
|
|
10
11
|
handleTargetPointerenter(): void;
|
|
@@ -17,4 +18,5 @@ export declare class HoverController extends InteractionController {
|
|
|
17
18
|
protected doPointerleave(): void;
|
|
18
19
|
init(): void;
|
|
19
20
|
initOverlay(): void;
|
|
21
|
+
private removeSafariFocusRingClass;
|
|
20
22
|
}
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
16
|
* SOFTWARE.
|
|
17
17
|
* */
|
|
18
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../overlay-
|
|
18
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../overlay-lzq2PziH.cjs"),n=require("../base-CBCg3yyw.cjs"),p=require("../state-D8JEtYqe.cjs"),d=require("../query-BL-TJj7K.cjs"),f=require("../directive-C7oCP5Bh.cjs"),O=require("../async-directive-BX1T1e1_.cjs"),u=require("../slottable-request-event-BfUUt1Mh.cjs"),S=":host([disabled]) ::slotted([slot=trigger]){pointer-events:none}slot[name=longpress-describedby-descriptor]{display:none}";var $=Object.defineProperty,l=(h,e,r,t)=>{for(var i=void 0,a=h.length-1,c;a>=0;a--)(c=h[a])&&(i=c(e,r,i)||i);return i&&$(e,r,i),i};class o extends n.LuzmoElement{constructor(){super(...arguments),this.content="click hover longpress",this.offset=6,this.disabled=!1,this.receivesFocus="auto",this.clickContent=[],this.longpressContent=[],this.hoverContent=[],this.targetContent=[]}static get styles(){return[n.r(S)]}getAssignedElementsFromSlot(e){return e.assignedElements({flatten:!0})}handleTriggerContent(e){this.targetContent=this.getAssignedElementsFromSlot(e.target)}handleSlotContent(e){switch(e.target.name){case"click-content":{this.clickContent=this.getAssignedElementsFromSlot(e.target);break}case"longpress-content":{this.longpressContent=this.getAssignedElementsFromSlot(e.target);break}case"hover-content":{this.hoverContent=this.getAssignedElementsFromSlot(e.target);break}}}handleBeforetoggle(e){const{target:r}=e;let t;if(r===this.clickOverlayElement)t="click";else if(r===this.longpressOverlayElement)t="longpress";else if(r===this.hoverOverlayElement)t="hover";else return;e.newState==="open"?this.open=t:this.open===t&&(this.open=void 0)}update(e){var r,t,i,a,c,g;e.has("clickContent")&&(this.clickPlacement=((r=this.clickContent[0])==null?void 0:r.getAttribute("placement"))||((t=this.clickContent[0])==null?void 0:t.getAttribute("direction"))||void 0),e.has("hoverContent")&&(this.hoverPlacement=((i=this.hoverContent[0])==null?void 0:i.getAttribute("placement"))||((a=this.hoverContent[0])==null?void 0:a.getAttribute("direction"))||void 0),e.has("longpressContent")&&(this.longpressPlacement=((c=this.longpressContent[0])==null?void 0:c.getAttribute("placement"))||((g=this.longpressContent[0])==null?void 0:g.getAttribute("direction"))||void 0),super.update(e)}renderSlot(e){return n.x`
|
|
19
19
|
<slot name=${e} @slotchange=${this.handleSlotContent}></slot>
|
|
20
|
-
`}renderClickOverlay(){
|
|
20
|
+
`}renderClickOverlay(){var t;const e=this.renderSlot("click-content"),r=n.x`
|
|
21
21
|
<luzmo-overlay
|
|
22
22
|
id="click-overlay"
|
|
23
23
|
?disabled=${this.disabled||this.clickContent.length===0}
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
>
|
|
33
33
|
${e}
|
|
34
34
|
</luzmo-overlay>
|
|
35
|
-
|
|
35
|
+
`;return(t=this.triggeredBy)!=null&&t.includes("click")?r:this.clickContent.length===0?e:r}renderHoverOverlay(){var t;const e=this.renderSlot("hover-content"),r=n.x`
|
|
36
36
|
<luzmo-overlay
|
|
37
37
|
id="hover-overlay"
|
|
38
38
|
?open=${this.open==="hover"&&this.hoverContent.length>0}
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
>
|
|
48
48
|
${e}
|
|
49
49
|
</luzmo-overlay>
|
|
50
|
-
|
|
50
|
+
`;return(t=this.triggeredBy)!=null&&t.includes("hover")?r:this.hoverContent.length===0?e:r}renderLongpressOverlay(){var t;const e=this.renderSlot("longpress-content"),r=n.x`
|
|
51
51
|
<luzmo-overlay
|
|
52
52
|
id="longpress-overlay"
|
|
53
53
|
?disabled=${this.disabled||this.longpressContent.length===0}
|
|
@@ -63,11 +63,11 @@
|
|
|
63
63
|
${e}
|
|
64
64
|
</luzmo-overlay>
|
|
65
65
|
<slot name="longpress-describedby-descriptor"></slot>
|
|
66
|
-
|
|
66
|
+
`;return(t=this.triggeredBy)!=null&&t.includes("longpress")?r:this.longpressContent.length===0?e:r}render(){return n.x`
|
|
67
67
|
<slot
|
|
68
68
|
id="trigger"
|
|
69
69
|
name="trigger"
|
|
70
70
|
@slotchange=${this.handleTriggerContent}
|
|
71
71
|
></slot>
|
|
72
|
-
${[
|
|
73
|
-
`}updated(e){if(super.updated(e),this.disabled&&e.has("disabled")){this.open=void 0;return}}async getUpdateComplete(){return await super.getUpdateComplete()}}l([
|
|
72
|
+
${[this.renderClickOverlay(),this.renderHoverOverlay(),this.renderLongpressOverlay()]}
|
|
73
|
+
`}updated(e){if(super.updated(e),this.disabled&&e.has("disabled")){this.open=void 0;return}}async getUpdateComplete(){return await super.getUpdateComplete()}}l([n.n()],o.prototype,"content");l([n.n({attribute:"triggered-by"})],o.prototype,"triggeredBy");l([n.n({reflect:!0})],o.prototype,"placement");l([n.n()],o.prototype,"type");l([n.n({type:Number})],o.prototype,"offset");l([n.n({reflect:!0})],o.prototype,"open");l([n.n({type:Boolean,reflect:!0})],o.prototype,"disabled");l([n.n({attribute:"receives-focus"})],o.prototype,"receivesFocus");l([p.r()],o.prototype,"clickContent");l([p.r()],o.prototype,"longpressContent");l([p.r()],o.prototype,"hoverContent");l([p.r()],o.prototype,"targetContent");l([d.e("#click-overlay",!0)],o.prototype,"clickOverlayElement");l([d.e("#longpress-overlay",!0)],o.prototype,"longpressOverlayElement");l([d.e("#hover-overlay",!0)],o.prototype,"hoverOverlayElement");function k(h,e,r,t){return s.LuzmoOverlay.open(h,e,r,t)}class v extends O.f{render(e){return n.E}update(e,[r]){this.template=r,this.target!==e.element&&(this.target=e.element,this.renderBefore=this.target.children[0]),this.listenerHost=this.target,this.init()}handleSlottableRequest(e){if(e.target!==e.currentTarget)return;const r=e.data===u.removeSlottableRequest;n.B(r?void 0:this.template(),this.target,{renderBefore:this.renderBefore})}init(){var r;(r=this.listeners)==null||r.abort(),this.listeners=new AbortController;const{signal:e}=this.listeners;this.listenerHost.addEventListener("slottable-request",t=>this.handleSlottableRequest(t),{signal:e})}disconnected(){var e;(e=this.listeners)==null||e.abort()}reconnected(){this.init()}}const E=f.e(v);class b extends v{constructor(){super(...arguments),this.defaultOptions={triggerInteraction:"click",overlayOptions:{type:"auto",offset:0}},this.options={...this.defaultOptions.overlayOptions}}render(e,r){return n.E}update(e,[r,t]){var g,y,m;this.options={...this.defaultOptions.overlayOptions,...t==null?void 0:t.overlayOptions},this.insertionOptions=t==null?void 0:t.insertionOptions,this.template=r,this.host=(g=e.options)==null?void 0:g.host;let i=!1;const a=(t==null?void 0:t.triggerInteraction)||this.defaultOptions.triggerInteraction,c=s.InteractionTypes[(y=this.strategy)==null?void 0:y.type]!==a;this.target!==e.element&&(this.target=e.element,i=!0),(i||c)&&((m=this.strategy)==null||m.abort(),this.strategy=new s.strategies[a](this.target,{isPersistent:!0,handleOverlayReady:C=>{this.listenerHost=this.overlay=C,this.init()}})),this.strategy.open=(t==null?void 0:t.open)??!1}handleSlottableRequest(e){var i,a;if(e.target!==e.currentTarget)return;const r=e.data===u.removeSlottableRequest,t={};if(this.host&&(t.host=this.host),n.B(r?void 0:this.template(),this.overlay,t),r)this.overlay.remove();else{s.LuzmoAbstractOverlay.applyOptions(this.overlay,{...this.options,trigger:this.target});const c=typeof((i=this.insertionOptions)==null?void 0:i.el)=="function"?this.insertionOptions.el():((a=this.insertionOptions)==null?void 0:a.el)||this.target,{where:g="afterend"}=this.insertionOptions||{};c.insertAdjacentElement(g,this.overlay)}}}const T=f.e(b);customElements.get("luzmo-overlay")||customElements.define("luzmo-overlay",s.LuzmoOverlay);customElements.get("luzmo-overlay-trigger")||customElements.define("luzmo-overlay-trigger",o);exports.ClickController=s.ClickController;exports.HoverController=s.HoverController;exports.InteractionController=s.InteractionController;exports.InteractionTypes=s.InteractionTypes;exports.LONGPRESS_INSTRUCTIONS=s.LONGPRESS_INSTRUCTIONS;exports.LongpressController=s.LongpressController;exports.LuzmoAbstractOverlay=s.LuzmoAbstractOverlay;exports.LuzmoOverlay=s.LuzmoOverlay;exports.PlacementController=s.PlacementController;exports.SAFARI_FOCUS_RING_CLASS=s.SAFARI_FOCUS_RING_CLASS;exports.VirtualTrigger=s.VirtualTrigger;exports.guaranteedAllTransitionend=s.guaranteedAllTransitionend;exports.lastInteractionType=s.lastInteractionType;exports.nextFrame=s.nextFrame;exports.noop=s.noop;exports.overlayTimer=s.overlayTimer;exports.placementUpdatedSymbol=s.placementUpdatedSymbol;exports.SlottableRequestEvent=u.SlottableRequestEvent;exports.removeSlottableRequest=u.removeSlottableRequest;exports.LuzmoOverlayTrigger=o;exports.OverlayTriggerDirective=b;exports.SlottableRequestDirective=v;exports.openOverlay=k;exports.slottableRequest=E;exports.trigger=T;
|