@ganpatiinfo/gids-core-web 21.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 +29 -29
- 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-carousel.js +1 -1
- 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 +8 -8
- 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 +9 -9
- 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 +48 -61
- 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 +2 -2
- 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 +3 -3
- package/dist-bundled/es/gids-password-field.js +21 -21
- 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 +11 -11
- 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 +13 -13
- 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 +11 -11
- 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 +10 -10
- 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-WvEFe7I_.js → p-B18yNcA0-BaaXQYM_.js} +2 -2
- package/dist-bundled/es/{p-kWyyLyT3-DhHcKhR9.js → p-B2YjHZsu-DxdrSYcE.js} +30 -30
- package/dist-bundled/es/{p-DLRj-mUX-B_ACFGx6.js → p-B3AB3GQ0-DdgNC9FJ.js} +5 -5
- package/dist-bundled/es/{p-Ds5IzXj3-BC_F0-JJ.js → p-B4d07GWP-DLyo7HQ9.js} +3 -3
- package/dist-bundled/es/{p-CAjDiWIc-BieYBjHk.js → p-BBlUduEr-CWdvgBS6.js} +7 -7
- package/dist-bundled/es/{p-BAqWcL0K-DRjKDzoa.js → p-BNW2xgxF-DWKLliyn.js} +6 -6
- package/dist-bundled/es/p-BcXumkjZ-zNpzLmjI.js +240 -0
- package/dist-bundled/es/{p-DKSnGphd-EpxzqjUA.js → p-C88Z_F_m-wMA27lx_.js} +4 -4
- package/dist-bundled/es/{p-bfWlRsx_-B9hzkHIt.js → p-CKj2Ru6e-B-Nk5B_P.js} +4 -4
- package/dist-bundled/es/{p-B_St7yaX-Dq9UwiaA.js → p-COsSHfdc-DfDYoLSS.js} +4 -4
- package/dist-bundled/es/{p-DrxfD2yZ-Juydw__6.js → p-CSXuAs_X-Hw6bT-8r.js} +11 -11
- package/dist-bundled/es/{p-DzOOjiNH-Wm7KbI3O.js → p-CZgH5rZs-Clk0qfHN.js} +4 -4
- package/dist-bundled/es/{p-BIxBMTG9-Bs6G0Wvv.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-CV1-78HB-DGkn3SPO.js → p-D2VR17v2-C0k_l_CT.js} +1 -1
- package/dist-bundled/es/{p-DMxvWIj1-DPw-ITMY.js → p-DKe6orSY-D1kYOeuX.js} +6 -6
- package/dist-bundled/es/{p-D0RJMGGj-DSjGfUhB.js → p-DLX-l0-L-gumz4bOG.js} +2 -2
- package/dist-bundled/es/{p-BQT5yy5L-DhdgFXTM.js → p-DOiDD7cS-j1RR9K9r.js} +9 -5
- package/dist-bundled/es/{p-B2flLE0s-UXdlvRVr.js → p-DXlBK8TS-DazOvEm2.js} +2 -2
- package/dist-bundled/es/{p-E13ycS5K-D-yK6pqz.js → p-DYKcsBzA-BcupA9sw.js} +7 -7
- package/dist-bundled/es/{p-DZ1ZcTMe-tnPOECry.js → p-DZ1ZcTMe-W8kofPko.js} +1 -1
- package/dist-bundled/es/{p--kh67-_Z-BBhYy4ZX.js → p-D_mszaeq-ndcXN34-.js} +4 -4
- package/dist-bundled/es/{p-Do_VlNHg-_g7lcvwR.js → p-DdJKIFk0-Co3FvR3K.js} +2 -2
- 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-lPgJqpPI.js → p-gK9DvcL8-Chw-ya2Q.js} +2 -2
- package/dist-bundled/es/{p-_W77iniK-DZ9pVDuI.js → p-iEUyQs9t-BUXXVuwz.js} +2 -2
- package/dist-bundled/es/p-iQRr_fAH-Dvv1n8QD.js +1650 -0
- package/dist-bundled/es/{p-BCbovLBE-DfkhIEts.js → p-jtpLLxuw-BlEPhjmU.js} +2 -2
- package/dist-bundled/es/p-lvArnlBV-BxkIAxHG.js +86 -0
- package/dist-bundled/es/{p-TfH966_e-tyxLyzL3.js → p-vz4tzbld-BYJRjHJw.js} +6 -6
- package/dist-bundled/es/{p-DnRuhvRw-Beh0bANh.js → p-x1tVOUSt-CdB8Szfe.js} +6 -6
- 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 +8 -8
- package/dist-bundled/umd/gids-bento-card.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-header-panel.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar-month-list.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar-picker.umd.js +5 -0
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar.umd.js +2 -2
- package/dist-bundled/umd/gids-carousel.umd.js +2 -2
- package/dist-bundled/umd/gids-chart-legend-item.umd.js +2 -2
- package/dist-bundled/umd/gids-chart-legend.umd.js +1 -1
- package/dist-bundled/umd/gids-chart.umd.js +5 -5
- package/dist-bundled/umd/gids-chevron-button.umd.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist-bundled/umd/gids-header-navigation-item.umd.js +2 -2
- package/dist-bundled/umd/gids-header-navigation.umd.js +2 -2
- package/dist-bundled/umd/gids-icon.umd.js +2 -2
- package/dist-bundled/umd/gids-input.umd.js +2 -2
- package/dist-bundled/umd/gids-line-chart.umd.js +2 -2
- package/dist-bundled/umd/gids-md-table.umd.js +2 -2
- 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 +2 -2
- package/dist-bundled/umd/gids-password-field.umd.js +2 -2
- 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 +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 +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 +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/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-iQRr_fAH-ClfWEu03.js +0 -198
- package/dist-bundled/es/p-tEbUT3n3-CWq8ErgN.js +0 -244
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { L as y, u as
|
|
1
|
+
import { L as y, u as b, D as a, P as _, q as p } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
2
|
import { p as T } from "./p-C-Lpfqcg-DIuBhXzX.js";
|
|
3
|
-
import { b as L, _ as x } from "./p-
|
|
3
|
+
import { b as L, _ as x } from "./p-D2VR17v2-C0k_l_CT.js";
|
|
4
4
|
import { r as C } from "./p-BRNvHMdK-CqGtfAsn.js";
|
|
5
|
-
import { i as f } from "./p-DZ1ZcTMe-
|
|
5
|
+
import { i as f } from "./p-DZ1ZcTMe-W8kofPko.js";
|
|
6
6
|
import { o as d } from "./p-Dg_WeHpV-DehzGL6g.js";
|
|
7
|
-
import { d as g } from "./p-iQRr_fAH-
|
|
7
|
+
import { d as g } from "./p-iQRr_fAH-Dvv1n8QD.js";
|
|
8
8
|
import { c } from "./clsx-OuTLNxxd.js";
|
|
9
9
|
const H = ({ type: t }, e) => c("gids-menu-group", {
|
|
10
10
|
"gids-menu-group--default": t === "default",
|
|
@@ -20,7 +20,7 @@ const H = ({ type: t }, e) => c("gids-menu-group", {
|
|
|
20
20
|
}, Symbol.toStringTag, { value: "Module" })), k = (t) => c("gids-transfer-list", t), w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21
21
|
__proto__: null,
|
|
22
22
|
getGidsTransferListClassNames: k
|
|
23
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsMenuGroupClassNames: O } = A, I = ({ type: t = "no-options", supportingText: e = "No options", class: s, ...n }, l) => a("div", { class: O({ type: t }, s), ...n }, t === "loading" ? a(T, { indeterminate: !0, size: "md" }) : null, t === "no-options" ? a("span", null, e) : null, t === "default" && l != null ? l : null), { getGidsMenuClassNames: z } = R, S = ({ heading: t, supportingText: e, level: s, supportingTextTypography: n, isHeaderDividerVisible: l = !1, class: i, ...r }, h) => a("div", { class: z(i), ...r }, t != null && t !== "" || e != null && e !== "" ? a(x, { heading: t, supportingText: e, level: s, supportingTextTypography: n ?? "eyebrow-medium" }) : null, l ? a("div", { class: "gids-menu__header-divider" }, a(C, { orientation: "horizontal" })) : void 0, h != null ? a("div", { class: "gids-menu__children" }, h) : null), { getGidsTransferListClassNames: D } = w, u = y(class extends
|
|
23
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsMenuGroupClassNames: O } = A, I = ({ type: t = "no-options", supportingText: e = "No options", class: s, ...n }, l) => a("div", { class: O({ type: t }, s), ...n }, t === "loading" ? a(T, { indeterminate: !0, size: "md" }) : null, t === "no-options" ? a("span", null, e) : null, t === "default" && l != null ? l : null), { getGidsMenuClassNames: z } = R, S = ({ heading: t, supportingText: e, level: s, supportingTextTypography: n, isHeaderDividerVisible: l = !1, class: i, ...r }, h) => a("div", { class: z(i), ...r }, t != null && t !== "" || e != null && e !== "" ? a(x, { heading: t, supportingText: e, level: s, supportingTextTypography: n ?? "eyebrow-medium" }) : null, l ? a("div", { class: "gids-menu__header-divider" }, a(C, { orientation: "horizontal" })) : void 0, h != null ? a("div", { class: "gids-menu__children" }, h) : null), { getGidsTransferListClassNames: D } = w, u = y(class extends b {
|
|
24
24
|
constructor(t) {
|
|
25
25
|
super(), t !== !1 && this.__registerHost(), this.leftListHeading = "Choices", this.rightListHeading = "Choosen", this.moveAllVisible = !1, this.transferListType = "basic", this.leftListItems = [], this.rightListItems = [], this.listsMaxHeight = "200px", this.leftListItemsState = [], this.rightListItemsState = [], this.tempLeftListItemsState = [], this.tempRightListItemsState = [];
|
|
26
26
|
}
|
|
@@ -164,10 +164,10 @@ const H = ({ type: t }, e) => c("gids-menu-group", {
|
|
|
164
164
|
}
|
|
165
165
|
render() {
|
|
166
166
|
const t = D(), e = this?.leftListItemsState ?? [], s = this?.rightListItemsState ?? [], n = this.listsMaxHeight, l = this?.transferListType ?? "basic";
|
|
167
|
-
return a(
|
|
167
|
+
return a(_, { key: "6826edf610868b22fa769d4de0f0ce1bb42b032a", class: t }, a("div", { key: "f3e7ed446a1f1a1f4a66a4fca2ea2a734f266b90", class: "gids-transfer-list__left-container" }, a(I, { key: "9dc5e0d7aacfcd946a5a68cabd0b59e1b67757e3", type: e.length > 0 ? "default" : "no-options" }, a(S, { key: "4d88a61bf4aa13ae9e6faaccfad010922f2a21bd", heading: this.renderListHeading("left"), style: { "--gidsMenuChildren-max-height": n }, isHeaderDividerVisible: l !== "basic" }, e.map(((i, r) => {
|
|
168
168
|
const h = i?.id ? i.id : "" + (r + 1), m = this.isItemSelected({ id: h, listSide: "left" });
|
|
169
169
|
return a(L, { id: "" + h, index: r, leadingAccessory: a(f, { checked: m }), selected: m, onPressListItem: (o) => this.onPressingListItem({ event: o, pressedIndex: r, listSide: "left" }) }, i?.listLabel);
|
|
170
|
-
}))))), a("div", { key: "
|
|
170
|
+
}))))), a("div", { key: "746d754b86fe794fff358b1f79d4610a6a5a9d0e", class: "gids-transfer-list__middle-container" }, a(d, { key: "b0fb6acbd3f8fe24bd8704975416e4f17b218c5f", leadingIcon: a(g, { name: "forward" }), appearance: "default", size: "sm", width: "full", disabled: this.movementButtonDisabled({ listSide: "left", movementType: "move-all" }), onClick: (i) => this.onItemsMovement({ event: i, listSide: "left", movementType: "move-all" }) }), a(d, { key: "f35faf5c97f43f11f11bbd8d460a4488cdb0d61f", leadingIcon: a(g, { name: "chevron-right" }), appearance: "default", size: "sm", width: "full", disabled: this.movementButtonDisabled({ listSide: "left", movementType: "move-single" }), onClick: (i) => this.onItemsMovement({ event: i, listSide: "left", movementType: "move-single" }) }), a(d, { key: "b3887d6815d5af03ca0dc58b36e0852e08d5c37f", leadingIcon: a(g, { name: "chevron-left" }), appearance: "default", size: "sm", width: "full", disabled: this.movementButtonDisabled({ listSide: "right", movementType: "move-single" }), onClick: (i) => this.onItemsMovement({ event: i, listSide: "right", movementType: "move-single" }) }), a(d, { key: "748f919c47be306fb4d92b290da75c2167bea9b5", leadingIcon: a(g, { name: "backward" }), appearance: "default", size: "sm", width: "full", disabled: this.movementButtonDisabled({ listSide: "right", movementType: "move-all" }), onClick: (i) => this.onItemsMovement({ event: i, listSide: "right", movementType: "move-all" }) })), a("div", { key: "47605e0f6132e2fd75bc8de226057508e2fdb960", class: "gids-transfer-list__right-container" }, a(I, { key: "625a4c912e56168c749cea12097862ef267d080f", type: s.length > 0 ? "default" : "no-options" }, a(S, { key: "bfc5bcb19835937ade88b5be82879dfc6dfd66f4", heading: this.renderListHeading("right"), style: { "--gidsMenuChildren-max-height": n }, isHeaderDividerVisible: l !== "basic" }, s.map(((i, r) => {
|
|
171
171
|
const h = i?.id ? i.id : "" + (r + 1), m = this.isItemSelected({ id: h, listSide: "right" });
|
|
172
172
|
return a(L, { id: "" + h, index: r, selected: m, leadingAccessory: a(f, { checked: m }), onPressListItem: (o) => this.onPressingListItem({ event: o, pressedIndex: r, listSide: "right" }) }, i?.listLabel);
|
|
173
173
|
}))))));
|
|
@@ -188,8 +188,8 @@ function v() {
|
|
|
188
188
|
}));
|
|
189
189
|
}
|
|
190
190
|
v();
|
|
191
|
-
const
|
|
191
|
+
const $ = u, U = v;
|
|
192
192
|
export {
|
|
193
|
-
|
|
194
|
-
|
|
193
|
+
$ as GidsTransferList,
|
|
194
|
+
U as defineCustomElement
|
|
195
195
|
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { q as d, L as p, u as g, D as a, P as M } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
|
+
import { i as b, t as f } from "./p-BBlUduEr-CWdvgBS6.js";
|
|
3
|
+
import { i as C } from "./p-B3AB3GQ0-DdgNC9FJ.js";
|
|
4
|
+
import { m as P } from "./p-BcXumkjZ-zNpzLmjI.js";
|
|
5
|
+
import { h as y } from "./p-CxfmNDsm-JHseL2it.js";
|
|
6
|
+
import { r as k } from "./p-CZgH5rZs-Clk0qfHN.js";
|
|
7
|
+
import { e as l, a as c, k as I } from "./GidsDatePickerSharedUtils-Dh5qFlYA.js";
|
|
8
|
+
import { c as D } from "./clsx-OuTLNxxd.js";
|
|
9
|
+
const v = (e) => D("gids-month-dropdown-picker", e), w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10
|
+
__proto__: null,
|
|
11
|
+
getGidsMonthDropdownPickerClassNames: v
|
|
12
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsMonthDropdownPickerClassNames: S } = w, O = p(class extends g {
|
|
13
|
+
constructor(e) {
|
|
14
|
+
super(), e !== !1 && this.__registerHost(), this.appearance = "default", this.menuPlacement = "bottom", this.menuConstrainPlacements = ["bottom", "top"], this.startMonth = Number(l), this.endMonth = Number(c), this.hasLeadingIcon = !1, this.monthsMenuData = [], this.selectedMonthObj = void 0, this.handleMonthSelectionChange = ({ event: t, sectionIndex: s, itemIndex: h }) => {
|
|
15
|
+
const n = t?.detail, o = { originalEvent: t, id: n.id, month: n?.title ? Number(n.title) : void 0, sectionIndex: s, itemIndex: h, selected: !0 };
|
|
16
|
+
this.selectedMonthObj = o, this.onMonthChange && this.onMonthChange(o);
|
|
17
|
+
}, this.feedMonthsDataState = () => {
|
|
18
|
+
const t = this?.startMonth ?? l, s = this?.endMonth ?? c;
|
|
19
|
+
this.monthsMenuData = I({ startMonth: String(t), endMonth: String(s) });
|
|
20
|
+
}, this.isMonthSelected = (t) => t?.id === this?.selectedMonthObj?.id, this.syncMonthDropdownPickerValue = () => this?.selectedMonthObj?.month ? String(this.selectedMonthObj.month) : this?.value;
|
|
21
|
+
}
|
|
22
|
+
handleInteractivityChange(e) {
|
|
23
|
+
this.disabled = e, this.readOnly = e;
|
|
24
|
+
}
|
|
25
|
+
menuPlacementChanged(e) {
|
|
26
|
+
this.menuPlacement = e;
|
|
27
|
+
}
|
|
28
|
+
menuConstrainPlacementsChanged(e) {
|
|
29
|
+
this.menuConstrainPlacements = e;
|
|
30
|
+
}
|
|
31
|
+
startMonthChanged(e) {
|
|
32
|
+
this.startMonth = e, this.feedMonthsDataState();
|
|
33
|
+
}
|
|
34
|
+
endMonthChanged(e) {
|
|
35
|
+
this.endMonth = e, this.feedMonthsDataState();
|
|
36
|
+
}
|
|
37
|
+
connectedCallback() {
|
|
38
|
+
}
|
|
39
|
+
componentWillLoad() {
|
|
40
|
+
this.checkSlots(), this.feedMonthsDataState();
|
|
41
|
+
}
|
|
42
|
+
componentWillUpdate() {
|
|
43
|
+
this.checkSlots();
|
|
44
|
+
}
|
|
45
|
+
checkSlots() {
|
|
46
|
+
this.hasLeadingIcon = !!this.hostElement.querySelector('[slot="leadingIconDropdown"]');
|
|
47
|
+
}
|
|
48
|
+
render() {
|
|
49
|
+
const e = S(), t = typeof this?.inputProps?.id == "string" ? this.inputProps.id : "month-input", s = { id: t, appearance: this.appearance, loading: this.loading, disabled: this.disabled, readOnly: this.readOnly, required: this.required, value: this.syncMonthDropdownPickerValue(), name: this.name, inputProps: { ...this?.inputProps ?? {}, id: t } }, h = this?.monthsMenuData ?? [];
|
|
50
|
+
return a(M, { key: "3dea0d9221b2ab185cf81c3ae5fb30252fc7e0c4", class: e }, a("gids-dropdown", { key: "53867ac7b3e182ef216be05fda4cf40530759b12", ...s, menuPlacement: this?.menuPlacement ?? "bottom", menuConstrainPlacements: this.menuConstrainPlacements ?? ["bottom", "top"] }, this.hasLeadingIcon && a("slot", { key: "db2481cdf4d25a7bb06bcd24abba068f02458822", name: "leadingIconDropdown", slot: "leadingIconDropdown" }), a(b, { key: "395783834a606cd567a27717e5af2b241d26636b", type: this.loading ? "loading" : "default" }, h.map(((n, o) => {
|
|
51
|
+
const m = n?.menuItems ?? [];
|
|
52
|
+
return a(f, { key: `${n.sectionId}_${o}`, sectionLabel: n?.sectionLabel }, m.map(((i, r) => a(C, { id: i.id, title: i?.title, value: i?.value, index: r, disabled: i?.disabled, selected: this.isMonthSelected(i), onPressDropdownItem: (u) => this.handleMonthSelectionChange({ event: u, sectionIndex: o, itemIndex: r }) }))));
|
|
53
|
+
})))));
|
|
54
|
+
}
|
|
55
|
+
get hostElement() {
|
|
56
|
+
return this;
|
|
57
|
+
}
|
|
58
|
+
static get watchers() {
|
|
59
|
+
return { disabled: [{ handleInteractivityChange: 0 }], readOnly: [{ handleInteractivityChange: 0 }], menuPlacement: [{ menuPlacementChanged: 0 }], menuConstrainPlacements: [{ menuConstrainPlacementsChanged: 0 }], startMonth: [{ startMonthChanged: 0 }], endMonth: [{ endMonthChanged: 0 }] };
|
|
60
|
+
}
|
|
61
|
+
static get style() {
|
|
62
|
+
return ".gids-month-dropdown-picker{position:relative;display:flex;flex-direction:column}";
|
|
63
|
+
}
|
|
64
|
+
}, [260, "gids-month-dropdown-picker", { appearance: [1], inputProps: [16], disabled: [516], readOnly: [516, "read-only"], loading: [516], value: [513], name: [1], onMonthChange: [16], required: [4], menuPlacement: [1, "menu-placement"], menuConstrainPlacements: [16], startMonth: [2, "start-month"], endMonth: [2, "end-month"], hasLeadingIcon: [32], monthsMenuData: [32], selectedMonthObj: [32] }, void 0, { disabled: [{ handleInteractivityChange: 0 }], readOnly: [{ handleInteractivityChange: 0 }], menuPlacement: [{ menuPlacementChanged: 0 }], menuConstrainPlacements: [{ menuConstrainPlacementsChanged: 0 }], startMonth: [{ startMonthChanged: 0 }], endMonth: [{ endMonthChanged: 0 }] }]);
|
|
65
|
+
function x() {
|
|
66
|
+
typeof customElements < "u" && ["gids-month-dropdown-picker", "gids-dropdown", "gids-flyout-panel", "gids-input"].forEach(((e) => {
|
|
67
|
+
switch (e) {
|
|
68
|
+
case "gids-month-dropdown-picker":
|
|
69
|
+
customElements.get(d(e)) || customElements.define(d(e), O);
|
|
70
|
+
break;
|
|
71
|
+
case "gids-dropdown":
|
|
72
|
+
customElements.get(d(e)) || P();
|
|
73
|
+
break;
|
|
74
|
+
case "gids-flyout-panel":
|
|
75
|
+
customElements.get(d(e)) || y();
|
|
76
|
+
break;
|
|
77
|
+
case "gids-input":
|
|
78
|
+
customElements.get(d(e)) || k();
|
|
79
|
+
}
|
|
80
|
+
}));
|
|
81
|
+
}
|
|
82
|
+
x();
|
|
83
|
+
export {
|
|
84
|
+
O as b,
|
|
85
|
+
x as f
|
|
86
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { q as i, L as o, u as n, D as l } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
2
|
import { i as g } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a as r } from "./p-DKe6orSY-D1kYOeuX.js";
|
|
4
4
|
import { c } from "./clsx-OuTLNxxd.js";
|
|
5
5
|
const h = ({ appearance: s, size: e, disabled: a }, d) => c("gids-dot", {
|
|
6
6
|
"gids-dot--disabled": a,
|
|
@@ -41,7 +41,7 @@ const h = ({ appearance: s, size: e, disabled: a }, d) => c("gids-dot", {
|
|
|
41
41
|
this.activeClasses = t({ size: this.size, appearance: this.appearance, disabled: this.disabled }, this.extraClasses);
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return l("gids-icon", { key: "
|
|
44
|
+
return l("gids-icon", { key: "2b4e03d0c47efcf545a8a8c68fcdf7dc2e3a8025", class: this.activeClasses, name: "new", alt: "", appearance: "filled" });
|
|
45
45
|
}
|
|
46
46
|
get _el() {
|
|
47
47
|
return this;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { D as i, q as k, L as w, u as A, P as q } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
2
|
import { p as R } from "./p-CcKHKwS0-Bw63tTOA.js";
|
|
3
3
|
import { o as N } from "./p-BsC3-MVH-j4fPhip5.js";
|
|
4
|
-
import { g as x, d as T } from "./p-iQRr_fAH-
|
|
5
|
-
import { i as O } from "./p-DZ1ZcTMe-
|
|
4
|
+
import { g as x, d as T } from "./p-iQRr_fAH-Dvv1n8QD.js";
|
|
5
|
+
import { i as O } from "./p-DZ1ZcTMe-W8kofPko.js";
|
|
6
6
|
import { s as y } from "./p-BkxmRN-4-DSiXCW8b.js";
|
|
7
|
-
import { h as D } from "./p-
|
|
8
|
-
import { c as
|
|
9
|
-
const
|
|
7
|
+
import { h as D } from "./p-CxfmNDsm-JHseL2it.js";
|
|
8
|
+
import { c as S } from "./clsx-OuTLNxxd.js";
|
|
9
|
+
const E = (e) => S("gids-checkbox", e), j = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10
10
|
__proto__: null,
|
|
11
|
-
getGidsCheckboxClassNames:
|
|
12
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
11
|
+
getGidsCheckboxClassNames: E
|
|
12
|
+
}, Symbol.toStringTag, { value: "Module" })), G = (e) => S("gids-radio-control", e), F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13
13
|
__proto__: null,
|
|
14
|
-
getGidsRadioControlClassNames:
|
|
15
|
-
}, Symbol.toStringTag, { value: "Module" })), z = (e) =>
|
|
14
|
+
getGidsRadioControlClassNames: G
|
|
15
|
+
}, Symbol.toStringTag, { value: "Module" })), z = (e) => S("gids-radio", e), L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
16
16
|
__proto__: null,
|
|
17
17
|
getGidsRadioClassNames: z
|
|
18
|
-
}, Symbol.toStringTag, { value: "Module" })), $ = ({ selected: e, appearance: s, selectionAppearance: t }, n) =>
|
|
18
|
+
}, Symbol.toStringTag, { value: "Module" })), $ = ({ selected: e, appearance: s, selectionAppearance: t }, n) => S("gids-sidebar-menu-item", {
|
|
19
19
|
// Appearances
|
|
20
20
|
// 'gids-sidebar-menu-item--appearance-default':
|
|
21
21
|
// appearance === 'default' && !selected, // Default so not needed
|
|
@@ -33,13 +33,13 @@ const j = (e) => v("gids-checkbox", e), G = /* @__PURE__ */ Object.freeze(/* @__
|
|
|
33
33
|
"gids-sidebar-menu-item--selection-appearance-danger": t === "danger" && e,
|
|
34
34
|
"gids-sidebar-menu-item--selection-appearance-information": t === "information" && e,
|
|
35
35
|
"gids-sidebar-menu-item--selection-appearance-warning": t === "warning" && e
|
|
36
|
-
}, n),
|
|
36
|
+
}, n), W = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
37
37
|
__proto__: null,
|
|
38
38
|
getGidsSidebarMenuItemClassNames: $
|
|
39
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
39
|
+
}, Symbol.toStringTag, { value: "Module" })), V = (e) => S("gids-sidebar-menu", e), H = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
40
40
|
__proto__: null,
|
|
41
|
-
getGidsSidebarMenuClassNames:
|
|
42
|
-
}, Symbol.toStringTag, { value: "Module" })), U = ({ appearance: e, size: s, type: t }, n) =>
|
|
41
|
+
getGidsSidebarMenuClassNames: V
|
|
42
|
+
}, Symbol.toStringTag, { value: "Module" })), U = ({ appearance: e, size: s, type: t }, n) => S("gids-status-tag", {
|
|
43
43
|
// appearances
|
|
44
44
|
"gids-status-tag--subtle": e === "subtle",
|
|
45
45
|
"gids-status-tag--bold": e === "bold",
|
|
@@ -109,7 +109,7 @@ const j = (e) => v("gids-checkbox", e), G = /* @__PURE__ */ Object.freeze(/* @__
|
|
|
109
109
|
case "archived":
|
|
110
110
|
return "archive";
|
|
111
111
|
case "cancelled":
|
|
112
|
-
return "
|
|
112
|
+
return "x-circle";
|
|
113
113
|
// this needs to be changed with `remove`
|
|
114
114
|
case "draft":
|
|
115
115
|
return "draft";
|
|
@@ -153,17 +153,17 @@ const j = (e) => v("gids-checkbox", e), G = /* @__PURE__ */ Object.freeze(/* @__
|
|
|
153
153
|
getGidsStatusTagClassNames: U,
|
|
154
154
|
getStatusTagIconName: B,
|
|
155
155
|
getStatusTagText: J
|
|
156
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsStatusTagClassNames: Q, getStatusTagIconName: X, getStatusTagText: Y } = K, Z = ({ type: e = "new", appearance: s = "subtlest", size: t = "sm", class: n }) => i("div", { class: Q({ type: e, size: t, appearance: s }, n) }, i(T, { name: X(e), appearance: "filled" }), i("label", null, Y(e))), { getGidsCheckboxClassNames: ee } =
|
|
157
|
-
const
|
|
158
|
-
return i("div", { class: ee(h), ...b }, i(O, { checked: a, defaultChecked: r, disabled: l, indeterminate: c, inputId:
|
|
159
|
-
}, { getGidsRadioControlClassNames: se } = F, ie = ({ checked: e, defaultChecked: s, disabled: t, inputId: n, name: d, value: a, onChange: r, class: l, ...c }) => i("span", { class: se(l), ...c }, i("input", { class: "gids-radio-control__input", type: "radio", disabled: t, checked: e, defaultChecked: s, value: a, id: n, name: d, onChange: r }), i("span", { class: "gids-radio-control__check" })), { getGidsRadioClassNames: ne } = L, de = ({ fieldRequirement: e, fieldRequirementOptionalText: s, fieldRequirementRequiredText: t, info: n, labelId: d, checked: a, defaultChecked: r, disabled: l, inputId: c, name: g, value: m, onChange: o, class:
|
|
156
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsStatusTagClassNames: Q, getStatusTagIconName: X, getStatusTagText: Y } = K, Z = ({ type: e = "new", appearance: s = "subtlest", size: t = "sm", class: n }) => i("div", { class: Q({ type: e, size: t, appearance: s }, n) }, i(T, { name: X(e), appearance: "filled" }), i("label", null, Y(e))), { getGidsCheckboxClassNames: ee } = j, te = ({ fieldRequirement: e, fieldRequirementOptionalText: s, fieldRequirementRequiredText: t, info: n, labelId: d, checked: a, defaultChecked: r, disabled: l, indeterminate: c, inputId: g, name: m, value: o, required: f, onChange: u, class: h, ...b }, v) => {
|
|
157
|
+
const I = g ?? x();
|
|
158
|
+
return i("div", { class: ee(h), ...b }, i(O, { checked: a, defaultChecked: r, disabled: l, indeterminate: c, inputId: I, name: m, value: o, required: f, onChange: u }), i(y, { disabled: l, fieldRequirement: e, fieldRequirementOptionalText: s, fieldRequirementRequiredText: t, labelId: d, htmlFor: I, info: n }, v));
|
|
159
|
+
}, { getGidsRadioControlClassNames: se } = F, ie = ({ checked: e, defaultChecked: s, disabled: t, inputId: n, name: d, value: a, onChange: r, class: l, ...c }) => i("span", { class: se(l), ...c }, i("input", { class: "gids-radio-control__input", type: "radio", disabled: t, checked: e, defaultChecked: s, value: a, id: n, name: d, onChange: r }), i("span", { class: "gids-radio-control__check" })), { getGidsRadioClassNames: ne } = L, de = ({ fieldRequirement: e, fieldRequirementOptionalText: s, fieldRequirementRequiredText: t, info: n, labelId: d, checked: a, defaultChecked: r, disabled: l, inputId: c, name: g, value: m, onChange: o, class: f, ...u }, h) => {
|
|
160
160
|
const b = c ?? x();
|
|
161
|
-
return i("div", { class: ne(
|
|
162
|
-
}, { getGidsSidebarMenuItemClassNames: ae } =
|
|
163
|
-
const b = n && n !== "",
|
|
164
|
-
return i("button", { type: "button", id: e, "data-appearance": s, "data-selected": o ? "true" : "false", disabled:
|
|
161
|
+
return i("div", { class: ne(f), ...u }, i(ie, { checked: a, defaultChecked: r, disabled: l, inputId: b, name: g, value: m, onChange: o }), i(y, { disabled: l, fieldRequirement: e, fieldRequirementOptionalText: s, fieldRequirementRequiredText: t, labelId: d, htmlFor: b, info: n }, h));
|
|
162
|
+
}, { getGidsSidebarMenuItemClassNames: ae } = W, le = ({ id: e = "sidebar-menu-item", appearance: s = "default", selectionAppearance: t = "subtle", leadingLabel: n, leadingSupportingText: d, trailingLabel: a, trailingSupportingText: r, leadingIcon: l, trailingIcon: c, leadingAccessory: g, trailingAccessory: m, selected: o, disabled: f, onPressSidebarMenuItem: u, class: h }) => {
|
|
163
|
+
const b = n && n !== "", v = d && d !== "", I = a && a !== "", p = r && r !== "", C = b || v, _ = I || p, M = C || _;
|
|
164
|
+
return i("button", { type: "button", id: e, "data-appearance": s, "data-selected": o ? "true" : "false", disabled: f, class: ae({ selected: o, appearance: s, selectionAppearance: t }, h), onClick: (P) => {
|
|
165
165
|
u && u({ originalEvent: P, sidebarMenuItemId: e, selected: !o });
|
|
166
|
-
} }, l || g ? i("div", { class: "gids-sidebar-menu-item__leading-accessory-content" }, l, g) : void 0, M ? i("div", { class: "gids-sidebar-menu-item__content" }, C ? i("div", { class: "gids-sidebar-menu-item__leading-content" }, b ? i("span", { class: "gids-sidebar-menu-item__label-content" }, n) : void 0,
|
|
166
|
+
} }, l || g ? i("div", { class: "gids-sidebar-menu-item__leading-accessory-content" }, l, g) : void 0, M ? i("div", { class: "gids-sidebar-menu-item__content" }, C ? i("div", { class: "gids-sidebar-menu-item__leading-content" }, b ? i("span", { class: "gids-sidebar-menu-item__label-content" }, n) : void 0, v ? i("p", { class: "gids-sidebar-menu-item__support-content" }, d) : void 0) : void 0, _ ? i("div", { class: "gids-sidebar-menu-item__trailing-content" }, I ? i("span", { class: "gids-sidebar-menu-item__label-content" }, a) : void 0, p ? i("p", { class: "gids-sidebar-menu-item__support-content" }, r) : void 0) : void 0) : void 0, c || m ? i("div", { class: "gids-sidebar-menu-item__trailing-accessory-content" }, m, c) : void 0);
|
|
167
167
|
}, { getGidsSidebarMenuClassNames: re } = H, oe = w(class extends A {
|
|
168
168
|
constructor(e) {
|
|
169
169
|
super(), e !== !1 && this.__registerHost(), this.id = "sidebar-menu", this.sidebarMenuItemAppearance = "subtle", this.sidebarMenuItemSelectionAppearance = "default", this.placement = "right-end", this.constrainPlacements = ["bottom", "left", "right", "left-start", "left-end", "right-start", "right-end", "top"], this.selectedSectionIdState = void 0, this.selectedItemIdState = void 0, this.onSidebarMenuItemPress = ({ menuItem: s, itemIndex: t, sectionIndex: n, event: d }) => {
|
|
@@ -171,7 +171,7 @@ const j = (e) => v("gids-checkbox", e), G = /* @__PURE__ */ Object.freeze(/* @__
|
|
|
171
171
|
const a = (this?.menuData ?? [])[n];
|
|
172
172
|
(a?.menuItems ?? []).length > 0 && !this.isMenuItemSelected({ sectionId: a?.sectionId, itemId: s.id }) && (this.selectedSectionIdState = a?.sectionId, this.selectedItemIdState = s.id, this.onSidebarMenuChange && this.onSidebarMenuChange({ originalEvent: d?.originalEvent, sidebarMenuItemId: d.sidebarMenuItemId, selected: d?.selected, sidebarMenuItemSectionId: a?.sectionId ?? "", sidebarMenuItemSectionIndex: n, sidebarMenuItemIndex: t, sidebarMenuId: this.id }));
|
|
173
173
|
}
|
|
174
|
-
this.flyoutPanelElement?.closeFlyoutPanel();
|
|
174
|
+
d?.originalEvent && this.flyoutPanelElement?.closeFlyoutPanel(d.originalEvent);
|
|
175
175
|
}, this.isMenuItemSelected = ({ sectionId: s, itemId: t }) => {
|
|
176
176
|
const n = this?.selectedSectionIdState, d = this?.selectedItemIdState;
|
|
177
177
|
return n === s && d === t;
|
|
@@ -227,11 +227,11 @@ const j = (e) => v("gids-checkbox", e), G = /* @__PURE__ */ Object.freeze(/* @__
|
|
|
227
227
|
}
|
|
228
228
|
render() {
|
|
229
229
|
const e = this.id, s = this?.sidebarMenuItemAppearance ?? "subtle", t = this?.sidebarMenuItemSelectionAppearance ?? "default", n = this?.placement ?? "right", d = this?.constrainPlacements && this.constrainPlacements.length > 0 ? this.constrainPlacements : ["bottom", "left", "right", "top", "left-start", "left-end", "right-start", "right-end"], a = this.htmlFor, r = this?.menuData ?? [], l = this.isValidMenu(), c = re();
|
|
230
|
-
return i(q, { key: "
|
|
231
|
-
const o = g?.sectionLabel,
|
|
232
|
-
return i("div", { key: `${m + 1}`, class: "gids-sidebar-menu__container" }, o && o !== "" ? i("h3", null, o) : void 0, i("div", { class: "gids-sidebar-menu__item-container" },
|
|
233
|
-
const { leadingAccessoryType: b, leadingAccessory:
|
|
234
|
-
return i(le, { key: `${h + 1}`, ...M, id: u.id, appearance: s, selectionAppearance: t, selected: this.isMenuItemSelected({ sectionId: g?.sectionId, itemId: u.id }), leadingAccessory: this.renderAccessory({ accessoryType: b, accessory:
|
|
230
|
+
return i(q, { key: "89a5fa60f0dd73c8fdc55153a9d392ecd4cdb39a", id: e, class: c }, l ? i("gids-flyout-panel", { htmlFor: a, constrainPlacements: d, placement: n, matchReferenceWidth: !1 }, r.map(((g, m) => {
|
|
231
|
+
const o = g?.sectionLabel, f = g?.menuItems ?? [];
|
|
232
|
+
return i("div", { key: `${m + 1}`, class: "gids-sidebar-menu__container" }, o && o !== "" ? i("h3", null, o) : void 0, i("div", { class: "gids-sidebar-menu__item-container" }, f.map(((u, h) => {
|
|
233
|
+
const { leadingAccessoryType: b, leadingAccessory: v, trailingAccessoryType: I, trailingAccessory: p, leadingIconProps: C, trailingIconProps: _, ...M } = u;
|
|
234
|
+
return i(le, { key: `${h + 1}`, ...M, id: u.id, appearance: s, selectionAppearance: t, selected: this.isMenuItemSelected({ sectionId: g?.sectionId, itemId: u.id }), leadingAccessory: this.renderAccessory({ accessoryType: b, accessory: v }), trailingAccessory: this.renderAccessory({ accessoryType: I, accessory: p }), leadingIcon: this.renderIcon(C), trailingIcon: this.renderIcon(_), onPressSidebarMenuItem: (P) => this.onSidebarMenuItemPress({ menuItem: u, sectionIndex: m, itemIndex: h, event: P }) });
|
|
235
235
|
}))));
|
|
236
236
|
}))) : void 0);
|
|
237
237
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { D as
|
|
2
|
-
import { b as P } from "./p-
|
|
1
|
+
import { D as v } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
|
+
import { b as P } from "./p-D2VR17v2-C0k_l_CT.js";
|
|
3
3
|
import { c as w } from "./clsx-OuTLNxxd.js";
|
|
4
4
|
const x = (e) => w("gids-dropdown-item", e), y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5
5
|
__proto__: null,
|
|
6
6
|
getGidsDropdownItemClassNames: x
|
|
7
7
|
}, Symbol.toStringTag, { value: "Module" })), { getGidsDropdownItemClassNames: D } = y, C = ({ id: e, title: t, class: d, selected: n = !1, disabled: s = !1, role: a = "list-item-option", value: o, name: c, onPressDropdownItem: m, index: l, defaultSelected: r, leadingAccessory: u, divider: f, isPlaceholderItem: i, ...p }) => {
|
|
8
8
|
const b = D(typeof d == "string" ? d : void 0);
|
|
9
|
-
return
|
|
9
|
+
return v(P, { id: e, index: l ?? 0, defaultSelected: r, selected: n, disabled: s, role: a, value: o, name: c, leadingAccessory: u, class: b, onPressListItem: (g) => {
|
|
10
10
|
if (g.defaultPrevented) return;
|
|
11
|
-
const
|
|
12
|
-
m?.(
|
|
11
|
+
const I = new CustomEvent("onPressDropdownItem", { bubbles: !0, composed: !0, detail: { id: e, title: t, value: o, disabled: s, selectedIndex: l, defaultSelected: r, isPlaceholderItem: i } });
|
|
12
|
+
m?.(I);
|
|
13
13
|
}, divider: f, isPlaceholderItem: i, ...p }, t);
|
|
14
14
|
};
|
|
15
15
|
export {
|
|
@@ -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
|
-
import { d as p } from "./p-iQRr_fAH-
|
|
3
|
-
import { o as I } from "./p-
|
|
2
|
+
import { d as p } from "./p-iQRr_fAH-Dvv1n8QD.js";
|
|
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
|
};
|