@ganpatiinfo/gids-core-web 22.0.0 → 23.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/index.css +83 -34
- package/dist/css/index.css.map +1 -1
- package/dist/gids-action-bar.js +1 -1
- package/dist/gids-activity-gauge.js +1 -1
- package/dist/gids-advanced-tooltip.js +1 -1
- package/dist/gids-bar-chart.js +1 -1
- package/dist/gids-bento-card.js +1 -1
- package/dist/gids-calendar-header-panel.js +1 -1
- package/dist/gids-calendar-month-list.js +1 -1
- package/dist/gids-calendar-picker.d.ts +11 -0
- package/dist/gids-calendar-picker.js +1 -0
- package/dist/gids-calendar-year-list.js +1 -1
- package/dist/gids-calendar.js +1 -1
- package/dist/gids-chart-legend-item.js +1 -1
- package/dist/gids-chart-legend.js +1 -1
- package/dist/gids-chart.js +1 -1
- package/dist/gids-chevron-button.js +1 -1
- package/dist/gids-date-picker-field.d.ts +11 -0
- package/dist/gids-date-picker-field.js +1 -0
- package/dist/gids-date-picker.d.ts +11 -0
- package/dist/gids-date-picker.js +1 -0
- package/dist/gids-day-dropdown-picker.d.ts +11 -0
- package/dist/gids-day-dropdown-picker.js +1 -0
- package/dist/gids-dot.js +1 -1
- package/dist/gids-dropdown-field.js +1 -1
- package/dist/gids-dropdown-picker.js +1 -1
- package/dist/gids-dropdown.js +1 -1
- package/dist/gids-expansion-body-list-item.js +1 -1
- package/dist/gids-expansion-body-list.js +1 -1
- package/dist/gids-expansion-group.js +1 -1
- package/dist/gids-expansion.js +1 -1
- package/dist/gids-field.js +1 -1
- package/dist/gids-filter.js +1 -1
- package/dist/gids-flyout-panel.js +1 -1
- package/dist/gids-form.js +1 -1
- package/dist/gids-header-navigation-item.js +1 -1
- package/dist/gids-header-navigation.js +1 -1
- package/dist/gids-icon.js +1 -1
- package/dist/gids-input.js +1 -1
- package/dist/gids-line-chart.js +1 -1
- package/dist/gids-md-table.js +1 -1
- package/dist/gids-month-dropdown-picker.d.ts +11 -0
- package/dist/gids-month-dropdown-picker.js +1 -0
- package/dist/gids-overflow-container.js +1 -1
- package/dist/gids-overlay-provider.js +1 -1
- package/dist/gids-password-field.js +1 -1
- package/dist/gids-pie-chart.js +1 -1
- package/dist/gids-popover.js +1 -1
- package/dist/gids-profile-menu-header.js +1 -1
- package/dist/gids-profile-menu.js +1 -1
- package/dist/gids-profile.js +1 -1
- package/dist/gids-scrim.js +1 -1
- package/dist/gids-sidebar-item.js +1 -1
- package/dist/gids-sidebar-menu.js +1 -1
- package/dist/gids-sidebar.js +1 -1
- package/dist/gids-skeleton.js +1 -1
- package/dist/gids-tab-item.js +1 -1
- package/dist/gids-tab.js +1 -1
- package/dist/gids-text-field.js +1 -1
- package/dist/gids-toggle-button.js +1 -1
- package/dist/gids-tooltip.js +1 -1
- package/dist/gids-transfer-list.js +1 -1
- package/dist/gids-year-dropdown-picker.d.ts +11 -0
- package/dist/gids-year-dropdown-picker.js +1 -0
- package/dist/p-62akP0Ad.js +1 -0
- package/dist/{p-B_FEFM5I.js → p-B18yNcA0.js} +1 -1
- package/dist/p-B2YjHZsu.js +1 -0
- package/dist/{p-DLRj-mUX.js → p-B3AB3GQ0.js} +1 -1
- package/dist/{p-Ds5IzXj3.js → p-B4d07GWP.js} +1 -1
- package/dist/p-BBlUduEr.js +1 -0
- package/dist/{p-BAqWcL0K.js → p-BNW2xgxF.js} +1 -1
- package/dist/p-BcXumkjZ.js +1 -0
- package/dist/{p-DKSnGphd.js → p-C88Z_F_m.js} +1 -1
- package/dist/{p-bfWlRsx_.js → p-CKj2Ru6e.js} +1 -1
- package/dist/{p-B_St7yaX.js → p-COsSHfdc.js} +1 -1
- package/dist/{p-DrxfD2yZ.js → p-CSXuAs_X.js} +1 -1
- package/dist/{p-DzOOjiNH.js → p-CZgH5rZs.js} +1 -1
- package/dist/{p-BIxBMTG9.js → p-CueywyHC.js} +1 -1
- package/dist/p-CxfmNDsm.js +1 -0
- package/dist/{p-CV1-78HB.js → p-D2VR17v2.js} +1 -1
- package/dist/{p-DMxvWIj1.js → p-DKe6orSY.js} +1 -1
- package/dist/{p-D0RJMGGj.js → p-DLX-l0-L.js} +1 -1
- package/dist/p-DOiDD7cS.js +1 -0
- package/dist/{p-B2flLE0s.js → p-DXlBK8TS.js} +1 -1
- package/dist/{p-E13ycS5K.js → p-DYKcsBzA.js} +1 -1
- package/dist/{p--kh67-_Z.js → p-D_mszaeq.js} +1 -1
- package/dist/p-DdJKIFk0.js +1 -0
- package/dist/p-DiX4HaE6.js +1 -0
- package/dist/{p-DQQhGF5N.js → p-DjnREsH0.js} +1 -1
- package/dist/{p-CIjK3iHM.js → p-FSv82P6v.js} +1 -1
- package/dist/p-MaJDBE6u.js +1 -0
- package/dist/p-XVlT5H5q.js +1 -0
- package/dist/p-fE-MdTCH.js +1 -0
- package/dist/{p-mv_7K1EM.js → p-gK9DvcL8.js} +1 -1
- package/dist/{p-_W77iniK.js → p-iEUyQs9t.js} +1 -1
- package/dist/{p-BCbovLBE.js → p-jtpLLxuw.js} +1 -1
- package/dist/p-lvArnlBV.js +1 -0
- package/dist/{p-TfH966_e.js → p-vz4tzbld.js} +1 -1
- package/dist/{p-DnRuhvRw.js → p-x1tVOUSt.js} +1 -1
- package/dist/types/components/webComponents/GidsCalendar/GidsCalendar.d.ts +4 -2
- package/dist/types/components/webComponents/GidsCalendarPicker/GidsCalendarPicker.d.ts +55 -0
- package/dist/types/components/webComponents/GidsDatePicker/GidsDatePicker.d.ts +74 -0
- package/dist/types/components/webComponents/GidsDatePickerField/GidsDatePickerField.d.ts +75 -0
- package/dist/types/components/webComponents/GidsDayDropdownPicker/GidsDayDropdownPicker.d.ts +40 -0
- package/dist/types/components/webComponents/GidsDropdown/GidsDropdown.d.ts +10 -8
- package/dist/types/components/webComponents/GidsDropdownField/GidsDropdownField.d.ts +5 -1
- package/dist/types/components/webComponents/GidsDropdownPicker/GidsDropdownPicker.d.ts +1 -0
- package/dist/types/components/webComponents/GidsFlyoutPanel/GidsFlyoutPanel.d.ts +7 -2
- package/dist/types/components/webComponents/GidsForm/GidsForm.d.ts +8 -0
- package/dist/types/components/webComponents/GidsMonthDropdownPicker/GidsMonthDropdownPicker.d.ts +40 -0
- package/dist/types/components/webComponents/GidsYearDropdownPicker/GidsYearDropdownPicker.d.ts +40 -0
- package/dist/types/components.d.ts +877 -70
- package/dist-bundled/es/GidsDatePickerSharedUtils-Dh5qFlYA.js +105 -0
- package/dist-bundled/es/gids-action-bar.js +28 -28
- package/dist-bundled/es/gids-activity-gauge.js +3 -3
- package/dist-bundled/es/gids-advanced-tooltip.js +1 -1
- package/dist-bundled/es/gids-bar-chart.js +1 -1
- package/dist-bundled/es/gids-bento-card.js +1 -1
- package/dist-bundled/es/gids-calendar-header-panel.js +1 -1
- package/dist-bundled/es/gids-calendar-month-list.js +3 -3
- package/dist-bundled/es/gids-calendar-picker.js +6 -0
- package/dist-bundled/es/gids-calendar-year-list.js +1 -1
- package/dist-bundled/es/gids-calendar.js +4 -151
- package/dist-bundled/es/gids-chart-legend-item.js +1 -1
- package/dist-bundled/es/gids-chart-legend.js +4 -4
- package/dist-bundled/es/gids-chart.js +7 -7
- package/dist-bundled/es/gids-chevron-button.js +7 -7
- package/dist-bundled/es/gids-date-picker-field.js +181 -0
- package/dist-bundled/es/gids-date-picker.js +6 -0
- package/dist-bundled/es/gids-day-dropdown-picker.js +6 -0
- package/dist-bundled/es/gids-dot.js +1 -1
- package/dist-bundled/es/gids-dropdown-field.js +28 -18
- package/dist-bundled/es/gids-dropdown-picker.js +2 -2
- package/dist-bundled/es/gids-dropdown.js +4 -4
- package/dist-bundled/es/gids-expansion-body-list-item.js +1 -1
- package/dist-bundled/es/gids-expansion-body-list.js +2 -2
- package/dist-bundled/es/gids-expansion-group.js +5 -5
- package/dist-bundled/es/gids-expansion.js +8 -8
- package/dist-bundled/es/gids-field.js +4 -4
- package/dist-bundled/es/gids-filter.js +1 -1
- package/dist-bundled/es/gids-flyout-panel.js +3 -3
- package/dist-bundled/es/gids-form.js +65 -49
- package/dist-bundled/es/gids-header-navigation-item.js +3 -3
- package/dist-bundled/es/gids-header-navigation.js +2 -2
- package/dist-bundled/es/gids-icon.js +3 -3
- package/dist-bundled/es/gids-input.js +1 -1
- package/dist-bundled/es/gids-line-chart.js +3 -3
- package/dist-bundled/es/gids-md-table.js +1 -1
- package/dist-bundled/es/gids-month-dropdown-picker.js +6 -0
- package/dist-bundled/es/gids-overflow-container.js +9 -9
- package/dist-bundled/es/gids-overlay-provider.js +2 -2
- package/dist-bundled/es/gids-password-field.js +20 -20
- package/dist-bundled/es/gids-pie-chart.js +1 -1
- package/dist-bundled/es/gids-popover.js +1 -1
- package/dist-bundled/es/gids-profile-menu-header.js +4 -4
- package/dist-bundled/es/gids-profile-menu.js +4 -4
- package/dist-bundled/es/gids-profile.js +10 -10
- package/dist-bundled/es/gids-scrim.js +3 -3
- package/dist-bundled/es/gids-sidebar-item.js +1 -1
- package/dist-bundled/es/gids-sidebar-menu.js +1 -1
- package/dist-bundled/es/gids-sidebar.js +12 -12
- package/dist-bundled/es/gids-skeleton.js +8 -8
- package/dist-bundled/es/gids-tab-item.js +6 -6
- package/dist-bundled/es/gids-tab.js +7 -7
- package/dist-bundled/es/gids-text-field.js +10 -10
- package/dist-bundled/es/gids-toggle-button.js +1 -1
- package/dist-bundled/es/gids-tooltip.js +4 -4
- package/dist-bundled/es/gids-transfer-list.js +8 -8
- package/dist-bundled/es/gids-year-dropdown-picker.js +6 -0
- package/dist-bundled/es/p-62akP0Ad-D4pJ0a_I.js +86 -0
- package/dist-bundled/es/{p-B_FEFM5I-JoBieRfG.js → p-B18yNcA0-BaaXQYM_.js} +2 -2
- package/dist-bundled/es/{p-kWyyLyT3-VhX9LNzT.js → p-B2YjHZsu-DxdrSYcE.js} +28 -28
- package/dist-bundled/es/{p-DLRj-mUX-BapdQYpI.js → p-B3AB3GQ0-DdgNC9FJ.js} +5 -5
- package/dist-bundled/es/{p-Ds5IzXj3-B2o0ML2C.js → p-B4d07GWP-DLyo7HQ9.js} +3 -3
- package/dist-bundled/es/{p-CAjDiWIc-C9dOa7FT.js → p-BBlUduEr-CWdvgBS6.js} +7 -7
- package/dist-bundled/es/{p-BAqWcL0K-DNkV1R_C.js → p-BNW2xgxF-DWKLliyn.js} +5 -5
- package/dist-bundled/es/p-BcXumkjZ-zNpzLmjI.js +240 -0
- package/dist-bundled/es/{p-DKSnGphd-CZSPfB-N.js → p-C88Z_F_m-wMA27lx_.js} +3 -3
- package/dist-bundled/es/{p-bfWlRsx_-CNZjBYOE.js → p-CKj2Ru6e-B-Nk5B_P.js} +3 -3
- package/dist-bundled/es/{p-B_St7yaX-Da4DWjGh.js → p-COsSHfdc-DfDYoLSS.js} +3 -3
- package/dist-bundled/es/{p-DrxfD2yZ-Cetyr3S9.js → p-CSXuAs_X-Hw6bT-8r.js} +11 -11
- package/dist-bundled/es/{p-DzOOjiNH-CqI4E-mj.js → p-CZgH5rZs-Clk0qfHN.js} +3 -3
- package/dist-bundled/es/{p-BIxBMTG9-Ctr342ff.js → p-CueywyHC-CsEetdha.js} +3 -3
- package/dist-bundled/es/{p-DpvdbdZ--C7QlXxK2.js → p-CxfmNDsm-JHseL2it.js} +30 -18
- package/dist-bundled/es/{p-DMxvWIj1-BxbvrlFL.js → p-DKe6orSY-D1kYOeuX.js} +6 -6
- package/dist-bundled/es/{p-D0RJMGGj-BflZ9l8y.js → p-DLX-l0-L-gumz4bOG.js} +1 -1
- package/dist-bundled/es/{p-BQT5yy5L-C1C_zTi-.js → p-DOiDD7cS-j1RR9K9r.js} +8 -4
- package/dist-bundled/es/{p-B2flLE0s-SMg7vg1a.js → p-DXlBK8TS-DazOvEm2.js} +2 -2
- package/dist-bundled/es/{p-E13ycS5K-BBDydae3.js → p-DYKcsBzA-BcupA9sw.js} +6 -6
- package/dist-bundled/es/{p--kh67-_Z-B-vf_gng.js → p-D_mszaeq-ndcXN34-.js} +4 -4
- package/dist-bundled/es/{p-Do_VlNHg-Ck03dQOR.js → p-DdJKIFk0-Co3FvR3K.js} +1 -1
- package/dist-bundled/es/p-DiX4HaE6-C35K492C.js +86 -0
- package/dist-bundled/es/{p-DQQhGF5N-mCqb5VTE.js → p-DjnREsH0-Cm8vBvIX.js} +7 -7
- package/dist-bundled/es/{p-CIjK3iHM-DEW8PRM5.js → p-FSv82P6v-C6jFH7Zo.js} +1 -1
- package/dist-bundled/es/p-MaJDBE6u-DjtEX6-I.js +157 -0
- package/dist-bundled/es/p-XVlT5H5q-CFIMyrM3.js +148 -0
- package/dist-bundled/es/p-fE-MdTCH-CDvG1Xn1.js +122 -0
- package/dist-bundled/es/{p-mv_7K1EM-U3yKC45e.js → p-gK9DvcL8-Chw-ya2Q.js} +1 -1
- package/dist-bundled/es/{p-_W77iniK-ChKfEOp3.js → p-iEUyQs9t-BUXXVuwz.js} +2 -2
- package/dist-bundled/es/{p-BCbovLBE-CDxKiOtS.js → p-jtpLLxuw-BlEPhjmU.js} +1 -1
- package/dist-bundled/es/p-lvArnlBV-BxkIAxHG.js +86 -0
- package/dist-bundled/es/{p-TfH966_e-BzZRV8Rj.js → p-vz4tzbld-BYJRjHJw.js} +5 -5
- package/dist-bundled/es/{p-DnRuhvRw-Beh0bANh.js → p-x1tVOUSt-CdB8Szfe.js} +6 -6
- package/dist-bundled/umd/gids-action-bar.umd.js +2 -2
- package/dist-bundled/umd/gids-activity-gauge.umd.js +1 -1
- package/dist-bundled/umd/gids-advanced-tooltip.umd.js +1 -1
- package/dist-bundled/umd/gids-bar-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-bento-card.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-header-panel.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-month-list.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-picker.umd.js +5 -0
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar.umd.js +1 -1
- package/dist-bundled/umd/gids-chart-legend-item.umd.js +1 -1
- package/dist-bundled/umd/gids-chart-legend.umd.js +1 -1
- package/dist-bundled/umd/gids-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-chevron-button.umd.js +1 -1
- package/dist-bundled/umd/gids-date-picker-field.umd.js +5 -0
- package/dist-bundled/umd/gids-date-picker.umd.js +5 -0
- package/dist-bundled/umd/gids-day-dropdown-picker.umd.js +5 -0
- package/dist-bundled/umd/gids-dot.umd.js +1 -1
- package/dist-bundled/umd/gids-dropdown-field.umd.js +2 -2
- package/dist-bundled/umd/gids-dropdown-picker.umd.js +2 -2
- package/dist-bundled/umd/gids-dropdown.umd.js +2 -2
- package/dist-bundled/umd/gids-expansion-body-list-item.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion-body-list.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion-group.umd.js +2 -2
- package/dist-bundled/umd/gids-expansion.umd.js +1 -1
- package/dist-bundled/umd/gids-field.umd.js +1 -1
- package/dist-bundled/umd/gids-filter.umd.js +2 -2
- package/dist-bundled/umd/gids-flyout-panel.umd.js +2 -2
- package/dist-bundled/umd/gids-form.umd.js +2 -2
- package/dist-bundled/umd/gids-header-navigation-item.umd.js +2 -2
- package/dist-bundled/umd/gids-header-navigation.umd.js +1 -1
- package/dist-bundled/umd/gids-icon.umd.js +1 -1
- package/dist-bundled/umd/gids-input.umd.js +1 -1
- package/dist-bundled/umd/gids-line-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-md-table.umd.js +1 -1
- package/dist-bundled/umd/gids-month-dropdown-picker.umd.js +5 -0
- package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
- package/dist-bundled/umd/gids-overlay-provider.umd.js +1 -1
- package/dist-bundled/umd/gids-password-field.umd.js +1 -1
- package/dist-bundled/umd/gids-pie-chart.umd.js +2 -2
- package/dist-bundled/umd/gids-popover.umd.js +1 -1
- package/dist-bundled/umd/gids-profile-menu-header.umd.js +1 -1
- package/dist-bundled/umd/gids-profile-menu.umd.js +2 -2
- package/dist-bundled/umd/gids-profile.umd.js +2 -2
- package/dist-bundled/umd/gids-scrim.umd.js +1 -1
- package/dist-bundled/umd/gids-sidebar-item.umd.js +2 -2
- package/dist-bundled/umd/gids-sidebar-menu.umd.js +2 -2
- package/dist-bundled/umd/gids-sidebar.umd.js +2 -2
- package/dist-bundled/umd/gids-skeleton.umd.js +1 -1
- package/dist-bundled/umd/gids-tab-item.umd.js +1 -1
- package/dist-bundled/umd/gids-tab.umd.js +1 -1
- package/dist-bundled/umd/gids-text-field.umd.js +1 -1
- package/dist-bundled/umd/gids-toggle-button.umd.js +2 -2
- package/dist-bundled/umd/gids-tooltip.umd.js +2 -2
- package/dist-bundled/umd/gids-transfer-list.umd.js +1 -1
- package/dist-bundled/umd/gids-year-dropdown-picker.umd.js +5 -0
- package/dist-bundled/umd-complete/gids-core-web.umd.js +4 -4
- package/package.json +55 -7
- package/dist/p-BQT5yy5L.js +0 -1
- package/dist/p-CAjDiWIc.js +0 -1
- package/dist/p-Do_VlNHg.js +0 -1
- package/dist/p-DpvdbdZ-.js +0 -1
- package/dist/p-kWyyLyT3.js +0 -1
- package/dist/p-tEbUT3n3.js +0 -1
- package/dist-bundled/es/p-tEbUT3n3-Byef6fQN.js +0 -244
- /package/dist-bundled/es/{p-CV1-78HB-C0k_l_CT.js → p-D2VR17v2-C0k_l_CT.js} +0 -0
|
@@ -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 { D as P } from "./p-MaJDBE6u-DjtEX6-I.js";
|
|
5
|
+
import { u as k } from "./p-vz4tzbld-BYJRjHJw.js";
|
|
6
|
+
import { c as f } from "./p-CSXuAs_X-Hw6bT-8r.js";
|
|
7
|
+
import { P as x } from "./p-fE-MdTCH-CDvG1Xn1.js";
|
|
8
|
+
import { m as v } from "./p-B4d07GWP-DLyo7HQ9.js";
|
|
9
|
+
import { f as M } from "./p-lvArnlBV-BxkIAxHG.js";
|
|
10
|
+
import { g as O } from "./p-B18yNcA0-BaaXQYM_.js";
|
|
11
|
+
import { m as j } from "./p-BcXumkjZ-zNpzLmjI.js";
|
|
12
|
+
import { a as S } from "./p-DOiDD7cS-j1RR9K9r.js";
|
|
13
|
+
import { h as N } from "./p-CxfmNDsm-JHseL2it.js";
|
|
14
|
+
import { a as E } from "./p-DKe6orSY-D1kYOeuX.js";
|
|
15
|
+
import { r as Y } from "./p-CZgH5rZs-Clk0qfHN.js";
|
|
16
|
+
import { f as w } from "./p-62akP0Ad-D4pJ0a_I.js";
|
|
17
|
+
import { f as V } from "./p-DiX4HaE6-C35K492C.js";
|
|
18
|
+
import { g as o, c as l, d as c, h as _, i as $ } from "./GidsDatePickerSharedUtils-Dh5qFlYA.js";
|
|
19
|
+
import { c as q } from "./clsx-OuTLNxxd.js";
|
|
20
|
+
const A = (e) => q("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 ?? $(), 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: "0bf09e50e7b94e4cad2662347f8e0739241e08da", 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
|
+
L as E,
|
|
147
|
+
z as w
|
|
148
|
+
};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { q as t, L as o, u as c, D as s, P as h } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
|
+
import { D as m } from "./p-MaJDBE6u-DjtEX6-I.js";
|
|
3
|
+
import { u as g } from "./p-vz4tzbld-BYJRjHJw.js";
|
|
4
|
+
import { c as u } from "./p-CSXuAs_X-Hw6bT-8r.js";
|
|
5
|
+
import { m as p } from "./p-B4d07GWP-DLyo7HQ9.js";
|
|
6
|
+
import { g as C } from "./p-B18yNcA0-BaaXQYM_.js";
|
|
7
|
+
import { m as b } from "./p-BcXumkjZ-zNpzLmjI.js";
|
|
8
|
+
import { a as P } from "./p-DOiDD7cS-j1RR9K9r.js";
|
|
9
|
+
import { h as f } from "./p-CxfmNDsm-JHseL2it.js";
|
|
10
|
+
import { a as k } from "./p-DKe6orSY-D1kYOeuX.js";
|
|
11
|
+
import { r as y } from "./p-CZgH5rZs-Clk0qfHN.js";
|
|
12
|
+
import { f as v, b as Y } from "./GidsDatePickerSharedUtils-Dh5qFlYA.js";
|
|
13
|
+
import { c as D } from "./clsx-OuTLNxxd.js";
|
|
14
|
+
const E = (e) => D("gids-calendar-picker", e), S = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15
|
+
__proto__: null,
|
|
16
|
+
getGidsCalendarPickerClassNames: E
|
|
17
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsCalendarPickerClassNames: O } = S, x = o(class extends c {
|
|
18
|
+
constructor(e) {
|
|
19
|
+
super(), e !== !1 && this.__registerHost(), this.appearance = "default", this.menuPlacement = "bottom", this.menuConstrainPlacements = ["bottom", "top"], this.panelActionsAppearance = "default", this.hasLeadingIcon = !1, this.selectedCalendarPickerObj = void 0, this.handleCalendarDateSelectionChange = (a) => {
|
|
20
|
+
if (this.selectedCalendarPickerObj = a, this.onSelectionCalendarCell) {
|
|
21
|
+
this.onSelectionCalendarCell(a);
|
|
22
|
+
const n = new CustomEvent("gidsCalendarPickerChange", { bubbles: !0, composed: !0, detail: a });
|
|
23
|
+
this.hostElement.dispatchEvent(n), this.disabled || this.readOnly || this.flyoutPanelElement?.isFlyoutPanelVisible().then(((i) => {
|
|
24
|
+
i ? this.flyoutPanelElement?.closeFlyoutPanel(n) : this.flyoutPanelElement?.openFlyoutPanel(n);
|
|
25
|
+
}));
|
|
26
|
+
}
|
|
27
|
+
}, this.handleCalendarNextChange = (a) => {
|
|
28
|
+
this.onNextChange && this.onNextChange(a);
|
|
29
|
+
}, this.handleCalendarPanelMonthChange = (a) => {
|
|
30
|
+
this.onPanelMonthChange && this.onPanelMonthChange(a);
|
|
31
|
+
}, this.handleCalendarPanelYearChange = (a) => {
|
|
32
|
+
this.onPanelYearChange && this.onPanelYearChange(a);
|
|
33
|
+
}, this.handleCalendarPreviousChange = (a) => {
|
|
34
|
+
this.onPreviousChange && this.onPreviousChange(a);
|
|
35
|
+
}, this.syncCalendarPickerValue = () => this?.selectedCalendarPickerObj?.date ? this.selectedCalendarPickerObj.date : this?.value, this.getSelectedDate = () => this?.selectedCalendarPickerObj?.date, this.getActiveMonthNumber = () => this?.selectedCalendarPickerObj?.currentActivePanelState?.monthNumber, this.getActiveYear = () => this?.selectedCalendarPickerObj?.currentActivePanelState?.year;
|
|
36
|
+
}
|
|
37
|
+
handleInteractivityChange(e) {
|
|
38
|
+
this.disabled = e, this.readOnly = e;
|
|
39
|
+
}
|
|
40
|
+
menuPlacementChanged(e) {
|
|
41
|
+
this.menuPlacement = e;
|
|
42
|
+
}
|
|
43
|
+
menuConstrainPlacementsChanged(e) {
|
|
44
|
+
this.menuConstrainPlacements = e;
|
|
45
|
+
}
|
|
46
|
+
startYearChanged(e) {
|
|
47
|
+
this.startYear = e;
|
|
48
|
+
}
|
|
49
|
+
endYearChanged(e) {
|
|
50
|
+
this.endYear = e;
|
|
51
|
+
}
|
|
52
|
+
connectedCallback() {
|
|
53
|
+
}
|
|
54
|
+
componentWillLoad() {
|
|
55
|
+
this.checkSlots();
|
|
56
|
+
}
|
|
57
|
+
componentWillUpdate() {
|
|
58
|
+
this.checkSlots();
|
|
59
|
+
}
|
|
60
|
+
componentDidRender() {
|
|
61
|
+
this.flyoutPanelElement = this.hostElement.querySelector("gids-flyout-panel") ?? void 0;
|
|
62
|
+
}
|
|
63
|
+
checkSlots() {
|
|
64
|
+
this.hasLeadingIcon = !!this.hostElement.querySelector('[slot="leadingIconDropdown"]');
|
|
65
|
+
}
|
|
66
|
+
render() {
|
|
67
|
+
const e = O(), a = typeof this?.inputProps?.id == "string" ? this.inputProps.id : "calendar-picker-input", n = { id: a, appearance: this.appearance, loading: this.loading, disabled: this.disabled, readOnly: this.readOnly, required: this.required, value: this.syncCalendarPickerValue(), name: this.name, inputProps: { ...this?.inputProps ?? {}, id: a } }, i = this?.startYear ?? v, r = this?.endYear ?? Y, l = Number(i), d = Number(r);
|
|
68
|
+
return s(h, { key: "7373d9601eaaafee7c9c4f8056982b5b695089c7", class: e }, s("gids-dropdown", { key: "8b36bba505737ffe43aa3abecd90a946a1c39c55", ...n, menuPlacement: this?.menuPlacement ?? "bottom", menuConstrainPlacements: this.menuConstrainPlacements ?? ["bottom", "top"] }, this.hasLeadingIcon && s("slot", { key: "e2eb369f2c6e85482c8866dd3e2c4614edf004bd", name: "leadingIconDropdown", slot: "leadingIconDropdown" }), s("gids-calendar", { key: "e8be0098b49f3b88ac0f061d75f5ca75da82c879", onSelectionCalendarCell: this.handleCalendarDateSelectionChange, startYear: l, endYear: d, 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, selectedDate: this.getSelectedDate(), activeMonthNumber: this.getActiveMonthNumber(), activeYear: this.getActiveYear() })));
|
|
69
|
+
}
|
|
70
|
+
get hostElement() {
|
|
71
|
+
return this;
|
|
72
|
+
}
|
|
73
|
+
static get watchers() {
|
|
74
|
+
return { disabled: [{ handleInteractivityChange: 0 }], readOnly: [{ handleInteractivityChange: 0 }], menuPlacement: [{ menuPlacementChanged: 0 }], menuConstrainPlacements: [{ menuConstrainPlacementsChanged: 0 }], startYear: [{ startYearChanged: 0 }], endYear: [{ endYearChanged: 0 }] };
|
|
75
|
+
}
|
|
76
|
+
static get style() {
|
|
77
|
+
return ".gids-calendar-picker{position:relative;display:flex;flex-direction:column}";
|
|
78
|
+
}
|
|
79
|
+
}, [260, "gids-calendar-picker", { appearance: [1], inputProps: [16], disabled: [516], readOnly: [516, "read-only"], loading: [516], value: [513], name: [1], required: [4], menuPlacement: [1, "menu-placement"], menuConstrainPlacements: [16], startYear: [2, "start-year"], endYear: [2, "end-year"], 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], onSelectionCalendarCell: [16], hasLeadingIcon: [32], selectedCalendarPickerObj: [32] }, void 0, { disabled: [{ handleInteractivityChange: 0 }], readOnly: [{ handleInteractivityChange: 0 }], menuPlacement: [{ menuPlacementChanged: 0 }], menuConstrainPlacements: [{ menuConstrainPlacementsChanged: 0 }], startYear: [{ startYearChanged: 0 }], endYear: [{ endYearChanged: 0 }] }]);
|
|
80
|
+
function A() {
|
|
81
|
+
typeof customElements < "u" && ["gids-calendar-picker", "gids-calendar", "gids-calendar-header-panel", "gids-calendar-month-list", "gids-calendar-year-list", "gids-dot", "gids-dropdown", "gids-dropdown-picker", "gids-flyout-panel", "gids-icon", "gids-input"].forEach(((e) => {
|
|
82
|
+
switch (e) {
|
|
83
|
+
case "gids-calendar-picker":
|
|
84
|
+
customElements.get(t(e)) || customElements.define(t(e), x);
|
|
85
|
+
break;
|
|
86
|
+
case "gids-calendar":
|
|
87
|
+
customElements.get(t(e)) || m();
|
|
88
|
+
break;
|
|
89
|
+
case "gids-calendar-header-panel":
|
|
90
|
+
customElements.get(t(e)) || g();
|
|
91
|
+
break;
|
|
92
|
+
case "gids-calendar-month-list":
|
|
93
|
+
customElements.get(t(e)) || u();
|
|
94
|
+
break;
|
|
95
|
+
case "gids-calendar-year-list":
|
|
96
|
+
customElements.get(t(e)) || p();
|
|
97
|
+
break;
|
|
98
|
+
case "gids-dot":
|
|
99
|
+
customElements.get(t(e)) || C();
|
|
100
|
+
break;
|
|
101
|
+
case "gids-dropdown":
|
|
102
|
+
customElements.get(t(e)) || b();
|
|
103
|
+
break;
|
|
104
|
+
case "gids-dropdown-picker":
|
|
105
|
+
customElements.get(t(e)) || P();
|
|
106
|
+
break;
|
|
107
|
+
case "gids-flyout-panel":
|
|
108
|
+
customElements.get(t(e)) || f();
|
|
109
|
+
break;
|
|
110
|
+
case "gids-icon":
|
|
111
|
+
customElements.get(t(e)) || k();
|
|
112
|
+
break;
|
|
113
|
+
case "gids-input":
|
|
114
|
+
customElements.get(t(e)) || y();
|
|
115
|
+
}
|
|
116
|
+
}));
|
|
117
|
+
}
|
|
118
|
+
A();
|
|
119
|
+
export {
|
|
120
|
+
A as P,
|
|
121
|
+
x as k
|
|
122
|
+
};
|
|
@@ -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: "899cd714d26e107d247b30c032f3bf0990f1c7df" }, o("div", { key: "9d047c25818209f203ed83b6c4b9f5ce1e1791c7", class: p() }, o("div", { key: "cf4ef210e23935aab41dd5540d4fa13ca24707fe", class: "gids-field__header", hidden: !this._hasLabelContent() }, o("slot", { key: "8fa154f9ea5e42179fbb7395c200044e07540b91", ref: this._setLabelSlot, name: "label", onSlotchange: this._handleControlSlotChange }), o("div", { key: "73d8cfb90da4cb0aab9537d559e2fc34670217ae", class: "gids-field__count", "aria-live": "polite" }, this.count)), o("div", { key: "8d3ea2445550ca63932a9fd87239aec27f87daad", class: "gids-field__control" }, o("slot", { key: "bac677a8a4393130c00c98558965069dc242fb7a", ref: this._setControlSlot, onSlotchange: this._handleControlSlotChange })), o("p", { key: "1e493b121065bcef77a8aa38d8756a4ffb162980", 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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { q as l, L as f, u, D as t } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
2
|
import { p as b } from "./p-C-Lpfqcg-DIuBhXzX.js";
|
|
3
|
-
import { o as x } from "./p-
|
|
4
|
-
import { l as z } from "./p-
|
|
3
|
+
import { o as x } from "./p-x1tVOUSt-CdB8Szfe.js";
|
|
4
|
+
import { l as z } from "./p-DYKcsBzA-BcupA9sw.js";
|
|
5
5
|
import { c as w } from "./clsx-OuTLNxxd.js";
|
|
6
6
|
const k = ({ breakpoint: a }, g) => w("gids-activity-gauge", {
|
|
7
7
|
"gids-activity-gauge--breakpoint-mobile": a === "mobile"
|
|
@@ -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: "161d9902fdd4e290a4ea79b6ea2f7934728fd2f5", 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: "b3a560997c20a27ac12cfae0e85ef531af182116", class: y("gids-profile-menu-header__content-container-default", { "gids-profile-menu-header__content-container-centralized": e === "centralized" }) }, i("label", { key: "480d364bd02d248a1e655f1d88de43b7178df8c7", onClick: this.onHeaderItemTitlePress }, a), i("span", { key: "bfde4898d9c046aae9d88acff86f5d962370daec", onClick: this.onHeaderItemSupportingTextPress }, t), i("p", { key: "8fc81966e4511fcbbf6539e35bc513f6b4cb22a5" }, n)));
|
|
80
80
|
}
|
|
81
81
|
get hostElement() {
|
|
82
82
|
return this;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { q as o, L as u, u as p, D as n, P as g } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
|
+
import { i as D, t as f } from "./p-BBlUduEr-CWdvgBS6.js";
|
|
3
|
+
import { i as b } from "./p-B3AB3GQ0-DdgNC9FJ.js";
|
|
4
|
+
import { m as C } from "./p-BcXumkjZ-zNpzLmjI.js";
|
|
5
|
+
import { h as P } from "./p-CxfmNDsm-JHseL2it.js";
|
|
6
|
+
import { r as I } from "./p-CZgH5rZs-Clk0qfHN.js";
|
|
7
|
+
import { c as l, d as m, j as k } from "./GidsDatePickerSharedUtils-Dh5qFlYA.js";
|
|
8
|
+
import { c as v } from "./clsx-OuTLNxxd.js";
|
|
9
|
+
const w = (e) => v("gids-day-dropdown-picker", e), S = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10
|
+
__proto__: null,
|
|
11
|
+
getGidsDayDropdownPickerClassNames: w
|
|
12
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsDayDropdownPickerClassNames: O } = S, x = u(class extends p {
|
|
13
|
+
constructor(e) {
|
|
14
|
+
super(), e !== !1 && this.__registerHost(), this.appearance = "default", this.menuPlacement = "bottom", this.menuConstrainPlacements = ["bottom", "top"], this.startDay = Number(l), this.endDay = Number(m), this.hasLeadingIcon = !1, this.daysMenuData = [], this.selectedDayObj = void 0, this.handleDaySelectionChange = ({ event: t, sectionIndex: s, itemIndex: r }) => {
|
|
15
|
+
const a = t?.detail, i = { originalEvent: t, id: a.id, dayInNumber: a?.title ? Number(a.title) : void 0, sectionIndex: s, itemIndex: r, selected: !0 };
|
|
16
|
+
this.selectedDayObj = i, this.onDayChange && this.onDayChange(i);
|
|
17
|
+
}, this.feedDaysDataState = () => {
|
|
18
|
+
const t = this?.startDay ?? l, s = this?.endDay ?? m;
|
|
19
|
+
this.daysMenuData = k({ startDay: String(t), endDay: String(s) });
|
|
20
|
+
}, this.isDaySelected = (t) => t?.id === this?.selectedDayObj?.id, this.syncDayDropdownPickerValue = () => this?.selectedDayObj?.dayInNumber ? String(this.selectedDayObj.dayInNumber) : 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
|
+
startDayChanged(e) {
|
|
32
|
+
this.startDay = e, this.feedDaysDataState();
|
|
33
|
+
}
|
|
34
|
+
endDayChanged(e) {
|
|
35
|
+
this.endDay = e, this.feedDaysDataState();
|
|
36
|
+
}
|
|
37
|
+
connectedCallback() {
|
|
38
|
+
}
|
|
39
|
+
componentWillLoad() {
|
|
40
|
+
this.checkSlots(), this.feedDaysDataState();
|
|
41
|
+
}
|
|
42
|
+
componentWillUpdate() {
|
|
43
|
+
this.checkSlots();
|
|
44
|
+
}
|
|
45
|
+
checkSlots() {
|
|
46
|
+
this.hasLeadingIcon = !!this.hostElement.querySelector('[slot="leadingIconDropdown"]');
|
|
47
|
+
}
|
|
48
|
+
render() {
|
|
49
|
+
const e = O(), t = typeof this?.inputProps?.id == "string" ? this.inputProps.id : "day-input", s = { id: t, appearance: this.appearance, loading: this.loading, disabled: this.disabled, readOnly: this.readOnly, required: this.required, value: this.syncDayDropdownPickerValue(), name: this.name, inputProps: { ...this?.inputProps ?? {}, id: t } }, r = this?.daysMenuData ?? [];
|
|
50
|
+
return n(g, { key: "d776be44fac87006db16eb621c24b439c53967fe", class: e }, n("gids-dropdown", { key: "6c2fa537971ff58d094cb3feee5740d903cdfd28", ...s, menuPlacement: this?.menuPlacement ?? "bottom", menuConstrainPlacements: this.menuConstrainPlacements ?? ["bottom", "top"] }, this.hasLeadingIcon && n("slot", { key: "d1e9cf1b7664c579a6f05b34991ab71df89c6528", name: "leadingIconDropdown", slot: "leadingIconDropdown" }), n(D, { key: "0661486f9abe1dfd021ce9eace47988dadf1bc00", type: this.loading ? "loading" : "default" }, r.map(((a, i) => {
|
|
51
|
+
const h = a?.menuItems ?? [];
|
|
52
|
+
return n(f, { key: `${a.sectionId}_${i}`, sectionLabel: a?.sectionLabel }, h.map(((d, c) => n(b, { id: d.id, title: d?.title, value: d?.value, index: c, disabled: d?.disabled, selected: this.isDaySelected(d), onPressDropdownItem: (y) => this.handleDaySelectionChange({ event: y, sectionIndex: i, itemIndex: c }) }))));
|
|
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 }], startDay: [{ startDayChanged: 0 }], endDay: [{ endDayChanged: 0 }] };
|
|
60
|
+
}
|
|
61
|
+
static get style() {
|
|
62
|
+
return ".gids-day-dropdown-picker{position:relative;display:flex;flex-direction:column}";
|
|
63
|
+
}
|
|
64
|
+
}, [260, "gids-day-dropdown-picker", { appearance: [1], inputProps: [16], disabled: [516], readOnly: [516, "read-only"], loading: [516], value: [513], name: [1], onDayChange: [16], required: [4], menuPlacement: [1, "menu-placement"], menuConstrainPlacements: [16], startDay: [2, "start-day"], endDay: [2, "end-day"], hasLeadingIcon: [32], daysMenuData: [32], selectedDayObj: [32] }, void 0, { disabled: [{ handleInteractivityChange: 0 }], readOnly: [{ handleInteractivityChange: 0 }], menuPlacement: [{ menuPlacementChanged: 0 }], menuConstrainPlacements: [{ menuConstrainPlacementsChanged: 0 }], startDay: [{ startDayChanged: 0 }], endDay: [{ endDayChanged: 0 }] }]);
|
|
65
|
+
function E() {
|
|
66
|
+
typeof customElements < "u" && ["gids-day-dropdown-picker", "gids-dropdown", "gids-flyout-panel", "gids-input"].forEach(((e) => {
|
|
67
|
+
switch (e) {
|
|
68
|
+
case "gids-day-dropdown-picker":
|
|
69
|
+
customElements.get(o(e)) || customElements.define(o(e), x);
|
|
70
|
+
break;
|
|
71
|
+
case "gids-dropdown":
|
|
72
|
+
customElements.get(o(e)) || C();
|
|
73
|
+
break;
|
|
74
|
+
case "gids-flyout-panel":
|
|
75
|
+
customElements.get(o(e)) || P();
|
|
76
|
+
break;
|
|
77
|
+
case "gids-input":
|
|
78
|
+
customElements.get(o(e)) || I();
|
|
79
|
+
}
|
|
80
|
+
}));
|
|
81
|
+
}
|
|
82
|
+
E();
|
|
83
|
+
export {
|
|
84
|
+
E as f,
|
|
85
|
+
x as y
|
|
86
|
+
};
|
|
@@ -2,9 +2,9 @@ import { q as l, L as d, u as o, D as n } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
|
2
2
|
import { o as h } from "./p-Dg_WeHpV-DehzGL6g.js";
|
|
3
3
|
import { d as c } from "./p-iQRr_fAH-Dvv1n8QD.js";
|
|
4
4
|
import { e as p } from "./p-ChV9xqsO-CJSPCx6p.js";
|
|
5
|
-
import {
|
|
6
|
-
import { m as b } from "./p-
|
|
7
|
-
import {
|
|
5
|
+
import { c as u } from "./p-CSXuAs_X-Hw6bT-8r.js";
|
|
6
|
+
import { m as b } from "./p-B4d07GWP-DLyo7HQ9.js";
|
|
7
|
+
import { a as m } from "./p-DOiDD7cS-j1RR9K9r.js";
|
|
8
8
|
import { c as k } from "./clsx-OuTLNxxd.js";
|
|
9
9
|
const g = (e) => k("gids-calendar-header-panel", e), f = (e, a = "en-US") => {
|
|
10
10
|
const t = new Date(2e3, e - 1, 1);
|
|
@@ -130,7 +130,7 @@ const g = (e) => k("gids-calendar-header-panel", e), f = (e, a = "en-US") => {
|
|
|
130
130
|
}
|
|
131
131
|
render() {
|
|
132
132
|
const e = M(), a = this.expandedMonthPicker && this.isMonthPickerInteractive() && !this.expandedYearPicker, t = this.expandedYearPicker && this.isYearPickerInteractive() && !this.expandedMonthPicker, i = this.internalPreviousDisabled || this.previousDisabled, s = this.internalNextDisabled || this.nextDisabled;
|
|
133
|
-
return n("div", { key: "
|
|
133
|
+
return n("div", { key: "6f3a9f33504c28ebc0135aa7176267172378e184", class: e }, n(h, { key: "e12e0ab1a440338aec9a600eeb2e63678da0c0e5", leadingIcon: n(c, { name: "arrow-left", size: "md", appearance: "regular" }), appearance: this.appearance, size: "sm", width: "intrinsic", onClick: this.handlePreviousActionClick, disabled: i }), n("div", { key: "915a9603380adfcff5586038bd9d902b354d298b", class: "gids-calendar-header-panel__main-container" }, n("gids-dropdown-picker", { key: "b6cdfbf2e722b7749ac851189e88501ae5011ec6", expanded: a, appearance: this.appearance, size: "sm", value: `${this.panelMonthNumber}`, disabled: this.monthPickerDisabled }, n("gids-calendar-month-list", { key: "328169b55bca1c6b61ce10dd8db5fe7bb758879c", type: "default", selectedMonthNumber: this.panelMonthNumber, onSelectionMonthChange: this.handleMonthPickerMenuClick })), n("span", { key: "b77e36f39d1599ef39c7dab120d692c0e3ec9b83", class: p("gids-calendar-header-panel__panel-value", { "gids-calendar-header-panel__panel-value-disabled": this.panelDisabled }) }, this.getPanelValue()), n("gids-dropdown-picker", { key: "2f48db7f8fd971693a03886cc560abe3abcd65c3", expanded: t, appearance: this.appearance, size: "sm", value: `${this.panelYear}`, disabled: this.yearPickerDisabled }, n("gids-calendar-year-list", { key: "c1af31e67f962bf71f81bada6fbb673f8a004c12", type: "default", selectedYear: this.panelYear, startYear: this.startYear ?? this.fallbackStartYear, endYear: this.endYear, onSelectionYearChange: this.handleYearPickerMenuClick }))), n(h, { key: "de0e78ea6bfdb3ee1fe533c4215bb7df642ca824", leadingIcon: n(c, { name: "arrow-right", size: "md", appearance: "regular" }), appearance: this.appearance, size: "sm", width: "intrinsic", onClick: this.handleNextActionClick, disabled: s }));
|
|
134
134
|
}
|
|
135
135
|
get hostElement() {
|
|
136
136
|
return this;
|
|
@@ -162,6 +162,6 @@ function y() {
|
|
|
162
162
|
y();
|
|
163
163
|
export {
|
|
164
164
|
v as m,
|
|
165
|
-
P as
|
|
165
|
+
P as n,
|
|
166
166
|
y as u
|
|
167
167
|
};
|
|
@@ -4,10 +4,10 @@ const o = ({ orientation: e }, i) => s("gids-chart-legend", {
|
|
|
4
4
|
// 'gids-chart-legend--orientation-horizontal':
|
|
5
5
|
// orientation === 'horizontal', // not needed as by default
|
|
6
6
|
"gids-chart-legend--orientation-vertical": e === "vertical"
|
|
7
|
-
}, i),
|
|
7
|
+
}, i), c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8
8
|
__proto__: null,
|
|
9
9
|
getGidsChartLegendClassNames: o
|
|
10
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsChartLegendClassNames:
|
|
10
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsChartLegendClassNames: d } = c, l = a(class extends r {
|
|
11
11
|
constructor(e) {
|
|
12
12
|
super(), e !== !1 && this.__registerHost(), this.orientation = "horizontal";
|
|
13
13
|
}
|
|
@@ -15,8 +15,8 @@ const o = ({ orientation: e }, i) => s("gids-chart-legend", {
|
|
|
15
15
|
this.orientation = e;
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
const e =
|
|
19
|
-
return n("div", { key: "
|
|
18
|
+
const e = d({ orientation: this.orientation });
|
|
19
|
+
return n("div", { key: "f67c31fd41f95a0f3c5f71c2e6bd917740e70d65", class: e }, n("slot", { key: "4eeeffb49f5f39af3a5bb3ecc5c403f6a09256b1" }));
|
|
20
20
|
}
|
|
21
21
|
static get watchers() {
|
|
22
22
|
return { orientation: [{ handleOrientationChange: 0 }] };
|
|
@@ -27,11 +27,11 @@ const o = ({ orientation: e }, i) => s("gids-chart-legend", {
|
|
|
27
27
|
}, [260, "gids-chart-legend", { orientation: [1] }, void 0, { orientation: [{ handleOrientationChange: 0 }] }]);
|
|
28
28
|
function g() {
|
|
29
29
|
typeof customElements < "u" && ["gids-chart-legend"].forEach(((e) => {
|
|
30
|
-
e === "gids-chart-legend" && (customElements.get(t(e)) || customElements.define(t(e),
|
|
30
|
+
e === "gids-chart-legend" && (customElements.get(t(e)) || customElements.define(t(e), l));
|
|
31
31
|
}));
|
|
32
32
|
}
|
|
33
33
|
g();
|
|
34
34
|
export {
|
|
35
35
|
g as o,
|
|
36
|
-
|
|
36
|
+
l as r
|
|
37
37
|
};
|