@synergy-design-system/components 1.27.0 → 2.1.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/README.md +6 -0
- package/dist/chunks/{chunk.EBLECPJG.js → chunk.2FG75Q7J.js} +4 -4
- package/dist/chunks/{chunk.J5LCVXA5.js → chunk.36SZKAYW.js} +5 -5
- package/dist/chunks/{chunk.J5LCVXA5.js.map → chunk.36SZKAYW.js.map} +1 -1
- package/dist/chunks/{chunk.BKPZVGJQ.js → chunk.3ABNIRST.js} +3 -3
- package/dist/chunks/{chunk.TTS5Z3YN.js → chunk.3HLC4LA4.js} +2 -2
- package/dist/chunks/{chunk.JH2RNNHN.js → chunk.3VLVBVTP.js} +10 -10
- package/dist/chunks/{chunk.BTBIQMBX.js → chunk.3YSKET4G.js} +2 -2
- package/dist/chunks/{chunk.O3YPM3KC.js → chunk.4CZBOBMX.js} +2 -2
- package/dist/chunks/{chunk.ZYUVZEJW.js → chunk.4RDYWHUI.js} +2 -2
- package/dist/chunks/{chunk.3ZYWXZRL.js → chunk.53Q6SWKS.js} +2 -2
- package/dist/chunks/chunk.63OREJEF.js +356 -0
- package/dist/chunks/chunk.63OREJEF.js.map +7 -0
- package/dist/chunks/{chunk.DF2335CD.js → chunk.6UEMF3N6.js} +4 -4
- package/dist/chunks/{chunk.QY3GFWGZ.js → chunk.6XXPHG57.js} +2 -1
- package/dist/chunks/{chunk.QY3GFWGZ.js.map → chunk.6XXPHG57.js.map} +2 -2
- package/dist/chunks/{chunk.3QPG42BO.js → chunk.74RW2G4A.js} +12 -12
- package/dist/chunks/chunk.74RW2G4A.js.map +7 -0
- package/dist/chunks/{chunk.ILTSTORV.js → chunk.76N53L44.js} +3 -3
- package/dist/chunks/{chunk.TUIMTZS3.js → chunk.7BN75LQX.js} +3 -3
- package/dist/chunks/{chunk.QZNE2FOK.js → chunk.7C7XOARZ.js} +2 -2
- package/dist/chunks/{chunk.22MYJOLE.js → chunk.7ESCUXNQ.js} +3 -3
- package/dist/chunks/chunk.7FKF5RI3.js +12 -0
- package/dist/chunks/chunk.7FKF5RI3.js.map +7 -0
- package/dist/chunks/{chunk.I2EUWBRS.js → chunk.7KDXBRUI.js} +2 -2
- package/dist/chunks/{chunk.WBMLUOGK.js → chunk.7Q7PVXO3.js} +44 -27
- package/dist/chunks/chunk.7Q7PVXO3.js.map +7 -0
- package/dist/chunks/{chunk.QLDA2CKN.js → chunk.7RF5DYVF.js} +2 -2
- package/dist/chunks/{chunk.PYXHGNNO.js → chunk.ABWTBF7U.js} +2 -2
- package/dist/chunks/{chunk.RU4ZC6UP.js → chunk.ABZAI4LR.js} +6 -6
- package/dist/chunks/{chunk.CWXJ42YP.js → chunk.AM4TRH2T.js} +4 -4
- package/dist/chunks/{chunk.WG2QFF66.js → chunk.B7T2GNE3.js} +5 -5
- package/dist/chunks/{chunk.MOGGUYYP.js → chunk.BMDVBBSK.js} +3 -3
- package/dist/chunks/{chunk.P6KHTL53.js → chunk.C6OY6VJH.js} +2 -2
- package/dist/chunks/{chunk.6NKWF633.js → chunk.CK72A4UN.js} +2 -2
- package/dist/chunks/{chunk.6FQ4SKI2.js → chunk.CSLZHXEE.js} +2 -2
- package/dist/chunks/{chunk.CQF2SSDJ.js → chunk.CXJXUIHE.js} +2 -2
- package/dist/chunks/{chunk.SHIBG5ZI.js → chunk.DYLLTTO7.js} +4 -4
- package/dist/chunks/{chunk.JVN6QVKB.js → chunk.EPP5MGNJ.js} +3 -3
- package/dist/chunks/{chunk.VYQU5NRM.js → chunk.F6HATFB6.js} +3 -3
- package/dist/chunks/{chunk.KQHYIQJN.js → chunk.G3RGLGE5.js} +2 -2
- package/dist/chunks/{chunk.ULXRBTQD.js → chunk.GC2WQKSX.js} +2 -2
- package/dist/chunks/{chunk.3TRBUEJ3.js → chunk.GK2R5VV6.js} +2 -2
- package/dist/chunks/{chunk.ZOSQLG4U.js → chunk.GNT5NIFP.js} +6 -6
- package/dist/chunks/{chunk.S7G2FNQC.js → chunk.GRPQ7TL2.js} +2 -2
- package/dist/chunks/{chunk.ET3NIUTG.js → chunk.HMNKECG7.js} +2 -2
- package/dist/chunks/{chunk.VCOQY4Y7.js → chunk.HQUIJTRL.js} +2 -2
- package/dist/chunks/{chunk.VHZOV7T4.js → chunk.IFVLU7ZD.js} +2 -2
- package/dist/chunks/{chunk.NTXHHR4Y.js → chunk.IJKGJOBG.js} +2 -2
- package/dist/chunks/{chunk.GUJCUZXE.js → chunk.IUB3EVHS.js} +2 -2
- package/dist/chunks/{chunk.2FONE7D4.js → chunk.IZVJSS3N.js} +2 -2
- package/dist/chunks/{chunk.AGPBBA42.js → chunk.J6CJP4LF.js} +3 -3
- package/dist/chunks/{chunk.66MOXMDP.js → chunk.JF333ACU.js} +2 -2
- package/dist/chunks/{chunk.ZMVR45S6.js → chunk.JMRR5VH7.js} +2 -2
- package/dist/chunks/{chunk.IC2DDTSC.js → chunk.JWVUCFMH.js} +2 -2
- package/dist/chunks/{chunk.PK3QUCBG.js → chunk.JZHMDO6I.js} +2 -2
- package/dist/chunks/{chunk.VX7U6NLG.js → chunk.K3D5B3ZN.js} +2 -2
- package/dist/chunks/{chunk.FGE6BQJ3.js → chunk.KGJX3LKJ.js} +2 -2
- package/dist/chunks/{chunk.CVQEFENM.js → chunk.LTKXEY4M.js} +2 -2
- package/dist/chunks/{chunk.5PFW6CJB.js → chunk.LVTHHB6Y.js} +2 -2
- package/dist/chunks/{chunk.GEHO4WRP.js → chunk.M6WH7QEC.js} +2 -2
- package/dist/chunks/{chunk.GEHO4WRP.js.map → chunk.M6WH7QEC.js.map} +1 -1
- package/dist/chunks/{chunk.54CX4HAW.js → chunk.N3SU4QV7.js} +2 -2
- package/dist/chunks/{chunk.XNSEXZCK.js → chunk.NF4C4WLY.js} +2 -2
- package/dist/chunks/{chunk.EHOKGWX4.js → chunk.NGI3AJKA.js} +5 -5
- package/dist/chunks/chunk.NGI67WXT.js +235 -0
- package/dist/chunks/chunk.NGI67WXT.js.map +7 -0
- package/dist/chunks/{chunk.ALVUFXV4.js → chunk.NHFTJEYN.js} +2 -2
- package/dist/chunks/{chunk.ALVUFXV4.js.map → chunk.NHFTJEYN.js.map} +1 -1
- package/dist/chunks/{chunk.5YWK3G4K.js → chunk.NW5K3IBJ.js} +2 -2
- package/dist/chunks/chunk.NXTU4OEY.js +12 -0
- package/dist/chunks/chunk.NXTU4OEY.js.map +7 -0
- package/dist/chunks/chunk.OE4RXQU2.js +92 -0
- package/dist/chunks/chunk.OE4RXQU2.js.map +7 -0
- package/dist/chunks/{chunk.GO3CCKC3.js → chunk.ONW45GQI.js} +3 -3
- package/dist/chunks/chunk.ONW45GQI.js.map +7 -0
- package/dist/chunks/{chunk.KPSGO6JT.js → chunk.PGZOI4DU.js} +6 -6
- package/dist/chunks/{chunk.CUXUFPU7.js → chunk.PTVHS6BE.js} +3 -3
- package/dist/chunks/{chunk.7ERFK5ZT.js → chunk.PX5RMIM2.js} +6 -6
- package/dist/chunks/{chunk.7ERFK5ZT.js.map → chunk.PX5RMIM2.js.map} +2 -2
- package/dist/chunks/chunk.Q2LICMN2.js +65 -0
- package/dist/chunks/chunk.Q2LICMN2.js.map +7 -0
- package/dist/chunks/{chunk.LDKF7GK5.js → chunk.QG3EP4DT.js} +3 -3
- package/dist/chunks/chunk.QTTBNK5Q.js +192 -0
- package/dist/chunks/chunk.QTTBNK5Q.js.map +7 -0
- package/dist/chunks/{chunk.UHHXPHZM.js → chunk.QUR6IKYK.js} +2 -2
- package/dist/chunks/chunk.QYBARUDC.js +12 -0
- package/dist/chunks/chunk.QYBARUDC.js.map +7 -0
- package/dist/chunks/{chunk.3WS2ECKG.js → chunk.RESDFE73.js} +4 -4
- package/dist/chunks/{chunk.VTKIDI7N.js → chunk.SDQC32B3.js} +5 -3
- package/dist/chunks/chunk.SDQC32B3.js.map +7 -0
- package/dist/chunks/{chunk.CGOGFD2K.js → chunk.SGA64JW4.js} +2 -2
- package/dist/chunks/{chunk.75XQL6PG.js → chunk.SUZB2AJU.js} +4 -4
- package/dist/chunks/{chunk.O7UOM5HF.js → chunk.SZFQAOEB.js} +2 -2
- package/dist/chunks/{chunk.IODSZKC3.js → chunk.TZCBMMHE.js} +2 -2
- package/dist/chunks/{chunk.AORDSCKC.js → chunk.UYPITOFJ.js} +2 -2
- package/dist/chunks/{chunk.N6ZPVKHZ.js → chunk.V4G76JVW.js} +6 -6
- package/dist/chunks/{chunk.CAVC2BLL.js → chunk.VKFY3IRP.js} +3 -3
- package/dist/chunks/{chunk.JM6D5VUH.js → chunk.WFVW45MV.js} +2 -2
- package/dist/chunks/chunk.WJ7KOQIH.js +119 -0
- package/dist/chunks/chunk.WJ7KOQIH.js.map +7 -0
- package/dist/chunks/chunk.WXYS5UVK.js +77 -0
- package/dist/chunks/chunk.WXYS5UVK.js.map +7 -0
- package/dist/chunks/{chunk.6LNLSUMW.js → chunk.X5ELNELV.js} +4 -4
- package/dist/chunks/chunk.XHWYGYMQ.js +13 -0
- package/dist/chunks/chunk.XHWYGYMQ.js.map +7 -0
- package/dist/chunks/{chunk.DCMV63MP.js → chunk.XMQLJOHH.js} +2 -2
- package/dist/chunks/{chunk.U33GULWV.js → chunk.YHWGQZLS.js} +2 -2
- package/dist/chunks/chunk.YUHA7UIQ.js +24 -0
- package/dist/chunks/chunk.YUHA7UIQ.js.map +7 -0
- package/dist/chunks/{chunk.YGWAASPJ.js → chunk.Z5MQOTP5.js} +2 -2
- package/dist/chunks/{chunk.FNQSNNJR.js → chunk.ZV7LSX6O.js} +2 -2
- package/dist/chunks/{chunk.7XHOKC22.js → chunk.ZZY64J7L.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 +5 -5
- package/dist/components/badge/badge.js +6 -6
- package/dist/components/breadcrumb/breadcrumb.component.js +7 -7
- package/dist/components/breadcrumb/breadcrumb.js +8 -8
- package/dist/components/breadcrumb-item/breadcrumb-item.component.js +2 -2
- package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
- 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/card/card.component.d.ts +2 -2
- package/dist/components/card/card.component.js +3 -3
- package/dist/components/card/card.custom.styles.js +1 -1
- package/dist/components/card/card.js +4 -4
- package/dist/components/checkbox/checkbox.component.js +5 -5
- package/dist/components/checkbox/checkbox.js +6 -6
- package/dist/components/dialog/dialog.component.js +8 -8
- package/dist/components/dialog/dialog.js +9 -9
- package/dist/components/divider/divider.component.js +2 -2
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/drawer/drawer.component.js +8 -8
- package/dist/components/drawer/drawer.js +9 -9
- package/dist/components/dropdown/dropdown.component.js +5 -5
- package/dist/components/dropdown/dropdown.js +6 -6
- package/dist/components/header/header.component.d.ts +26 -18
- package/dist/components/header/header.component.js +8 -8
- package/dist/components/header/header.js +9 -9
- package/dist/components/icon/icon.component.js +4 -4
- package/dist/components/icon/icon.js +5 -5
- package/dist/components/icon/library.js +2 -2
- package/dist/components/icon/library.system.js +1 -1
- 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 +9 -9
- package/dist/components/menu-item/menu-item.js +10 -10
- package/dist/components/menu-item/submenu-controller.js +2 -2
- 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.d.ts +1 -5
- 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 +4 -4
- package/dist/components/progress-bar/progress-bar.js +5 -5
- package/dist/components/progress-ring/progress-ring.component.js +4 -4
- package/dist/components/progress-ring/progress-ring.js +5 -5
- 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 +3 -3
- package/dist/components/radio-group/radio-group.js +4 -4
- package/dist/components/select/select.component.js +10 -10
- package/dist/components/select/select.js +11 -11
- package/dist/components/side-nav/side-nav.component.js +11 -11
- package/dist/components/side-nav/side-nav.js +12 -12
- package/dist/components/side-nav/side-nav.styles.js +1 -1
- package/dist/components/spinner/spinner.component.js +4 -4
- package/dist/components/spinner/spinner.js +5 -5
- package/dist/components/switch/switch.component.js +2 -2
- package/dist/components/switch/switch.js +3 -3
- package/dist/components/tab/tab.component.d.ts +51 -0
- package/dist/components/tab/tab.component.js +24 -0
- package/dist/components/tab/tab.component.js.map +7 -0
- package/dist/components/tab/tab.custom.styles.d.ts +2 -0
- package/dist/components/tab/tab.custom.styles.js +8 -0
- package/dist/components/tab/tab.custom.styles.js.map +7 -0
- package/dist/components/tab/tab.d.ts +8 -0
- package/dist/components/tab/tab.js +25 -0
- package/dist/components/tab/tab.js.map +7 -0
- package/dist/components/tab/tab.styles.d.ts +2 -0
- package/dist/components/tab/tab.styles.js +8 -0
- package/dist/components/tab/tab.styles.js.map +7 -0
- package/dist/components/tab-group/tab-group.component.d.ts +85 -0
- package/dist/components/tab-group/tab-group.component.js +25 -0
- package/dist/components/tab-group/tab-group.component.js.map +7 -0
- package/dist/components/tab-group/tab-group.custom.styles.d.ts +2 -0
- package/dist/components/tab-group/tab-group.custom.styles.js +8 -0
- package/dist/components/tab-group/tab-group.custom.styles.js.map +7 -0
- package/dist/components/tab-group/tab-group.d.ts +8 -0
- package/dist/components/tab-group/tab-group.js +26 -0
- package/dist/components/tab-group/tab-group.js.map +7 -0
- package/dist/components/tab-group/tab-group.styles.d.ts +2 -0
- package/dist/components/tab-group/tab-group.styles.js +8 -0
- package/dist/components/tab-group/tab-group.styles.js.map +7 -0
- package/dist/components/tab-panel/tab-panel.component.d.ts +26 -0
- package/dist/components/tab-panel/tab-panel.component.js +12 -0
- package/dist/components/tab-panel/tab-panel.component.js.map +7 -0
- package/dist/components/tab-panel/tab-panel.custom.styles.d.ts +2 -0
- package/dist/components/tab-panel/tab-panel.custom.styles.js +8 -0
- package/dist/components/tab-panel/tab-panel.custom.styles.js.map +7 -0
- package/dist/components/tab-panel/tab-panel.d.ts +8 -0
- package/dist/components/tab-panel/tab-panel.js +13 -0
- package/dist/components/tab-panel/tab-panel.js.map +7 -0
- package/dist/components/tab-panel/tab-panel.styles.d.ts +2 -0
- package/dist/components/tab-panel/tab-panel.styles.js +8 -0
- package/dist/components/tab-panel/tab-panel.styles.js.map +7 -0
- package/dist/components/tag/tag.component.js +8 -8
- package/dist/components/tag/tag.js +9 -9
- package/dist/components/textarea/textarea.component.js +2 -2
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/components/tooltip/tooltip.component.js +5 -5
- package/dist/components/tooltip/tooltip.js +6 -6
- package/dist/custom-elements.json +834 -81
- package/dist/events/events.d.ts +6 -2
- package/dist/events/syn-burger-menu-closed.d.ts +6 -0
- package/dist/events/syn-burger-menu-hidden.d.ts +6 -0
- package/dist/events/syn-burger-menu-open.d.ts +6 -0
- package/dist/events/syn-close.d.ts +6 -0
- package/dist/events/syn-tab-hide.d.ts +8 -0
- package/dist/events/syn-tab-show.d.ts +8 -0
- package/dist/internal/test/element-visible-overflow.d.ts +11 -0
- package/dist/internal/test/wait-for-scrolling.d.ts +9 -0
- package/dist/synergy.d.ts +3 -0
- package/dist/synergy.js +111 -90
- package/dist/translations/de.js +5 -4
- package/dist/translations/de.js.map +2 -2
- package/dist/translations/en.js +1 -1
- package/dist/utilities/icon-library.js +2 -2
- package/dist/utilities/localize.d.ts +1 -0
- package/dist/utilities/localize.js +2 -2
- package/dist/vscode.html-custom-data.json +103 -19
- package/package.json +5 -5
- package/dist/chunks/chunk.3QPG42BO.js.map +0 -7
- package/dist/chunks/chunk.GO3CCKC3.js.map +0 -7
- package/dist/chunks/chunk.VTKIDI7N.js.map +0 -7
- package/dist/chunks/chunk.WBMLUOGK.js.map +0 -7
- package/dist/events/syn-burger-menu-hide.d.ts +0 -6
- package/dist/events/syn-burger-menu-show.d.ts +0 -6
- /package/dist/chunks/{chunk.EBLECPJG.js.map → chunk.2FG75Q7J.js.map} +0 -0
- /package/dist/chunks/{chunk.BKPZVGJQ.js.map → chunk.3ABNIRST.js.map} +0 -0
- /package/dist/chunks/{chunk.TTS5Z3YN.js.map → chunk.3HLC4LA4.js.map} +0 -0
- /package/dist/chunks/{chunk.JH2RNNHN.js.map → chunk.3VLVBVTP.js.map} +0 -0
- /package/dist/chunks/{chunk.BTBIQMBX.js.map → chunk.3YSKET4G.js.map} +0 -0
- /package/dist/chunks/{chunk.O3YPM3KC.js.map → chunk.4CZBOBMX.js.map} +0 -0
- /package/dist/chunks/{chunk.ZYUVZEJW.js.map → chunk.4RDYWHUI.js.map} +0 -0
- /package/dist/chunks/{chunk.3ZYWXZRL.js.map → chunk.53Q6SWKS.js.map} +0 -0
- /package/dist/chunks/{chunk.DF2335CD.js.map → chunk.6UEMF3N6.js.map} +0 -0
- /package/dist/chunks/{chunk.ILTSTORV.js.map → chunk.76N53L44.js.map} +0 -0
- /package/dist/chunks/{chunk.TUIMTZS3.js.map → chunk.7BN75LQX.js.map} +0 -0
- /package/dist/chunks/{chunk.QZNE2FOK.js.map → chunk.7C7XOARZ.js.map} +0 -0
- /package/dist/chunks/{chunk.22MYJOLE.js.map → chunk.7ESCUXNQ.js.map} +0 -0
- /package/dist/chunks/{chunk.I2EUWBRS.js.map → chunk.7KDXBRUI.js.map} +0 -0
- /package/dist/chunks/{chunk.QLDA2CKN.js.map → chunk.7RF5DYVF.js.map} +0 -0
- /package/dist/chunks/{chunk.PYXHGNNO.js.map → chunk.ABWTBF7U.js.map} +0 -0
- /package/dist/chunks/{chunk.RU4ZC6UP.js.map → chunk.ABZAI4LR.js.map} +0 -0
- /package/dist/chunks/{chunk.CWXJ42YP.js.map → chunk.AM4TRH2T.js.map} +0 -0
- /package/dist/chunks/{chunk.WG2QFF66.js.map → chunk.B7T2GNE3.js.map} +0 -0
- /package/dist/chunks/{chunk.MOGGUYYP.js.map → chunk.BMDVBBSK.js.map} +0 -0
- /package/dist/chunks/{chunk.P6KHTL53.js.map → chunk.C6OY6VJH.js.map} +0 -0
- /package/dist/chunks/{chunk.6NKWF633.js.map → chunk.CK72A4UN.js.map} +0 -0
- /package/dist/chunks/{chunk.6FQ4SKI2.js.map → chunk.CSLZHXEE.js.map} +0 -0
- /package/dist/chunks/{chunk.CQF2SSDJ.js.map → chunk.CXJXUIHE.js.map} +0 -0
- /package/dist/chunks/{chunk.SHIBG5ZI.js.map → chunk.DYLLTTO7.js.map} +0 -0
- /package/dist/chunks/{chunk.JVN6QVKB.js.map → chunk.EPP5MGNJ.js.map} +0 -0
- /package/dist/chunks/{chunk.VYQU5NRM.js.map → chunk.F6HATFB6.js.map} +0 -0
- /package/dist/chunks/{chunk.KQHYIQJN.js.map → chunk.G3RGLGE5.js.map} +0 -0
- /package/dist/chunks/{chunk.ULXRBTQD.js.map → chunk.GC2WQKSX.js.map} +0 -0
- /package/dist/chunks/{chunk.3TRBUEJ3.js.map → chunk.GK2R5VV6.js.map} +0 -0
- /package/dist/chunks/{chunk.ZOSQLG4U.js.map → chunk.GNT5NIFP.js.map} +0 -0
- /package/dist/chunks/{chunk.S7G2FNQC.js.map → chunk.GRPQ7TL2.js.map} +0 -0
- /package/dist/chunks/{chunk.ET3NIUTG.js.map → chunk.HMNKECG7.js.map} +0 -0
- /package/dist/chunks/{chunk.VCOQY4Y7.js.map → chunk.HQUIJTRL.js.map} +0 -0
- /package/dist/chunks/{chunk.VHZOV7T4.js.map → chunk.IFVLU7ZD.js.map} +0 -0
- /package/dist/chunks/{chunk.NTXHHR4Y.js.map → chunk.IJKGJOBG.js.map} +0 -0
- /package/dist/chunks/{chunk.GUJCUZXE.js.map → chunk.IUB3EVHS.js.map} +0 -0
- /package/dist/chunks/{chunk.2FONE7D4.js.map → chunk.IZVJSS3N.js.map} +0 -0
- /package/dist/chunks/{chunk.AGPBBA42.js.map → chunk.J6CJP4LF.js.map} +0 -0
- /package/dist/chunks/{chunk.66MOXMDP.js.map → chunk.JF333ACU.js.map} +0 -0
- /package/dist/chunks/{chunk.ZMVR45S6.js.map → chunk.JMRR5VH7.js.map} +0 -0
- /package/dist/chunks/{chunk.IC2DDTSC.js.map → chunk.JWVUCFMH.js.map} +0 -0
- /package/dist/chunks/{chunk.PK3QUCBG.js.map → chunk.JZHMDO6I.js.map} +0 -0
- /package/dist/chunks/{chunk.VX7U6NLG.js.map → chunk.K3D5B3ZN.js.map} +0 -0
- /package/dist/chunks/{chunk.FGE6BQJ3.js.map → chunk.KGJX3LKJ.js.map} +0 -0
- /package/dist/chunks/{chunk.CVQEFENM.js.map → chunk.LTKXEY4M.js.map} +0 -0
- /package/dist/chunks/{chunk.5PFW6CJB.js.map → chunk.LVTHHB6Y.js.map} +0 -0
- /package/dist/chunks/{chunk.54CX4HAW.js.map → chunk.N3SU4QV7.js.map} +0 -0
- /package/dist/chunks/{chunk.XNSEXZCK.js.map → chunk.NF4C4WLY.js.map} +0 -0
- /package/dist/chunks/{chunk.EHOKGWX4.js.map → chunk.NGI3AJKA.js.map} +0 -0
- /package/dist/chunks/{chunk.5YWK3G4K.js.map → chunk.NW5K3IBJ.js.map} +0 -0
- /package/dist/chunks/{chunk.KPSGO6JT.js.map → chunk.PGZOI4DU.js.map} +0 -0
- /package/dist/chunks/{chunk.CUXUFPU7.js.map → chunk.PTVHS6BE.js.map} +0 -0
- /package/dist/chunks/{chunk.LDKF7GK5.js.map → chunk.QG3EP4DT.js.map} +0 -0
- /package/dist/chunks/{chunk.UHHXPHZM.js.map → chunk.QUR6IKYK.js.map} +0 -0
- /package/dist/chunks/{chunk.3WS2ECKG.js.map → chunk.RESDFE73.js.map} +0 -0
- /package/dist/chunks/{chunk.CGOGFD2K.js.map → chunk.SGA64JW4.js.map} +0 -0
- /package/dist/chunks/{chunk.75XQL6PG.js.map → chunk.SUZB2AJU.js.map} +0 -0
- /package/dist/chunks/{chunk.O7UOM5HF.js.map → chunk.SZFQAOEB.js.map} +0 -0
- /package/dist/chunks/{chunk.IODSZKC3.js.map → chunk.TZCBMMHE.js.map} +0 -0
- /package/dist/chunks/{chunk.AORDSCKC.js.map → chunk.UYPITOFJ.js.map} +0 -0
- /package/dist/chunks/{chunk.N6ZPVKHZ.js.map → chunk.V4G76JVW.js.map} +0 -0
- /package/dist/chunks/{chunk.CAVC2BLL.js.map → chunk.VKFY3IRP.js.map} +0 -0
- /package/dist/chunks/{chunk.JM6D5VUH.js.map → chunk.WFVW45MV.js.map} +0 -0
- /package/dist/chunks/{chunk.6LNLSUMW.js.map → chunk.X5ELNELV.js.map} +0 -0
- /package/dist/chunks/{chunk.DCMV63MP.js.map → chunk.XMQLJOHH.js.map} +0 -0
- /package/dist/chunks/{chunk.U33GULWV.js.map → chunk.YHWGQZLS.js.map} +0 -0
- /package/dist/chunks/{chunk.YGWAASPJ.js.map → chunk.Z5MQOTP5.js.map} +0 -0
- /package/dist/chunks/{chunk.FNQSNNJR.js.map → chunk.ZV7LSX6O.js.map} +0 -0
- /package/dist/chunks/{chunk.7XHOKC22.js.map → chunk.ZZY64J7L.js.map} +0 -0
|
@@ -263,8 +263,8 @@
|
|
|
263
263
|
"description": "Cards can be used to group related subjects in a container.\n---\n\n\n### **Slots:**\n - _default_ - The card's main content.\n- **header** - An optional header for the card.\n- **footer** - An optional footer for the card.\n- **image** - An optional image to render at the start of the card.\n\n### **CSS Properties:**\n - **--border-color** - The card's border color, including borders that occur inside the card. _(default: undefined)_\n- **--border-radius** - The border radius for the card's edges. _(default: undefined)_\n- **--border-width** - The width of the card's borders. _(default: undefined)_\n- **--padding** - The padding to use for the card's sections. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **image** - The container that wraps the card's image.\n- **header** - The container that wraps the card's header.\n- **body** - The container that wraps the card's main content.\n- **footer** - The container that wraps the card's footer.",
|
|
264
264
|
"attributes": [
|
|
265
265
|
{
|
|
266
|
-
"name": "
|
|
267
|
-
"description": "Draws the card
|
|
266
|
+
"name": "sharp",
|
|
267
|
+
"description": "Draws the card with sharp edges. Can be used e.g. when nesting multiple syn-cards to create hierarchy.",
|
|
268
268
|
"values": []
|
|
269
269
|
}
|
|
270
270
|
],
|
|
@@ -495,22 +495,21 @@
|
|
|
495
495
|
},
|
|
496
496
|
{
|
|
497
497
|
"name": "syn-header",
|
|
498
|
-
"description": "The <syn-header /> element provides a generic application header\nthat can be used to add applications name, toolbar and primary navigation.\n---\n\n\n### **Events:**\n - **syn-burger-menu-
|
|
498
|
+
"description": "The <syn-header /> element provides a generic application header\nthat can be used to add applications name, toolbar and primary navigation.\n---\n\n\n### **Events:**\n - **syn-burger-menu-closed** - Emitted when the burger menu is toggled to closed\n- **syn-burger-menu-hidden** - Emitted when the burger menu is toggled to hidden\n- **syn-burger-menu-open** - Emitted when the burger menu is toggled to open\n\n### **Methods:**\n - **connectSideNavigation(sideNav: _SynSideNav | null_)** - Connect a `syn-side-nav` to add automatic interaction of the header with the side navigation\nlike showing the burger menu icon and open / close handling.\n\nIf no side navigation is connected, the header will use the first `syn-side-nav` element it\nfinds.\n\n### **Slots:**\n - **label** - The label for the header\n- **logo** - The logo that should be displayed. Will fall back to the SICK logo if not provided\n- **meta-navigation** - The meta-navigation is used to add various application toolbar icons Best used with `<syn-icon-button />` and `<syn-drop-down />`\n- **navigation** - This slot can be used to add an optional horizontal navigation\n- **open-burger-menu-icon** - An icon to use in lieu of the default burger-menu=open state. The default close icon is a 'x'.\n- **closed-burger-menu-icon** - An icon to use in lieu of the default burger-menu=closed state. The default open icon is a burger menu.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper\n- **content** - The wrapper most content items reside\n- **logo** - The wrapper the application logo resides in\n- **label** - The element wrapping the application name\n- **meta-navigation** - The Item wrapping the optional application menu\n- **navigation** - The wrapper that is holding the optional top navigation section\n- **burger-menu-toggle-button** - The button that toggles the burger menu",
|
|
499
499
|
"attributes": [
|
|
500
500
|
{
|
|
501
501
|
"name": "label",
|
|
502
|
-
"description": "The headers label. If you need to display HTML, use the `
|
|
502
|
+
"description": "The headers label. If you need to display HTML, use the `label` slot instead.",
|
|
503
503
|
"values": []
|
|
504
504
|
},
|
|
505
505
|
{
|
|
506
|
-
"name": "
|
|
507
|
-
"description": "
|
|
508
|
-
"values": [
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
"values": []
|
|
506
|
+
"name": "burger-menu",
|
|
507
|
+
"description": "Defines the current visibility and icon of the burger-menu icon.\nThe menu button is added automatically if the component finds a syn-side-nav in non-rail mode.\nThe following values can be used:\n- hidden: The burger menu is not visible\n- open: The burger menu is visible and shows the close icon\n- closed: The burger menu is visible and shows the open icon",
|
|
508
|
+
"values": [
|
|
509
|
+
{ "name": "hidden" },
|
|
510
|
+
{ "name": "open" },
|
|
511
|
+
{ "name": "closed" }
|
|
512
|
+
]
|
|
514
513
|
}
|
|
515
514
|
],
|
|
516
515
|
"references": [
|
|
@@ -1119,13 +1118,7 @@
|
|
|
1119
1118
|
{
|
|
1120
1119
|
"name": "syn-prio-nav",
|
|
1121
1120
|
"description": "The `<syn-prio-nav />` element provides a generic navigation bar\nthat can be used to group multiple navigation items (usually horizontal `<syn-nav-item />`s)\ntogether. It will automatically group all items not visible in the viewport into a custom\npriority menu.\n---\n\n\n### **Slots:**\n - _default_ - The given navigation items. Must be horizontal `<syn-nav-item>`s or have a role of \"menuitem\"\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **priority-menu** - The wrapper around the priority menu\n- **priority-menu-nav-item** - The navigation item for the priority menu\n- **priority-menu-label** - The label for the priority menu\n- **priority-menu-icon** - The icon for the priority menu\n- **priority-menu-container** - The container for the shifted navigation items, if there is not enough space.",
|
|
1122
|
-
"attributes": [
|
|
1123
|
-
{
|
|
1124
|
-
"name": "priority-menu-label",
|
|
1125
|
-
"description": "The components priority menu label.\nThis will be shown after the priority menu 3 dots link",
|
|
1126
|
-
"values": []
|
|
1127
|
-
}
|
|
1128
|
-
],
|
|
1121
|
+
"attributes": [],
|
|
1129
1122
|
"references": [
|
|
1130
1123
|
{
|
|
1131
1124
|
"name": "Documentation",
|
|
@@ -1494,6 +1487,97 @@
|
|
|
1494
1487
|
}
|
|
1495
1488
|
]
|
|
1496
1489
|
},
|
|
1490
|
+
{
|
|
1491
|
+
"name": "syn-tab",
|
|
1492
|
+
"description": "Tabs are used inside [tab groups](/components/tab-group) to represent and activate [tab panels](/components/tab-panel).\n---\n\n\n### **Events:**\n - **syn-close** - Emitted when the tab is closable and the close button is activated.\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus to the tab.\n- **blur()** - Removes focus from the tab.\n\n### **Slots:**\n - _default_ - The tab's label.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **close-button** - The close button, an `<syn-icon-button>`.\n- **close-button__base** - The close button's exported `base` part.",
|
|
1493
|
+
"attributes": [
|
|
1494
|
+
{
|
|
1495
|
+
"name": "panel",
|
|
1496
|
+
"description": "The name of the tab panel this tab is associated with. The panel must be located in the same tab group.",
|
|
1497
|
+
"values": []
|
|
1498
|
+
},
|
|
1499
|
+
{
|
|
1500
|
+
"name": "active",
|
|
1501
|
+
"description": "Draws the tab in an active state.",
|
|
1502
|
+
"values": []
|
|
1503
|
+
},
|
|
1504
|
+
{
|
|
1505
|
+
"name": "closable",
|
|
1506
|
+
"description": "Makes the tab closable and shows a close button.",
|
|
1507
|
+
"values": []
|
|
1508
|
+
},
|
|
1509
|
+
{
|
|
1510
|
+
"name": "disabled",
|
|
1511
|
+
"description": "Disables the tab and prevents selection.",
|
|
1512
|
+
"values": []
|
|
1513
|
+
}
|
|
1514
|
+
],
|
|
1515
|
+
"references": [
|
|
1516
|
+
{
|
|
1517
|
+
"name": "Documentation",
|
|
1518
|
+
"url": "https://synergy.style/components/tab"
|
|
1519
|
+
}
|
|
1520
|
+
]
|
|
1521
|
+
},
|
|
1522
|
+
{
|
|
1523
|
+
"name": "syn-tab-group",
|
|
1524
|
+
"description": "Tab groups organize content into a container that shows one section at a time.\n---\n\n\n### **Events:**\n - **syn-tab-show** - Emitted when a tab is shown. The payload of the event returns the \"panel\" attribute of the shown tab.\n- **syn-tab-hide** - Emitted when a tab is hidden. The payload of the event returns the \"panel\" attribute of the hidden tab.\n\n### **Methods:**\n - **show(panel: _string_)** - Shows the specified tab panel.\n\n### **Slots:**\n - _default_ - Used for grouping tab panels in the tab group. Must be `<syn-tab-panel>` elements.\n- **nav** - Used for grouping tabs in the tab group. Must be `<syn-tab>` elements.\n\n### **CSS Properties:**\n - **--indicator-color** - The color of the active tab indicator. _(default: undefined)_\n- **--indicator-width** - The width of the active tab indicator. _(default: undefined)_\n- **--track-color** - The color of the indicator's track (the line that separates tabs from panels). _(default: undefined)_\n- **--track-width** - The width of the indicator's track (the line that separates tabs from panels). _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **nav** - The tab group's navigation container where tabs are slotted in.\n- **tabs** - The container that wraps the tabs.\n- **active-tab-indicator** - The line that highlights the currently selected tab.\n- **body** - The tab group's body where tab panels are slotted in.\n- **scroll-button** - The previous/next scroll buttons that show when tabs are scrollable, an `<syn-icon-button>`.\n- **scroll-button--start** - The starting scroll button.\n- **scroll-button--end** - The ending scroll button.\n- **scroll-button__base** - The scroll button's exported `base` part.",
|
|
1525
|
+
"attributes": [
|
|
1526
|
+
{
|
|
1527
|
+
"name": "placement",
|
|
1528
|
+
"description": "The placement of the tabs.",
|
|
1529
|
+
"values": [{ "name": "top" }, { "name": "start" }, { "name": "end" }]
|
|
1530
|
+
},
|
|
1531
|
+
{
|
|
1532
|
+
"name": "activation",
|
|
1533
|
+
"description": "When set to auto, navigating tabs with the arrow keys will instantly show the corresponding tab panel. When set to\nmanual, the tab will receive focus but will not show until the user presses spacebar or enter.",
|
|
1534
|
+
"values": [{ "name": "auto" }, { "name": "manual" }]
|
|
1535
|
+
},
|
|
1536
|
+
{
|
|
1537
|
+
"name": "no-scroll-controls",
|
|
1538
|
+
"description": "Disables the scroll arrows that appear when tabs overflow.",
|
|
1539
|
+
"values": []
|
|
1540
|
+
},
|
|
1541
|
+
{
|
|
1542
|
+
"name": "contained",
|
|
1543
|
+
"description": "Draws the tab group as a contained element.",
|
|
1544
|
+
"values": []
|
|
1545
|
+
},
|
|
1546
|
+
{
|
|
1547
|
+
"name": "sharp",
|
|
1548
|
+
"description": "Draws the tab group with edges instead of roundings. Takes only effect if used with the 'contained' property",
|
|
1549
|
+
"values": []
|
|
1550
|
+
}
|
|
1551
|
+
],
|
|
1552
|
+
"references": [
|
|
1553
|
+
{
|
|
1554
|
+
"name": "Documentation",
|
|
1555
|
+
"url": "https://synergy.style/components/tab-group"
|
|
1556
|
+
}
|
|
1557
|
+
]
|
|
1558
|
+
},
|
|
1559
|
+
{
|
|
1560
|
+
"name": "syn-tab-panel",
|
|
1561
|
+
"description": "Tab panels are used inside [tab groups](/components/tab-group) to display tabbed content.\n---\n\n\n### **Slots:**\n - _default_ - The tab panel's content.\n\n### **CSS Properties:**\n - **--padding** - The tab panel's padding. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
1562
|
+
"attributes": [
|
|
1563
|
+
{
|
|
1564
|
+
"name": "name",
|
|
1565
|
+
"description": "The tab panel's name.",
|
|
1566
|
+
"values": []
|
|
1567
|
+
},
|
|
1568
|
+
{
|
|
1569
|
+
"name": "active",
|
|
1570
|
+
"description": "When true, the tab panel will be shown.",
|
|
1571
|
+
"values": []
|
|
1572
|
+
}
|
|
1573
|
+
],
|
|
1574
|
+
"references": [
|
|
1575
|
+
{
|
|
1576
|
+
"name": "Documentation",
|
|
1577
|
+
"url": "https://synergy.style/components/tab-panel"
|
|
1578
|
+
}
|
|
1579
|
+
]
|
|
1580
|
+
},
|
|
1497
1581
|
{
|
|
1498
1582
|
"name": "syn-tag",
|
|
1499
1583
|
"description": "Tags are used as labels to organize things or to indicate a selection.\n---\n\n\n### **Events:**\n - **syn-remove** - Emitted when the remove button is activated.\n\n### **Slots:**\n - _default_ - The tag's content.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **content** - The tag's content.\n- **remove-button** - The tag's remove button, an `<syn-icon-button>`.\n- **remove-button__base** - The remove button's exported `base` part.",
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"url": "https://www.sick.com"
|
|
5
5
|
},
|
|
6
6
|
"name": "@synergy-design-system/components",
|
|
7
|
-
"version": "1.
|
|
7
|
+
"version": "2.1.0",
|
|
8
8
|
"description": "",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@custom-elements-manifest/analyzer": "^0.9.4",
|
|
45
45
|
"@open-wc/testing": "^4.0.0",
|
|
46
|
-
"@playwright/test": "^1.
|
|
46
|
+
"@playwright/test": "^1.44.1",
|
|
47
47
|
"@semantic-release/changelog": "^6.0.3",
|
|
48
48
|
"@semantic-release/exec": "^6.0.3",
|
|
49
49
|
"@semantic-release/git": "^10.0.1",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@typescript-eslint/eslint-plugin": "^7.7.1",
|
|
53
53
|
"@typescript-eslint/parser": "^7.7.1",
|
|
54
54
|
"@web/dev-server-esbuild": "^1.0.2",
|
|
55
|
-
"@web/test-runner": "^0.18.
|
|
55
|
+
"@web/test-runner": "^0.18.2",
|
|
56
56
|
"@web/test-runner-commands": "^0.9.0",
|
|
57
57
|
"@web/test-runner-playwright": "^0.11.0",
|
|
58
58
|
"chalk": "^5.3.0",
|
|
@@ -89,9 +89,9 @@
|
|
|
89
89
|
"user-agent-data-types": "^0.4.2",
|
|
90
90
|
"vendorism": "^3.0.0",
|
|
91
91
|
"vue-tsc": "^2.0.14",
|
|
92
|
-
"@synergy-design-system/eslint-config-syn": "0.1.0",
|
|
93
92
|
"@synergy-design-system/stylelint-config-syn": "0.1.0",
|
|
94
|
-
"@synergy-design-system/
|
|
93
|
+
"@synergy-design-system/eslint-config-syn": "0.1.0",
|
|
94
|
+
"@synergy-design-system/tokens": "2.1.0"
|
|
95
95
|
},
|
|
96
96
|
"release": {
|
|
97
97
|
"branches": [
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/components/prio-nav/prio-nav.component.ts"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable no-param-reassign */\nimport type { CSSResultGroup } from 'lit';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { html } from 'lit/static-html.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './prio-nav.styles.js';\nimport SynDropdown from '../dropdown/dropdown.component.js';\nimport SynIcon from '../icon/icon.component.js';\nimport SynMenu from '../menu/menu.component.js';\nimport SynNavItem from '../nav-item/nav-item.component.js';\nimport {\n filterOnlyNavItems,\n getAssignedElementsForSlot,\n} from './utils.js';\n\n/**\n * @summary The `<syn-prio-nav />` element provides a generic navigation bar\n * that can be used to group multiple navigation items (usually horizontal `<syn-nav-item />`s)\n * together. It will automatically group all items not visible in the viewport into a custom\n * priority menu.\n *\n * @example\n * <syn-prio-nav>\n * <syn-nav-item current horizontal>Item 1</syn-nav-item>\n * <button role=\"menuitem\">Item 2 (custom)</button>\n * <syn-nav-item horizontal>Item 3</syn-nav-item>\n * </syn-prio-nav>\n *\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-prio-nav--docs\n * @status stable\n * @since 1.14.0\n *\n * @dependency syn-dropdown\n * @dependency syn-icon\n * @dependency syn-menu\n * @dependency syn-nav-item\n *\n * @slot - The given navigation items. Must be horizontal `<syn-nav-item>`s\n * or have a role of \"menuitem\"\n *\n * @csspart base - The component's base wrapper.\n * @csspart priority-menu - The wrapper around the priority menu\n * @csspart priority-menu-nav-item - The navigation item for the priority menu\n * @csspart priority-menu-label - The label for the priority menu\n * @csspart priority-menu-icon - The icon for the priority menu\n * @csspart priority-menu-container - The container for the shifted navigation items,\n * if there is not enough space.\n *\n */\nexport default class SynPrioNav extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles];\n\n static dependencies = {\n 'syn-dropdown': SynDropdown,\n 'syn-icon': SynIcon,\n 'syn-menu': SynMenu,\n 'syn-nav-item': SynNavItem,\n };\n\n /**\n * Internal resize observer\n */\n private resizeObserver: ResizeObserver;\n\n /**\n * Reference to the rendered children slot\n */\n @query('slot:not([name])') private defaultSlot: HTMLSlotElement;\n\n /**\n * Reference to the slot where priority menu items are placed\n */\n @query('slot[name=menu]') private menuSlot: HTMLSlotElement;\n\n /**\n * The wrapper that holds the horizontal navigation items\n */\n @query('.horizontal-nav') private horizontalNav: HTMLDivElement;\n\n /**\n * The priority menu dropdown\n */\n @query('.priority-menu') private priorityMenu: SynDropdown;\n\n /**\n * The components priority menu label.\n * This will be shown after the priority menu 3 dots link\n */\n @property({ attribute: 'priority-menu-label' }) priorityMenuLabel = 'Menu';\n\n /**\n * Internal state reflecting if the item positions have been cached\n */\n @state() private itemPositionsCached = false;\n\n /**\n * The amount of nav items that are currently slotted\n */\n @state() private amountOfNavItems = 0;\n\n /**\n * The amount of items that are currently visible\n */\n @state() private amountOfVisibleItems = 0;\n\n /**\n * Internal state reflecting if there are items in the priority menu\n */\n @state() private hasItemsInDropdown = false;\n\n /**\n * Get a list of all slotted `<syn-nav-item />` elements\n * that are either in the main slot or the priority menu slot\n */\n private getSlottedNavItems() {\n const navItemsInDefaultSlot = filterOnlyNavItems(getAssignedElementsForSlot(this.defaultSlot));\n const navItemsInMenuSlot = filterOnlyNavItems(getAssignedElementsForSlot(this.menuSlot));\n return navItemsInDefaultSlot.concat(navItemsInMenuSlot);\n }\n\n /**\n * Cache the items right offset position to make faster checks placement into priority menu\n * @param items The items to cache the position for\n */\n private cacheItemPositions(items: SynNavItem[]) {\n items.forEach(item => {\n // We have to measure while the items are in the primary slot,\n // else we will just get the placement in the priority menu\n item.removeAttribute('slot');\n const { right } = item.getBoundingClientRect();\n item.dataset.right = right.toString();\n });\n\n this.itemPositionsCached = true;\n }\n\n /**\n * Determines which items should be shown or hidden, depending on the current width\n */\n private handlePriorityMenu() {\n const navItems = this.getSlottedNavItems();\n\n if (!this.itemPositionsCached) {\n this.cacheItemPositions(navItems);\n }\n\n // Get the widths of the horizontal nav and the priority menu\n // We subtract the width of the priority menu to get the final width\n const { width } = this.horizontalNav.getBoundingClientRect();\n const { clientWidth } = this.priorityMenu;\n const finalWidth = width - clientWidth;\n\n // Cache the first item\n let firstHiddenItemRightPos: number | undefined;\n\n let visibleItems = 0;\n\n // Save the position of all the elements in a cache\n navItems.forEach(item => {\n // Make sure to use the cache obtained in createGhostItems\n const isHidden = firstHiddenItemRightPos || parseFloat(item.dataset.right!) >= finalWidth;\n\n if (isHidden) {\n item.removeAttribute('horizontal');\n item.setAttribute('slot', 'menu');\n\n // Makes sure the item is focusable in a syn-dropdown\n item.setAttribute('role', 'menuitem');\n\n // Get the position of the first item\n // Will get used to position the priority menu\n if (!firstHiddenItemRightPos) {\n firstHiddenItemRightPos = parseFloat(item.dataset.right!);\n }\n } else {\n visibleItems += 1;\n item.setAttribute('horizontal', 'true');\n item.removeAttribute('slot');\n item.removeAttribute('tabindex');\n\n // Reset the role to the original value\n if (item.dataset.originalRole) {\n item.setAttribute('role', item.dataset.originalRole);\n } else {\n item.removeAttribute('role');\n }\n }\n });\n\n // Tell the render call that we have items in the priority menu\n // and toggle the visibility of the priority menu label\n this.hasItemsInDropdown = visibleItems !== navItems.length;\n this.amountOfVisibleItems = visibleItems;\n }\n\n private renderPriorityMenu() {\n return html`\n <syn-dropdown\n class=${classMap({\n 'priority-menu': true,\n 'priority-menu--has-visible-items': this.amountOfVisibleItems !== 0,\n 'priority-menu--hidden': !this.hasItemsInDropdown,\n })}\n part=\"priority-menu\"\n placement=\"bottom-end\"\n >\n <syn-nav-item class=\"priority-menu__nav-item\" slot=\"trigger\" horizontal part=\"priority-menu-nav-item\">\n <syn-icon \n class=\"priority-menu__icon\"\n label=\"More\"\n library=\"system\"\n name=\"more\"\n part=\"priority-menu-icon\"\n slot=\"prefix\"\n >\n </syn-icon>\n <span\n class=${classMap({\n 'priority-menu__label': true,\n 'priority-menu__label--visible': this.amountOfVisibleItems === 0,\n })}\n part=\"priority-menu-label\"\n >\n ${this.priorityMenuLabel}\n </span>\n </syn-nav-item>\n\n <syn-menu part=\"priority-menu-container\">\n <slot name=\"menu\"></slot>\n </syn-menu>\n\n </syn-dropdown>\n `;\n }\n\n private slotChange() {\n const slottedItems = this.getSlottedNavItems();\n\n // Make sure to trigger a recalculation of the item positions if we a new list of slotted items\n if (slottedItems.length !== this.amountOfNavItems) {\n this.cacheItemPositions(slottedItems);\n this.handlePriorityMenu();\n this.amountOfNavItems = slottedItems.length;\n }\n }\n\n protected firstUpdated() {\n // Cache the original role of the items so we can reset it if needed.\n this.getSlottedNavItems().forEach(item => {\n item.dataset.originalRole = item.getAttribute('role') ?? '';\n });\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.resizeObserver = new ResizeObserver(() => this.handlePriorityMenu());\n this.resizeObserver.observe(this);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.resizeObserver.unobserve(this);\n }\n\n render() {\n /* eslint-disable @typescript-eslint/unbound-method */\n return html`\n <nav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side-nav.styles.ts"],
|
|
4
|
-
"sourcesContent": ["import { css } from 'lit';\n\nexport default css`\n :host {\n --side-nav-open-width: 25rem;\n --side-nav-rail-width: 4.5rem;\n\n display: block;\n }\n\n /* Side nav should have a width, so it behave correct in an e.g. display flex context */\n .side-nav:not(.side-nav--rail).side-nav--open {\n width: var(--side-nav-open-width);\n }\n \n /**\n * Side nav should have a width, so it behave correct in an e.g. display flex context.\n * In rail mode the width is always the small rail width, because there should be no shrinking possible of the main content area.\n */\n .side-nav.side-nav--rail {\n width: var(--side-nav-rail-width);\n }\n\n\n\n /**\n * Syn-drawer styling\n */\n .side-nav__drawer {\n --size: var(--side-nav-open-width);\n }\n \n .side-nav__drawer::part(base){\n position: absolute;\n }\n\n .side-nav__drawer::part(body), .side-nav__drawer::part(footer) {\n padding: 0;\n }\n\n /** \n * Overlay \n */\n .side-nav__drawer::part(overlay){\n position: absolute;\n }\n\n /**\n * Fixed mode\n */\n .side-nav--fix .side-nav__drawer::part(overlay){\n display: block;\n }\n\n /**\n * Rail mode\n */\n :not(.side-nav--open).side-nav--rail .side-nav__drawer {\n --size: var(--side-nav-rail-width);\n }\n\n .side-nav--open.side-nav--rail.side-nav--touch .side-nav__drawer::part(overlay){\n display: block;\n }\n\n /**\n * Avoid multiline flickering on open and close animation\n */\n .side-nav--rail.side-nav--animation {\n white-space: nowrap;\n }\n\n /**\n * Hide the scrollbars in closed rail mode\n */ \n :not(.side-nav--open).side-nav--rail .side-nav__drawer::part(body){\n overflow: hidden;\n }\n\n /**\n * Footer divider\n */\n .side-nav__footer-divider{\n --spacing: 0;\n --color: var(--syn-color-neutral-300);\n }\n\n :not(.side-nav--open).side-nav--rail ::slotted(syn-nav-item){\n --display-children: none;\n }\n`;\n"],
|
|
5
|
-
"mappings": ";AAAA,SAAS,WAAW;AAEpB,IAAO,0BAAQ;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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/components/icon/library.system.ts"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable */\nimport type { IconLibrary } from './library.js';\n\n//\n// System icons are a separate library to ensure they're always available, regardless of how the default icon library is\n// configured or if its icons resolve properly.\n//\n// All Synergy components must use the system library instead of the default library. For visual consistency, system\n// icons are a subset of Bootstrap Icons.\n//\n// **Start system icons**\nconst icons = {\n\t'add': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M19 13H13V19H11V13H5V11H11V5H13V11H19V13Z\"/></svg>`,\n\t'caret': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M16.59 8.29498L12 12.875L7.41 8.29498L6 9.70498L12 15.705L18 9.70498L16.59 8.29498Z\"/></svg>`,\n\t'check': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M8.79496 15.875L4.62496 11.705L3.20496 13.115L8.79496 18.705L20.795 6.70498L19.385 5.29498L8.79496 15.875Z\"/></svg>`,\n\t'chevron-down': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M16.59 8.29498L12 12.875L7.41 8.29498L6 9.70498L12 15.705L18 9.70498L16.59 8.29498Z\"/></svg>`,\n\t'eye-slash': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M12.005 6.5C14.765 6.5 17.005 8.74 17.005 11.5C17.005 12.15 16.875 12.76 16.645 13.33L19.565 16.25C21.075 14.99 22.265 13.36 22.995 11.5C21.265 7.11 16.995 4 11.995 4C10.595 4 9.255 4.25 8.01501 4.7L10.175 6.86C10.745 6.63 11.355 6.5 12.005 6.5ZM2.005 3.77L4.745 6.51C3.085 7.8 1.785 9.52 1.005 11.5C2.735 15.89 7.005 19 12.005 19C13.555 19 15.035 18.7 16.385 18.16L16.805 18.58L19.735 21.5L21.005 20.23L3.275 2.5L2.005 3.77ZM7.53501 9.3L9.085 10.85C9.035 11.06 9.005 11.28 9.005 11.5C9.005 13.16 10.345 14.5 12.005 14.5C12.225 14.5 12.445 14.47 12.655 14.42L14.205 15.97C13.535 16.3 12.795 16.5 12.005 16.5C9.245 16.5 7.005 14.26 7.005 11.5C7.005 10.71 7.20501 9.97 7.53501 9.3ZM11.845 8.52L14.995 11.67L15.015 11.51C15.015 9.85 13.675 8.51 12.015 8.51L11.845 8.52Z\"/></svg>`,\n\t'eye': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M12 4.5C7 4.5 2.73 7.61 1 12C2.73 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.61 17 4.5 12 4.5ZM12 17C9.24 17 7 14.76 7 12C7 9.24 9.24 7 12 7C14.76 7 17 9.24 17 12C17 14.76 14.76 17 12 17ZM12 9C10.34 9 9 10.34 9 12C9 13.66 10.34 15 12 15C13.66 15 15 13.66 15 12C15 10.34 13.66 9 12 9Z\"/></svg>`,\n\t'indeterminate': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M19 13H5V11H19V13Z\"/></svg>`,\n\t'logo-color': `\n\t\t<svg width=\"295\" height=\"94\" viewBox=\"0 0 295 94\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><g clip-path=\"url(#clip0_9951_9907)\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M207.961 69.0591C200.132 83.8898 184.613 93.983 166.804 93.983C141.096 93.983 120.257 72.9431 120.257 46.9915C120.257 21.0399 141.096 0 166.804 0C184.439 0 199.775 9.89295 207.674 24.4885L188.602 34.7821C184.335 26.9182 176.088 21.6757 166.804 21.6757C153.262 21.6757 141.932 32.8139 141.932 46.9915C141.932 61.1691 153.262 72.3074 166.804 72.3074C176.279 72.3074 184.726 66.8558 188.907 58.7133L207.961 69.0591ZM111.078 1.66335H89.7768V91.8668H111.078V1.66335ZM26.0822 91.8669C13.9511 91.8669 0.592136 85.318 0.592136 70.1128C0.592136 70.1128 47.1743 70.1128 54.5941 70.1215C62.4927 68.5453 61.6132 58.5826 54.5941 57.2067H26.8746C12.1223 57.2067 0.444092 44.6141 0.444092 29.6092C0.444092 15.1791 11.234 1.67206 26.8746 1.67206H57.285C69.8254 1.67206 78.7778 11.0599 78.7778 22.9645H26.8746C19.8991 23.9573 19.4549 34.6602 26.8746 35.8707H54.5157C69.6773 36.28 81.7735 48.3501 81.7735 63.6336C81.7735 77.7154 69.8254 91.8669 54.5853 91.8669H26.0822ZM215.99 91.8668V1.66335H237.535V37.8388H245.826L268.224 1.66335H294.716L264.192 47.3399L294.272 91.8668H267.771L245.103 56.9193H237.535V91.8668H215.99Z\"/></g><defs><clipPath id=\"clip0_9951_9907\"><rect width=\"295\" height=\"94\"/></clipPath></defs></svg>`,\n\t'menu': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M3 18H21V16H3V18ZM3 13H21V11H3V13ZM3 6V8H21V6H3Z\"/></svg>`,\n\t'more': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M6 10C4.9 10 4 10.9 4 12C4 13.1 4.9 14 6 14C7.1 14 8 13.1 8 12C8 10.9 7.1 10 6 10ZM18 10C16.9 10 16 10.9 16 12C16 13.1 16.9 14 18 14C19.1 14 20 13.1 20 12C20 10.9 19.1 10 18 10ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10Z\"/></svg>`,\n\t'more_vert': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M12 8C13.1 8 14 7.1 14 6C14 4.9 13.1 4 12 4C10.9 4 10 4.9 10 6C10 7.1 10.9 8 12 8ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10ZM12 16C10.9 16 10 16.9 10 18C10 19.1 10.9 20 12 20C13.1 20 14 19.1 14 18C14 16.9 13.1 16 12 16Z\"/></svg>`,\n\t'radio': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12Z\"/></svg>`,\n\t'x-circle-fill': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2ZM17 15.59L15.59 17L12 13.41L8.41 17L7 15.59L10.59 12L7 8.41L8.41 7L12 10.59L15.59 7L17 8.41L13.41 12L17 15.59Z\"/></svg>`,\n\t'x-lg': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z\"/></svg>`\n};\n// **End system icons**\n\nconst systemLibrary: IconLibrary = {\n name: 'system',\n resolver: (name: keyof typeof icons) => {\n if (name in icons) {\n return `data:image/svg+xml,${encodeURIComponent(icons[name])}`;\n }\n return '';\n }\n};\n\nexport default systemLibrary;\n"],
|
|
5
|
-
"mappings": ";AAWA,IAAM,QAAQ;AAAA,EACb,OAAO;AAAA;AAAA,EAEP,SAAS;AAAA;AAAA,EAET,SAAS;AAAA;AAAA,EAET,gBAAgB;AAAA;AAAA,EAEhB,aAAa;AAAA;AAAA,EAEb,OAAO;AAAA;AAAA,EAEP,iBAAiB;AAAA;AAAA,EAEjB,cAAc;AAAA;AAAA,EAEd,QAAQ;AAAA;AAAA,EAER,QAAQ;AAAA;AAAA,EAER,aAAa;AAAA;AAAA,EAEb,SAAS;AAAA;AAAA,EAET,iBAAiB;AAAA;AAAA,EAEjB,QAAQ;AAAA;AAET;AAGA,IAAM,gBAA6B;AAAA,EACjC,MAAM;AAAA,EACN,UAAU,CAAC,SAA6B;AACtC,QAAI,QAAQ,OAAO;AACjB,aAAO,sBAAsB,mBAAmB,MAAM,IAAI,CAAC,CAAC;AAAA,IAC9D;AACA,WAAO;AAAA,EACT;AACF;AAEA,IAAO,yBAAQ;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/components/header/header.component.ts"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable @typescript-eslint/unbound-method */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { html } from 'lit/static-html.js';\nimport { property, state } from 'lit/decorators.js';\nimport type { CSSResultGroup } from 'lit';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport styles from './header.styles.js';\nimport SynIcon from '../icon/icon.js';\nimport type SynSideNav from '../side-nav/side-nav.component.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { watch } from '../../internal/watch.js';\n\n/**\n * @summary The <syn-header /> element provides a generic application header\n * that can be used to add applications name, toolbar and primary navigation.\n *\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-header--docs\n * @status stable\n * @since 1.10.0\n *\n * @slot - The label for the header.\n * @slot logo - The logo that should be displayed. Will fall back to the SICK logo if not provided.\n * @slot meta-navigation - The meta-navigation is used to add various application toolbar icons.\n * Best used with `<syn-icon-button />` and `<syn-drop-down />`\n * @slot navigation - This slot can be used to add an optional horizontal navigation\n * @slot show-burger-menu - An icon to use in lieu of the default show burger menu icon\n * @slot hide-burger-menu - An icon to use in lieu of the default hide burger menu icon\n *\n * @event syn-burger-menu-show - Emitted when the burger menu button is toggled to visible\n * @event syn-burger-menu-hide - Emitted when the burger menu button is toggled to not visible\n *\n * @csspart base - The component's base wrapper.\n * @csspart content - The wrapper most content items reside\n * @csspart logo - The wrapper the application logo resides in\n * @csspart label - The element wrapping the application name\n * @csspart meta-navigation - The Item wrapping the optional application menu\n * @csspart navigation - The wrapper that is holding the optional top navigation section\n * @csspart burger-menu-toggle-button - The button that toggles the burger menu\n */\nexport default class SynHeader extends SynergyElement {\n static styles: CSSResultGroup = [\n componentStyles,\n styles,\n ];\n\n static dependencies = {\n 'syn-icon': SynIcon,\n };\n\n private readonly hasSlotController = new HasSlotController(this, '[default]', 'logo', 'label', 'meta-navigation', 'navigation');\n\n private readonly localize = new LocalizeController(this);\n\n /**\n * Internal mutation observer\n */\n private mutationObserver: MutationObserver;\n\n /**\n * The headers label. If you need to display HTML, use the `default` slot instead.\n */\n @property() label = '';\n\n /**\n * Adds a button to toggle the burger menu's visibility.\n * The button is added automatically, if the component finds a syn-side-nav in non-rail mode.\n */\n @property({ attribute: 'show-burger-menu', reflect: true, type: Boolean }) showBurgerMenu = false;\n\n /**\n * Determines whether or not the burger menu is currently visible.\n */\n @property({ attribute: 'burger-menu-visible', reflect: true, type: Boolean }) burgerMenuVisible = false;\n\n /**\n * The side nav\n */\n @state() private sideNav: SynSideNav | null;\n\n private handleBurgerMenuToggle() {\n // If there is a side-nav in non-rail mode, toggle the open state!\n if (this.sideNav && !this.sideNav.rail) {\n this.sideNav.open = !this.sideNav.open;\n }\n this.burgerMenuVisible = !this.burgerMenuVisible;\n }\n\n private updateBurgerMenuBasedOnSideNav() {\n // The side-nav has a higher priority than when the burger menu toggle and visibility\n // is set via property\n if (this.sideNav) {\n this.showBurgerMenu = !this.sideNav.rail;\n this.burgerMenuVisible = !this.sideNav.rail ? this.sideNav.open : false;\n }\n }\n\n @watch('burgerMenuVisible', { waitUntilFirstUpdate: true })\n handleBurgerMenuVisible() {\n this.emit(this.burgerMenuVisible ? 'syn-burger-menu-show' : 'syn-burger-menu-hide');\n }\n\n connectedCallback() {\n super.connectedCallback();\n\n this.mutationObserver = new MutationObserver(() => this.updateBurgerMenuBasedOnSideNav());\n }\n\n firstUpdated() {\n // Search for a side-nav and use the first found in case of the connectSideNavigation method\n // is not used by the user.\n const sideNav = document.querySelector('syn-side-nav')!;\n this.connectSideNavigation(sideNav);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n\n // Remove observer\n this.mutationObserver.disconnect();\n }\n\n /**\n * Connect a `syn-side-nav` to add automatic interaction of the header with the side navigation\n * like showing the burger menu icon and open / close handling.\n *\n * If no side navigation is connected, the header will use the first `syn-side-nav` element it\n * finds.\n *\n * @param sideNav The side navigation to connect to the header\n */\n connectSideNavigation(sideNav: SynSideNav) {\n this.mutationObserver.disconnect();\n\n this.sideNav = sideNav || document.querySelector('syn-side-nav');\n if (this.sideNav) {\n // Need to call the method initially, if the side-nav is not open on connect time.\n // Otherwise the mutation observer won`t trigger the method.\n this.updateBurgerMenuBasedOnSideNav();\n this.mutationObserver.observe(this.sideNav, { attributeFilter: ['open', 'rail'], attributes: true });\n }\n }\n\n render() {\n const hasNavigation = this.hasSlotController.test('navigation');\n\n return html`\n <header\n class=${classMap({\n header: true,\n 'header--has-burger-menu': this.showBurgerMenu,\n 'header--has-navigation': hasNavigation,\n })}\n part=\"base\"\n >\n <!-- .header__content -->\n <div part=\"content\" class=\"header__content\">\n\n ${this.showBurgerMenu\n ? html`\n <button\n part=\"burger-menu-toggle-button\"\n class=\"header__burger-menu-toggle\"\n type=\"button\"\n @click=${this.handleBurgerMenuToggle}\n aria-label=${this.localize.term(this.burgerMenuVisible ? 'closeMenu' : 'openMenu')}\n >\n ${this.burgerMenuVisible\n ? html`\n <slot name=\"show-burger-menu\">\n <syn-icon name=\"x-lg\" library=\"system\"></syn-icon>\n </slot>\n `\n : html`\n <slot name=\"hide-burger-menu\">\n <syn-icon name=\"menu\" library=\"system\"></syn-icon>\n </slot>\n `}\n </button>\n `\n : ''}\n\n <div part=\"logo\" class=\"header__logo\">\n <slot name=\"logo\">\n <syn-icon name=\"logo-color\" library=\"system\" label=\"SICK Sensor Intelligence\"></syn-icon>\n </slot>\n </div>\n\n <div part=\"label\" class=\"header__label\">\n <slot>\n ${this.label}\n </slot>\n </div>\n\n <div part=\"meta-navigation\" class=\"header__meta-navigation\">\n <slot name=\"meta-navigation\"></slot>\n </div>\n </div>\n <!-- /.header__content -->\n\n <div part=\"navigation\" class=\"header__navigation\">\n <slot name=\"navigation\"></slot>\n </div>\n </header>\n `;\n }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BAAsB,KAAK,CAAC;AAAA,GAzDvC,UA0DnB;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|