@aura360/aura-nine-dot-menu 1.2.1 → 1.3.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.
- package/dist/index.es.js +305 -286
- package/dist/index.umd.js +73 -75
- package/dist/web-component/AuraNineDotMenu.d.ts +10 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
1
|
+
import _t, { useRef as mt, useEffect as X } from "react";
|
|
2
|
+
const N = globalThis, V = N.ShadowRoot && (N.ShadyCSS === void 0 || N.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, K = /* @__PURE__ */ Symbol(), tt = /* @__PURE__ */ new WeakMap();
|
|
3
3
|
let ct = class {
|
|
4
4
|
constructor(t, e, s) {
|
|
5
5
|
if (this._$cssResult$ = !0, s !== K) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -8,7 +8,7 @@ let ct = class {
|
|
|
8
8
|
get styleSheet() {
|
|
9
9
|
let t = this.o;
|
|
10
10
|
const e = this.t;
|
|
11
|
-
if (
|
|
11
|
+
if (V && t === void 0) {
|
|
12
12
|
const s = e !== void 0 && e.length === 1;
|
|
13
13
|
s && (t = tt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && tt.set(e, t));
|
|
14
14
|
}
|
|
@@ -18,54 +18,54 @@ let ct = class {
|
|
|
18
18
|
return this.cssText;
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
-
const
|
|
22
|
-
const e =
|
|
21
|
+
const yt = (r) => new ct(typeof r == "string" ? r : r + "", void 0, K), j = (r, ...t) => {
|
|
22
|
+
const e = r.length === 1 ? r[0] : t.reduce((s, i, n) => s + ((o) => {
|
|
23
23
|
if (o._$cssResult$ === !0) return o.cssText;
|
|
24
24
|
if (typeof o == "number") return o;
|
|
25
25
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
26
|
-
})(
|
|
27
|
-
return new ct(e,
|
|
28
|
-
},
|
|
29
|
-
if (
|
|
26
|
+
})(i) + r[n + 1], r[0]);
|
|
27
|
+
return new ct(e, r, K);
|
|
28
|
+
}, vt = (r, t) => {
|
|
29
|
+
if (V) r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
30
30
|
else for (const e of t) {
|
|
31
|
-
const s = document.createElement("style"),
|
|
32
|
-
|
|
31
|
+
const s = document.createElement("style"), i = N.litNonce;
|
|
32
|
+
i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, r.appendChild(s);
|
|
33
33
|
}
|
|
34
|
-
}, et =
|
|
34
|
+
}, et = V ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
|
|
35
35
|
let e = "";
|
|
36
36
|
for (const s of t.cssRules) e += s.cssText;
|
|
37
|
-
return
|
|
38
|
-
})(
|
|
39
|
-
const { is: bt, defineProperty: At, getOwnPropertyDescriptor: xt, getOwnPropertyNames:
|
|
37
|
+
return yt(e);
|
|
38
|
+
})(r) : r;
|
|
39
|
+
const { is: bt, defineProperty: At, getOwnPropertyDescriptor: xt, getOwnPropertyNames: wt, getOwnPropertySymbols: Et, getPrototypeOf: St } = Object, z = globalThis, st = z.trustedTypes, Pt = st ? st.emptyScript : "", Ct = z.reactiveElementPolyfillSupport, P = (r, t) => r, k = { toAttribute(r, t) {
|
|
40
40
|
switch (t) {
|
|
41
41
|
case Boolean:
|
|
42
|
-
|
|
42
|
+
r = r ? Pt : null;
|
|
43
43
|
break;
|
|
44
44
|
case Object:
|
|
45
45
|
case Array:
|
|
46
|
-
|
|
46
|
+
r = r == null ? r : JSON.stringify(r);
|
|
47
47
|
}
|
|
48
|
-
return
|
|
49
|
-
}, fromAttribute(
|
|
50
|
-
let e =
|
|
48
|
+
return r;
|
|
49
|
+
}, fromAttribute(r, t) {
|
|
50
|
+
let e = r;
|
|
51
51
|
switch (t) {
|
|
52
52
|
case Boolean:
|
|
53
|
-
e =
|
|
53
|
+
e = r !== null;
|
|
54
54
|
break;
|
|
55
55
|
case Number:
|
|
56
|
-
e =
|
|
56
|
+
e = r === null ? null : Number(r);
|
|
57
57
|
break;
|
|
58
58
|
case Object:
|
|
59
59
|
case Array:
|
|
60
60
|
try {
|
|
61
|
-
e = JSON.parse(
|
|
61
|
+
e = JSON.parse(r);
|
|
62
62
|
} catch {
|
|
63
63
|
e = null;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
return e;
|
|
67
|
-
} }, Z = (
|
|
68
|
-
Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"),
|
|
67
|
+
} }, Z = (r, t) => !bt(r, t), it = { attribute: !0, type: String, converter: k, reflect: !1, useDefault: !1, hasChanged: Z };
|
|
68
|
+
Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), z.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
69
69
|
let b = class extends HTMLElement {
|
|
70
70
|
static addInitializer(t) {
|
|
71
71
|
this._$Ei(), (this.l ??= []).push(t);
|
|
@@ -73,25 +73,25 @@ let b = class extends HTMLElement {
|
|
|
73
73
|
static get observedAttributes() {
|
|
74
74
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
75
75
|
}
|
|
76
|
-
static createProperty(t, e =
|
|
76
|
+
static createProperty(t, e = it) {
|
|
77
77
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
78
|
-
const s = /* @__PURE__ */ Symbol(),
|
|
79
|
-
|
|
78
|
+
const s = /* @__PURE__ */ Symbol(), i = this.getPropertyDescriptor(t, s, e);
|
|
79
|
+
i !== void 0 && At(this.prototype, t, i);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
static getPropertyDescriptor(t, e, s) {
|
|
83
|
-
const { get:
|
|
83
|
+
const { get: i, set: n } = xt(this.prototype, t) ?? { get() {
|
|
84
84
|
return this[e];
|
|
85
85
|
}, set(o) {
|
|
86
86
|
this[e] = o;
|
|
87
87
|
} };
|
|
88
|
-
return { get:
|
|
89
|
-
const h =
|
|
88
|
+
return { get: i, set(o) {
|
|
89
|
+
const h = i?.call(this);
|
|
90
90
|
n?.call(this, o), this.requestUpdate(t, h, s);
|
|
91
91
|
}, configurable: !0, enumerable: !0 };
|
|
92
92
|
}
|
|
93
93
|
static getPropertyOptions(t) {
|
|
94
|
-
return this.elementProperties.get(t) ??
|
|
94
|
+
return this.elementProperties.get(t) ?? it;
|
|
95
95
|
}
|
|
96
96
|
static _$Ei() {
|
|
97
97
|
if (this.hasOwnProperty(P("elementProperties"))) return;
|
|
@@ -101,18 +101,18 @@ let b = class extends HTMLElement {
|
|
|
101
101
|
static finalize() {
|
|
102
102
|
if (this.hasOwnProperty(P("finalized"))) return;
|
|
103
103
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(P("properties"))) {
|
|
104
|
-
const e = this.properties, s = [...
|
|
105
|
-
for (const
|
|
104
|
+
const e = this.properties, s = [...wt(e), ...Et(e)];
|
|
105
|
+
for (const i of s) this.createProperty(i, e[i]);
|
|
106
106
|
}
|
|
107
107
|
const t = this[Symbol.metadata];
|
|
108
108
|
if (t !== null) {
|
|
109
109
|
const e = litPropertyMetadata.get(t);
|
|
110
|
-
if (e !== void 0) for (const [s,
|
|
110
|
+
if (e !== void 0) for (const [s, i] of e) this.elementProperties.set(s, i);
|
|
111
111
|
}
|
|
112
112
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
113
113
|
for (const [e, s] of this.elementProperties) {
|
|
114
|
-
const
|
|
115
|
-
|
|
114
|
+
const i = this._$Eu(e, s);
|
|
115
|
+
i !== void 0 && this._$Eh.set(i, e);
|
|
116
116
|
}
|
|
117
117
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
118
118
|
}
|
|
@@ -120,7 +120,7 @@ let b = class extends HTMLElement {
|
|
|
120
120
|
const e = [];
|
|
121
121
|
if (Array.isArray(t)) {
|
|
122
122
|
const s = new Set(t.flat(1 / 0).reverse());
|
|
123
|
-
for (const
|
|
123
|
+
for (const i of s) e.unshift(et(i));
|
|
124
124
|
} else t !== void 0 && e.push(et(t));
|
|
125
125
|
return e;
|
|
126
126
|
}
|
|
@@ -147,7 +147,7 @@ let b = class extends HTMLElement {
|
|
|
147
147
|
}
|
|
148
148
|
createRenderRoot() {
|
|
149
149
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
150
|
-
return
|
|
150
|
+
return vt(t, this.constructor.elementStyles), t;
|
|
151
151
|
}
|
|
152
152
|
connectedCallback() {
|
|
153
153
|
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach((t) => t.hostConnected?.());
|
|
@@ -161,31 +161,31 @@ let b = class extends HTMLElement {
|
|
|
161
161
|
this._$AK(t, s);
|
|
162
162
|
}
|
|
163
163
|
_$ET(t, e) {
|
|
164
|
-
const s = this.constructor.elementProperties.get(t),
|
|
165
|
-
if (
|
|
166
|
-
const n = (s.converter?.toAttribute !== void 0 ? s.converter :
|
|
167
|
-
this._$Em = t, n == null ? this.removeAttribute(
|
|
164
|
+
const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
|
|
165
|
+
if (i !== void 0 && s.reflect === !0) {
|
|
166
|
+
const n = (s.converter?.toAttribute !== void 0 ? s.converter : k).toAttribute(e, s.type);
|
|
167
|
+
this._$Em = t, n == null ? this.removeAttribute(i) : this.setAttribute(i, n), this._$Em = null;
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
_$AK(t, e) {
|
|
171
|
-
const s = this.constructor,
|
|
172
|
-
if (
|
|
173
|
-
const n = s.getPropertyOptions(
|
|
174
|
-
this._$Em =
|
|
171
|
+
const s = this.constructor, i = s._$Eh.get(t);
|
|
172
|
+
if (i !== void 0 && this._$Em !== i) {
|
|
173
|
+
const n = s.getPropertyOptions(i), o = typeof n.converter == "function" ? { fromAttribute: n.converter } : n.converter?.fromAttribute !== void 0 ? n.converter : k;
|
|
174
|
+
this._$Em = i;
|
|
175
175
|
const h = o.fromAttribute(e, n.type);
|
|
176
|
-
this[
|
|
176
|
+
this[i] = h ?? this._$Ej?.get(i) ?? h, this._$Em = null;
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
requestUpdate(t, e, s,
|
|
179
|
+
requestUpdate(t, e, s, i = !1, n) {
|
|
180
180
|
if (t !== void 0) {
|
|
181
181
|
const o = this.constructor;
|
|
182
|
-
if (
|
|
182
|
+
if (i === !1 && (n = this[t]), s ??= o.getPropertyOptions(t), !((s.hasChanged ?? Z)(n, e) || s.useDefault && s.reflect && n === this._$Ej?.get(t) && !this.hasAttribute(o._$Eu(t, s)))) return;
|
|
183
183
|
this.C(t, e, s);
|
|
184
184
|
}
|
|
185
185
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
186
186
|
}
|
|
187
|
-
C(t, e, { useDefault: s, reflect:
|
|
188
|
-
s && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t) && (this._$Ej.set(t, o ?? e ?? this[t]), n !== !0 || o !== void 0) || (this._$AL.has(t) || (this.hasUpdated || s || (e = void 0), this._$AL.set(t, e)),
|
|
187
|
+
C(t, e, { useDefault: s, reflect: i, wrapped: n }, o) {
|
|
188
|
+
s && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t) && (this._$Ej.set(t, o ?? e ?? this[t]), n !== !0 || o !== void 0) || (this._$AL.has(t) || (this.hasUpdated || s || (e = void 0), this._$AL.set(t, e)), i === !0 && this._$Em !== t && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t));
|
|
189
189
|
}
|
|
190
190
|
async _$EP() {
|
|
191
191
|
this.isUpdatePending = !0;
|
|
@@ -204,13 +204,13 @@ let b = class extends HTMLElement {
|
|
|
204
204
|
if (!this.isUpdatePending) return;
|
|
205
205
|
if (!this.hasUpdated) {
|
|
206
206
|
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
|
|
207
|
-
for (const [
|
|
207
|
+
for (const [i, n] of this._$Ep) this[i] = n;
|
|
208
208
|
this._$Ep = void 0;
|
|
209
209
|
}
|
|
210
210
|
const s = this.constructor.elementProperties;
|
|
211
|
-
if (s.size > 0) for (const [
|
|
212
|
-
const { wrapped: o } = n, h = this[
|
|
213
|
-
o !== !0 || this._$AL.has(
|
|
211
|
+
if (s.size > 0) for (const [i, n] of s) {
|
|
212
|
+
const { wrapped: o } = n, h = this[i];
|
|
213
|
+
o !== !0 || this._$AL.has(i) || h === void 0 || this.C(i, void 0, n, h);
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
let t = !1;
|
|
@@ -247,70 +247,70 @@ let b = class extends HTMLElement {
|
|
|
247
247
|
firstUpdated(t) {
|
|
248
248
|
}
|
|
249
249
|
};
|
|
250
|
-
b.elementStyles = [], b.shadowRootOptions = { mode: "open" }, b[P("elementProperties")] = /* @__PURE__ */ new Map(), b[P("finalized")] = /* @__PURE__ */ new Map(), Ct?.({ ReactiveElement: b }), (
|
|
251
|
-
const F = globalThis,
|
|
252
|
-
\f\r]`, S = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ot = /-->/g, at = />/g, m = RegExp(`>|${
|
|
253
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), ht = /'/g, lt = /"/g,
|
|
254
|
-
function
|
|
255
|
-
if (!J(
|
|
250
|
+
b.elementStyles = [], b.shadowRootOptions = { mode: "open" }, b[P("elementProperties")] = /* @__PURE__ */ new Map(), b[P("finalized")] = /* @__PURE__ */ new Map(), Ct?.({ ReactiveElement: b }), (z.reactiveElementVersions ??= []).push("2.1.2");
|
|
251
|
+
const F = globalThis, rt = (r) => r, D = F.trustedTypes, nt = D ? D.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, dt = "$lit$", $ = `lit$${Math.random().toFixed(9).slice(2)}$`, ut = "?" + $, Ot = `<${ut}>`, v = document, C = () => v.createComment(""), O = (r) => r === null || typeof r != "object" && typeof r != "function", J = Array.isArray, Rt = (r) => J(r) || typeof r?.[Symbol.iterator] == "function", q = `[
|
|
252
|
+
\f\r]`, S = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ot = /-->/g, at = />/g, m = RegExp(`>|${q}(?:([^\\s"'>=/]+)(${q}*=${q}*(?:[^
|
|
253
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), ht = /'/g, lt = /"/g, ft = /^(?:script|style|textarea|title)$/i, Ut = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), A = Ut(1), x = /* @__PURE__ */ Symbol.for("lit-noChange"), c = /* @__PURE__ */ Symbol.for("lit-nothing"), pt = /* @__PURE__ */ new WeakMap(), y = v.createTreeWalker(v, 129);
|
|
254
|
+
function $t(r, t) {
|
|
255
|
+
if (!J(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
256
256
|
return nt !== void 0 ? nt.createHTML(t) : t;
|
|
257
257
|
}
|
|
258
|
-
const
|
|
259
|
-
const e =
|
|
260
|
-
let
|
|
258
|
+
const Tt = (r, t) => {
|
|
259
|
+
const e = r.length - 1, s = [];
|
|
260
|
+
let i, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = S;
|
|
261
261
|
for (let h = 0; h < e; h++) {
|
|
262
|
-
const a =
|
|
262
|
+
const a = r[h];
|
|
263
263
|
let p, d, l = -1, u = 0;
|
|
264
|
-
for (; u < a.length && (o.lastIndex = u, d = o.exec(a), d !== null); ) u = o.lastIndex, o === S ? d[1] === "!--" ? o = ot : d[1] !== void 0 ? o = at : d[2] !== void 0 ? (
|
|
265
|
-
const
|
|
266
|
-
n += o === S ? a + Ot : l >= 0 ? (s.push(p), a.slice(0, l) + dt + a.slice(l) +
|
|
264
|
+
for (; u < a.length && (o.lastIndex = u, d = o.exec(a), d !== null); ) u = o.lastIndex, o === S ? d[1] === "!--" ? o = ot : d[1] !== void 0 ? o = at : d[2] !== void 0 ? (ft.test(d[2]) && (i = RegExp("</" + d[2], "g")), o = m) : d[3] !== void 0 && (o = m) : o === m ? d[0] === ">" ? (o = i ?? S, l = -1) : d[1] === void 0 ? l = -2 : (l = o.lastIndex - d[2].length, p = d[1], o = d[3] === void 0 ? m : d[3] === '"' ? lt : ht) : o === lt || o === ht ? o = m : o === ot || o === at ? o = S : (o = m, i = void 0);
|
|
265
|
+
const f = o === m && r[h + 1].startsWith("/>") ? " " : "";
|
|
266
|
+
n += o === S ? a + Ot : l >= 0 ? (s.push(p), a.slice(0, l) + dt + a.slice(l) + $ + f) : a + $ + (l === -2 ? h : f);
|
|
267
267
|
}
|
|
268
|
-
return [
|
|
268
|
+
return [$t(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
269
269
|
};
|
|
270
|
-
class
|
|
270
|
+
class R {
|
|
271
271
|
constructor({ strings: t, _$litType$: e }, s) {
|
|
272
|
-
let
|
|
272
|
+
let i;
|
|
273
273
|
this.parts = [];
|
|
274
274
|
let n = 0, o = 0;
|
|
275
|
-
const h = t.length - 1, a = this.parts, [p, d] =
|
|
276
|
-
if (this.el =
|
|
275
|
+
const h = t.length - 1, a = this.parts, [p, d] = Tt(t, e);
|
|
276
|
+
if (this.el = R.createElement(p, s), y.currentNode = this.el.content, e === 2 || e === 3) {
|
|
277
277
|
const l = this.el.content.firstChild;
|
|
278
278
|
l.replaceWith(...l.childNodes);
|
|
279
279
|
}
|
|
280
|
-
for (; (
|
|
281
|
-
if (
|
|
282
|
-
if (
|
|
283
|
-
const u = d[o++],
|
|
284
|
-
a.push({ type: 1, index: n, name:
|
|
285
|
-
} else l.startsWith(
|
|
286
|
-
if (
|
|
287
|
-
const l =
|
|
280
|
+
for (; (i = y.nextNode()) !== null && a.length < h; ) {
|
|
281
|
+
if (i.nodeType === 1) {
|
|
282
|
+
if (i.hasAttributes()) for (const l of i.getAttributeNames()) if (l.endsWith(dt)) {
|
|
283
|
+
const u = d[o++], f = i.getAttribute(l).split($), H = /([.?@])?(.*)/.exec(u);
|
|
284
|
+
a.push({ type: 1, index: n, name: H[2], strings: f, ctor: H[1] === "." ? Ht : H[1] === "?" ? Nt : H[1] === "@" ? kt : B }), i.removeAttribute(l);
|
|
285
|
+
} else l.startsWith($) && (a.push({ type: 6, index: n }), i.removeAttribute(l));
|
|
286
|
+
if (ft.test(i.tagName)) {
|
|
287
|
+
const l = i.textContent.split($), u = l.length - 1;
|
|
288
288
|
if (u > 0) {
|
|
289
|
-
|
|
290
|
-
for (let
|
|
291
|
-
|
|
289
|
+
i.textContent = D ? D.emptyScript : "";
|
|
290
|
+
for (let f = 0; f < u; f++) i.append(l[f], C()), y.nextNode(), a.push({ type: 2, index: ++n });
|
|
291
|
+
i.append(l[u], C());
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
|
-
} else if (
|
|
294
|
+
} else if (i.nodeType === 8) if (i.data === ut) a.push({ type: 2, index: n });
|
|
295
295
|
else {
|
|
296
296
|
let l = -1;
|
|
297
|
-
for (; (l =
|
|
297
|
+
for (; (l = i.data.indexOf($, l + 1)) !== -1; ) a.push({ type: 7, index: n }), l += $.length - 1;
|
|
298
298
|
}
|
|
299
299
|
n++;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
static createElement(t, e) {
|
|
303
|
-
const s =
|
|
303
|
+
const s = v.createElement("template");
|
|
304
304
|
return s.innerHTML = t, s;
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function w(r, t, e = r, s) {
|
|
308
308
|
if (t === x) return t;
|
|
309
|
-
let
|
|
309
|
+
let i = s !== void 0 ? e._$Co?.[s] : e._$Cl;
|
|
310
310
|
const n = O(t) ? void 0 : t._$litDirective$;
|
|
311
|
-
return
|
|
311
|
+
return i?.constructor !== n && (i?._$AO?.(!1), n === void 0 ? i = void 0 : (i = new n(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ??= [])[s] = i : e._$Cl = i), i !== void 0 && (t = w(r, i._$AS(r, t.values), i, s)), t;
|
|
312
312
|
}
|
|
313
|
-
class
|
|
313
|
+
class Mt {
|
|
314
314
|
constructor(t, e) {
|
|
315
315
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
316
316
|
}
|
|
@@ -321,29 +321,29 @@ class Ht {
|
|
|
321
321
|
return this._$AM._$AU;
|
|
322
322
|
}
|
|
323
323
|
u(t) {
|
|
324
|
-
const { el: { content: e }, parts: s } = this._$AD,
|
|
325
|
-
|
|
326
|
-
let n =
|
|
324
|
+
const { el: { content: e }, parts: s } = this._$AD, i = (t?.creationScope ?? v).importNode(e, !0);
|
|
325
|
+
y.currentNode = i;
|
|
326
|
+
let n = y.nextNode(), o = 0, h = 0, a = s[0];
|
|
327
327
|
for (; a !== void 0; ) {
|
|
328
328
|
if (o === a.index) {
|
|
329
329
|
let p;
|
|
330
|
-
a.type === 2 ? p = new
|
|
330
|
+
a.type === 2 ? p = new M(n, n.nextSibling, this, t) : a.type === 1 ? p = new a.ctor(n, a.name, a.strings, this, t) : a.type === 6 && (p = new Dt(n, this, t)), this._$AV.push(p), a = s[++h];
|
|
331
331
|
}
|
|
332
|
-
o !== a?.index && (n =
|
|
332
|
+
o !== a?.index && (n = y.nextNode(), o++);
|
|
333
333
|
}
|
|
334
|
-
return
|
|
334
|
+
return y.currentNode = v, i;
|
|
335
335
|
}
|
|
336
336
|
p(t) {
|
|
337
337
|
let e = 0;
|
|
338
338
|
for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
class
|
|
341
|
+
class M {
|
|
342
342
|
get _$AU() {
|
|
343
343
|
return this._$AM?._$AU ?? this._$Cv;
|
|
344
344
|
}
|
|
345
|
-
constructor(t, e, s,
|
|
346
|
-
this.type = 2, this._$AH = c, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options =
|
|
345
|
+
constructor(t, e, s, i) {
|
|
346
|
+
this.type = 2, this._$AH = c, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cv = i?.isConnected ?? !0;
|
|
347
347
|
}
|
|
348
348
|
get parentNode() {
|
|
349
349
|
let t = this._$AA.parentNode;
|
|
@@ -357,7 +357,7 @@ class H {
|
|
|
357
357
|
return this._$AB;
|
|
358
358
|
}
|
|
359
359
|
_$AI(t, e = this) {
|
|
360
|
-
t =
|
|
360
|
+
t = w(this, t, e), O(t) ? t === c || t == null || t === "" ? (this._$AH !== c && this._$AR(), this._$AH = c) : t !== this._$AH && t !== x && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Rt(t) ? this.k(t) : this._(t);
|
|
361
361
|
}
|
|
362
362
|
O(t) {
|
|
363
363
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -366,31 +366,31 @@ class H {
|
|
|
366
366
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
367
367
|
}
|
|
368
368
|
_(t) {
|
|
369
|
-
this._$AH !== c && O(this._$AH) ? this._$AA.nextSibling.data = t : this.T(
|
|
369
|
+
this._$AH !== c && O(this._$AH) ? this._$AA.nextSibling.data = t : this.T(v.createTextNode(t)), this._$AH = t;
|
|
370
370
|
}
|
|
371
371
|
$(t) {
|
|
372
|
-
const { values: e, _$litType$: s } = t,
|
|
373
|
-
if (this._$AH?._$AD ===
|
|
372
|
+
const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = R.createElement($t(s.h, s.h[0]), this.options)), s);
|
|
373
|
+
if (this._$AH?._$AD === i) this._$AH.p(e);
|
|
374
374
|
else {
|
|
375
|
-
const n = new
|
|
375
|
+
const n = new Mt(i, this), o = n.u(this.options);
|
|
376
376
|
n.p(e), this.T(o), this._$AH = n;
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
379
|
_$AC(t) {
|
|
380
380
|
let e = pt.get(t.strings);
|
|
381
|
-
return e === void 0 && pt.set(t.strings, e = new
|
|
381
|
+
return e === void 0 && pt.set(t.strings, e = new R(t)), e;
|
|
382
382
|
}
|
|
383
383
|
k(t) {
|
|
384
384
|
J(this._$AH) || (this._$AH = [], this._$AR());
|
|
385
385
|
const e = this._$AH;
|
|
386
|
-
let s,
|
|
387
|
-
for (const n of t)
|
|
388
|
-
|
|
386
|
+
let s, i = 0;
|
|
387
|
+
for (const n of t) i === e.length ? e.push(s = new M(this.O(C()), this.O(C()), this, this.options)) : s = e[i], s._$AI(n), i++;
|
|
388
|
+
i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
|
|
389
389
|
}
|
|
390
390
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
391
391
|
for (this._$AP?.(!1, !0, e); t !== this._$AB; ) {
|
|
392
|
-
const s =
|
|
393
|
-
|
|
392
|
+
const s = rt(t).nextSibling;
|
|
393
|
+
rt(t).remove(), t = s;
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
396
|
setConnected(t) {
|
|
@@ -404,25 +404,25 @@ class B {
|
|
|
404
404
|
get _$AU() {
|
|
405
405
|
return this._$AM._$AU;
|
|
406
406
|
}
|
|
407
|
-
constructor(t, e, s,
|
|
408
|
-
this.type = 1, this._$AH = c, this._$AN = void 0, this.element = t, this.name = e, this._$AM =
|
|
407
|
+
constructor(t, e, s, i, n) {
|
|
408
|
+
this.type = 1, this._$AH = c, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = c;
|
|
409
409
|
}
|
|
410
|
-
_$AI(t, e = this, s,
|
|
410
|
+
_$AI(t, e = this, s, i) {
|
|
411
411
|
const n = this.strings;
|
|
412
412
|
let o = !1;
|
|
413
|
-
if (n === void 0) t =
|
|
413
|
+
if (n === void 0) t = w(this, t, e, 0), o = !O(t) || t !== this._$AH && t !== x, o && (this._$AH = t);
|
|
414
414
|
else {
|
|
415
415
|
const h = t;
|
|
416
416
|
let a, p;
|
|
417
|
-
for (t = n[0], a = 0; a < n.length - 1; a++) p =
|
|
417
|
+
for (t = n[0], a = 0; a < n.length - 1; a++) p = w(this, h[s + a], e, a), p === x && (p = this._$AH[a]), o ||= !O(p) || p !== this._$AH[a], p === c ? t = c : t !== c && (t += (p ?? "") + n[a + 1]), this._$AH[a] = p;
|
|
418
418
|
}
|
|
419
|
-
o && !
|
|
419
|
+
o && !i && this.j(t);
|
|
420
420
|
}
|
|
421
421
|
j(t) {
|
|
422
422
|
t === c ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
class
|
|
425
|
+
class Ht extends B {
|
|
426
426
|
constructor() {
|
|
427
427
|
super(...arguments), this.type = 3;
|
|
428
428
|
}
|
|
@@ -430,7 +430,7 @@ class Nt extends B {
|
|
|
430
430
|
this.element[this.name] = t === c ? void 0 : t;
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
|
-
class
|
|
433
|
+
class Nt extends B {
|
|
434
434
|
constructor() {
|
|
435
435
|
super(...arguments), this.type = 4;
|
|
436
436
|
}
|
|
@@ -438,20 +438,20 @@ class Rt extends B {
|
|
|
438
438
|
this.element.toggleAttribute(this.name, !!t && t !== c);
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
|
-
class
|
|
442
|
-
constructor(t, e, s,
|
|
443
|
-
super(t, e, s,
|
|
441
|
+
class kt extends B {
|
|
442
|
+
constructor(t, e, s, i, n) {
|
|
443
|
+
super(t, e, s, i, n), this.type = 5;
|
|
444
444
|
}
|
|
445
445
|
_$AI(t, e = this) {
|
|
446
|
-
if ((t =
|
|
447
|
-
const s = this._$AH,
|
|
448
|
-
|
|
446
|
+
if ((t = w(this, t, e, 0) ?? c) === x) return;
|
|
447
|
+
const s = this._$AH, i = t === c && s !== c || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== c && (s === c || i);
|
|
448
|
+
i && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
449
449
|
}
|
|
450
450
|
handleEvent(t) {
|
|
451
451
|
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
-
class
|
|
454
|
+
class Dt {
|
|
455
455
|
constructor(t, e, s) {
|
|
456
456
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
|
|
457
457
|
}
|
|
@@ -459,22 +459,22 @@ class jt {
|
|
|
459
459
|
return this._$AM._$AU;
|
|
460
460
|
}
|
|
461
461
|
_$AI(t) {
|
|
462
|
-
|
|
462
|
+
w(this, t);
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
|
-
const
|
|
466
|
-
|
|
467
|
-
const
|
|
465
|
+
const Lt = F.litHtmlPolyfillSupport;
|
|
466
|
+
Lt?.(R, M), (F.litHtmlVersions ??= []).push("3.3.2");
|
|
467
|
+
const jt = (r, t, e) => {
|
|
468
468
|
const s = e?.renderBefore ?? t;
|
|
469
|
-
let
|
|
470
|
-
if (
|
|
469
|
+
let i = s._$litPart$;
|
|
470
|
+
if (i === void 0) {
|
|
471
471
|
const n = e?.renderBefore ?? null;
|
|
472
|
-
s._$litPart$ =
|
|
472
|
+
s._$litPart$ = i = new M(t.insertBefore(C(), n), n, void 0, e ?? {});
|
|
473
473
|
}
|
|
474
|
-
return
|
|
474
|
+
return i._$AI(r), i;
|
|
475
475
|
};
|
|
476
476
|
const Y = globalThis;
|
|
477
|
-
class
|
|
477
|
+
class g extends b {
|
|
478
478
|
constructor() {
|
|
479
479
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
480
480
|
}
|
|
@@ -484,7 +484,7 @@ class _ extends b {
|
|
|
484
484
|
}
|
|
485
485
|
update(t) {
|
|
486
486
|
const e = this.render();
|
|
487
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
487
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = jt(e, this.renderRoot, this.renderOptions);
|
|
488
488
|
}
|
|
489
489
|
connectedCallback() {
|
|
490
490
|
super.connectedCallback(), this._$Do?.setConnected(!0);
|
|
@@ -496,122 +496,126 @@ class _ extends b {
|
|
|
496
496
|
return x;
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
|
-
|
|
500
|
-
const
|
|
501
|
-
|
|
499
|
+
g._$litElement$ = !0, g.finalized = !0, Y.litElementHydrateSupport?.({ LitElement: g });
|
|
500
|
+
const zt = Y.litElementPolyfillSupport;
|
|
501
|
+
zt?.({ LitElement: g });
|
|
502
502
|
(Y.litElementVersions ??= []).push("4.2.2");
|
|
503
|
-
const I = (
|
|
503
|
+
const I = (r) => (t, e) => {
|
|
504
504
|
e !== void 0 ? e.addInitializer(() => {
|
|
505
|
-
customElements.define(
|
|
506
|
-
}) : customElements.define(
|
|
505
|
+
customElements.define(r, t);
|
|
506
|
+
}) : customElements.define(r, t);
|
|
507
507
|
};
|
|
508
|
-
const Bt = { attribute: !0, type: String, converter:
|
|
509
|
-
const { kind: s, metadata:
|
|
510
|
-
let n = globalThis.litPropertyMetadata.get(
|
|
511
|
-
if (n === void 0 && globalThis.litPropertyMetadata.set(
|
|
508
|
+
const Bt = { attribute: !0, type: String, converter: k, reflect: !1, hasChanged: Z }, It = (r = Bt, t, e) => {
|
|
509
|
+
const { kind: s, metadata: i } = e;
|
|
510
|
+
let n = globalThis.litPropertyMetadata.get(i);
|
|
511
|
+
if (n === void 0 && globalThis.litPropertyMetadata.set(i, n = /* @__PURE__ */ new Map()), s === "setter" && ((r = Object.create(r)).wrapped = !0), n.set(e.name, r), s === "accessor") {
|
|
512
512
|
const { name: o } = e;
|
|
513
513
|
return { set(h) {
|
|
514
514
|
const a = t.get.call(this);
|
|
515
|
-
t.set.call(this, h), this.requestUpdate(o, a,
|
|
515
|
+
t.set.call(this, h), this.requestUpdate(o, a, r, !0, h);
|
|
516
516
|
}, init(h) {
|
|
517
|
-
return h !== void 0 && this.C(o, void 0,
|
|
517
|
+
return h !== void 0 && this.C(o, void 0, r, h), h;
|
|
518
518
|
} };
|
|
519
519
|
}
|
|
520
520
|
if (s === "setter") {
|
|
521
521
|
const { name: o } = e;
|
|
522
522
|
return function(h) {
|
|
523
523
|
const a = this[o];
|
|
524
|
-
t.call(this, h), this.requestUpdate(o, a,
|
|
524
|
+
t.call(this, h), this.requestUpdate(o, a, r, !0, h);
|
|
525
525
|
};
|
|
526
526
|
}
|
|
527
527
|
throw Error("Unsupported decorator location: " + s);
|
|
528
528
|
};
|
|
529
|
-
function
|
|
530
|
-
return (t, e) => typeof e == "object" ? It(
|
|
531
|
-
const o =
|
|
532
|
-
return
|
|
533
|
-
})(
|
|
529
|
+
function _(r) {
|
|
530
|
+
return (t, e) => typeof e == "object" ? It(r, t, e) : ((s, i, n) => {
|
|
531
|
+
const o = i.hasOwnProperty(n);
|
|
532
|
+
return i.constructor.createProperty(n, s), o ? Object.getOwnPropertyDescriptor(i, n) : void 0;
|
|
533
|
+
})(r, t, e);
|
|
534
534
|
}
|
|
535
|
-
function
|
|
536
|
-
return
|
|
535
|
+
function Wt(r) {
|
|
536
|
+
return _({ ...r, state: !0, attribute: !1 });
|
|
537
537
|
}
|
|
538
|
-
var
|
|
539
|
-
for (var
|
|
540
|
-
(o =
|
|
541
|
-
return s &&
|
|
538
|
+
var qt = Object.defineProperty, Vt = Object.getOwnPropertyDescriptor, W = (r, t, e, s) => {
|
|
539
|
+
for (var i = s > 1 ? void 0 : s ? Vt(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
|
540
|
+
(o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
|
541
|
+
return s && i && qt(t, e, i), i;
|
|
542
542
|
};
|
|
543
|
-
let
|
|
543
|
+
let E = class extends g {
|
|
544
544
|
constructor() {
|
|
545
|
-
super(...arguments), this.data = [], this.theme = "
|
|
545
|
+
super(...arguments), this.data = [], this.theme = "dark", this.open = !1, this.toggle = (t) => {
|
|
546
|
+
t.stopPropagation(), this.open = !this.open, this.open ? this.updateComplete.then(() => {
|
|
547
|
+
this.positionPanel(), document.addEventListener("click", this.handleOutsideClick), window.addEventListener("resize", this.handleResize);
|
|
548
|
+
}) : this.cleanupListeners();
|
|
549
|
+
}, this.handleOutsideClick = (t) => {
|
|
550
|
+
this.contains(t.target) || (this.open = !1, this.cleanupListeners());
|
|
551
|
+
}, this.handleResize = () => {
|
|
552
|
+
this.open && this.positionPanel();
|
|
553
|
+
}, this.handleKeyDown = (t) => {
|
|
554
|
+
t.key === "Escape" && (this.open = !1, this.cleanupListeners());
|
|
555
|
+
};
|
|
556
|
+
}
|
|
557
|
+
connectedCallback() {
|
|
558
|
+
super.connectedCallback(), document.addEventListener("keydown", this.handleKeyDown);
|
|
559
|
+
}
|
|
560
|
+
disconnectedCallback() {
|
|
561
|
+
super.disconnectedCallback(), document.removeEventListener("keydown", this.handleKeyDown), this.cleanupListeners();
|
|
546
562
|
}
|
|
547
563
|
render() {
|
|
548
564
|
return A`
|
|
549
|
-
<div class="trigger" @click=${this.toggle}
|
|
550
|
-
|
|
565
|
+
<div class="trigger" @click=${this.toggle}
|
|
566
|
+
${(t) => this.triggerRef = t}>
|
|
567
|
+
<div class="dots">
|
|
568
|
+
${Array.from({ length: 9 }).map(() => A`<span class="dot"></span>`)}
|
|
569
|
+
</div>
|
|
570
|
+
</div>
|
|
551
571
|
|
|
552
|
-
<div class="panel ${this.open ? "open" : ""}"
|
|
572
|
+
<div class="panel ${this.open ? "open" : ""}"
|
|
573
|
+
${(t) => this.panelRef = t}>
|
|
553
574
|
<div class="apps">
|
|
554
|
-
${this.data.map((
|
|
575
|
+
${this.data.map((t) => this.renderCard(t))}
|
|
555
576
|
</div>
|
|
556
577
|
</div>
|
|
557
578
|
`;
|
|
558
579
|
}
|
|
559
|
-
renderCard(
|
|
580
|
+
renderCard(t) {
|
|
560
581
|
return A`
|
|
561
|
-
<aura-app
|
|
562
|
-
|
|
563
|
-
.
|
|
564
|
-
key=${i.id}
|
|
565
|
-
>
|
|
566
|
-
<aura-app-icon
|
|
567
|
-
.icon=${i.icon}
|
|
568
|
-
.label=${i.label}
|
|
569
|
-
></aura-app-icon>
|
|
570
|
-
|
|
571
|
-
<aura-app-text
|
|
572
|
-
.label=${i.label}
|
|
573
|
-
></aura-app-text>
|
|
582
|
+
<aura-app href=${t.url} .newTab=${t.newTab ?? !0} key=${t.id}>
|
|
583
|
+
<aura-app-icon .icon=${t.icon} .label=${t.label}></aura-app-icon>
|
|
584
|
+
<aura-app-text .label=${t.label}></aura-app-text>
|
|
574
585
|
</aura-app>
|
|
575
586
|
`;
|
|
576
587
|
}
|
|
577
|
-
|
|
578
|
-
this.
|
|
588
|
+
cleanupListeners() {
|
|
589
|
+
document.removeEventListener("click", this.handleOutsideClick), window.removeEventListener("resize", this.handleResize);
|
|
590
|
+
}
|
|
591
|
+
positionPanel() {
|
|
592
|
+
if (!this.triggerRef || !this.panelRef) return;
|
|
593
|
+
const t = this.triggerRef.getBoundingClientRect(), e = this.panelRef, s = window.innerWidth - t.left, i = t.right, n = window.innerHeight - t.bottom, o = t.top;
|
|
594
|
+
s < e.offsetWidth && i > e.offsetWidth ? (e.style.left = "0", e.style.right = "auto", e.style.transformOrigin = "top left") : (e.style.right = "0", e.style.left = "auto", e.style.transformOrigin = "top right"), n < e.offsetHeight && o > e.offsetHeight ? (e.style.top = "auto", e.style.bottom = "calc(100% + 12px)", e.style.transformOrigin = e.style.transformOrigin.replace("top", "bottom")) : (e.style.top = "calc(100% + 12px)", e.style.bottom = "auto");
|
|
579
595
|
}
|
|
580
596
|
};
|
|
581
|
-
|
|
597
|
+
E.styles = j`
|
|
582
598
|
:host {
|
|
599
|
+
--menu-bg: #202124;
|
|
600
|
+
--menu-text: #ffffff;
|
|
601
|
+
--dot-color: #ffffff;
|
|
602
|
+
--hover-bg: rgba(255, 255, 255, 0.1);
|
|
603
|
+
--box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 16px rgba(0,0,0,.6), 0 12px 32px rgba(0,0,0,.4);
|
|
604
|
+
position: relative;
|
|
605
|
+
display: inline-block;
|
|
606
|
+
font-family: system-ui, sans-serif;
|
|
607
|
+
z-index: 1000;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
:host([theme="light"]) {
|
|
583
611
|
--menu-bg: #ffffff;
|
|
584
612
|
--menu-text: #000000;
|
|
585
613
|
--dot-color: #000000;
|
|
586
614
|
--hover-bg: rgba(0, 0, 0, 0.08);
|
|
587
|
-
|
|
588
|
-
z-index: 1000;
|
|
589
|
-
--offset: 16px;
|
|
590
|
-
font-family: system-ui, sans-serif;
|
|
591
|
-
--box-shadow: 0 4px 8px 3px rgba(0,0,0,.15),0 1px 3px rgba(0,0,0,.3);
|
|
615
|
+
--box-shadow: 0 4px 8px 3px rgba(0,0,0,.15), 0 1px 3px rgba(0,0,0,.3);
|
|
592
616
|
}
|
|
593
617
|
|
|
594
|
-
|
|
595
|
-
--menu-bg: #ffffff;
|
|
596
|
-
--menu-text: #000000;
|
|
597
|
-
--dot-color: #000000;
|
|
598
|
-
--hover-bg: rgba(0, 0, 0, 0.08);
|
|
599
|
-
--box-shadow: 0 4px 8px 3px rgba(0,0,0,.15),
|
|
600
|
-
0 1px 3px rgba(0,0,0,.3);
|
|
601
|
-
}
|
|
602
|
-
|
|
603
|
-
/* ===== DARK THEME ===== */
|
|
604
|
-
:host([theme="dark"]) {
|
|
605
|
-
--menu-bg: #202124;
|
|
606
|
-
--menu-text: #ffffff;
|
|
607
|
-
--dot-color: #ffffff;
|
|
608
|
-
--hover-bg: rgba(255, 255, 255, 0.1);
|
|
609
|
-
--box-shadow: 0 1px 2px rgba(0,0,0,.4),
|
|
610
|
-
0 6px 16px rgba(0,0,0,.6),
|
|
611
|
-
0 12px 32px rgba(0,0,0,.4);
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
/* Trigger nine-dot button */
|
|
618
|
+
/* Trigger button */
|
|
615
619
|
.trigger {
|
|
616
620
|
width: 40px;
|
|
617
621
|
height: 40px;
|
|
@@ -626,7 +630,6 @@ w.styles = L`
|
|
|
626
630
|
background: var(--hover-bg);
|
|
627
631
|
}
|
|
628
632
|
|
|
629
|
-
|
|
630
633
|
.dots {
|
|
631
634
|
display: grid;
|
|
632
635
|
grid-template-columns: repeat(3, 6px);
|
|
@@ -640,24 +643,25 @@ w.styles = L`
|
|
|
640
643
|
border-radius: 50%;
|
|
641
644
|
}
|
|
642
645
|
|
|
643
|
-
/* Panel
|
|
646
|
+
/* Panel container */
|
|
644
647
|
.panel {
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
648
|
+
position: absolute;
|
|
649
|
+
top: calc(100% + 12px);
|
|
650
|
+
right: 0;
|
|
651
|
+
background: var(--menu-bg);
|
|
652
|
+
color: var(--menu-text);
|
|
653
|
+
border-radius: 16px;
|
|
654
|
+
padding: 16px 12px;
|
|
655
|
+
width: 340px;
|
|
656
|
+
max-height: 420px;
|
|
657
|
+
overflow-y: auto;
|
|
654
658
|
|
|
655
659
|
opacity: 0;
|
|
656
660
|
transform: translateY(-8px) scale(0.96);
|
|
657
661
|
pointer-events: none;
|
|
658
662
|
transition: opacity 160ms ease-out, transform 160ms ease-out;
|
|
659
|
-
|
|
660
663
|
box-shadow: var(--box-shadow);
|
|
664
|
+
transform-origin: top right;
|
|
661
665
|
}
|
|
662
666
|
|
|
663
667
|
.panel.open {
|
|
@@ -666,15 +670,14 @@ w.styles = L`
|
|
|
666
670
|
pointer-events: auto;
|
|
667
671
|
}
|
|
668
672
|
|
|
669
|
-
/*
|
|
673
|
+
/* Apps grid */
|
|
670
674
|
.apps {
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
+
display: grid;
|
|
676
|
+
grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
|
|
677
|
+
justify-content: center;
|
|
678
|
+
gap: 12px;
|
|
675
679
|
}
|
|
676
680
|
|
|
677
|
-
|
|
678
681
|
.app {
|
|
679
682
|
display: flex;
|
|
680
683
|
flex-direction: column;
|
|
@@ -700,40 +703,56 @@ w.styles = L`
|
|
|
700
703
|
.label {
|
|
701
704
|
font-size: 13px;
|
|
702
705
|
text-align: center;
|
|
706
|
+
word-break: break-word;
|
|
703
707
|
}
|
|
704
708
|
|
|
705
709
|
.panel {
|
|
706
|
-
|
|
710
|
+
scrollbar-width: thin;
|
|
707
711
|
}
|
|
708
712
|
|
|
709
713
|
.panel::-webkit-scrollbar {
|
|
710
|
-
|
|
714
|
+
width: 6px;
|
|
711
715
|
}
|
|
712
716
|
|
|
713
717
|
.panel::-webkit-scrollbar-thumb {
|
|
714
|
-
|
|
715
|
-
|
|
718
|
+
background: rgba(255, 255, 255, 0.2);
|
|
719
|
+
border-radius: 4px;
|
|
716
720
|
}
|
|
717
721
|
|
|
722
|
+
@media (max-width: 480px) {
|
|
723
|
+
.panel {
|
|
724
|
+
width: 90vw;
|
|
725
|
+
max-height: 70vh;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
.apps {
|
|
729
|
+
grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
.app img {
|
|
733
|
+
width: 32px;
|
|
734
|
+
height: 32px;
|
|
735
|
+
}
|
|
736
|
+
}
|
|
718
737
|
`;
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
],
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
],
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
],
|
|
728
|
-
|
|
738
|
+
W([
|
|
739
|
+
_({ type: Array })
|
|
740
|
+
], E.prototype, "data", 2);
|
|
741
|
+
W([
|
|
742
|
+
_({ reflect: !0 })
|
|
743
|
+
], E.prototype, "theme", 2);
|
|
744
|
+
W([
|
|
745
|
+
Wt()
|
|
746
|
+
], E.prototype, "open", 2);
|
|
747
|
+
E = W([
|
|
729
748
|
I("aura-nine-dot-menu")
|
|
730
|
-
],
|
|
731
|
-
var Kt = Object.defineProperty, Zt = Object.getOwnPropertyDescriptor, G = (
|
|
732
|
-
for (var
|
|
733
|
-
(o =
|
|
734
|
-
return s &&
|
|
749
|
+
], E);
|
|
750
|
+
var Kt = Object.defineProperty, Zt = Object.getOwnPropertyDescriptor, G = (r, t, e, s) => {
|
|
751
|
+
for (var i = s > 1 ? void 0 : s ? Zt(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
|
752
|
+
(o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
|
753
|
+
return s && i && Kt(t, e, i), i;
|
|
735
754
|
};
|
|
736
|
-
let
|
|
755
|
+
let U = class extends g {
|
|
737
756
|
constructor() {
|
|
738
757
|
super(...arguments), this.href = "", this.newTab = !0;
|
|
739
758
|
}
|
|
@@ -749,7 +768,7 @@ let T = class extends _ {
|
|
|
749
768
|
`;
|
|
750
769
|
}
|
|
751
770
|
};
|
|
752
|
-
|
|
771
|
+
U.styles = j`
|
|
753
772
|
:host {
|
|
754
773
|
display: block;
|
|
755
774
|
}
|
|
@@ -771,20 +790,20 @@ T.styles = L`
|
|
|
771
790
|
}
|
|
772
791
|
`;
|
|
773
792
|
G([
|
|
774
|
-
|
|
775
|
-
],
|
|
793
|
+
_()
|
|
794
|
+
], U.prototype, "href", 2);
|
|
776
795
|
G([
|
|
777
|
-
|
|
778
|
-
],
|
|
779
|
-
|
|
796
|
+
_({ type: Boolean })
|
|
797
|
+
], U.prototype, "newTab", 2);
|
|
798
|
+
U = G([
|
|
780
799
|
I("aura-app")
|
|
781
|
-
],
|
|
782
|
-
var Ft = Object.defineProperty, Jt = Object.getOwnPropertyDescriptor, Q = (
|
|
783
|
-
for (var
|
|
784
|
-
(o =
|
|
785
|
-
return s &&
|
|
800
|
+
], U);
|
|
801
|
+
var Ft = Object.defineProperty, Jt = Object.getOwnPropertyDescriptor, Q = (r, t, e, s) => {
|
|
802
|
+
for (var i = s > 1 ? void 0 : s ? Jt(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
|
803
|
+
(o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
|
804
|
+
return s && i && Ft(t, e, i), i;
|
|
786
805
|
};
|
|
787
|
-
let
|
|
806
|
+
let T = class extends g {
|
|
788
807
|
constructor() {
|
|
789
808
|
super(...arguments), this.icon = "", this.label = "";
|
|
790
809
|
}
|
|
@@ -801,7 +820,7 @@ let M = class extends _ {
|
|
|
801
820
|
`;
|
|
802
821
|
}
|
|
803
822
|
};
|
|
804
|
-
|
|
823
|
+
T.styles = j`
|
|
805
824
|
:host {
|
|
806
825
|
display: inline-flex;
|
|
807
826
|
}
|
|
@@ -817,20 +836,20 @@ M.styles = L`
|
|
|
817
836
|
}
|
|
818
837
|
`;
|
|
819
838
|
Q([
|
|
820
|
-
|
|
821
|
-
],
|
|
839
|
+
_()
|
|
840
|
+
], T.prototype, "icon", 2);
|
|
822
841
|
Q([
|
|
823
|
-
|
|
824
|
-
],
|
|
825
|
-
|
|
842
|
+
_()
|
|
843
|
+
], T.prototype, "label", 2);
|
|
844
|
+
T = Q([
|
|
826
845
|
I("aura-app-icon")
|
|
827
|
-
],
|
|
828
|
-
var Yt = Object.defineProperty, Gt = Object.getOwnPropertyDescriptor,
|
|
829
|
-
for (var
|
|
830
|
-
(o =
|
|
831
|
-
return s &&
|
|
846
|
+
], T);
|
|
847
|
+
var Yt = Object.defineProperty, Gt = Object.getOwnPropertyDescriptor, gt = (r, t, e, s) => {
|
|
848
|
+
for (var i = s > 1 ? void 0 : s ? Gt(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
|
849
|
+
(o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
|
850
|
+
return s && i && Yt(t, e, i), i;
|
|
832
851
|
};
|
|
833
|
-
let
|
|
852
|
+
let L = class extends g {
|
|
834
853
|
constructor() {
|
|
835
854
|
super(...arguments), this.label = "";
|
|
836
855
|
}
|
|
@@ -838,7 +857,7 @@ let z = class extends _ {
|
|
|
838
857
|
return A`${this.label}`;
|
|
839
858
|
}
|
|
840
859
|
};
|
|
841
|
-
|
|
860
|
+
L.styles = j`
|
|
842
861
|
:host {
|
|
843
862
|
font-size: 13px;
|
|
844
863
|
color: var(--menu-text);
|
|
@@ -846,27 +865,27 @@ z.styles = L`
|
|
|
846
865
|
}
|
|
847
866
|
|
|
848
867
|
`;
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
],
|
|
852
|
-
|
|
868
|
+
gt([
|
|
869
|
+
_()
|
|
870
|
+
], L.prototype, "label", 2);
|
|
871
|
+
L = gt([
|
|
853
872
|
I("aura-app-text")
|
|
854
|
-
],
|
|
855
|
-
const
|
|
856
|
-
data:
|
|
873
|
+
], L);
|
|
874
|
+
const se = ({
|
|
875
|
+
data: r,
|
|
857
876
|
position: t = "top-right",
|
|
858
877
|
onItemClick: e
|
|
859
878
|
}) => {
|
|
860
879
|
const s = mt(null);
|
|
861
880
|
return X(() => {
|
|
862
|
-
s.current && (s.current.data =
|
|
863
|
-
}, [
|
|
864
|
-
const
|
|
881
|
+
s.current && (s.current.data = r, s.current.position = t);
|
|
882
|
+
}, [r, t]), X(() => {
|
|
883
|
+
const i = s.current, n = (o) => {
|
|
865
884
|
e?.(o.detail);
|
|
866
885
|
};
|
|
867
|
-
return
|
|
868
|
-
}, [e]),
|
|
886
|
+
return i?.addEventListener("item-click", n), () => i?.removeEventListener("item-click", n);
|
|
887
|
+
}, [e]), _t.createElement("aura-nine-dot-menu", { ref: s });
|
|
869
888
|
};
|
|
870
889
|
export {
|
|
871
|
-
|
|
890
|
+
se as AuraNineDotMenu
|
|
872
891
|
};
|