@ganpatiinfo/gids-core-web 22.0.0 → 24.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 +111 -64
- 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-TfH966_e.js → p-3H10HA8U.js} +1 -1
- package/dist/{p-_W77iniK.js → p-5SNf54JN.js} +1 -1
- package/dist/p-69VXkSHc.js +1 -0
- package/dist/{p-B_FEFM5I.js → p-B2CvDGSE.js} +1 -1
- package/dist/{p-DLRj-mUX.js → p-B3AB3GQ0.js} +1 -1
- package/dist/p-BBlUduEr.js +1 -0
- package/dist/p-BGBsQSqM.js +1 -0
- package/dist/{p-BIxBMTG9.js → p-BWrCtA6O.js} +1 -1
- package/dist/{p-D0RJMGGj.js → p-BZdaC92p.js} +1 -1
- package/dist/p-Bbw1WCO7.js +1 -0
- package/dist/{p-CIjK3iHM.js → p-Bi-yBBYT.js} +1 -1
- package/dist/{p-DQQhGF5N.js → p-BwDi-0yS.js} +1 -1
- package/dist/{p-DKSnGphd.js → p-By0R-oJV.js} +1 -1
- package/dist/p-CCX8DA2Z.js +1 -0
- package/dist/{p-Ds5IzXj3.js → p-CJ1tQlEt.js} +1 -1
- package/dist/{p-DnRuhvRw.js → p-CL9pZVrx.js} +1 -1
- package/dist/p-CS2U2Mro.js +1 -0
- package/dist/p-Cf9ipNLT.js +1 -0
- package/dist/{p-B2flLE0s.js → p-Cs-QTqUM.js} +1 -1
- package/dist/{p-E13ycS5K.js → p-CytAVtIP.js} +1 -1
- package/dist/{p-CV1-78HB.js → p-D2VR17v2.js} +1 -1
- package/dist/p-D8vooi3L.js +1 -0
- package/dist/{p-DMxvWIj1.js → p-DB0ZJi5J.js} +1 -1
- package/dist/{p-BAqWcL0K.js → p-DHOvFnv4.js} +1 -1
- package/dist/{p--kh67-_Z.js → p-DIrAYgqX.js} +1 -1
- package/dist/p-DJH7wtiu.js +1 -0
- package/dist/{p-bfWlRsx_.js → p-DMN5PI18.js} +1 -1
- package/dist/p-DdJKIFk0.js +1 -0
- package/dist/{p-BCbovLBE.js → p-Dt270JVs.js} +1 -1
- package/dist/p-DuonIHDh.js +1 -0
- package/dist/{p-DzOOjiNH.js → p-_OVEnTXa.js} +1 -1
- package/dist/{p-DrxfD2yZ.js → p-cXOH6OAQ.js} +1 -1
- package/dist/p-lVcUFx2e.js +1 -0
- package/dist/{p-mv_7K1EM.js → p-peMqbYbz.js} +1 -1
- package/dist/p-piTNUZit.js +1 -0
- 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/GidsHeaderNavigation/GidsHeaderNavigation.d.ts +0 -1
- package/dist/types/components/webComponents/GidsHeaderNavigationItem/GidsHeaderNavigationItem.d.ts +4 -6
- 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 +894 -70
- package/dist-bundled/es/GidsDatePickerSharedUtils-Dh5qFlYA.js +105 -0
- package/dist-bundled/es/gids-action-bar.js +17 -17
- package/dist-bundled/es/gids-activity-gauge.js +3 -3
- package/dist-bundled/es/gids-advanced-tooltip.js +4 -4
- package/dist-bundled/es/gids-bar-chart.js +3 -3
- package/dist-bundled/es/gids-bento-card.js +1 -1
- package/dist-bundled/es/gids-calendar-header-panel.js +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 +4 -4
- package/dist-bundled/es/gids-calendar.js +4 -151
- package/dist-bundled/es/gids-chart-legend-item.js +4 -4
- package/dist-bundled/es/gids-chart-legend.js +3 -3
- package/dist-bundled/es/gids-chart.js +21 -21
- package/dist-bundled/es/gids-chevron-button.js +3 -3
- 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 +29 -19
- package/dist-bundled/es/gids-dropdown-picker.js +2 -2
- package/dist-bundled/es/gids-dropdown.js +3 -3
- 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 +1 -1
- 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 +1 -1
- 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 +59 -60
- package/dist-bundled/es/gids-icon.js +1 -1
- package/dist-bundled/es/gids-input.js +4 -4
- package/dist-bundled/es/gids-line-chart.js +4 -4
- package/dist-bundled/es/gids-md-table.js +60 -60
- package/dist-bundled/es/gids-month-dropdown-picker.js +6 -0
- package/dist-bundled/es/gids-overflow-container.js +1 -1
- package/dist-bundled/es/gids-overlay-provider.js +2 -2
- package/dist-bundled/es/gids-password-field.js +25 -25
- 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 +3 -3
- package/dist-bundled/es/gids-profile.js +10 -10
- package/dist-bundled/es/gids-scrim.js +1 -1
- 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 +7 -7
- package/dist-bundled/es/gids-skeleton.js +1 -1
- package/dist-bundled/es/gids-tab-item.js +1 -1
- package/dist-bundled/es/gids-tab.js +4 -4
- package/dist-bundled/es/gids-text-field.js +12 -12
- 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-TfH966_e-BzZRV8Rj.js → p-3H10HA8U-DWG31yfh.js} +9 -9
- package/dist-bundled/es/{p-_W77iniK-ChKfEOp3.js → p-5SNf54JN-Dke4QoYK.js} +2 -2
- package/dist-bundled/es/{p-kWyyLyT3-VhX9LNzT.js → p-69VXkSHc-vZd5gQWS.js} +28 -28
- package/dist-bundled/es/{p-B_FEFM5I-JoBieRfG.js → p-B2CvDGSE-B-50q6JD.js} +5 -5
- package/dist-bundled/es/{p-DLRj-mUX-BapdQYpI.js → p-B3AB3GQ0-DdgNC9FJ.js} +5 -5
- package/dist-bundled/es/{p-CAjDiWIc-C9dOa7FT.js → p-BBlUduEr-CWdvgBS6.js} +7 -7
- package/dist-bundled/es/{p-BQT5yy5L-C1C_zTi-.js → p-BGBsQSqM-DtooH-AA.js} +8 -4
- package/dist-bundled/es/{p-BIxBMTG9-Ctr342ff.js → p-BWrCtA6O-DHaJx1bg.js} +3 -3
- package/dist-bundled/es/{p-D0RJMGGj-BflZ9l8y.js → p-BZdaC92p-DjVPKyfk.js} +5 -5
- package/dist-bundled/es/p-Bbw1WCO7-CJU0y0iF.js +240 -0
- package/dist-bundled/es/{p-CIjK3iHM-DEW8PRM5.js → p-Bi-yBBYT-CC0Ktxng.js} +1 -1
- package/dist-bundled/es/{p-DQQhGF5N-mCqb5VTE.js → p-BwDi-0yS-vyn3pUko.js} +8 -8
- package/dist-bundled/es/{p-DKSnGphd-CZSPfB-N.js → p-By0R-oJV-DkI-JpEG.js} +3 -3
- package/dist-bundled/es/p-CCX8DA2Z-D0OkaCKx.js +157 -0
- package/dist-bundled/es/{p-Ds5IzXj3-B2o0ML2C.js → p-CJ1tQlEt-B8GYL1we.js} +13 -13
- package/dist-bundled/es/{p-DnRuhvRw-Beh0bANh.js → p-CL9pZVrx-BYVOaGDA.js} +8 -8
- package/dist-bundled/es/{p-DpvdbdZ--C7QlXxK2.js → p-CS2U2Mro-6wGJ-t9P.js} +31 -19
- package/dist-bundled/es/p-Cf9ipNLT-HF4MWnLF.js +86 -0
- package/dist-bundled/es/{p-B2flLE0s-SMg7vg1a.js → p-Cs-QTqUM-CcvsSUzr.js} +2 -2
- package/dist-bundled/es/{p-E13ycS5K-BBDydae3.js → p-CytAVtIP-IZSm6SZx.js} +1 -1
- package/dist-bundled/es/p-D8vooi3L-C5jeoC6H.js +122 -0
- package/dist-bundled/es/{p-DMxvWIj1-BxbvrlFL.js → p-DB0ZJi5J-BEYBVVuq.js} +9 -9
- package/dist-bundled/es/{p-BAqWcL0K-DNkV1R_C.js → p-DHOvFnv4-DZQmbUn3.js} +2 -2
- package/dist-bundled/es/{p--kh67-_Z-B-vf_gng.js → p-DIrAYgqX-BoR42JaL.js} +4 -4
- package/dist-bundled/es/p-DJH7wtiu-BDWtYcRw.js +148 -0
- package/dist-bundled/es/{p-bfWlRsx_-CNZjBYOE.js → p-DMN5PI18-CiBpBUeE.js} +3 -3
- package/dist-bundled/es/{p-Do_VlNHg-Ck03dQOR.js → p-DdJKIFk0-Co3FvR3K.js} +1 -1
- package/dist-bundled/es/{p-BCbovLBE-CDxKiOtS.js → p-Dt270JVs-DJODMRWa.js} +1 -1
- package/dist-bundled/es/p-DuonIHDh-B6YKWTfP.js +86 -0
- package/dist-bundled/es/{p-DzOOjiNH-CqI4E-mj.js → p-_OVEnTXa-q7qjnzI3.js} +2 -2
- package/dist-bundled/es/{p-DrxfD2yZ-Cetyr3S9.js → p-cXOH6OAQ-BRmZ0lXm.js} +10 -10
- package/dist-bundled/es/p-lVcUFx2e-D6N6qefs.js +86 -0
- package/dist-bundled/es/{p-mv_7K1EM-U3yKC45e.js → p-peMqbYbz-BnWVSfKD.js} +1 -1
- package/dist-bundled/es/p-piTNUZit-Jq4qQLgn.js +137 -0
- package/dist-bundled/umd/gids-action-bar.umd.js +3 -3
- 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 +2 -2
- 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 +2 -2
- package/dist-bundled/umd/gids-icon.umd.js +2 -2
- 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 +1 -1
- package/dist-bundled/umd/gids-profile.umd.js +1 -1
- 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 +2 -2
- 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 +9 -9
- package/package.json +55 -7
- package/dist/p-BQT5yy5L.js +0 -1
- package/dist/p-B_St7yaX.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-B_St7yaX-Da4DWjGh.js +0 -151
- 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
|
@@ -4,18 +4,18 @@ import { o as N } from "./p-BsC3-MVH-j4fPhip5.js";
|
|
|
4
4
|
import { g as x, d as T } from "./p-iQRr_fAH-Dvv1n8QD.js";
|
|
5
5
|
import { i as O } from "./p-DZ1ZcTMe-W8kofPko.js";
|
|
6
6
|
import { s as y } from "./p-BkxmRN-4-DSiXCW8b.js";
|
|
7
|
-
import {
|
|
8
|
-
import { c as
|
|
9
|
-
const
|
|
7
|
+
import { c as D } from "./p-CS2U2Mro-6wGJ-t9P.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: "0c64f373590a913f6d21d8a86f0d3289382a2052", 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,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 { n as r } from "./p-DB0ZJi5J-BEYBVVuq.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: "e14ecfd04eebd0165052b0d27bbc93ab5c981501", class: this.activeClasses, name: "new", alt: "", appearance: "filled" });
|
|
45
45
|
}
|
|
46
46
|
get _el() {
|
|
47
47
|
return this;
|
|
@@ -53,7 +53,7 @@ const h = ({ appearance: s, size: e, disabled: a }, d) => c("gids-dot", {
|
|
|
53
53
|
return ".gids-dot{display:flex;--gidsDotIcon-height:var(--gids-size-040);--gidsIcon-height:var(--gidsDotIcon-height);--gidsDotIcon-color:var(--gids-color-icon-subtle);--gidsIcon-color:var(--gidsDotIcon-color)}.gids-dot--sm{--gidsDotIcon-height:var(--gids-size-060)}.gids-dot--md{--gidsDotIcon-height:var(--gids-size-080)}.gids-dot--lg{--gidsDotIcon-height:var(--gids-size-100)}.gids-dot--xl{--gidsDotIcon-height:var(--gids-size-120)}.gids-dot--2xl{--gidsDotIcon-height:var(--gids-size-160)}.gids-dot--3xl{--gidsDotIcon-height:var(--gids-size-200)}.gids-dot--subtle{--gidsDotIcon-color:var(--gids-color-icon-subtle)}.gids-dot--static-inverse{--gidsDotIcon-color:var(--gids-color-icon-inverse)}.gids-dot--disabled{--gidsDotIcon-color:var(--gids-color-icon-disabled)}";
|
|
54
54
|
}
|
|
55
55
|
}, [0, "gids-dot", { extraClasses: [513, "extra-classes"], appearance: [513], size: [513], disabled: [516], activeClasses: [32] }, void 0, { extraClasses: [{ handleExtraClassesAndSizeChange: 0 }], appearance: [{ handleExtraClassesAndSizeChange: 0 }, { handleAppearanceChange: 0 }], size: [{ handleExtraClassesAndSizeChange: 0 }, { handleSizeChange: 0 }], disabled: [{ handleExtraClassesAndSizeChange: 0 }, { handleDisabledChange: 0 }] }]);
|
|
56
|
-
function
|
|
56
|
+
function b() {
|
|
57
57
|
typeof customElements < "u" && ["gids-dot", "gids-icon"].forEach(((s) => {
|
|
58
58
|
switch (s) {
|
|
59
59
|
case "gids-dot":
|
|
@@ -64,8 +64,8 @@ function x() {
|
|
|
64
64
|
}
|
|
65
65
|
}));
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
b();
|
|
68
68
|
export {
|
|
69
|
-
|
|
69
|
+
b as g,
|
|
70
70
|
C as h
|
|
71
71
|
};
|
|
@@ -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,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
|
};
|
|
@@ -10,12 +10,13 @@ const m = ({ expanded: e }, t) => u("gids-dropdown-picker", {
|
|
|
10
10
|
}, Symbol.toStringTag, { value: "Module" })), { getGidsDropdownPickerClassNames: f } = g, v = l(class extends h {
|
|
11
11
|
constructor(e) {
|
|
12
12
|
super(), e !== !1 && this.__registerHost(), this.appearance = "subtle", this.size = "sm", this.idPicker = "", this.expanded = !1, this.hasLeadingIcon = !1, this.hasItemListener = !1, this.suppressNextMenuClickSelection = !1, this.hasDocumentListeners = !1, this.handleDropdownPickerItemSelect = (t) => {
|
|
13
|
+
if (this.isFromNestedDropdown(t)) return;
|
|
13
14
|
const { value: i, title: s, disabled: o, id: a, isPlaceholderItem: d } = t.detail;
|
|
14
15
|
o || typeof i != "string" || (this.suppressNextMenuClickSelection = !0, queueMicrotask((() => {
|
|
15
16
|
this.suppressNextMenuClickSelection = !1;
|
|
16
17
|
})), this.applySelection({ id: a, value: i, title: s, disabled: !1, originalEvent: t, isPlaceholderItem: d }));
|
|
17
18
|
}, this.handleMenuClick = (t) => {
|
|
18
|
-
if (this.suppressNextMenuClickSelection) return;
|
|
19
|
+
if (this.isFromNestedDropdown(t) || this.suppressNextMenuClickSelection) return;
|
|
19
20
|
const i = t.target;
|
|
20
21
|
if (!(i instanceof Element)) return;
|
|
21
22
|
const s = i.closest(".gids-dropdown-item");
|
|
@@ -82,6 +83,9 @@ const m = ({ expanded: e }, t) => u("gids-dropdown-picker", {
|
|
|
82
83
|
clearActive() {
|
|
83
84
|
this.getItemElements().forEach(((e) => e.classList.remove("gids-dropdown-item--active")));
|
|
84
85
|
}
|
|
86
|
+
isFromNestedDropdown(e) {
|
|
87
|
+
return e.composedPath().some(((t) => t instanceof Element && (t.matches("gids-dropdown") || t.matches("gids-calendar-picker"))));
|
|
88
|
+
}
|
|
85
89
|
setExpandedState(e, t) {
|
|
86
90
|
const i = !!e;
|
|
87
91
|
i && !this.isInteractive() || this.expanded !== i && (this.expanded = i, i || (this.clearActive(), this.syncInputDisplayValue()), this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownPickerToggle", { bubbles: !0, composed: !0, detail: { expanded: i, originalEvent: t } })));
|
|
@@ -111,7 +115,7 @@ const m = ({ expanded: e }, t) => u("gids-dropdown-picker", {
|
|
|
111
115
|
}
|
|
112
116
|
render() {
|
|
113
117
|
const e = this.expanded && this.isInteractive(), t = f({ expanded: e }), i = typeof this.idPicker == "string" ? this.idPicker : void 0, s = i ? `${i}__menu` : void 0;
|
|
114
|
-
return n("div", { key: "
|
|
118
|
+
return n("div", { key: "614cf556bbc263676024e0b45783098c2051e005", class: t, onClick: this.handleOutSpaceClickOfDropdownButtonToggle }, n(c, { key: "20abc12e3ec2dddd42dadf31e83b93665e2f1dc4", role: "pickerbox", "aria-expanded": e ? "true" : "false", "aria-haspopup": "pickerlistbox", "aria-controls": s ?? "", onClick: this.handleDropdownButtonClickToggle, disabled: this.disabled, value: this.selectedItemTitle ?? this.value ?? "", loading: this.loading, appearance: this.appearance, size: this.size }, this.hasLeadingIcon ? n("slot", { name: "leadingIconDropdownPicker", slot: "leadingIcon" }) : n(p, { name: "chevron-down", size: this.size, appearance: "regular", alt: "", slot: "leadingIcon" })), n("div", { key: "8a0ce19fe25013123a93c872252ce4bba6583e72", class: "gids-dropdown-picker__menu", id: s, role: "pickerbox", onClick: this.handleMenuClick }, n("slot", { key: "0af42f52b621e480bf1ad1894605ad52407015a0" })));
|
|
115
119
|
}
|
|
116
120
|
get hostElement() {
|
|
117
121
|
return this;
|
|
@@ -130,6 +134,6 @@ function E() {
|
|
|
130
134
|
}
|
|
131
135
|
E();
|
|
132
136
|
export {
|
|
133
|
-
|
|
134
|
-
|
|
137
|
+
v as a,
|
|
138
|
+
E as h
|
|
135
139
|
};
|
|
@@ -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-BZdaC92p-DjVPKyfk.js";
|
|
4
|
+
import { o as M } from "./p-CL9pZVrx-BYVOaGDA.js";
|
|
5
|
+
import { l as I } from "./p-CytAVtIP-IZSm6SZx.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"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as
|
|
1
|
+
import { q as n, L as c, u as r, D as a, P as g } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
2
|
import { b as h, o as f, d as m, s as v, a as u, c as b, p, f as _ } from "./p-BKcvOO8o-DcnO39au.js";
|
|
3
3
|
import { i as y } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
4
4
|
import { d as w } from "./p-iQRr_fAH-Dvv1n8QD.js";
|
|
@@ -52,7 +52,7 @@ const C = ({ visible: t }, e) => x("gids-advanced-tooltip", {
|
|
|
52
52
|
if (this.tooltipElement) try {
|
|
53
53
|
const { x: t, y: e, placement: s, middlewareData: l } = await b(this.virtualReference, this.tooltipElement, { placement: this.placement, strategy: "fixed", middleware: this.getMiddleware(), platform: { ...p, getOffsetParent: (o) => p.getOffsetParent(o, _) } });
|
|
54
54
|
if (this.currentPlacement = s, Object.assign(this.tooltipElement.style, { left: `${t}px`, top: `${e}px`, position: "fixed" }), l.arrow && this.arrowElement) {
|
|
55
|
-
const { x: o, y:
|
|
55
|
+
const { x: o, y: d } = l.arrow;
|
|
56
56
|
let i;
|
|
57
57
|
switch (s.split("-")[0] ?? "top") {
|
|
58
58
|
case "top":
|
|
@@ -67,7 +67,7 @@ const C = ({ visible: t }, e) => x("gids-advanced-tooltip", {
|
|
|
67
67
|
default:
|
|
68
68
|
i = "right";
|
|
69
69
|
}
|
|
70
|
-
Object.assign(this.arrowElement.style, { left: o != null ? `${o}px` : "", top:
|
|
70
|
+
Object.assign(this.arrowElement.style, { left: o != null ? `${o}px` : "", top: d != null ? `${d}px` : "", right: "", bottom: "", [i]: "-5px", transform: "rotate(45deg)" });
|
|
71
71
|
}
|
|
72
72
|
} catch (t) {
|
|
73
73
|
console.error("computePosition failed", t);
|
|
@@ -75,7 +75,7 @@ const C = ({ visible: t }, e) => x("gids-advanced-tooltip", {
|
|
|
75
75
|
}
|
|
76
76
|
render() {
|
|
77
77
|
const t = P({ visible: this.visible });
|
|
78
|
-
return a(g, { key: "
|
|
78
|
+
return a(g, { key: "2db37260f048711b24ed6354bc627acecf0cdd5c", class: t, role: "tooltip", part: "tooltip" }, a("div", { key: "cddd1beb266a284887dda3ab87d3acafb068dc5c", class: "gids-advanced-tooltip__arrow", part: "arrow" }), a("div", { key: "e55e43f82180d4e5dd5ebddd9c8109abe888f58f", class: "gids-advanced-tooltip__content" }, this.items.map(((e) => a("div", { class: "gids-advanced-tooltip__item", key: `${e.label}-${e.value}` }, a("div", { class: "gids-advanced-tooltip__left" }, a(w, { name: "new", size: "xs", appearance: "filled", style: { "--gidsIcon-color": e.seriesIndicatorColor } }), a("span", { class: "gids-advanced-tooltip__label" }, e.label)), a("span", { class: "gids-advanced-tooltip__value" }, e.value))))));
|
|
79
79
|
}
|
|
80
80
|
get host() {
|
|
81
81
|
return this;
|
|
@@ -89,7 +89,7 @@ const C = ({ visible: t }, e) => x("gids-advanced-tooltip", {
|
|
|
89
89
|
}, [1, "gids-advanced-tooltip", { visible: [516], x: [2], y: [2], offset: [2], placement: [1], items: [16], currentPlacement: [32] }, void 0, { visible: [{ visibleChanged: 0 }], x: [{ positionChanged: 0 }], y: [{ positionChanged: 0 }], placement: [{ placementChanged: 0 }], items: [{ itemsChanged: 0 }] }]);
|
|
90
90
|
function E() {
|
|
91
91
|
typeof customElements < "u" && ["gids-advanced-tooltip"].forEach(((t) => {
|
|
92
|
-
t === "gids-advanced-tooltip" && (customElements.get(
|
|
92
|
+
t === "gids-advanced-tooltip" && (customElements.get(n(t)) || customElements.define(n(t), A));
|
|
93
93
|
}));
|
|
94
94
|
}
|
|
95
95
|
E();
|
|
@@ -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 { c as g } from "./p-CS2U2Mro-6wGJ-t9P.js";
|
|
4
|
+
import { r as v } from "./p-_OVEnTXa-q7qjnzI3.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), b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11
|
+
__proto__: null,
|
|
12
|
+
getGidsChevronButtonControlClassNames: y,
|
|
13
|
+
getGidsDropdownClassNames: f
|
|
14
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsDropdownClassNames: I, getGidsChevronButtonControlClassNames: E } = b, 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 = I(), 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: "d3fc5400d7f2cccf92b5be848748ae9d71b16bb8", 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: "4f2640fcd482a0616b65702eb9bcd1a16baacdee", class: "gids-button__content" }, o(p, { key: "933d0766b0655aef2102f8b8908b8cbdd6178ff9", name: "chevron-vertical", alt: "" })));
|
|
210
|
+
return o("div", { key: "5cff063e1c1c42cf0d0b8d0e26d3134a6134cabf", class: e }, o("gids-input", { key: "8d5b379dae8f65e6049a0d4d1d6ac9833f93d378", 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: "94d6d5adfb4f50133a7db2b33369ca544c134501", name: "leadingIconDropdown", slot: "leadingIcon" }), this.hasLeadingAccessory && o("slot", { key: "8de475c3d539311d3f9b2ee77c132e584f4aebee", name: "leadingAccessoryDropdown", slot: "leadingAccessory" }), l), o("gids-flyout-panel", { key: "06548f4c906e8977a77f697a5b8a691937fa4f58", placement: this?.menuPlacement ?? "bottom", constrainPlacements: this?.menuConstrainPlacements ?? ["bottom", "top"], onClick: this.handleMenuClick, htmlFor: a }, o("slot", { key: "7e44848855366367c21960554e18e77cc4dd71d2" })));
|
|
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 u
|
|
240
|
+
};
|
|
@@ -65,7 +65,7 @@ const u = (t) => y("gids-expansion-body-list-item", t), m = /* @__PURE__ */ Obje
|
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
67
|
const t = x(), i = this?.label, o = this?.subtitle, r = this?.supportingText, s = this.isValidLabel(), l = this.isValidSubtitle(), p = this.isValidSupportingText(), a = this.isDisplayTagVisible(), d = this?.displayTagLabel ?? "";
|
|
68
|
-
return e(c, { key: "
|
|
68
|
+
return e(c, { key: "5bf32884b1c457b8b748ba2ed58202248de82f96", class: t }, s || l || a ? e("div", { class: "gids-expansion-body-list-item__primary-container" }, s || a ? e("div", { class: "gids-expansion-body-list-item__primary-content" }, s ? e("span", { class: "gids-expansion-body-list-item__label" }, this.convertTextToUppercase(i)) : void 0, a ? e(b, { color: this.displayTagColor || "accent-5", label: d, size: this.displayTagSize, appearance: this.displayTagAppearance }) : void 0) : void 0, l ? e("button", { type: "button", class: "gids-expansion-body-list-item__subtitle", onClick: this.handleSubtitleClick }, o) : void 0) : void 0, p ? e("div", { class: "gids-expansion-body-list-item__secondary-container" }, e("button", { type: "button", class: "gids-expansion-body-list-item__supporting-text", onClick: this.handleSupportingTextClick }, this.convertTextToUppercase(r))) : void 0);
|
|
69
69
|
}
|
|
70
70
|
get hostElement() {
|
|
71
71
|
return this;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { q as s, L as l, u as
|
|
2
|
-
import { o
|
|
3
|
-
import { i as
|
|
4
|
-
const c = l(class extends
|
|
1
|
+
import { q as s, L as l, u as d, z as i, D as t, P as n } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
|
+
import { o } from "./p-Dg_WeHpV-DehzGL6g.js";
|
|
3
|
+
import { i as a } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
4
|
+
const c = l(class extends d {
|
|
5
5
|
constructor(e) {
|
|
6
|
-
super(), e !== !1 && this.__registerHost(), this.__attachShadow(), this.select =
|
|
6
|
+
super(), e !== !1 && this.__registerHost(), this.__attachShadow(), this.select = i(this, "select"), this._toggle = this._toggle.bind(this);
|
|
7
7
|
}
|
|
8
8
|
handleSelctedChange(e) {
|
|
9
9
|
this.selected !== e && (this.selected = e);
|
|
10
10
|
}
|
|
11
11
|
connectedCallback() {
|
|
12
|
-
const e =
|
|
12
|
+
const e = a();
|
|
13
13
|
e !== void 0 && this._el.shadowRoot?.adoptedStyleSheets.push(e);
|
|
14
14
|
}
|
|
15
15
|
_toggle() {
|
|
@@ -17,9 +17,9 @@ const c = l(class extends i {
|
|
|
17
17
|
this._el.selected = e, this.select?.emit(e), this.selected = e;
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return t(n, { key: "
|
|
20
|
+
return t(n, { key: "69d81dcb83814c7d15783f712262d3349483f810" }, t("style", { key: "4caec48e374b3ad1ed9622f7d283e29b6e900d57" }, `:host {
|
|
21
21
|
display: ${this.width === "full" ? "block" : "inline-block"}
|
|
22
|
-
}`), t(
|
|
22
|
+
}`), t(o, { key: "43dab84c0fcba8a324a556eaf541c3a646957de0", appearance: this.appearance, size: this.size, width: this.width, disabled: this.disabled, onClick: this._toggle, "aria-pressed": this.selected ? "true" : "false", leadingIcon: t("slot", { name: "leadingIcon" }), trailingIcon: t("slot", { name: "trailingIcon" }), forceIconOnly: this._onlyHasLeadingIcon() }, t("slot", { key: "7978debe993821c1af19dff654637ea47ce6075f" })));
|
|
23
23
|
}
|
|
24
24
|
_onlyHasLeadingIcon() {
|
|
25
25
|
const e = this._el.childNodes;
|