@ganpatiinfo/gids-core-web 22.0.0 → 23.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 +83 -34
- package/dist/css/index.css.map +1 -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.js +1 -1
- package/dist/gids-calendar-header-panel.js +1 -1
- package/dist/gids-calendar-month-list.js +1 -1
- package/dist/gids-calendar-picker.d.ts +11 -0
- package/dist/gids-calendar-picker.js +1 -0
- package/dist/gids-calendar-year-list.js +1 -1
- package/dist/gids-calendar.js +1 -1
- 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-date-picker-field.d.ts +11 -0
- package/dist/gids-date-picker-field.js +1 -0
- package/dist/gids-date-picker.d.ts +11 -0
- package/dist/gids-date-picker.js +1 -0
- package/dist/gids-day-dropdown-picker.d.ts +11 -0
- package/dist/gids-day-dropdown-picker.js +1 -0
- 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.js +1 -1
- package/dist/gids-form.js +1 -1
- 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-line-chart.js +1 -1
- package/dist/gids-md-table.js +1 -1
- package/dist/gids-month-dropdown-picker.d.ts +11 -0
- package/dist/gids-month-dropdown-picker.js +1 -0
- 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-scrim.js +1 -1
- package/dist/gids-sidebar-item.js +1 -1
- package/dist/gids-sidebar-menu.js +1 -1
- package/dist/gids-sidebar.js +1 -1
- package/dist/gids-skeleton.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/gids-year-dropdown-picker.d.ts +11 -0
- package/dist/gids-year-dropdown-picker.js +1 -0
- package/dist/p-62akP0Ad.js +1 -0
- package/dist/{p-B_FEFM5I.js → p-B18yNcA0.js} +1 -1
- package/dist/p-B2YjHZsu.js +1 -0
- package/dist/{p-DLRj-mUX.js → p-B3AB3GQ0.js} +1 -1
- package/dist/{p-Ds5IzXj3.js → p-B4d07GWP.js} +1 -1
- package/dist/p-BBlUduEr.js +1 -0
- package/dist/{p-BAqWcL0K.js → p-BNW2xgxF.js} +1 -1
- package/dist/p-BcXumkjZ.js +1 -0
- package/dist/{p-DKSnGphd.js → p-C88Z_F_m.js} +1 -1
- package/dist/{p-bfWlRsx_.js → p-CKj2Ru6e.js} +1 -1
- package/dist/{p-B_St7yaX.js → p-COsSHfdc.js} +1 -1
- package/dist/{p-DrxfD2yZ.js → p-CSXuAs_X.js} +1 -1
- package/dist/{p-DzOOjiNH.js → p-CZgH5rZs.js} +1 -1
- package/dist/{p-BIxBMTG9.js → p-CueywyHC.js} +1 -1
- package/dist/p-CxfmNDsm.js +1 -0
- package/dist/{p-CV1-78HB.js → p-D2VR17v2.js} +1 -1
- package/dist/{p-DMxvWIj1.js → p-DKe6orSY.js} +1 -1
- package/dist/{p-D0RJMGGj.js → p-DLX-l0-L.js} +1 -1
- package/dist/p-DOiDD7cS.js +1 -0
- package/dist/{p-B2flLE0s.js → p-DXlBK8TS.js} +1 -1
- package/dist/{p-E13ycS5K.js → p-DYKcsBzA.js} +1 -1
- package/dist/{p--kh67-_Z.js → p-D_mszaeq.js} +1 -1
- package/dist/p-DdJKIFk0.js +1 -0
- package/dist/p-DiX4HaE6.js +1 -0
- package/dist/{p-DQQhGF5N.js → p-DjnREsH0.js} +1 -1
- package/dist/{p-CIjK3iHM.js → p-FSv82P6v.js} +1 -1
- package/dist/p-MaJDBE6u.js +1 -0
- package/dist/p-XVlT5H5q.js +1 -0
- package/dist/p-fE-MdTCH.js +1 -0
- package/dist/{p-mv_7K1EM.js → p-gK9DvcL8.js} +1 -1
- package/dist/{p-_W77iniK.js → p-iEUyQs9t.js} +1 -1
- package/dist/{p-BCbovLBE.js → p-jtpLLxuw.js} +1 -1
- package/dist/p-lvArnlBV.js +1 -0
- package/dist/{p-TfH966_e.js → p-vz4tzbld.js} +1 -1
- package/dist/{p-DnRuhvRw.js → p-x1tVOUSt.js} +1 -1
- package/dist/types/components/webComponents/GidsCalendar/GidsCalendar.d.ts +4 -2
- package/dist/types/components/webComponents/GidsCalendarPicker/GidsCalendarPicker.d.ts +55 -0
- package/dist/types/components/webComponents/GidsDatePicker/GidsDatePicker.d.ts +74 -0
- package/dist/types/components/webComponents/GidsDatePickerField/GidsDatePickerField.d.ts +75 -0
- package/dist/types/components/webComponents/GidsDayDropdownPicker/GidsDayDropdownPicker.d.ts +40 -0
- package/dist/types/components/webComponents/GidsDropdown/GidsDropdown.d.ts +10 -8
- package/dist/types/components/webComponents/GidsDropdownField/GidsDropdownField.d.ts +5 -1
- package/dist/types/components/webComponents/GidsDropdownPicker/GidsDropdownPicker.d.ts +1 -0
- package/dist/types/components/webComponents/GidsFlyoutPanel/GidsFlyoutPanel.d.ts +7 -2
- package/dist/types/components/webComponents/GidsForm/GidsForm.d.ts +8 -0
- package/dist/types/components/webComponents/GidsMonthDropdownPicker/GidsMonthDropdownPicker.d.ts +40 -0
- package/dist/types/components/webComponents/GidsYearDropdownPicker/GidsYearDropdownPicker.d.ts +40 -0
- package/dist/types/components.d.ts +877 -70
- package/dist-bundled/es/GidsDatePickerSharedUtils-Dh5qFlYA.js +105 -0
- package/dist-bundled/es/gids-action-bar.js +28 -28
- 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 +1 -1
- package/dist-bundled/es/gids-bento-card.js +1 -1
- package/dist-bundled/es/gids-calendar-header-panel.js +1 -1
- package/dist-bundled/es/gids-calendar-month-list.js +3 -3
- package/dist-bundled/es/gids-calendar-picker.js +6 -0
- package/dist-bundled/es/gids-calendar-year-list.js +1 -1
- package/dist-bundled/es/gids-calendar.js +4 -151
- package/dist-bundled/es/gids-chart-legend-item.js +1 -1
- package/dist-bundled/es/gids-chart-legend.js +4 -4
- package/dist-bundled/es/gids-chart.js +7 -7
- package/dist-bundled/es/gids-chevron-button.js +7 -7
- package/dist-bundled/es/gids-date-picker-field.js +181 -0
- package/dist-bundled/es/gids-date-picker.js +6 -0
- package/dist-bundled/es/gids-day-dropdown-picker.js +6 -0
- package/dist-bundled/es/gids-dot.js +1 -1
- package/dist-bundled/es/gids-dropdown-field.js +28 -18
- package/dist-bundled/es/gids-dropdown-picker.js +2 -2
- package/dist-bundled/es/gids-dropdown.js +4 -4
- package/dist-bundled/es/gids-expansion-body-list-item.js +1 -1
- package/dist-bundled/es/gids-expansion-body-list.js +2 -2
- package/dist-bundled/es/gids-expansion-group.js +5 -5
- package/dist-bundled/es/gids-expansion.js +8 -8
- package/dist-bundled/es/gids-field.js +4 -4
- package/dist-bundled/es/gids-filter.js +1 -1
- package/dist-bundled/es/gids-flyout-panel.js +3 -3
- package/dist-bundled/es/gids-form.js +65 -49
- package/dist-bundled/es/gids-header-navigation-item.js +3 -3
- package/dist-bundled/es/gids-header-navigation.js +2 -2
- 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 +3 -3
- package/dist-bundled/es/gids-md-table.js +1 -1
- package/dist-bundled/es/gids-month-dropdown-picker.js +6 -0
- package/dist-bundled/es/gids-overflow-container.js +9 -9
- package/dist-bundled/es/gids-overlay-provider.js +2 -2
- package/dist-bundled/es/gids-password-field.js +20 -20
- package/dist-bundled/es/gids-pie-chart.js +1 -1
- package/dist-bundled/es/gids-popover.js +1 -1
- package/dist-bundled/es/gids-profile-menu-header.js +4 -4
- package/dist-bundled/es/gids-profile-menu.js +4 -4
- package/dist-bundled/es/gids-profile.js +10 -10
- package/dist-bundled/es/gids-scrim.js +3 -3
- package/dist-bundled/es/gids-sidebar-item.js +1 -1
- package/dist-bundled/es/gids-sidebar-menu.js +1 -1
- package/dist-bundled/es/gids-sidebar.js +12 -12
- package/dist-bundled/es/gids-skeleton.js +8 -8
- package/dist-bundled/es/gids-tab-item.js +6 -6
- package/dist-bundled/es/gids-tab.js +7 -7
- package/dist-bundled/es/gids-text-field.js +10 -10
- 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 +8 -8
- package/dist-bundled/es/gids-year-dropdown-picker.js +6 -0
- package/dist-bundled/es/p-62akP0Ad-D4pJ0a_I.js +86 -0
- package/dist-bundled/es/{p-B_FEFM5I-JoBieRfG.js → p-B18yNcA0-BaaXQYM_.js} +2 -2
- package/dist-bundled/es/{p-kWyyLyT3-VhX9LNzT.js → p-B2YjHZsu-DxdrSYcE.js} +28 -28
- package/dist-bundled/es/{p-DLRj-mUX-BapdQYpI.js → p-B3AB3GQ0-DdgNC9FJ.js} +5 -5
- package/dist-bundled/es/{p-Ds5IzXj3-B2o0ML2C.js → p-B4d07GWP-DLyo7HQ9.js} +3 -3
- package/dist-bundled/es/{p-CAjDiWIc-C9dOa7FT.js → p-BBlUduEr-CWdvgBS6.js} +7 -7
- package/dist-bundled/es/{p-BAqWcL0K-DNkV1R_C.js → p-BNW2xgxF-DWKLliyn.js} +5 -5
- package/dist-bundled/es/p-BcXumkjZ-zNpzLmjI.js +240 -0
- package/dist-bundled/es/{p-DKSnGphd-CZSPfB-N.js → p-C88Z_F_m-wMA27lx_.js} +3 -3
- package/dist-bundled/es/{p-bfWlRsx_-CNZjBYOE.js → p-CKj2Ru6e-B-Nk5B_P.js} +3 -3
- package/dist-bundled/es/{p-B_St7yaX-Da4DWjGh.js → p-COsSHfdc-DfDYoLSS.js} +3 -3
- package/dist-bundled/es/{p-DrxfD2yZ-Cetyr3S9.js → p-CSXuAs_X-Hw6bT-8r.js} +11 -11
- package/dist-bundled/es/{p-DzOOjiNH-CqI4E-mj.js → p-CZgH5rZs-Clk0qfHN.js} +3 -3
- package/dist-bundled/es/{p-BIxBMTG9-Ctr342ff.js → p-CueywyHC-CsEetdha.js} +3 -3
- package/dist-bundled/es/{p-DpvdbdZ--C7QlXxK2.js → p-CxfmNDsm-JHseL2it.js} +30 -18
- package/dist-bundled/es/{p-DMxvWIj1-BxbvrlFL.js → p-DKe6orSY-D1kYOeuX.js} +6 -6
- package/dist-bundled/es/{p-D0RJMGGj-BflZ9l8y.js → p-DLX-l0-L-gumz4bOG.js} +1 -1
- package/dist-bundled/es/{p-BQT5yy5L-C1C_zTi-.js → p-DOiDD7cS-j1RR9K9r.js} +8 -4
- package/dist-bundled/es/{p-B2flLE0s-SMg7vg1a.js → p-DXlBK8TS-DazOvEm2.js} +2 -2
- package/dist-bundled/es/{p-E13ycS5K-BBDydae3.js → p-DYKcsBzA-BcupA9sw.js} +6 -6
- package/dist-bundled/es/{p--kh67-_Z-B-vf_gng.js → p-D_mszaeq-ndcXN34-.js} +4 -4
- package/dist-bundled/es/{p-Do_VlNHg-Ck03dQOR.js → p-DdJKIFk0-Co3FvR3K.js} +1 -1
- package/dist-bundled/es/p-DiX4HaE6-C35K492C.js +86 -0
- package/dist-bundled/es/{p-DQQhGF5N-mCqb5VTE.js → p-DjnREsH0-Cm8vBvIX.js} +7 -7
- package/dist-bundled/es/{p-CIjK3iHM-DEW8PRM5.js → p-FSv82P6v-C6jFH7Zo.js} +1 -1
- package/dist-bundled/es/p-MaJDBE6u-DjtEX6-I.js +157 -0
- package/dist-bundled/es/p-XVlT5H5q-CFIMyrM3.js +148 -0
- package/dist-bundled/es/p-fE-MdTCH-CDvG1Xn1.js +122 -0
- package/dist-bundled/es/{p-mv_7K1EM-U3yKC45e.js → p-gK9DvcL8-Chw-ya2Q.js} +1 -1
- package/dist-bundled/es/{p-_W77iniK-ChKfEOp3.js → p-iEUyQs9t-BUXXVuwz.js} +2 -2
- package/dist-bundled/es/{p-BCbovLBE-CDxKiOtS.js → p-jtpLLxuw-BlEPhjmU.js} +1 -1
- package/dist-bundled/es/p-lvArnlBV-BxkIAxHG.js +86 -0
- package/dist-bundled/es/{p-TfH966_e-BzZRV8Rj.js → p-vz4tzbld-BYJRjHJw.js} +5 -5
- package/dist-bundled/es/{p-DnRuhvRw-Beh0bANh.js → p-x1tVOUSt-CdB8Szfe.js} +6 -6
- package/dist-bundled/umd/gids-action-bar.umd.js +2 -2
- package/dist-bundled/umd/gids-activity-gauge.umd.js +1 -1
- package/dist-bundled/umd/gids-advanced-tooltip.umd.js +1 -1
- package/dist-bundled/umd/gids-bar-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-bento-card.umd.js +1 -1
- 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-picker.umd.js +5 -0
- 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-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-date-picker-field.umd.js +5 -0
- package/dist-bundled/umd/gids-date-picker.umd.js +5 -0
- package/dist-bundled/umd/gids-day-dropdown-picker.umd.js +5 -0
- package/dist-bundled/umd/gids-dot.umd.js +1 -1
- package/dist-bundled/umd/gids-dropdown-field.umd.js +2 -2
- package/dist-bundled/umd/gids-dropdown-picker.umd.js +2 -2
- package/dist-bundled/umd/gids-dropdown.umd.js +2 -2
- 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 +1 -1
- package/dist-bundled/umd/gids-filter.umd.js +2 -2
- package/dist-bundled/umd/gids-flyout-panel.umd.js +2 -2
- package/dist-bundled/umd/gids-form.umd.js +2 -2
- 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 +1 -1
- 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-month-dropdown-picker.umd.js +5 -0
- 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 +2 -2
- package/dist-bundled/umd/gids-popover.umd.js +1 -1
- 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-sidebar-item.umd.js +2 -2
- package/dist-bundled/umd/gids-sidebar-menu.umd.js +2 -2
- package/dist-bundled/umd/gids-sidebar.umd.js +2 -2
- 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 +1 -1
- 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 +1 -1
- package/dist-bundled/umd/gids-year-dropdown-picker.umd.js +5 -0
- package/dist-bundled/umd-complete/gids-core-web.umd.js +4 -4
- package/package.json +55 -7
- package/dist/p-BQT5yy5L.js +0 -1
- package/dist/p-CAjDiWIc.js +0 -1
- package/dist/p-Do_VlNHg.js +0 -1
- package/dist/p-DpvdbdZ-.js +0 -1
- package/dist/p-kWyyLyT3.js +0 -1
- package/dist/p-tEbUT3n3.js +0 -1
- package/dist-bundled/es/p-tEbUT3n3-Byef6fQN.js +0 -244
- /package/dist-bundled/es/{p-CV1-78HB-C0k_l_CT.js → p-D2VR17v2-C0k_l_CT.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { q as d, L as c, u as h, D as i } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
|
-
import { i as u,
|
|
3
|
-
import { i as Y } from "./p-
|
|
2
|
+
import { i as u, t as m } from "./p-BBlUduEr-CWdvgBS6.js";
|
|
3
|
+
import { i as Y } from "./p-B3AB3GQ0-DdgNC9FJ.js";
|
|
4
4
|
import { c as p } from "./clsx-OuTLNxxd.js";
|
|
5
5
|
const f = (e) => p("gids-calendar-year-list", e), g = (e) => {
|
|
6
6
|
const t = e.toString().trim();
|
|
@@ -72,7 +72,7 @@ const f = (e) => p("gids-calendar-year-list", e), g = (e) => {
|
|
|
72
72
|
}
|
|
73
73
|
render() {
|
|
74
74
|
const e = y();
|
|
75
|
-
return i("div", { key: "
|
|
75
|
+
return i("div", { key: "322150db7c7bfbc83015b66ea589e013d36c72c8", class: e }, i(u, { key: "17a8a890eeee289869ad5455996265df4cd4efb7", type: this.type, supportingText: this.noOptionsText }, i(m, { key: "3b5ec7f3d9943123137433e54febe1f756bfd145", sectionLabel: "Years" }, this.yearsList().map(((t, s) => {
|
|
76
76
|
const a = `${s + 1}`, r = this.disabledIndices?.includes(t.value);
|
|
77
77
|
return i(Y, { title: t.title, value: `${t.value}`, key: `${s.toString()}`, index: s, id: a, selected: this.isItemSelected(s), onPressDropdownItem: this.handleMenuClick, disabled: r, divider: this.divider, isPlaceholderItem: !1 });
|
|
78
78
|
})))));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { D as n } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
2
|
import { p as d } from "./p-C-Lpfqcg-DIuBhXzX.js";
|
|
3
|
-
import { _ as u } from "./p-
|
|
4
|
-
import { c as
|
|
5
|
-
const p = ({ type: o }, e) =>
|
|
3
|
+
import { _ as u } from "./p-D2VR17v2-C0k_l_CT.js";
|
|
4
|
+
import { c as l } from "./clsx-OuTLNxxd.js";
|
|
5
|
+
const p = ({ type: o }, e) => l("gids-dropdown-menu-group", {
|
|
6
6
|
"gids-dropdown-menu-group--default": o === "default",
|
|
7
7
|
// by default so no need to have this class
|
|
8
8
|
"gids-dropdown-menu-group--no-options": o === "no-options",
|
|
@@ -10,11 +10,11 @@ const p = ({ type: o }, e) => t("gids-dropdown-menu-group", {
|
|
|
10
10
|
}, e), i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11
11
|
__proto__: null,
|
|
12
12
|
getGidsDropdownMenuGroupClassNames: p
|
|
13
|
-
}, Symbol.toStringTag, { value: "Module" })), a = (o) =>
|
|
13
|
+
}, Symbol.toStringTag, { value: "Module" })), a = (o) => l("gids-dropdown-menu", o), g = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14
14
|
__proto__: null,
|
|
15
15
|
getGidsDropdownMenuClassNames: a
|
|
16
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsDropdownMenuGroupClassNames: m } = i, y = ({ type: o = "no-options", supportingText: e = "No options", class: r, ...s },
|
|
16
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsDropdownMenuGroupClassNames: m } = i, y = ({ type: o = "no-options", supportingText: e = "No options", class: r, ...s }, t) => n("div", { class: m({ type: o }, r), ...s }, o === "loading" ? n(d, { indeterminate: !0, size: "md" }) : null, o === "no-options" ? n("span", null, e) : null, o === "default" && t != null ? t : null), { getGidsDropdownMenuClassNames: c } = g, G = ({ sectionLabel: o, class: e, ...r }, s) => n("div", { class: c(e), ...r }, o != null && o !== "" ? n(u, { supportingText: o, supportingTextTypography: "eyebrow-medium" }) : null, s != null ? n("div", { class: "gids-dropdown-menu__children" }, s) : null);
|
|
17
17
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
y as i,
|
|
19
|
+
G as t
|
|
20
20
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { q as f, L as g, u as v, D as c } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
2
|
import { d as p } from "./p-iQRr_fAH-Dvv1n8QD.js";
|
|
3
|
-
import { o as I } from "./p-
|
|
3
|
+
import { o as I } from "./p-DjnREsH0-Cm8vBvIX.js";
|
|
4
4
|
import { c as y } from "./clsx-OuTLNxxd.js";
|
|
5
5
|
const S = ({ expanded: h }, e) => y("gids-filter", {
|
|
6
6
|
"gids-filter--expanded": h
|
|
@@ -142,7 +142,7 @@ const F = g((s = class extends v {
|
|
|
142
142
|
}
|
|
143
143
|
render() {
|
|
144
144
|
const e = this.expanded && this.isInteractive(), t = E({ expanded: e }), l = this.isMenuToggler(), i = typeof this.filterPickerId == "string" ? this.filterPickerId : void 0, n = i ? `${i}__menu` : void 0, r = this.selectedItemTitle ?? this.value ?? "", d = this.type === "more", a = this.type === "all", o = this.type === "none";
|
|
145
|
-
return c("div", { key: "
|
|
145
|
+
return c("div", { key: "b08dfcb918abf39ea54760453194f008b41c1eca", class: t, "aria-control": n ?? "" }, c("gids-toggle-button", { key: "0577901cccbad74ed5d575c3f7a0f815908247bc", id: i, name: this.name, expanded: e, value: r, disabled: this.disabled, size: this.size, loading: this.loading, tabIndex: this.filterIndex, defaultSelected: this.filterDefaultSelected, selected: this.filterSelected, onSelect: this.handleFilterButtonClickToggle }, d || a ? c(p, { name: d ? "options" : "filter", size: this.size, appearance: "regular", alt: "", slot: "leadingIcon" }) : void 0, o || a ? r : void 0, l && !d ? c(p, { name: "chevron-down", size: this.size, appearance: "regular", alt: "", slot: "trailingIcon" }) : void 0), c("div", { key: "874c67d2a3c693324417502e9698a4a5032d0d90", class: "gids-filter__menu", id: n, role: "pickerbox", onClick: this.handleMenuClick }, c("slot", { key: "69b06764abd1d91892d23e19b7dfa619c6bd3a95", onSlotchange: () => this.evaluateSlottedMenuExistence() })));
|
|
146
146
|
}
|
|
147
147
|
get hostElement() {
|
|
148
148
|
return this;
|
|
@@ -154,7 +154,7 @@ const F = g((s = class extends v {
|
|
|
154
154
|
return ".gids-filter{position:relative}.gids-filter__menu{position:absolute;inset-inline: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;max-height:15rem;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);left:0;right:auto}.gids-filter__menu--align-right{left:auto !important;right:0 !important}.gids-filter__menu>*{flex-shrink:0}.gids-filter--expanded .gids-filter__menu{display:flex}";
|
|
155
155
|
}
|
|
156
156
|
}, s.emittedValuesTracker = /* @__PURE__ */ new Set(), s), [260, "gids-filter", { name: [1], filterId: [1025, "filter-id"], filterPickerId: [1, "filter-picker-id"], expanded: [4], type: [1], filterItemType: [1, "filter-item-type"], value: [1], filterSelected: [1540, "filter-selected"], filterDefaultSelected: [4, "filter-default-selected"], disabled: [4], size: [1], loading: [4], filterIndex: [2, "filter-index"], onFilterMenuItemChange: [16], onToggle: [16], selectedItemTitle: [32], hasSlottedMenu: [32] }, [[8, "click", "handleWindowClick"]], { expanded: [{ handleExpandedChange: 0 }], disabled: [{ handleInteractivityChange: 0 }], type: [{ handleFilterTypeChange: 0 }], filterId: [{ handleFilterIdArrival: 0 }], filterSelected: [{ handleFilterSelectedChange: 0 }], filterDefaultSelected: [{ handleFilterDefaultSelectedChange: 0 }] }]);
|
|
157
|
-
function
|
|
157
|
+
function T() {
|
|
158
158
|
typeof customElements < "u" && ["gids-filter", "gids-toggle-button"].forEach(((h) => {
|
|
159
159
|
switch (h) {
|
|
160
160
|
case "gids-filter":
|
|
@@ -165,8 +165,8 @@ function b() {
|
|
|
165
165
|
}
|
|
166
166
|
}));
|
|
167
167
|
}
|
|
168
|
-
|
|
168
|
+
T();
|
|
169
169
|
export {
|
|
170
|
-
|
|
170
|
+
T as a,
|
|
171
171
|
F as r
|
|
172
172
|
};
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import { q as d, L as u, u as m, D as o } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
|
+
import { d as p } from "./p-iQRr_fAH-Dvv1n8QD.js";
|
|
3
|
+
import { h as g } from "./p-CxfmNDsm-JHseL2it.js";
|
|
4
|
+
import { r as v } from "./p-CZgH5rZs-Clk0qfHN.js";
|
|
5
|
+
import { c } from "./clsx-OuTLNxxd.js";
|
|
6
|
+
const f = (e) => c("gids-dropdown", e), y = ({ size: e }, t) => c("gids-chevron-button-control", {
|
|
7
|
+
"gids-chevron-button-control--small": e === "sm",
|
|
8
|
+
// 'gids-chevron-button-control--medium': size === 'md', // Default
|
|
9
|
+
"gids-chevron-button-control--large": e === "lg"
|
|
10
|
+
}, t), I = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11
|
+
__proto__: null,
|
|
12
|
+
getGidsChevronButtonControlClassNames: y,
|
|
13
|
+
getGidsDropdownClassNames: f
|
|
14
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsDropdownClassNames: b, getGidsChevronButtonControlClassNames: E } = I, h = "gids-dropdown-item--active", C = u(class extends m {
|
|
15
|
+
constructor(e) {
|
|
16
|
+
super(), e !== !1 && this.__registerHost(), this.appearance = "default", this.menuPlacement = "bottom", this.menuConstrainPlacements = ["bottom", "top"], this.filterValue = "", this.isFilterEditing = !1, this.hasLeadingIcon = !1, this.hasLeadingAccessory = !1, this.activeIndex = -1, this.hasItemListener = !1, this.suppressNextMenuClickSelection = !1, this.hasDocumentListeners = !1, this.hasPendingControlRevalidation = !1, this.suppressNextFilterInput = !1, this.handleDropdownItemSelect = (t) => {
|
|
17
|
+
const { value: n, title: s, disabled: i, id: a, isPlaceholderItem: l } = t.detail;
|
|
18
|
+
i || typeof n != "string" || (this.suppressNextMenuClickSelection = !0, queueMicrotask((() => {
|
|
19
|
+
this.suppressNextMenuClickSelection = !1;
|
|
20
|
+
})), this.applySelection({ id: a, value: n, title: s, disabled: !1, originalEvent: t, isPlaceholderItem: l }));
|
|
21
|
+
}, this.handleMenuClick = (t) => {
|
|
22
|
+
if (this.suppressNextMenuClickSelection) return;
|
|
23
|
+
const n = t.target;
|
|
24
|
+
if (!(n instanceof Element)) return;
|
|
25
|
+
const s = n.closest(".gids-dropdown-item");
|
|
26
|
+
if (!s || !this.hostElement.contains(s) || s.hasAttribute("disabled") || s.getAttribute("aria-disabled") === "true") return;
|
|
27
|
+
const i = s instanceof HTMLButtonElement ? s.value : s.getAttribute("value") || "";
|
|
28
|
+
if (typeof i != "string" || i.length === 0) return;
|
|
29
|
+
const a = s instanceof HTMLButtonElement ? s.id : s.getAttribute("id") ?? "";
|
|
30
|
+
if (typeof a != "string" || a.length === 0) return;
|
|
31
|
+
const l = s.getAttribute("is-placeholder-item") ?? "";
|
|
32
|
+
let r = s.textContent?.trim() ?? "";
|
|
33
|
+
r.endsWith("checkmark") && (r = r.slice(0, -9).trim()), this.applySelection({ id: a, value: i, title: r.trim(), disabled: !1, originalEvent: t, isPlaceholderItem: !(!l || l !== "true") });
|
|
34
|
+
}, this.handleFilterInput = (t) => {
|
|
35
|
+
if (this.suppressNextFilterInput) return void (this.suppressNextFilterInput = !1);
|
|
36
|
+
const n = t.target;
|
|
37
|
+
this.filterValue = n?.value ?? "", this.isFilterEditing = !0, this.clearActive(), this.applyFilter();
|
|
38
|
+
}, this.handleInputKeyDown = (t) => {
|
|
39
|
+
if (!this.isInteractive()) return;
|
|
40
|
+
const n = t.key, s = n === "ArrowDown";
|
|
41
|
+
return !s && n !== "ArrowUp" || t.metaKey || t.ctrlKey ? n === "Home" ? (t.preventDefault(), void this.setActiveByIndex(0)) : n === "End" ? (t.preventDefault(), void this.setActiveByIndex(this.getVisibleEnabledItems().length - 1)) : void (n === "Enter" && this.selectActive() && t.preventDefault()) : (t.preventDefault(), void this.moveActive(s ? 1 : -1));
|
|
42
|
+
}, this.handleInputFocusAndBlur = (t) => {
|
|
43
|
+
this.hostElement.dispatchEvent(new FocusEvent(t.type, { relatedTarget: t.relatedTarget }));
|
|
44
|
+
}, this.handleInputClickToggle = () => {
|
|
45
|
+
}, this.handleChevronClickToggle = (t) => {
|
|
46
|
+
t.defaultPrevented || (t.stopPropagation(), this.disabled || this.readOnly || this.flyoutPanelElement?.isFlyoutPanelVisible().then(((n) => {
|
|
47
|
+
n ? this.flyoutPanelElement?.closeFlyoutPanel(t) : this.flyoutPanelElement?.openFlyoutPanel(t);
|
|
48
|
+
})));
|
|
49
|
+
}, this.handleDocumentPointerDown = (t) => {
|
|
50
|
+
t.button !== 2 && !(typeof t.composedPath == "function" ? t.composedPath() : []).includes(this.hostElement) && this.hostElement.contains(t.target);
|
|
51
|
+
}, this.handleDocumentKeyDown = (t) => {
|
|
52
|
+
const n = t.key;
|
|
53
|
+
n !== "Escape" && n !== "Esc" || t.preventDefault();
|
|
54
|
+
}, this.handleFormReset = () => {
|
|
55
|
+
this.value = this.initialValue, this.selectedItemTitle = void 0, this.isFilterEditing = !1, this.filterValue = "";
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
handleInteractivityChange(e) {
|
|
59
|
+
this.disabled = e, this.readOnly = e;
|
|
60
|
+
}
|
|
61
|
+
menuPlacementChanged(e) {
|
|
62
|
+
this.menuPlacement = e;
|
|
63
|
+
}
|
|
64
|
+
menuConstrainPlacementsChanged(e) {
|
|
65
|
+
this.menuConstrainPlacements = e;
|
|
66
|
+
}
|
|
67
|
+
connectedCallback() {
|
|
68
|
+
this.initialValue = this.value, this.attachItemListener(), this.attachDocumentListeners(), this.attachFormListener();
|
|
69
|
+
}
|
|
70
|
+
disconnectedCallback() {
|
|
71
|
+
this.detachItemListener(), this.detachDocumentListeners(), this.detachFormListener();
|
|
72
|
+
}
|
|
73
|
+
componentWillLoad() {
|
|
74
|
+
this.checkSlots();
|
|
75
|
+
}
|
|
76
|
+
componentWillUpdate() {
|
|
77
|
+
this.checkSlots();
|
|
78
|
+
}
|
|
79
|
+
componentDidRender() {
|
|
80
|
+
this.flyoutPanelElement = this.hostElement.querySelector("gids-flyout-panel") ?? void 0;
|
|
81
|
+
}
|
|
82
|
+
checkSlots() {
|
|
83
|
+
this.hasLeadingIcon = !!this.hostElement.querySelector('[slot="leadingIconDropdown"]'), this.hasLeadingAccessory = !!this.hostElement.querySelector('[slot="leadingAccessoryDropdown"]');
|
|
84
|
+
}
|
|
85
|
+
getItemElements() {
|
|
86
|
+
return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"));
|
|
87
|
+
}
|
|
88
|
+
getVisibleEnabledItems() {
|
|
89
|
+
return this.getItemElements().filter(((e) => e.style.display !== "none" && !e.hasAttribute("disabled") && e.getAttribute("aria-disabled") !== "true"));
|
|
90
|
+
}
|
|
91
|
+
attachItemListener() {
|
|
92
|
+
this.hasItemListener || (this.hostElement.addEventListener("onPressDropdownItem", this.handleDropdownItemSelect), this.hasItemListener = !0);
|
|
93
|
+
}
|
|
94
|
+
detachItemListener() {
|
|
95
|
+
this.hasItemListener && (this.hostElement.removeEventListener("onPressDropdownItem", this.handleDropdownItemSelect), this.hasItemListener = !1);
|
|
96
|
+
}
|
|
97
|
+
applySelection(e) {
|
|
98
|
+
this.value = e.value, this.selectedItemTitle = typeof e.title == "string" ? e.title : void 0, this.isFilterEditing = !1, this.filterValue = "", this.clearActive(), this.emitNativeSelectionEvents(this.selectedItemTitle ?? ""), this.resetItemVisibility(), this.onSelectionChange?.(e);
|
|
99
|
+
const t = new CustomEvent("gidsDropdownChange", { bubbles: !0, composed: !0, detail: e });
|
|
100
|
+
this.hostElement.dispatchEvent(t), this.disabled || this.readOnly || this.flyoutPanelElement?.isFlyoutPanelVisible().then(((n) => {
|
|
101
|
+
n ? this.flyoutPanelElement?.closeFlyoutPanel(t) : this.flyoutPanelElement?.openFlyoutPanel(t);
|
|
102
|
+
}));
|
|
103
|
+
}
|
|
104
|
+
getInputControl() {
|
|
105
|
+
return this.hostElement.querySelector(".gids-input__control");
|
|
106
|
+
}
|
|
107
|
+
emitNativeSelectionEvents(e) {
|
|
108
|
+
const t = this.getInputControl();
|
|
109
|
+
t && (t.value = e, this.suppressNextFilterInput = !0, t.dispatchEvent(new Event("input", { bubbles: !0, composed: !0 })), t.dispatchEvent(new Event("change", { bubbles: !0, composed: !0 })), this.suppressNextFilterInput && (this.suppressNextFilterInput = !1));
|
|
110
|
+
}
|
|
111
|
+
clearActive() {
|
|
112
|
+
this.activeIndex = -1, this.getItemElements().forEach(((e) => e.classList.remove(h))), this.setActiveDescendant(void 0);
|
|
113
|
+
}
|
|
114
|
+
setActiveByIndex(e) {
|
|
115
|
+
const t = this.getVisibleEnabledItems();
|
|
116
|
+
if (this.getItemElements().forEach(((i) => i.classList.remove(h))), t.length === 0) return this.activeIndex = -1, void this.setActiveDescendant(void 0);
|
|
117
|
+
const n = Math.max(0, Math.min(e, t.length - 1)), s = t[n];
|
|
118
|
+
if (!s) return this.activeIndex = -1, void this.setActiveDescendant(void 0);
|
|
119
|
+
this.activeIndex = n, s.classList.add(h), s.scrollIntoView({ block: "nearest" }), this.setActiveDescendant(s.id || void 0);
|
|
120
|
+
}
|
|
121
|
+
moveActive(e) {
|
|
122
|
+
const t = this.getVisibleEnabledItems();
|
|
123
|
+
t.length !== 0 ? this.setActiveByIndex(this.activeIndex === -1 ? e > 0 ? 0 : t.length - 1 : (this.activeIndex + e + t.length) % t.length) : this.clearActive();
|
|
124
|
+
}
|
|
125
|
+
selectActive() {
|
|
126
|
+
const e = this.getVisibleEnabledItems();
|
|
127
|
+
if (e.length === 0) return !1;
|
|
128
|
+
const t = this.activeIndex >= 0 ? e[this.activeIndex] : e[0];
|
|
129
|
+
return !!t && (t.click(), this.getInputControl()?.focus(), !0);
|
|
130
|
+
}
|
|
131
|
+
applyFilter() {
|
|
132
|
+
const e = this.filterValue.trim().toLowerCase();
|
|
133
|
+
this.getItemElements().forEach(((t) => {
|
|
134
|
+
const n = (t.textContent ?? "").toLowerCase();
|
|
135
|
+
e.length === 0 || n.includes(e) ? t.style.removeProperty("display") : t.style.display = "none";
|
|
136
|
+
}));
|
|
137
|
+
}
|
|
138
|
+
resetItemVisibility() {
|
|
139
|
+
this.getItemElements().forEach(((e) => {
|
|
140
|
+
e.style.removeProperty("display");
|
|
141
|
+
}));
|
|
142
|
+
}
|
|
143
|
+
setActiveDescendant(e) {
|
|
144
|
+
const t = this.getInputControl();
|
|
145
|
+
t && (e ? t.setAttribute("aria-activedescendant", e) : t.removeAttribute("aria-activedescendant"));
|
|
146
|
+
}
|
|
147
|
+
attachDocumentListeners() {
|
|
148
|
+
this.hasDocumentListeners || typeof document > "u" || (document.addEventListener("pointerdown", this.handleDocumentPointerDown), document.addEventListener("keydown", this.handleDocumentKeyDown), this.hasDocumentListeners = !0);
|
|
149
|
+
}
|
|
150
|
+
detachDocumentListeners() {
|
|
151
|
+
this.hasDocumentListeners && typeof document < "u" && (document.removeEventListener("pointerdown", this.handleDocumentPointerDown), document.removeEventListener("keydown", this.handleDocumentKeyDown), this.hasDocumentListeners = !1);
|
|
152
|
+
}
|
|
153
|
+
attachFormListener() {
|
|
154
|
+
const e = this.hostElement.closest("form");
|
|
155
|
+
this.patternForm !== e && (this.patternForm && this.patternForm.removeEventListener("reset", this.handleFormReset), this.patternForm = e ?? void 0, this.patternForm?.addEventListener("reset", this.handleFormReset));
|
|
156
|
+
}
|
|
157
|
+
detachFormListener() {
|
|
158
|
+
this.patternForm && (this.patternForm.removeEventListener("reset", this.handleFormReset), this.patternForm = void 0);
|
|
159
|
+
}
|
|
160
|
+
get form() {
|
|
161
|
+
return this.getInputControl()?.form ?? this.patternForm ?? null;
|
|
162
|
+
}
|
|
163
|
+
get validity() {
|
|
164
|
+
return this.getInputControl()?.validity ?? {};
|
|
165
|
+
}
|
|
166
|
+
get validationMessage() {
|
|
167
|
+
return this.getInputControl()?.validationMessage ?? "";
|
|
168
|
+
}
|
|
169
|
+
get willValidate() {
|
|
170
|
+
return this.getInputControl()?.willValidate ?? !1;
|
|
171
|
+
}
|
|
172
|
+
async checkValidity() {
|
|
173
|
+
return this.getInputControl()?.checkValidity() ?? !0;
|
|
174
|
+
}
|
|
175
|
+
async reportValidity() {
|
|
176
|
+
return this.getInputControl()?.reportValidity() ?? !0;
|
|
177
|
+
}
|
|
178
|
+
async setCustomValidity(e) {
|
|
179
|
+
return this.getInputControl()?.setCustomValidity(e);
|
|
180
|
+
}
|
|
181
|
+
isInteractive() {
|
|
182
|
+
return !(this.disabled || this.readOnly);
|
|
183
|
+
}
|
|
184
|
+
scheduleControlRevalidation() {
|
|
185
|
+
if (this.hasPendingControlRevalidation) return;
|
|
186
|
+
this.hasPendingControlRevalidation = !0;
|
|
187
|
+
const e = () => {
|
|
188
|
+
this.hasPendingControlRevalidation = !1, this.checkValidity();
|
|
189
|
+
};
|
|
190
|
+
typeof requestAnimationFrame != "function" ? e() : requestAnimationFrame(e);
|
|
191
|
+
}
|
|
192
|
+
getEnhancedInputProps() {
|
|
193
|
+
const e = { ...this.inputProps ?? {} };
|
|
194
|
+
typeof e.autoComplete == "string" && e?.autoComplete?.trim?.()?.length !== 0 || (e.autoComplete = "off");
|
|
195
|
+
const t = e.onInput;
|
|
196
|
+
e.onInput = (i) => {
|
|
197
|
+
t?.(i), this.handleFilterInput(i);
|
|
198
|
+
};
|
|
199
|
+
const n = e.onBlur;
|
|
200
|
+
e.onBlur = (i) => {
|
|
201
|
+
n?.(i), this.scheduleControlRevalidation();
|
|
202
|
+
};
|
|
203
|
+
const s = e.onKeyDown;
|
|
204
|
+
return e.onKeyDown = (i) => {
|
|
205
|
+
s?.(i), i.defaultPrevented || this.handleInputKeyDown(i);
|
|
206
|
+
}, e;
|
|
207
|
+
}
|
|
208
|
+
render() {
|
|
209
|
+
const e = b(), t = this.getEnhancedInputProps(), n = typeof t.id == "string" ? t.id : void 0, s = n ? `${n}__menu` : void 0, i = this.isFilterEditing ? this.filterValue : this.selectedItemTitle ?? this.value ?? "", a = this.disabled || this.readOnly ? "" : `dropdown-${s}`, l = o("button", { key: "7ea973413d842a50076beefa4c7e44e690ce64ca", class: E({ size: "lg" }), slot: "trailingAccessory", type: "button", onClick: (r) => this.handleChevronClickToggle(r), "aria-haspopup": "listbox", "aria-controls": s, disabled: this.disabled || this.readOnly, tabIndex: -1 }, o("span", { key: "1579fc5f3c7e582619754aef7830ea7079f38963", class: "gids-button__content" }, o(p, { key: "e2781f65e2eab2ea398070eca03855d89343870e", name: "chevron-vertical", alt: "" })));
|
|
210
|
+
return o("div", { key: "9c55513535108fb289d6011102ecd7ef9f217c79", class: e }, o("gids-input", { key: "5c5be9280f69ef3b031a34f50927e1f649c4911e", appearance: this.appearance, loading: this.loading, disabled: this.disabled, readOnly: this.readOnly, required: this.required, value: i, name: this.name, inputProps: t, onClick: this.handleInputClickToggle, onFocus: this.handleInputFocusAndBlur, onBlur: this.handleInputFocusAndBlur, id: a }, this.hasLeadingIcon && o("slot", { key: "502e234e0fb147df023d1e969975167975b4dd7f", name: "leadingIconDropdown", slot: "leadingIcon" }), this.hasLeadingAccessory && o("slot", { key: "f447253a177d9a724d4c60f63c30232dc23add11", name: "leadingAccessoryDropdown", slot: "leadingAccessory" }), l), o("gids-flyout-panel", { key: "905193245274409ea826af63a658c98de1e8966d", placement: this?.menuPlacement ?? "bottom", constrainPlacements: this?.menuConstrainPlacements ?? ["bottom", "top"], onClick: this.handleMenuClick, htmlFor: a }, o("slot", { key: "b398ffd22d450277271a51fce7f52164b2f76229" })));
|
|
211
|
+
}
|
|
212
|
+
get hostElement() {
|
|
213
|
+
return this;
|
|
214
|
+
}
|
|
215
|
+
static get watchers() {
|
|
216
|
+
return { disabled: [{ handleInteractivityChange: 0 }], readOnly: [{ handleInteractivityChange: 0 }], menuPlacement: [{ menuPlacementChanged: 0 }], menuConstrainPlacements: [{ menuConstrainPlacementsChanged: 0 }] };
|
|
217
|
+
}
|
|
218
|
+
static get style() {
|
|
219
|
+
return ".gids-dropdown{position:relative}.gids-dropdown__leading-icon{display:flex;align-items:center}.gids-dropdown__accessory{display:flex;align-items:center}";
|
|
220
|
+
}
|
|
221
|
+
}, [260, "gids-dropdown", { appearance: [1], inputProps: [16], disabled: [516], readOnly: [516, "read-only"], loading: [516], value: [513], name: [1], onSelectionChange: [16], required: [4], menuPlacement: [1, "menu-placement"], menuConstrainPlacements: [16], filterValue: [32], isFilterEditing: [32], selectedItemTitle: [32], hasLeadingIcon: [32], hasLeadingAccessory: [32], checkValidity: [64], reportValidity: [64], setCustomValidity: [64] }, void 0, { disabled: [{ handleInteractivityChange: 0 }], readOnly: [{ handleInteractivityChange: 0 }], menuPlacement: [{ menuPlacementChanged: 0 }], menuConstrainPlacements: [{ menuConstrainPlacementsChanged: 0 }] }]);
|
|
222
|
+
function P() {
|
|
223
|
+
typeof customElements < "u" && ["gids-dropdown", "gids-flyout-panel", "gids-input"].forEach(((e) => {
|
|
224
|
+
switch (e) {
|
|
225
|
+
case "gids-dropdown":
|
|
226
|
+
customElements.get(d(e)) || customElements.define(d(e), C);
|
|
227
|
+
break;
|
|
228
|
+
case "gids-flyout-panel":
|
|
229
|
+
customElements.get(d(e)) || g();
|
|
230
|
+
break;
|
|
231
|
+
case "gids-input":
|
|
232
|
+
customElements.get(d(e)) || v();
|
|
233
|
+
}
|
|
234
|
+
}));
|
|
235
|
+
}
|
|
236
|
+
P();
|
|
237
|
+
export {
|
|
238
|
+
C as l,
|
|
239
|
+
P as m
|
|
240
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { q as h, L as v, u as f, D as e } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
2
|
import { p as u } from "./p-C-Lpfqcg-DIuBhXzX.js";
|
|
3
3
|
import { d as w } from "./p-iQRr_fAH-Dvv1n8QD.js";
|
|
4
|
-
import { _ as k } from "./p-
|
|
5
|
-
import { o as z } from "./p-
|
|
6
|
-
import { l as C } from "./p-
|
|
4
|
+
import { _ as k } from "./p-DLX-l0-L-gumz4bOG.js";
|
|
5
|
+
import { o as z } from "./p-x1tVOUSt-CdB8Szfe.js";
|
|
6
|
+
import { l as C } from "./p-DYKcsBzA-BcupA9sw.js";
|
|
7
7
|
import { c as L } from "./clsx-OuTLNxxd.js";
|
|
8
8
|
const D = ({ breakpoint: i }, r) => L("gids-line-chart", {
|
|
9
9
|
"gids-line-chart--breakpoint-mobile": i === "mobile"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { q as s, L as P, u as A, D as n, P as x } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
|
-
import { P as v, T as L } from "./p-
|
|
2
|
+
import { P as v, T as L } from "./p-B2YjHZsu-DxdrSYcE.js";
|
|
3
3
|
import { d as T } from "./p-iQRr_fAH-Dvv1n8QD.js";
|
|
4
|
-
import { h as E } from "./p-
|
|
4
|
+
import { h as E } from "./p-CxfmNDsm-JHseL2it.js";
|
|
5
5
|
import { c as y } from "./clsx-OuTLNxxd.js";
|
|
6
6
|
const D = (e) => y("gids-sidebar-item", e), _ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7
7
|
__proto__: null,
|
|
@@ -77,7 +77,7 @@ const D = (e) => y("gids-sidebar-item", e), _ = /* @__PURE__ */ Object.freeze(/*
|
|
|
77
77
|
}
|
|
78
78
|
render() {
|
|
79
79
|
const e = this.id, t = this?.appearance ?? "subtle", a = this?.selectionAppearance ?? "default", i = this?.leadingLabel, l = this?.leadingSupportingText, c = this?.trailingLabel, m = this?.trailingSupportingText, u = this?.disabled ?? !1, o = this?.selectedState ?? !1, h = this?.menuId ?? "sidebar-menu-item", g = this?.menuPlacement ?? "right", I = this?.menuConstrainPlacements && this.menuConstrainPlacements.length > 0 ? this.menuConstrainPlacements : ["bottom", "left", "right", "top", "left-start", "left-end", "right-start", "right-end"], p = this?.menuData ?? [], b = this?.sidebarMenuItemAppearance ?? "subtle", S = this?.sidebarMenuItemSelectionAppearance ?? "default", M = this?.selectedMenuItemSectionIdState ?? void 0, C = this?.selectedMenuItemIdState ?? void 0, r = this.hasMenu(), f = k();
|
|
80
|
-
return n(x, { key: "
|
|
80
|
+
return n(x, { key: "9f2148b754560340d15620c92643bd8ef255d9b4", id: e, class: f }, n(L, { key: "80ad91175982dc89fb5d4ea22ed22c85b14517e2", id: e, appearance: t, selectionAppearance: a, leadingLabel: i, leadingSupportingText: l, trailingLabel: c, trailingSupportingText: m, selected: o, disabled: u, leadingIcon: n("slot", { name: "sidebarItemLeadingIcon" }), leadingAccessory: n("slot", { name: "sidebarItemLeadingAccessory" }), trailingAccessory: n("slot", { name: "sidebarItemTrailingAccessory" }), trailingIcon: r ? n(T, { name: "chevron-right", size: "md", appearance: "regular", alt: "" }) : void 0, onPressSidebarMenuItem: (d) => this.onSidebarMenuItemPress({ event: d }) }), r ? n("div", { class: "gids-sidebar-item__menu-container" }, n("gids-sidebar-menu", { htmlFor: e, menuData: p, id: h, placement: g, constrainPlacements: I, sidebarMenuItemAppearance: b, sidebarMenuItemSelectionAppearance: S, selectedSectionId: M, selectedItemId: C, onSidebarMenuChange: (d) => this.onChangeSidebarMenu({ event: d }) })) : void 0);
|
|
81
81
|
}
|
|
82
82
|
get hostElement() {
|
|
83
83
|
return this;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { q as b, L as x, u as _, D as d, P as w } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
2
|
import { d as M } from "./p-iQRr_fAH-Dvv1n8QD.js";
|
|
3
|
-
import { i as C,
|
|
4
|
-
import { i as z } from "./p-
|
|
3
|
+
import { i as C, t as S } from "./p-BBlUduEr-CWdvgBS6.js";
|
|
4
|
+
import { i as z } from "./p-B3AB3GQ0-DdgNC9FJ.js";
|
|
5
5
|
import { c as E } from "./clsx-OuTLNxxd.js";
|
|
6
6
|
const T = ({ selected: e, appearance: i, selectionAppearance: a, size: n, expanded: o, borderRadius: t, applyShadow: r }, g) => E("gids-header-navigation-item", {
|
|
7
7
|
// Appearances
|
|
@@ -121,7 +121,7 @@ const T = ({ selected: e, appearance: i, selectionAppearance: a, size: n, expand
|
|
|
121
121
|
}
|
|
122
122
|
render() {
|
|
123
123
|
const e = this?.isSelected ?? !1, i = this?.appearance ?? "default", a = this?.selectionAppearance ?? "default", n = this.label, o = this?.size ?? "sm", t = this.id, r = this.menuId, g = this?.menuItems ?? [], c = this?.isMenuExpanded ?? !1, m = this?.borderRadius ?? "none", h = this?.applyShadow ?? !1, s = this.hasMenu(), f = R({ selected: e, appearance: i, selectionAppearance: a, size: o, expanded: c && s, applyShadow: h, borderRadius: m });
|
|
124
|
-
return d(w, { key: "
|
|
124
|
+
return d(w, { key: "23b3e666fbb62f46250e2c47f03873edf5e804cd", id: t, "header-nav-item-appearance": i, "header-nav-item-size": o, "header-nav-item-selection-appearance": a, "header-nav-item-selected": e ? "true" : "false", class: f, onClick: this.onItemClick, "header-nav-item-expanded": c }, d("slot", { key: "e4e8d615a81c80766e6f59e7d61697c3f33c082e", name: "headerNavItemLeadingIcon" }), n && n !== "" ? d("div", { class: "gids-header-navigation-item__label" }, d("span", null, n)) : void 0, s ? d("div", { class: "gids-header-navigation-item__chevron" }, d(M, { name: "chevron-down", size: o !== "xl" ? o : "lg" })) : void 0, s && c ? d("div", { class: "gids-header-navigation-item__dropdown-menu-container", id: r, role: "headerNavigationPickerbox", onClick: (u) => u.stopPropagation() }, d(C, { type: "default" }, g.map(((u, p) => {
|
|
125
125
|
const I = u?.data ?? [];
|
|
126
126
|
return d(S, { key: `${p + 1}`, sectionLabel: u?.sectionLabel ?? "" }, I.map(((l, v) => {
|
|
127
127
|
const y = this.isMenuItemSelected(l.id);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { q as o, L as r, u as
|
|
2
|
-
import { i as
|
|
3
|
-
import { i as u } from "./p-
|
|
1
|
+
import { q as o, L as r, u as h, D as l } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
|
+
import { i as c, t as m } from "./p-BBlUduEr-CWdvgBS6.js";
|
|
3
|
+
import { i as u } from "./p-B3AB3GQ0-DdgNC9FJ.js";
|
|
4
4
|
import { c as p } from "./clsx-OuTLNxxd.js";
|
|
5
5
|
const f = (t) => p("gids-calendar-month-list", t), I = () => {
|
|
6
6
|
const t = [], s = new Intl.DateTimeFormat("en-US", { month: "long" });
|
|
@@ -17,11 +17,11 @@ const f = (t) => p("gids-calendar-month-list", t), I = () => {
|
|
|
17
17
|
__proto__: null,
|
|
18
18
|
getGidsCalendarMonthListClassNames: f,
|
|
19
19
|
getGidsCalendarMonthListMonths: I
|
|
20
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsCalendarMonthListClassNames: g, getGidsCalendarMonthListMonths: M } = b, C = r(class extends
|
|
20
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsCalendarMonthListClassNames: g, getGidsCalendarMonthListMonths: M } = b, C = r(class extends h {
|
|
21
21
|
constructor(t) {
|
|
22
22
|
super(), t !== !1 && this.__registerHost(), this.type = "default", this.disabledIndices = [], this.divider = !1, this.hasItemListener = !1, this.suppressNextMenuClickSelection = !1, this.handleCalendarMenuItemSelect = (s) => {
|
|
23
|
-
const { title: e, value: n, selectedIndex: i, disabled:
|
|
24
|
-
|
|
23
|
+
const { title: e, value: n, selectedIndex: i, disabled: d, id: a } = s.detail;
|
|
24
|
+
d || typeof e != "string" || (this.suppressNextMenuClickSelection = !0, queueMicrotask((() => {
|
|
25
25
|
this.suppressNextMenuClickSelection = !1;
|
|
26
26
|
})), this.applySelection({ id: a, month: e, monthInNumber: Number(n), disabled: !1, selectedIndex: i }));
|
|
27
27
|
}, this.handleMenuClick = (s) => {
|
|
@@ -29,7 +29,7 @@ const f = (t) => p("gids-calendar-month-list", t), I = () => {
|
|
|
29
29
|
const e = s?.detail;
|
|
30
30
|
this.applySelection({ id: e.id, monthInNumber: Number(e.value), month: e.title, disabled: !1, selectedIndex: e.selectedIndex });
|
|
31
31
|
}, this.monthsList = () => M(), this.getSelectedItem = () => {
|
|
32
|
-
const s = this.selectedMonthNumber, e = this.monthsList(), n = e.findIndex(((
|
|
32
|
+
const s = this.selectedMonthNumber, e = this.monthsList(), n = e.findIndex(((d) => d.value === s));
|
|
33
33
|
let i;
|
|
34
34
|
return n != null && n !== -1 && (i = e[n]), { foundItem: i, foundIndex: n };
|
|
35
35
|
}, this.isItemSelected = (s) => {
|
|
@@ -60,9 +60,9 @@ const f = (t) => p("gids-calendar-month-list", t), I = () => {
|
|
|
60
60
|
}
|
|
61
61
|
render() {
|
|
62
62
|
const t = g();
|
|
63
|
-
return
|
|
63
|
+
return l("div", { key: "59a191fefecff9ac070690ecb243ebd70a306390", class: t }, l(c, { key: "a90a1353aa7d094a3ca401e5932ea057d98ca3d8", type: this.type, supportingText: this.noOptionsText }, l(m, { key: "0bd03ee45c2392f3bd923d93a7d8119871d22bf9", sectionLabel: "Months" }, this.monthsList().map(((s, e) => {
|
|
64
64
|
const n = `${e + 1}`, i = this.disabledIndices?.includes(e);
|
|
65
|
-
return
|
|
65
|
+
return l(u, { title: s.title, value: `${s.value}`, key: `${e.toString()}`, index: e, id: n, selected: this.isItemSelected(e), onPressDropdownItem: this.handleMenuClick, disabled: i, divider: this.divider, isPlaceholderItem: !1 });
|
|
66
66
|
})))));
|
|
67
67
|
}
|
|
68
68
|
get hostElement() {
|
|
@@ -76,6 +76,6 @@ function L() {
|
|
|
76
76
|
}
|
|
77
77
|
L();
|
|
78
78
|
export {
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
L as c,
|
|
80
|
+
C as l
|
|
81
81
|
};
|
|
@@ -54,9 +54,9 @@ const c = (e) => e.type === "hidden", f = (e) => {
|
|
|
54
54
|
this._el.removeEventListener("click", this._focusInput);
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
|
-
return a(d, { key: "
|
|
57
|
+
return a(d, { key: "571ed3a5815c1cef82a0115634d4d181a73e0515" }, a("slot", { key: "50188a10937675d31a93e46070fd2ce7709a0763", name: "leadingIcon" }), this.leadingLabel && a("span", { key: "37aa8f33f1490ef0ca77f6ae7fabc0abb88ad749", class: "gids-input__label" }, this.leadingLabel), a("slot", { key: "d1482ff4d6b9f2a0da0cedc45a738eeae6ee969d", name: "leadingAccessory" }), a("input", { key: "ba004d40d2feee851187e3c7d778b423976817d6", ...this.inputProps, ref: (e) => {
|
|
58
58
|
this.#t = e, this.#e.value !== void 0 && (this.#t.value = this.#e.value, delete this.#e.value), this.#e.defaultValue !== void 0 && (this.#t.defaultValue = this.#e.defaultValue, delete this.#e.defaultValue);
|
|
59
|
-
}, class: "gids-input__control", name: this.name, disabled: this.disabled, readOnly: this.readOnly, required: this.required, onFocus: this._handleInputFocusAndBlur, onBlur: this._handleInputFocusAndBlur }), a("slot", { key: "
|
|
59
|
+
}, class: "gids-input__control", name: this.name, disabled: this.disabled, readOnly: this.readOnly, required: this.required, onFocus: this._handleInputFocusAndBlur, onBlur: this._handleInputFocusAndBlur }), a("slot", { key: "b74721099ecf423895c306e63d42d6ae5ddbf8d2", name: "trailingAccessory" }), this.trailingLabel && a("span", { key: "2ffdc81450931d653f76948961a4f55559df9010", class: "gids-input__label" }, this.trailingLabel), a("slot", { key: "806cae677da57a02924ff0d0166a2bf16c5a9e15", name: "trailingIcon" }), this.status === "incomplete" && a(n, { key: "a238cdac45fc718976cce8ca022e32a946d9fe1a", name: "warning", appearance: "filled", class: "gids-input__warning-icon" }), this.status === "complete" && a(n, { key: "2ce2f8354b5f1c1d2d2376fae1b672e6361cd504", name: "positive", appearance: "filled", class: "gids-input__positive-icon" }), this.loading && a(r, { key: "1d93199143a67f7a1a0b1e9a96dc698974248a61", size: "md", indeterminate: !0 }));
|
|
60
60
|
}
|
|
61
61
|
get _el() {
|
|
62
62
|
return this;
|
|
@@ -69,6 +69,6 @@ function h() {
|
|
|
69
69
|
}
|
|
70
70
|
h();
|
|
71
71
|
export {
|
|
72
|
-
o as
|
|
72
|
+
o as c,
|
|
73
73
|
h as r
|
|
74
74
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { q as b, L as A, u as D, D as a } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
2
|
import { p as L } from "./p-C-Lpfqcg-DIuBhXzX.js";
|
|
3
|
-
import { _ as E } from "./p-
|
|
4
|
-
import { o as M } from "./p-
|
|
5
|
-
import { l as I } from "./p-
|
|
3
|
+
import { _ as E } from "./p-DLX-l0-L-gumz4bOG.js";
|
|
4
|
+
import { o as M } from "./p-x1tVOUSt-CdB8Szfe.js";
|
|
5
|
+
import { l as I } from "./p-DYKcsBzA-BcupA9sw.js";
|
|
6
6
|
import { c as $ } from "./clsx-OuTLNxxd.js";
|
|
7
7
|
const P = ({ breakpoint: e }, l) => $("gids-bar-chart", {
|
|
8
8
|
"gids-bar-chart--breakpoint-mobile": e === "mobile"
|
|
@@ -3,7 +3,7 @@ import { c as p } from "./p-CTri3IsV-B1u0rrXF.js";
|
|
|
3
3
|
import { o as y } from "./p-CPgZgSBN-DsTNcUR7.js";
|
|
4
4
|
const E = m(class extends h {
|
|
5
5
|
constructor(e) {
|
|
6
|
-
super(), e !== !1 && this.__registerHost(), this.__attachShadow(), this.placement = "bottom", this.constrainPlacements = ["bottom", "top"], this.previouslyFocusedElement = null, this.focusableElements = [], this.handleToggleEvent = (t) => {
|
|
6
|
+
super(), e !== !1 && this.__registerHost(), this.__attachShadow(), this.placement = "bottom", this.constrainPlacements = ["bottom", "top"], this.matchReferenceWidth = !0, this.previouslyFocusedElement = null, this.focusableElements = [], this.handleToggleEvent = (t) => {
|
|
7
7
|
t.stopPropagation();
|
|
8
8
|
const l = this.floatingElementManager.isVisible();
|
|
9
9
|
this.floatingElementManager.toggle(), !l && this.floatingElementManager.isVisible() ? this.onFlyoutPanelShow() : l && !this.floatingElementManager.isVisible() && this.onFlyoutPanelHide();
|
|
@@ -14,7 +14,7 @@ const E = m(class extends h {
|
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
componentDidLoad() {
|
|
17
|
-
this.floatingElementManager = new p(this._el, { htmlFor: this.htmlFor, placement: this.placement, showWithoutDelay: !0, floatingElementSelector: "#flyout-panel", showArrow: !1, visibilityClass: "gids-flyout-panel--visible", elementType: y.FLYOUT_PANEL, constrainPlacements: this?.constrainPlacements ?? ["bottom", "top"], constrainToViewportHeight: !0, getAnchorElementFromSlot: (e) => e.querySelector('slot[name="anchor"]')?.assignedElements()[0] || null }), this.floatingElementManager.initialize(), this.setupEventListeners();
|
|
17
|
+
this.floatingElementManager = new p(this._el, { htmlFor: this.htmlFor, placement: this.placement, showWithoutDelay: !0, floatingElementSelector: "#flyout-panel", showArrow: !1, visibilityClass: "gids-flyout-panel--visible", elementType: y.FLYOUT_PANEL, constrainPlacements: this?.constrainPlacements ?? ["bottom", "top"], constrainToViewportHeight: !0, matchReferenceWidth: this?.matchReferenceWidth ?? !0, getAnchorElementFromSlot: (e) => e.querySelector('slot[name="anchor"]')?.assignedElements()[0] || null }), this.floatingElementManager.initialize(), this.setupEventListeners();
|
|
18
18
|
}
|
|
19
19
|
setupEventListeners() {
|
|
20
20
|
const e = this.floatingElementManager.getAnchorElement();
|
|
@@ -31,14 +31,14 @@ const E = m(class extends h {
|
|
|
31
31
|
updateFocusableElements() {
|
|
32
32
|
const e = this._el.shadowRoot?.querySelector("#flyout-panel");
|
|
33
33
|
if (!e) return;
|
|
34
|
-
const t = [], l =
|
|
34
|
+
const t = [], l = d(e);
|
|
35
35
|
t.push(...l);
|
|
36
36
|
const n = this._el.shadowRoot?.querySelector("slot:not([name])");
|
|
37
37
|
n && n.assignedElements({ flatten: !0 }).forEach(((a) => {
|
|
38
|
-
const
|
|
39
|
-
t.push(...
|
|
40
|
-
})), this.focusableElements = t.sort(((a,
|
|
41
|
-
const
|
|
38
|
+
const i = d(a);
|
|
39
|
+
t.push(...i);
|
|
40
|
+
})), this.focusableElements = t.sort(((a, i) => {
|
|
41
|
+
const o = a.compareDocumentPosition(i), u = !!(o & Node.DOCUMENT_POSITION_FOLLOWING), g = !!(o & Node.DOCUMENT_POSITION_PRECEDING);
|
|
42
42
|
return u ? -1 : g ? 1 : 0;
|
|
43
43
|
}));
|
|
44
44
|
}
|
|
@@ -47,8 +47,8 @@ const E = m(class extends h {
|
|
|
47
47
|
const t = this.focusableElements[0], l = this.focusableElements[this.focusableElements.length - 1];
|
|
48
48
|
let n = document.activeElement;
|
|
49
49
|
if (n === this._el) {
|
|
50
|
-
const
|
|
51
|
-
|
|
50
|
+
const i = this._el.shadowRoot?.activeElement;
|
|
51
|
+
i !== null && (n = i);
|
|
52
52
|
}
|
|
53
53
|
const a = this.focusableElements.indexOf(n) !== -1;
|
|
54
54
|
e.shiftKey ? n !== t && a || (e.preventDefault(), l && l.focus()) : n !== l && a || (e.preventDefault(), t && t.focus());
|
|
@@ -66,14 +66,26 @@ const E = m(class extends h {
|
|
|
66
66
|
const e = this.floatingElementManager?.getAnchorElement();
|
|
67
67
|
e && e.removeEventListener("click", this.handleToggleEvent), document.removeEventListener("click", this.handleDocumentClick), document.removeEventListener("keydown", this.handleKeyDown);
|
|
68
68
|
}
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
flyoutPanelVisible() {
|
|
70
|
+
return !!this.floatingElementManager.isVisible();
|
|
71
71
|
}
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
openPanel(e) {
|
|
73
|
+
this.floatingElementManager.isVisible() || this.handleToggleEvent(e);
|
|
74
|
+
}
|
|
75
|
+
closePanel(e) {
|
|
76
|
+
this.floatingElementManager.isVisible() && this.handleToggleEvent(e);
|
|
77
|
+
}
|
|
78
|
+
async isFlyoutPanelVisible() {
|
|
79
|
+
return this.flyoutPanelVisible();
|
|
80
|
+
}
|
|
81
|
+
async openFlyoutPanel(e) {
|
|
82
|
+
this.openPanel(e);
|
|
83
|
+
}
|
|
84
|
+
async closeFlyoutPanel(e) {
|
|
85
|
+
this.closePanel(e);
|
|
74
86
|
}
|
|
75
87
|
render() {
|
|
76
|
-
return s(f, { key: "
|
|
88
|
+
return s(f, { key: "5c1652a168d27045c28c7cae5d56fe3c3b43457f" }, s("slot", { key: "dbadbb0e93053a04d647fd7af31c2363813c46c9", name: "anchor" }), s("div", { key: "ca341b9babdf1c8d5862e0517814892743f27a07", id: "flyout-panel", part: "flyout-panel", role: "dialog", "aria-modal": "true", tabindex: "-1" }, s("div", { key: "b7bd390c78988bd35673c6d7aee4fb122bc0d9e5" }, s("slot", { key: "c989d0ac0497f350d2403aa075c6bc46c9821f2a" }))));
|
|
77
89
|
}
|
|
78
90
|
disconnectedCallback() {
|
|
79
91
|
this.cleanupEventListeners(), this.floatingElementManager?.destroy();
|
|
@@ -87,7 +99,7 @@ const E = m(class extends h {
|
|
|
87
99
|
static get style() {
|
|
88
100
|
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}";
|
|
89
101
|
}
|
|
90
|
-
}, [257, "gids-flyout-panel", { htmlFor: [513, "for"], placement: [513], constrainPlacements: [16], openFlyoutPanel: [64], closeFlyoutPanel: [64] }, void 0, { placement: [{ placementChanged: 0 }], constrainPlacements: [{ constrainPlacementsChanged: 0 }], htmlFor: [{ htmlForChanged: 0 }] }]),
|
|
102
|
+
}, [257, "gids-flyout-panel", { htmlFor: [513, "for"], placement: [513], constrainPlacements: [16], matchReferenceWidth: [516, "match-reference-width"], isFlyoutPanelVisible: [64], openFlyoutPanel: [64], closeFlyoutPanel: [64] }, void 0, { placement: [{ placementChanged: 0 }], constrainPlacements: [{ constrainPlacementsChanged: 0 }], htmlFor: [{ htmlForChanged: 0 }] }]), c = (e) => {
|
|
91
103
|
if (!(e instanceof h) || e.tabIndex === -1 || e.hasAttribute("disabled")) return !1;
|
|
92
104
|
const t = getComputedStyle(e);
|
|
93
105
|
if (t.display === "none" || t.visibility === "hidden" || e.hidden) return !1;
|
|
@@ -99,9 +111,9 @@ const E = m(class extends h {
|
|
|
99
111
|
} catch {
|
|
100
112
|
return !1;
|
|
101
113
|
}
|
|
102
|
-
},
|
|
103
|
-
const t = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (a) =>
|
|
104
|
-
|
|
114
|
+
}, d = (e) => {
|
|
115
|
+
const t = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (a) => c(a) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP }), l = [];
|
|
116
|
+
c(e) && l.push(e);
|
|
105
117
|
let n = t.nextNode();
|
|
106
118
|
for (; n !== null; ) l.push(n), n = t.nextNode();
|
|
107
119
|
return l;
|