q2-tecton-elements 1.71.0 → 1.71.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/bundle-report.json +28 -28
- package/dist/cjs/{action-sheet-D71RSc-w.js → action-sheet-DUBlF_x3.js} +1 -0
- package/dist/cjs/click-elsewhere_3.cjs.entry.js +1 -1
- package/dist/cjs/q2-action-sheet.cjs.entry.js +5 -3
- package/dist/cjs/q2-badge_2.cjs.entry.js +2 -2
- package/dist/cjs/q2-checkbox_2.cjs.entry.js +1 -1
- package/dist/cjs/q2-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/q2-pill.cjs.entry.js +1 -1
- package/dist/cjs/q2-select.cjs.entry.js +1 -1
- package/dist/collection/components/click-elsewhere/click-elsewhere.js +1 -1
- package/dist/collection/components/q2-action-sheet/q2-action-sheet.js +5 -3
- package/dist/collection/components/q2-input/q2-input.js +2 -2
- package/dist/collection/utils/action-sheet.js +1 -0
- package/dist/collection/utils/test/vr-helpers.js +3 -1
- package/dist/components/action-sheet.js +28 -27
- package/dist/components/click-elsewhere2.js +1 -1
- package/dist/components/q2-action-sheet.js +12 -9
- package/dist/components/q2-input2.js +4 -4
- package/dist/esm/{action-sheet-B7adb3xs.js → action-sheet-DuQ7VZ08.js} +1 -0
- package/dist/esm/click-elsewhere_3.entry.js +1 -1
- package/dist/esm/q2-action-sheet.entry.js +5 -3
- package/dist/esm/q2-badge_2.entry.js +2 -2
- package/dist/esm/q2-checkbox_2.entry.js +1 -1
- package/dist/esm/q2-dropdown.entry.js +1 -1
- package/dist/esm/q2-pill.entry.js +1 -1
- package/dist/esm/q2-select.entry.js +1 -1
- package/dist/q2-tecton-elements/action-sheet-DuQ7VZ08.js +65 -0
- package/dist/q2-tecton-elements/click-elsewhere_3.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-action-sheet.entry.js +12 -9
- package/dist/q2-tecton-elements/q2-badge_2.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-checkbox_2.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-dropdown.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-pill.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-select.entry.js +1 -1
- package/package.json +3 -3
- package/dist/q2-tecton-elements/action-sheet-B7adb3xs.js +0 -64
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "q2-tecton-elements",
|
|
3
|
-
"version": "1.71.
|
|
3
|
+
"version": "1.71.1",
|
|
4
4
|
"description": "Q2 Tecton Custom Elements",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Q2 Tecton Team",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@stencil/core": "~4.43.0",
|
|
66
|
-
"q2-tecton-common": "1.71.
|
|
66
|
+
"q2-tecton-common": "1.71.1",
|
|
67
67
|
"swiper": "^12.1.2"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"rollup-plugin-istanbul": "^5.0.0"
|
|
86
86
|
},
|
|
87
87
|
"packageManager": "pnpm@10.27.0",
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "821c5df7c9fbd92b42c5cd88d7ef61c78a2a134a"
|
|
89
89
|
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
const shouldShowActionSheet = (n, e) => {
|
|
2
|
-
var t;
|
|
3
|
-
if (!("open" in document.createElement("dialog"))) return !1;
|
|
4
|
-
if (!!!(null === (t = window.TectonElements) || void 0 === t ? void 0 : t.showActionSheet)) return !1;
|
|
5
|
-
if (e) {
|
|
6
|
-
const n = e instanceof KeyboardEvent, t = e instanceof MouseEvent, i = n && [ "ArrowDown", "ArrowUp", "PageDown", "PageUp", "Home", "End", "Enter", " " ].includes(e.key);
|
|
7
|
-
if (!(t && "click" === e.type || i)) return !1;
|
|
8
|
-
}
|
|
9
|
-
return !!n.hoist;
|
|
10
|
-
}, parseOptions = n => {
|
|
11
|
-
const e = {
|
|
12
|
-
disabled: !1,
|
|
13
|
-
separator: !1,
|
|
14
|
-
display: "",
|
|
15
|
-
hidden: !1,
|
|
16
|
-
multiline: !1,
|
|
17
|
-
value: "",
|
|
18
|
-
innerHTML: ""
|
|
19
|
-
}, t = Object.keys(e), i = {
|
|
20
|
-
disabled: !1,
|
|
21
|
-
label: "",
|
|
22
|
-
options: []
|
|
23
|
-
}, o = Object.keys(i);
|
|
24
|
-
return n.map((n => {
|
|
25
|
-
if ("Q2-OPTGROUP" === n.tagName) {
|
|
26
|
-
const e = n;
|
|
27
|
-
return o.reduce(((t, i) => {
|
|
28
|
-
if ("options" === i) {
|
|
29
|
-
const e = Array.from(n.children).filter((n => "Q2-OPTION" === n.tagName || "Q2-OPTGROUP" === n.tagName));
|
|
30
|
-
t[i] = parseOptions(e);
|
|
31
|
-
} else t[i] = e[i];
|
|
32
|
-
return t;
|
|
33
|
-
}), {
|
|
34
|
-
...i
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
if ("Q2-OPTION" === n.tagName || "Q2-DROPDOWN-ITEM" === n.tagName) return t.reduce(((e, t) => (void 0 !== n[t] && (e[t] = n[t]),
|
|
38
|
-
e)), {
|
|
39
|
-
...e
|
|
40
|
-
});
|
|
41
|
-
}));
|
|
42
|
-
}, showActionSheetList = async (n, e) => {
|
|
43
|
-
var t;
|
|
44
|
-
const i = await (async (n, e) => {
|
|
45
|
-
var t;
|
|
46
|
-
return {
|
|
47
|
-
appearance: "list",
|
|
48
|
-
title: n.label || "",
|
|
49
|
-
description: "",
|
|
50
|
-
event: e,
|
|
51
|
-
listProps: {
|
|
52
|
-
multiple: !!n.optionList.multiple,
|
|
53
|
-
selectedOptions: n.optionList.selectedOptions || [],
|
|
54
|
-
noSelect: !!n.optionList.noSelect
|
|
55
|
-
},
|
|
56
|
-
options: parseOptions(await n.optionList.getContents()),
|
|
57
|
-
// static html only
|
|
58
|
-
slotsHtml: await (null === (t = n._getSlotsHtml) || void 0 === t ? void 0 : t.call(n)) || []
|
|
59
|
-
};
|
|
60
|
-
})(n, e);
|
|
61
|
-
return null === (t = window.TectonElements) || void 0 === t ? void 0 : t.showActionSheet(i);
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
export { showActionSheetList as a, shouldShowActionSheet as s }
|