@synergy-design-system/components 1.21.0 → 1.23.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.7T5LRDJS.js → chunk.4IHZCJIO.js} +5 -5
- package/dist/chunks/{chunk.OSBC36KQ.js → chunk.66DXY7BX.js} +1 -20
- package/dist/chunks/chunk.66DXY7BX.js.map +7 -0
- package/dist/chunks/{chunk.VJCLMFVL.js → chunk.6C4OKY3S.js} +3 -3
- package/dist/chunks/{chunk.FMJJ6B2O.js → chunk.6QLGO6B7.js} +2 -2
- package/dist/chunks/{chunk.LSA32ONE.js → chunk.75HTBJG2.js} +9 -9
- package/dist/chunks/chunk.AWJ376R6.js +36 -0
- package/dist/chunks/chunk.AWJ376R6.js.map +7 -0
- package/dist/chunks/{chunk.VRYEBHPZ.js → chunk.BDH3MNEZ.js} +2 -2
- package/dist/chunks/{chunk.TGTOHT3M.js → chunk.BLANRU2O.js} +2 -2
- package/dist/chunks/chunk.C4ZZOCEG.js +288 -0
- package/dist/chunks/chunk.C4ZZOCEG.js.map +7 -0
- package/dist/chunks/{chunk.RUHBP5HS.js → chunk.C6ZQAYEH.js} +7 -7
- package/dist/chunks/{chunk.RXUSRMWB.js → chunk.CFFSAE7R.js} +2 -2
- package/dist/chunks/{chunk.HEWDHBWK.js → chunk.CJSER4UW.js} +2 -2
- package/dist/chunks/{chunk.SA7CRXUN.js → chunk.CWA6YXHF.js} +2 -2
- package/dist/chunks/{chunk.7JTCVU6P.js → chunk.DH7ZOX4L.js} +2 -2
- package/dist/chunks/{chunk.PBK6R2U7.js → chunk.ER5OH7PE.js} +2 -2
- package/dist/chunks/{chunk.MSX76EO6.js → chunk.EV3VRCZO.js} +2 -2
- package/dist/chunks/{chunk.VZP6ITZS.js → chunk.F4PCHWCA.js} +2 -2
- package/dist/chunks/{chunk.MRHJDAKR.js → chunk.FP5U5XKU.js} +3 -3
- package/dist/chunks/{chunk.LJRMT2PX.js → chunk.FQMRWJFJ.js} +5 -5
- package/dist/chunks/{chunk.KTCFTDRV.js → chunk.FQZVX543.js} +2 -2
- package/dist/chunks/{chunk.NZEUVKVW.js → chunk.G5IZQ6S2.js} +2 -2
- package/dist/chunks/{chunk.4UQWOVA3.js → chunk.GAOGMXIA.js} +2 -2
- package/dist/chunks/{chunk.PP52JMRC.js → chunk.HGPR3DSR.js} +6 -6
- package/dist/chunks/{chunk.DYKJ6SMQ.js → chunk.HJ2BLED6.js} +9 -9
- package/dist/chunks/{chunk.RSUUSMM3.js → chunk.HJS2XO3E.js} +6 -6
- package/dist/chunks/{chunk.3LOUHEEN.js → chunk.HVRGKMS2.js} +3 -3
- package/dist/chunks/{chunk.KZMWNTUS.js → chunk.I4FIU7FA.js} +6 -6
- package/dist/chunks/chunk.I4FIU7FA.js.map +7 -0
- package/dist/chunks/{chunk.OXIWVSZW.js → chunk.IGMLSPCX.js} +3 -3
- package/dist/chunks/{chunk.HD535D5A.js → chunk.IKY4SF3U.js} +2 -2
- package/dist/chunks/chunk.ITXLZUTJ.js +137 -0
- package/dist/chunks/chunk.ITXLZUTJ.js.map +7 -0
- package/dist/chunks/chunk.IU3SSJZE.js +59 -0
- package/dist/chunks/chunk.IU3SSJZE.js.map +7 -0
- package/dist/chunks/{chunk.C5G3ID4E.js → chunk.JURUVJDH.js} +2 -2
- package/dist/chunks/{chunk.YHJ4VRWW.js → chunk.JURXXFAS.js} +2 -2
- package/dist/chunks/{chunk.F542RYWK.js → chunk.KVDQTSR6.js} +2 -2
- package/dist/chunks/{chunk.CKQHBV4F.js → chunk.KXABXUHF.js} +2 -2
- package/dist/chunks/{chunk.54SVVWZI.js → chunk.LESYB3C2.js} +2 -2
- package/dist/chunks/{chunk.CFORFPFW.js → chunk.LF2WINIA.js} +2 -2
- package/dist/chunks/chunk.MDZPTRJA.js +12 -0
- package/dist/chunks/chunk.MDZPTRJA.js.map +7 -0
- package/dist/chunks/{chunk.TQPVSFZU.js → chunk.MHNU5B6B.js} +2 -2
- package/dist/chunks/{chunk.3FWONAOI.js → chunk.MLLOIKFT.js} +11 -11
- package/dist/chunks/{chunk.XJJM7VPC.js → chunk.MRDYD2EO.js} +2 -2
- package/dist/chunks/{chunk.E77KRA43.js → chunk.MWCHWWA6.js} +3 -3
- package/dist/chunks/{chunk.65TQU6BR.js → chunk.NRNCS4W7.js} +11 -138
- package/dist/chunks/{chunk.65TQU6BR.js.map → chunk.NRNCS4W7.js.map} +3 -3
- package/dist/chunks/{chunk.R3AOS6JZ.js → chunk.O5RLTXZV.js} +2 -2
- package/dist/chunks/{chunk.N4UX5TMO.js → chunk.ONP567RL.js} +2 -2
- package/dist/chunks/{chunk.X2NEIXXJ.js → chunk.OX77MJOD.js} +3 -3
- package/dist/chunks/{chunk.PAGHMRBR.js → chunk.P36SH35P.js} +3 -3
- package/dist/chunks/{chunk.43M7YAGR.js → chunk.P3JNSYA3.js} +6 -6
- package/dist/chunks/{chunk.Y32IWDVW.js → chunk.P7BWMA4R.js} +2 -2
- package/dist/chunks/{chunk.4PPPNVJW.js → chunk.PLU22FYW.js} +2 -2
- package/dist/chunks/{chunk.NZKEB4EM.js → chunk.POS3ORCG.js} +2 -2
- package/dist/chunks/{chunk.JSOLNW6W.js → chunk.PTRBWSST.js} +5 -5
- package/dist/chunks/{chunk.A3SLGHGN.js → chunk.Q4FDYSK4.js} +2 -2
- package/dist/chunks/{chunk.EP326OJQ.js → chunk.QEWKO72D.js} +2 -2
- package/dist/chunks/{chunk.FVVR4JCT.js → chunk.QLHK2UIO.js} +2 -2
- package/dist/chunks/{chunk.WJQCM3T3.js → chunk.QO424EZG.js} +2 -2
- package/dist/chunks/{chunk.P2DUZ56G.js → chunk.R47GARB7.js} +2 -2
- package/dist/chunks/{chunk.P2DUZ56G.js.map → chunk.R47GARB7.js.map} +1 -1
- package/dist/chunks/{chunk.AIQQEDZD.js → chunk.RE3DUPRU.js} +2 -2
- package/dist/chunks/{chunk.UBQWVB4F.js → chunk.S64FWPC4.js} +2 -2
- package/dist/chunks/{chunk.5UUVFVY7.js → chunk.SV7SO2W7.js} +2 -2
- package/dist/chunks/{chunk.YI7Z3FPD.js → chunk.TAQALRJR.js} +7 -4
- package/dist/chunks/chunk.TAQALRJR.js.map +7 -0
- package/dist/chunks/{chunk.ZGKK3SVV.js → chunk.TPGEIEV4.js} +2 -2
- package/dist/chunks/{chunk.MJ5Z7CGD.js → chunk.TU2TR3D6.js} +3 -3
- package/dist/chunks/{chunk.YN32K4SE.js → chunk.UFUG4PUS.js} +2 -2
- package/dist/chunks/{chunk.NL4KNMYG.js → chunk.VHPGEUHA.js} +7 -7
- package/dist/chunks/chunk.WB4KEXYB.js +12 -0
- package/dist/chunks/chunk.WB4KEXYB.js.map +7 -0
- package/dist/chunks/{chunk.XPDGTEZV.js → chunk.WXINI2LT.js} +2 -2
- package/dist/chunks/{chunk.E45JNDEP.js → chunk.XAC2JLED.js} +2 -2
- package/dist/chunks/chunk.YMICCSK6.js +126 -0
- package/dist/chunks/chunk.YMICCSK6.js.map +7 -0
- package/dist/chunks/{chunk.2SDD52LO.js → chunk.YN5JT7NN.js} +2 -2
- package/dist/chunks/{chunk.NPABQXMU.js → chunk.ZCKMBPFC.js} +5 -5
- package/dist/chunks/{chunk.QU4LUX7R.js → chunk.ZFFSP55G.js} +6 -6
- package/dist/chunks/{chunk.EEXLRM2A.js → chunk.ZTCTJE62.js} +2 -2
- package/dist/components/alert/alert.component.js +9 -9
- package/dist/components/alert/alert.js +10 -10
- package/dist/components/badge/badge.component.js +3 -3
- package/dist/components/badge/badge.js +4 -4
- package/dist/components/button/button.component.js +10 -9
- package/dist/components/button/button.js +11 -10
- 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 +5 -5
- package/dist/components/checkbox/checkbox.js +6 -6
- package/dist/components/dialog/dialog.component.d.ts +95 -0
- package/dist/components/dialog/dialog.component.js +30 -0
- package/dist/components/dialog/dialog.component.js.map +7 -0
- package/dist/components/dialog/dialog.custom.styles.d.ts +2 -0
- package/dist/components/dialog/dialog.custom.styles.js +8 -0
- package/dist/components/dialog/dialog.custom.styles.js.map +7 -0
- package/dist/components/dialog/dialog.d.ts +8 -0
- package/dist/components/dialog/dialog.js +31 -0
- package/dist/components/dialog/dialog.js.map +7 -0
- package/dist/components/dialog/dialog.styles.d.ts +2 -0
- package/dist/components/dialog/dialog.styles.js +8 -0
- package/dist/components/dialog/dialog.styles.js.map +7 -0
- package/dist/components/divider/divider.component.js +2 -2
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/drawer/drawer.component.js +10 -9
- package/dist/components/drawer/drawer.custom.styles.js +1 -1
- package/dist/components/drawer/drawer.js +11 -10
- package/dist/components/dropdown/dropdown.component.js +4 -4
- package/dist/components/dropdown/dropdown.js +5 -5
- 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 +9 -9
- package/dist/components/input/input.js +10 -10
- package/dist/components/menu/menu.component.js +2 -2
- package/dist/components/menu/menu.js +3 -3
- package/dist/components/menu-item/menu-item.component.js +10 -9
- package/dist/components/menu-item/menu-item.js +11 -10
- package/dist/components/menu-label/menu-label.component.js +3 -3
- package/dist/components/menu-label/menu-label.js +4 -4
- package/dist/components/nav-item/nav-item.component.js +3 -3
- package/dist/components/nav-item/nav-item.js +4 -4
- package/dist/components/optgroup/optgroup.component.js +3 -3
- package/dist/components/optgroup/optgroup.js +4 -4
- package/dist/components/option/option.component.js +7 -7
- package/dist/components/option/option.js +8 -8
- package/dist/components/popup/popup.component.js +2 -2
- package/dist/components/popup/popup.js +3 -3
- package/dist/components/prio-nav/prio-nav.component.js +13 -13
- package/dist/components/prio-nav/prio-nav.js +14 -14
- package/dist/components/progress-bar/progress-bar.component.js +2 -2
- package/dist/components/progress-bar/progress-bar.js +3 -3
- package/dist/components/progress-ring/progress-ring.component.js +2 -2
- package/dist/components/progress-ring/progress-ring.js +3 -3
- 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 +2 -2
- package/dist/components/radio-button/radio-button.js +3 -3
- package/dist/components/radio-group/radio-group.component.js +4 -4
- package/dist/components/radio-group/radio-group.js +5 -5
- package/dist/components/select/select.component.js +11 -11
- package/dist/components/select/select.js +12 -12
- package/dist/components/side-nav/side-nav.component.js +14 -13
- package/dist/components/side-nav/side-nav.js +15 -14
- package/dist/components/spinner/spinner.component.d.ts +0 -1
- package/dist/components/spinner/spinner.component.js +4 -3
- package/dist/components/spinner/spinner.custom.styles.d.ts +2 -0
- package/dist/components/spinner/spinner.custom.styles.js +8 -0
- package/dist/components/spinner/spinner.custom.styles.js.map +7 -0
- package/dist/components/spinner/spinner.d.ts +8 -0
- package/dist/components/spinner/spinner.js +14 -0
- package/dist/components/spinner/spinner.js.map +7 -0
- package/dist/components/spinner/spinner.styles.js +1 -1
- package/dist/components/switch/switch.component.js +2 -2
- package/dist/components/switch/switch.js +3 -3
- package/dist/components/tag/tag.component.js +7 -7
- package/dist/components/tag/tag.js +8 -8
- package/dist/components/textarea/textarea.component.js +2 -2
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/components/tooltip/tooltip.component.js +3 -3
- package/dist/components/tooltip/tooltip.js +4 -4
- package/dist/custom-elements.json +352 -6
- package/dist/synergy.d.ts +2 -0
- package/dist/synergy.js +134 -121
- package/dist/vscode.html-custom-data.json +28 -1
- package/package.json +2 -2
- package/dist/chunks/chunk.KZMWNTUS.js.map +0 -7
- package/dist/chunks/chunk.OSBC36KQ.js.map +0 -7
- package/dist/chunks/chunk.YI7Z3FPD.js.map +0 -7
- /package/dist/chunks/{chunk.7T5LRDJS.js.map → chunk.4IHZCJIO.js.map} +0 -0
- /package/dist/chunks/{chunk.VJCLMFVL.js.map → chunk.6C4OKY3S.js.map} +0 -0
- /package/dist/chunks/{chunk.FMJJ6B2O.js.map → chunk.6QLGO6B7.js.map} +0 -0
- /package/dist/chunks/{chunk.LSA32ONE.js.map → chunk.75HTBJG2.js.map} +0 -0
- /package/dist/chunks/{chunk.VRYEBHPZ.js.map → chunk.BDH3MNEZ.js.map} +0 -0
- /package/dist/chunks/{chunk.TGTOHT3M.js.map → chunk.BLANRU2O.js.map} +0 -0
- /package/dist/chunks/{chunk.RUHBP5HS.js.map → chunk.C6ZQAYEH.js.map} +0 -0
- /package/dist/chunks/{chunk.RXUSRMWB.js.map → chunk.CFFSAE7R.js.map} +0 -0
- /package/dist/chunks/{chunk.HEWDHBWK.js.map → chunk.CJSER4UW.js.map} +0 -0
- /package/dist/chunks/{chunk.SA7CRXUN.js.map → chunk.CWA6YXHF.js.map} +0 -0
- /package/dist/chunks/{chunk.7JTCVU6P.js.map → chunk.DH7ZOX4L.js.map} +0 -0
- /package/dist/chunks/{chunk.PBK6R2U7.js.map → chunk.ER5OH7PE.js.map} +0 -0
- /package/dist/chunks/{chunk.MSX76EO6.js.map → chunk.EV3VRCZO.js.map} +0 -0
- /package/dist/chunks/{chunk.VZP6ITZS.js.map → chunk.F4PCHWCA.js.map} +0 -0
- /package/dist/chunks/{chunk.MRHJDAKR.js.map → chunk.FP5U5XKU.js.map} +0 -0
- /package/dist/chunks/{chunk.LJRMT2PX.js.map → chunk.FQMRWJFJ.js.map} +0 -0
- /package/dist/chunks/{chunk.KTCFTDRV.js.map → chunk.FQZVX543.js.map} +0 -0
- /package/dist/chunks/{chunk.NZEUVKVW.js.map → chunk.G5IZQ6S2.js.map} +0 -0
- /package/dist/chunks/{chunk.4UQWOVA3.js.map → chunk.GAOGMXIA.js.map} +0 -0
- /package/dist/chunks/{chunk.PP52JMRC.js.map → chunk.HGPR3DSR.js.map} +0 -0
- /package/dist/chunks/{chunk.DYKJ6SMQ.js.map → chunk.HJ2BLED6.js.map} +0 -0
- /package/dist/chunks/{chunk.RSUUSMM3.js.map → chunk.HJS2XO3E.js.map} +0 -0
- /package/dist/chunks/{chunk.3LOUHEEN.js.map → chunk.HVRGKMS2.js.map} +0 -0
- /package/dist/chunks/{chunk.OXIWVSZW.js.map → chunk.IGMLSPCX.js.map} +0 -0
- /package/dist/chunks/{chunk.HD535D5A.js.map → chunk.IKY4SF3U.js.map} +0 -0
- /package/dist/chunks/{chunk.C5G3ID4E.js.map → chunk.JURUVJDH.js.map} +0 -0
- /package/dist/chunks/{chunk.YHJ4VRWW.js.map → chunk.JURXXFAS.js.map} +0 -0
- /package/dist/chunks/{chunk.F542RYWK.js.map → chunk.KVDQTSR6.js.map} +0 -0
- /package/dist/chunks/{chunk.CKQHBV4F.js.map → chunk.KXABXUHF.js.map} +0 -0
- /package/dist/chunks/{chunk.54SVVWZI.js.map → chunk.LESYB3C2.js.map} +0 -0
- /package/dist/chunks/{chunk.CFORFPFW.js.map → chunk.LF2WINIA.js.map} +0 -0
- /package/dist/chunks/{chunk.TQPVSFZU.js.map → chunk.MHNU5B6B.js.map} +0 -0
- /package/dist/chunks/{chunk.3FWONAOI.js.map → chunk.MLLOIKFT.js.map} +0 -0
- /package/dist/chunks/{chunk.XJJM7VPC.js.map → chunk.MRDYD2EO.js.map} +0 -0
- /package/dist/chunks/{chunk.E77KRA43.js.map → chunk.MWCHWWA6.js.map} +0 -0
- /package/dist/chunks/{chunk.R3AOS6JZ.js.map → chunk.O5RLTXZV.js.map} +0 -0
- /package/dist/chunks/{chunk.N4UX5TMO.js.map → chunk.ONP567RL.js.map} +0 -0
- /package/dist/chunks/{chunk.X2NEIXXJ.js.map → chunk.OX77MJOD.js.map} +0 -0
- /package/dist/chunks/{chunk.PAGHMRBR.js.map → chunk.P36SH35P.js.map} +0 -0
- /package/dist/chunks/{chunk.43M7YAGR.js.map → chunk.P3JNSYA3.js.map} +0 -0
- /package/dist/chunks/{chunk.Y32IWDVW.js.map → chunk.P7BWMA4R.js.map} +0 -0
- /package/dist/chunks/{chunk.4PPPNVJW.js.map → chunk.PLU22FYW.js.map} +0 -0
- /package/dist/chunks/{chunk.NZKEB4EM.js.map → chunk.POS3ORCG.js.map} +0 -0
- /package/dist/chunks/{chunk.JSOLNW6W.js.map → chunk.PTRBWSST.js.map} +0 -0
- /package/dist/chunks/{chunk.A3SLGHGN.js.map → chunk.Q4FDYSK4.js.map} +0 -0
- /package/dist/chunks/{chunk.EP326OJQ.js.map → chunk.QEWKO72D.js.map} +0 -0
- /package/dist/chunks/{chunk.FVVR4JCT.js.map → chunk.QLHK2UIO.js.map} +0 -0
- /package/dist/chunks/{chunk.WJQCM3T3.js.map → chunk.QO424EZG.js.map} +0 -0
- /package/dist/chunks/{chunk.AIQQEDZD.js.map → chunk.RE3DUPRU.js.map} +0 -0
- /package/dist/chunks/{chunk.UBQWVB4F.js.map → chunk.S64FWPC4.js.map} +0 -0
- /package/dist/chunks/{chunk.5UUVFVY7.js.map → chunk.SV7SO2W7.js.map} +0 -0
- /package/dist/chunks/{chunk.ZGKK3SVV.js.map → chunk.TPGEIEV4.js.map} +0 -0
- /package/dist/chunks/{chunk.MJ5Z7CGD.js.map → chunk.TU2TR3D6.js.map} +0 -0
- /package/dist/chunks/{chunk.YN32K4SE.js.map → chunk.UFUG4PUS.js.map} +0 -0
- /package/dist/chunks/{chunk.NL4KNMYG.js.map → chunk.VHPGEUHA.js.map} +0 -0
- /package/dist/chunks/{chunk.XPDGTEZV.js.map → chunk.WXINI2LT.js.map} +0 -0
- /package/dist/chunks/{chunk.E45JNDEP.js.map → chunk.XAC2JLED.js.map} +0 -0
- /package/dist/chunks/{chunk.2SDD52LO.js.map → chunk.YN5JT7NN.js.map} +0 -0
- /package/dist/chunks/{chunk.NPABQXMU.js.map → chunk.ZCKMBPFC.js.map} +0 -0
- /package/dist/chunks/{chunk.QU4LUX7R.js.map → chunk.ZFFSP55G.js.map} +0 -0
- /package/dist/chunks/{chunk.EEXLRM2A.js.map → chunk.ZTCTJE62.js.map} +0 -0
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
import {
|
|
24
24
|
SynergyElement,
|
|
25
25
|
component_styles_default
|
|
26
|
-
} from "./chunk.
|
|
26
|
+
} from "./chunk.R47GARB7.js";
|
|
27
27
|
import {
|
|
28
28
|
__decorateClass
|
|
29
29
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -247,4 +247,4 @@ __decorateClass([
|
|
|
247
247
|
export {
|
|
248
248
|
SynSwitch
|
|
249
249
|
};
|
|
250
|
-
//# sourceMappingURL=chunk.
|
|
250
|
+
//# sourceMappingURL=chunk.ER5OH7PE.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynProgressRing
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.WXINI2LT.js";
|
|
4
4
|
|
|
5
5
|
// src/components/progress-ring/progress-ring.ts
|
|
6
6
|
var progress_ring_default = SynProgressRing;
|
|
@@ -9,4 +9,4 @@ SynProgressRing.define("syn-progress-ring");
|
|
|
9
9
|
export {
|
|
10
10
|
progress_ring_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.EV3VRCZO.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynDropdown
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.P3JNSYA3.js";
|
|
4
4
|
|
|
5
5
|
// src/components/dropdown/dropdown.ts
|
|
6
6
|
var dropdown_default = SynDropdown;
|
|
@@ -9,4 +9,4 @@ SynDropdown.define("syn-dropdown");
|
|
|
9
9
|
export {
|
|
10
10
|
dropdown_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.F4PCHWCA.js.map
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
} from "./chunk.PKO6FEOM.js";
|
|
7
7
|
import {
|
|
8
8
|
SynIcon
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.VHPGEUHA.js";
|
|
10
10
|
import {
|
|
11
11
|
watch
|
|
12
12
|
} from "./chunk.AVTU2BGE.js";
|
|
13
13
|
import {
|
|
14
14
|
SynergyElement,
|
|
15
15
|
component_styles_default
|
|
16
|
-
} from "./chunk.
|
|
16
|
+
} from "./chunk.R47GARB7.js";
|
|
17
17
|
import {
|
|
18
18
|
__decorateClass
|
|
19
19
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -112,4 +112,4 @@ __decorateClass([
|
|
|
112
112
|
export {
|
|
113
113
|
SynRadio
|
|
114
114
|
};
|
|
115
|
-
//# sourceMappingURL=chunk.
|
|
115
|
+
//# sourceMappingURL=chunk.FP5U5XKU.js.map
|
|
@@ -9,17 +9,17 @@ import {
|
|
|
9
9
|
} from "./chunk.JDBDBGQP.js";
|
|
10
10
|
import {
|
|
11
11
|
SynPopup
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.QEWKO72D.js";
|
|
13
13
|
import {
|
|
14
14
|
SynSpinner
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.TAQALRJR.js";
|
|
16
16
|
import {
|
|
17
17
|
HasSlotController,
|
|
18
18
|
getTextContent
|
|
19
19
|
} from "./chunk.66WXVGAW.js";
|
|
20
20
|
import {
|
|
21
21
|
SynIcon
|
|
22
|
-
} from "./chunk.
|
|
22
|
+
} from "./chunk.VHPGEUHA.js";
|
|
23
23
|
import {
|
|
24
24
|
watch
|
|
25
25
|
} from "./chunk.AVTU2BGE.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
import {
|
|
30
30
|
SynergyElement,
|
|
31
31
|
component_styles_default
|
|
32
|
-
} from "./chunk.
|
|
32
|
+
} from "./chunk.R47GARB7.js";
|
|
33
33
|
import {
|
|
34
34
|
__decorateClass
|
|
35
35
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -191,4 +191,4 @@ __decorateClass([
|
|
|
191
191
|
export {
|
|
192
192
|
SynMenuItem
|
|
193
193
|
};
|
|
194
|
-
//# sourceMappingURL=chunk.
|
|
194
|
+
//# sourceMappingURL=chunk.FQMRWJFJ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynDrawer
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.NRNCS4W7.js";
|
|
4
4
|
|
|
5
5
|
// src/components/drawer/drawer.ts
|
|
6
6
|
var drawer_default = SynDrawer;
|
|
@@ -9,4 +9,4 @@ SynDrawer.define("syn-drawer");
|
|
|
9
9
|
export {
|
|
10
10
|
drawer_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.FQZVX543.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynRadioButton
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.ZTCTJE62.js";
|
|
4
4
|
|
|
5
5
|
// src/components/radio-button/radio-button.ts
|
|
6
6
|
var radio_button_default = SynRadioButton;
|
|
@@ -9,4 +9,4 @@ SynRadioButton.define("syn-radio-button");
|
|
|
9
9
|
export {
|
|
10
10
|
radio_button_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.G5IZQ6S2.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynTag
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.TU2TR3D6.js";
|
|
4
4
|
|
|
5
5
|
// src/components/tag/tag.ts
|
|
6
6
|
var tag_default = SynTag;
|
|
@@ -9,4 +9,4 @@ SynTag.define("syn-tag");
|
|
|
9
9
|
export {
|
|
10
10
|
tag_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.GAOGMXIA.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
side_nav_styles_default
|
|
3
3
|
} from "./chunk.GO3CCKC3.js";
|
|
4
|
+
import {
|
|
5
|
+
SynDivider
|
|
6
|
+
} from "./chunk.P7BWMA4R.js";
|
|
4
7
|
import {
|
|
5
8
|
SynDrawer
|
|
6
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.NRNCS4W7.js";
|
|
7
10
|
import {
|
|
8
11
|
unlockBodyScrolling
|
|
9
12
|
} from "./chunk.RIJKFEYZ.js";
|
|
10
|
-
import {
|
|
11
|
-
SynDivider
|
|
12
|
-
} from "./chunk.Y32IWDVW.js";
|
|
13
13
|
import {
|
|
14
14
|
waitForEvent
|
|
15
15
|
} from "./chunk.UMKKOHXB.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
import {
|
|
31
31
|
SynergyElement,
|
|
32
32
|
component_styles_default
|
|
33
|
-
} from "./chunk.
|
|
33
|
+
} from "./chunk.R47GARB7.js";
|
|
34
34
|
import {
|
|
35
35
|
__decorateClass
|
|
36
36
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -283,4 +283,4 @@ setDefaultAnimation("sideNav.overlay.hide", {
|
|
|
283
283
|
export {
|
|
284
284
|
SynSideNav
|
|
285
285
|
};
|
|
286
|
-
//# sourceMappingURL=chunk.
|
|
286
|
+
//# sourceMappingURL=chunk.HGPR3DSR.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynIconButton
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.6C4OKY3S.js";
|
|
4
4
|
import {
|
|
5
5
|
animateTo,
|
|
6
6
|
stopAnimations,
|
|
@@ -10,25 +10,25 @@ import {
|
|
|
10
10
|
getAnimation,
|
|
11
11
|
setDefaultAnimation
|
|
12
12
|
} from "./chunk.QAUTITK3.js";
|
|
13
|
-
import {
|
|
14
|
-
alert_custom_styles_default
|
|
15
|
-
} from "./chunk.JRYXECAY.js";
|
|
16
|
-
import {
|
|
17
|
-
alert_styles_default
|
|
18
|
-
} from "./chunk.PS4UJFYT.js";
|
|
19
13
|
import {
|
|
20
14
|
HasSlotController
|
|
21
15
|
} from "./chunk.66WXVGAW.js";
|
|
22
16
|
import {
|
|
23
17
|
watch
|
|
24
18
|
} from "./chunk.AVTU2BGE.js";
|
|
19
|
+
import {
|
|
20
|
+
alert_custom_styles_default
|
|
21
|
+
} from "./chunk.JRYXECAY.js";
|
|
22
|
+
import {
|
|
23
|
+
alert_styles_default
|
|
24
|
+
} from "./chunk.PS4UJFYT.js";
|
|
25
25
|
import {
|
|
26
26
|
LocalizeController
|
|
27
27
|
} from "./chunk.GEHO4WRP.js";
|
|
28
28
|
import {
|
|
29
29
|
SynergyElement,
|
|
30
30
|
component_styles_default
|
|
31
|
-
} from "./chunk.
|
|
31
|
+
} from "./chunk.R47GARB7.js";
|
|
32
32
|
import {
|
|
33
33
|
__decorateClass
|
|
34
34
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -214,4 +214,4 @@ setDefaultAnimation("alert.hide", {
|
|
|
214
214
|
export {
|
|
215
215
|
SynAlert
|
|
216
216
|
};
|
|
217
|
-
//# sourceMappingURL=chunk.
|
|
217
|
+
//# sourceMappingURL=chunk.HJ2BLED6.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
option_styles_default
|
|
3
|
-
} from "./chunk.CFIQXXMW.js";
|
|
4
1
|
import {
|
|
5
2
|
option_custom_styles_default
|
|
6
3
|
} from "./chunk.3B24TYVN.js";
|
|
4
|
+
import {
|
|
5
|
+
option_styles_default
|
|
6
|
+
} from "./chunk.CFIQXXMW.js";
|
|
7
7
|
import {
|
|
8
8
|
SynIcon
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.VHPGEUHA.js";
|
|
10
10
|
import {
|
|
11
11
|
watch
|
|
12
12
|
} from "./chunk.AVTU2BGE.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
SynergyElement,
|
|
18
18
|
component_styles_default
|
|
19
|
-
} from "./chunk.
|
|
19
|
+
} from "./chunk.R47GARB7.js";
|
|
20
20
|
import {
|
|
21
21
|
__decorateClass
|
|
22
22
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -144,4 +144,4 @@ __decorateClass([
|
|
|
144
144
|
export {
|
|
145
145
|
SynOption
|
|
146
146
|
};
|
|
147
|
-
//# sourceMappingURL=chunk.
|
|
147
|
+
//# sourceMappingURL=chunk.HJS2XO3E.js.map
|
|
@@ -19,14 +19,14 @@ import {
|
|
|
19
19
|
} from "./chunk.66WXVGAW.js";
|
|
20
20
|
import {
|
|
21
21
|
SynIcon
|
|
22
|
-
} from "./chunk.
|
|
22
|
+
} from "./chunk.VHPGEUHA.js";
|
|
23
23
|
import {
|
|
24
24
|
watch
|
|
25
25
|
} from "./chunk.AVTU2BGE.js";
|
|
26
26
|
import {
|
|
27
27
|
SynergyElement,
|
|
28
28
|
component_styles_default
|
|
29
|
-
} from "./chunk.
|
|
29
|
+
} from "./chunk.R47GARB7.js";
|
|
30
30
|
import {
|
|
31
31
|
__decorateClass
|
|
32
32
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -259,4 +259,4 @@ __decorateClass([
|
|
|
259
259
|
export {
|
|
260
260
|
SynCheckbox
|
|
261
261
|
};
|
|
262
|
-
//# sourceMappingURL=chunk.
|
|
262
|
+
//# sourceMappingURL=chunk.HVRGKMS2.js.map
|
|
@@ -5,7 +5,7 @@ var drawer_custom_styles_default = css`
|
|
|
5
5
|
/**
|
|
6
6
|
* Used as the default padding for the drawer title
|
|
7
7
|
*/
|
|
8
|
-
--header-spacing: var(--syn-spacing-large) var(--syn-spacing-x-small)
|
|
8
|
+
--header-spacing: var(--syn-spacing-large) var(--syn-spacing-x-small) var(--syn-spacing-large) var(--syn-spacing-large);
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Defines the default body spacing
|
|
@@ -15,7 +15,7 @@ var drawer_custom_styles_default = css`
|
|
|
15
15
|
/**
|
|
16
16
|
* Defines the default footer spacing
|
|
17
17
|
*/
|
|
18
|
-
--footer-spacing: var(--syn-spacing-medium) var(--syn-spacing-large) var(--syn-spacing-large);
|
|
18
|
+
--footer-spacing: var(--syn-spacing-medium) var(--syn-spacing-large) var(--syn-spacing-large) var(--syn-spacing-medium);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
/**
|
|
@@ -51,7 +51,7 @@ var drawer_custom_styles_default = css`
|
|
|
51
51
|
.drawer__header-actions {
|
|
52
52
|
align-items: flex-start;
|
|
53
53
|
gap: var(--syn-spacing-x-small);
|
|
54
|
-
padding: var(--syn-spacing-large) var(--syn-spacing-
|
|
54
|
+
padding: var(--syn-spacing-large) var(--syn-spacing-small) var(--syn-spacing-large) 0;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
.drawer__title {
|
|
@@ -66,8 +66,8 @@ var drawer_custom_styles_default = css`
|
|
|
66
66
|
* When omitting this statement, we will get rounding problems via line-height
|
|
67
67
|
*/
|
|
68
68
|
.drawer__title,
|
|
69
|
-
.
|
|
70
|
-
min-height:
|
|
69
|
+
.drawer__header-actions {
|
|
70
|
+
min-height: 88px;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
.drawer__header-actions syn-icon-button,
|
|
@@ -80,4 +80,4 @@ var drawer_custom_styles_default = css`
|
|
|
80
80
|
export {
|
|
81
81
|
drawer_custom_styles_default
|
|
82
82
|
};
|
|
83
|
-
//# sourceMappingURL=chunk.
|
|
83
|
+
//# sourceMappingURL=chunk.I4FIU7FA.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/drawer/drawer.custom.styles.ts"],
|
|
4
|
+
"sourcesContent": ["import { css } from 'lit';\n\nexport default css`\n :host {\n /**\n * Used as the default padding for the drawer title\n */\n --header-spacing: var(--syn-spacing-large) var(--syn-spacing-x-small) var(--syn-spacing-large) var(--syn-spacing-large);\n\n /**\n * Defines the default body spacing\n */\n --body-spacing: var(--syn-spacing-medium) var(--syn-spacing-large);\n\n /**\n * Defines the default footer spacing\n */\n --footer-spacing: var(--syn-spacing-medium) var(--syn-spacing-large) var(--syn-spacing-large) var(--syn-spacing-medium);\n }\n\n /**\n * Synergy uses a border to distinguish the drawer from its background and\n * removes the default shoelace shadow completely\n */\n .drawer__panel {\n border: 0 solid var(--syn-panel-border-color);\n box-shadow: none;\n color: var(--syn-color-neutral-950);\n }\n\n /*\n * The border of the panel is always placed in direction to the content,\n * depending on the position of the drawer itself\n */\n .drawer--end .drawer__panel {\n border-left-width: var(--syn-border-width-small);\n }\n\n .drawer--start .drawer__panel {\n border-right-width: var(--syn-border-width-small);\n }\n\n .drawer--top .drawer__panel {\n border-bottom-width: var(--syn-border-width-small);\n }\n\n .drawer--bottom .drawer__panel {\n border-top-width: var(--syn-border-width-small);\n }\n\n .drawer__header-actions {\n align-items: flex-start;\n gap: var(--syn-spacing-x-small);\n padding: var(--syn-spacing-large) var(--syn-spacing-small) var(--syn-spacing-large) 0;\n }\n\n .drawer__title {\n font-family: var(--syn-font-sans);\n font-size: var(--syn-font-size-x-large);\n font-weight: var(--syn-font-weight-bold);\n line-height: var(--syn-line-height-normal);\n }\n\n /**\n * We need this to make sure we are big enough as defined in the layout\n * When omitting this statement, we will get rounding problems via line-height\n */\n .drawer__title,\n .drawer__header-actions {\n min-height: 88px;\n }\n\n .drawer__header-actions syn-icon-button,\n .drawer__header-actions ::slotted(syn-icon-button) {\n color: var(--syn-color-neutral-950);\n font-size: var(--syn-font-size-x-large);\n }\n`;\n"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,WAAW;AAEpB,IAAO,+BAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
} from "./chunk.3FOVDOJX.js";
|
|
7
7
|
import {
|
|
8
8
|
SynDivider
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.P7BWMA4R.js";
|
|
10
10
|
import {
|
|
11
11
|
SynergyElement,
|
|
12
12
|
component_styles_default
|
|
13
|
-
} from "./chunk.
|
|
13
|
+
} from "./chunk.R47GARB7.js";
|
|
14
14
|
|
|
15
15
|
// src/components/menu-label/menu-label.component.ts
|
|
16
16
|
import { html } from "lit";
|
|
@@ -32,4 +32,4 @@ SynMenuLabel.dependencies = {
|
|
|
32
32
|
export {
|
|
33
33
|
SynMenuLabel
|
|
34
34
|
};
|
|
35
|
-
//# sourceMappingURL=chunk.
|
|
35
|
+
//# sourceMappingURL=chunk.IGMLSPCX.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynIcon
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.VHPGEUHA.js";
|
|
4
4
|
|
|
5
5
|
// src/components/icon/icon.ts
|
|
6
6
|
var icon_default = SynIcon;
|
|
@@ -9,4 +9,4 @@ SynIcon.define("syn-icon");
|
|
|
9
9
|
export {
|
|
10
10
|
icon_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.IKY4SF3U.js.map
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getTabbableElements
|
|
3
|
+
} from "./chunk.2QOQY4ZG.js";
|
|
4
|
+
import {
|
|
5
|
+
__yieldStar
|
|
6
|
+
} from "./chunk.QNDC5KWA.js";
|
|
7
|
+
|
|
8
|
+
// src/internal/active-elements.ts
|
|
9
|
+
function* activeElements(activeElement = document.activeElement) {
|
|
10
|
+
if (activeElement === null || activeElement === void 0)
|
|
11
|
+
return;
|
|
12
|
+
yield activeElement;
|
|
13
|
+
if ("shadowRoot" in activeElement && activeElement.shadowRoot && activeElement.shadowRoot.mode !== "closed") {
|
|
14
|
+
yield* __yieldStar(activeElements(activeElement.shadowRoot.activeElement));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function getDeepestActiveElement() {
|
|
18
|
+
return [...activeElements()].pop();
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// src/internal/modal.ts
|
|
22
|
+
var activeModals = [];
|
|
23
|
+
var Modal = class {
|
|
24
|
+
constructor(element) {
|
|
25
|
+
this.tabDirection = "forward";
|
|
26
|
+
this.handleFocusIn = () => {
|
|
27
|
+
if (!this.isActive())
|
|
28
|
+
return;
|
|
29
|
+
this.checkFocus();
|
|
30
|
+
};
|
|
31
|
+
this.handleKeyDown = (event) => {
|
|
32
|
+
var _a;
|
|
33
|
+
if (event.key !== "Tab" || this.isExternalActivated)
|
|
34
|
+
return;
|
|
35
|
+
if (!this.isActive())
|
|
36
|
+
return;
|
|
37
|
+
const currentActiveElement = getDeepestActiveElement();
|
|
38
|
+
this.previousFocus = currentActiveElement;
|
|
39
|
+
if (this.previousFocus && this.possiblyHasTabbableChildren(this.previousFocus)) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
if (event.shiftKey) {
|
|
43
|
+
this.tabDirection = "backward";
|
|
44
|
+
} else {
|
|
45
|
+
this.tabDirection = "forward";
|
|
46
|
+
}
|
|
47
|
+
const tabbableElements = getTabbableElements(this.element);
|
|
48
|
+
let currentFocusIndex = tabbableElements.findIndex((el) => el === currentActiveElement);
|
|
49
|
+
this.previousFocus = this.currentFocus;
|
|
50
|
+
const addition = this.tabDirection === "forward" ? 1 : -1;
|
|
51
|
+
while (true) {
|
|
52
|
+
if (currentFocusIndex + addition >= tabbableElements.length) {
|
|
53
|
+
currentFocusIndex = 0;
|
|
54
|
+
} else if (currentFocusIndex + addition < 0) {
|
|
55
|
+
currentFocusIndex = tabbableElements.length - 1;
|
|
56
|
+
} else {
|
|
57
|
+
currentFocusIndex += addition;
|
|
58
|
+
}
|
|
59
|
+
this.previousFocus = this.currentFocus;
|
|
60
|
+
const nextFocus = (
|
|
61
|
+
/** @type {HTMLElement} */
|
|
62
|
+
tabbableElements[currentFocusIndex]
|
|
63
|
+
);
|
|
64
|
+
if (this.tabDirection === "backward") {
|
|
65
|
+
if (this.previousFocus && this.possiblyHasTabbableChildren(this.previousFocus)) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
if (nextFocus && this.possiblyHasTabbableChildren(nextFocus)) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
event.preventDefault();
|
|
73
|
+
this.currentFocus = nextFocus;
|
|
74
|
+
(_a = this.currentFocus) == null ? void 0 : _a.focus({ preventScroll: false });
|
|
75
|
+
const allActiveElements = [...activeElements()];
|
|
76
|
+
if (allActiveElements.includes(this.currentFocus) || !allActiveElements.includes(this.previousFocus)) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
setTimeout(() => this.checkFocus());
|
|
81
|
+
};
|
|
82
|
+
this.handleKeyUp = () => {
|
|
83
|
+
this.tabDirection = "forward";
|
|
84
|
+
};
|
|
85
|
+
this.element = element;
|
|
86
|
+
this.elementsWithTabbableControls = ["iframe"];
|
|
87
|
+
}
|
|
88
|
+
/** Activates focus trapping. */
|
|
89
|
+
activate() {
|
|
90
|
+
activeModals.push(this.element);
|
|
91
|
+
document.addEventListener("focusin", this.handleFocusIn);
|
|
92
|
+
document.addEventListener("keydown", this.handleKeyDown);
|
|
93
|
+
document.addEventListener("keyup", this.handleKeyUp);
|
|
94
|
+
}
|
|
95
|
+
/** Deactivates focus trapping. */
|
|
96
|
+
deactivate() {
|
|
97
|
+
activeModals = activeModals.filter((modal) => modal !== this.element);
|
|
98
|
+
this.currentFocus = null;
|
|
99
|
+
document.removeEventListener("focusin", this.handleFocusIn);
|
|
100
|
+
document.removeEventListener("keydown", this.handleKeyDown);
|
|
101
|
+
document.removeEventListener("keyup", this.handleKeyUp);
|
|
102
|
+
}
|
|
103
|
+
/** Determines if this modal element is currently active or not. */
|
|
104
|
+
isActive() {
|
|
105
|
+
return activeModals[activeModals.length - 1] === this.element;
|
|
106
|
+
}
|
|
107
|
+
/** Activates external modal behavior and temporarily disables focus trapping. */
|
|
108
|
+
activateExternal() {
|
|
109
|
+
this.isExternalActivated = true;
|
|
110
|
+
}
|
|
111
|
+
/** Deactivates external modal behavior and re-enables focus trapping. */
|
|
112
|
+
deactivateExternal() {
|
|
113
|
+
this.isExternalActivated = false;
|
|
114
|
+
}
|
|
115
|
+
checkFocus() {
|
|
116
|
+
if (this.isActive() && !this.isExternalActivated) {
|
|
117
|
+
const tabbableElements = getTabbableElements(this.element);
|
|
118
|
+
if (!this.element.matches(":focus-within")) {
|
|
119
|
+
const start = tabbableElements[0];
|
|
120
|
+
const end = tabbableElements[tabbableElements.length - 1];
|
|
121
|
+
const target = this.tabDirection === "forward" ? start : end;
|
|
122
|
+
if (typeof (target == null ? void 0 : target.focus) === "function") {
|
|
123
|
+
this.currentFocus = target;
|
|
124
|
+
target.focus({ preventScroll: false });
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
possiblyHasTabbableChildren(element) {
|
|
130
|
+
return this.elementsWithTabbableControls.includes(element.tagName.toLowerCase()) || element.hasAttribute("controls");
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
export {
|
|
135
|
+
Modal
|
|
136
|
+
};
|
|
137
|
+
//# sourceMappingURL=chunk.ITXLZUTJ.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/internal/active-elements.ts", "../../src/internal/modal.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 */\n/**\n * Use a generator so we can iterate and possibly break early.\n * @example\n * // to operate like a regular array. This kinda nullifies generator benefits, but worth knowing if you need the whole array.\n * const allActiveElements = [...activeElements()]\n *\n * // Early return\n * for (const activeElement of activeElements()) {\n * if (<cond>) {\n * break; // Break the loop, dont need to iterate over the whole array or store an array in memory!\n * }\n * }\n */\nexport function* activeElements(activeElement: Element | null = document.activeElement): Generator<Element> {\n if (activeElement === null || activeElement === undefined) return;\n\n yield activeElement;\n\n if ('shadowRoot' in activeElement && activeElement.shadowRoot && activeElement.shadowRoot.mode !== 'closed') {\n yield* activeElements(activeElement.shadowRoot.activeElement);\n }\n}\n\nexport function getDeepestActiveElement() {\n return [...activeElements()].pop();\n}\n", "// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\nimport { activeElements, getDeepestActiveElement } from './active-elements.js';\nimport { getTabbableElements } from './tabbable.js';\n\nlet activeModals: HTMLElement[] = [];\n\nexport default class Modal {\n element: HTMLElement;\n isExternalActivated: boolean;\n tabDirection: 'forward' | 'backward' = 'forward';\n currentFocus: HTMLElement | null;\n previousFocus: HTMLElement | null;\n elementsWithTabbableControls: string[];\n\n constructor(element: HTMLElement) {\n this.element = element;\n\n this.elementsWithTabbableControls = ['iframe'];\n }\n\n /** Activates focus trapping. */\n activate() {\n activeModals.push(this.element);\n document.addEventListener('focusin', this.handleFocusIn);\n document.addEventListener('keydown', this.handleKeyDown);\n document.addEventListener('keyup', this.handleKeyUp);\n }\n\n /** Deactivates focus trapping. */\n deactivate() {\n activeModals = activeModals.filter(modal => modal !== this.element);\n this.currentFocus = null;\n document.removeEventListener('focusin', this.handleFocusIn);\n document.removeEventListener('keydown', this.handleKeyDown);\n document.removeEventListener('keyup', this.handleKeyUp);\n }\n\n /** Determines if this modal element is currently active or not. */\n isActive() {\n // The \"active\" modal is always the most recent one shown\n return activeModals[activeModals.length - 1] === this.element;\n }\n\n /** Activates external modal behavior and temporarily disables focus trapping. */\n activateExternal() {\n this.isExternalActivated = true;\n }\n\n /** Deactivates external modal behavior and re-enables focus trapping. */\n deactivateExternal() {\n this.isExternalActivated = false;\n }\n\n private checkFocus() {\n if (this.isActive() && !this.isExternalActivated) {\n const tabbableElements = getTabbableElements(this.element);\n if (!this.element.matches(':focus-within')) {\n const start = tabbableElements[0];\n const end = tabbableElements[tabbableElements.length - 1];\n const target = this.tabDirection === 'forward' ? start : end;\n\n if (typeof target?.focus === 'function') {\n this.currentFocus = target;\n target.focus({ preventScroll: false });\n }\n }\n }\n }\n\n private handleFocusIn = () => {\n if (!this.isActive()) return;\n this.checkFocus();\n };\n\n private possiblyHasTabbableChildren(element: HTMLElement) {\n return (\n this.elementsWithTabbableControls.includes(element.tagName.toLowerCase()) || element.hasAttribute('controls')\n // Should we add a data-attribute for people to set just in case they have an element where we don't know if it has possibly tabbable elements?\n );\n }\n\n private handleKeyDown = (event: KeyboardEvent) => {\n if (event.key !== 'Tab' || this.isExternalActivated) return;\n if (!this.isActive()) return;\n\n // Because sometimes focus can actually be taken over from outside sources,\n // we don't want to rely on `this.currentFocus`. Instead we check the actual `activeElement` and\n // recurse through shadowRoots.\n const currentActiveElement = getDeepestActiveElement();\n this.previousFocus = currentActiveElement as HTMLElement | null;\n\n if (this.previousFocus && this.possiblyHasTabbableChildren(this.previousFocus)) {\n return;\n }\n\n if (event.shiftKey) {\n this.tabDirection = 'backward';\n } else {\n this.tabDirection = 'forward';\n }\n\n const tabbableElements = getTabbableElements(this.element);\n\n let currentFocusIndex = tabbableElements.findIndex(el => el === currentActiveElement);\n\n this.previousFocus = this.currentFocus;\n\n const addition = this.tabDirection === 'forward' ? 1 : -1;\n\n // eslint-disable-next-line\n while (true) {\n if (currentFocusIndex + addition >= tabbableElements.length) {\n currentFocusIndex = 0;\n } else if (currentFocusIndex + addition < 0) {\n currentFocusIndex = tabbableElements.length - 1;\n } else {\n currentFocusIndex += addition;\n }\n\n this.previousFocus = this.currentFocus;\n const nextFocus = /** @type {HTMLElement} */ tabbableElements[currentFocusIndex];\n\n // This is a special case. We need to make sure we're not calling .focus() if we're already focused on an element\n // that possibly has \"controls\"\n if (this.tabDirection === 'backward') {\n if (this.previousFocus && this.possiblyHasTabbableChildren(this.previousFocus)) {\n return;\n }\n }\n\n if (nextFocus && this.possiblyHasTabbableChildren(nextFocus)) {\n return;\n }\n\n event.preventDefault();\n this.currentFocus = nextFocus;\n this.currentFocus?.focus({ preventScroll: false });\n\n // Check to make sure focus actually changed. It may not always be the next focus, we just don't want it to be the previousFocus.\n const allActiveElements = [...activeElements()];\n if (allActiveElements.includes(this.currentFocus) || !allActiveElements.includes(this.previousFocus!)) {\n break;\n }\n }\n\n setTimeout(() => this.checkFocus());\n };\n\n private handleKeyUp = () => {\n this.tabDirection = 'forward';\n };\n}\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// src/components/dialog/dialog.custom.styles.ts
|
|
2
|
+
import { css } from "lit";
|
|
3
|
+
var dialog_custom_styles_default = css`
|
|
4
|
+
:host {
|
|
5
|
+
/**
|
|
6
|
+
* Used as the default padding for the dialog title
|
|
7
|
+
*/
|
|
8
|
+
--header-spacing: var(--syn-spacing-large) var(--syn-spacing-x-small) var(--syn-spacing-large) var(--syn-spacing-large);
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Defines the default body spacing
|
|
12
|
+
*/
|
|
13
|
+
--body-spacing: var(--syn-spacing-medium) var(--syn-spacing-large);
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Defines the default footer spacing
|
|
17
|
+
*/
|
|
18
|
+
--footer-spacing: var(--syn-spacing-medium) var(--syn-spacing-large) var(--syn-spacing-large) var(--syn-spacing-medium);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.dialog__panel {
|
|
22
|
+
border: var(--syn-spacing-4x-small) solid var(--syn-panel-border-color);
|
|
23
|
+
border-radius: var(--syn-border-radius-none);
|
|
24
|
+
box-shadow: var(--syn-shadow-large);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.dialog__header-actions {
|
|
28
|
+
align-items: flex-start;
|
|
29
|
+
gap: var(--syn-spacing-x-small);
|
|
30
|
+
padding: var(--syn-spacing-large) var(--syn-spacing-small) var(--syn-spacing-large) 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* We need this to make sure we are big enough as defined in the layout
|
|
35
|
+
* When omitting this statement, we will get rounding problems via line-height
|
|
36
|
+
*/
|
|
37
|
+
.dialog__title,
|
|
38
|
+
.dialog__header-actions {
|
|
39
|
+
min-height: 88px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.dialog__header-actions syn-icon-button,
|
|
43
|
+
.dialog__header-actions ::slotted(syn-icon-button) {
|
|
44
|
+
color: var(--syn-color-neutral-950);
|
|
45
|
+
font-size: var(--syn-font-size-x-large);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.dialog__title {
|
|
49
|
+
font-family: var(--syn-font-sans);
|
|
50
|
+
font-size: var(--syn-font-size-x-large);
|
|
51
|
+
font-weight: var(--syn-font-weight-bold);
|
|
52
|
+
line-height: var(--syn-line-height-normal);
|
|
53
|
+
}
|
|
54
|
+
`;
|
|
55
|
+
|
|
56
|
+
export {
|
|
57
|
+
dialog_custom_styles_default
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=chunk.IU3SSJZE.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/dialog/dialog.custom.styles.ts"],
|
|
4
|
+
"sourcesContent": ["import { css } from 'lit';\n\nexport default css`\n :host {\n /**\n * Used as the default padding for the dialog title\n */\n --header-spacing: var(--syn-spacing-large) var(--syn-spacing-x-small) var(--syn-spacing-large) var(--syn-spacing-large);\n\n /**\n * Defines the default body spacing\n */\n --body-spacing: var(--syn-spacing-medium) var(--syn-spacing-large);\n\n /**\n * Defines the default footer spacing\n */\n --footer-spacing: var(--syn-spacing-medium) var(--syn-spacing-large) var(--syn-spacing-large) var(--syn-spacing-medium);\n }\n\n .dialog__panel {\n border: var(--syn-spacing-4x-small) solid var(--syn-panel-border-color);\n border-radius: var(--syn-border-radius-none);\n box-shadow: var(--syn-shadow-large);\n }\n\n .dialog__header-actions {\n align-items: flex-start;\n gap: var(--syn-spacing-x-small);\n padding: var(--syn-spacing-large) var(--syn-spacing-small) var(--syn-spacing-large) 0;\n }\n\n /**\n * We need this to make sure we are big enough as defined in the layout\n * When omitting this statement, we will get rounding problems via line-height\n */\n .dialog__title,\n .dialog__header-actions {\n min-height: 88px;\n }\n\n .dialog__header-actions syn-icon-button,\n .dialog__header-actions ::slotted(syn-icon-button) {\n color: var(--syn-color-neutral-950);\n font-size: var(--syn-font-size-x-large);\n }\n\n .dialog__title {\n font-family: var(--syn-font-sans);\n font-size: var(--syn-font-size-x-large);\n font-weight: var(--syn-font-weight-bold);\n line-height: var(--syn-line-height-normal);\n }\n`;\n"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,WAAW;AAEpB,IAAO,+BAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynMenu
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.RE3DUPRU.js";
|
|
4
4
|
|
|
5
5
|
// src/components/menu/menu.ts
|
|
6
6
|
var menu_default = SynMenu;
|
|
@@ -9,4 +9,4 @@ SynMenu.define("syn-menu");
|
|
|
9
9
|
export {
|
|
10
10
|
menu_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.JURUVJDH.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynButton
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.C6ZQAYEH.js";
|
|
4
4
|
|
|
5
5
|
// src/components/button/button.ts
|
|
6
6
|
var button_default = SynButton;
|
|
@@ -9,4 +9,4 @@ SynButton.define("syn-button");
|
|
|
9
9
|
export {
|
|
10
10
|
button_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.JURXXFAS.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynTooltip
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.P36SH35P.js";
|
|
4
4
|
|
|
5
5
|
// src/components/tooltip/tooltip.ts
|
|
6
6
|
var tooltip_default = SynTooltip;
|
|
@@ -9,4 +9,4 @@ SynTooltip.define("syn-tooltip");
|
|
|
9
9
|
export {
|
|
10
10
|
tooltip_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.KVDQTSR6.js.map
|