@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
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { q as e, L as t, u as s, D as o } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
|
-
import { i as
|
|
3
|
-
import { d } from "./p-iQRr_fAH-Dvv1n8QD.js";
|
|
4
|
-
const
|
|
2
|
+
import { i as d } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
3
|
+
import { d as c } from "./p-iQRr_fAH-Dvv1n8QD.js";
|
|
4
|
+
const a = t(class extends s {
|
|
5
5
|
constructor(i) {
|
|
6
6
|
super(), i !== !1 && this.__registerHost(), this.__attachShadow();
|
|
7
7
|
}
|
|
8
8
|
connectedCallback() {
|
|
9
|
-
const i =
|
|
9
|
+
const i = d();
|
|
10
10
|
i !== void 0 && this._el.shadowRoot?.adoptedStyleSheets.push(i);
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return o(
|
|
13
|
+
return o(c, { key: "186df453f30acd372d984cda3cdc1e6ecdc1f55a", name: this.name, size: this.size, appearance: this.appearance, alt: this.alt, titleId: this.titleId });
|
|
14
14
|
}
|
|
15
15
|
get _el() {
|
|
16
16
|
return this;
|
|
@@ -19,13 +19,13 @@ const n = t(class extends s {
|
|
|
19
19
|
return ".gids-icon{color:var(--gidsIcon-color, var(--gids-color-icon-default));fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%);flex-shrink:0}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}";
|
|
20
20
|
}
|
|
21
21
|
}, [1, "gids-icon", { name: [1], size: [1], appearance: [1], alt: [1], titleId: [1, "title-id"] }]);
|
|
22
|
-
function
|
|
22
|
+
function n() {
|
|
23
23
|
typeof customElements < "u" && ["gids-icon"].forEach(((i) => {
|
|
24
|
-
i === "gids-icon" && (customElements.get(e(i)) || customElements.define(e(i),
|
|
24
|
+
i === "gids-icon" && (customElements.get(e(i)) || customElements.define(e(i), a));
|
|
25
25
|
}));
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
n();
|
|
28
28
|
export {
|
|
29
|
-
|
|
29
|
+
a as d,
|
|
30
30
|
n
|
|
31
31
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { q as f, L as g, u as v, D as c } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
2
|
import { d as p } from "./p-iQRr_fAH-Dvv1n8QD.js";
|
|
3
|
-
import { o as I } from "./p-
|
|
3
|
+
import { o as I } from "./p-BwDi-0yS-vyn3pUko.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: "2951a29a49334e9a532936ac5d02fa3dd349969c", class: t, "aria-control": n ?? "" }, c("gids-toggle-button", { key: "6f3baa33a5d89b4ca3ef09b4bba8bddf43b2738d", 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: "3d95a4f59ddb5f2760c2069522f967791a6dd252", class: "gids-filter__menu", id: n, role: "pickerbox", onClick: this.handleMenuClick }, c("slot", { key: "0619fc130d7b4f15bceccf1df07d546abc6ebfdd", onSlotchange: () => this.evaluateSlottedMenuExistence() })));
|
|
146
146
|
}
|
|
147
147
|
get hostElement() {
|
|
148
148
|
return this;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { q as h, L as f, u as p, D as d, P as g } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
|
-
import { b as P } from "./p-
|
|
3
|
-
import { i as M,
|
|
2
|
+
import { b as P } from "./p-D2VR17v2-C0k_l_CT.js";
|
|
3
|
+
import { i as M, t as b } from "./p-BBlUduEr-CWdvgBS6.js";
|
|
4
4
|
import { r as u } from "./p-BRNvHMdK-CqGtfAsn.js";
|
|
5
|
-
import { y as v } from "./p-
|
|
5
|
+
import { y as v } from "./p-Dt270JVs-DJODMRWa.js";
|
|
6
6
|
import { c as x } from "./clsx-OuTLNxxd.js";
|
|
7
7
|
const S = (i) => x("gids-profile-menu", i), V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8
8
|
__proto__: null,
|
|
@@ -50,7 +50,7 @@ const S = (i) => x("gids-profile-menu", i), V = /* @__PURE__ */ Object.freeze(/*
|
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
52
|
const i = this?.headerItem, e = this?.headerVisible, n = this?.headerDividerVisible, o = this?.listSectionDividerVisible, t = this?.profileMenuItems ?? [], r = y();
|
|
53
|
-
return d(g, { key: "
|
|
53
|
+
return d(g, { key: "a9e5e6fa7da9269296f465e35e911df47fc6d19c", class: r }, d(M, { key: "0413c908c8a031094d9dd2cd0c563cba8a201d3f", type: this.hasProfileMenuItems() ? "default" : "no-options" }, e ? d("div", { class: "gids-profile-menu__header-container" }, d("gids-profile-menu-header", { ...i, onHeaderAvatarPress: this.onHeaderAvatarPress, onHeaderTitlePress: this.onHeaderTitlePress, onHeaderSupportingTextPress: this.onHeaderSupportingTextPress })) : void 0, n && this.hasHeaderItem() ? d("div", { class: "gids-profile-menu__header-divider-container" }, d(u, null)) : void 0, t.map(((l, s) => d(b, { key: `${s + 1}`, sectionLabel: l?.sectionLabel ?? "" }, (l?.items ?? []).map(((a, m) => {
|
|
54
54
|
const c = this.isThisItemSelected({ ...a, sectionIndex: s, itemIndex: m });
|
|
55
55
|
return console.log("_thisItemSelected", c), d(P, { ...a, key: `${m + 1}`, id: a.id, index: m, onPressListItem: (I) => this.onListItemPress({ event: I, sectionIndex: s, itemIndex: m, item: a }), selected: c }, a?.leadingLabel);
|
|
56
56
|
})), s < t.length - 1 && o ? d(u, null) : void 0)))));
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { q as s, L as b, u as I, D as d, P as C } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
|
+
import { r as m } from "./p-BRNvHMdK-CqGtfAsn.js";
|
|
3
|
+
import { d as h } from "./p-iQRr_fAH-Dvv1n8QD.js";
|
|
4
|
+
import { N as P } from "./p-CCX8DA2Z-D0OkaCKx.js";
|
|
5
|
+
import { u as k } from "./p-3H10HA8U-DWG31yfh.js";
|
|
6
|
+
import { l as f } from "./p-cXOH6OAQ-BRmZ0lXm.js";
|
|
7
|
+
import { P as x } from "./p-D8vooi3L-C5jeoC6H.js";
|
|
8
|
+
import { m as v } from "./p-CJ1tQlEt-B8GYL1we.js";
|
|
9
|
+
import { f as M } from "./p-Cf9ipNLT-HF4MWnLF.js";
|
|
10
|
+
import { g as O } from "./p-B2CvDGSE-B-50q6JD.js";
|
|
11
|
+
import { u as j } from "./p-Bbw1WCO7-CJU0y0iF.js";
|
|
12
|
+
import { h as S } from "./p-BGBsQSqM-DtooH-AA.js";
|
|
13
|
+
import { c as N } from "./p-CS2U2Mro-6wGJ-t9P.js";
|
|
14
|
+
import { n as E } from "./p-DB0ZJi5J-BEYBVVuq.js";
|
|
15
|
+
import { r as Y } from "./p-_OVEnTXa-q7qjnzI3.js";
|
|
16
|
+
import { f as w } from "./p-lVcUFx2e-D6N6qefs.js";
|
|
17
|
+
import { b as V } from "./p-DuonIHDh-B6YKWTfP.js";
|
|
18
|
+
import { g as o, c as l, d as c, h as _, i as q } from "./GidsDatePickerSharedUtils-Dh5qFlYA.js";
|
|
19
|
+
import { c as $ } from "./clsx-OuTLNxxd.js";
|
|
20
|
+
const A = (e) => $("gids-date-picker", e), F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21
|
+
__proto__: null,
|
|
22
|
+
getGidsDatePickerClassNames: A
|
|
23
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsDatePickerClassNames: G } = F, L = b(class extends I {
|
|
24
|
+
constructor(e) {
|
|
25
|
+
super(), e !== !1 && this.__registerHost(), this.appearance = "default", this.menuPlacement = "bottom", this.menuConstrainPlacements = ["bottom", "top"], this.marginDays = 0, this.type = "menu", this.panelActionsAppearance = "default", this.selectedYearObj = void 0, this.selectedMonthObj = void 0, this.selectedDayObj = void 0, this.selectedCalendarPickerObj = void 0, this.handleYearChange = (a) => {
|
|
26
|
+
if (this.selectedYearObj = { ...a }, this.canEmitMenuDatePickerEvent() && this.onDateChange) {
|
|
27
|
+
const t = this?.selectedMonthObj, n = this?.selectedDayObj, r = this.captureMenuDatePickerFullDate(), i = o(r);
|
|
28
|
+
this.onDateChange({ monthId: t?.id, dayId: n?.id, yearId: a.id, fullDate: i?.fullDate, monthName: i?.month, dayInNumber: n?.dayInNumber, day: i?.day, year: a.year, monthInNumber: t?.month, selected: !0, monthSectionIndex: t?.sectionIndex, monthItemIndex: t?.itemIndex, daySectionIndex: n?.sectionIndex, dayItemIndex: n?.itemIndex, yearSectionIndex: a?.sectionIndex, yearItemIndex: a?.itemIndex, startDate: this?.startDate ?? l, endDate: this?.endDate ?? String(c), marginDays: this?.marginDays ?? 0, type: "menu" });
|
|
29
|
+
}
|
|
30
|
+
}, this.handleMonthChange = (a) => {
|
|
31
|
+
if (this.selectedMonthObj = { ...a }, this.canEmitMenuDatePickerEvent() && this.onDateChange) {
|
|
32
|
+
const t = this?.selectedYearObj, n = this?.selectedDayObj, r = this.captureMenuDatePickerFullDate(), i = o(r);
|
|
33
|
+
this.onDateChange({ yearId: t?.id, dayId: n?.id, monthId: a.id, fullDate: i?.fullDate, monthName: i?.month, dayInNumber: n?.dayInNumber, day: i?.day, monthInNumber: a.month, year: t?.year, selected: !0, yearSectionIndex: t?.sectionIndex, yearItemIndex: t?.itemIndex, daySectionIndex: n?.sectionIndex, dayItemIndex: n?.itemIndex, monthSectionIndex: a?.sectionIndex, monthItemIndex: a?.itemIndex, startDate: this?.startDate ?? l, endDate: this?.endDate ?? String(c), marginDays: this?.marginDays ?? 0, type: "menu" });
|
|
34
|
+
}
|
|
35
|
+
}, this.handleDayChange = (a) => {
|
|
36
|
+
if (this.selectedDayObj = { ...a }, this.canEmitMenuDatePickerEvent() && this.onDateChange) {
|
|
37
|
+
const t = this?.selectedYearObj, n = this?.selectedMonthObj, r = this.captureMenuDatePickerFullDate(), i = o(r);
|
|
38
|
+
this.onDateChange({ yearId: t?.id, monthId: n?.id, dayId: a.id, fullDate: i?.fullDate, monthName: i?.month, monthInNumber: n?.month, day: i?.day, dayInNumber: a.dayInNumber, year: t?.year, selected: !0, yearSectionIndex: t?.sectionIndex, yearItemIndex: t?.itemIndex, monthSectionIndex: n?.sectionIndex, monthItemIndex: n?.itemIndex, daySectionIndex: a?.sectionIndex, dayItemIndex: a?.itemIndex, startDate: this?.startDate ?? l, endDate: this?.endDate ?? String(c), marginDays: this?.marginDays ?? 0, type: "menu" });
|
|
39
|
+
}
|
|
40
|
+
}, this.handleCalendarNextChange = (a) => {
|
|
41
|
+
this.onNextChange && this.onNextChange(a);
|
|
42
|
+
}, this.handleCalendarPanelMonthChange = (a) => {
|
|
43
|
+
this.onPanelMonthChange && this.onPanelMonthChange(a);
|
|
44
|
+
}, this.handleCalendarPanelYearChange = (a) => {
|
|
45
|
+
this.onPanelYearChange && this.onPanelYearChange(a);
|
|
46
|
+
}, this.handleCalendarPreviousChange = (a) => {
|
|
47
|
+
this.onPreviousChange && this.onPreviousChange(a);
|
|
48
|
+
}, this.handleCalendarDateSelectionChange = ({ event: a }) => {
|
|
49
|
+
if (this.selectedCalendarPickerObj = a, a?.date && a.date !== "" && this?.onCalendarDateChange) {
|
|
50
|
+
const t = o(a.date);
|
|
51
|
+
this.onCalendarDateChange({ monthId: void 0, dayId: void 0, yearId: void 0, fullDate: a.date, monthName: t?.month, dayInNumber: t?.dateInNumber, day: t?.day, year: t?.year, monthInNumber: t?.monthInNumber, selected: !0, monthSectionIndex: 0, monthItemIndex: 0, daySectionIndex: 0, dayItemIndex: 0, yearSectionIndex: 0, yearItemIndex: 0, startDate: this?.startDate ?? l, endDate: this?.endDate ?? String(c), marginDays: this?.marginDays ?? 0, type: "calendar" });
|
|
52
|
+
}
|
|
53
|
+
}, this.canEmitMenuDatePickerEvent = () => !!(this.isMenuYearSelected() && this.isMenuMonthSelected() && this.isMenuDaySelected()), this.captureMenuDatePickerFullDate = () => {
|
|
54
|
+
if (this.canEmitMenuDatePickerEvent()) return `${this?.selectedYearObj?.year}-${this?.selectedMonthObj?.month}-${this?.selectedDayObj?.dayInNumber}`;
|
|
55
|
+
}, this.isMenuYearSelected = () => !(!this?.selectedYearObj?.year || this.selectedYearObj.year.toString() === ""), this.isMenuMonthSelected = () => !(!this?.selectedMonthObj?.month || this.selectedMonthObj.month.toString() === ""), this.isMenuDaySelected = () => !(!this?.selectedDayObj?.dayInNumber || this.selectedDayObj.dayInNumber.toString() === ""), this.syncYearDropdownPickerValue = () => this?.selectedYearObj?.year ? String(this.selectedYearObj.year) : this?.yearValue, this.syncMonthDropdownPickerValue = () => this?.selectedMonthObj?.month ? String(this.selectedMonthObj.month) : this?.monthValue, this.syncDayDropdownPickerValue = () => this?.selectedDayObj?.dayInNumber ? String(this.selectedDayObj.dayInNumber) : this?.dateValue, this.syncCalendarPickerValue = () => this?.selectedCalendarPickerObj?.date ? this.selectedCalendarPickerObj.date : this?.calendarPickerValue, this.isMenuMonthInteractive = () => !!this.isMenuYearSelected(), this.isMenuDayInteractive = () => !!this.isMenuMonthSelected();
|
|
56
|
+
}
|
|
57
|
+
handleInteractivityChange(e) {
|
|
58
|
+
this.disabled = e, this.readOnly = e;
|
|
59
|
+
}
|
|
60
|
+
menuPlacementChanged(e) {
|
|
61
|
+
this.menuPlacement = e;
|
|
62
|
+
}
|
|
63
|
+
menuConstrainPlacementsChanged(e) {
|
|
64
|
+
this.menuConstrainPlacements = e;
|
|
65
|
+
}
|
|
66
|
+
typeChanged(e) {
|
|
67
|
+
this.type = e;
|
|
68
|
+
}
|
|
69
|
+
startDateChanged(e) {
|
|
70
|
+
this.startDate = e;
|
|
71
|
+
}
|
|
72
|
+
endDateChanged(e) {
|
|
73
|
+
this.endDate = e;
|
|
74
|
+
}
|
|
75
|
+
marginDaysChanged(e) {
|
|
76
|
+
this.marginDays = e;
|
|
77
|
+
}
|
|
78
|
+
connectedCallback() {
|
|
79
|
+
}
|
|
80
|
+
render() {
|
|
81
|
+
const e = G(), a = this?.type ?? "menu", t = this?.startDate ?? q(), n = this?.endDate ?? _(), r = o(t), i = o(n), u = { appearance: this.appearance, loading: this.loading, disabled: this.disabled, readOnly: this.readOnly, required: this.required, value: this.syncYearDropdownPickerValue(), name: this.name, inputProps: { ...this?.yearInputProps ?? {} } }, g = { appearance: this.appearance, loading: this.loading, disabled: this.disabled || !this.isMenuMonthInteractive(), readOnly: this.readOnly, required: this.required, value: this.syncMonthDropdownPickerValue(), name: this.name, inputProps: { ...this?.monthInputProps ?? {} } }, p = { appearance: this.appearance, loading: this.loading, disabled: this.disabled || !this.isMenuDayInteractive(), readOnly: this.readOnly, required: this.required, value: this.syncDayDropdownPickerValue(), name: this.name, inputProps: { ...this?.dateInputProps ?? {} } }, y = { appearance: this.appearance, loading: this.loading, disabled: this.disabled, readOnly: this.readOnly, required: this.required, value: this.syncCalendarPickerValue(), name: this.name, inputProps: { ...this?.calendarPickerInputProps ?? {} } };
|
|
82
|
+
return d(C, { key: "be014448d200ce06f4ff22acc2b12b557ca3b1c7", class: e }, a === "menu" ? d("div", { class: "gids-date-picker__menu-date-picker-container" }, d("gids-year-dropdown-picker", { startYear: r?.year, endYear: i?.year, ...u, onYearChange: this.handleYearChange }, d(h, { name: "calendar", slot: "leadingIconDropdown" })), d("div", { class: "gids-date-picker__menu-divider-container" }, d(m, { orientation: "vertical" })), d("gids-month-dropdown-picker", { startMonth: r?.monthInNumber, endMonth: i?.monthInNumber, ...g, onMonthChange: this.handleMonthChange }, d(h, { name: "calendar", slot: "leadingIconDropdown" })), d("div", { class: "gids-date-picker__menu-divider-container" }, d(m, { orientation: "vertical" })), d("gids-day-dropdown-picker", { startDay: r?.dateInNumber, endDay: i?.dateInNumber, ...p, onDayChange: this.handleDayChange }, d(h, { name: "calendar", slot: "leadingIconDropdown" }))) : d("gids-calendar-picker", { ...y, startYear: r?.year, endYear: i?.year, panelActionsAppearance: this?.panelActionsAppearance ?? "default", monthPickerDisabled: this.monthPickerDisabled, nextDisabled: this.nextDisabled, panelDisabled: this.panelDisabled, previousDisabled: this.previousDisabled, yearPickerDisabled: this.yearPickerDisabled, onNextChange: this.handleCalendarNextChange, onPanelMonthChange: this.handleCalendarPanelMonthChange, onPanelYearChange: this.handleCalendarPanelYearChange, onPreviousChange: this.handleCalendarPreviousChange, onSelectionCalendarCell: (D) => this.handleCalendarDateSelectionChange({ event: D }) }, d(h, { name: "calendar", slot: "leadingIconDropdown" })));
|
|
83
|
+
}
|
|
84
|
+
get hostElement() {
|
|
85
|
+
return this;
|
|
86
|
+
}
|
|
87
|
+
static get watchers() {
|
|
88
|
+
return { disabled: [{ handleInteractivityChange: 0 }], readOnly: [{ handleInteractivityChange: 0 }], menuPlacement: [{ menuPlacementChanged: 0 }], menuConstrainPlacements: [{ menuConstrainPlacementsChanged: 0 }], type: [{ typeChanged: 0 }], startDate: [{ startDateChanged: 0 }], endDate: [{ endDateChanged: 0 }], marginDays: [{ marginDaysChanged: 0 }] };
|
|
89
|
+
}
|
|
90
|
+
static get style() {
|
|
91
|
+
return ".gids-date-picker{position:relative}.gids-date-picker__menu-date-picker-container{display:flex;align-items:center;gap:var(--gids-gap-150)}.gids-date-picker__menu-divider-container{display:flex;align-self:stretch;align-items:center;flex-shrink:0}";
|
|
92
|
+
}
|
|
93
|
+
}, [0, "gids-date-picker", { appearance: [1], yearInputProps: [16], monthInputProps: [16], dateInputProps: [16], calendarPickerInputProps: [16], disabled: [516], readOnly: [516, "read-only"], loading: [516], yearValue: [513, "year-value"], monthValue: [513, "month-value"], dateValue: [513, "date-value"], calendarPickerValue: [513, "calendar-picker-value"], name: [1], required: [4], menuPlacement: [1, "menu-placement"], menuConstrainPlacements: [16], startDate: [1, "start-date"], endDate: [1, "end-date"], marginDays: [2, "margin-days"], type: [1], monthPickerDisabled: [4, "month-picker-disabled"], nextDisabled: [4, "next-disabled"], panelDisabled: [4, "panel-disabled"], previousDisabled: [4, "previous-disabled"], yearPickerDisabled: [4, "year-picker-disabled"], panelActionsAppearance: [1, "panel-actions-appearance"], onNextChange: [16], onPreviousChange: [16], onPanelMonthChange: [16], onPanelYearChange: [16], onDateChange: [16], onCalendarDateChange: [16], selectedYearObj: [32], selectedMonthObj: [32], selectedDayObj: [32], selectedCalendarPickerObj: [32] }, void 0, { disabled: [{ handleInteractivityChange: 0 }], readOnly: [{ handleInteractivityChange: 0 }], menuPlacement: [{ menuPlacementChanged: 0 }], menuConstrainPlacements: [{ menuConstrainPlacementsChanged: 0 }], type: [{ typeChanged: 0 }], startDate: [{ startDateChanged: 0 }], endDate: [{ endDateChanged: 0 }], marginDays: [{ marginDaysChanged: 0 }] }]);
|
|
94
|
+
function z() {
|
|
95
|
+
typeof customElements < "u" && ["gids-date-picker", "gids-calendar", "gids-calendar-header-panel", "gids-calendar-month-list", "gids-calendar-picker", "gids-calendar-year-list", "gids-day-dropdown-picker", "gids-dot", "gids-dropdown", "gids-dropdown-picker", "gids-flyout-panel", "gids-icon", "gids-input", "gids-month-dropdown-picker", "gids-year-dropdown-picker"].forEach(((e) => {
|
|
96
|
+
switch (e) {
|
|
97
|
+
case "gids-date-picker":
|
|
98
|
+
customElements.get(s(e)) || customElements.define(s(e), L);
|
|
99
|
+
break;
|
|
100
|
+
case "gids-calendar":
|
|
101
|
+
customElements.get(s(e)) || P();
|
|
102
|
+
break;
|
|
103
|
+
case "gids-calendar-header-panel":
|
|
104
|
+
customElements.get(s(e)) || k();
|
|
105
|
+
break;
|
|
106
|
+
case "gids-calendar-month-list":
|
|
107
|
+
customElements.get(s(e)) || f();
|
|
108
|
+
break;
|
|
109
|
+
case "gids-calendar-picker":
|
|
110
|
+
customElements.get(s(e)) || x();
|
|
111
|
+
break;
|
|
112
|
+
case "gids-calendar-year-list":
|
|
113
|
+
customElements.get(s(e)) || v();
|
|
114
|
+
break;
|
|
115
|
+
case "gids-day-dropdown-picker":
|
|
116
|
+
customElements.get(s(e)) || M();
|
|
117
|
+
break;
|
|
118
|
+
case "gids-dot":
|
|
119
|
+
customElements.get(s(e)) || O();
|
|
120
|
+
break;
|
|
121
|
+
case "gids-dropdown":
|
|
122
|
+
customElements.get(s(e)) || j();
|
|
123
|
+
break;
|
|
124
|
+
case "gids-dropdown-picker":
|
|
125
|
+
customElements.get(s(e)) || S();
|
|
126
|
+
break;
|
|
127
|
+
case "gids-flyout-panel":
|
|
128
|
+
customElements.get(s(e)) || N();
|
|
129
|
+
break;
|
|
130
|
+
case "gids-icon":
|
|
131
|
+
customElements.get(s(e)) || E();
|
|
132
|
+
break;
|
|
133
|
+
case "gids-input":
|
|
134
|
+
customElements.get(s(e)) || Y();
|
|
135
|
+
break;
|
|
136
|
+
case "gids-month-dropdown-picker":
|
|
137
|
+
customElements.get(s(e)) || w();
|
|
138
|
+
break;
|
|
139
|
+
case "gids-year-dropdown-picker":
|
|
140
|
+
customElements.get(s(e)) || V();
|
|
141
|
+
}
|
|
142
|
+
}));
|
|
143
|
+
}
|
|
144
|
+
z();
|
|
145
|
+
export {
|
|
146
|
+
z as E,
|
|
147
|
+
L as w
|
|
148
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { q as s, L as P, u as A, D as n, P as x } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
|
-
import { P as v, T as L } from "./p-
|
|
2
|
+
import { P as v, T as L } from "./p-69VXkSHc-vZd5gQWS.js";
|
|
3
3
|
import { d as T } from "./p-iQRr_fAH-Dvv1n8QD.js";
|
|
4
|
-
import {
|
|
4
|
+
import { c as E } from "./p-CS2U2Mro-6wGJ-t9P.js";
|
|
5
5
|
import { c as y } from "./clsx-OuTLNxxd.js";
|
|
6
6
|
const D = (e) => y("gids-sidebar-item", e), _ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7
7
|
__proto__: null,
|
|
@@ -77,7 +77,7 @@ const D = (e) => y("gids-sidebar-item", e), _ = /* @__PURE__ */ Object.freeze(/*
|
|
|
77
77
|
}
|
|
78
78
|
render() {
|
|
79
79
|
const e = this.id, t = this?.appearance ?? "subtle", a = this?.selectionAppearance ?? "default", i = this?.leadingLabel, l = this?.leadingSupportingText, c = this?.trailingLabel, m = this?.trailingSupportingText, u = this?.disabled ?? !1, o = this?.selectedState ?? !1, h = this?.menuId ?? "sidebar-menu-item", g = this?.menuPlacement ?? "right", I = this?.menuConstrainPlacements && this.menuConstrainPlacements.length > 0 ? this.menuConstrainPlacements : ["bottom", "left", "right", "top", "left-start", "left-end", "right-start", "right-end"], p = this?.menuData ?? [], b = this?.sidebarMenuItemAppearance ?? "subtle", S = this?.sidebarMenuItemSelectionAppearance ?? "default", M = this?.selectedMenuItemSectionIdState ?? void 0, C = this?.selectedMenuItemIdState ?? void 0, r = this.hasMenu(), f = k();
|
|
80
|
-
return n(x, { key: "
|
|
80
|
+
return n(x, { key: "a844b77f7e7119f075e0fc56dcf495761d6147db", id: e, class: f }, n(L, { key: "d6f0983f42d4fac33ddcbe40eb24b1eebf6aff71", id: e, appearance: t, selectionAppearance: a, leadingLabel: i, leadingSupportingText: l, trailingLabel: c, trailingSupportingText: m, selected: o, disabled: u, leadingIcon: n("slot", { name: "sidebarItemLeadingIcon" }), leadingAccessory: n("slot", { name: "sidebarItemLeadingAccessory" }), trailingAccessory: n("slot", { name: "sidebarItemTrailingAccessory" }), trailingIcon: r ? n(T, { name: "chevron-right", size: "md", appearance: "regular", alt: "" }) : void 0, onPressSidebarMenuItem: (d) => this.onSidebarMenuItemPress({ event: d }) }), r ? n("div", { class: "gids-sidebar-item__menu-container" }, n("gids-sidebar-menu", { htmlFor: e, menuData: p, id: h, placement: g, constrainPlacements: I, sidebarMenuItemAppearance: b, sidebarMenuItemSelectionAppearance: S, selectedSectionId: M, selectedItemId: C, onSidebarMenuChange: (d) => this.onChangeSidebarMenu({ event: d }) })) : void 0);
|
|
81
81
|
}
|
|
82
82
|
get hostElement() {
|
|
83
83
|
return this;
|
|
@@ -9,7 +9,7 @@ const n = ({ appearance: e, size: s }, i) => m("gids-dismiss-button", {
|
|
|
9
9
|
}, i), b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10
10
|
__proto__: null,
|
|
11
11
|
getGidsDismissButtonClassNames: n
|
|
12
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsDismissButtonClassNames: c } = b, f = ({ appearance: e = "subtle", size: s = "md", disabled: i = !1, class: a, onPressDismiss: o, label: l, ...r }) => t("button", { class: c({ appearance: e, size: s }, a), onClick: o, disabled: i, "aria-label": l, ...r }, t(d, { name: "
|
|
12
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsDismissButtonClassNames: c } = b, f = ({ appearance: e = "subtle", size: s = "md", disabled: i = !1, class: a, onPressDismiss: o, label: l, ...r }) => t("button", { class: c({ appearance: e, size: s }, a), onClick: o, disabled: i, "aria-label": l, ...r }, t(d, { name: "x-circle", appearance: "regular" }));
|
|
13
13
|
export {
|
|
14
14
|
f as r
|
|
15
15
|
};
|
|
@@ -76,7 +76,7 @@ const x = ({ text: e, alt: a }) => a === "" || a === void 0 && e === void 0, P =
|
|
|
76
76
|
}
|
|
77
77
|
render() {
|
|
78
78
|
const e = this?.headerItemsPosition ?? "default", a = this?.headerTitle, t = this?.headerSupportingText, n = this?.headerDescription, s = this?.avatarVisible ?? !1, d = this?.avatarBadgeVisible ?? !1, r = this?.avatarProps, o = r?.badgeProps, l = M({ headerItemsPosition: e }), g = r?.size ?? "xl";
|
|
79
|
-
return i(u, { key: "
|
|
79
|
+
return i(u, { key: "3180ee8375929959ca8e809ba5e8d856077789a4", class: l }, s ? i(j, { onClick: this.onAvatarItemPress, appearance: r?.appearance ?? "text", color: r?.color ?? "brand", size: g, text: this.getAvatarText(), imageSrc: r?.imageSrc ?? "", alt: r?.alt ?? "alt-img", badge: d ? i(b, { appearance: o?.appearance ?? "information", type: o?.type, count: o?.count, outline: o?.outline }) : void 0 }) : void 0, i("div", { key: "dbfb85c27e653cdc909164419c07635a501b1bf7", class: y("gids-profile-menu-header__content-container-default", { "gids-profile-menu-header__content-container-centralized": e === "centralized" }) }, i("label", { key: "603b0ea17ffeb015c4f84e648041a36ea083ea4d", onClick: this.onHeaderItemTitlePress }, a), i("span", { key: "8fb6d1f72ef96a939bd4ca3e46ade01a3eec798f", onClick: this.onHeaderItemSupportingTextPress }, t), i("p", { key: "bbe61a312b5754da90fae5280d376324afbc0c35" }, n)));
|
|
80
80
|
}
|
|
81
81
|
get hostElement() {
|
|
82
82
|
return this;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { q as d, L as p, u as g, D as n, P as y } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
|
+
import { i as Y, t as b } from "./p-BBlUduEr-CWdvgBS6.js";
|
|
3
|
+
import { i as f } from "./p-B3AB3GQ0-DdgNC9FJ.js";
|
|
4
|
+
import { u as C } from "./p-Bbw1WCO7-CJU0y0iF.js";
|
|
5
|
+
import { c as P } from "./p-CS2U2Mro-6wGJ-t9P.js";
|
|
6
|
+
import { r as k } from "./p-_OVEnTXa-q7qjnzI3.js";
|
|
7
|
+
import { f as c, b as m, l as I } from "./GidsDatePickerSharedUtils-Dh5qFlYA.js";
|
|
8
|
+
import { c as D } from "./clsx-OuTLNxxd.js";
|
|
9
|
+
const v = (e) => D("gids-year-dropdown-picker", e), w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10
|
+
__proto__: null,
|
|
11
|
+
getGidsYearDropdownPickerClassNames: v
|
|
12
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsYearDropdownPickerClassNames: 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.startYear = Number(c), this.endYear = Number(m), this.hasLeadingIcon = !1, this.yearsMenuData = [], this.selectedYearObj = void 0, this.handleYearSelectionChange = ({ event: t, sectionIndex: s, itemIndex: o }) => {
|
|
15
|
+
const a = t?.detail, i = { originalEvent: t, id: a.id, year: a?.title ? Number(a.title) : void 0, sectionIndex: s, itemIndex: o, selected: !0 };
|
|
16
|
+
this.selectedYearObj = i, this.onYearChange && this.onYearChange(i);
|
|
17
|
+
}, this.feedYearsDataState = () => {
|
|
18
|
+
const t = this?.startYear ?? c, s = this?.endYear ?? m;
|
|
19
|
+
this.yearsMenuData = I({ startYear: String(t), endYear: String(s) });
|
|
20
|
+
}, this.isYearSelected = (t) => t?.id === this?.selectedYearObj?.id, this.syncYearDropdownPickerValue = () => this?.selectedYearObj?.year ? String(this.selectedYearObj.year) : 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
|
+
startYearChanged(e) {
|
|
32
|
+
this.startYear = e, this.feedYearsDataState();
|
|
33
|
+
}
|
|
34
|
+
endYearChanged(e) {
|
|
35
|
+
this.endYear = e, this.feedYearsDataState();
|
|
36
|
+
}
|
|
37
|
+
connectedCallback() {
|
|
38
|
+
}
|
|
39
|
+
componentWillLoad() {
|
|
40
|
+
this.checkSlots(), this.feedYearsDataState();
|
|
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 : "year-input", s = { id: t, appearance: this.appearance, loading: this.loading, disabled: this.disabled, readOnly: this.readOnly, required: this.required, value: this.syncYearDropdownPickerValue(), name: this.name, inputProps: { ...this?.inputProps ?? {}, id: t } }, o = this?.yearsMenuData ?? [];
|
|
50
|
+
return n(y, { key: "eb898679c65418280db85683ba0fe83cd9299eae", class: e }, n("gids-dropdown", { key: "208db97501bd7002b47004a66dab7359e66baf85", ...s, menuPlacement: this?.menuPlacement ?? "bottom", menuConstrainPlacements: this.menuConstrainPlacements ?? ["bottom", "top"] }, this.hasLeadingIcon && n("slot", { key: "1be4cf288295891e33d97ffb0ea7912f38316fe6", name: "leadingIconDropdown", slot: "leadingIconDropdown" }), n(Y, { key: "e442aae4fc327ca1aed6a1c81c9de6ea32da622c", type: this.loading ? "loading" : "default" }, o.map(((a, i) => {
|
|
51
|
+
const h = a?.menuItems ?? [];
|
|
52
|
+
return n(b, { key: `${a.sectionId}_${i}`, sectionLabel: a?.sectionLabel }, h.map(((r, l) => n(f, { id: r.id, title: r?.title, value: r?.value, index: l, disabled: r?.disabled, selected: this.isYearSelected(r), onPressDropdownItem: (u) => this.handleYearSelectionChange({ event: u, sectionIndex: i, itemIndex: l }) }))));
|
|
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 }], startYear: [{ startYearChanged: 0 }], endYear: [{ endYearChanged: 0 }] };
|
|
60
|
+
}
|
|
61
|
+
static get style() {
|
|
62
|
+
return ".gids-year-dropdown-picker{position:relative;display:flex;flex-direction:column}";
|
|
63
|
+
}
|
|
64
|
+
}, [260, "gids-year-dropdown-picker", { appearance: [1], inputProps: [16], disabled: [516], readOnly: [516, "read-only"], loading: [516], value: [513], name: [1], onYearChange: [16], required: [4], menuPlacement: [1, "menu-placement"], menuConstrainPlacements: [16], startYear: [2, "start-year"], endYear: [2, "end-year"], hasLeadingIcon: [32], yearsMenuData: [32], selectedYearObj: [32] }, void 0, { disabled: [{ handleInteractivityChange: 0 }], readOnly: [{ handleInteractivityChange: 0 }], menuPlacement: [{ menuPlacementChanged: 0 }], menuConstrainPlacements: [{ menuConstrainPlacementsChanged: 0 }], startYear: [{ startYearChanged: 0 }], endYear: [{ endYearChanged: 0 }] }]);
|
|
65
|
+
function x() {
|
|
66
|
+
typeof customElements < "u" && ["gids-year-dropdown-picker", "gids-dropdown", "gids-flyout-panel", "gids-input"].forEach(((e) => {
|
|
67
|
+
switch (e) {
|
|
68
|
+
case "gids-year-dropdown-picker":
|
|
69
|
+
customElements.get(d(e)) || customElements.define(d(e), O);
|
|
70
|
+
break;
|
|
71
|
+
case "gids-dropdown":
|
|
72
|
+
customElements.get(d(e)) || C();
|
|
73
|
+
break;
|
|
74
|
+
case "gids-flyout-panel":
|
|
75
|
+
customElements.get(d(e)) || P();
|
|
76
|
+
break;
|
|
77
|
+
case "gids-input":
|
|
78
|
+
customElements.get(d(e)) || k();
|
|
79
|
+
}
|
|
80
|
+
}));
|
|
81
|
+
}
|
|
82
|
+
x();
|
|
83
|
+
export {
|
|
84
|
+
x as b,
|
|
85
|
+
O as y
|
|
86
|
+
};
|
|
@@ -54,9 +54,9 @@ const c = (e) => e.type === "hidden", f = (e) => {
|
|
|
54
54
|
this._el.removeEventListener("click", this._focusInput);
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
|
-
return a(d, { key: "
|
|
57
|
+
return a(d, { key: "fb7b4c0ef80c583f3507ce4d37db29d24ca2b562" }, a("slot", { key: "d8afd829fa9fbc074538b11d16f313da70edfd41", name: "leadingIcon" }), this.leadingLabel && a("span", { key: "7a1502d42be08f757dfef5e2749562a0d0abc7f0", class: "gids-input__label" }, this.leadingLabel), a("slot", { key: "3ad00b2a862b3a99fbaaef28af9a8228e23f6088", name: "leadingAccessory" }), a("input", { key: "1aa8cce113b2584ac9eee246db731c851dc10b83", ...this.inputProps, ref: (e) => {
|
|
58
58
|
this.#t = e, this.#e.value !== void 0 && (this.#t.value = this.#e.value, delete this.#e.value), this.#e.defaultValue !== void 0 && (this.#t.defaultValue = this.#e.defaultValue, delete this.#e.defaultValue);
|
|
59
|
-
}, class: "gids-input__control", name: this.name, disabled: this.disabled, readOnly: this.readOnly, required: this.required, onFocus: this._handleInputFocusAndBlur, onBlur: this._handleInputFocusAndBlur }), a("slot", { key: "
|
|
59
|
+
}, class: "gids-input__control", name: this.name, disabled: this.disabled, readOnly: this.readOnly, required: this.required, onFocus: this._handleInputFocusAndBlur, onBlur: this._handleInputFocusAndBlur }), a("slot", { key: "dff99e9155afe94cdd7c7cd3229f8c802ca2534f", name: "trailingAccessory" }), this.trailingLabel && a("span", { key: "ace6d5236a1b0ab3446befbb9f4461405fae2070", class: "gids-input__label" }, this.trailingLabel), a("slot", { key: "c0d3c25ff0386ecb237a6747d2f578570de80f82", name: "trailingIcon" }), this.status === "incomplete" && a(n, { key: "c95bac733d0938c4ac2735c6aed6c8d4b8245d14", name: "warning", appearance: "filled", class: "gids-input__warning-icon" }), this.status === "complete" && a(n, { key: "0741fdf7121d191ecde85afa1119171752454d62", name: "positive", appearance: "filled", class: "gids-input__positive-icon" }), this.loading && a(r, { key: "5364733f911f6e1aad02d09084d1ffead9b7fac2", size: "md", indeterminate: !0 }));
|
|
60
60
|
}
|
|
61
61
|
get _el() {
|
|
62
62
|
return this;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { q as
|
|
2
|
-
import { i as h,
|
|
3
|
-
import { i as u } from "./p-
|
|
1
|
+
import { q as a, L as r, u as c, D as l } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
|
+
import { i as h, t as m } from "./p-BBlUduEr-CWdvgBS6.js";
|
|
3
|
+
import { i as u } from "./p-B3AB3GQ0-DdgNC9FJ.js";
|
|
4
4
|
import { c as p } from "./clsx-OuTLNxxd.js";
|
|
5
5
|
const f = (t) => p("gids-calendar-month-list", t), I = () => {
|
|
6
6
|
const t = [], s = new Intl.DateTimeFormat("en-US", { month: "long" });
|
|
@@ -20,16 +20,16 @@ const f = (t) => p("gids-calendar-month-list", t), I = () => {
|
|
|
20
20
|
}, Symbol.toStringTag, { value: "Module" })), { getGidsCalendarMonthListClassNames: g, getGidsCalendarMonthListMonths: M } = b, C = r(class extends c {
|
|
21
21
|
constructor(t) {
|
|
22
22
|
super(), t !== !1 && this.__registerHost(), this.type = "default", this.disabledIndices = [], this.divider = !1, this.hasItemListener = !1, this.suppressNextMenuClickSelection = !1, this.handleCalendarMenuItemSelect = (s) => {
|
|
23
|
-
const { title: e, value: n, selectedIndex: i, disabled:
|
|
24
|
-
|
|
23
|
+
const { title: e, value: n, selectedIndex: i, disabled: o, id: d } = s.detail;
|
|
24
|
+
o || typeof e != "string" || (this.suppressNextMenuClickSelection = !0, queueMicrotask((() => {
|
|
25
25
|
this.suppressNextMenuClickSelection = !1;
|
|
26
|
-
})), this.applySelection({ id:
|
|
26
|
+
})), this.applySelection({ id: d, month: e, monthInNumber: Number(n), disabled: !1, selectedIndex: i }));
|
|
27
27
|
}, this.handleMenuClick = (s) => {
|
|
28
28
|
if (this.suppressNextMenuClickSelection) return;
|
|
29
29
|
const e = s?.detail;
|
|
30
30
|
this.applySelection({ id: e.id, monthInNumber: Number(e.value), month: e.title, disabled: !1, selectedIndex: e.selectedIndex });
|
|
31
31
|
}, this.monthsList = () => M(), this.getSelectedItem = () => {
|
|
32
|
-
const s = this.selectedMonthNumber, e = this.monthsList(), n = e.findIndex(((
|
|
32
|
+
const s = this.selectedMonthNumber, e = this.monthsList(), n = e.findIndex(((o) => o.value === s));
|
|
33
33
|
let i;
|
|
34
34
|
return n != null && n !== -1 && (i = e[n]), { foundItem: i, foundIndex: n };
|
|
35
35
|
}, this.isItemSelected = (s) => {
|
|
@@ -60,9 +60,9 @@ const f = (t) => p("gids-calendar-month-list", t), I = () => {
|
|
|
60
60
|
}
|
|
61
61
|
render() {
|
|
62
62
|
const t = g();
|
|
63
|
-
return
|
|
63
|
+
return l("div", { key: "1992a073a048cca6005c2c2de241b13a7adca248", class: t }, l(h, { key: "3c26cb68a9760f7387c485e2a224eca4f1256c53", type: this.type, supportingText: this.noOptionsText }, l(m, { key: "647b8f75dc50a05cab39863ab979bb882c9f81c5", sectionLabel: "Months" }, this.monthsList().map(((s, e) => {
|
|
64
64
|
const n = `${e + 1}`, i = this.disabledIndices?.includes(e);
|
|
65
|
-
return
|
|
65
|
+
return l(u, { title: s.title, value: `${s.value}`, key: `${e.toString()}`, index: e, id: n, selected: this.isItemSelected(e), onPressDropdownItem: this.handleMenuClick, disabled: i, divider: this.divider, isPlaceholderItem: !1 });
|
|
66
66
|
})))));
|
|
67
67
|
}
|
|
68
68
|
get hostElement() {
|
|
@@ -71,7 +71,7 @@ const f = (t) => p("gids-calendar-month-list", t), I = () => {
|
|
|
71
71
|
}, [0, "gids-calendar-month-list", { type: [1], noOptionsText: [1, "no-options-text"], disabledIndices: [16], divider: [4], selectedMonthNumber: [2, "selected-month-number"], onSelectionMonthChange: [16] }]);
|
|
72
72
|
function L() {
|
|
73
73
|
typeof customElements < "u" && ["gids-calendar-month-list"].forEach(((t) => {
|
|
74
|
-
t === "gids-calendar-month-list" && (customElements.get(
|
|
74
|
+
t === "gids-calendar-month-list" && (customElements.get(a(t)) || customElements.define(a(t), C));
|
|
75
75
|
}));
|
|
76
76
|
}
|
|
77
77
|
L();
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { q as d, L as p, u as g, D as s, 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 { u as P } from "./p-Bbw1WCO7-CJU0y0iF.js";
|
|
5
|
+
import { c as y } from "./p-CS2U2Mro-6wGJ-t9P.js";
|
|
6
|
+
import { r as k } from "./p-_OVEnTXa-q7qjnzI3.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: a, itemIndex: h }) => {
|
|
15
|
+
const n = t?.detail, o = { originalEvent: t, id: n.id, month: n?.title ? Number(n.title) : void 0, sectionIndex: a, itemIndex: h, selected: !0 };
|
|
16
|
+
this.selectedMonthObj = o, this.onMonthChange && this.onMonthChange(o);
|
|
17
|
+
}, this.feedMonthsDataState = () => {
|
|
18
|
+
const t = this?.startMonth ?? l, a = this?.endMonth ?? c;
|
|
19
|
+
this.monthsMenuData = I({ startMonth: String(t), endMonth: String(a) });
|
|
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", a = { 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 s(M, { key: "5c28b117ff8bda651cbe6572772b7fd0031dba46", class: e }, s("gids-dropdown", { key: "4f334893ce786bd71a80c0dd22589c7b0097816b", ...a, menuPlacement: this?.menuPlacement ?? "bottom", menuConstrainPlacements: this.menuConstrainPlacements ?? ["bottom", "top"] }, this.hasLeadingIcon && s("slot", { key: "9db64618e39ae929e6210f954a421bd931a3ddc5", name: "leadingIconDropdown", slot: "leadingIconDropdown" }), s(b, { key: "f32752f4c1a2ff4836560243c44970c5305e04b9", type: this.loading ? "loading" : "default" }, h.map(((n, o) => {
|
|
51
|
+
const m = n?.menuItems ?? [];
|
|
52
|
+
return s(f, { key: `${n.sectionId}_${o}`, sectionLabel: n?.sectionLabel }, m.map(((i, r) => s(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
|
+
};
|
|
@@ -56,7 +56,7 @@ const g = (t) => _("gids-field", t), u = /* @__PURE__ */ Object.freeze(/* @__PUR
|
|
|
56
56
|
const a = this._getStatusModifierClass(s, "gids-field__status-text");
|
|
57
57
|
a != null && i.push(a);
|
|
58
58
|
}
|
|
59
|
-
return o(d, { key: "
|
|
59
|
+
return o(d, { key: "08955cbc6fa2aa3d1fb77b9adf0f4032b9cf988b" }, o("div", { key: "0c06dde5a88b24f8fa67981ee5a7c811b83ab1e7", class: p() }, o("div", { key: "5692ca38df0daa2b433494395e65281d7bcbf5b3", class: "gids-field__header", hidden: !this._hasLabelContent() }, o("slot", { key: "e87ee4f029ab59859e49b279ee7cefcee96656d5", ref: this._setLabelSlot, name: "label", onSlotchange: this._handleControlSlotChange }), o("div", { key: "77a08b54fd4e03cb9a3a4b4e1477d33aeb3b94f1", class: "gids-field__count", "aria-live": "polite" }, this.count)), o("div", { key: "f129ee9336c06ec9cc5ff57c31ea6ab991dda68e", class: "gids-field__control" }, o("slot", { key: "3e41e194c7f1d7a3b0b9e10a039cf3b0475d4185", ref: this._setControlSlot, onSlotchange: this._handleControlSlotChange })), o("p", { key: "3fa1b008ac769f3b43162e616945be51a00b3f7b", class: "gids-field__supporting-text", hidden: !this._shouldShowHelperText() }, this.helperText), t ? o("p", { class: i.join(" "), role: "status", "aria-live": "polite" }, this._renderStatusIcon(s), e !== void 0 ? o("span", null, e) : null) : null));
|
|
60
60
|
}
|
|
61
61
|
_hasLabelContent() {
|
|
62
62
|
return this._hasLabel;
|