@synergy-design-system/components 1.11.0 → 1.12.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/dist/chunks/{chunk.RRG6TAY7.js → chunk.25VU42YC.js} +2 -2
- package/dist/chunks/{chunk.EGIUUFQ4.js → chunk.2HCVVOEV.js} +2 -2
- package/dist/chunks/chunk.2KYFCKCK.js +10 -0
- package/dist/chunks/chunk.2KYFCKCK.js.map +7 -0
- package/dist/chunks/chunk.2QOQY4ZG.js +132 -0
- package/dist/chunks/chunk.2QOQY4ZG.js.map +7 -0
- package/dist/chunks/{chunk.GTSRMEPE.js → chunk.2QYALZBT.js} +2 -51
- package/dist/chunks/chunk.2QYALZBT.js.map +7 -0
- package/dist/chunks/chunk.3FOVDOJX.js +26 -0
- package/dist/chunks/chunk.3FOVDOJX.js.map +7 -0
- package/dist/chunks/{chunk.HSC2UWAO.js → chunk.3V2G5ZN5.js} +8 -8
- package/dist/chunks/chunk.55KPESRA.js +131 -0
- package/dist/chunks/chunk.55KPESRA.js.map +7 -0
- package/dist/chunks/{chunk.G5AYV6GN.js → chunk.5D6C4M2C.js} +6 -6
- package/dist/chunks/{chunk.OEBVCWZK.js → chunk.5IL2WT3S.js} +2 -2
- package/dist/chunks/{chunk.XOQKLUKE.js → chunk.5UM7HWIJ.js} +2 -2
- package/dist/chunks/{chunk.TIZ7TBXR.js → chunk.62EBS3GI.js} +2 -2
- package/dist/chunks/{chunk.XGXFE6IF.js → chunk.66WXVGAW.js} +16 -2
- package/dist/chunks/{chunk.XGXFE6IF.js.map → chunk.66WXVGAW.js.map} +1 -1
- package/dist/chunks/{chunk.DAQB7JE5.js → chunk.6CAMLQSC.js} +2 -2
- package/dist/chunks/chunk.6G5WBKTI.js +35 -0
- package/dist/chunks/chunk.6G5WBKTI.js.map +7 -0
- package/dist/chunks/chunk.76A3JS2N.js +12 -0
- package/dist/chunks/chunk.76A3JS2N.js.map +7 -0
- package/dist/chunks/chunk.7BEVGRQ2.js +52 -0
- package/dist/chunks/chunk.7BEVGRQ2.js.map +7 -0
- package/dist/chunks/{chunk.OQ72PVRS.js → chunk.B7UA4FRG.js} +2 -2
- package/dist/chunks/{chunk.24VV3YAD.js → chunk.BRWLHYC5.js} +3 -3
- package/dist/chunks/{chunk.HZDJ5AOY.js → chunk.BUBQFHSV.js} +3 -3
- package/dist/chunks/{chunk.YJO3VNKR.js → chunk.D3SWRAXW.js} +2 -2
- package/dist/chunks/chunk.ENYO4NCR.js +21 -0
- package/dist/chunks/chunk.ENYO4NCR.js.map +7 -0
- package/dist/chunks/{chunk.L6ENEGDU.js → chunk.FTTKC5YD.js} +2 -2
- package/dist/chunks/{chunk.P2PJU2JX.js → chunk.G5TO77WM.js} +2 -2
- package/dist/chunks/chunk.GAES53RX.js +12 -0
- package/dist/chunks/chunk.GAES53RX.js.map +7 -0
- package/dist/chunks/chunk.HUCNUF4L.js +194 -0
- package/dist/chunks/chunk.HUCNUF4L.js.map +7 -0
- package/dist/chunks/{chunk.6QB26MQP.js → chunk.I2E3UJIK.js} +7 -7
- package/dist/chunks/{chunk.MTUGTGK4.js → chunk.IQK6FVMW.js} +2 -2
- package/dist/chunks/{chunk.5NLSHXNC.js → chunk.ISU5BF2G.js} +2 -2
- package/dist/chunks/{chunk.TWO26WWF.js → chunk.JT32Q3RE.js} +4 -4
- package/dist/chunks/{chunk.XOIRFMBL.js → chunk.KDY26CBL.js} +3 -3
- package/dist/chunks/{chunk.NJPQTVZC.js → chunk.KNZNW4VS.js} +3 -3
- package/dist/chunks/{chunk.WGHLFFPZ.js → chunk.MFHUNGFO.js} +5 -5
- package/dist/chunks/{chunk.C5HHWDZB.js → chunk.MWXEDKNQ.js} +2 -2
- package/dist/chunks/{chunk.HIBWKIA6.js → chunk.N3SVWIVG.js} +3 -3
- package/dist/chunks/{chunk.RUEZLCM4.js → chunk.NOUFWET6.js} +2 -2
- package/dist/chunks/{chunk.EK3YHGUC.js → chunk.NYY4POP7.js} +3 -3
- package/dist/chunks/chunk.OOABXWCW.js +111 -0
- package/dist/chunks/chunk.OOABXWCW.js.map +7 -0
- package/dist/chunks/chunk.PDHVYHXD.js +156 -0
- package/dist/chunks/chunk.PDHVYHXD.js.map +7 -0
- package/dist/chunks/chunk.PFJUBUDL.js +12 -0
- package/dist/chunks/chunk.PFJUBUDL.js.map +7 -0
- package/dist/chunks/{chunk.KBQDYKZQ.js → chunk.PLIQ6RPD.js} +2 -2
- package/dist/chunks/{chunk.XOL5KILI.js → chunk.PN6VIFO3.js} +10 -8
- package/dist/chunks/{chunk.XOL5KILI.js.map → chunk.PN6VIFO3.js.map} +1 -1
- package/dist/chunks/{chunk.42OELSP4.js → chunk.PQKD6OYF.js} +2 -2
- package/dist/chunks/{chunk.27H5YFFI.js → chunk.QDYPBFX4.js} +5 -5
- package/dist/chunks/{chunk.C64JGJO3.js → chunk.QXUPCXT5.js} +2 -2
- package/dist/chunks/{chunk.RKCUJRKU.js → chunk.R6GYAHAZ.js} +3 -3
- package/dist/chunks/chunk.RD2376VJ.js +12 -0
- package/dist/chunks/chunk.RD2376VJ.js.map +7 -0
- package/dist/chunks/chunk.RRWSXFQ5.js +239 -0
- package/dist/chunks/chunk.RRWSXFQ5.js.map +7 -0
- package/dist/chunks/chunk.RSSY7KPD.js +24 -0
- package/dist/chunks/chunk.RSSY7KPD.js.map +7 -0
- package/dist/chunks/{chunk.WJX2T5MU.js → chunk.SJCYCGUZ.js} +6 -6
- package/dist/chunks/chunk.SLCYXMHB.js +57 -0
- package/dist/chunks/chunk.SLCYXMHB.js.map +7 -0
- package/dist/chunks/{chunk.CHESV63R.js → chunk.TYPMG2S4.js} +2 -2
- package/dist/chunks/{chunk.HQC36QXK.js → chunk.VKSYJXTN.js} +18 -133
- package/dist/chunks/chunk.VKSYJXTN.js.map +7 -0
- package/dist/chunks/{chunk.3GR4ZUZH.js → chunk.W2GO4M3V.js} +2 -2
- package/dist/chunks/chunk.WATON67O.js +12 -0
- package/dist/chunks/chunk.WATON67O.js.map +7 -0
- package/dist/chunks/{chunk.Q3LOBGRV.js → chunk.WMAUFYXR.js} +2 -2
- package/dist/chunks/{chunk.JAHRZFQ6.js → chunk.WWMWREE4.js} +4 -4
- package/dist/chunks/{chunk.WPY6PWSD.js → chunk.X3D3MBIH.js} +2 -2
- package/dist/chunks/{chunk.WPY6PWSD.js.map → chunk.X3D3MBIH.js.map} +1 -1
- package/dist/chunks/chunk.X6GR6IA2.js +29 -0
- package/dist/chunks/chunk.X6GR6IA2.js.map +7 -0
- package/dist/chunks/{chunk.5Q46XTEM.js → chunk.YGF5AV75.js} +2 -2
- package/dist/chunks/chunk.ZZKLLRUA.js +365 -0
- package/dist/chunks/chunk.ZZKLLRUA.js.map +7 -0
- package/dist/components/button/button.component.js +7 -7
- package/dist/components/button/button.js +8 -8
- package/dist/components/button-group/button-group.component.js +2 -2
- package/dist/components/button-group/button-group.js +3 -3
- package/dist/components/checkbox/checkbox.component.js +6 -6
- package/dist/components/checkbox/checkbox.js +7 -7
- package/dist/components/divider/divider.component.js +2 -2
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/drawer/drawer.component.js +11 -9
- package/dist/components/drawer/drawer.js +12 -10
- package/dist/components/dropdown/dropdown.component.d.ts +96 -0
- package/dist/components/dropdown/dropdown.component.js +19 -0
- package/dist/components/dropdown/dropdown.component.js.map +7 -0
- package/dist/components/dropdown/dropdown.custom.styles.d.ts +2 -0
- package/dist/components/dropdown/dropdown.custom.styles.js +8 -0
- package/dist/components/dropdown/dropdown.custom.styles.js.map +7 -0
- package/dist/components/dropdown/dropdown.d.ts +8 -0
- package/dist/components/dropdown/dropdown.js +20 -0
- package/dist/components/dropdown/dropdown.js.map +7 -0
- package/dist/components/dropdown/dropdown.styles.d.ts +2 -0
- package/dist/components/dropdown/dropdown.styles.js +8 -0
- package/dist/components/dropdown/dropdown.styles.js.map +7 -0
- package/dist/components/header/header.component.js +7 -7
- package/dist/components/header/header.js +8 -8
- package/dist/components/icon/icon.component.js +4 -4
- package/dist/components/icon/icon.js +5 -5
- package/dist/components/icon-button/icon-button.component.js +5 -5
- package/dist/components/icon-button/icon-button.js +6 -6
- package/dist/components/input/input.component.js +7 -7
- package/dist/components/input/input.js +8 -8
- package/dist/components/menu/menu.component.d.ts +39 -0
- package/dist/components/menu/menu.component.js +11 -0
- package/dist/components/menu/menu.component.js.map +7 -0
- package/dist/components/menu/menu.custom.styles.d.ts +2 -0
- package/dist/components/menu/menu.custom.styles.js +8 -0
- package/dist/components/menu/menu.custom.styles.js.map +7 -0
- package/dist/components/menu/menu.d.ts +8 -0
- package/dist/components/menu/menu.js +12 -0
- package/dist/components/menu/menu.js.map +7 -0
- package/dist/components/menu/menu.styles.d.ts +2 -0
- package/dist/components/menu/menu.styles.js +8 -0
- package/dist/components/menu/menu.styles.js.map +7 -0
- package/dist/components/menu-item/menu-item.component.d.ts +67 -0
- package/dist/components/menu-item/menu-item.component.js +27 -0
- package/dist/components/menu-item/menu-item.component.js.map +7 -0
- package/dist/components/menu-item/menu-item.custom.styles.d.ts +2 -0
- package/dist/components/menu-item/menu-item.custom.styles.js +8 -0
- package/dist/components/menu-item/menu-item.custom.styles.js.map +7 -0
- package/dist/components/menu-item/menu-item.d.ts +8 -0
- package/dist/components/menu-item/menu-item.js +28 -0
- package/dist/components/menu-item/menu-item.js.map +7 -0
- package/dist/components/menu-item/menu-item.styles.d.ts +2 -0
- package/dist/components/menu-item/menu-item.styles.js +8 -0
- package/dist/components/menu-item/menu-item.styles.js.map +7 -0
- package/dist/components/menu-item/submenu-controller.d.ts +36 -0
- package/dist/components/menu-item/submenu-controller.js +11 -0
- package/dist/components/menu-item/submenu-controller.js.map +7 -0
- package/dist/components/menu-label/menu-label.component.d.ts +31 -0
- package/dist/components/menu-label/menu-label.component.js +15 -0
- package/dist/components/menu-label/menu-label.component.js.map +7 -0
- package/dist/components/menu-label/menu-label.custom.styles.d.ts +2 -0
- package/dist/components/menu-label/menu-label.custom.styles.js +8 -0
- package/dist/components/menu-label/menu-label.custom.styles.js.map +7 -0
- package/dist/components/menu-label/menu-label.d.ts +8 -0
- package/dist/components/menu-label/menu-label.js +16 -0
- package/dist/components/menu-label/menu-label.js.map +7 -0
- package/dist/components/menu-label/menu-label.styles.d.ts +2 -0
- package/dist/components/menu-label/menu-label.styles.js +8 -0
- package/dist/components/menu-label/menu-label.styles.js.map +7 -0
- package/dist/components/optgroup/optgroup.component.js +4 -4
- package/dist/components/optgroup/optgroup.js +5 -5
- package/dist/components/option/option.component.js +5 -5
- package/dist/components/option/option.js +6 -6
- package/dist/components/popup/popup.component.js +2 -2
- package/dist/components/popup/popup.d.ts +8 -0
- package/dist/components/popup/popup.js +11 -0
- package/dist/components/popup/popup.js.map +7 -0
- package/dist/components/radio/radio.component.js +5 -5
- package/dist/components/radio/radio.js +6 -6
- package/dist/components/radio-button/radio-button.component.js +3 -3
- package/dist/components/radio-button/radio-button.js +4 -4
- package/dist/components/radio-group/radio-group.component.js +5 -5
- package/dist/components/radio-group/radio-group.js +6 -6
- package/dist/components/select/select.component.js +13 -12
- package/dist/components/select/select.js +14 -13
- package/dist/components/spinner/spinner.component.js +2 -2
- package/dist/components/switch/switch.component.js +3 -3
- package/dist/components/switch/switch.js +4 -4
- package/dist/components/tag/tag.component.js +6 -6
- package/dist/components/tag/tag.js +7 -7
- package/dist/components/textarea/textarea.component.js +3 -3
- package/dist/components/textarea/textarea.js +4 -4
- package/dist/custom-elements.json +1993 -1134
- package/dist/events/events.d.ts +1 -0
- package/dist/events/syn-select.d.ts +9 -0
- package/dist/synergy.d.ts +5 -0
- package/dist/synergy.js +96 -61
- package/dist/themes/utility.css +12 -3
- package/dist/vscode.html-custom-data.json +137 -17
- package/package.json +2 -2
- package/dist/chunks/chunk.GTSRMEPE.js.map +0 -7
- package/dist/chunks/chunk.HQC36QXK.js.map +0 -7
- /package/dist/chunks/{chunk.RRG6TAY7.js.map → chunk.25VU42YC.js.map} +0 -0
- /package/dist/chunks/{chunk.EGIUUFQ4.js.map → chunk.2HCVVOEV.js.map} +0 -0
- /package/dist/chunks/{chunk.HSC2UWAO.js.map → chunk.3V2G5ZN5.js.map} +0 -0
- /package/dist/chunks/{chunk.G5AYV6GN.js.map → chunk.5D6C4M2C.js.map} +0 -0
- /package/dist/chunks/{chunk.OEBVCWZK.js.map → chunk.5IL2WT3S.js.map} +0 -0
- /package/dist/chunks/{chunk.XOQKLUKE.js.map → chunk.5UM7HWIJ.js.map} +0 -0
- /package/dist/chunks/{chunk.TIZ7TBXR.js.map → chunk.62EBS3GI.js.map} +0 -0
- /package/dist/chunks/{chunk.DAQB7JE5.js.map → chunk.6CAMLQSC.js.map} +0 -0
- /package/dist/chunks/{chunk.OQ72PVRS.js.map → chunk.B7UA4FRG.js.map} +0 -0
- /package/dist/chunks/{chunk.24VV3YAD.js.map → chunk.BRWLHYC5.js.map} +0 -0
- /package/dist/chunks/{chunk.HZDJ5AOY.js.map → chunk.BUBQFHSV.js.map} +0 -0
- /package/dist/chunks/{chunk.YJO3VNKR.js.map → chunk.D3SWRAXW.js.map} +0 -0
- /package/dist/chunks/{chunk.L6ENEGDU.js.map → chunk.FTTKC5YD.js.map} +0 -0
- /package/dist/chunks/{chunk.P2PJU2JX.js.map → chunk.G5TO77WM.js.map} +0 -0
- /package/dist/chunks/{chunk.6QB26MQP.js.map → chunk.I2E3UJIK.js.map} +0 -0
- /package/dist/chunks/{chunk.MTUGTGK4.js.map → chunk.IQK6FVMW.js.map} +0 -0
- /package/dist/chunks/{chunk.5NLSHXNC.js.map → chunk.ISU5BF2G.js.map} +0 -0
- /package/dist/chunks/{chunk.TWO26WWF.js.map → chunk.JT32Q3RE.js.map} +0 -0
- /package/dist/chunks/{chunk.XOIRFMBL.js.map → chunk.KDY26CBL.js.map} +0 -0
- /package/dist/chunks/{chunk.NJPQTVZC.js.map → chunk.KNZNW4VS.js.map} +0 -0
- /package/dist/chunks/{chunk.WGHLFFPZ.js.map → chunk.MFHUNGFO.js.map} +0 -0
- /package/dist/chunks/{chunk.C5HHWDZB.js.map → chunk.MWXEDKNQ.js.map} +0 -0
- /package/dist/chunks/{chunk.HIBWKIA6.js.map → chunk.N3SVWIVG.js.map} +0 -0
- /package/dist/chunks/{chunk.RUEZLCM4.js.map → chunk.NOUFWET6.js.map} +0 -0
- /package/dist/chunks/{chunk.EK3YHGUC.js.map → chunk.NYY4POP7.js.map} +0 -0
- /package/dist/chunks/{chunk.KBQDYKZQ.js.map → chunk.PLIQ6RPD.js.map} +0 -0
- /package/dist/chunks/{chunk.42OELSP4.js.map → chunk.PQKD6OYF.js.map} +0 -0
- /package/dist/chunks/{chunk.27H5YFFI.js.map → chunk.QDYPBFX4.js.map} +0 -0
- /package/dist/chunks/{chunk.C64JGJO3.js.map → chunk.QXUPCXT5.js.map} +0 -0
- /package/dist/chunks/{chunk.RKCUJRKU.js.map → chunk.R6GYAHAZ.js.map} +0 -0
- /package/dist/chunks/{chunk.WJX2T5MU.js.map → chunk.SJCYCGUZ.js.map} +0 -0
- /package/dist/chunks/{chunk.CHESV63R.js.map → chunk.TYPMG2S4.js.map} +0 -0
- /package/dist/chunks/{chunk.3GR4ZUZH.js.map → chunk.W2GO4M3V.js.map} +0 -0
- /package/dist/chunks/{chunk.Q3LOBGRV.js.map → chunk.WMAUFYXR.js.map} +0 -0
- /package/dist/chunks/{chunk.JAHRZFQ6.js.map → chunk.WWMWREE4.js.map} +0 -0
- /package/dist/chunks/{chunk.5Q46XTEM.js.map → chunk.YGF5AV75.js.map} +0 -0
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SynPopup
|
|
3
|
+
} from "./chunk.IQK6FVMW.js";
|
|
4
|
+
import {
|
|
5
|
+
getTabbableBoundary
|
|
6
|
+
} from "./chunk.2QOQY4ZG.js";
|
|
7
|
+
import {
|
|
8
|
+
animateTo,
|
|
9
|
+
stopAnimations,
|
|
10
|
+
waitForEvent
|
|
11
|
+
} from "./chunk.7BEVGRQ2.js";
|
|
12
|
+
import {
|
|
13
|
+
getAnimation,
|
|
14
|
+
setDefaultAnimation
|
|
15
|
+
} from "./chunk.QAUTITK3.js";
|
|
16
|
+
import {
|
|
17
|
+
dropdown_custom_styles_default
|
|
18
|
+
} from "./chunk.2KYFCKCK.js";
|
|
19
|
+
import {
|
|
20
|
+
dropdown_styles_default
|
|
21
|
+
} from "./chunk.SLCYXMHB.js";
|
|
22
|
+
import {
|
|
23
|
+
LocalizeController
|
|
24
|
+
} from "./chunk.LAB4YJYE.js";
|
|
25
|
+
import {
|
|
26
|
+
watch
|
|
27
|
+
} from "./chunk.AVTU2BGE.js";
|
|
28
|
+
import {
|
|
29
|
+
SynergyElement,
|
|
30
|
+
component_styles_default
|
|
31
|
+
} from "./chunk.X3D3MBIH.js";
|
|
32
|
+
import {
|
|
33
|
+
__decorateClass
|
|
34
|
+
} from "./chunk.QNDC5KWA.js";
|
|
35
|
+
|
|
36
|
+
// src/components/dropdown/dropdown.component.ts
|
|
37
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
38
|
+
import { html } from "lit";
|
|
39
|
+
import { property, query } from "lit/decorators.js";
|
|
40
|
+
var SynDropdown = class extends SynergyElement {
|
|
41
|
+
constructor() {
|
|
42
|
+
super(...arguments);
|
|
43
|
+
this.localize = new LocalizeController(this);
|
|
44
|
+
this.open = false;
|
|
45
|
+
this.placement = "bottom-start";
|
|
46
|
+
this.disabled = false;
|
|
47
|
+
this.stayOpenOnSelect = false;
|
|
48
|
+
this.distance = 0;
|
|
49
|
+
this.skidding = 0;
|
|
50
|
+
this.hoist = false;
|
|
51
|
+
this.handleKeyDown = (event) => {
|
|
52
|
+
if (this.open && event.key === "Escape") {
|
|
53
|
+
event.stopPropagation();
|
|
54
|
+
this.hide();
|
|
55
|
+
this.focusOnTrigger();
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
this.handleDocumentKeyDown = (event) => {
|
|
59
|
+
var _a;
|
|
60
|
+
if (event.key === "Escape" && this.open && !this.closeWatcher) {
|
|
61
|
+
event.stopPropagation();
|
|
62
|
+
this.focusOnTrigger();
|
|
63
|
+
this.hide();
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
if (event.key === "Tab") {
|
|
67
|
+
if (this.open && ((_a = document.activeElement) == null ? void 0 : _a.tagName.toLowerCase()) === "syn-menu-item") {
|
|
68
|
+
event.preventDefault();
|
|
69
|
+
this.hide();
|
|
70
|
+
this.focusOnTrigger();
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
setTimeout(() => {
|
|
74
|
+
var _a2, _b, _c;
|
|
75
|
+
const activeElement = ((_a2 = this.containingElement) == null ? void 0 : _a2.getRootNode()) instanceof ShadowRoot ? (_c = (_b = document.activeElement) == null ? void 0 : _b.shadowRoot) == null ? void 0 : _c.activeElement : document.activeElement;
|
|
76
|
+
if (!this.containingElement || (activeElement == null ? void 0 : activeElement.closest(this.containingElement.tagName.toLowerCase())) !== this.containingElement) {
|
|
77
|
+
this.hide();
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
this.handleDocumentMouseDown = (event) => {
|
|
83
|
+
const path = event.composedPath();
|
|
84
|
+
if (this.containingElement && !path.includes(this.containingElement)) {
|
|
85
|
+
this.hide();
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
this.handlePanelSelect = (event) => {
|
|
89
|
+
const target = event.target;
|
|
90
|
+
if (!this.stayOpenOnSelect && target.tagName.toLowerCase() === "syn-menu") {
|
|
91
|
+
this.hide();
|
|
92
|
+
this.focusOnTrigger();
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
connectedCallback() {
|
|
97
|
+
super.connectedCallback();
|
|
98
|
+
if (!this.containingElement) {
|
|
99
|
+
this.containingElement = this;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
firstUpdated() {
|
|
103
|
+
this.panel.hidden = !this.open;
|
|
104
|
+
if (this.open) {
|
|
105
|
+
this.addOpenListeners();
|
|
106
|
+
this.popup.active = true;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
disconnectedCallback() {
|
|
110
|
+
super.disconnectedCallback();
|
|
111
|
+
this.removeOpenListeners();
|
|
112
|
+
this.hide();
|
|
113
|
+
}
|
|
114
|
+
focusOnTrigger() {
|
|
115
|
+
const trigger = this.trigger.assignedElements({ flatten: true })[0];
|
|
116
|
+
if (typeof (trigger == null ? void 0 : trigger.focus) === "function") {
|
|
117
|
+
trigger.focus();
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
getMenu() {
|
|
121
|
+
return this.panel.assignedElements({ flatten: true }).find((el) => el.tagName.toLowerCase() === "syn-menu");
|
|
122
|
+
}
|
|
123
|
+
handleTriggerClick() {
|
|
124
|
+
if (this.open) {
|
|
125
|
+
this.hide();
|
|
126
|
+
} else {
|
|
127
|
+
this.show();
|
|
128
|
+
this.focusOnTrigger();
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
async handleTriggerKeyDown(event) {
|
|
132
|
+
if ([" ", "Enter"].includes(event.key)) {
|
|
133
|
+
event.preventDefault();
|
|
134
|
+
this.handleTriggerClick();
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
const menu = this.getMenu();
|
|
138
|
+
if (menu) {
|
|
139
|
+
const menuItems = menu.getAllItems();
|
|
140
|
+
const firstMenuItem = menuItems[0];
|
|
141
|
+
const lastMenuItem = menuItems[menuItems.length - 1];
|
|
142
|
+
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(event.key)) {
|
|
143
|
+
event.preventDefault();
|
|
144
|
+
if (!this.open) {
|
|
145
|
+
this.show();
|
|
146
|
+
await this.updateComplete;
|
|
147
|
+
}
|
|
148
|
+
if (menuItems.length > 0) {
|
|
149
|
+
this.updateComplete.then(() => {
|
|
150
|
+
if (event.key === "ArrowDown" || event.key === "Home") {
|
|
151
|
+
menu.setCurrentItem(firstMenuItem);
|
|
152
|
+
firstMenuItem.focus();
|
|
153
|
+
}
|
|
154
|
+
if (event.key === "ArrowUp" || event.key === "End") {
|
|
155
|
+
menu.setCurrentItem(lastMenuItem);
|
|
156
|
+
lastMenuItem.focus();
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
handleTriggerKeyUp(event) {
|
|
164
|
+
if (event.key === " ") {
|
|
165
|
+
event.preventDefault();
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
handleTriggerSlotChange() {
|
|
169
|
+
this.updateAccessibleTrigger();
|
|
170
|
+
}
|
|
171
|
+
//
|
|
172
|
+
// Slotted triggers can be arbitrary content, but we need to link them to the dropdown panel with `aria-haspopup` and
|
|
173
|
+
// `aria-expanded`. These must be applied to the "accessible trigger" (the tabbable portion of the trigger element
|
|
174
|
+
// that gets slotted in) so screen readers will understand them. The accessible trigger could be the slotted element,
|
|
175
|
+
// a child of the slotted element, or an element in the slotted element's shadow root.
|
|
176
|
+
//
|
|
177
|
+
// For example, the accessible trigger of an <syn-button> is a <button> located inside its shadow root.
|
|
178
|
+
//
|
|
179
|
+
// To determine this, we assume the first tabbable element in the trigger slot is the "accessible trigger."
|
|
180
|
+
//
|
|
181
|
+
updateAccessibleTrigger() {
|
|
182
|
+
const assignedElements = this.trigger.assignedElements({ flatten: true });
|
|
183
|
+
const accessibleTrigger = assignedElements.find((el) => getTabbableBoundary(el).start);
|
|
184
|
+
let target;
|
|
185
|
+
if (accessibleTrigger) {
|
|
186
|
+
switch (accessibleTrigger.tagName.toLowerCase()) {
|
|
187
|
+
case "syn-button":
|
|
188
|
+
case "syn-icon-button":
|
|
189
|
+
target = accessibleTrigger.button;
|
|
190
|
+
break;
|
|
191
|
+
default:
|
|
192
|
+
target = accessibleTrigger;
|
|
193
|
+
}
|
|
194
|
+
target.setAttribute("aria-haspopup", "true");
|
|
195
|
+
target.setAttribute("aria-expanded", this.open ? "true" : "false");
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
/** Shows the dropdown panel. */
|
|
199
|
+
async show() {
|
|
200
|
+
if (this.open) {
|
|
201
|
+
return void 0;
|
|
202
|
+
}
|
|
203
|
+
this.open = true;
|
|
204
|
+
return waitForEvent(this, "syn-after-show");
|
|
205
|
+
}
|
|
206
|
+
/** Hides the dropdown panel */
|
|
207
|
+
async hide() {
|
|
208
|
+
if (!this.open) {
|
|
209
|
+
return void 0;
|
|
210
|
+
}
|
|
211
|
+
this.open = false;
|
|
212
|
+
return waitForEvent(this, "syn-after-hide");
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Instructs the dropdown menu to reposition. Useful when the position or size of the trigger changes when the menu
|
|
216
|
+
* is activated.
|
|
217
|
+
*/
|
|
218
|
+
reposition() {
|
|
219
|
+
this.popup.reposition();
|
|
220
|
+
}
|
|
221
|
+
addOpenListeners() {
|
|
222
|
+
var _a;
|
|
223
|
+
this.panel.addEventListener("syn-select", this.handlePanelSelect);
|
|
224
|
+
if ("CloseWatcher" in window) {
|
|
225
|
+
(_a = this.closeWatcher) == null ? void 0 : _a.destroy();
|
|
226
|
+
this.closeWatcher = new CloseWatcher();
|
|
227
|
+
this.closeWatcher.onclose = () => {
|
|
228
|
+
this.hide();
|
|
229
|
+
this.focusOnTrigger();
|
|
230
|
+
};
|
|
231
|
+
} else {
|
|
232
|
+
this.panel.addEventListener("keydown", this.handleKeyDown);
|
|
233
|
+
}
|
|
234
|
+
document.addEventListener("keydown", this.handleDocumentKeyDown);
|
|
235
|
+
document.addEventListener("mousedown", this.handleDocumentMouseDown);
|
|
236
|
+
}
|
|
237
|
+
removeOpenListeners() {
|
|
238
|
+
var _a;
|
|
239
|
+
if (this.panel) {
|
|
240
|
+
this.panel.removeEventListener("syn-select", this.handlePanelSelect);
|
|
241
|
+
this.panel.removeEventListener("keydown", this.handleKeyDown);
|
|
242
|
+
}
|
|
243
|
+
document.removeEventListener("keydown", this.handleDocumentKeyDown);
|
|
244
|
+
document.removeEventListener("mousedown", this.handleDocumentMouseDown);
|
|
245
|
+
(_a = this.closeWatcher) == null ? void 0 : _a.destroy();
|
|
246
|
+
}
|
|
247
|
+
async handleOpenChange() {
|
|
248
|
+
if (this.disabled) {
|
|
249
|
+
this.open = false;
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
252
|
+
this.updateAccessibleTrigger();
|
|
253
|
+
if (this.open) {
|
|
254
|
+
this.emit("syn-show");
|
|
255
|
+
this.addOpenListeners();
|
|
256
|
+
await stopAnimations(this);
|
|
257
|
+
this.panel.hidden = false;
|
|
258
|
+
this.popup.active = true;
|
|
259
|
+
const { keyframes, options } = getAnimation(this, "dropdown.show", { dir: this.localize.dir() });
|
|
260
|
+
await animateTo(this.popup.popup, keyframes, options);
|
|
261
|
+
this.emit("syn-after-show");
|
|
262
|
+
} else {
|
|
263
|
+
this.emit("syn-hide");
|
|
264
|
+
this.removeOpenListeners();
|
|
265
|
+
await stopAnimations(this);
|
|
266
|
+
const { keyframes, options } = getAnimation(this, "dropdown.hide", { dir: this.localize.dir() });
|
|
267
|
+
await animateTo(this.popup.popup, keyframes, options);
|
|
268
|
+
this.panel.hidden = true;
|
|
269
|
+
this.popup.active = false;
|
|
270
|
+
this.emit("syn-after-hide");
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
render() {
|
|
274
|
+
return html`
|
|
275
|
+
<syn-popup
|
|
276
|
+
part="base"
|
|
277
|
+
id="dropdown"
|
|
278
|
+
placement=${this.placement}
|
|
279
|
+
distance=${this.distance}
|
|
280
|
+
skidding=${this.skidding}
|
|
281
|
+
strategy=${this.hoist ? "fixed" : "absolute"}
|
|
282
|
+
flip
|
|
283
|
+
shift
|
|
284
|
+
auto-size="vertical"
|
|
285
|
+
auto-size-padding="10"
|
|
286
|
+
class=${classMap({
|
|
287
|
+
dropdown: true,
|
|
288
|
+
"dropdown--open": this.open
|
|
289
|
+
})}
|
|
290
|
+
>
|
|
291
|
+
<slot
|
|
292
|
+
name="trigger"
|
|
293
|
+
slot="anchor"
|
|
294
|
+
part="trigger"
|
|
295
|
+
class="dropdown__trigger"
|
|
296
|
+
@click=${this.handleTriggerClick}
|
|
297
|
+
@keydown=${this.handleTriggerKeyDown}
|
|
298
|
+
@keyup=${this.handleTriggerKeyUp}
|
|
299
|
+
@slotchange=${this.handleTriggerSlotChange}
|
|
300
|
+
></slot>
|
|
301
|
+
|
|
302
|
+
<div aria-hidden=${this.open ? "false" : "true"} aria-labelledby="dropdown">
|
|
303
|
+
<slot part="panel" class="dropdown__panel"></slot>
|
|
304
|
+
</div>
|
|
305
|
+
</syn-popup>
|
|
306
|
+
`;
|
|
307
|
+
}
|
|
308
|
+
};
|
|
309
|
+
SynDropdown.styles = [component_styles_default, dropdown_styles_default, dropdown_custom_styles_default];
|
|
310
|
+
SynDropdown.dependencies = { "syn-popup": SynPopup };
|
|
311
|
+
__decorateClass([
|
|
312
|
+
query(".dropdown")
|
|
313
|
+
], SynDropdown.prototype, "popup", 2);
|
|
314
|
+
__decorateClass([
|
|
315
|
+
query(".dropdown__trigger")
|
|
316
|
+
], SynDropdown.prototype, "trigger", 2);
|
|
317
|
+
__decorateClass([
|
|
318
|
+
query(".dropdown__panel")
|
|
319
|
+
], SynDropdown.prototype, "panel", 2);
|
|
320
|
+
__decorateClass([
|
|
321
|
+
property({ type: Boolean, reflect: true })
|
|
322
|
+
], SynDropdown.prototype, "open", 2);
|
|
323
|
+
__decorateClass([
|
|
324
|
+
property({ reflect: true })
|
|
325
|
+
], SynDropdown.prototype, "placement", 2);
|
|
326
|
+
__decorateClass([
|
|
327
|
+
property({ type: Boolean, reflect: true })
|
|
328
|
+
], SynDropdown.prototype, "disabled", 2);
|
|
329
|
+
__decorateClass([
|
|
330
|
+
property({ attribute: "stay-open-on-select", type: Boolean, reflect: true })
|
|
331
|
+
], SynDropdown.prototype, "stayOpenOnSelect", 2);
|
|
332
|
+
__decorateClass([
|
|
333
|
+
property({ attribute: false })
|
|
334
|
+
], SynDropdown.prototype, "containingElement", 2);
|
|
335
|
+
__decorateClass([
|
|
336
|
+
property({ type: Number })
|
|
337
|
+
], SynDropdown.prototype, "distance", 2);
|
|
338
|
+
__decorateClass([
|
|
339
|
+
property({ type: Number })
|
|
340
|
+
], SynDropdown.prototype, "skidding", 2);
|
|
341
|
+
__decorateClass([
|
|
342
|
+
property({ type: Boolean })
|
|
343
|
+
], SynDropdown.prototype, "hoist", 2);
|
|
344
|
+
__decorateClass([
|
|
345
|
+
watch("open", { waitUntilFirstUpdate: true })
|
|
346
|
+
], SynDropdown.prototype, "handleOpenChange", 1);
|
|
347
|
+
setDefaultAnimation("dropdown.show", {
|
|
348
|
+
keyframes: [
|
|
349
|
+
{ opacity: 0, scale: 0.9 },
|
|
350
|
+
{ opacity: 1, scale: 1 }
|
|
351
|
+
],
|
|
352
|
+
options: { duration: 100, easing: "ease" }
|
|
353
|
+
});
|
|
354
|
+
setDefaultAnimation("dropdown.hide", {
|
|
355
|
+
keyframes: [
|
|
356
|
+
{ opacity: 1, scale: 1 },
|
|
357
|
+
{ opacity: 0, scale: 0.9 }
|
|
358
|
+
],
|
|
359
|
+
options: { duration: 100, easing: "ease" }
|
|
360
|
+
});
|
|
361
|
+
|
|
362
|
+
export {
|
|
363
|
+
SynDropdown
|
|
364
|
+
};
|
|
365
|
+
//# sourceMappingURL=chunk.ZZKLLRUA.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/dropdown/dropdown.component.ts"],
|
|
4
|
+
"sourcesContent": ["// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\nimport { animateTo, stopAnimations } from '../../internal/animate.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { getAnimation, setDefaultAnimation } from '../../utilities/animation-registry.js';\nimport { getTabbableBoundary } from '../../internal/tabbable.js';\nimport { html } from 'lit';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { property, query } from 'lit/decorators.js';\nimport { waitForEvent } from '../../internal/event.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynPopup from '../popup/popup.component.js';\nimport styles from './dropdown.styles.js';\nimport customStyles from './dropdown.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport type { SynSelectEvent } from '../../events/syn-select.js';\nimport type SynButton from '../button/button.js';\nimport type SynIconButton from '../icon-button/icon-button.js';\nimport type SynMenu from '../menu/menu.js';\n\n/**\n * @summary Dropdowns expose additional content that \"drops down\" in a panel.\n * @documentation https://synergy.style/components/dropdown\n * @status stable\n * @since 2.0\n *\n * @dependency syn-popup\n *\n * @slot - The dropdown's main content.\n * @slot trigger - The dropdown's trigger, usually a `<syn-button>` element.\n *\n * @event syn-show - Emitted when the dropdown opens.\n * @event syn-after-show - Emitted after the dropdown opens and all animations are complete.\n * @event syn-hide - Emitted when the dropdown closes.\n * @event syn-after-hide - Emitted after the dropdown closes and all animations are complete.\n *\n * @csspart base - The component's base wrapper.\n * @csspart trigger - The container that wraps the trigger.\n * @csspart panel - The panel that gets shown when the dropdown is open.\n *\n * @animation dropdown.show - The animation to use when showing the dropdown.\n * @animation dropdown.hide - The animation to use when hiding the dropdown.\n */\nexport default class SynDropdown extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n static dependencies = { 'syn-popup': SynPopup };\n\n @query('.dropdown') popup: SynPopup;\n @query('.dropdown__trigger') trigger: HTMLSlotElement;\n @query('.dropdown__panel') panel: HTMLSlotElement;\n\n private readonly localize = new LocalizeController(this);\n private closeWatcher: CloseWatcher | null;\n\n /**\n * Indicates whether or not the dropdown is open. You can toggle this attribute to show and hide the dropdown, or you\n * can use the `show()` and `hide()` methods and this attribute will reflect the dropdown's open state.\n */\n @property({ type: Boolean, reflect: true }) open = false;\n\n /**\n * The preferred placement of the dropdown panel. Note that the actual placement may vary as needed to keep the panel\n * inside of the viewport.\n */\n @property({ reflect: true }) placement:\n | 'top'\n | 'top-start'\n | 'top-end'\n | 'bottom'\n | 'bottom-start'\n | 'bottom-end'\n | 'right'\n | 'right-start'\n | 'right-end'\n | 'left'\n | 'left-start'\n | 'left-end' = 'bottom-start';\n\n /** Disables the dropdown so the panel will not open. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /**\n * By default, the dropdown is closed when an item is selected. This attribute will keep it open instead. Useful for\n * dropdowns that allow for multiple interactions.\n */\n @property({ attribute: 'stay-open-on-select', type: Boolean, reflect: true }) stayOpenOnSelect = false;\n\n /**\n * The dropdown will close when the user interacts outside of this element (e.g. clicking). Useful for composing other\n * components that use a dropdown internally.\n */\n @property({ attribute: false }) containingElement?: HTMLElement;\n\n /** The distance in pixels from which to offset the panel away from its trigger. */\n @property({ type: Number }) distance = 0;\n\n /** The distance in pixels from which to offset the panel along its trigger. */\n @property({ type: Number }) skidding = 0;\n\n /**\n * Enable this option to prevent the panel from being clipped when the component is placed inside a container with\n * `overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.\n */\n @property({ type: Boolean }) hoist = false;\n\n connectedCallback() {\n super.connectedCallback();\n\n if (!this.containingElement) {\n this.containingElement = this;\n }\n }\n\n firstUpdated() {\n this.panel.hidden = !this.open;\n\n // If the dropdown is visible on init, update its position\n if (this.open) {\n this.addOpenListeners();\n this.popup.active = true;\n }\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.removeOpenListeners();\n this.hide();\n }\n\n focusOnTrigger() {\n const trigger = this.trigger.assignedElements({ flatten: true })[0] as HTMLElement | undefined;\n if (typeof trigger?.focus === 'function') {\n trigger.focus();\n }\n }\n\n getMenu() {\n return this.panel.assignedElements({ flatten: true }).find(el => el.tagName.toLowerCase() === 'syn-menu') as\n | SynMenu\n | undefined;\n }\n\n private handleKeyDown = (event: KeyboardEvent) => {\n // Close when escape is pressed inside an open dropdown. We need to listen on the panel itself and stop propagation\n // in case any ancestors are also listening for this key.\n if (this.open && event.key === 'Escape') {\n event.stopPropagation();\n this.hide();\n this.focusOnTrigger();\n }\n };\n\n private handleDocumentKeyDown = (event: KeyboardEvent) => {\n // Close when escape or tab is pressed\n if (event.key === 'Escape' && this.open && !this.closeWatcher) {\n event.stopPropagation();\n this.focusOnTrigger();\n this.hide();\n return;\n }\n\n // Handle tabbing\n if (event.key === 'Tab') {\n // Tabbing within an open menu should close the dropdown and refocus the trigger\n if (this.open && document.activeElement?.tagName.toLowerCase() === 'syn-menu-item') {\n event.preventDefault();\n this.hide();\n this.focusOnTrigger();\n return;\n }\n\n // Tabbing outside of the containing element closes the panel\n //\n // If the dropdown is used within a shadow DOM, we need to obtain the activeElement within that shadowRoot,\n // otherwise `document.activeElement` will only return the name of the parent shadow DOM element.\n setTimeout(() => {\n const activeElement =\n this.containingElement?.getRootNode() instanceof ShadowRoot\n ? document.activeElement?.shadowRoot?.activeElement\n : document.activeElement;\n\n if (\n !this.containingElement ||\n activeElement?.closest(this.containingElement.tagName.toLowerCase()) !== this.containingElement\n ) {\n this.hide();\n }\n });\n }\n };\n\n private handleDocumentMouseDown = (event: MouseEvent) => {\n // Close when clicking outside of the containing element\n const path = event.composedPath();\n if (this.containingElement && !path.includes(this.containingElement)) {\n this.hide();\n }\n };\n\n private handlePanelSelect = (event: SynSelectEvent) => {\n const target = event.target as HTMLElement;\n\n // Hide the dropdown when a menu item is selected\n if (!this.stayOpenOnSelect && target.tagName.toLowerCase() === 'syn-menu') {\n this.hide();\n this.focusOnTrigger();\n }\n };\n\n handleTriggerClick() {\n if (this.open) {\n this.hide();\n } else {\n this.show();\n this.focusOnTrigger();\n }\n }\n\n async handleTriggerKeyDown(event: KeyboardEvent) {\n // When spacebar/enter is pressed, show the panel but don't focus on the menu. This let's the user press the same\n // key again to hide the menu in case they don't want to make a selection.\n if ([' ', 'Enter'].includes(event.key)) {\n event.preventDefault();\n this.handleTriggerClick();\n return;\n }\n\n const menu = this.getMenu();\n\n if (menu) {\n const menuItems = menu.getAllItems();\n const firstMenuItem = menuItems[0];\n const lastMenuItem = menuItems[menuItems.length - 1];\n\n // When up/down is pressed, we make the assumption that the user is familiar with the menu and plans to make a\n // selection. Rather than toggle the panel, we focus on the menu (if one exists) and activate the first item for\n // faster navigation.\n if (['ArrowDown', 'ArrowUp', 'Home', 'End'].includes(event.key)) {\n event.preventDefault();\n\n // Show the menu if it's not already open\n if (!this.open) {\n this.show();\n\n // Wait for the dropdown to open before focusing, but not the animation\n await this.updateComplete;\n }\n\n if (menuItems.length > 0) {\n // Focus on the first/last menu item after showing\n this.updateComplete.then(() => {\n if (event.key === 'ArrowDown' || event.key === 'Home') {\n menu.setCurrentItem(firstMenuItem);\n firstMenuItem.focus();\n }\n\n if (event.key === 'ArrowUp' || event.key === 'End') {\n menu.setCurrentItem(lastMenuItem);\n lastMenuItem.focus();\n }\n });\n }\n }\n }\n }\n\n handleTriggerKeyUp(event: KeyboardEvent) {\n // Prevent space from triggering a click event in Firefox\n if (event.key === ' ') {\n event.preventDefault();\n }\n }\n\n handleTriggerSlotChange() {\n this.updateAccessibleTrigger();\n }\n\n //\n // Slotted triggers can be arbitrary content, but we need to link them to the dropdown panel with `aria-haspopup` and\n // `aria-expanded`. These must be applied to the \"accessible trigger\" (the tabbable portion of the trigger element\n // that gets slotted in) so screen readers will understand them. The accessible trigger could be the slotted element,\n // a child of the slotted element, or an element in the slotted element's shadow root.\n //\n // For example, the accessible trigger of an <syn-button> is a <button> located inside its shadow root.\n //\n // To determine this, we assume the first tabbable element in the trigger slot is the \"accessible trigger.\"\n //\n updateAccessibleTrigger() {\n const assignedElements = this.trigger.assignedElements({ flatten: true }) as HTMLElement[];\n const accessibleTrigger = assignedElements.find(el => getTabbableBoundary(el).start);\n let target: HTMLElement;\n\n if (accessibleTrigger) {\n switch (accessibleTrigger.tagName.toLowerCase()) {\n // Synergy buttons have to update the internal button so it's announced correctly by screen readers\n case 'syn-button':\n case 'syn-icon-button':\n target = (accessibleTrigger as SynButton | SynIconButton).button;\n break;\n\n default:\n target = accessibleTrigger;\n }\n\n target.setAttribute('aria-haspopup', 'true');\n target.setAttribute('aria-expanded', this.open ? 'true' : 'false');\n }\n }\n\n /** Shows the dropdown panel. */\n async show() {\n if (this.open) {\n return undefined;\n }\n\n this.open = true;\n return waitForEvent(this, 'syn-after-show');\n }\n\n /** Hides the dropdown panel */\n async hide() {\n if (!this.open) {\n return undefined;\n }\n\n this.open = false;\n return waitForEvent(this, 'syn-after-hide');\n }\n\n /**\n * Instructs the dropdown menu to reposition. Useful when the position or size of the trigger changes when the menu\n * is activated.\n */\n reposition() {\n this.popup.reposition();\n }\n\n addOpenListeners() {\n this.panel.addEventListener('syn-select', this.handlePanelSelect);\n if ('CloseWatcher' in window) {\n this.closeWatcher?.destroy();\n this.closeWatcher = new CloseWatcher();\n this.closeWatcher.onclose = () => {\n this.hide();\n this.focusOnTrigger();\n };\n } else {\n this.panel.addEventListener('keydown', this.handleKeyDown);\n }\n document.addEventListener('keydown', this.handleDocumentKeyDown);\n document.addEventListener('mousedown', this.handleDocumentMouseDown);\n }\n\n removeOpenListeners() {\n if (this.panel) {\n this.panel.removeEventListener('syn-select', this.handlePanelSelect);\n this.panel.removeEventListener('keydown', this.handleKeyDown);\n }\n document.removeEventListener('keydown', this.handleDocumentKeyDown);\n document.removeEventListener('mousedown', this.handleDocumentMouseDown);\n this.closeWatcher?.destroy();\n }\n\n @watch('open', { waitUntilFirstUpdate: true })\n async handleOpenChange() {\n if (this.disabled) {\n this.open = false;\n return;\n }\n\n this.updateAccessibleTrigger();\n\n if (this.open) {\n // Show\n this.emit('syn-show');\n this.addOpenListeners();\n\n await stopAnimations(this);\n this.panel.hidden = false;\n this.popup.active = true;\n const { keyframes, options } = getAnimation(this, 'dropdown.show', { dir: this.localize.dir() });\n await animateTo(this.popup.popup, keyframes, options);\n\n this.emit('syn-after-show');\n } else {\n // Hide\n this.emit('syn-hide');\n this.removeOpenListeners();\n\n await stopAnimations(this);\n const { keyframes, options } = getAnimation(this, 'dropdown.hide', { dir: this.localize.dir() });\n await animateTo(this.popup.popup, keyframes, options);\n this.panel.hidden = true;\n this.popup.active = false;\n\n this.emit('syn-after-hide');\n }\n }\n\n render() {\n return html`\n <syn-popup\n part=\"base\"\n id=\"dropdown\"\n placement=${this.placement}\n distance=${this.distance}\n skidding=${this.skidding}\n strategy=${this.hoist ? 'fixed' : 'absolute'}\n flip\n shift\n auto-size=\"vertical\"\n auto-size-padding=\"10\"\n class=${classMap({\n dropdown: true,\n 'dropdown--open': this.open\n })}\n >\n <slot\n name=\"trigger\"\n slot=\"anchor\"\n part=\"trigger\"\n class=\"dropdown__trigger\"\n @click=${this.handleTriggerClick}\n @keydown=${this.handleTriggerKeyDown}\n @keyup=${this.handleTriggerKeyUp}\n @slotchange=${this.handleTriggerSlotChange}\n ></slot>\n\n <div aria-hidden=${this.open ? 'false' : 'true'} aria-labelledby=\"dropdown\">\n <slot part=\"panel\" class=\"dropdown__panel\"></slot>\n </div>\n </syn-popup>\n `;\n }\n}\n\nsetDefaultAnimation('dropdown.show', {\n keyframes: [\n { opacity: 0, scale: 0.9 },\n { opacity: 1, scale: 1 }\n ],\n options: { duration: 100, easing: 'ease' }\n});\n\nsetDefaultAnimation('dropdown.hide', {\n keyframes: [\n { opacity: 1, scale: 1 },\n { opacity: 0, scale: 0.9 }\n ],\n options: { duration: 100, easing: 'ease' }\n});\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,SAAS,gBAAgB;AAGzB,SAAS,YAAY;AAErB,SAAS,UAAU,aAAa;AAqChC,IAAqB,cAArB,cAAyC,eAAe;AAAA,EAAxD;AAAA;AAQE,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAOX,gBAAO;AAMtB,qBAYZ;AAG2B,oBAAW;AAMuB,4BAAmB;AASrE,oBAAW;AAGX,oBAAW;AAMV,iBAAQ;AAuCrC,SAAQ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,YAqBU;AAee;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GApCvB,YAoCyB;AAMkC;AAAA,EAA7E,SAAS,EAAE,WAAW,uBAAuB,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GA1CzD,YA0C2D;AAM9C;AAAA,EAA/B,SAAS,EAAE,WAAW,MAAM,CAAC;AAAA,GAhDX,YAgDa;AAGJ;AAAA,EAA3B,SAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GAnDP,YAmDS;AAGA;AAAA,EAA3B,SAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GAtDP,YAsDS;AAMC;AAAA,EAA5B,SAAS,EAAE,MAAM,QAAQ,CAAC;AAAA,GA5DR,YA4DU;AAqQvB;AAAA,EADL,MAAM,QAAQ,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAhU1B,YAiUb;AAwER,oBAAoB,iBAAiB;AAAA,EACnC,WAAW;AAAA,IACT,EAAE,SAAS,GAAG,OAAO,IAAI;AAAA,IACzB,EAAE,SAAS,GAAG,OAAO,EAAE;AAAA,EACzB;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;AAED,oBAAoB,iBAAiB;AAAA,EACnC,WAAW;AAAA,IACT,EAAE,SAAS,GAAG,OAAO,EAAE;AAAA,IACvB,EAAE,SAAS,GAAG,OAAO,IAAI;AAAA,EAC3B;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;",
|
|
6
|
+
"names": ["_a"]
|
|
7
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynButton
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.3V2G5ZN5.js";
|
|
4
|
+
import "../../chunks/chunk.NOUFWET6.js";
|
|
5
5
|
import "../../chunks/chunk.OSBC36KQ.js";
|
|
6
6
|
import "../../chunks/chunk.LAB4YJYE.js";
|
|
7
7
|
import "../../chunks/chunk.A3SKDWCT.js";
|
|
8
8
|
import "../../chunks/chunk.SZCGMXW5.js";
|
|
9
|
-
import "../../chunks/chunk.
|
|
10
|
-
import "../../chunks/chunk.
|
|
11
|
-
import "../../chunks/chunk.PJO6TM3T.js";
|
|
12
|
-
import "../../chunks/chunk.2RF7KO5I.js";
|
|
9
|
+
import "../../chunks/chunk.66WXVGAW.js";
|
|
10
|
+
import "../../chunks/chunk.I2E3UJIK.js";
|
|
13
11
|
import "../../chunks/chunk.7UVCYUNR.js";
|
|
14
12
|
import "../../chunks/chunk.6C4JXZZN.js";
|
|
15
13
|
import "../../chunks/chunk.N4VSEIRQ.js";
|
|
14
|
+
import "../../chunks/chunk.PJO6TM3T.js";
|
|
15
|
+
import "../../chunks/chunk.2RF7KO5I.js";
|
|
16
16
|
import "../../chunks/chunk.AVTU2BGE.js";
|
|
17
17
|
import "../../chunks/chunk.C7624ITA.js";
|
|
18
|
-
import "../../chunks/chunk.WPY6PWSD.js";
|
|
19
18
|
import "../../chunks/chunk.K55MKNUR.js";
|
|
20
19
|
import "../../chunks/chunk.SJMMPKWP.js";
|
|
20
|
+
import "../../chunks/chunk.X3D3MBIH.js";
|
|
21
21
|
import "../../chunks/chunk.QNDC5KWA.js";
|
|
22
22
|
export {
|
|
23
23
|
SynButton as default
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
button_default
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
5
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.PLIQ6RPD.js";
|
|
4
|
+
import "../../chunks/chunk.3V2G5ZN5.js";
|
|
5
|
+
import "../../chunks/chunk.NOUFWET6.js";
|
|
6
6
|
import "../../chunks/chunk.OSBC36KQ.js";
|
|
7
7
|
import "../../chunks/chunk.LAB4YJYE.js";
|
|
8
8
|
import "../../chunks/chunk.A3SKDWCT.js";
|
|
9
9
|
import "../../chunks/chunk.SZCGMXW5.js";
|
|
10
|
-
import "../../chunks/chunk.
|
|
11
|
-
import "../../chunks/chunk.
|
|
12
|
-
import "../../chunks/chunk.PJO6TM3T.js";
|
|
13
|
-
import "../../chunks/chunk.2RF7KO5I.js";
|
|
10
|
+
import "../../chunks/chunk.66WXVGAW.js";
|
|
11
|
+
import "../../chunks/chunk.I2E3UJIK.js";
|
|
14
12
|
import "../../chunks/chunk.7UVCYUNR.js";
|
|
15
13
|
import "../../chunks/chunk.6C4JXZZN.js";
|
|
16
14
|
import "../../chunks/chunk.N4VSEIRQ.js";
|
|
15
|
+
import "../../chunks/chunk.PJO6TM3T.js";
|
|
16
|
+
import "../../chunks/chunk.2RF7KO5I.js";
|
|
17
17
|
import "../../chunks/chunk.AVTU2BGE.js";
|
|
18
18
|
import "../../chunks/chunk.C7624ITA.js";
|
|
19
|
-
import "../../chunks/chunk.WPY6PWSD.js";
|
|
20
19
|
import "../../chunks/chunk.K55MKNUR.js";
|
|
21
20
|
import "../../chunks/chunk.SJMMPKWP.js";
|
|
21
|
+
import "../../chunks/chunk.X3D3MBIH.js";
|
|
22
22
|
import "../../chunks/chunk.QNDC5KWA.js";
|
|
23
23
|
export {
|
|
24
24
|
button_default as default
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynButtonGroup
|
|
3
|
-
} from "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.QDYPBFX4.js";
|
|
4
|
+
import "../../chunks/chunk.X3D3MBIH.js";
|
|
4
5
|
import "../../chunks/chunk.A7IIJ2LL.js";
|
|
5
|
-
import "../../chunks/chunk.WPY6PWSD.js";
|
|
6
6
|
import "../../chunks/chunk.QNDC5KWA.js";
|
|
7
7
|
export {
|
|
8
8
|
SynButtonGroup as default
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
button_group_default
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.W2GO4M3V.js";
|
|
4
|
+
import "../../chunks/chunk.QDYPBFX4.js";
|
|
5
|
+
import "../../chunks/chunk.X3D3MBIH.js";
|
|
5
6
|
import "../../chunks/chunk.A7IIJ2LL.js";
|
|
6
|
-
import "../../chunks/chunk.WPY6PWSD.js";
|
|
7
7
|
import "../../chunks/chunk.QNDC5KWA.js";
|
|
8
8
|
export {
|
|
9
9
|
button_group_default as default
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynCheckbox
|
|
3
|
-
} from "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.WWMWREE4.js";
|
|
4
4
|
import "../../chunks/chunk.WFAJR3FN.js";
|
|
5
5
|
import "../../chunks/chunk.TTL762VF.js";
|
|
6
6
|
import "../../chunks/chunk.2XZKXVMR.js";
|
|
7
7
|
import "../../chunks/chunk.3STW62TA.js";
|
|
8
8
|
import "../../chunks/chunk.SZCGMXW5.js";
|
|
9
|
-
import "../../chunks/chunk.
|
|
10
|
-
import "../../chunks/chunk.
|
|
11
|
-
import "../../chunks/chunk.PJO6TM3T.js";
|
|
12
|
-
import "../../chunks/chunk.2RF7KO5I.js";
|
|
9
|
+
import "../../chunks/chunk.66WXVGAW.js";
|
|
10
|
+
import "../../chunks/chunk.I2E3UJIK.js";
|
|
13
11
|
import "../../chunks/chunk.7UVCYUNR.js";
|
|
14
12
|
import "../../chunks/chunk.6C4JXZZN.js";
|
|
15
13
|
import "../../chunks/chunk.N4VSEIRQ.js";
|
|
14
|
+
import "../../chunks/chunk.PJO6TM3T.js";
|
|
15
|
+
import "../../chunks/chunk.2RF7KO5I.js";
|
|
16
16
|
import "../../chunks/chunk.AVTU2BGE.js";
|
|
17
17
|
import "../../chunks/chunk.C7624ITA.js";
|
|
18
|
-
import "../../chunks/chunk.
|
|
18
|
+
import "../../chunks/chunk.X3D3MBIH.js";
|
|
19
19
|
import "../../chunks/chunk.QNDC5KWA.js";
|
|
20
20
|
export {
|
|
21
21
|
SynCheckbox as default
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
checkbox_default
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.62EBS3GI.js";
|
|
4
|
+
import "../../chunks/chunk.WWMWREE4.js";
|
|
5
5
|
import "../../chunks/chunk.WFAJR3FN.js";
|
|
6
6
|
import "../../chunks/chunk.TTL762VF.js";
|
|
7
7
|
import "../../chunks/chunk.2XZKXVMR.js";
|
|
8
8
|
import "../../chunks/chunk.3STW62TA.js";
|
|
9
9
|
import "../../chunks/chunk.SZCGMXW5.js";
|
|
10
|
-
import "../../chunks/chunk.
|
|
11
|
-
import "../../chunks/chunk.
|
|
12
|
-
import "../../chunks/chunk.PJO6TM3T.js";
|
|
13
|
-
import "../../chunks/chunk.2RF7KO5I.js";
|
|
10
|
+
import "../../chunks/chunk.66WXVGAW.js";
|
|
11
|
+
import "../../chunks/chunk.I2E3UJIK.js";
|
|
14
12
|
import "../../chunks/chunk.7UVCYUNR.js";
|
|
15
13
|
import "../../chunks/chunk.6C4JXZZN.js";
|
|
16
14
|
import "../../chunks/chunk.N4VSEIRQ.js";
|
|
15
|
+
import "../../chunks/chunk.PJO6TM3T.js";
|
|
16
|
+
import "../../chunks/chunk.2RF7KO5I.js";
|
|
17
17
|
import "../../chunks/chunk.AVTU2BGE.js";
|
|
18
18
|
import "../../chunks/chunk.C7624ITA.js";
|
|
19
|
-
import "../../chunks/chunk.
|
|
19
|
+
import "../../chunks/chunk.X3D3MBIH.js";
|
|
20
20
|
import "../../chunks/chunk.QNDC5KWA.js";
|
|
21
21
|
export {
|
|
22
22
|
checkbox_default as default
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynDivider
|
|
3
|
-
} from "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.PQKD6OYF.js";
|
|
4
4
|
import "../../chunks/chunk.FA6V2WD6.js";
|
|
5
5
|
import "../../chunks/chunk.ACTJFDNK.js";
|
|
6
6
|
import "../../chunks/chunk.AVTU2BGE.js";
|
|
7
|
-
import "../../chunks/chunk.
|
|
7
|
+
import "../../chunks/chunk.X3D3MBIH.js";
|
|
8
8
|
import "../../chunks/chunk.QNDC5KWA.js";
|
|
9
9
|
export {
|
|
10
10
|
SynDivider as default
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
divider_default
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.TYPMG2S4.js";
|
|
4
|
+
import "../../chunks/chunk.PQKD6OYF.js";
|
|
5
5
|
import "../../chunks/chunk.FA6V2WD6.js";
|
|
6
6
|
import "../../chunks/chunk.ACTJFDNK.js";
|
|
7
7
|
import "../../chunks/chunk.AVTU2BGE.js";
|
|
8
|
-
import "../../chunks/chunk.
|
|
8
|
+
import "../../chunks/chunk.X3D3MBIH.js";
|
|
9
9
|
import "../../chunks/chunk.QNDC5KWA.js";
|
|
10
10
|
export {
|
|
11
11
|
divider_default as default
|
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynDrawer
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
5
|
-
import "../../chunks/chunk.
|
|
6
|
-
import "../../chunks/chunk.XOIRFMBL.js";
|
|
3
|
+
} from "../../chunks/chunk.VKSYJXTN.js";
|
|
4
|
+
import "../../chunks/chunk.2QYALZBT.js";
|
|
5
|
+
import "../../chunks/chunk.KDY26CBL.js";
|
|
7
6
|
import "../../chunks/chunk.ZHH2AHOZ.js";
|
|
8
7
|
import "../../chunks/chunk.LJQ7LEPV.js";
|
|
9
8
|
import "../../chunks/chunk.UYD2OVFV.js";
|
|
10
9
|
import "../../chunks/chunk.PHSJD47V.js";
|
|
10
|
+
import "../../chunks/chunk.2QOQY4ZG.js";
|
|
11
|
+
import "../../chunks/chunk.7BEVGRQ2.js";
|
|
12
|
+
import "../../chunks/chunk.QAUTITK3.js";
|
|
11
13
|
import "../../chunks/chunk.LAB4YJYE.js";
|
|
12
14
|
import "../../chunks/chunk.A3SKDWCT.js";
|
|
13
|
-
import "../../chunks/chunk.
|
|
14
|
-
import "../../chunks/chunk.
|
|
15
|
-
import "../../chunks/chunk.PJO6TM3T.js";
|
|
16
|
-
import "../../chunks/chunk.2RF7KO5I.js";
|
|
15
|
+
import "../../chunks/chunk.66WXVGAW.js";
|
|
16
|
+
import "../../chunks/chunk.I2E3UJIK.js";
|
|
17
17
|
import "../../chunks/chunk.7UVCYUNR.js";
|
|
18
18
|
import "../../chunks/chunk.6C4JXZZN.js";
|
|
19
19
|
import "../../chunks/chunk.N4VSEIRQ.js";
|
|
20
|
+
import "../../chunks/chunk.PJO6TM3T.js";
|
|
21
|
+
import "../../chunks/chunk.2RF7KO5I.js";
|
|
20
22
|
import "../../chunks/chunk.AVTU2BGE.js";
|
|
21
23
|
import "../../chunks/chunk.C7624ITA.js";
|
|
22
|
-
import "../../chunks/chunk.
|
|
24
|
+
import "../../chunks/chunk.X3D3MBIH.js";
|
|
23
25
|
import "../../chunks/chunk.QNDC5KWA.js";
|
|
24
26
|
export {
|
|
25
27
|
SynDrawer as default
|