@ganpatiinfo/gids-core-web 20.0.0 → 21.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/index.css +607 -59
- package/dist/css/index.css.map +1 -1
- package/dist/gids-action-bar.d.ts +1 -1
- package/dist/gids-action-bar.js +1 -1
- package/dist/gids-activity-gauge.d.ts +1 -1
- package/dist/gids-activity-gauge.js +1 -1
- package/dist/gids-advanced-tooltip.d.ts +1 -1
- package/dist/gids-advanced-tooltip.js +1 -1
- package/dist/gids-bar-chart.d.ts +1 -1
- package/dist/gids-bar-chart.js +1 -1
- package/dist/gids-bento-card.d.ts +1 -1
- package/dist/gids-bento-card.js +1 -1
- package/dist/gids-calendar-header-panel.d.ts +1 -1
- package/dist/gids-calendar-header-panel.js +1 -1
- package/dist/gids-calendar-month-list.d.ts +1 -1
- package/dist/gids-calendar-month-list.js +1 -1
- package/dist/gids-calendar-year-list.d.ts +1 -1
- package/dist/gids-calendar-year-list.js +1 -1
- package/dist/gids-calendar.d.ts +1 -1
- package/dist/gids-calendar.js +1 -1
- package/dist/gids-carousel.d.ts +1 -1
- package/dist/gids-chart-legend-item.d.ts +1 -1
- package/dist/gids-chart-legend-item.js +1 -1
- package/dist/gids-chart-legend.d.ts +1 -1
- package/dist/gids-chart-legend.js +1 -1
- package/dist/gids-chart.d.ts +1 -1
- package/dist/gids-chart.js +1 -1
- package/dist/gids-chevron-button.d.ts +1 -1
- package/dist/gids-chevron-button.js +1 -1
- package/dist/gids-dot.d.ts +1 -1
- package/dist/gids-dot.js +1 -1
- package/dist/gids-dropdown-field.d.ts +1 -1
- package/dist/gids-dropdown-field.js +1 -1
- package/dist/gids-dropdown-picker.d.ts +1 -1
- package/dist/gids-dropdown-picker.js +1 -1
- package/dist/gids-dropdown.d.ts +1 -1
- package/dist/gids-dropdown.js +1 -1
- package/dist/gids-expansion-body-list-item.d.ts +1 -1
- package/dist/gids-expansion-body-list-item.js +1 -1
- package/dist/gids-expansion-body-list.d.ts +1 -1
- package/dist/gids-expansion-body-list.js +1 -1
- package/dist/gids-expansion-group.d.ts +1 -1
- package/dist/gids-expansion-group.js +1 -1
- package/dist/gids-expansion.d.ts +1 -1
- package/dist/gids-expansion.js +1 -1
- package/dist/gids-field.d.ts +1 -1
- package/dist/gids-field.js +1 -1
- package/dist/gids-filter.d.ts +1 -1
- package/dist/gids-filter.js +1 -1
- package/dist/gids-flyout-panel.d.ts +1 -1
- package/dist/gids-flyout-panel.js +1 -1
- package/dist/gids-form.d.ts +11 -0
- package/dist/gids-form.js +1 -0
- package/dist/gids-header-navigation-item.d.ts +1 -1
- package/dist/gids-header-navigation-item.js +1 -1
- package/dist/gids-header-navigation.d.ts +1 -1
- package/dist/gids-header-navigation.js +1 -1
- package/dist/gids-icon.d.ts +1 -1
- package/dist/gids-icon.js +1 -1
- package/dist/gids-input.d.ts +1 -1
- package/dist/gids-input.js +1 -1
- package/dist/gids-level-gauge.d.ts +1 -1
- package/dist/gids-line-chart.d.ts +1 -1
- package/dist/gids-line-chart.js +1 -1
- package/dist/gids-md-table.d.ts +1 -1
- package/dist/gids-md-table.js +1 -1
- package/dist/gids-notification.d.ts +1 -1
- package/dist/gids-overflow-container.d.ts +1 -1
- package/dist/gids-overflow-container.js +1 -1
- package/dist/gids-overlay-provider.d.ts +1 -1
- package/dist/gids-overlay-provider.js +1 -1
- package/dist/gids-password-field.d.ts +1 -1
- package/dist/gids-password-field.js +1 -1
- package/dist/gids-pie-chart.d.ts +1 -1
- package/dist/gids-pie-chart.js +1 -1
- package/dist/gids-popover.d.ts +1 -1
- package/dist/gids-popover.js +1 -1
- package/dist/gids-profile-menu-header.d.ts +1 -1
- package/dist/gids-profile-menu-header.js +1 -1
- package/dist/gids-profile-menu.d.ts +1 -1
- package/dist/gids-profile-menu.js +1 -1
- package/dist/gids-profile.d.ts +1 -1
- package/dist/gids-profile.js +1 -1
- package/dist/gids-progress-circle.d.ts +1 -1
- package/dist/gids-scrim.d.ts +1 -1
- package/dist/gids-scrim.js +1 -1
- package/dist/gids-sidebar-item.d.ts +11 -0
- package/dist/gids-sidebar-item.js +1 -0
- package/dist/gids-sidebar-menu.d.ts +11 -0
- package/dist/gids-sidebar-menu.js +1 -0
- package/dist/gids-sidebar.d.ts +11 -0
- package/dist/gids-sidebar.js +1 -0
- package/dist/gids-skeleton.d.ts +1 -1
- package/dist/gids-skeleton.js +1 -1
- package/dist/gids-snackbar.d.ts +1 -1
- package/dist/gids-tab-item.d.ts +1 -1
- package/dist/gids-tab-item.js +1 -1
- package/dist/gids-tab.d.ts +1 -1
- package/dist/gids-tab.js +1 -1
- package/dist/gids-text-field.d.ts +1 -1
- package/dist/gids-text-field.js +1 -1
- package/dist/gids-toggle-button.d.ts +1 -1
- package/dist/gids-toggle-button.js +1 -1
- package/dist/gids-tooltip.d.ts +1 -1
- package/dist/gids-tooltip.js +1 -1
- package/dist/gids-transfer-list.d.ts +1 -1
- package/dist/gids-transfer-list.js +1 -1
- package/dist/p--kh67-_Z.js +1 -0
- package/dist/{p-DrDadv7P.js → p-B2flLE0s.js} +1 -1
- package/dist/{p-jGho9nbS.js → p-BAqWcL0K.js} +1 -1
- package/dist/p-BCbovLBE.js +1 -0
- package/dist/{p-PcSMc4jQ.js → p-BIxBMTG9.js} +1 -1
- package/dist/{p-DgKrPmDn.js → p-BQT5yy5L.js} +1 -1
- package/dist/p-BRNvHMdK.js +1 -0
- package/dist/{p-CBiu-Vh3.js → p-B_FEFM5I.js} +1 -1
- package/dist/{p-Dw_kb9MC.js → p-B_St7yaX.js} +1 -1
- package/dist/{p-D0coZTd2.js → p-CAjDiWIc.js} +1 -1
- package/dist/{p-DYjV5XrH.js → p-CIjK3iHM.js} +1 -1
- package/dist/p-CV1-78HB.js +1 -0
- package/dist/{p-BdsUwTgh.js → p-D0RJMGGj.js} +1 -1
- package/dist/{p-CH4nrjpL.js → p-DKSnGphd.js} +1 -1
- package/dist/{p-CIxuyUAl.js → p-DLRj-mUX.js} +1 -1
- package/dist/{p-DKOr5iAk.js → p-DMxvWIj1.js} +1 -1
- package/dist/p-DQQhGF5N.js +1 -0
- package/dist/p-DZ1ZcTMe.js +1 -0
- package/dist/{p-BthkC6NU.js → p-DnRuhvRw.js} +1 -1
- package/dist/p-DpvdbdZ-.js +1 -0
- package/dist/{p-DZ6xQXis.js → p-DrxfD2yZ.js} +1 -1
- package/dist/{p-C6GHG170.js → p-Ds5IzXj3.js} +1 -1
- package/dist/{p-j2_DKwBz.js → p-DzOOjiNH.js} +1 -1
- package/dist/{p-Cacy0Dji.js → p-E13ycS5K.js} +1 -1
- package/dist/{p-Cz9nwmgK.js → p-TfH966_e.js} +1 -1
- package/dist/{p-CMW3SjbP.js → p-_W77iniK.js} +1 -1
- package/dist/p-bfWlRsx_.js +1 -0
- package/dist/p-kWyyLyT3.js +1 -0
- package/dist/{p-CrqHKmjy.js → p-mv_7K1EM.js} +1 -1
- package/dist/{p-xbqOQZl9.js → p-tEbUT3n3.js} +1 -1
- package/dist/types/components/html/GidsSidebarMenuItem/GidsSidebarMenuItem.d.ts +6 -0
- package/dist/types/components/shared/GidsFloatingElementManager.d.ts +1 -1
- package/dist/types/components/webComponents/GidsFlyoutPanel/GidsFlyoutPanel.d.ts +4 -0
- package/dist/types/components/webComponents/GidsForm/GidsForm.d.ts +32 -0
- package/dist/types/components/webComponents/GidsProfileMenuHeader/GidsProfileMenuHeader.d.ts +2 -0
- package/dist/types/components/webComponents/GidsSidebar/GidsSidebar.d.ts +55 -0
- package/dist/types/components/webComponents/GidsSidebarItem/GidsSidebarItem.d.ts +56 -0
- package/dist/types/components/webComponents/GidsSidebarMenu/GidsSidebarMenu.d.ts +38 -0
- package/dist/types/components.d.ts +462 -2
- package/dist-bundled/es/gids-action-bar.js +6 -6
- package/dist-bundled/es/gids-activity-gauge.js +3 -3
- package/dist-bundled/es/gids-advanced-tooltip.js +1 -1
- package/dist-bundled/es/gids-bar-chart.js +3 -3
- package/dist-bundled/es/gids-bento-card.js +1 -1
- package/dist-bundled/es/gids-calendar-header-panel.js +3 -3
- package/dist-bundled/es/gids-calendar-month-list.js +3 -3
- package/dist-bundled/es/gids-calendar-year-list.js +1 -1
- package/dist-bundled/es/gids-calendar.js +23 -23
- 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 +21 -21
- package/dist-bundled/es/gids-chevron-button.js +3 -3
- package/dist-bundled/es/gids-dot.js +1 -1
- package/dist-bundled/es/gids-dropdown-field.js +4 -4
- package/dist-bundled/es/gids-dropdown-picker.js +4 -4
- package/dist-bundled/es/gids-dropdown.js +3 -3
- package/dist-bundled/es/gids-expansion-body-list-item.js +3 -3
- package/dist-bundled/es/gids-expansion-body-list.js +2 -2
- package/dist-bundled/es/gids-expansion-group.js +4 -4
- package/dist-bundled/es/gids-expansion.js +6 -6
- package/dist-bundled/es/gids-field.js +3 -3
- package/dist-bundled/es/gids-filter.js +1 -1
- package/dist-bundled/es/gids-flyout-panel.js +4 -108
- package/dist-bundled/es/gids-form.js +92 -0
- package/dist-bundled/es/gids-header-navigation-item.js +3 -3
- package/dist-bundled/es/gids-header-navigation.js +3 -3
- package/dist-bundled/es/gids-icon.js +3 -3
- package/dist-bundled/es/gids-input.js +1 -1
- package/dist-bundled/es/gids-line-chart.js +1 -1
- package/dist-bundled/es/gids-md-table.js +53 -53
- package/dist-bundled/es/gids-overflow-container.js +4 -4
- package/dist-bundled/es/gids-overlay-provider.js +1 -1
- package/dist-bundled/es/gids-password-field.js +10 -10
- package/dist-bundled/es/gids-pie-chart.js +4 -4
- package/dist-bundled/es/gids-popover.js +1 -1
- package/dist-bundled/es/gids-profile-menu-header.js +1 -1
- package/dist-bundled/es/gids-profile-menu.js +4 -4
- package/dist-bundled/es/gids-profile.js +12 -12
- package/dist-bundled/es/gids-scrim.js +1 -1
- package/dist-bundled/es/gids-sidebar-item.js +6 -0
- package/dist-bundled/es/gids-sidebar-menu.js +6 -0
- package/dist-bundled/es/gids-sidebar.js +150 -0
- package/dist-bundled/es/gids-skeleton.js +1 -1
- package/dist-bundled/es/gids-tab-item.js +13 -13
- package/dist-bundled/es/gids-tab.js +7 -7
- package/dist-bundled/es/gids-text-field.js +3 -3
- package/dist-bundled/es/gids-toggle-button.js +1 -1
- package/dist-bundled/es/gids-tooltip.js +4 -4
- package/dist-bundled/es/gids-transfer-list.js +25 -26
- package/dist-bundled/es/{p-Cf3Ny79u-VGT_IyGI.js → p--kh67-_Z-BBhYy4ZX.js} +12 -11
- package/dist-bundled/es/{p-DrDadv7P-D4rbSYTr.js → p-B2flLE0s-UXdlvRVr.js} +2 -2
- package/dist-bundled/es/{p-jGho9nbS-BDiBvsn2.js → p-BAqWcL0K-DRjKDzoa.js} +8 -8
- package/dist-bundled/es/p-BCbovLBE-DfkhIEts.js +102 -0
- package/dist-bundled/es/{p-PcSMc4jQ-CzYLaIZr.js → p-BIxBMTG9-Bs6G0Wvv.js} +12 -12
- package/dist-bundled/es/{p-DgKrPmDn-C2CSKicX.js → p-BQT5yy5L-DhdgFXTM.js} +3 -3
- package/dist-bundled/es/p-BRNvHMdK-CqGtfAsn.js +11 -0
- package/dist-bundled/es/{p-CBiu-Vh3-r-McGzCb.js → p-B_FEFM5I-WvEFe7I_.js} +5 -5
- package/dist-bundled/es/{p-Dw_kb9MC-BTd0lrGA.js → p-B_St7yaX-Dq9UwiaA.js} +3 -3
- package/dist-bundled/es/{p-D0coZTd2-KhJZ57gK.js → p-CAjDiWIc-BieYBjHk.js} +1 -1
- package/dist-bundled/es/{p-DYjV5XrH-CI9LfBFx.js → p-CIjK3iHM-DEW8PRM5.js} +7 -7
- package/dist-bundled/es/{p-KQxuw_F--BTSoDfF9.js → p-CV1-78HB-DGkn3SPO.js} +18 -23
- package/dist-bundled/es/{p-BdsUwTgh-Cc7AQBsx.js → p-D0RJMGGj-DSjGfUhB.js} +3 -3
- package/dist-bundled/es/{p-CH4nrjpL-CrEJXTn0.js → p-DKSnGphd-EpxzqjUA.js} +7 -7
- package/dist-bundled/es/{p-CIxuyUAl-B2DxRM64.js → p-DLRj-mUX-B_ACFGx6.js} +6 -6
- package/dist-bundled/es/{p-DKOr5iAk-DA3Kc4Cn.js → p-DMxvWIj1-DPw-ITMY.js} +11 -11
- package/dist-bundled/es/{p-GcC8pCKF-CZJFTFeN.js → p-DQQhGF5N-mCqb5VTE.js} +8 -8
- package/dist-bundled/es/p-DZ1ZcTMe-tnPOECry.js +10 -0
- package/dist-bundled/es/{p-BthkC6NU-F03MhDw7.js → p-DnRuhvRw-Beh0bANh.js} +2 -2
- package/dist-bundled/es/p-DpvdbdZ--C7QlXxK2.js +118 -0
- package/dist-bundled/es/{p-DZ6xQXis-XT86MMis.js → p-DrxfD2yZ-Juydw__6.js} +9 -9
- package/dist-bundled/es/{p-C6GHG170-Di8lwQkY.js → p-Ds5IzXj3-BC_F0-JJ.js} +13 -13
- package/dist-bundled/es/{p-j2_DKwBz-CqyuxxnN.js → p-DzOOjiNH-Wm7KbI3O.js} +5 -5
- package/dist-bundled/es/{p-Cacy0Dji-D-D254kT.js → p-E13ycS5K-D-yK6pqz.js} +1 -1
- package/dist-bundled/es/{p-Cz9nwmgK-BO8HUAvD.js → p-TfH966_e-tyxLyzL3.js} +7 -7
- package/dist-bundled/es/{p-CMW3SjbP-ZYYIF_i6.js → p-_W77iniK-DZ9pVDuI.js} +2 -2
- package/dist-bundled/es/p-bfWlRsx_-B9hzkHIt.js +110 -0
- package/dist-bundled/es/p-kWyyLyT3-DhHcKhR9.js +267 -0
- package/dist-bundled/es/{p-CrqHKmjy-DwSsCofb.js → p-mv_7K1EM-lPgJqpPI.js} +1 -1
- package/dist-bundled/es/{p-xbqOQZl9-BK9vjfj7.js → p-tEbUT3n3-CWq8ErgN.js} +10 -10
- 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 +2 -2
- package/dist-bundled/umd/gids-calendar-header-panel.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-month-list.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar.umd.js +1 -1
- 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 +1 -1
- 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 +2 -2
- 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 +2 -2
- package/dist-bundled/umd/gids-form.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 +1 -1
- 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 +1 -1
- package/dist-bundled/umd/gids-profile-menu-header.umd.js +2 -2
- 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-sidebar-item.umd.js +5 -0
- package/dist-bundled/umd/gids-sidebar-menu.umd.js +5 -0
- package/dist-bundled/umd/gids-sidebar.umd.js +5 -0
- 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 +2 -2
- package/dist-bundled/umd/gids-tooltip.umd.js +2 -2
- package/dist-bundled/umd/gids-transfer-list.umd.js +2 -2
- package/dist-bundled/umd-complete/gids-core-web.umd.js +4 -4
- package/package.json +35 -3
- package/dist/p-B0hLXifA.js +0 -1
- package/dist/p-Cf3Ny79u.js +0 -1
- package/dist/p-GcC8pCKF.js +0 -1
- package/dist/p-KQxuw_F-.js +0 -1
- package/dist-bundled/es/p-B0hLXifA-CoImnX3T.js +0 -99
|
@@ -1,110 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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;
|
|
1
|
+
import { l as e, h as o } from "./p-DpvdbdZ--C7QlXxK2.js";
|
|
2
|
+
const t = e, l = o;
|
|
107
3
|
export {
|
|
108
|
-
|
|
109
|
-
|
|
4
|
+
t as GidsFlyoutPanel,
|
|
5
|
+
l as defineCustomElement
|
|
110
6
|
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { L as u, u as y, D as e, P as b, q as n } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
|
+
import { r as _ } from "./p-BRNvHMdK-CqGtfAsn.js";
|
|
3
|
+
import { c as w } from "./clsx-OuTLNxxd.js";
|
|
4
|
+
const x = ({ appearance: r, hasBorder: o, shadow: d, borderRadius: a, height: i, width: t }, s) => w("gids-form", {
|
|
5
|
+
// Appearances
|
|
6
|
+
// 'gids-form--appearance-default': appearance === 'default', // By Default so not needed
|
|
7
|
+
"gids-form--appearance-subtle": r === "subtle",
|
|
8
|
+
// Shadows
|
|
9
|
+
// 'gids-form--shadow-none': shadow === 'none', // By default so not needed
|
|
10
|
+
"gids-form--shadow-overflow": d === "overflow",
|
|
11
|
+
"gids-form--shadow-overlay": d === "overlay",
|
|
12
|
+
"gids-form--shadow-raised": d === "raised",
|
|
13
|
+
// Border Radius
|
|
14
|
+
// 'gids-form--border-radius-none': borderRadius === 'none', // By default so not needed
|
|
15
|
+
"gids-form--border-radius-sm": a === "sm",
|
|
16
|
+
"gids-form--border-radius-md": a === "md",
|
|
17
|
+
"gids-form--border-radius-lg": a === "lg",
|
|
18
|
+
// Settings
|
|
19
|
+
"gids-form--has-border": o,
|
|
20
|
+
// Sizes
|
|
21
|
+
"gids-form--height-full": i === "full",
|
|
22
|
+
"gids-form--width-full": t === "full"
|
|
23
|
+
}, s), C = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
24
|
+
__proto__: null,
|
|
25
|
+
getGidsFormClassNames: x
|
|
26
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsFormClassNames: F } = C, h = u(class extends y {
|
|
27
|
+
constructor(r) {
|
|
28
|
+
super(), r !== !1 && this.__registerHost(), this.appearance = "default", this.hasBorder = !0, this.shadow = "none", this.borderRadius = "none", this.height = "intrinsic", this.width = "intrinsic", this.divider = !0;
|
|
29
|
+
}
|
|
30
|
+
idChanged(r) {
|
|
31
|
+
this.id = r;
|
|
32
|
+
}
|
|
33
|
+
appearanceChanged(r) {
|
|
34
|
+
this.appearance = r;
|
|
35
|
+
}
|
|
36
|
+
headingChanged(r) {
|
|
37
|
+
this.heading = r;
|
|
38
|
+
}
|
|
39
|
+
supportingTextChanged(r) {
|
|
40
|
+
this.supportingText = r;
|
|
41
|
+
}
|
|
42
|
+
descriptionChanged(r) {
|
|
43
|
+
this.description = r;
|
|
44
|
+
}
|
|
45
|
+
hasBorderChanged(r) {
|
|
46
|
+
this.hasBorder = r;
|
|
47
|
+
}
|
|
48
|
+
shadowChanged(r) {
|
|
49
|
+
this.shadow = r;
|
|
50
|
+
}
|
|
51
|
+
borderColorChanged(r) {
|
|
52
|
+
this.borderColor = r;
|
|
53
|
+
}
|
|
54
|
+
borderRadiusChanged(r) {
|
|
55
|
+
this.borderRadius = r;
|
|
56
|
+
}
|
|
57
|
+
heightChanged(r) {
|
|
58
|
+
this.height = r;
|
|
59
|
+
}
|
|
60
|
+
widthChanged(r) {
|
|
61
|
+
this.width = r;
|
|
62
|
+
}
|
|
63
|
+
dividerChanged(r) {
|
|
64
|
+
this.divider = r;
|
|
65
|
+
}
|
|
66
|
+
connectedCallback() {
|
|
67
|
+
}
|
|
68
|
+
render() {
|
|
69
|
+
const r = this?.id, o = this?.appearance ?? "default", d = this?.heading ?? void 0, a = this?.supportingText ?? void 0, i = this?.description ?? void 0, t = this?.hasBorder ?? !0, s = this?.shadow ?? "none", g = this?.borderColor ?? void 0, p = this?.borderRadius ?? "md", m = this?.height ?? "intrinsic", f = this?.width ?? "intrinsic", c = this?.divider ?? !0, v = F({ appearance: o, hasBorder: t, shadow: s, borderRadius: p, height: m, width: f });
|
|
70
|
+
return e(b, { key: "ecac7fa5b56967978f783a9ac0c230d93fac2a21", class: v, "data-appearance": o, id: r, style: g && g !== "" ? { "--gidsFormBorder-color": g } : {} }, e("div", { key: "175e6350f8963b0b61ee5837a340559a5cac13f2", class: "gids-form__header" }, e("slot", { key: "550c63b8bafc6a3601dad6e4ac1ebd240d20759e", name: "formIcon" }), e("div", { key: "fdcf331ed74023cb82fd45b2c9f4fa8ea96f2fd8", class: "gids-form__header-text-content" }, d && d !== "" ? e("label", null, d) : void 0, a && a !== "" ? e("span", null, a) : void 0, i && i !== "" ? e("p", null, i) : void 0)), c ? e("div", { class: "gids-form__divider-container" }, e(_, null)) : void 0, e("div", { key: "812f6accd9c8442d45dd6e940b0872918ba0629c", class: "gids-form__content" }, e("slot", { key: "78a11643da76c77bbf5a875e707605782ec5c78b" })));
|
|
71
|
+
}
|
|
72
|
+
get hostElement() {
|
|
73
|
+
return this;
|
|
74
|
+
}
|
|
75
|
+
static get watchers() {
|
|
76
|
+
return { id: [{ idChanged: 0 }], appearance: [{ appearanceChanged: 0 }], heading: [{ headingChanged: 0 }], supportingText: [{ supportingTextChanged: 0 }], description: [{ descriptionChanged: 0 }], hasBorder: [{ hasBorderChanged: 0 }], shadow: [{ shadowChanged: 0 }], borderColor: [{ borderColorChanged: 0 }], borderRadius: [{ borderRadiusChanged: 0 }], height: [{ heightChanged: 0 }], width: [{ widthChanged: 0 }], divider: [{ dividerChanged: 0 }] };
|
|
77
|
+
}
|
|
78
|
+
static get style() {
|
|
79
|
+
return ".gids-form{--gidsFormBorder-color:var(--gids-color-border-default);--gidsFormBg-color:var(--gids-color-background-neutral-default);--gidsForm-shadow:none;--gidsForm-border-radius:var(--gids-border-radius-none);--gidsForm-border:none;--gidsFormPrimaryText-color:var(--gids-color-text-default);--gidsFormSecondaryText-color:var(--gids-color-text-subtle);--gidsFormTertiaryText-color:var(--gids-color-text-subtlest);display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;align-self:flex-start;justify-self:flex-start;padding:var(--gids-padding-vertical-edge-to-element-250) var(--gids-padding-horizontal-edge-to-element-300);background-color:var(--gidsFormBg-color);box-shadow:var(--gidsForm-shadow);border-radius:var(--gidsForm-border-radius);border:var(--gidsForm-border);overflow:hidden}.gids-form__header{display:flex;align-items:flex-start;justify-content:flex-start;gap:var(--gids-gap-100)}.gids-form__header-text-content{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-form__header-text-content label{font-family:var(--gids-typography-heading-small__font-family);font-size:var(--gids-typography-heading-small__font-size);font-weight:var(--gids-typography-heading-small__font-weight);letter-spacing:var(--gids-typography-heading-small__letter-spacing);line-height:var(--gids-typography-heading-small__line-height);text-transform:var(--gids-typography-heading-small__text-transform, inherit);font-variant-caps:var(--gids-typography-heading-small__font-variant-caps, inherit);color:var(--gidsFormPrimaryText-color)}.gids-form__header-text-content span{font-family:var(--gids-typography-label-medium__font-family);font-size:var(--gids-typography-label-medium__font-size);font-weight:var(--gids-typography-label-medium__font-weight);letter-spacing:var(--gids-typography-label-medium__letter-spacing);line-height:var(--gids-typography-label-medium__line-height);text-transform:var(--gids-typography-label-medium__text-transform, inherit);font-variant-caps:var(--gids-typography-label-medium__font-variant-caps, inherit);color:var(--gidsFormSecondaryText-color)}.gids-form__header-text-content p{margin:0;font-family:var(--gids-typography-paragraph-small__font-family);font-size:var(--gids-typography-paragraph-small__font-size);font-weight:var(--gids-typography-paragraph-small__font-weight);letter-spacing:var(--gids-typography-paragraph-small__letter-spacing);line-height:var(--gids-typography-paragraph-small__line-height);text-transform:var(--gids-typography-paragraph-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-small__font-variant-caps, inherit);color:var(--gidsFormTertiaryText-color)}.gids-form__content{display:flex;flex-direction:column;width:100%;padding:var(--gids-padding-vertical-edge-to-element-300) 0;overflow-x:hidden;overflow-y:auto}.gids-form__divider-container{display:flex;flex-direction:column;width:100%;padding:var(--gids-padding-vertical-edge-to-element-250) 0}.gids-form--appearance-subtle{--gidsFormBg-color:transparent}.gids-form--shadow-overflow{--gidsForm-shadow:var(--gids-elevation-shadow-overflow)}.gids-form--shadow-overlay{--gidsForm-shadow:var(--gids-elevation-shadow-overlay)}.gids-form--shadow-raised{--gidsForm-shadow:var(--gids-elevation-shadow-raised)}.gids-form--border-radius-sm{--gidsForm-border-radius:var(--gids-border-radius-sm)}.gids-form--border-radius-md{--gidsForm-border-radius:var(--gids-border-radius-md)}.gids-form--border-radius-lg{--gidsForm-border-radius:var(--gids-border-radius-lg)}.gids-form--has-border{--gidsForm-border:var(--gids-border-width-thin) solid var(--gidsFormBorder-color)}.gids-form--height-full{height:100vh !important;overflow:hidden}.gids-form--width-full{width:100%}";
|
|
80
|
+
}
|
|
81
|
+
}, [260, "gids-form", { id: [1], appearance: [1], heading: [1], supportingText: [1, "supporting-text"], description: [1], hasBorder: [4, "has-border"], shadow: [1], borderColor: [1, "border-color"], borderRadius: [1, "border-radius"], height: [1], width: [1], divider: [4] }, void 0, { id: [{ idChanged: 0 }], appearance: [{ appearanceChanged: 0 }], heading: [{ headingChanged: 0 }], supportingText: [{ supportingTextChanged: 0 }], description: [{ descriptionChanged: 0 }], hasBorder: [{ hasBorderChanged: 0 }], shadow: [{ shadowChanged: 0 }], borderColor: [{ borderColorChanged: 0 }], borderRadius: [{ borderRadiusChanged: 0 }], height: [{ heightChanged: 0 }], width: [{ widthChanged: 0 }], divider: [{ dividerChanged: 0 }] }]);
|
|
82
|
+
function l() {
|
|
83
|
+
typeof customElements < "u" && ["gids-form"].forEach(((r) => {
|
|
84
|
+
r === "gids-form" && (customElements.get(n(r)) || customElements.define(n(r), h));
|
|
85
|
+
}));
|
|
86
|
+
}
|
|
87
|
+
l();
|
|
88
|
+
const z = h, R = l;
|
|
89
|
+
export {
|
|
90
|
+
z as GidsForm,
|
|
91
|
+
R as defineCustomElement
|
|
92
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as e, h as t } from "./p-
|
|
2
|
-
const
|
|
1
|
+
import { l as e, h as t } from "./p-B_St7yaX-Dq9UwiaA.js";
|
|
2
|
+
const o = e, i = t;
|
|
3
3
|
export {
|
|
4
|
-
|
|
4
|
+
o as GidsHeaderNavigationItem,
|
|
5
5
|
i as defineCustomElement
|
|
6
6
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { L as f, u as M, D as r, P as S, q as p } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
2
|
import { d as C } from "./p-iQRr_fAH-ClfWEu03.js";
|
|
3
|
-
import {
|
|
3
|
+
import { r as N } from "./p-BRNvHMdK-CqGtfAsn.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-B_St7yaX-Dq9UwiaA.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: "4c2f041f0778abfa694bf7afb03d78fc42461f90", 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,9 +1,9 @@
|
|
|
1
|
-
import { L as q, u as M, D as d, P as E, F as
|
|
2
|
-
import { o as
|
|
1
|
+
import { L as q, u as M, D as d, P as E, F as $, q as I } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
|
+
import { o as K } from "./p-BsC3-MVH-j4fPhip5.js";
|
|
3
3
|
import { d as S } from "./p-iQRr_fAH-ClfWEu03.js";
|
|
4
4
|
import { o as J } from "./p-Dg_WeHpV-DehzGL6g.js";
|
|
5
5
|
import { c as B } from "./clsx-OuTLNxxd.js";
|
|
6
|
-
const F = (e) => !!(e?.buttonLabel && e.buttonLabel !== "" || e?.leadingIconName && e.leadingIconName !== "" || e?.trailingIconName && e.trailingIconName !== ""), Q = ({ cellActionButton: e, neededIconType:
|
|
6
|
+
const F = (e) => !!(e?.buttonLabel && e.buttonLabel !== "" || e?.leadingIconName && e.leadingIconName !== "" || e?.trailingIconName && e.trailingIconName !== ""), Q = ({ cellActionButton: e, neededIconType: a = "leading" }) => a === "trailing" ? {
|
|
7
7
|
cellIconName: e?.trailingIconName,
|
|
8
8
|
cellIconAppearance: e?.trailingIconAppearance,
|
|
9
9
|
cellIconSize: e?.trailingIconSize
|
|
@@ -15,45 +15,45 @@ const F = (e) => !!(e?.buttonLabel && e.buttonLabel !== "" || e?.leadingIconName
|
|
|
15
15
|
__proto__: null,
|
|
16
16
|
getTableCellBtnIcon: Q,
|
|
17
17
|
isTableCellActionButtonVisible: F
|
|
18
|
-
}, Symbol.toStringTag, { value: "Module" })), W = ({ width: e },
|
|
18
|
+
}, Symbol.toStringTag, { value: "Module" })), W = ({ width: e }, a) => B("gids-basic-table-header", {
|
|
19
19
|
// Widths
|
|
20
20
|
// 'gids-basic-table-header--width-full': width === 'full', // Width set by default so not needed
|
|
21
21
|
"gids-basic-table-header--width-intrinsic": e === "intrinsic"
|
|
22
|
-
},
|
|
22
|
+
}, a), X = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23
23
|
__proto__: null,
|
|
24
24
|
getGidsBasicTableHeaderClassNames: W
|
|
25
|
-
}, Symbol.toStringTag, { value: "Module" })), Y = ({ width: e },
|
|
25
|
+
}, Symbol.toStringTag, { value: "Module" })), Y = ({ width: e }, a) => B("gids-basic-table-row", {
|
|
26
26
|
// Widths
|
|
27
27
|
// 'gids-basic-table-row--width-full': width === 'full', // Width set by default so not needed
|
|
28
28
|
"gids-basic-table-row--width-intrinsic": e === "intrinsic"
|
|
29
|
-
},
|
|
29
|
+
}, a), Z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
30
30
|
__proto__: null,
|
|
31
31
|
getGidsBasicTableRowClassNames: Y
|
|
32
|
-
}, Symbol.toStringTag, { value: "Module" })), ee = ({ width: e },
|
|
32
|
+
}, Symbol.toStringTag, { value: "Module" })), ee = ({ width: e }, a) => B("gids-md-table", {
|
|
33
33
|
// Widths
|
|
34
34
|
// 'gids-md-table--width-full': width === 'full', // Width set by default so not needed
|
|
35
35
|
"gids-md-table--width-intrinsic": e === "intrinsic"
|
|
36
|
-
},
|
|
36
|
+
}, a), ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
37
37
|
__proto__: null,
|
|
38
38
|
getGidsMdTableClassNames: ee
|
|
39
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
39
|
+
}, Symbol.toStringTag, { value: "Module" })), te = ({ borderSides: e, borderRadiusSides: a, appearance: t, textAlignment: l, width: r }, i) => B("gids-table-cell", {
|
|
40
40
|
"gids-table-cell--border-side-top": e?.includes("top"),
|
|
41
41
|
"gids-table-cell--border-side-bottom": e?.includes("bottom"),
|
|
42
42
|
"gids-table-cell--border-side-left": e?.includes("left"),
|
|
43
43
|
"gids-table-cell--border-side-right": e?.includes("right"),
|
|
44
44
|
// Border radius sides
|
|
45
|
-
"gids-table-cell--border-radius-side-top-left":
|
|
46
|
-
"gids-table-cell--border-radius-side-bottom-left":
|
|
47
|
-
"gids-table-cell--border-radius-side-top-right":
|
|
48
|
-
"gids-table-cell--border-radius-side-bottom-right":
|
|
45
|
+
"gids-table-cell--border-radius-side-top-left": a?.includes("top-left"),
|
|
46
|
+
"gids-table-cell--border-radius-side-bottom-left": a?.includes("bottom-left"),
|
|
47
|
+
"gids-table-cell--border-radius-side-top-right": a?.includes("top-right"),
|
|
48
|
+
"gids-table-cell--border-radius-side-bottom-right": a?.includes("bottom-right"),
|
|
49
49
|
// Background colors
|
|
50
|
-
"gids-table-cell--appearance-default":
|
|
51
|
-
"gids-table-cell--appearance-primal":
|
|
52
|
-
"gids-table-cell--appearance-neutral-default":
|
|
53
|
-
"gids-table-cell--appearance-info":
|
|
54
|
-
"gids-table-cell--appearance-warning":
|
|
55
|
-
"gids-table-cell--appearance-positive":
|
|
56
|
-
"gids-table-cell--appearance-danger":
|
|
50
|
+
"gids-table-cell--appearance-default": t === "default",
|
|
51
|
+
"gids-table-cell--appearance-primal": t === "primal",
|
|
52
|
+
"gids-table-cell--appearance-neutral-default": t === "neutral-default",
|
|
53
|
+
"gids-table-cell--appearance-info": t === "info",
|
|
54
|
+
"gids-table-cell--appearance-warning": t === "warning",
|
|
55
|
+
"gids-table-cell--appearance-positive": t === "positive",
|
|
56
|
+
"gids-table-cell--appearance-danger": t === "danger",
|
|
57
57
|
// Alignments
|
|
58
58
|
"gids-table-cell--text-alignment-left": l === "left",
|
|
59
59
|
"gids-table-cell--text-alignment-right": l === "right",
|
|
@@ -63,9 +63,9 @@ const F = (e) => !!(e?.buttonLabel && e.buttonLabel !== "" || e?.leadingIconName
|
|
|
63
63
|
"gids-table-cell--width-intrinsic": r === "intrinsic"
|
|
64
64
|
}, i), le = (e) => e && e.toString() !== "" ? `gids-typography-${e}` : "gids-typography-label-medium", ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
65
65
|
__proto__: null,
|
|
66
|
-
getGidsTableCellClassNames:
|
|
66
|
+
getGidsTableCellClassNames: te,
|
|
67
67
|
getGidsTableCellLabelTypographyClass: le
|
|
68
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsTableCellClassNames: re, getGidsTableCellLabelTypographyClass: de } = ie, { isTableCellActionButtonVisible: ne, getTableCellBtnIcon: se } = U, v = ({ id: e, uniqueKey:
|
|
68
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsTableCellClassNames: re, getGidsTableCellLabelTypographyClass: de } = ie, { isTableCellActionButtonVisible: ne, getTableCellBtnIcon: se } = U, v = ({ id: e, uniqueKey: a, extraData: t, label: l, cellDataType: r = "text", displayTags: i = [], width: n = "full", appearance: p = "none", borderSides: g = [], borderRadiusSides: o = [], textAlignment: h = "center", labelTypography: c = "label-medium", isHeaderCell: b = !1, cellPrimaryActionButtons: m = [], cellSecondaryActionButtons: z = [], onClickCellActionBtn: f, class: R, ...L }) => {
|
|
69
69
|
function C({ cellActionBtn: s, neededIconType: y = "leading" }) {
|
|
70
70
|
const T = se({ cellActionButton: s, neededIconType: y });
|
|
71
71
|
return T?.cellIconName && "" + T.cellIconName != "" ? d(S, { name: T.cellIconName, size: T.cellIconSize, appearance: T.cellIconAppearance }) : void 0;
|
|
@@ -76,22 +76,22 @@ const F = (e) => !!(e?.buttonLabel && e.buttonLabel !== "" || e?.leadingIconName
|
|
|
76
76
|
const H = s === "primary" ? y.length - w - 1 : w, A = y[H];
|
|
77
77
|
return ne(A) ? (function({ cellActionBtn: u, actionBtnIndex: P, actionBtnPosition: k }) {
|
|
78
78
|
return d(J, { as: "button", appearance: u?.appearance ?? "default", size: u?.size ?? "md", disabled: u?.disabled, destructive: u?.destructive, positive: u?.positive, loading: u?.loading, width: u?.width ?? "intrinsic", type: "button", leadingIcon: C({ cellActionBtn: u, neededIconType: "leading" }), trailingIcon: C({ cellActionBtn: u, neededIconType: "trailing" }), onClick: (O) => (function({ event: G, actionBtnIndex: x, actionBtnPosition: j }) {
|
|
79
|
-
f && f({ originalEvent: G, details: { appearance: p, cellDataType: r, displayTags: i, label: l, id: e, extraData:
|
|
79
|
+
f && f({ originalEvent: G, details: { appearance: p, cellDataType: r, displayTags: i, label: l, id: e, extraData: t, isHeaderCell: b, uniqueKey: a, actionBtnNumber: "action-btn-" + (x + 1), actionBtnIndex: x, actionBtnPosition: j ?? "secondary" } });
|
|
80
80
|
})({ event: O, actionBtnIndex: P, actionBtnPosition: k }) }, u?.buttonLabel ?? "");
|
|
81
81
|
})({ cellActionBtn: A, actionBtnIndex: H, actionBtnPosition: s }) : void 0;
|
|
82
82
|
})));
|
|
83
83
|
}
|
|
84
|
-
return d(b ? "th" : "td", { ...L, class: re({ borderSides: g, borderRadiusSides: o, appearance: p, textAlignment: h, width: n }, R), id: e, "unique-key":
|
|
85
|
-
}, { getGidsBasicTableRowClassNames: oe } = Z, D = ({ width: e = "full", layout:
|
|
84
|
+
return d(b ? "th" : "td", { ...L, class: re({ borderSides: g, borderRadiusSides: o, appearance: p, textAlignment: h, width: n }, R), id: e, "unique-key": a, "extra-data": JSON.stringify(t) }, _("primary"), r === "text" && l && l !== "" ? d("span", { class: "" + de(c) }, l) : void 0, r === "display-tag" && i && i.length > 0 ? d("div", { class: "gids-table-cell__display-tags-container" }, i.map(((s) => d(K, { label: s?.label ?? "", appearance: s?.displayTagAppearance ?? "subtle", size: s?.displayTagSize ?? "xs", icon: s?.displayTagIcon ? d(S, { name: s.displayTagIcon, size: s?.displayTagSize ?? "xs", appearance: s?.displayTagIconAppearance ?? "regular" }) : void 0, color: s?.displayTagColor ?? "accent-5" })))) : void 0, _("secondary"));
|
|
85
|
+
}, { getGidsBasicTableRowClassNames: oe } = Z, D = ({ width: e = "full", layout: a = "horizontal", rows: t = [], isHeaderRow: l = !1, cellPrimaryActionButtons: r, cellSecondaryActionButtons: i, onClickRowActionBtn: n, class: p, ...g }) => {
|
|
86
86
|
const o = oe({ width: e }, p);
|
|
87
87
|
function h({ event: c, cellIndex: b }) {
|
|
88
88
|
n && n({ ...c, details: { ...c.details, cellIndex: b } });
|
|
89
89
|
}
|
|
90
|
-
return
|
|
91
|
-
}, { getGidsBasicTableHeaderClassNames: ce } = X, be = ({ width: e = "full", headerCells:
|
|
90
|
+
return a === "vertical" ? d($, null, t.map(((c, b) => d("tr", { ...g, key: "row-v-" + (b + 1), class: o }, d(v, { ...c, width: e, isHeaderCell: l, cellPrimaryActionButtons: r, cellSecondaryActionButtons: i, onClickCellActionBtn: (m) => h({ event: m, cellIndex: b }) }))))) : d("tr", { ...g, class: o }, t.map(((c, b) => d(v, { key: "row-h-" + (b + 1), ...c, width: e, isHeaderCell: l, cellPrimaryActionButtons: r, cellSecondaryActionButtons: i, onClickCellActionBtn: (m) => h({ event: m, cellIndex: b }) }))));
|
|
91
|
+
}, { getGidsBasicTableHeaderClassNames: ce } = X, be = ({ width: e = "full", headerCells: a = [], appearance: t = "none", labelTypography: l = "label-medium", textAlignment: r = "center", layout: i = "horizontal", cellPrimaryActionButtons: n, cellSecondaryActionButtons: p, onClickHeaderActionBtn: g, class: o, ...h }) => {
|
|
92
92
|
const c = ce({ width: e }, o);
|
|
93
|
-
return d("thead", { ...h, class: c }, d(D, { rows:
|
|
94
|
-
}, { getGidsMdTableClassNames: pe } =
|
|
93
|
+
return d("thead", { ...h, class: c }, d(D, { rows: a.map(((b) => ({ appearance: t, labelTypography: l, textAlignment: r, ...b }))), width: e, layout: i, isHeaderRow: !0, cellPrimaryActionButtons: n, cellSecondaryActionButtons: p, onClickRowActionBtn: g }));
|
|
94
|
+
}, { getGidsMdTableClassNames: pe } = ae, N = q(class extends M {
|
|
95
95
|
constructor(e) {
|
|
96
96
|
super(), e !== !1 && this.__registerHost(), this.isTopHeaderVisible = !1, this.isSideHeaderVisible = !1, this.width = "full", this.topHeaderAppearance = "none", this.sideHeaderAppearance = "none", this.rowAppearance = "none", this.tableBorders = "none", this.tableBorderRadius = [], this.topHeaderLabelTypography = "eyebrow-small", this.sideHeaderLabelTypography = "label-small", this.rowLabelTypography = "label-small", this.topHeaderTextAlignment = "left", this.sideHeaderTextAlignment = "left", this.rowTextAlignment = "left", this.topHeaderCells = [], this.tableBody = [], this.constructedTableBodyData = [];
|
|
97
97
|
}
|
|
@@ -117,50 +117,50 @@ const F = (e) => !!(e?.buttonLabel && e.buttonLabel !== "" || e?.leadingIconName
|
|
|
117
117
|
this.makeTableBodyData();
|
|
118
118
|
}
|
|
119
119
|
makeTableBodyData() {
|
|
120
|
-
const e = this.isSideHeaderVisible,
|
|
121
|
-
|
|
120
|
+
const e = this.isSideHeaderVisible, a = this?.tableBody ?? [], t = [];
|
|
121
|
+
a.map(((l, r) => {
|
|
122
122
|
let i = [];
|
|
123
123
|
const n = l.heading, p = l.id, g = l.uniqueKey, o = l.extraData, h = l?.items ?? [];
|
|
124
124
|
if (e && n && n !== "") {
|
|
125
|
-
const c = this.getSideHeaderBorderSides({ _tableBodyData:
|
|
125
|
+
const c = this.getSideHeaderBorderSides({ _tableBodyData: a, _itemsArr: h, indexI: r });
|
|
126
126
|
i = [{ id: p, uniqueKey: g, extraData: o, label: n, appearance: this.sideHeaderAppearance, labelTypography: this.sideHeaderLabelTypography, textAlignment: this.sideHeaderTextAlignment, isHeader: !0, borderSides: c }];
|
|
127
127
|
}
|
|
128
128
|
h.map(((c, b) => {
|
|
129
|
-
const m = this.getRowBorderSides({ _tableBodyData:
|
|
129
|
+
const m = this.getRowBorderSides({ _tableBodyData: a, _itemsArr: h, indexI: r, indexJ: b });
|
|
130
130
|
i.push({ ...c, appearance: this.rowAppearance, labelTypography: this.rowLabelTypography, textAlignment: this.rowTextAlignment, isHeader: !1, borderSides: m });
|
|
131
|
-
})),
|
|
132
|
-
})), this.constructedTableBodyData =
|
|
131
|
+
})), t.push({ heading: n, id: p, uniqueKey: g, extraData: o, items: i });
|
|
132
|
+
})), this.constructedTableBodyData = t;
|
|
133
133
|
}
|
|
134
|
-
getRowBorderSides({ _tableBodyData: e, _itemsArr:
|
|
134
|
+
getRowBorderSides({ _tableBodyData: e, _itemsArr: a, indexI: t, indexJ: l }) {
|
|
135
135
|
const r = this.applyTableInternalBorders(), i = this.applyTableAllBorders();
|
|
136
136
|
let n = [];
|
|
137
|
-
return (r || i) && (l <
|
|
137
|
+
return (r || i) && (l < a.length && t + 1 < e.length && (n = ["bottom"]), l + 1 < a.length && (n = [...n, "right"])), n;
|
|
138
138
|
}
|
|
139
|
-
getSideHeaderBorderSides({ _tableBodyData: e, _itemsArr:
|
|
139
|
+
getSideHeaderBorderSides({ _tableBodyData: e, _itemsArr: a, indexI: t }) {
|
|
140
140
|
const l = this.applyTableInternalBorders(), r = this.applyTableAllBorders();
|
|
141
141
|
let i = [];
|
|
142
|
-
return (l || r) && (
|
|
142
|
+
return (l || r) && (t + 1 < e.length && (i = ["bottom"]), a.length > 0 && (i = [...i, "right"])), i;
|
|
143
143
|
}
|
|
144
144
|
getTableClasses() {
|
|
145
145
|
const e = this.width === "full" ? "gids-md-table__main-table gids-md-table__main-table-width-full" : "gids-md-table__main-table gids-md-table__main-table-width-intrinsic";
|
|
146
|
-
let
|
|
147
|
-
this.applyTableOuterBorders() && (
|
|
148
|
-
const
|
|
149
|
-
return
|
|
146
|
+
let a = e;
|
|
147
|
+
this.applyTableOuterBorders() && (a = e + " gids-md-table__outer-borders");
|
|
148
|
+
const t = this.addBorderRadiusDirectlyToTable();
|
|
149
|
+
return t && t !== "" ? `${a} ${t}` : "" + a;
|
|
150
150
|
}
|
|
151
151
|
addBorderRadiusDirectlyToTable() {
|
|
152
152
|
let e = "";
|
|
153
|
-
const
|
|
154
|
-
return
|
|
153
|
+
const a = this?.tableBorderRadius ?? [];
|
|
154
|
+
return a.includes("top-left") && (e = "gids-md-table__radius-top-left"), a.includes("bottom-left") && (e += " gids-md-table__radius-bottom-left"), a.includes("top-right") && (e += " gids-md-table__radius-top-right"), a.includes("bottom-right") && (e += " gids-md-table__radius-bottom-right"), e;
|
|
155
155
|
}
|
|
156
156
|
getTopHeaderCells() {
|
|
157
|
-
const e = this.isSideHeaderVisible,
|
|
158
|
-
let
|
|
159
|
-
e === !1 &&
|
|
157
|
+
const e = this.isSideHeaderVisible, a = this?.topHeaderCells ?? [];
|
|
158
|
+
let t = [...a];
|
|
159
|
+
e === !1 && a.length > 0 ? t.splice(0, 1) : t = [...a];
|
|
160
160
|
const l = this.applyTableInternalBorders(), r = this.applyTableAllBorders(), i = this.applyTableTopHeaderBorders(), n = [];
|
|
161
|
-
return
|
|
161
|
+
return t.map(((p, g) => {
|
|
162
162
|
let o = [];
|
|
163
|
-
(l || r || i) && (o = ["bottom"], g + 1 <
|
|
163
|
+
(l || r || i) && (o = ["bottom"], g + 1 < t.length && (o = [...o, "right"])), n.push({ ...p, borderSides: o });
|
|
164
164
|
})), n;
|
|
165
165
|
}
|
|
166
166
|
applyTableOuterBorders() {
|
|
@@ -177,8 +177,8 @@ const F = (e) => !!(e?.buttonLabel && e.buttonLabel !== "" || e?.leadingIconName
|
|
|
177
177
|
return this.tableBorders === "top-header-only";
|
|
178
178
|
}
|
|
179
179
|
render() {
|
|
180
|
-
const e = pe({ width: this.width }),
|
|
181
|
-
return d(E, { key: "
|
|
180
|
+
const e = pe({ width: this.width }), a = this.isTopHeaderVisible, t = this.getTopHeaderCells(), l = this?.constructedTableBodyData ?? [];
|
|
181
|
+
return d(E, { key: "fe688b52bb4df76f2c0f8abb54f9a19434694a88", class: e }, d("table", { key: "35103313b64ebff661829fa6075a737fa7e29d0a", class: this.getTableClasses() }, a ? d(be, { appearance: this.topHeaderAppearance, labelTypography: this.topHeaderLabelTypography, textAlignment: this.topHeaderTextAlignment, headerCells: t, width: this.width }) : void 0, d("tbody", { key: "9407c8ee64790ac91562397a4d2f5b55b61b9402" }, 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
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 c = (t) => t === "top" || t === "top-bottom", h = (t) => t === "bottom" || t === "top-bottom", d = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
4
|
__proto__: null,
|
|
5
|
-
showGidsOverflowContainerBottomShadow:
|
|
6
|
-
showGidsOverflowContainerTopShadow:
|
|
5
|
+
showGidsOverflowContainerBottomShadow: h,
|
|
6
|
+
showGidsOverflowContainerTopShadow: c
|
|
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 h = (t) => t === "top" || t === "top-bottom", c = (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: "4ffa0e4c4825a8217ca66de06b5977df972631a6", class: "gids-overflow-container__text-area", onScroll: this.calculateShadows.bind(this) }, e("slot", { key: "366c313169c0541a02f893f5b8cca57921f992e2" }));
|
|
24
24
|
}
|
|
25
25
|
get _el() {
|
|
26
26
|
return this;
|
|
@@ -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: "f3a0ab5debe5b2f6b777cf48653028627f89d8a1" }, o("slot", { key: "88f4108449b47807c1936e9133a3a4ee8a1b122b" }), 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
|
|
1
|
+
import { L as S, u as P, z as w, 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
3
|
import { s as F } from "./p-BkxmRN-4-DSiXCW8b.js";
|
|
4
4
|
import { r as L } from "./p-Do_VlNHg-_g7lcvwR.js";
|
|
5
5
|
import { o as O } from "./p-Dg_WeHpV-DehzGL6g.js";
|
|
6
6
|
import { g as k, d as j } from "./p-iQRr_fAH-ClfWEu03.js";
|
|
7
|
-
import { h as z } from "./p-
|
|
8
|
-
import { r as E } from "./p-
|
|
7
|
+
import { h as z } from "./p-mv_7K1EM-lPgJqpPI.js";
|
|
8
|
+
import { r as E } from "./p-DzOOjiNH-Wm7KbI3O.js";
|
|
9
9
|
import { c as g } from "./clsx-OuTLNxxd.js";
|
|
10
10
|
const G = (e) => {
|
|
11
11
|
switch (e) {
|
|
@@ -133,8 +133,8 @@ const G = (e) => {
|
|
|
133
133
|
return s.length > 0 ? i("div", { class: te(n) }, (() => {
|
|
134
134
|
const r = s.length, l = se({ text: e, textMinLength: t, meterRules: s }), u = re({ textScore: l, maxScore: r });
|
|
135
135
|
return Array.from({ length: r }, ((_, c) => {
|
|
136
|
-
const d = c + 1,
|
|
137
|
-
return s[d] === "include-min-length" ? o({ requirementRule: "include-min-length", textMinLength: t }) ? a(d, u,
|
|
136
|
+
const d = c + 1, v = d <= l;
|
|
137
|
+
return s[d] === "include-min-length" ? o({ requirementRule: "include-min-length", textMinLength: t }) ? a(d, u, v) : null : a(d, u, v);
|
|
138
138
|
}));
|
|
139
139
|
})()) : null;
|
|
140
140
|
}, { getGidsRequirementsMeterLabelClassNames: ne } = K, { getRequirementsMeterLabelLeadingIcon: le } = H, ae = (e) => {
|
|
@@ -151,7 +151,7 @@ const G = (e) => {
|
|
|
151
151
|
})));
|
|
152
152
|
}, { inputToGidsFieldStatusForPassword: ce } = W, M = S(class extends P {
|
|
153
153
|
constructor(e) {
|
|
154
|
-
super(), e !== !1 && this.__registerHost(), this.gidsPasswordFieldClear =
|
|
154
|
+
super(), e !== !1 && this.__registerHost(), this.gidsPasswordFieldClear = w(this, "gidsPasswordFieldClear"), this.gidsPasswordFieldRevealPassword = w(this, "gidsPasswordFieldRevealPassword"), this.isPasswordRevealed = !1, this.meterRules = [], this.requirementsMeterRequirements = [], this.requirements = [], this.#t = k(), this._handleDismiss = () => {
|
|
155
155
|
const t = this.#e?.querySelector("input.gids-input__control");
|
|
156
156
|
t && (t.value = "", t.dispatchEvent(new globalThis.Event("input", { bubbles: !0 }))), this.value = "", this.gidsPasswordFieldClear.emit();
|
|
157
157
|
}, this._handleRevealPassword = () => {
|
|
@@ -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: "0d66c19fb7f8d8a17f32e8c7d03438454fc6d592" }, i("gids-field", { key: "579bfcbd6f2a75eae77d636e94caab9df0870e78", disabled: this.disabled, count: void 0, helperText: this.helperText, statusText: this.statusText, status: ce(this.status) }, i(F, { key: "3099c7ae5c08e7fb8fc7cdbd7b8b44c79aa33615", 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: "467581b51585f240c024f19d2accb6aa66adc07b", 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: "c3f015e63ba61c3f7146a1ce4aa2971eccbebcd1", name: "leadingIcon" }), i("slot", { key: "aac4530d91bfe25eaf2bf12f0b77504d421fab18", name: "leadingAccessory" }), i("div", { key: "dc538841be19f14399fc4f323e659fbc455d29b2", slot: "trailingAccessory", class: "gids-password-field__trailing-accessory" }, n && i(L, { key: "18cb399d6e14eed55d19c70dba5148706e5ea3b4", label: "clear text", size: "lg", onPressDismiss: this._handleDismiss }), a && i(O, { key: "1968cc139cf5f24502bf468c73c63ed55c7d0e91", appearance: "default", size: "xs", width: "intrinsic", disabled: this.disabled, onClick: this._handleRevealPassword }, u ? "Hide" : "Show")))), i("div", { key: "c7079d0d74519e3dffc5f626b998f298057ae80b", class: "gids-password-field__meters-container" }, i(ie, { key: "750887a530a98be4734dd20740ab1ed7b82c730d", meterRules: _, text: this.value, textMinLength: c }), i(oe, { key: "a87854e137fb1972fd6079a600f097d3ee5eebb8", requirements: this.requirementsMeterRequirements, text: this.value, textMinLength: c })));
|
|
195
195
|
}
|
|
196
196
|
get _el() {
|
|
197
197
|
return this;
|
|
@@ -215,8 +215,8 @@ function y() {
|
|
|
215
215
|
}));
|
|
216
216
|
}
|
|
217
217
|
y();
|
|
218
|
-
const
|
|
218
|
+
const ve = M, we = y;
|
|
219
219
|
export {
|
|
220
|
-
|
|
221
|
-
|
|
220
|
+
ve as GidsPasswordField,
|
|
221
|
+
we as defineCustomElement
|
|
222
222
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as e, c as
|
|
2
|
-
const
|
|
1
|
+
import { n as e, c as t } from "./p-B2flLE0s-UXdlvRVr.js";
|
|
2
|
+
const r = e, s = t;
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
r as GidsPieChart,
|
|
5
|
+
s as defineCustomElement
|
|
6
6
|
};
|