@synergy-design-system/components 1.19.0 → 1.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{chunk.RZE2HSE2.js → chunk.23PWSJXG.js} +2 -2
- package/dist/chunks/{chunk.NH3IR2C2.js → chunk.3QBKXE6G.js} +2 -2
- package/dist/chunks/{chunk.2DDDCRJ3.js → chunk.46MCZQWP.js} +10 -10
- package/dist/chunks/{chunk.KPYNOAQ6.js → chunk.4FAXULII.js} +3 -3
- package/dist/chunks/{chunk.P6H4IUOO.js → chunk.4ITEU4FK.js} +2 -2
- package/dist/chunks/{chunk.4J7Z64K2.js → chunk.4XKOBCVD.js} +2 -2
- package/dist/chunks/{chunk.LVQ53WA2.js → chunk.56J5UZ5O.js} +2 -2
- package/dist/chunks/{chunk.LVQ53WA2.js.map → chunk.56J5UZ5O.js.map} +1 -1
- package/dist/chunks/{chunk.API7KARX.js → chunk.5EC3WXBS.js} +2 -2
- package/dist/chunks/{chunk.5ZXK3DHG.js → chunk.5MHW6GEI.js} +2 -2
- package/dist/chunks/{chunk.6HSRAAQU.js → chunk.5NBOZ6NJ.js} +2 -2
- package/dist/chunks/{chunk.3JD6SIIU.js → chunk.6E5BE4HF.js} +15 -15
- package/dist/chunks/{chunk.V2LC4HXQ.js → chunk.6INMENLF.js} +2 -2
- package/dist/chunks/{chunk.UHGLUAVY.js → chunk.6UIL66TA.js} +2 -2
- package/dist/chunks/{chunk.LECQCB4C.js → chunk.7JIRQOP4.js} +2 -2
- package/dist/chunks/{chunk.AQHCB5J4.js → chunk.7K4JAZHY.js} +9 -9
- package/dist/chunks/{chunk.4I5SYBN7.js → chunk.AT43Q6HI.js} +2 -2
- package/dist/chunks/{chunk.SRUKBLUF.js → chunk.BQXII3KW.js} +2 -2
- package/dist/chunks/{chunk.WJQ6ZWWB.js → chunk.C6NSZT54.js} +2 -2
- package/dist/chunks/{chunk.W7PLVOS3.js → chunk.CNKYRD6D.js} +10 -10
- package/dist/chunks/chunk.CNKYRD6D.js.map +7 -0
- package/dist/chunks/{chunk.QMBZGUIN.js → chunk.DJF4JI4X.js} +7 -7
- package/dist/chunks/{chunk.DUNJ5BV6.js → chunk.EIBBCV5V.js} +2 -2
- package/dist/chunks/{chunk.UN5IHLKM.js → chunk.EUKJV6XG.js} +2 -2
- package/dist/chunks/{chunk.KUWSMYGR.js → chunk.F7AUODH4.js} +2 -2
- package/dist/chunks/{chunk.TDPC64DK.js → chunk.FE5K4IMY.js} +6 -6
- package/dist/chunks/{chunk.BZBSIR5N.js → chunk.FO7FIXHB.js} +2 -2
- package/dist/chunks/{chunk.TJIIZ7CR.js → chunk.FPCN35CP.js} +2 -2
- package/dist/chunks/{chunk.BPHDK3CI.js → chunk.FUU4FRAY.js} +2 -2
- package/dist/chunks/{chunk.CZ6WRNZU.js → chunk.FVKVAJGY.js} +2 -2
- package/dist/chunks/{chunk.VELRTLV7.js → chunk.GHNHKD6M.js} +2 -2
- package/dist/chunks/{chunk.L7WWNO6T.js → chunk.GJUGKRQ6.js} +2 -2
- package/dist/chunks/{chunk.A47EKSQ4.js → chunk.GZ2HG3RN.js} +3 -3
- package/dist/chunks/{chunk.N5F4YN7J.js → chunk.HPTSLEE7.js} +2 -2
- package/dist/chunks/{chunk.UGPXRN6M.js → chunk.HQGUQXW3.js} +2 -2
- package/dist/chunks/{chunk.2UY7COPU.js → chunk.HWTSSZC2.js} +2 -2
- package/dist/chunks/{chunk.RURN5UFR.js → chunk.JNZSO64N.js} +3 -3
- package/dist/chunks/chunk.JRYXECAY.js +94 -0
- package/dist/chunks/chunk.JRYXECAY.js.map +7 -0
- package/dist/chunks/{chunk.EMKKKKFU.js → chunk.JZODXQHQ.js} +2 -2
- package/dist/chunks/{chunk.DEGXHPWD.js → chunk.KLJ3XXVZ.js} +2 -2
- package/dist/chunks/{chunk.BLEAPCEP.js → chunk.KRKLIXKV.js} +5 -5
- package/dist/chunks/{chunk.QY3NFYFU.js → chunk.KXRTRZVI.js} +10 -10
- package/dist/chunks/{chunk.NGEQ7HRH.js → chunk.LAGRQ3IS.js} +5 -5
- package/dist/chunks/{chunk.T46C67Z2.js → chunk.MMYVCYE5.js} +2 -2
- package/dist/chunks/chunk.NNOVR6QD.js +217 -0
- package/dist/chunks/chunk.NNOVR6QD.js.map +7 -0
- package/dist/chunks/{chunk.XHI2F52K.js → chunk.NQSOUJKR.js} +5 -5
- package/dist/chunks/chunk.PS4UJFYT.js +60 -0
- package/dist/chunks/chunk.PS4UJFYT.js.map +7 -0
- package/dist/chunks/{chunk.NGJRG6XB.js → chunk.PUZSGDYU.js} +2 -2
- package/dist/chunks/{chunk.LPAMBMOA.js → chunk.QUK3LXRT.js} +2 -2
- package/dist/chunks/{chunk.5L2JI5UY.js → chunk.QVWYVLGP.js} +2 -2
- package/dist/chunks/chunk.R3MFUBCO.js +12 -0
- package/dist/chunks/chunk.R3MFUBCO.js.map +7 -0
- package/dist/chunks/{chunk.Z3NQ3OCM.js → chunk.RWXSOQP2.js} +3 -3
- package/dist/chunks/{chunk.W5NCYA3D.js → chunk.SQO3FMZF.js} +6 -6
- package/dist/chunks/{chunk.O2XQWYYG.js → chunk.SXVH6V2V.js} +2 -2
- package/dist/chunks/{chunk.ARMOGDBS.js → chunk.SYIU62AX.js} +2 -2
- package/dist/chunks/{chunk.5LG6OZVL.js → chunk.T22EPQFZ.js} +2 -2
- package/dist/chunks/{chunk.2JOZWWOE.js → chunk.UJXG3FXH.js} +3 -3
- package/dist/chunks/{chunk.QAZDNT7V.js → chunk.VKYYJ2BL.js} +3 -3
- package/dist/chunks/{chunk.DZ7S4RJY.js → chunk.VQN6N2CM.js} +2 -2
- package/dist/chunks/{chunk.Q5FGJTK5.js → chunk.VTYWG57Y.js} +6 -6
- package/dist/chunks/{chunk.X4X2RMYJ.js → chunk.X4NJXF6V.js} +3 -3
- package/dist/chunks/{chunk.ET6X3DLL.js → chunk.XIVWHHDF.js} +2 -2
- package/dist/chunks/{chunk.G5P3WTL3.js → chunk.YKP4IONJ.js} +2 -2
- package/dist/chunks/{chunk.GJ6H2WYF.js → chunk.YLGY4KSI.js} +2 -2
- package/dist/chunks/{chunk.KJORV2US.js → chunk.YZDFPCCW.js} +2 -2
- package/dist/chunks/{chunk.MCRJOP4B.js → chunk.Z2AU22QV.js} +5 -5
- package/dist/components/alert/alert.component.d.ts +70 -0
- package/dist/components/alert/alert.component.js +27 -0
- package/dist/components/alert/alert.component.js.map +7 -0
- package/dist/components/alert/alert.custom.styles.d.ts +2 -0
- package/dist/components/alert/alert.custom.styles.js +8 -0
- package/dist/components/alert/alert.custom.styles.js.map +7 -0
- package/dist/components/alert/alert.d.ts +8 -0
- package/dist/components/alert/alert.js +28 -0
- package/dist/components/alert/alert.js.map +7 -0
- package/dist/components/alert/alert.styles.d.ts +2 -0
- package/dist/components/alert/alert.styles.js +8 -0
- package/dist/components/alert/alert.styles.js.map +7 -0
- package/dist/components/badge/badge.component.js +3 -3
- package/dist/components/badge/badge.js +4 -4
- package/dist/components/button/button.component.js +8 -8
- package/dist/components/button/button.js +9 -9
- 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/divider/divider.component.js +2 -2
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/drawer/drawer.component.js +9 -9
- package/dist/components/drawer/drawer.js +10 -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 +6 -6
- package/dist/components/header/header.js +7 -7
- 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 +8 -8
- package/dist/components/input/input.js +9 -9
- 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 +7 -7
- package/dist/components/menu-item/menu-item.js +8 -8
- 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 +6 -6
- package/dist/components/option/option.js +7 -7
- 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 +12 -12
- package/dist/components/prio-nav/prio-nav.js +13 -13
- 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 +12 -12
- package/dist/components/select/select.js +13 -13
- package/dist/components/side-nav/side-nav.component.d.ts +0 -1
- package/dist/components/side-nav/side-nav.component.js +12 -12
- package/dist/components/side-nav/side-nav.js +13 -13
- package/dist/components/spinner/spinner.component.js +2 -2
- package/dist/components/switch/switch.component.js +2 -2
- package/dist/components/switch/switch.js +3 -3
- package/dist/components/tag/tag.component.js +6 -6
- package/dist/components/tag/tag.js +7 -7
- package/dist/components/textarea/textarea.component.js +2 -2
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/custom-elements.json +259 -6
- package/dist/internal/test/data-testid-helpers.d.ts +12 -0
- package/dist/synergy.d.ts +1 -0
- package/dist/synergy.js +119 -112
- package/dist/themes/utility.css +1 -1
- package/dist/vscode.html-custom-data.json +39 -1
- package/package.json +1 -1
- package/dist/chunks/chunk.W7PLVOS3.js.map +0 -7
- /package/dist/chunks/{chunk.RZE2HSE2.js.map → chunk.23PWSJXG.js.map} +0 -0
- /package/dist/chunks/{chunk.NH3IR2C2.js.map → chunk.3QBKXE6G.js.map} +0 -0
- /package/dist/chunks/{chunk.2DDDCRJ3.js.map → chunk.46MCZQWP.js.map} +0 -0
- /package/dist/chunks/{chunk.KPYNOAQ6.js.map → chunk.4FAXULII.js.map} +0 -0
- /package/dist/chunks/{chunk.P6H4IUOO.js.map → chunk.4ITEU4FK.js.map} +0 -0
- /package/dist/chunks/{chunk.4J7Z64K2.js.map → chunk.4XKOBCVD.js.map} +0 -0
- /package/dist/chunks/{chunk.API7KARX.js.map → chunk.5EC3WXBS.js.map} +0 -0
- /package/dist/chunks/{chunk.5ZXK3DHG.js.map → chunk.5MHW6GEI.js.map} +0 -0
- /package/dist/chunks/{chunk.6HSRAAQU.js.map → chunk.5NBOZ6NJ.js.map} +0 -0
- /package/dist/chunks/{chunk.3JD6SIIU.js.map → chunk.6E5BE4HF.js.map} +0 -0
- /package/dist/chunks/{chunk.V2LC4HXQ.js.map → chunk.6INMENLF.js.map} +0 -0
- /package/dist/chunks/{chunk.UHGLUAVY.js.map → chunk.6UIL66TA.js.map} +0 -0
- /package/dist/chunks/{chunk.LECQCB4C.js.map → chunk.7JIRQOP4.js.map} +0 -0
- /package/dist/chunks/{chunk.AQHCB5J4.js.map → chunk.7K4JAZHY.js.map} +0 -0
- /package/dist/chunks/{chunk.4I5SYBN7.js.map → chunk.AT43Q6HI.js.map} +0 -0
- /package/dist/chunks/{chunk.SRUKBLUF.js.map → chunk.BQXII3KW.js.map} +0 -0
- /package/dist/chunks/{chunk.WJQ6ZWWB.js.map → chunk.C6NSZT54.js.map} +0 -0
- /package/dist/chunks/{chunk.QMBZGUIN.js.map → chunk.DJF4JI4X.js.map} +0 -0
- /package/dist/chunks/{chunk.DUNJ5BV6.js.map → chunk.EIBBCV5V.js.map} +0 -0
- /package/dist/chunks/{chunk.UN5IHLKM.js.map → chunk.EUKJV6XG.js.map} +0 -0
- /package/dist/chunks/{chunk.KUWSMYGR.js.map → chunk.F7AUODH4.js.map} +0 -0
- /package/dist/chunks/{chunk.TDPC64DK.js.map → chunk.FE5K4IMY.js.map} +0 -0
- /package/dist/chunks/{chunk.BZBSIR5N.js.map → chunk.FO7FIXHB.js.map} +0 -0
- /package/dist/chunks/{chunk.TJIIZ7CR.js.map → chunk.FPCN35CP.js.map} +0 -0
- /package/dist/chunks/{chunk.BPHDK3CI.js.map → chunk.FUU4FRAY.js.map} +0 -0
- /package/dist/chunks/{chunk.CZ6WRNZU.js.map → chunk.FVKVAJGY.js.map} +0 -0
- /package/dist/chunks/{chunk.VELRTLV7.js.map → chunk.GHNHKD6M.js.map} +0 -0
- /package/dist/chunks/{chunk.L7WWNO6T.js.map → chunk.GJUGKRQ6.js.map} +0 -0
- /package/dist/chunks/{chunk.A47EKSQ4.js.map → chunk.GZ2HG3RN.js.map} +0 -0
- /package/dist/chunks/{chunk.N5F4YN7J.js.map → chunk.HPTSLEE7.js.map} +0 -0
- /package/dist/chunks/{chunk.UGPXRN6M.js.map → chunk.HQGUQXW3.js.map} +0 -0
- /package/dist/chunks/{chunk.2UY7COPU.js.map → chunk.HWTSSZC2.js.map} +0 -0
- /package/dist/chunks/{chunk.RURN5UFR.js.map → chunk.JNZSO64N.js.map} +0 -0
- /package/dist/chunks/{chunk.EMKKKKFU.js.map → chunk.JZODXQHQ.js.map} +0 -0
- /package/dist/chunks/{chunk.DEGXHPWD.js.map → chunk.KLJ3XXVZ.js.map} +0 -0
- /package/dist/chunks/{chunk.BLEAPCEP.js.map → chunk.KRKLIXKV.js.map} +0 -0
- /package/dist/chunks/{chunk.QY3NFYFU.js.map → chunk.KXRTRZVI.js.map} +0 -0
- /package/dist/chunks/{chunk.NGEQ7HRH.js.map → chunk.LAGRQ3IS.js.map} +0 -0
- /package/dist/chunks/{chunk.T46C67Z2.js.map → chunk.MMYVCYE5.js.map} +0 -0
- /package/dist/chunks/{chunk.XHI2F52K.js.map → chunk.NQSOUJKR.js.map} +0 -0
- /package/dist/chunks/{chunk.NGJRG6XB.js.map → chunk.PUZSGDYU.js.map} +0 -0
- /package/dist/chunks/{chunk.LPAMBMOA.js.map → chunk.QUK3LXRT.js.map} +0 -0
- /package/dist/chunks/{chunk.5L2JI5UY.js.map → chunk.QVWYVLGP.js.map} +0 -0
- /package/dist/chunks/{chunk.Z3NQ3OCM.js.map → chunk.RWXSOQP2.js.map} +0 -0
- /package/dist/chunks/{chunk.W5NCYA3D.js.map → chunk.SQO3FMZF.js.map} +0 -0
- /package/dist/chunks/{chunk.O2XQWYYG.js.map → chunk.SXVH6V2V.js.map} +0 -0
- /package/dist/chunks/{chunk.ARMOGDBS.js.map → chunk.SYIU62AX.js.map} +0 -0
- /package/dist/chunks/{chunk.5LG6OZVL.js.map → chunk.T22EPQFZ.js.map} +0 -0
- /package/dist/chunks/{chunk.2JOZWWOE.js.map → chunk.UJXG3FXH.js.map} +0 -0
- /package/dist/chunks/{chunk.QAZDNT7V.js.map → chunk.VKYYJ2BL.js.map} +0 -0
- /package/dist/chunks/{chunk.DZ7S4RJY.js.map → chunk.VQN6N2CM.js.map} +0 -0
- /package/dist/chunks/{chunk.Q5FGJTK5.js.map → chunk.VTYWG57Y.js.map} +0 -0
- /package/dist/chunks/{chunk.X4X2RMYJ.js.map → chunk.X4NJXF6V.js.map} +0 -0
- /package/dist/chunks/{chunk.ET6X3DLL.js.map → chunk.XIVWHHDF.js.map} +0 -0
- /package/dist/chunks/{chunk.G5P3WTL3.js.map → chunk.YKP4IONJ.js.map} +0 -0
- /package/dist/chunks/{chunk.GJ6H2WYF.js.map → chunk.YLGY4KSI.js.map} +0 -0
- /package/dist/chunks/{chunk.KJORV2US.js.map → chunk.YZDFPCCW.js.map} +0 -0
- /package/dist/chunks/{chunk.MCRJOP4B.js.map → chunk.Z2AU22QV.js.map} +0 -0
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SynIconButton
|
|
3
|
+
} from "./chunk.VKYYJ2BL.js";
|
|
4
|
+
import {
|
|
5
|
+
animateTo,
|
|
6
|
+
stopAnimations,
|
|
7
|
+
waitForEvent
|
|
8
|
+
} from "./chunk.7BEVGRQ2.js";
|
|
9
|
+
import {
|
|
10
|
+
getAnimation,
|
|
11
|
+
setDefaultAnimation
|
|
12
|
+
} from "./chunk.QAUTITK3.js";
|
|
13
|
+
import {
|
|
14
|
+
HasSlotController
|
|
15
|
+
} from "./chunk.66WXVGAW.js";
|
|
16
|
+
import {
|
|
17
|
+
watch
|
|
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
|
+
import {
|
|
26
|
+
LocalizeController
|
|
27
|
+
} from "./chunk.GEHO4WRP.js";
|
|
28
|
+
import {
|
|
29
|
+
SynergyElement,
|
|
30
|
+
component_styles_default
|
|
31
|
+
} from "./chunk.56J5UZ5O.js";
|
|
32
|
+
import {
|
|
33
|
+
__decorateClass
|
|
34
|
+
} from "./chunk.QNDC5KWA.js";
|
|
35
|
+
|
|
36
|
+
// src/components/alert/alert.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 toastStack = Object.assign(document.createElement("div"), { className: "syn-toast-stack" });
|
|
41
|
+
var SynAlert = class extends SynergyElement {
|
|
42
|
+
constructor() {
|
|
43
|
+
super(...arguments);
|
|
44
|
+
this.hasSlotController = new HasSlotController(this, "icon", "suffix");
|
|
45
|
+
this.localize = new LocalizeController(this);
|
|
46
|
+
this.open = false;
|
|
47
|
+
this.closable = false;
|
|
48
|
+
this.variant = "primary";
|
|
49
|
+
this.duration = Infinity;
|
|
50
|
+
}
|
|
51
|
+
firstUpdated() {
|
|
52
|
+
this.base.hidden = !this.open;
|
|
53
|
+
}
|
|
54
|
+
restartAutoHide() {
|
|
55
|
+
clearTimeout(this.autoHideTimeout);
|
|
56
|
+
if (this.open && this.duration < Infinity) {
|
|
57
|
+
this.autoHideTimeout = window.setTimeout(() => this.hide(), this.duration);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
handleCloseClick() {
|
|
61
|
+
this.hide();
|
|
62
|
+
}
|
|
63
|
+
handleMouseMove() {
|
|
64
|
+
this.restartAutoHide();
|
|
65
|
+
}
|
|
66
|
+
async handleOpenChange() {
|
|
67
|
+
if (this.open) {
|
|
68
|
+
this.emit("syn-show");
|
|
69
|
+
if (this.duration < Infinity) {
|
|
70
|
+
this.restartAutoHide();
|
|
71
|
+
}
|
|
72
|
+
await stopAnimations(this.base);
|
|
73
|
+
this.base.hidden = false;
|
|
74
|
+
const { keyframes, options } = getAnimation(this, "alert.show", { dir: this.localize.dir() });
|
|
75
|
+
await animateTo(this.base, keyframes, options);
|
|
76
|
+
this.emit("syn-after-show");
|
|
77
|
+
} else {
|
|
78
|
+
this.emit("syn-hide");
|
|
79
|
+
clearTimeout(this.autoHideTimeout);
|
|
80
|
+
await stopAnimations(this.base);
|
|
81
|
+
const { keyframes, options } = getAnimation(this, "alert.hide", { dir: this.localize.dir() });
|
|
82
|
+
await animateTo(this.base, keyframes, options);
|
|
83
|
+
this.base.hidden = true;
|
|
84
|
+
this.emit("syn-after-hide");
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
handleDurationChange() {
|
|
88
|
+
this.restartAutoHide();
|
|
89
|
+
}
|
|
90
|
+
/** Shows the alert. */
|
|
91
|
+
async show() {
|
|
92
|
+
if (this.open) {
|
|
93
|
+
return void 0;
|
|
94
|
+
}
|
|
95
|
+
this.open = true;
|
|
96
|
+
return waitForEvent(this, "syn-after-show");
|
|
97
|
+
}
|
|
98
|
+
/** Hides the alert */
|
|
99
|
+
async hide() {
|
|
100
|
+
if (!this.open) {
|
|
101
|
+
return void 0;
|
|
102
|
+
}
|
|
103
|
+
this.open = false;
|
|
104
|
+
return waitForEvent(this, "syn-after-hide");
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Displays the alert as a toast notification. This will move the alert out of its position in the DOM and, when
|
|
108
|
+
* dismissed, it will be removed from the DOM completely. By storing a reference to the alert, you can reuse it by
|
|
109
|
+
* calling this method again. The returned promise will resolve after the alert is hidden.
|
|
110
|
+
*/
|
|
111
|
+
async toast() {
|
|
112
|
+
return new Promise((resolve) => {
|
|
113
|
+
if (toastStack.parentElement === null) {
|
|
114
|
+
document.body.append(toastStack);
|
|
115
|
+
}
|
|
116
|
+
toastStack.appendChild(this);
|
|
117
|
+
requestAnimationFrame(() => {
|
|
118
|
+
this.clientWidth;
|
|
119
|
+
this.show();
|
|
120
|
+
});
|
|
121
|
+
this.addEventListener(
|
|
122
|
+
"syn-after-hide",
|
|
123
|
+
() => {
|
|
124
|
+
toastStack.removeChild(this);
|
|
125
|
+
resolve();
|
|
126
|
+
if (toastStack.querySelector("syn-alert") === null) {
|
|
127
|
+
toastStack.remove();
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
{ once: true }
|
|
131
|
+
);
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
render() {
|
|
135
|
+
return html`
|
|
136
|
+
<div
|
|
137
|
+
part="base"
|
|
138
|
+
class=${classMap({
|
|
139
|
+
alert: true,
|
|
140
|
+
"alert--open": this.open,
|
|
141
|
+
"alert--closable": this.closable,
|
|
142
|
+
"alert--has-icon": this.hasSlotController.test("icon"),
|
|
143
|
+
"alert--primary": this.variant === "primary",
|
|
144
|
+
"alert--success": this.variant === "success",
|
|
145
|
+
"alert--neutral": this.variant === "neutral",
|
|
146
|
+
"alert--warning": this.variant === "warning",
|
|
147
|
+
"alert--danger": this.variant === "danger"
|
|
148
|
+
})}
|
|
149
|
+
role="alert"
|
|
150
|
+
aria-hidden=${this.open ? "false" : "true"}
|
|
151
|
+
@mousemove=${this.handleMouseMove}
|
|
152
|
+
>
|
|
153
|
+
<div part="icon" class="alert__icon">
|
|
154
|
+
<slot name="icon"></slot>
|
|
155
|
+
</div>
|
|
156
|
+
|
|
157
|
+
<div part="message" class="alert__message" aria-live="polite">
|
|
158
|
+
<slot></slot>
|
|
159
|
+
</div>
|
|
160
|
+
|
|
161
|
+
${this.closable ? html`
|
|
162
|
+
<syn-icon-button
|
|
163
|
+
part="close-button"
|
|
164
|
+
exportparts="base:close-button__base"
|
|
165
|
+
class="alert__close-button"
|
|
166
|
+
name="x-lg"
|
|
167
|
+
library="system"
|
|
168
|
+
label=${this.localize.term("close")}
|
|
169
|
+
@click=${this.handleCloseClick}
|
|
170
|
+
></syn-icon-button>
|
|
171
|
+
` : ""}
|
|
172
|
+
</div>
|
|
173
|
+
`;
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
SynAlert.styles = [component_styles_default, alert_styles_default, alert_custom_styles_default];
|
|
177
|
+
SynAlert.dependencies = { "syn-icon-button": SynIconButton };
|
|
178
|
+
__decorateClass([
|
|
179
|
+
query('[part~="base"]')
|
|
180
|
+
], SynAlert.prototype, "base", 2);
|
|
181
|
+
__decorateClass([
|
|
182
|
+
property({ type: Boolean, reflect: true })
|
|
183
|
+
], SynAlert.prototype, "open", 2);
|
|
184
|
+
__decorateClass([
|
|
185
|
+
property({ type: Boolean, reflect: true })
|
|
186
|
+
], SynAlert.prototype, "closable", 2);
|
|
187
|
+
__decorateClass([
|
|
188
|
+
property({ reflect: true })
|
|
189
|
+
], SynAlert.prototype, "variant", 2);
|
|
190
|
+
__decorateClass([
|
|
191
|
+
property({ type: Number })
|
|
192
|
+
], SynAlert.prototype, "duration", 2);
|
|
193
|
+
__decorateClass([
|
|
194
|
+
watch("open", { waitUntilFirstUpdate: true })
|
|
195
|
+
], SynAlert.prototype, "handleOpenChange", 1);
|
|
196
|
+
__decorateClass([
|
|
197
|
+
watch("duration")
|
|
198
|
+
], SynAlert.prototype, "handleDurationChange", 1);
|
|
199
|
+
setDefaultAnimation("alert.show", {
|
|
200
|
+
keyframes: [
|
|
201
|
+
{ opacity: 0, scale: 0.8 },
|
|
202
|
+
{ opacity: 1, scale: 1 }
|
|
203
|
+
],
|
|
204
|
+
options: { duration: 250, easing: "ease" }
|
|
205
|
+
});
|
|
206
|
+
setDefaultAnimation("alert.hide", {
|
|
207
|
+
keyframes: [
|
|
208
|
+
{ opacity: 1, scale: 1 },
|
|
209
|
+
{ opacity: 0, scale: 0.8 }
|
|
210
|
+
],
|
|
211
|
+
options: { duration: 250, easing: "ease" }
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
export {
|
|
215
|
+
SynAlert
|
|
216
|
+
};
|
|
217
|
+
//# sourceMappingURL=chunk.NNOVR6QD.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/alert/alert.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 { HasSlotController } from '../../internal/slot.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 SynIconButton from '../icon-button/icon-button.component.js';\nimport styles from './alert.styles.js';\nimport customStyles from './alert.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\nconst toastStack = Object.assign(document.createElement('div'), { className: 'syn-toast-stack' });\n\n/**\n * @summary Alerts are used to display important messages inline or as toast notifications.\n * @documentation https://synergy.style/components/alert\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon-button\n *\n * @slot - The alert's main content.\n * @slot icon - An icon to show in the alert. Works best with `<syn-icon>`.\n *\n * @event syn-show - Emitted when the alert opens.\n * @event syn-after-show - Emitted after the alert opens and all animations are complete.\n * @event syn-hide - Emitted when the alert closes.\n * @event syn-after-hide - Emitted after the alert closes and all animations are complete.\n *\n * @csspart base - The component's base wrapper.\n * @csspart icon - The container that wraps the optional icon.\n * @csspart message - The container that wraps the alert's main content.\n * @csspart close-button - The close button, an `<syn-icon-button>`.\n * @csspart close-button__base - The close button's exported `base` part.\n *\n * @animation alert.show - The animation to use when showing the alert.\n * @animation alert.hide - The animation to use when hiding the alert.\n */\nexport default class SynAlert extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n static dependencies = { 'syn-icon-button': SynIconButton };\n\n private autoHideTimeout: number;\n private readonly hasSlotController = new HasSlotController(this, 'icon', 'suffix');\n private readonly localize = new LocalizeController(this);\n\n @query('[part~=\"base\"]') base: HTMLElement;\n\n /**\n * Indicates whether or not the alert is open. You can toggle this attribute to show and hide the alert, or you can\n * use the `show()` and `hide()` methods and this attribute will reflect the alert's open state.\n */\n @property({ type: Boolean, reflect: true }) open = false;\n\n /** Enables a close button that allows the user to dismiss the alert. */\n @property({ type: Boolean, reflect: true }) closable = false;\n\n /** The alert's theme variant. */\n @property({ reflect: true }) variant: 'primary' | 'success' | 'neutral' | 'warning' | 'danger' = 'primary';\n\n /**\n * The length of time, in milliseconds, the alert will show before closing itself. If the user interacts with\n * the alert before it closes (e.g. moves the mouse over it), the timer will restart. Defaults to `Infinity`, meaning\n * the alert will not close on its own.\n */\n @property({ type: Number }) duration = Infinity;\n\n firstUpdated() {\n this.base.hidden = !this.open;\n }\n\n private restartAutoHide() {\n clearTimeout(this.autoHideTimeout);\n if (this.open && this.duration < Infinity) {\n this.autoHideTimeout = window.setTimeout(() => this.hide(), this.duration);\n }\n }\n\n private handleCloseClick() {\n this.hide();\n }\n\n private handleMouseMove() {\n this.restartAutoHide();\n }\n\n @watch('open', { waitUntilFirstUpdate: true })\n async handleOpenChange() {\n if (this.open) {\n // Show\n this.emit('syn-show');\n\n if (this.duration < Infinity) {\n this.restartAutoHide();\n }\n\n await stopAnimations(this.base);\n this.base.hidden = false;\n const { keyframes, options } = getAnimation(this, 'alert.show', { dir: this.localize.dir() });\n await animateTo(this.base, keyframes, options);\n\n this.emit('syn-after-show');\n } else {\n // Hide\n this.emit('syn-hide');\n\n clearTimeout(this.autoHideTimeout);\n\n await stopAnimations(this.base);\n const { keyframes, options } = getAnimation(this, 'alert.hide', { dir: this.localize.dir() });\n await animateTo(this.base, keyframes, options);\n this.base.hidden = true;\n\n this.emit('syn-after-hide');\n }\n }\n\n @watch('duration')\n handleDurationChange() {\n this.restartAutoHide();\n }\n\n /** Shows the alert. */\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 alert */\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 * Displays the alert as a toast notification. This will move the alert out of its position in the DOM and, when\n * dismissed, it will be removed from the DOM completely. By storing a reference to the alert, you can reuse it by\n * calling this method again. The returned promise will resolve after the alert is hidden.\n */\n async toast() {\n return new Promise<void>(resolve => {\n if (toastStack.parentElement === null) {\n document.body.append(toastStack);\n }\n\n toastStack.appendChild(this);\n\n // Wait for the toast stack to render\n requestAnimationFrame(() => {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions -- force a reflow for the initial transition\n this.clientWidth;\n this.show();\n });\n\n this.addEventListener(\n 'syn-after-hide',\n () => {\n toastStack.removeChild(this);\n resolve();\n\n // Remove the toast stack from the DOM when there are no more alerts\n if (toastStack.querySelector('syn-alert') === null) {\n toastStack.remove();\n }\n },\n { once: true }\n );\n });\n }\n\n render() {\n return html`\n <div\n part=\"base\"\n class=${classMap({\n alert: true,\n 'alert--open': this.open,\n 'alert--closable': this.closable,\n 'alert--has-icon': this.hasSlotController.test('icon'),\n 'alert--primary': this.variant === 'primary',\n 'alert--success': this.variant === 'success',\n 'alert--neutral': this.variant === 'neutral',\n 'alert--warning': this.variant === 'warning',\n 'alert--danger': this.variant === 'danger'\n })}\n role=\"alert\"\n aria-hidden=${this.open ? 'false' : 'true'}\n @mousemove=${this.handleMouseMove}\n >\n <div part=\"icon\" class=\"alert__icon\">\n <slot name=\"icon\"></slot>\n </div>\n\n <div part=\"message\" class=\"alert__message\" aria-live=\"polite\">\n <slot></slot>\n </div>\n\n ${this.closable\n ? html`\n <syn-icon-button\n part=\"close-button\"\n exportparts=\"base:close-button__base\"\n class=\"alert__close-button\"\n name=\"x-lg\"\n library=\"system\"\n label=${this.localize.term('close')}\n @click=${this.handleCloseClick}\n ></syn-icon-button>\n `\n : ''}\n </div>\n `;\n }\n}\n\nsetDefaultAnimation('alert.show', {\n keyframes: [\n { opacity: 0, scale: 0.8 },\n { opacity: 1, scale: 1 }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\nsetDefaultAnimation('alert.hide', {\n keyframes: [\n { opacity: 1, scale: 1 },\n { opacity: 0, scale: 0.8 }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,SAAS,gBAAgB;AAGzB,SAAS,YAAY;AAErB,SAAS,UAAU,aAAa;AAUhC,IAAM,aAAa,OAAO,OAAO,SAAS,cAAc,KAAK,GAAG,EAAE,WAAW,kBAAkB,CAAC;AA2BhG,IAAqB,WAArB,cAAsC,eAAe;AAAA,EAArD;AAAA;AAKE,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,QAAQ,QAAQ;AACjF,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAQX,gBAAO;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
|
|
7
|
-
import {
|
|
8
|
-
SynButtonGroup
|
|
9
|
-
} from "./chunk.WJQ6ZWWB.js";
|
|
10
7
|
import {
|
|
11
8
|
form_control_custom_styles_default,
|
|
12
9
|
form_control_styles_default
|
|
@@ -17,6 +14,9 @@ import {
|
|
|
17
14
|
validValidityState,
|
|
18
15
|
valueMissingValidityState
|
|
19
16
|
} from "./chunk.JUJZBRXD.js";
|
|
17
|
+
import {
|
|
18
|
+
SynButtonGroup
|
|
19
|
+
} from "./chunk.C6NSZT54.js";
|
|
20
20
|
import {
|
|
21
21
|
HasSlotController
|
|
22
22
|
} from "./chunk.66WXVGAW.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
import {
|
|
27
27
|
SynergyElement,
|
|
28
28
|
component_styles_default
|
|
29
|
-
} from "./chunk.
|
|
29
|
+
} from "./chunk.56J5UZ5O.js";
|
|
30
30
|
import {
|
|
31
31
|
__decorateClass
|
|
32
32
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -356,4 +356,4 @@ __decorateClass([
|
|
|
356
356
|
export {
|
|
357
357
|
SynRadioGroup
|
|
358
358
|
};
|
|
359
|
-
//# sourceMappingURL=chunk.
|
|
359
|
+
//# sourceMappingURL=chunk.NQSOUJKR.js.map
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// src/components/alert/alert.styles.ts
|
|
2
|
+
import { css } from "lit";
|
|
3
|
+
var alert_styles_default = css`
|
|
4
|
+
/* stylelint-disable */
|
|
5
|
+
:host {
|
|
6
|
+
display: contents;
|
|
7
|
+
|
|
8
|
+
/* For better DX, we'll reset the margin here so the base part can inherit it */
|
|
9
|
+
margin: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.alert {
|
|
13
|
+
position: relative;
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: stretch;
|
|
16
|
+
background-color: var(--syn-panel-background-color);
|
|
17
|
+
border: solid var(--syn-panel-border-width) var(--syn-panel-border-color);
|
|
18
|
+
border-top-width: calc(var(--syn-panel-border-width) * 3);
|
|
19
|
+
border-radius: var(--syn-border-radius-medium);
|
|
20
|
+
font-family: var(--syn-font-sans);
|
|
21
|
+
font-size: var(--syn-font-size-small);
|
|
22
|
+
font-weight: var(--syn-font-weight-normal);
|
|
23
|
+
line-height: 1.6;
|
|
24
|
+
color: var(--syn-color-neutral-700);
|
|
25
|
+
margin: inherit;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.alert:not(.alert--has-icon) .alert__icon,
|
|
29
|
+
.alert:not(.alert--closable) .alert__close-button {
|
|
30
|
+
display: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.alert__icon {
|
|
34
|
+
flex: 0 0 auto;
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
font-size: var(--syn-font-size-large);
|
|
38
|
+
padding-inline-start: var(--syn-spacing-large);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.alert__message {
|
|
42
|
+
flex: 1 1 auto;
|
|
43
|
+
display: block;
|
|
44
|
+
padding: var(--syn-spacing-large);
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.alert__close-button {
|
|
49
|
+
flex: 0 0 auto;
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
font-size: var(--syn-font-size-medium);
|
|
53
|
+
padding-inline-end: var(--syn-spacing-medium);
|
|
54
|
+
}
|
|
55
|
+
`;
|
|
56
|
+
|
|
57
|
+
export {
|
|
58
|
+
alert_styles_default
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=chunk.PS4UJFYT.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/alert/alert.styles.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 { css } from 'lit';\n\nexport default css`\n\t/* stylelint-disable */\n :host {\n display: contents;\n\n /* For better DX, we'll reset the margin here so the base part can inherit it */\n margin: 0;\n }\n\n .alert {\n position: relative;\n display: flex;\n align-items: stretch;\n background-color: var(--syn-panel-background-color);\n border: solid var(--syn-panel-border-width) var(--syn-panel-border-color);\n border-top-width: calc(var(--syn-panel-border-width) * 3);\n border-radius: var(--syn-border-radius-medium);\n font-family: var(--syn-font-sans);\n font-size: var(--syn-font-size-small);\n font-weight: var(--syn-font-weight-normal);\n line-height: 1.6;\n color: var(--syn-color-neutral-700);\n margin: inherit;\n }\n\n .alert:not(.alert--has-icon) .alert__icon,\n .alert:not(.alert--closable) .alert__close-button {\n display: none;\n }\n\n .alert__icon {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n font-size: var(--syn-font-size-large);\n padding-inline-start: var(--syn-spacing-large);\n }\n\n .alert__message {\n flex: 1 1 auto;\n display: block;\n padding: var(--syn-spacing-large);\n overflow: hidden;\n }\n\n .alert__close-button {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n font-size: var(--syn-font-size-medium);\n padding-inline-end: var(--syn-spacing-medium);\n }\n`;\n"],
|
|
5
|
+
"mappings": ";AAMA,SAAS,WAAW;AAEpB,IAAO,uBAAQ;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
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynInput
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.FE5K4IMY.js";
|
|
4
4
|
|
|
5
5
|
// src/components/input/input.ts
|
|
6
6
|
var input_default = SynInput;
|
|
@@ -9,4 +9,4 @@ SynInput.define("syn-input");
|
|
|
9
9
|
export {
|
|
10
10
|
input_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.PUZSGDYU.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
SynergyElement,
|
|
12
12
|
component_styles_default
|
|
13
|
-
} from "./chunk.
|
|
13
|
+
} from "./chunk.56J5UZ5O.js";
|
|
14
14
|
import {
|
|
15
15
|
__decorateClass
|
|
16
16
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -66,4 +66,4 @@ __decorateClass([
|
|
|
66
66
|
export {
|
|
67
67
|
SynProgressBar
|
|
68
68
|
};
|
|
69
|
-
//# sourceMappingURL=chunk.
|
|
69
|
+
//# sourceMappingURL=chunk.QUK3LXRT.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynHeader
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.KRKLIXKV.js";
|
|
4
4
|
|
|
5
5
|
// src/components/header/header.ts
|
|
6
6
|
var header_default = SynHeader;
|
|
@@ -9,4 +9,4 @@ SynHeader.define("syn-header");
|
|
|
9
9
|
export {
|
|
10
10
|
header_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.QVWYVLGP.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/alert/alert.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 SynAlert from './alert.component.js';\n\nexport * from './alert.component.js';\nexport default SynAlert;\n\nSynAlert.define('syn-alert');\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'syn-alert': SynAlert;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;AASA,IAAO,gBAAQ;AAEf,SAAS,OAAO,WAAW;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk.KG52EHDB.js";
|
|
4
4
|
import {
|
|
5
5
|
SynDivider
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.4XKOBCVD.js";
|
|
7
7
|
import {
|
|
8
8
|
HasSlotController
|
|
9
9
|
} from "./chunk.66WXVGAW.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk.AVTU2BGE.js";
|
|
13
13
|
import {
|
|
14
14
|
SynergyElement
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.56J5UZ5O.js";
|
|
16
16
|
import {
|
|
17
17
|
__decorateClass
|
|
18
18
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -93,4 +93,4 @@ __decorateClass([
|
|
|
93
93
|
export {
|
|
94
94
|
SynOptgroup
|
|
95
95
|
};
|
|
96
|
-
//# sourceMappingURL=chunk.
|
|
96
|
+
//# sourceMappingURL=chunk.RWXSOQP2.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
option_custom_styles_default
|
|
3
|
-
} from "./chunk.3B24TYVN.js";
|
|
4
1
|
import {
|
|
5
2
|
option_styles_default
|
|
6
3
|
} from "./chunk.CFIQXXMW.js";
|
|
4
|
+
import {
|
|
5
|
+
option_custom_styles_default
|
|
6
|
+
} from "./chunk.3B24TYVN.js";
|
|
7
7
|
import {
|
|
8
8
|
SynIcon
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.DJF4JI4X.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.56J5UZ5O.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.SQO3FMZF.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynButtonGroup
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.C6NSZT54.js";
|
|
4
4
|
|
|
5
5
|
// src/components/button-group/button-group.ts
|
|
6
6
|
var button_group_default = SynButtonGroup;
|
|
@@ -9,4 +9,4 @@ SynButtonGroup.define("syn-button-group");
|
|
|
9
9
|
export {
|
|
10
10
|
button_group_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.SXVH6V2V.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynButton
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.KXRTRZVI.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.SYIU62AX.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynTextarea
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.4ITEU4FK.js";
|
|
4
4
|
|
|
5
5
|
// src/components/textarea/textarea.ts
|
|
6
6
|
var textarea_default = SynTextarea;
|
|
@@ -9,4 +9,4 @@ SynTextarea.define("syn-textarea");
|
|
|
9
9
|
export {
|
|
10
10
|
textarea_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.T22EPQFZ.js.map
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
} from "./chunk.BGHK4NQA.js";
|
|
7
7
|
import {
|
|
8
8
|
SynIconButton
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.VKYYJ2BL.js";
|
|
10
10
|
import {
|
|
11
11
|
LocalizeController
|
|
12
12
|
} from "./chunk.GEHO4WRP.js";
|
|
13
13
|
import {
|
|
14
14
|
SynergyElement,
|
|
15
15
|
component_styles_default
|
|
16
|
-
} from "./chunk.
|
|
16
|
+
} from "./chunk.56J5UZ5O.js";
|
|
17
17
|
import {
|
|
18
18
|
__decorateClass
|
|
19
19
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -76,4 +76,4 @@ __decorateClass([
|
|
|
76
76
|
export {
|
|
77
77
|
SynTag
|
|
78
78
|
};
|
|
79
|
-
//# sourceMappingURL=chunk.
|
|
79
|
+
//# sourceMappingURL=chunk.UJXG3FXH.js.map
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
} from "./chunk.LJQ7LEPV.js";
|
|
7
7
|
import {
|
|
8
8
|
SynIcon
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.DJF4JI4X.js";
|
|
10
10
|
import {
|
|
11
11
|
SynergyElement,
|
|
12
12
|
component_styles_default
|
|
13
|
-
} from "./chunk.
|
|
13
|
+
} from "./chunk.56J5UZ5O.js";
|
|
14
14
|
import {
|
|
15
15
|
__decorateClass
|
|
16
16
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -138,4 +138,4 @@ __decorateClass([
|
|
|
138
138
|
export {
|
|
139
139
|
SynIconButton
|
|
140
140
|
};
|
|
141
|
-
//# sourceMappingURL=chunk.
|
|
141
|
+
//# sourceMappingURL=chunk.VKYYJ2BL.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynRadioButton
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.7JIRQOP4.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.VQN6N2CM.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynPopup
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.FUU4FRAY.js";
|
|
4
|
+
import {
|
|
5
|
+
getTabbableBoundary
|
|
6
|
+
} from "./chunk.2QOQY4ZG.js";
|
|
4
7
|
import {
|
|
5
8
|
dropdown_custom_styles_default
|
|
6
9
|
} from "./chunk.2KYFCKCK.js";
|
|
7
10
|
import {
|
|
8
11
|
dropdown_styles_default
|
|
9
12
|
} from "./chunk.SLCYXMHB.js";
|
|
10
|
-
import {
|
|
11
|
-
getTabbableBoundary
|
|
12
|
-
} from "./chunk.2QOQY4ZG.js";
|
|
13
13
|
import {
|
|
14
14
|
animateTo,
|
|
15
15
|
stopAnimations,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
SynergyElement,
|
|
30
30
|
component_styles_default
|
|
31
|
-
} from "./chunk.
|
|
31
|
+
} from "./chunk.56J5UZ5O.js";
|
|
32
32
|
import {
|
|
33
33
|
__decorateClass
|
|
34
34
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -368,4 +368,4 @@ setDefaultAnimation("dropdown.hide", {
|
|
|
368
368
|
export {
|
|
369
369
|
SynDropdown
|
|
370
370
|
};
|
|
371
|
-
//# sourceMappingURL=chunk.
|
|
371
|
+
//# sourceMappingURL=chunk.VTYWG57Y.js.map
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
} from "./chunk.3FOVDOJX.js";
|
|
7
7
|
import {
|
|
8
8
|
SynDivider
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.4XKOBCVD.js";
|
|
10
10
|
import {
|
|
11
11
|
SynergyElement,
|
|
12
12
|
component_styles_default
|
|
13
|
-
} from "./chunk.
|
|
13
|
+
} from "./chunk.56J5UZ5O.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.X4NJXF6V.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
SynergyElement,
|
|
12
12
|
component_styles_default
|
|
13
|
-
} from "./chunk.
|
|
13
|
+
} from "./chunk.56J5UZ5O.js";
|
|
14
14
|
import {
|
|
15
15
|
__decorateClass
|
|
16
16
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -74,4 +74,4 @@ __decorateClass([
|
|
|
74
74
|
export {
|
|
75
75
|
SynProgressRing
|
|
76
76
|
};
|
|
77
|
-
//# sourceMappingURL=chunk.
|
|
77
|
+
//# sourceMappingURL=chunk.XIVWHHDF.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynMenu
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.6INMENLF.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.YKP4IONJ.js.map
|