@ganpatiinfo/gids-core-web 16.0.0 → 18.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/elements.css +4 -0
- package/dist/css/elements.css.map +1 -1
- package/dist/css/index.css +701 -4
- package/dist/css/index.css.map +1 -1
- package/dist/custom-elements.json +7 -1
- package/dist/gids-action-bar.js +1 -1
- package/dist/gids-activity-gauge.js +1 -1
- package/dist/gids-advanced-tooltip.js +1 -1
- package/dist/gids-bar-chart.js +1 -1
- package/dist/gids-bento-card.d.ts +11 -0
- package/dist/gids-bento-card.js +1 -0
- package/dist/gids-calendar-header-panel.js +1 -1
- package/dist/gids-calendar-month-list.js +1 -1
- package/dist/gids-calendar-year-list.js +1 -1
- package/dist/gids-calendar.js +1 -1
- package/dist/gids-carousel.d.ts +11 -0
- package/dist/gids-carousel.js +1 -0
- package/dist/gids-chart-legend-item.js +1 -1
- package/dist/gids-chart-legend.js +1 -1
- package/dist/gids-chart.js +1 -1
- package/dist/gids-chevron-button.js +1 -1
- package/dist/gids-dot.js +1 -1
- package/dist/gids-dropdown-field.js +1 -1
- package/dist/gids-dropdown-picker.js +1 -1
- package/dist/gids-dropdown.js +1 -1
- package/dist/gids-expansion-body-list-item.js +1 -1
- package/dist/gids-expansion-body-list.js +1 -1
- package/dist/gids-expansion-group.js +1 -1
- package/dist/gids-expansion.js +1 -1
- package/dist/gids-field.js +1 -1
- package/dist/gids-filter.js +1 -1
- package/dist/gids-flyout-panel.d.ts +11 -0
- package/dist/gids-flyout-panel.js +1 -0
- package/dist/gids-header-navigation-item.js +1 -1
- package/dist/gids-header-navigation.js +1 -1
- package/dist/gids-icon.js +1 -1
- package/dist/gids-input.js +1 -1
- package/dist/gids-level-gauge.js +1 -1
- package/dist/gids-line-chart.js +1 -1
- package/dist/gids-md-table.js +1 -1
- package/dist/gids-notification.js +1 -1
- package/dist/gids-overflow-container.js +1 -1
- package/dist/gids-overlay-provider.js +1 -1
- package/dist/gids-password-field.js +1 -1
- package/dist/gids-pie-chart.js +1 -1
- package/dist/gids-popover.js +1 -1
- package/dist/gids-profile-menu-header.js +1 -1
- package/dist/gids-profile-menu.js +1 -1
- package/dist/gids-profile.js +1 -1
- package/dist/gids-progress-circle.js +1 -1
- package/dist/gids-scrim.js +1 -1
- package/dist/gids-skeleton.js +1 -1
- package/dist/gids-snackbar.js +1 -1
- package/dist/gids-tab-item.js +1 -1
- package/dist/gids-tab.js +1 -1
- package/dist/gids-text-field.js +1 -1
- package/dist/gids-toggle-button.js +1 -1
- package/dist/gids-tooltip.js +1 -1
- package/dist/gids-transfer-list.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{p-CoS0NuDU.js → p-4zKS6zkg.js} +1 -1
- package/dist/{p-Degg_WJz.js → p-83YZrIJw.js} +1 -1
- package/dist/{p-oJFgjzK5.js → p-B0hLXifA.js} +1 -1
- package/dist/{p-Bf3p-DY2.js → p-B4hcsDH0.js} +1 -1
- package/dist/{p-Dd-ec-e0.js → p-BdsUwTgh.js} +1 -1
- package/dist/p-BkxmRN-4.js +1 -0
- package/dist/p-BsC3-MVH.js +1 -0
- package/dist/{p-CiWZdp48.js → p-BthkC6NU.js} +1 -1
- package/dist/p-C-Lpfqcg.js +1 -0
- package/dist/{p-pVSQxFDF.js → p-C6GHG170.js} +1 -1
- package/dist/{p-DGXqnrKo.js → p-CBiu-Vh3.js} +1 -1
- package/dist/{p-Co23kQaH.js → p-CH4nrjpL.js} +1 -1
- package/dist/p-CIxuyUAl.js +1 -0
- package/dist/{p-DiTjFG30.js → p-CMW3SjbP.js} +1 -1
- package/dist/p-CPgZgSBN.js +1 -0
- package/dist/p-CTri3IsV.js +1 -0
- package/dist/{p-CaauwQNd.js → p-CZ_9Mt3B.js} +1 -1
- package/dist/{p-DAuO4g6g.js → p-Cacy0Dji.js} +1 -1
- package/dist/p-CcKHKwS0.js +1 -0
- package/dist/p-Cf3Ny79u.js +1 -0
- package/dist/{p-DbaNvRpS.js → p-CrqHKmjy.js} +1 -1
- package/dist/{p-UDG6tkD1.js → p-Cz9nwmgK.js} +1 -1
- package/dist/{p-Bs8TP3Rb.js → p-D0coZTd2.js} +1 -1
- package/dist/{p-CCpxJ8wu.js → p-DKOr5iAk.js} +1 -1
- package/dist/{p-Chb2OeFe.js → p-DYjV5XrH.js} +1 -1
- package/dist/{p-C-HyXFGR.js → p-DZ6xQXis.js} +1 -1
- package/dist/{p-CHGTBObD.js → p-DaB_FzcG.js} +1 -1
- package/dist/{p-DxX3B1f0.js → p-DgKrPmDn.js} +1 -1
- package/dist/p-Dg_WeHpV.js +1 -0
- package/dist/p-Do_VlNHg.js +1 -0
- package/dist/{p-DELTZ9Fh.js → p-DrDadv7P.js} +1 -1
- package/dist/p-Dw_kb9MC.js +1 -0
- package/dist/p-GcC8pCKF.js +1 -0
- package/dist/{p-BrYLEey4.js → p-KQxuw_F-.js} +1 -1
- package/dist/{p-d-t7__OQ.js → p-PcSMc4jQ.js} +1 -1
- package/dist/p-iQRr_fAH.js +1 -0
- package/dist/{p-u06XOrpj.js → p-j2_DKwBz.js} +1 -1
- package/dist/p-jGho9nbS.js +1 -0
- package/dist/{p-Bzjuvoza.js → p-xbqOQZl9.js} +1 -1
- package/dist/types/components/html/_GidsCarouselControl/GidsCarouselControl.d.ts +6 -0
- package/dist/types/components/html/_GidsCarouselPagination/GidsCarouselPagination.d.ts +5 -0
- package/dist/types/components/html/_GidsCarouselPaginationItem/GidsCarouselPaginationItem.d.ts +5 -0
- package/dist/types/components/shared/GidsFloatingElementManager.d.ts +6 -1
- package/dist/types/components/shared/GidsFloatingElementTypes.d.ts +2 -1
- package/dist/types/components/webComponents/GidsBentoCard/GidsBentoCard.d.ts +34 -0
- package/dist/types/components/webComponents/GidsCarousel/GidsCarousel.d.ts +49 -0
- package/dist/types/components/webComponents/GidsFlyoutPanel/GidsFlyoutPanel.d.ts +24 -0
- package/dist/types/components/webComponents/GidsHeaderNavigationItem/GidsHeaderNavigationItem.d.ts +2 -0
- package/dist/types/components/webComponents/GidsProfile/GidsProfile.d.ts +4 -0
- package/dist/types/components/webComponents/GidsProfileMenu/GidsProfileMenu.d.ts +4 -0
- package/dist/types/components.d.ts +168 -2
- package/dist-bundled/es/gids-action-bar.js +9 -9
- package/dist-bundled/es/gids-activity-gauge.js +1 -1
- package/dist-bundled/es/gids-advanced-tooltip.js +2 -2
- package/dist-bundled/es/gids-bar-chart.js +1 -1
- package/dist-bundled/es/gids-bento-card.js +84 -0
- package/dist-bundled/es/gids-calendar-header-panel.js +3 -3
- package/dist-bundled/es/gids-calendar-month-list.js +1 -1
- package/dist-bundled/es/gids-calendar-year-list.js +2 -2
- package/dist-bundled/es/gids-calendar.js +24 -24
- package/dist-bundled/es/gids-carousel.js +179 -0
- package/dist-bundled/es/gids-chart-legend-item.js +3 -3
- package/dist-bundled/es/gids-chart-legend.js +4 -4
- package/dist-bundled/es/gids-chart.js +11 -11
- package/dist-bundled/es/gids-chevron-button.js +3 -3
- package/dist-bundled/es/gids-dot.js +3 -3
- package/dist-bundled/es/gids-dropdown-field.js +9 -9
- package/dist-bundled/es/gids-dropdown-picker.js +4 -4
- package/dist-bundled/es/gids-dropdown.js +4 -4
- package/dist-bundled/es/gids-expansion-body-list-item.js +3 -3
- package/dist-bundled/es/gids-expansion-body-list.js +3 -3
- package/dist-bundled/es/gids-expansion-group.js +4 -4
- package/dist-bundled/es/gids-expansion.js +3 -3
- package/dist-bundled/es/gids-field.js +4 -4
- package/dist-bundled/es/gids-filter.js +2 -2
- package/dist-bundled/es/gids-flyout-panel.js +110 -0
- package/dist-bundled/es/gids-header-navigation-item.js +1 -1
- package/dist-bundled/es/gids-header-navigation.js +5 -5
- package/dist-bundled/es/gids-icon.js +4 -4
- package/dist-bundled/es/gids-input.js +2 -2
- package/dist-bundled/es/gids-level-gauge.js +2 -2
- package/dist-bundled/es/gids-line-chart.js +4 -4
- package/dist-bundled/es/gids-md-table.js +5 -5
- package/dist-bundled/es/gids-notification.js +1 -1
- package/dist-bundled/es/gids-overflow-container.js +5 -5
- package/dist-bundled/es/gids-overlay-provider.js +4 -4
- package/dist-bundled/es/gids-password-field.js +15 -15
- package/dist-bundled/es/gids-pie-chart.js +4 -4
- package/dist-bundled/es/gids-popover.js +4 -4
- package/dist-bundled/es/gids-profile-menu-header.js +1 -1
- package/dist-bundled/es/gids-profile-menu.js +3 -3
- package/dist-bundled/es/gids-profile.js +40 -34
- package/dist-bundled/es/gids-progress-circle.js +1 -1
- package/dist-bundled/es/gids-scrim.js +2 -2
- package/dist-bundled/es/gids-skeleton.js +9 -9
- package/dist-bundled/es/gids-snackbar.js +1 -1
- package/dist-bundled/es/gids-tab-item.js +7 -7
- package/dist-bundled/es/gids-tab.js +2 -2
- package/dist-bundled/es/gids-text-field.js +16 -16
- package/dist-bundled/es/gids-toggle-button.js +1 -1
- package/dist-bundled/es/gids-tooltip.js +7 -7
- package/dist-bundled/es/gids-transfer-list.js +7 -7
- package/dist-bundled/es/index.js +2 -2
- package/dist-bundled/es/{p-CoS0NuDU-ByDvQAzA.js → p-4zKS6zkg-CujzUjb6.js} +3 -3
- package/dist-bundled/es/{p-Degg_WJz-ORZcjc8G.js → p-83YZrIJw-Cu-e6WD3.js} +3 -3
- package/dist-bundled/es/{p-oJFgjzK5-CzagP1qD.js → p-B0hLXifA-CoImnX3T.js} +4 -4
- package/dist-bundled/es/p-BKcvOO8o-DcnO39au.js +1065 -0
- package/dist-bundled/es/{p-Dd-ec-e0-BqX_F6y0.js → p-BdsUwTgh-Cc7AQBsx.js} +9 -9
- package/dist-bundled/es/{p-Dg2yoUxw-DliMstZy.js → p-BkxmRN-4-DSiXCW8b.js} +5 -5
- package/dist-bundled/es/{p-C2POfZhu-DzG_JxV6.js → p-BsC3-MVH-j4fPhip5.js} +1 -1
- package/dist-bundled/es/{p-CiWZdp48-1vf7Xh2R.js → p-BthkC6NU-F03MhDw7.js} +7 -7
- package/dist-bundled/es/{p-DMNS1d8v-BX8e_AsY.js → p-C-Lpfqcg-DIuBhXzX.js} +5 -5
- package/dist-bundled/es/{p-pVSQxFDF-CsWxUaZX.js → p-C6GHG170-Di8lwQkY.js} +4 -4
- package/dist-bundled/es/{p-DGXqnrKo-C7feKS94.js → p-CBiu-Vh3-r-McGzCb.js} +9 -9
- package/dist-bundled/es/{p-Co23kQaH-QJyKkzgc.js → p-CH4nrjpL-CrEJXTn0.js} +9 -9
- package/dist-bundled/es/{p-DObJEzlz-tt9h5cuI.js → p-CIxuyUAl-B2DxRM64.js} +4 -4
- package/dist-bundled/es/{p-DiTjFG30-CQkxfu2K.js → p-CMW3SjbP-ZYYIF_i6.js} +4 -4
- package/dist-bundled/es/p-CPgZgSBN-DsTNcUR7.js +7 -0
- package/dist-bundled/es/p-CTri3IsV-B1u0rrXF.js +122 -0
- package/dist-bundled/es/{p-CaauwQNd-D6_PbcRr.js → p-CZ_9Mt3B-BIYkPAXM.js} +1 -1
- package/dist-bundled/es/{p-DAuO4g6g-C8miaL-N.js → p-Cacy0Dji-D-D254kT.js} +7 -7
- package/dist-bundled/es/{p-CXFvqDBs-offadaUn.js → p-CcKHKwS0-Bw63tTOA.js} +1 -1
- package/dist-bundled/es/p-Cf3Ny79u-VGT_IyGI.js +82 -0
- package/dist-bundled/es/{p-DbaNvRpS-r7kCW1TY.js → p-CrqHKmjy-DwSsCofb.js} +10 -10
- package/dist-bundled/es/{p-UDG6tkD1-JTLPxkEn.js → p-Cz9nwmgK-BO8HUAvD.js} +10 -10
- package/dist-bundled/es/{p-Bs8TP3Rb-BdcS7d5q.js → p-D0coZTd2-KhJZ57gK.js} +3 -3
- package/dist-bundled/es/{p-CCpxJ8wu-CMYQqNoP.js → p-DKOr5iAk-DA3Kc4Cn.js} +9 -9
- package/dist-bundled/es/{p-Chb2OeFe-DDv_WPhe.js → p-DYjV5XrH-CI9LfBFx.js} +3 -3
- package/dist-bundled/es/{p-C-HyXFGR-UnFcWLOQ.js → p-DZ6xQXis-XT86MMis.js} +7 -7
- package/dist-bundled/es/{p-CHGTBObD-D_K9_Tmh.js → p-DaB_FzcG-DnRTURxL.js} +1 -1
- package/dist-bundled/es/{p-DxX3B1f0-D1URliVh.js → p-DgKrPmDn-C2CSKicX.js} +6 -6
- package/dist-bundled/es/{p-UVmSPzTd-CR1higgJ.js → p-Dg_WeHpV-DehzGL6g.js} +9 -9
- package/dist-bundled/es/{p-UxDcM-C5-BJO4X0jM.js → p-Do_VlNHg-_g7lcvwR.js} +2 -2
- package/dist-bundled/es/{p-DELTZ9Fh-Byr0nLtY.js → p-DrDadv7P-D4rbSYTr.js} +4 -4
- package/dist-bundled/es/{p-bhEHIxPv-ujyxL30O.js → p-Dw_kb9MC-BTd0lrGA.js} +36 -21
- package/dist-bundled/es/{p-CZBiavxU-CIstIm2b.js → p-GcC8pCKF-CZJFTFeN.js} +10 -10
- package/dist-bundled/es/{p-BrYLEey4-DuajY4uD.js → p-KQxuw_F--BTSoDfF9.js} +9 -9
- package/dist-bundled/es/{p-d-t7__OQ-CKPQZt2t.js → p-PcSMc4jQ-CzYLaIZr.js} +14 -14
- package/dist-bundled/es/{p-D4Pimu_8-ARSuGBs4.js → p-iQRr_fAH-ClfWEu03.js} +13 -13
- package/dist-bundled/es/{p-u06XOrpj-C1tNznDd.js → p-j2_DKwBz-CqyuxxnN.js} +8 -8
- package/dist-bundled/es/{p-Bw2pVReY-K9pdG-hw.js → p-jGho9nbS-BDiBvsn2.js} +10 -10
- package/dist-bundled/es/{p-Bzjuvoza-CzNs69NV.js → p-xbqOQZl9-BK9vjfj7.js} +15 -15
- package/dist-bundled/umd/gids-action-bar.umd.js +3 -3
- package/dist-bundled/umd/gids-activity-gauge.umd.js +2 -2
- package/dist-bundled/umd/gids-advanced-tooltip.umd.js +2 -2
- package/dist-bundled/umd/gids-bar-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-bento-card.umd.js +5 -0
- package/dist-bundled/umd/gids-calendar-header-panel.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-month-list.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar.umd.js +1 -1
- package/dist-bundled/umd/gids-carousel.umd.js +5 -0
- package/dist-bundled/umd/gids-chart-legend-item.umd.js +1 -1
- package/dist-bundled/umd/gids-chart-legend.umd.js +1 -1
- package/dist-bundled/umd/gids-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-chevron-button.umd.js +1 -1
- package/dist-bundled/umd/gids-dot.umd.js +1 -1
- package/dist-bundled/umd/gids-dropdown-field.umd.js +1 -1
- package/dist-bundled/umd/gids-dropdown-picker.umd.js +2 -2
- package/dist-bundled/umd/gids-dropdown.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion-body-list-item.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion-body-list.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion-group.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion.umd.js +1 -1
- package/dist-bundled/umd/gids-field.umd.js +2 -2
- package/dist-bundled/umd/gids-filter.umd.js +3 -3
- package/dist-bundled/umd/gids-flyout-panel.umd.js +5 -0
- package/dist-bundled/umd/gids-header-navigation-item.umd.js +2 -2
- package/dist-bundled/umd/gids-header-navigation.umd.js +2 -2
- package/dist-bundled/umd/gids-icon.umd.js +1 -1
- package/dist-bundled/umd/gids-input.umd.js +2 -2
- package/dist-bundled/umd/gids-line-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-md-table.umd.js +1 -1
- package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
- package/dist-bundled/umd/gids-overlay-provider.umd.js +1 -1
- package/dist-bundled/umd/gids-password-field.umd.js +1 -1
- package/dist-bundled/umd/gids-pie-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-popover.umd.js +2 -2
- package/dist-bundled/umd/gids-profile-menu-header.umd.js +1 -1
- package/dist-bundled/umd/gids-profile-menu.umd.js +2 -2
- package/dist-bundled/umd/gids-profile.umd.js +2 -2
- package/dist-bundled/umd/gids-scrim.umd.js +1 -1
- package/dist-bundled/umd/gids-skeleton.umd.js +1 -1
- package/dist-bundled/umd/gids-tab-item.umd.js +1 -1
- package/dist-bundled/umd/gids-tab.umd.js +1 -1
- package/dist-bundled/umd/gids-text-field.umd.js +2 -2
- package/dist-bundled/umd/gids-toggle-button.umd.js +3 -3
- package/dist-bundled/umd/gids-tooltip.umd.js +2 -2
- package/dist-bundled/umd/gids-transfer-list.umd.js +1 -1
- package/dist-bundled/umd/index.umd.js +2 -2
- package/dist-bundled/umd-complete/gids-core-web.umd.js +4 -4
- package/package.json +29 -5
- package/dist/p-B8kX8Vqv.js +0 -1
- package/dist/p-BBszCFSA.js +0 -1
- package/dist/p-Bw2pVReY.js +0 -1
- package/dist/p-C2POfZhu.js +0 -1
- package/dist/p-CXFvqDBs.js +0 -1
- package/dist/p-CZBiavxU.js +0 -1
- package/dist/p-CcpdJCql.js +0 -1
- package/dist/p-D4Pimu_8.js +0 -1
- package/dist/p-DMNS1d8v.js +0 -1
- package/dist/p-DObJEzlz.js +0 -1
- package/dist/p-Dg2yoUxw.js +0 -1
- package/dist/p-UVmSPzTd.js +0 -1
- package/dist/p-UxDcM-C5.js +0 -1
- package/dist/p-bhEHIxPv.js +0 -1
- package/dist-bundled/es/p-B8kX8Vqv-trBz4jdS.js +0 -7
- package/dist-bundled/es/p-BBszCFSA-BN0-eWJX.js +0 -115
- package/dist-bundled/es/p-BKcvOO8o-L5KtCP_k.js +0 -1024
- package/dist-bundled/es/p-CcpdJCql-CkEW2RAp.js +0 -64
- /package/dist-bundled/es/{p-Bf3p-DY2-CPqEc-vc.js → p-B4hcsDH0-CPqEc-vc.js} +0 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { L as p, u, D as s, F as y, q as r } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
|
+
import { c as E } from "./p-CTri3IsV-B1u0rrXF.js";
|
|
3
|
+
import { o as v } from "./p-CPgZgSBN-DsTNcUR7.js";
|
|
4
|
+
const h = p(class extends u {
|
|
5
|
+
constructor(e) {
|
|
6
|
+
super(), e !== !1 && this.__registerHost(), this.__attachShadow(), this.placement = "bottom", this.previouslyFocusedElement = null, this.focusableElements = [], this.handleToggleEvent = (t) => {
|
|
7
|
+
t.stopPropagation();
|
|
8
|
+
const l = this.floatingElementManager.isVisible();
|
|
9
|
+
this.floatingElementManager.toggle(), !l && this.floatingElementManager.isVisible() ? this.onFlyoutPanelShow() : l && !this.floatingElementManager.isVisible() && this.onFlyoutPanelHide();
|
|
10
|
+
}, this.handleDocumentClick = (t) => {
|
|
11
|
+
this.floatingElementManager.isVisible() && !this._el.contains(t.target) && (this.floatingElementManager.hide(), this.onFlyoutPanelHide());
|
|
12
|
+
}, this.handleKeyDown = (t) => {
|
|
13
|
+
if (this.floatingElementManager.isVisible()) return t.key === "Escape" ? (t.preventDefault(), this.floatingElementManager.hide(), void this.onFlyoutPanelHide()) : void (t.key === "Tab" && this.trapFocus(t));
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
componentDidLoad() {
|
|
17
|
+
this.floatingElementManager = new E(this._el, { htmlFor: this.htmlFor, placement: this.placement, showWithoutDelay: !0, floatingElementSelector: "#flyout-panel", showArrow: !1, visibilityClass: "gids-flyout-panel--visible", elementType: v.FLYOUT_PANEL, constrainPlacements: ["top", "bottom"], constrainToViewportHeight: !0, getAnchorElementFromSlot: (e) => e.querySelector('slot[name="anchor"]')?.assignedElements()[0] || null }), this.floatingElementManager.initialize(), this.setupEventListeners();
|
|
18
|
+
}
|
|
19
|
+
setupEventListeners() {
|
|
20
|
+
const e = this.floatingElementManager.getAnchorElement();
|
|
21
|
+
e && (e.addEventListener("click", this.handleToggleEvent), document.addEventListener("click", this.handleDocumentClick), document.addEventListener("keydown", this.handleKeyDown));
|
|
22
|
+
}
|
|
23
|
+
onFlyoutPanelShow() {
|
|
24
|
+
this.previouslyFocusedElement = document.activeElement, this.updateFocusableElements(), setTimeout((() => {
|
|
25
|
+
this.focusableElements.length > 0 && this.focusableElements[0] && this.focusableElements[0].focus();
|
|
26
|
+
}), 50);
|
|
27
|
+
}
|
|
28
|
+
onFlyoutPanelHide() {
|
|
29
|
+
this.previouslyFocusedElement && (this.previouslyFocusedElement.focus(), this.previouslyFocusedElement = null);
|
|
30
|
+
}
|
|
31
|
+
updateFocusableElements() {
|
|
32
|
+
const e = this._el.shadowRoot?.querySelector("#flyout-panel");
|
|
33
|
+
if (!e) return;
|
|
34
|
+
const t = [], l = d(e);
|
|
35
|
+
t.push(...l);
|
|
36
|
+
const n = this._el.shadowRoot?.querySelector("slot:not([name])");
|
|
37
|
+
n && n.assignedElements({ flatten: !0 }).forEach(((a) => {
|
|
38
|
+
const o = d(a);
|
|
39
|
+
t.push(...o);
|
|
40
|
+
})), this.focusableElements = t.sort(((a, o) => {
|
|
41
|
+
const i = a.compareDocumentPosition(o), m = !!(i & Node.DOCUMENT_POSITION_FOLLOWING), f = !!(i & Node.DOCUMENT_POSITION_PRECEDING);
|
|
42
|
+
return m ? -1 : f ? 1 : 0;
|
|
43
|
+
}));
|
|
44
|
+
}
|
|
45
|
+
trapFocus(e) {
|
|
46
|
+
if (this.focusableElements.length === 0) return;
|
|
47
|
+
const t = this.focusableElements[0], l = this.focusableElements[this.focusableElements.length - 1];
|
|
48
|
+
let n = document.activeElement;
|
|
49
|
+
if (n === this._el) {
|
|
50
|
+
const o = this._el.shadowRoot?.activeElement;
|
|
51
|
+
o !== null && (n = o);
|
|
52
|
+
}
|
|
53
|
+
const a = this.focusableElements.indexOf(n) !== -1;
|
|
54
|
+
e.shiftKey ? n !== t && a || (e.preventDefault(), l && l.focus()) : n !== l && a || (e.preventDefault(), t && t.focus());
|
|
55
|
+
}
|
|
56
|
+
placementChanged(e) {
|
|
57
|
+
this.floatingElementManager?.updateConfig({ placement: e }), this.floatingElementManager?.isVisible() && this.floatingElementManager?.reposition();
|
|
58
|
+
}
|
|
59
|
+
htmlForChanged(e) {
|
|
60
|
+
this.floatingElementManager?.updateConfig({ htmlFor: e }), this.cleanupEventListeners(), this.floatingElementManager?.initialize(), this.setupEventListeners();
|
|
61
|
+
}
|
|
62
|
+
cleanupEventListeners() {
|
|
63
|
+
const e = this.floatingElementManager?.getAnchorElement();
|
|
64
|
+
e && e.removeEventListener("click", this.handleToggleEvent), document.removeEventListener("click", this.handleDocumentClick), document.removeEventListener("keydown", this.handleKeyDown);
|
|
65
|
+
}
|
|
66
|
+
render() {
|
|
67
|
+
return s(y, { key: "a230e6a4aad47d106c536c22e62e983847c61134" }, s("slot", { key: "c32fcfd2e943f94f9e733022cfafbb17d48f0579", name: "anchor" }), s("div", { key: "0bcac3ab2c843fc1bd7137e72b6362fce1188cb9", id: "flyout-panel", part: "flyout-panel", role: "dialog", "aria-modal": "true", tabindex: "-1" }, s("div", { key: "33cfcf17f75c22f5185dced5c4f6a070c6d7455c" }, s("slot", { key: "e30b5a128c4f3668553c3d0246d2cb400c42f8eb" }))));
|
|
68
|
+
}
|
|
69
|
+
disconnectedCallback() {
|
|
70
|
+
this.cleanupEventListeners(), this.floatingElementManager?.destroy();
|
|
71
|
+
}
|
|
72
|
+
get _el() {
|
|
73
|
+
return this;
|
|
74
|
+
}
|
|
75
|
+
static get watchers() {
|
|
76
|
+
return { placement: [{ placementChanged: 0 }], htmlFor: [{ htmlForChanged: 0 }] };
|
|
77
|
+
}
|
|
78
|
+
static get style() {
|
|
79
|
+
return "gids-flyout-panel{--gidsFlyoutPanel-background:var(--gids-elevation-surface-overlay-default);--gidsFlyoutPanel-text-color:var(--gids-color-text-default);--gidsFlyoutPanel-padding:var(--gids-padding-vertical-edge-to-element-200) var(--gids-padding-horizontal-edge-to-element-300);--gidsFlyoutPanel-border-radius:var(--gids-border-radius-lg);--gidsFlyoutPanel-shadow:var(--gids-elevation-shadow-overlay);--gidsFloatingElement-background:var(--gidsFlyoutPanel-background)}[part=flyout-panel]{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);position:absolute;display:inline-block;background-color:var(--gidsFlyoutPanel-background);color:var(--gidsFlyoutPanel-text-color);border-radius:var(--gidsFlyoutPanel-border-radius);box-shadow:var(--gidsFlyoutPanel-shadow);z-index:1000;opacity:0;pointer-events:none;outline:none}[part=flyout-panel]:focus{outline:none}[part=flyout-panel].gids-flyout-panel--visible{pointer-events:initial;opacity:1}";
|
|
80
|
+
}
|
|
81
|
+
}, [257, "gids-flyout-panel", { htmlFor: [513, "for"], placement: [513] }, void 0, { placement: [{ placementChanged: 0 }], htmlFor: [{ htmlForChanged: 0 }] }]), c = (e) => {
|
|
82
|
+
if (!(e instanceof u) || e.tabIndex === -1 || e.hasAttribute("disabled")) return !1;
|
|
83
|
+
const t = getComputedStyle(e);
|
|
84
|
+
if (t.display === "none" || t.visibility === "hidden" || e.hidden) return !1;
|
|
85
|
+
try {
|
|
86
|
+
const l = e.tabIndex;
|
|
87
|
+
e.tabIndex = -1, e.focus();
|
|
88
|
+
const n = document.activeElement === e;
|
|
89
|
+
return e.tabIndex = l, n && e.blur(), n;
|
|
90
|
+
} catch {
|
|
91
|
+
return !1;
|
|
92
|
+
}
|
|
93
|
+
}, d = (e) => {
|
|
94
|
+
const t = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (a) => c(a) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP }), l = [];
|
|
95
|
+
c(e) && l.push(e);
|
|
96
|
+
let n = t.nextNode();
|
|
97
|
+
for (; n !== null; ) l.push(n), n = t.nextNode();
|
|
98
|
+
return l;
|
|
99
|
+
};
|
|
100
|
+
function g() {
|
|
101
|
+
typeof customElements < "u" && ["gids-flyout-panel"].forEach(((e) => {
|
|
102
|
+
e === "gids-flyout-panel" && (customElements.get(r(e)) || customElements.define(r(e), h));
|
|
103
|
+
}));
|
|
104
|
+
}
|
|
105
|
+
g();
|
|
106
|
+
const P = h, k = g;
|
|
107
|
+
export {
|
|
108
|
+
P as GidsFlyoutPanel,
|
|
109
|
+
k as defineCustomElement
|
|
110
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { L as f, u as M, D as r, P as S, q as p } from "./p-
|
|
2
|
-
import { d as C } from "./p-
|
|
3
|
-
import { b as N } from "./p-
|
|
1
|
+
import { L as f, u as M, D as r, P as S, q as p } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
|
+
import { d as C } from "./p-iQRr_fAH-ClfWEu03.js";
|
|
3
|
+
import { b as N } from "./p-KQxuw_F--BTSoDfF9.js";
|
|
4
4
|
import { e as y } from "./p-ChV9xqsO-CJSPCx6p.js";
|
|
5
|
-
import { h as x } from "./p-
|
|
5
|
+
import { h as x } from "./p-Dw_kb9MC-BTd0lrGA.js";
|
|
6
6
|
import { c as b } from "./clsx-OuTLNxxd.js";
|
|
7
7
|
const E = ({ mode: a, type: e }, t) => b("gids-header-navigation", {
|
|
8
8
|
// Modes
|
|
@@ -103,7 +103,7 @@ const E = ({ mode: a, type: e }, t) => b("gids-header-navigation", {
|
|
|
103
103
|
}
|
|
104
104
|
render() {
|
|
105
105
|
const a = this?.appearance ?? "default", e = this?.selectionAppearance ?? "default", t = this?.applyShadow ?? !1, d = this?.applySeparators ?? !1, n = this?.borderRadius ?? "none", u = this?.mode ?? "wrap", l = this?.type ?? "gap", s = this?.size ?? "md", h = this?.navMenus ?? [], o = this?.selectionType ?? "single-deselection-not-allowed", I = w({ mode: u, type: l });
|
|
106
|
-
return r(S, { key: "
|
|
106
|
+
return r(S, { key: "277cd1197cd4e7b442e9c65ba5430effe4f34afb", class: I }, h.map(((i, m) => r("div", { key: "" + (m + 1), class: y("gids-header-navigation__item-container-gap", { "gids-header-navigation__item-container-standard": l === "standard" }) }, r("gids-header-navigation-item", { ...i, id: i.id, menuId: i?.menuId, menuItems: i?.menuItems ?? [], label: i?.label, size: s, appearance: a, selectionAppearance: e, applyShadow: t, borderRadius: n, expanded: this.isThisMenuExpanded(i?.menuId), selected: this.isThisNavigationItemSelected(i?.id), selectedMenuItemId: this.getSelectedMenuItemId(), selectionType: o, onPressNavigationItem: (c) => this.onNavigationItemPress({ event: c, itemIndex: m }), onMenuItemChange: (c) => this.onNavigationMenuItemChange({ event: c, itemIndex: m }) }, i?.leadingIconName && i.leadingIconName !== "(none)" ? r(C, { slot: "headerNavItemLeadingIcon", name: i.leadingIconName, size: s !== "xl" ? s : "lg", alt: "", appearance: "regular" }) : void 0), d && m < h.length - 1 ? r(N, { orientation: "vertical" }) : void 0))));
|
|
107
107
|
}
|
|
108
108
|
get hostElement() {
|
|
109
109
|
return this;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
1
|
+
import { n as o, d as s } from "./p-DKOr5iAk-DA3Kc4Cn.js";
|
|
2
|
+
const n = o, t = s;
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
n as GidsIcon,
|
|
5
|
+
t as defineCustomElement
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as e, c as
|
|
2
|
-
const
|
|
1
|
+
import { g as e, c as s } from "./p-CH4nrjpL-CrEJXTn0.js";
|
|
2
|
+
const o = e, r = s;
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
o as GidsLineChart,
|
|
5
|
+
r as defineCustomElement
|
|
6
6
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { L as q, u as M, D as d, P as E, F as K, q as I } from "./p-
|
|
2
|
-
import { o as $ } from "./p-
|
|
3
|
-
import { d as S } from "./p-
|
|
4
|
-
import { o as J } from "./p-
|
|
1
|
+
import { L as q, u as M, D as d, P as E, F as K, q as I } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
|
+
import { o as $ } from "./p-BsC3-MVH-j4fPhip5.js";
|
|
3
|
+
import { d as S } from "./p-iQRr_fAH-ClfWEu03.js";
|
|
4
|
+
import { o as J } from "./p-Dg_WeHpV-DehzGL6g.js";
|
|
5
5
|
import { c as B } from "./clsx-OuTLNxxd.js";
|
|
6
6
|
const F = (e) => !!(e?.buttonLabel && e.buttonLabel !== "" || e?.leadingIconName && e.leadingIconName !== "" || e?.trailingIconName && e.trailingIconName !== ""), Q = ({ cellActionButton: e, neededIconType: t = "leading" }) => t === "trailing" ? {
|
|
7
7
|
cellIconName: e?.trailingIconName,
|
|
@@ -178,7 +178,7 @@ const F = (e) => !!(e?.buttonLabel && e.buttonLabel !== "" || e?.leadingIconName
|
|
|
178
178
|
}
|
|
179
179
|
render() {
|
|
180
180
|
const e = pe({ width: this.width }), t = this.isTopHeaderVisible, a = this.getTopHeaderCells(), l = this?.constructedTableBodyData ?? [];
|
|
181
|
-
return d(E, { key: "
|
|
181
|
+
return d(E, { key: "149503cf732a979d70841de56fb5a48aefc6dd1d", class: e }, d("table", { key: "4ec02288773274ed0856493709f09637d999b94e", class: this.getTableClasses() }, t ? d(be, { appearance: this.topHeaderAppearance, labelTypography: this.topHeaderLabelTypography, textAlignment: this.topHeaderTextAlignment, headerCells: a, width: this.width }) : void 0, d("tbody", { key: "e4d16bb9f0ae934c1551f5c866fb353bf74f8ac6" }, l.length > 0 ? l.map(((r) => d(D, { layout: "horizontal", rows: r?.items ?? [], width: this.width }))) : void 0)));
|
|
182
182
|
}
|
|
183
183
|
get hostElement() {
|
|
184
184
|
return this;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { L as a, u as n, D as e, q as o } from "./p-
|
|
1
|
+
import { L as a, u as n, D as e, q as o } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
2
|
import { i as l } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
3
|
-
const
|
|
3
|
+
const h = (t) => t === "top" || t === "top-bottom", c = (t) => t === "bottom" || t === "top-bottom", d = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
4
|
__proto__: null,
|
|
5
|
-
showGidsOverflowContainerBottomShadow:
|
|
6
|
-
showGidsOverflowContainerTopShadow:
|
|
5
|
+
showGidsOverflowContainerBottomShadow: c,
|
|
6
|
+
showGidsOverflowContainerTopShadow: h
|
|
7
7
|
}, Symbol.toStringTag, { value: "Module" })), { showGidsOverflowContainerBottomShadow: s, showGidsOverflowContainerTopShadow: f } = d, r = a(class extends n {
|
|
8
8
|
constructor(t) {
|
|
9
9
|
super(), t !== !1 && this.__registerHost(), this.__attachShadow(), this.shadowLocation = "bottom";
|
|
@@ -20,7 +20,7 @@ const c = (t) => t === "top" || t === "top-bottom", h = (t) => t === "bottom" ||
|
|
|
20
20
|
this._textArea.scrollTop + this._textArea.offsetHeight >= this._textArea.scrollHeight ? this._el.style.setProperty("--gidsOverflowContainer-after-opacity", "0") : t !== 0 ? t > 0 && (f(this.shadowLocation) && this._el.style.setProperty("--gidsOverflowContainer-before-opacity", "" + Math.min(t / 20, 1)), s(this.shadowLocation) && this._el.style.setProperty("--gidsOverflowContainer-after-opacity", "" + Math.min((this._textArea.scrollHeight - (this._textArea.scrollTop + this._textArea.offsetHeight)) / 20, 1))) : this._el.style.setProperty("--gidsOverflowContainer-after-opacity", "0");
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return e("div", { key: "
|
|
23
|
+
return e("div", { key: "a4664a98e3e473eb4067a1d25ab9440ca3609253", class: "gids-overflow-container__text-area", onScroll: this.calculateShadows.bind(this) }, e("slot", { key: "df5ada977be1fef755d901097519fa12de591bbe" }));
|
|
24
24
|
}
|
|
25
25
|
get _el() {
|
|
26
26
|
return this;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { L as C, u as y, D as o, F as w, q as f } from "./p-
|
|
1
|
+
import { L as C, u as y, D as o, F as w, q as f } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
2
|
import { i as x } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
3
3
|
import { e as N, n as g } from "./p-CVtNa0cL-sSVeJsR3.js";
|
|
4
|
-
import { d as p } from "./p-
|
|
5
|
-
import { o as u } from "./p-
|
|
4
|
+
import { d as p } from "./p-iQRr_fAH-ClfWEu03.js";
|
|
5
|
+
import { o as u } from "./p-Dg_WeHpV-DehzGL6g.js";
|
|
6
6
|
import { c as h } from "./clsx-OuTLNxxd.js";
|
|
7
7
|
const Q = ({ appearance: t }, e) => h("gids-notification-container", {
|
|
8
8
|
// 'gids-notification-container--appearance-default': appearance === 'default' // its a default
|
|
@@ -187,7 +187,7 @@ const Q = ({ appearance: t }, e) => h("gids-notification-container", {
|
|
|
187
187
|
}
|
|
188
188
|
render() {
|
|
189
189
|
const t = this._allowedComponentQueue[0]?.position || "bottom-center";
|
|
190
|
-
return o(w, { key: "
|
|
190
|
+
return o(w, { key: "9b08b3e4542dd26ea2f7097b71f65205f75ff35b" }, o("slot", { key: "6ee78e50172ae07b8f0370ee6bc0438ae5275d8d" }), this._isRoot() ? o("div", { class: G({ position: t }) }, [...this._allowedComponentQueue].reverse().map(((e) => this._renderComponent(e)))) : null);
|
|
191
191
|
}
|
|
192
192
|
get _el() {
|
|
193
193
|
return this;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { L as S, u as P, z as v, C as x, D as i, F as T, q as h } from "./p-
|
|
1
|
+
import { L as S, u as P, z as v, C as x, D as i, F as T, q as h } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
2
|
import { i as C } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
3
|
-
import {
|
|
4
|
-
import { r as L } from "./p-
|
|
5
|
-
import { o as O } from "./p-
|
|
6
|
-
import { g as k, d as j } from "./p-
|
|
7
|
-
import { h as z } from "./p-
|
|
8
|
-
import { r as E } from "./p-
|
|
3
|
+
import { s as F } from "./p-BkxmRN-4-DSiXCW8b.js";
|
|
4
|
+
import { r as L } from "./p-Do_VlNHg-_g7lcvwR.js";
|
|
5
|
+
import { o as O } from "./p-Dg_WeHpV-DehzGL6g.js";
|
|
6
|
+
import { g as k, d as j } from "./p-iQRr_fAH-ClfWEu03.js";
|
|
7
|
+
import { h as z } from "./p-CrqHKmjy-DwSsCofb.js";
|
|
8
|
+
import { r as E } from "./p-j2_DKwBz-CqyuxxnN.js";
|
|
9
9
|
import { c as g } from "./clsx-OuTLNxxd.js";
|
|
10
10
|
const G = (e) => {
|
|
11
11
|
switch (e) {
|
|
@@ -40,7 +40,7 @@ const G = (e) => {
|
|
|
40
40
|
return e && e.length > 0 && e.map((s) => {
|
|
41
41
|
s?.requirementRule && t.push(s.requirementRule);
|
|
42
42
|
}), t;
|
|
43
|
-
},
|
|
43
|
+
}, N = ({ rule: e, textMinLength: t = 0, text: s }) => {
|
|
44
44
|
if (!s || s === "" || !e && !t)
|
|
45
45
|
return !1;
|
|
46
46
|
switch (e) {
|
|
@@ -89,9 +89,9 @@ const G = (e) => {
|
|
|
89
89
|
defaultMeterRules: R(t),
|
|
90
90
|
defaultRequirementsMeterRules: t
|
|
91
91
|
};
|
|
92
|
-
},
|
|
92
|
+
}, D = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
93
93
|
__proto__: null,
|
|
94
|
-
checkRequirementRuleSatisfied:
|
|
94
|
+
checkRequirementRuleSatisfied: N,
|
|
95
95
|
getDefaultRulesAndRequirementsForMeters: m,
|
|
96
96
|
getMeterRulesFromRequirements: R,
|
|
97
97
|
minLengthRuleCanBeApplied: o
|
|
@@ -108,10 +108,10 @@ const G = (e) => {
|
|
|
108
108
|
default:
|
|
109
109
|
return "globe";
|
|
110
110
|
}
|
|
111
|
-
},
|
|
111
|
+
}, H = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
112
112
|
__proto__: null,
|
|
113
113
|
getRequirementsMeterLabelLeadingIcon: V
|
|
114
|
-
}, Symbol.toStringTag, { value: "Module" })), { inputToGidsFieldStatusForPassword:
|
|
114
|
+
}, Symbol.toStringTag, { value: "Module" })), { inputToGidsFieldStatusForPassword: U } = B, Z = (e) => e === "implicit" || e === void 0 ? "implicit" : U(e), W = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
115
115
|
__proto__: null,
|
|
116
116
|
inputToGidsFieldStatusForPassword: Z
|
|
117
117
|
}, Symbol.toStringTag, { value: "Module" })), J = ({ status: e }, t) => g("gids-requirements-meter-label", {
|
|
@@ -137,10 +137,10 @@ const G = (e) => {
|
|
|
137
137
|
return s[d] === "include-min-length" ? o({ requirementRule: "include-min-length", textMinLength: t }) ? a(d, u, w) : null : a(d, u, w);
|
|
138
138
|
}));
|
|
139
139
|
})()) : null;
|
|
140
|
-
}, { getGidsRequirementsMeterLabelClassNames: ne } = K, { getRequirementsMeterLabelLeadingIcon: le } =
|
|
140
|
+
}, { getGidsRequirementsMeterLabelClassNames: ne } = K, { getRequirementsMeterLabelLeadingIcon: le } = H, ae = (e) => {
|
|
141
141
|
const { label: t, status: s = "default", leadingIconVisible: n = !0, class: a } = e, r = le(s);
|
|
142
142
|
return i("div", { class: ne({ status: s }, a) }, n && s && r ? i(j, { name: r, size: "sm", appearance: "filled" }) : null, t && t !== "" ? i("span", null, t) : null);
|
|
143
|
-
}, { checkRequirementRuleSatisfied: ue } =
|
|
143
|
+
}, { checkRequirementRuleSatisfied: ue } = D, { getGidsRequirementsMeterClassNames: de } = X, oe = ({ requirements: e = [], text: t, textMinLength: s, class: n }) => {
|
|
144
144
|
const a = (r, l) => i(ae, { status: l ? "success" : "error", label: r.requirementText });
|
|
145
145
|
return i("div", { class: de(n) }, e.map(((r) => {
|
|
146
146
|
if (r?.requirementText != null && r?.requirementRule != null) {
|
|
@@ -191,7 +191,7 @@ const G = (e) => {
|
|
|
191
191
|
#e;
|
|
192
192
|
render() {
|
|
193
193
|
const { id: e, ...t } = this.inputProps ?? {}, s = e ?? this.#t, n = this.showClearButton && this.value !== void 0 && this.value.length > 0, a = this.showRevealPasswordButton, r = { ...t }, l = r?.placeholder !== void 0 && r.placeholder !== null && r.placeholder != "" ? r.placeholder : "Enter password", u = this.isPasswordRevealed, _ = this.meterRules, c = this.textMinLength !== void 0 ? this.textMinLength : 8;
|
|
194
|
-
return i(T, { key: "
|
|
194
|
+
return i(T, { key: "33d42d67ea997bb2211c70f79f0f0c68b4d5aa0b" }, i("gids-field", { key: "0516b66d60f440703d05611b811724ed83b0615e", disabled: this.disabled, count: void 0, helperText: this.helperText, statusText: this.statusText, status: ce(this.status) }, i(F, { key: "b2d0edc9e74776be766c37ea423f5d810de39360", slot: "label", disabled: this.disabled, info: i("slot", { name: "info" }), fieldRequirement: this.fieldRequirement, fieldRequirementOptionalText: this.fieldRequirementOptionalText, fieldRequirementRequiredText: this.fieldRequirementRequiredText, isLabelSentence: this.isLabelSentence, htmlFor: s }, this.label), i("gids-input", { key: "d98ecca02fcc0e415505de1c3da64bd1fbbef7cc", ref: (d) => this.#e = d, appearance: "default", status: this.status, loading: this.loading, value: this.value, defaultValue: this.defaultValue, name: this.name, required: this.required, disabled: this.disabled, readOnly: this.readOnly, leadingLabel: void 0, trailingLabel: void 0, onFocus: this._handleInputFocusAndBlur, onBlur: this._handleInputFocusAndBlur, onInput: this._handleInput, inputProps: { ...r, placeholder: l, type: u ? "text" : "password", id: s, maxLength: this.maxLength } }, i("slot", { key: "911415321782269e1a2963a0d8e54475fd12290d", name: "leadingIcon" }), i("slot", { key: "3405d4af56614f95da92da66a82922a55c249c97", name: "leadingAccessory" }), i("div", { key: "0456836067f779a41359ccf41e865fadefd1b6ae", slot: "trailingAccessory", class: "gids-password-field__trailing-accessory" }, n && i(L, { key: "a656b56bd471a945ce3484047d03392ec8907920", label: "clear text", size: "lg", onPressDismiss: this._handleDismiss }), a && i(O, { key: "408e89f1ddec04984b9f5bb915da9d68b0076eb4", appearance: "default", size: "xs", width: "intrinsic", disabled: this.disabled, onClick: this._handleRevealPassword }, u ? "Hide" : "Show")))), i("div", { key: "bf780a37fd0ca6a4ca773ad635ad7a4ce1505633", class: "gids-password-field__meters-container" }, i(ie, { key: "c0402c0aed753fad61628defdd15cdba196435ee", meterRules: _, text: this.value, textMinLength: c }), i(oe, { key: "269763f5c9f138c0de85e36357fd985064705a8f", requirements: this.requirementsMeterRequirements, text: this.value, textMinLength: c })));
|
|
195
195
|
}
|
|
196
196
|
get _el() {
|
|
197
197
|
return this;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as e, c as
|
|
2
|
-
const
|
|
1
|
+
import { n as e, c as s } from "./p-DrDadv7P-D4rbSYTr.js";
|
|
2
|
+
const o = e, a = s;
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
o as GidsPieChart,
|
|
5
|
+
a as defineCustomElement
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { L as v, u as p, D as a, F as f, q as l } from "./p-
|
|
2
|
-
import {
|
|
3
|
-
import { o as b } from "./p-
|
|
1
|
+
import { L as v, u as p, D as a, F as f, q as l } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
|
+
import { c as E } from "./p-CTri3IsV-B1u0rrXF.js";
|
|
3
|
+
import { o as b } from "./p-CPgZgSBN-DsTNcUR7.js";
|
|
4
4
|
const h = v(class extends p {
|
|
5
5
|
constructor(e) {
|
|
6
6
|
super(), e !== !1 && this.__registerHost(), this.__attachShadow(), this.placement = "bottom", this.previouslyFocusedElement = null, this.focusableElements = [], this.handleToggleEvent = (t) => {
|
|
@@ -64,7 +64,7 @@ const h = v(class extends p {
|
|
|
64
64
|
e && e.removeEventListener("click", this.handleToggleEvent), document.removeEventListener("click", this.handleDocumentClick), document.removeEventListener("keydown", this.handleKeyDown);
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
|
-
return a(f, { key: "
|
|
67
|
+
return a(f, { key: "73497d9ef4f14eebabf001242caef76381b5991d" }, a("slot", { key: "7b765462348d7a0c4340bdefd665d5b06149f404", name: "anchor" }), a("div", { key: "c08d46d227c0a7427d6e32f7999cfe0bc4ef7761", id: "popover", part: "popover", role: "dialog", "aria-modal": "true", tabindex: "-1" }, a("span", { key: "f7d42809d784ac6a83ccf02fc0d3d206429cdd8c", id: "arrow" }), a("div", { key: "869b33ab701c0fe3bd1e9e98e1174366d78a9807" }, a("slot", { key: "9c3e5e4d37cc1da657984f1807e8f000011f8161" }))));
|
|
68
68
|
}
|
|
69
69
|
disconnectedCallback() {
|
|
70
70
|
this.cleanupEventListeners(), this.floatingElementManager?.destroy();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { L as z, u as B, D as
|
|
2
|
-
import { m as
|
|
3
|
-
import { p as
|
|
4
|
-
import { d as b } from "./p-
|
|
5
|
-
import {
|
|
6
|
-
import { c as
|
|
7
|
-
const
|
|
1
|
+
import { L as z, u as B, D as o, P as L, q as c } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
|
+
import { m as R, l as $, u as j } from "./p-B0hLXifA-CoImnX3T.js";
|
|
3
|
+
import { p as G } from "./p-CcKHKwS0-Bw63tTOA.js";
|
|
4
|
+
import { d as b } from "./p-iQRr_fAH-ClfWEu03.js";
|
|
5
|
+
import { u as q } from "./p-Cf3Ny79u-VGT_IyGI.js";
|
|
6
|
+
import { c as N } from "./clsx-OuTLNxxd.js";
|
|
7
|
+
const O = ({ profileControlAppearance: e, profileControlBorderRadius: i, profileControlShadow: r, expanded: a }, l) => N("gids-profile", {
|
|
8
8
|
// Appearances
|
|
9
9
|
// 'gids-profile--appearance-default': profileControlAppearance === 'default', // By default so not needed
|
|
10
10
|
"gids-profile--appearance-brand": e === "brand",
|
|
@@ -21,12 +21,12 @@ const N = ({ profileControlAppearance: e, profileControlBorderRadius: i, profile
|
|
|
21
21
|
"gids-profile--border-radius-full": i === "full",
|
|
22
22
|
// Shadows
|
|
23
23
|
// 'gids-profile--shadow-none': profileControlShadow === 'none', // By default so not needed
|
|
24
|
-
"gids-profile--shadow-overflow":
|
|
25
|
-
"gids-profile--shadow-overlay":
|
|
26
|
-
"gids-profile--shadow-raised":
|
|
24
|
+
"gids-profile--shadow-overflow": r === "overflow",
|
|
25
|
+
"gids-profile--shadow-overlay": r === "overlay",
|
|
26
|
+
"gids-profile--shadow-raised": r === "raised",
|
|
27
27
|
// Expansion
|
|
28
28
|
"gids-profile--expanded": a
|
|
29
|
-
}, l),
|
|
29
|
+
}, l), F = ({ profileControlAppearance: e }) => {
|
|
30
30
|
switch (e) {
|
|
31
31
|
case "brand":
|
|
32
32
|
return {
|
|
@@ -64,32 +64,38 @@ const N = ({ profileControlAppearance: e, profileControlBorderRadius: i, profile
|
|
|
64
64
|
supportingTextClasses: "gids-profile__supporting-text-typography gids-profile__supporting-text-default"
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
},
|
|
67
|
+
}, W = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
68
68
|
__proto__: null,
|
|
69
|
-
getGidsProfileClassNames:
|
|
70
|
-
getGidsProfileTextClassNames:
|
|
71
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsProfileClassNames:
|
|
69
|
+
getGidsProfileClassNames: O,
|
|
70
|
+
getGidsProfileTextClassNames: F
|
|
71
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsProfileClassNames: J, getGidsProfileTextClassNames: K } = W, { getProfileHeaderMenuAvatarText: Q } = $, C = z(class extends B {
|
|
72
72
|
constructor(e) {
|
|
73
|
-
super(), e !== !1 && this.__registerHost(), this.expanded = !1, this.profileControlAppearance = "default", this.profileControlAvatarVisible = !0, this.profileControlAvatarBadgeVisible = !0, this.profileControlBorderRadius = "none", this.profileControlShadow = "none", this.profileControlLeadingIconSize = "sm", this.profileControlTrailingIconSize = "sm", this.profileControlLeadingIconAppearance = "filled", this.profileControlTrailingIconAppearance = "filled", this.profileMenuItems = [], this.headerDividerVisible = !1, this.headerVisible = !1, this.listSectionDividerVisible = !1, this.isMenuExpanded = !1, this.onProfileControlPress = (i) => {
|
|
74
|
-
if (this.hasMenu()) {
|
|
75
|
-
const
|
|
76
|
-
this.isMenuExpanded =
|
|
73
|
+
super(), e !== !1 && this.__registerHost(), this.expanded = !1, this.profileControlAppearance = "default", this.profileControlAvatarVisible = !0, this.profileControlAvatarBadgeVisible = !0, this.profileControlBorderRadius = "none", this.profileControlShadow = "none", this.profileControlLeadingIconSize = "sm", this.profileControlTrailingIconSize = "sm", this.profileControlLeadingIconAppearance = "filled", this.profileControlTrailingIconAppearance = "filled", this.profileMenuItems = [], this.headerDividerVisible = !1, this.headerVisible = !1, this.listSectionDividerVisible = !1, this.isMenuExpanded = !1, this.selectedProfileMenuItemId = void 0, this.onProfileControlPress = (i) => {
|
|
74
|
+
if (i && i.stopPropagation(), this.hasMenu()) {
|
|
75
|
+
const r = !this.isMenuExpanded;
|
|
76
|
+
this.isMenuExpanded = r, this.onPressProfileControl && this.onPressProfileControl({ originalEvent: i, id: this.id, menuId: this?.menuId, expanded: r, profileControlTitle: this?.profileControlTitle, profileControlSupportingText: this?.profileControlSupportingText });
|
|
77
77
|
}
|
|
78
78
|
}, this.onPressProfileMenuItem = (i) => {
|
|
79
|
-
this.isMenuExpanded = !1, this.
|
|
79
|
+
i?.originalEvent && (i.originalEvent?.stopPropagation(), i.originalEvent?.preventDefault()), this.isMenuExpanded = !1, this.selectedProfileMenuItemId = i.id, this.onProfileMenuItemPress && this.onProfileMenuItemPress({ ...i });
|
|
80
|
+
}, this.onPressHeaderAvatar = (i) => {
|
|
81
|
+
i?.originalEvent && i.originalEvent?.stopPropagation(), this.isMenuExpanded = !1, this.onHeaderAvatarPress && this.onHeaderAvatarPress({ ...i });
|
|
82
|
+
}, this.onPressHeaderTitle = (i) => {
|
|
83
|
+
i?.originalEvent && i.originalEvent?.stopPropagation(), this.isMenuExpanded = !1, this.onHeaderAvatarPress && this.onHeaderAvatarPress({ ...i });
|
|
84
|
+
}, this.onPressHeaderSupportingText = (i) => {
|
|
85
|
+
i?.originalEvent && i.originalEvent?.stopPropagation(), this.isMenuExpanded = !1, this.onHeaderAvatarPress && this.onHeaderAvatarPress({ ...i });
|
|
80
86
|
}, this.positionProfileMenu = () => {
|
|
81
87
|
const i = this.hostElement?.querySelector(".gids-profile__dropdown-menu-container");
|
|
82
88
|
if (!i) return;
|
|
83
|
-
const
|
|
89
|
+
const r = this.hostElement.getBoundingClientRect(), a = window.innerWidth, l = window.innerHeight;
|
|
84
90
|
i.style.maxHeight = "none";
|
|
85
|
-
const g = i.getBoundingClientRect(), s = l -
|
|
91
|
+
const g = i.getBoundingClientRect(), s = l - r.bottom - 8, n = r.top - 4, d = g.height > s && n > s, f = d ? n : s;
|
|
86
92
|
i.style.maxHeight = g.height > f ? f + "px" : "none";
|
|
87
93
|
const p = i.getBoundingClientRect();
|
|
88
|
-
let t =
|
|
89
|
-
t + p.width > a - 4 && (t = a - p.width - 4), t < 4 && (t = 4), i.style.left = t -
|
|
94
|
+
let t = r.left;
|
|
95
|
+
t + p.width > a - 4 && (t = a - p.width - 4), t < 4 && (t = 4), i.style.left = t - r.left + "px", i.style.top = d ? -p.height - 4 + "px" : r.height + 4 + "px";
|
|
90
96
|
}, this.getProfileControlAvatarText = () => {
|
|
91
|
-
const i = this?.profileControlAvatarProps,
|
|
92
|
-
return i?.text ??
|
|
97
|
+
const i = this?.profileControlAvatarProps, r = this?.profileControlTitle;
|
|
98
|
+
return i?.text ?? Q({ headerTitle: r });
|
|
93
99
|
}, this.hasHeaderItem = () => {
|
|
94
100
|
const i = this?.headerItem;
|
|
95
101
|
return !(!this?.headerVisible || !(i?.avatarVisible || i?.avatarProps && Object.keys(i).length > 0 || i?.headerSupportingText || i?.headerTitle));
|
|
@@ -163,9 +169,9 @@ const N = ({ profileControlAppearance: e, profileControlBorderRadius: i, profile
|
|
|
163
169
|
document.removeEventListener("click", this.handleDocumentClick);
|
|
164
170
|
}
|
|
165
171
|
render() {
|
|
166
|
-
const e = this?.profileControlAppearance ?? "default", i = this?.profileControlAvatarProps,
|
|
172
|
+
const e = this?.profileControlAppearance ?? "default", i = this?.profileControlAvatarProps, r = i?.badgeProps, a = this?.profileControlAvatarVisible ?? !1, l = this?.profileControlAvatarBadgeVisible ?? !1, g = this?.profileControlBorderRadius ?? "none", s = this?.profileControlShadow ?? "none", n = this?.profileControlLeadingIcon, d = this?.profileControlTrailingIcon, f = this?.profileControlTitle ?? "", p = this?.profileControlSupportingText ?? "", t = this?.profileMenuItems ?? [], _ = this?.headerDividerVisible ?? !1, x = this?.headerVisible ?? !1, y = this?.headerItem, I = this?.listSectionDividerVisible ?? !1, P = this?.menuId, h = this?.isMenuExpanded ?? !1, u = this.hasMenu(), w = this.selectedProfileMenuItemId, k = this?.profileControlLeadingIconSize ?? "sm", T = this?.profileControlTrailingIconSize ?? "sm", A = this?.profileControlLeadingIconAppearance ?? "filled", V = this?.profileControlTrailingIconAppearance ?? "filled", M = J({ profileControlAppearance: e, profileControlBorderRadius: g, profileControlShadow: s, expanded: h && u }), S = i?.size ?? "sm", { titleClasses: E, supportingTextClasses: D } = K({ profileControlAppearance: e });
|
|
167
173
|
let v = i?.color ?? "brand";
|
|
168
|
-
return e === "brand" && (v = i?.color ?? "default"),
|
|
174
|
+
return e === "brand" && (v = i?.color ?? "default"), o(L, { key: "af2b1019426d4afb25d17e13cbcfd9c68ff93ae3", class: M, onClick: this.onProfileControlPress, "menu-expanded": h }, n ? o(b, { name: n, size: k, appearance: A }) : void 0, o("div", { key: "0236ae2295f37e17c119fb2aef82ce640e0f5176", class: "gids-profile__main-container" }, a ? o(R, { appearance: i?.appearance ?? "text", color: v, size: S, text: this.getProfileControlAvatarText(), imageSrc: i?.imageSrc ?? "", alt: i?.alt ?? "alt-img", badge: l ? o(G, { appearance: r?.appearance ?? "information", type: r?.type, count: r?.count, outline: r?.outline }) : void 0 }) : void 0, o("div", { key: "24ff9b5beb2f85c80bd6f4995f121c07ea419a30", class: "gids-profile__content-container" }, o("span", { key: "eee7c917840c9e50235c7ff6a1521257aad5b7b0", class: E }, f), o("p", { key: "13f067ccbf54ec8562644a80959f78a0ece5ac68", class: D }, p))), d ? o(b, { name: d, size: T, appearance: V }) : void 0, u && h ? o("div", { class: "gids-profile__dropdown-menu-container", id: P, role: "profilePickerbox", onClick: (H) => H.stopPropagation() }, o("gids-profile-menu", { headerItem: y, headerDividerVisible: _, headerVisible: x, listSectionDividerVisible: I, profileMenuItems: t, onHeaderAvatarPress: this.onPressHeaderAvatar, onHeaderTitlePress: this.onPressHeaderTitle, onHeaderSupportingTextPress: this.onPressHeaderSupportingText, onProfileMenuItemPress: this.onPressProfileMenuItem, selectedProfileMenuItemId: w })) : void 0);
|
|
169
175
|
}
|
|
170
176
|
get hostElement() {
|
|
171
177
|
return this;
|
|
@@ -174,9 +180,9 @@ const N = ({ profileControlAppearance: e, profileControlBorderRadius: i, profile
|
|
|
174
180
|
return { id: [{ idChanged: 0 }], profileControlAppearance: [{ profileControlAppearanceChanged: 0 }], profileControlAvatarProps: [{ profileControlAvatarPropsChanged: 0 }], expanded: [{ expansionChanged: 0 }], profileControlAvatarVisible: [{ profileControlAvatarVisibleChanged: 0 }], profileControlAvatarBadgeVisible: [{ profileControlAvatarBadgeVisibleChanged: 0 }], profileControlBorderRadius: [{ profileControlBorderRadiusChanged: 0 }], profileControlShadow: [{ profileControlShadowChanged: 0 }], listSectionDividerVisible: [{ listSectionDividerVisibleChanged: 0 }], profileControlLeadingIcon: [{ profileControlLeadingIconChanged: 0 }], profileControlTrailingIcon: [{ profileControlTrailingIconChanged: 0 }], profileControlTitle: [{ profileControlTitleChanged: 0 }], profileControlSupportingText: [{ profileControlSupportingTextChanged: 0 }], headerDividerVisible: [{ headerDividerVisibleChanged: 0 }], headerItem: [{ headerItemChanged: 0 }], headerVisible: [{ headerVisibleChanged: 0 }], profileMenuItems: [{ profileMenuItemsChanged: 0 }] };
|
|
175
181
|
}
|
|
176
182
|
static get style() {
|
|
177
|
-
return ".gids-profile{position:relative;display:flex;align-items:center;justify-content:space-between;gap:var(--gids-gap-150);cursor:pointer;background-color:var(--gids-color-background-neutral-default);padding:var(--gids-padding-vertical-edge-to-element-150) var(--gids-padding-horizontal-edge-to-element-200);--gidsIcon-color:var(--gids-color-icon-subtle);border-radius:var(--gids-border-radius-none)}.gids-profile:hover{background-color:var(--gids-color-background-neutral-hovered)}.gids-profile:active{background-color:var(--gids-color-background-neutral-pressed)}.gids-profile__main-container{display:flex;align-items:center;flex:1;gap:var(--gids-gap-100)}.gids-profile__content-container{display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.gids-profile__title-typography{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit)}.gids-profile__supporting-text-typography{margin:0;padding:0;font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-profile__title-default{color:var(--gids-color-text-default)}.gids-profile__supporting-text-default{color:var(--gids-color-text-subtlest)}.gids-profile__title-brand{color:var(--gids-color-text-default)}.gids-profile__supporting-text-brand{color:var(--gids-color-text-subtlest)}.gids-profile__title-subtle{color:var(--gids-color-text-default)}.gids-profile__supporting-text-subtle{color:var(--gids-color-text-subtlest)}.gids-profile__title-positive{color:var(--gids-color-text-default)}.gids-profile__supporting-text-positive{color:var(--gids-color-text-subtlest)}.gids-profile__title-information{color:var(--gids-color-text-default)}.gids-profile__supporting-text-information{color:var(--gids-color-text-subtlest)}.gids-profile__title-warning{color:var(--gids-color-text-default)}.gids-profile__supporting-text-warning{color:var(--gids-color-text-subtlest)}.gids-profile__title-danger{color:var(--gids-color-text-default)}.gids-profile__supporting-text-danger{color:var(--gids-color-text-subtlest)}.gids-profile--appearance-brand{background-color:var(--gids-color-background-brand-subtlest-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-brand:hover{background-color:var(--gids-color-background-brand-subtlest-hovered)}.gids-profile--appearance-brand:active{background-color:var(--gids-color-background-brand-subtlest-pressed)}.gids-profile--appearance-danger{background-color:var(--gids-color-background-danger-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-danger:hover{background-color:var(--gids-color-background-danger-hovered)}.gids-profile--appearance-danger:active{background-color:var(--gids-color-background-danger-pressed)}.gids-profile--appearance-information{background-color:var(--gids-color-background-information-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-information:hover{background-color:var(--gids-color-background-information-hovered)}.gids-profile--appearance-information:active{background-color:var(--gids-color-background-information-pressed)}.gids-profile--appearance-positive{background-color:var(--gids-color-background-positive-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-positive:hover{background-color:var(--gids-color-background-positive-hovered)}.gids-profile--appearance-positive:active{background-color:var(--gids-color-background-positive-pressed)}.gids-profile--appearance-subtle{background-color:var(--gids-color-background-neutral-subtle-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-subtle:hover{background-color:var(--gids-color-background-neutral-subtle-hovered)}.gids-profile--appearance-subtle:active{background-color:var(--gids-color-background-neutral-subtle-pressed)}.gids-profile--appearance-warning{background-color:var(--gids-color-background-warning-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-warning:hover{background-color:var(--gids-color-background-warning-hovered)}.gids-profile--appearance-warning:active{background-color:var(--gids-color-background-warning-pressed)}.gids-profile--border-radius-sm{border-radius:var(--gids-border-radius-sm)}.gids-profile--border-radius-md{border-radius:var(--gids-border-radius-md)}.gids-profile--border-radius-lg{border-radius:var(--gids-border-radius-lg)}.gids-profile--border-radius-full{border-radius:var(--gids-border-radius-full)}.gids-profile--shadow-overflow{box-shadow:var(--gids-elevation-shadow-overflow)}.gids-profile--shadow-overlay{box-shadow:var(--gids-elevation-shadow-overlay)}.gids-profile--shadow-raised{box-shadow:var(--gids-elevation-shadow-raised)}.gids-profile__dropdown-menu-container{position:absolute;left:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;align-self:stretch;min-width:var(--gids-width-2-xs);min-height:55px;overflow-x:hidden;overflow-y:auto;background-color:var(--gids-elevation-surface-overlay-default);box-shadow:var(--gids-elevation-shadow-overlay);border-radius:var(--gids-border-radius-lg)}.gids-profile__dropdown-menu-container>*{flex-shrink:0}.gids-profile--expanded .gids-profile__dropdown-menu-container{display:flex}
|
|
183
|
+
return ".gids-profile{position:relative;display:flex;align-items:center;justify-content:space-between;gap:var(--gids-gap-150);cursor:pointer;background-color:var(--gids-color-background-neutral-default);padding:var(--gids-padding-vertical-edge-to-element-150) var(--gids-padding-horizontal-edge-to-element-200);--gidsIcon-color:var(--gids-color-icon-subtle);border-radius:var(--gids-border-radius-none)}.gids-profile:hover{background-color:var(--gids-color-background-neutral-hovered)}.gids-profile:active{background-color:var(--gids-color-background-neutral-pressed)}.gids-profile__main-container{display:flex;align-items:center;flex:1;gap:var(--gids-gap-100)}.gids-profile__content-container{display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.gids-profile__title-typography{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit)}.gids-profile__supporting-text-typography{margin:0;padding:0;font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-profile__title-default{color:var(--gids-color-text-default)}.gids-profile__supporting-text-default{color:var(--gids-color-text-subtlest)}.gids-profile__title-brand{color:var(--gids-color-text-default)}.gids-profile__supporting-text-brand{color:var(--gids-color-text-subtlest)}.gids-profile__title-subtle{color:var(--gids-color-text-default)}.gids-profile__supporting-text-subtle{color:var(--gids-color-text-subtlest)}.gids-profile__title-positive{color:var(--gids-color-text-default)}.gids-profile__supporting-text-positive{color:var(--gids-color-text-subtlest)}.gids-profile__title-information{color:var(--gids-color-text-default)}.gids-profile__supporting-text-information{color:var(--gids-color-text-subtlest)}.gids-profile__title-warning{color:var(--gids-color-text-default)}.gids-profile__supporting-text-warning{color:var(--gids-color-text-subtlest)}.gids-profile__title-danger{color:var(--gids-color-text-default)}.gids-profile__supporting-text-danger{color:var(--gids-color-text-subtlest)}.gids-profile--appearance-brand{background-color:var(--gids-color-background-brand-subtlest-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-brand:hover{background-color:var(--gids-color-background-brand-subtlest-hovered)}.gids-profile--appearance-brand:active{background-color:var(--gids-color-background-brand-subtlest-pressed)}.gids-profile--appearance-danger{background-color:var(--gids-color-background-danger-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-danger:hover{background-color:var(--gids-color-background-danger-hovered)}.gids-profile--appearance-danger:active{background-color:var(--gids-color-background-danger-pressed)}.gids-profile--appearance-information{background-color:var(--gids-color-background-information-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-information:hover{background-color:var(--gids-color-background-information-hovered)}.gids-profile--appearance-information:active{background-color:var(--gids-color-background-information-pressed)}.gids-profile--appearance-positive{background-color:var(--gids-color-background-positive-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-positive:hover{background-color:var(--gids-color-background-positive-hovered)}.gids-profile--appearance-positive:active{background-color:var(--gids-color-background-positive-pressed)}.gids-profile--appearance-subtle{background-color:var(--gids-color-background-neutral-subtle-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-subtle:hover{background-color:var(--gids-color-background-neutral-subtle-hovered)}.gids-profile--appearance-subtle:active{background-color:var(--gids-color-background-neutral-subtle-pressed)}.gids-profile--appearance-warning{background-color:var(--gids-color-background-warning-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-warning:hover{background-color:var(--gids-color-background-warning-hovered)}.gids-profile--appearance-warning:active{background-color:var(--gids-color-background-warning-pressed)}.gids-profile--border-radius-sm{border-radius:var(--gids-border-radius-sm)}.gids-profile--border-radius-md{border-radius:var(--gids-border-radius-md)}.gids-profile--border-radius-lg{border-radius:var(--gids-border-radius-lg)}.gids-profile--border-radius-full{border-radius:var(--gids-border-radius-full)}.gids-profile--shadow-overflow{box-shadow:var(--gids-elevation-shadow-overflow)}.gids-profile--shadow-overlay{box-shadow:var(--gids-elevation-shadow-overlay)}.gids-profile--shadow-raised{box-shadow:var(--gids-elevation-shadow-raised)}.gids-profile__dropdown-menu-container{position:absolute;left:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;align-self:stretch;min-width:var(--gids-width-2-xs);min-height:55px;overflow-x:hidden;overflow-y:auto;background-color:var(--gids-elevation-surface-overlay-default);box-shadow:var(--gids-elevation-shadow-overlay);border-radius:var(--gids-border-radius-lg)}.gids-profile__dropdown-menu-container>*{flex-shrink:0}.gids-profile--expanded .gids-profile__dropdown-menu-container{display:flex}";
|
|
178
184
|
}
|
|
179
|
-
}, [0, "gids-profile", { id: [1], menuId: [1, "menu-id"], expanded: [4], profileControlAppearance: [1, "profile-control-appearance"], profileControlAvatarProps: [16], profileControlAvatarVisible: [4, "profile-control-avatar-visible"], profileControlAvatarBadgeVisible: [4, "profile-control-avatar-badge-visible"], profileControlBorderRadius: [1, "profile-control-border-radius"], profileControlShadow: [1, "profile-control-shadow"], profileControlLeadingIcon: [1, "profile-control-leading-icon"], profileControlTrailingIcon: [1, "profile-control-trailing-icon"], profileControlLeadingIconSize: [1, "profile-control-leading-icon-size"], profileControlTrailingIconSize: [1, "profile-control-trailing-icon-size"], profileControlLeadingIconAppearance: [1, "profile-control-leading-icon-appearance"], profileControlTrailingIconAppearance: [1, "profile-control-trailing-icon-appearance"], profileControlTitle: [1, "profile-control-title"], profileControlSupportingText: [1, "profile-control-supporting-text"], profileMenuItems: [16], headerDividerVisible: [4, "header-divider-visible"], headerVisible: [4, "header-visible"], headerItem: [16], listSectionDividerVisible: [4, "list-section-divider-visible"], onHeaderAvatarPress: [16], onHeaderTitlePress: [16], onHeaderSupportingTextPress: [16], onProfileMenuItemPress: [16], onPressProfileControl: [16], isMenuExpanded: [32] }, void 0, { id: [{ idChanged: 0 }], profileControlAppearance: [{ profileControlAppearanceChanged: 0 }], profileControlAvatarProps: [{ profileControlAvatarPropsChanged: 0 }], expanded: [{ expansionChanged: 0 }], profileControlAvatarVisible: [{ profileControlAvatarVisibleChanged: 0 }], profileControlAvatarBadgeVisible: [{ profileControlAvatarBadgeVisibleChanged: 0 }], profileControlBorderRadius: [{ profileControlBorderRadiusChanged: 0 }], profileControlShadow: [{ profileControlShadowChanged: 0 }], listSectionDividerVisible: [{ listSectionDividerVisibleChanged: 0 }], profileControlLeadingIcon: [{ profileControlLeadingIconChanged: 0 }], profileControlTrailingIcon: [{ profileControlTrailingIconChanged: 0 }], profileControlTitle: [{ profileControlTitleChanged: 0 }], profileControlSupportingText: [{ profileControlSupportingTextChanged: 0 }], headerDividerVisible: [{ headerDividerVisibleChanged: 0 }], headerItem: [{ headerItemChanged: 0 }], headerVisible: [{ headerVisibleChanged: 0 }], profileMenuItems: [{ profileMenuItemsChanged: 0 }] }]);
|
|
185
|
+
}, [0, "gids-profile", { id: [1], menuId: [1, "menu-id"], expanded: [4], profileControlAppearance: [1, "profile-control-appearance"], profileControlAvatarProps: [16], profileControlAvatarVisible: [4, "profile-control-avatar-visible"], profileControlAvatarBadgeVisible: [4, "profile-control-avatar-badge-visible"], profileControlBorderRadius: [1, "profile-control-border-radius"], profileControlShadow: [1, "profile-control-shadow"], profileControlLeadingIcon: [1, "profile-control-leading-icon"], profileControlTrailingIcon: [1, "profile-control-trailing-icon"], profileControlLeadingIconSize: [1, "profile-control-leading-icon-size"], profileControlTrailingIconSize: [1, "profile-control-trailing-icon-size"], profileControlLeadingIconAppearance: [1, "profile-control-leading-icon-appearance"], profileControlTrailingIconAppearance: [1, "profile-control-trailing-icon-appearance"], profileControlTitle: [1, "profile-control-title"], profileControlSupportingText: [1, "profile-control-supporting-text"], profileMenuItems: [16], headerDividerVisible: [4, "header-divider-visible"], headerVisible: [4, "header-visible"], headerItem: [16], listSectionDividerVisible: [4, "list-section-divider-visible"], onHeaderAvatarPress: [16], onHeaderTitlePress: [16], onHeaderSupportingTextPress: [16], onProfileMenuItemPress: [16], onPressProfileControl: [16], isMenuExpanded: [32], selectedProfileMenuItemId: [32] }, void 0, { id: [{ idChanged: 0 }], profileControlAppearance: [{ profileControlAppearanceChanged: 0 }], profileControlAvatarProps: [{ profileControlAvatarPropsChanged: 0 }], expanded: [{ expansionChanged: 0 }], profileControlAvatarVisible: [{ profileControlAvatarVisibleChanged: 0 }], profileControlAvatarBadgeVisible: [{ profileControlAvatarBadgeVisibleChanged: 0 }], profileControlBorderRadius: [{ profileControlBorderRadiusChanged: 0 }], profileControlShadow: [{ profileControlShadowChanged: 0 }], listSectionDividerVisible: [{ listSectionDividerVisibleChanged: 0 }], profileControlLeadingIcon: [{ profileControlLeadingIconChanged: 0 }], profileControlTrailingIcon: [{ profileControlTrailingIconChanged: 0 }], profileControlTitle: [{ profileControlTitleChanged: 0 }], profileControlSupportingText: [{ profileControlSupportingTextChanged: 0 }], headerDividerVisible: [{ headerDividerVisibleChanged: 0 }], headerItem: [{ headerItemChanged: 0 }], headerVisible: [{ headerVisibleChanged: 0 }], profileMenuItems: [{ profileMenuItemsChanged: 0 }] }]);
|
|
180
186
|
function m() {
|
|
181
187
|
typeof customElements < "u" && ["gids-profile", "gids-profile-menu", "gids-profile-menu-header"].forEach(((e) => {
|
|
182
188
|
switch (e) {
|
|
@@ -184,16 +190,16 @@ function m() {
|
|
|
184
190
|
customElements.get(c(e)) || customElements.define(c(e), C);
|
|
185
191
|
break;
|
|
186
192
|
case "gids-profile-menu":
|
|
187
|
-
customElements.get(c(e)) ||
|
|
193
|
+
customElements.get(c(e)) || q();
|
|
188
194
|
break;
|
|
189
195
|
case "gids-profile-menu-header":
|
|
190
|
-
customElements.get(c(e)) ||
|
|
196
|
+
customElements.get(c(e)) || j();
|
|
191
197
|
}
|
|
192
198
|
}));
|
|
193
199
|
}
|
|
194
200
|
m();
|
|
195
|
-
const
|
|
201
|
+
const re = C, oe = m;
|
|
196
202
|
export {
|
|
197
|
-
|
|
203
|
+
re as GidsProfile,
|
|
198
204
|
oe as defineCustomElement
|
|
199
205
|
};
|