@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,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const o = e,
|
|
1
|
+
import { h as e, m as t } from "./p-piTNUZit-Jq4qQLgn.js";
|
|
2
|
+
const o = e, s = t;
|
|
3
3
|
export {
|
|
4
4
|
o as GidsHeaderNavigationItem,
|
|
5
|
-
|
|
5
|
+
s as defineCustomElement
|
|
6
6
|
};
|
|
@@ -1,66 +1,62 @@
|
|
|
1
|
-
import { L as f, u as C, D as
|
|
2
|
-
import { d as
|
|
3
|
-
import { r as
|
|
4
|
-
import { e as
|
|
5
|
-
import {
|
|
1
|
+
import { L as f, u as C, D as d, P as S, q as o } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
|
+
import { d as M } from "./p-iQRr_fAH-Dvv1n8QD.js";
|
|
3
|
+
import { r as y } from "./p-BRNvHMdK-CqGtfAsn.js";
|
|
4
|
+
import { e as N } from "./p-ChV9xqsO-CJSPCx6p.js";
|
|
5
|
+
import { c as x } from "./p-CS2U2Mro-6wGJ-t9P.js";
|
|
6
|
+
import { m as w } from "./p-piTNUZit-Jq4qQLgn.js";
|
|
6
7
|
import { c as b } from "./clsx-OuTLNxxd.js";
|
|
7
|
-
const z = ({ mode:
|
|
8
|
+
const z = ({ mode: e, type: t }, a) => b("gids-header-navigation", {
|
|
8
9
|
// Modes
|
|
9
10
|
// 'gids-header-navigation--mode-wrap': mode === 'wrap', // Default so not needed
|
|
10
|
-
"gids-header-navigation--mode-scroll":
|
|
11
|
+
"gids-header-navigation--mode-scroll": e === "scroll",
|
|
11
12
|
// Types
|
|
12
13
|
// 'gids-header-navigation--type-gap': type === 'gap', // Default so not needed
|
|
13
|
-
"gids-header-navigation--type-standard":
|
|
14
|
-
}, a),
|
|
14
|
+
"gids-header-navigation--type-standard": t === "standard"
|
|
15
|
+
}, a), E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15
16
|
__proto__: null,
|
|
16
17
|
getGidsHeaderNavigationClassNames: z
|
|
17
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsHeaderNavigationClassNames:
|
|
18
|
-
constructor(
|
|
19
|
-
super(),
|
|
20
|
-
this.handleSelectionsAndExpansions(
|
|
21
|
-
}, this.onNavigationMenuItemChange = ({ event:
|
|
22
|
-
|
|
23
|
-
}, this.handleDocumentClick = (
|
|
24
|
-
!this.expandedMenuIdsState || this.expandedMenuIdsState.length <= 0 ||
|
|
25
|
-
}, this.handleSelectionsAndExpansions = (
|
|
26
|
-
this.expandedMenuIdsState =
|
|
27
|
-
}, this.
|
|
28
|
-
const a = this?.expandedMenuIdsState ?? [];
|
|
29
|
-
if (!e || e === "" || !a || a.length <= 0) return !1;
|
|
30
|
-
const d = a.findIndex(((i) => i === e));
|
|
31
|
-
return d != null && d !== -1;
|
|
32
|
-
}, this.isThisNavigationItemSelected = (e) => {
|
|
18
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsHeaderNavigationClassNames: _ } = E, g = f(class extends C {
|
|
19
|
+
constructor(e) {
|
|
20
|
+
super(), e !== !1 && this.__registerHost(), this.type = "gap", this.selectionType = "single-deselection-not-allowed", this.selectedItemIdsState = [], this.selectedMenuItemIdsState = [], this.expandedMenuIdsState = [], this.onNavigationItemPress = ({ event: t, itemIndex: a }) => {
|
|
21
|
+
this.handleSelectionsAndExpansions(t), this.onHeaderNavigationItemChange && this.onHeaderNavigationItemChange({ ...t, navMenuItemIndex: a });
|
|
22
|
+
}, this.onNavigationMenuItemChange = ({ event: t, itemIndex: a }) => {
|
|
23
|
+
t?.menuItemSelected ? (this.selectedItemIdsState = [t.itemId], this.selectedMenuItemIdsState = [t.menuItemId]) : (this.selectedItemIdsState = [], this.selectedMenuItemIdsState = []), this.onHeaderNavigationItemChange && this.onHeaderNavigationItemChange({ ...t, navMenuItemIndex: a });
|
|
24
|
+
}, this.handleDocumentClick = (t) => {
|
|
25
|
+
!this.expandedMenuIdsState || this.expandedMenuIdsState.length <= 0 || t.composedPath().includes(this.hostElement) || (this.expandedMenuIdsState = []);
|
|
26
|
+
}, this.handleSelectionsAndExpansions = (t) => {
|
|
27
|
+
this.expandedMenuIdsState = t?.hasMenu && t?.menuExpanded && t?.menuId && t.menuId !== "" ? [t.menuId] : [], t?.hasMenu || (t?.itemSelected ? (this.selectedItemIdsState = [t.itemId], this.selectedMenuItemIdsState = []) : (this.selectedItemIdsState = [], this.selectedMenuItemIdsState = []));
|
|
28
|
+
}, this.isThisNavigationItemSelected = (t) => {
|
|
33
29
|
const a = this?.selectedItemIdsState ?? [];
|
|
34
|
-
if (!
|
|
35
|
-
const
|
|
36
|
-
return
|
|
30
|
+
if (!t || t === "" || !a || a.length <= 0) return !1;
|
|
31
|
+
const i = a.findIndex(((l) => l === t));
|
|
32
|
+
return i != null && i !== -1;
|
|
37
33
|
}, this.getSelectedMenuItemId = () => {
|
|
38
|
-
const
|
|
39
|
-
if (
|
|
34
|
+
const t = this?.selectedMenuItemIdsState ?? [];
|
|
35
|
+
if (t.length > 0) return t[0];
|
|
40
36
|
}, this.initializeDefaultSelection = () => {
|
|
41
37
|
this.selectedItemIdsState = this?.defaultNavItemId ? [this.defaultNavItemId] : [], this.selectedMenuItemIdsState = this?.defaultNavMenuItemId ? [this.defaultNavMenuItemId] : [];
|
|
42
38
|
};
|
|
43
39
|
}
|
|
44
|
-
appearanceChanged(
|
|
45
|
-
this.appearance =
|
|
40
|
+
appearanceChanged(e) {
|
|
41
|
+
this.appearance = e;
|
|
46
42
|
}
|
|
47
|
-
selectionAppearanceChanged(
|
|
48
|
-
this.selectionAppearance =
|
|
43
|
+
selectionAppearanceChanged(e) {
|
|
44
|
+
this.selectionAppearance = e;
|
|
49
45
|
}
|
|
50
|
-
borderRadiusChanged(
|
|
51
|
-
this.borderRadius =
|
|
46
|
+
borderRadiusChanged(e) {
|
|
47
|
+
this.borderRadius = e;
|
|
52
48
|
}
|
|
53
|
-
shadowChanged(
|
|
54
|
-
this.applyShadow =
|
|
49
|
+
shadowChanged(e) {
|
|
50
|
+
this.applyShadow = e;
|
|
55
51
|
}
|
|
56
|
-
sizeChanged(
|
|
57
|
-
this.size =
|
|
52
|
+
sizeChanged(e) {
|
|
53
|
+
this.size = e;
|
|
58
54
|
}
|
|
59
|
-
separatorsChanged(
|
|
60
|
-
this.applySeparators =
|
|
55
|
+
separatorsChanged(e) {
|
|
56
|
+
this.applySeparators = e;
|
|
61
57
|
}
|
|
62
|
-
modeChanged(
|
|
63
|
-
this.mode =
|
|
58
|
+
modeChanged(e) {
|
|
59
|
+
this.mode = e;
|
|
64
60
|
}
|
|
65
61
|
defaultNavItemIdChanged() {
|
|
66
62
|
this.initializeDefaultSelection();
|
|
@@ -71,11 +67,11 @@ const z = ({ mode: t, type: e }, a) => b("gids-header-navigation", {
|
|
|
71
67
|
defaultNavMenuItemIdChanged() {
|
|
72
68
|
this.initializeDefaultSelection();
|
|
73
69
|
}
|
|
74
|
-
navMenusChanged(
|
|
75
|
-
this.navMenus =
|
|
70
|
+
navMenusChanged(e) {
|
|
71
|
+
this.navMenus = e, this.initializeDefaultSelection();
|
|
76
72
|
}
|
|
77
|
-
typeChanged(
|
|
78
|
-
this.type =
|
|
73
|
+
typeChanged(e) {
|
|
74
|
+
this.type = e;
|
|
79
75
|
}
|
|
80
76
|
connectedCallback() {
|
|
81
77
|
}
|
|
@@ -89,8 +85,8 @@ const z = ({ mode: t, type: e }, a) => b("gids-header-navigation", {
|
|
|
89
85
|
document.removeEventListener("click", this.handleDocumentClick);
|
|
90
86
|
}
|
|
91
87
|
render() {
|
|
92
|
-
const
|
|
93
|
-
return
|
|
88
|
+
const e = this?.appearance ?? "default", t = this?.selectionAppearance ?? "default", a = this?.applyShadow ?? !1, i = this?.applySeparators ?? !1, l = this?.borderRadius ?? "none", p = this?.mode ?? "wrap", m = this?.type ?? "gap", r = this?.size ?? "md", c = this?.navMenus ?? [], I = this?.selectionType ?? "single-deselection-not-allowed", v = _({ mode: p, type: m });
|
|
89
|
+
return d(S, { key: "3bca5c74e3e74b44e5ee8420a067b2ae07a62990", class: v }, c.map(((n, s) => d("div", { key: "" + (s + 1), class: N("gids-header-navigation__item-container-gap", { "gids-header-navigation__item-container-standard": m === "standard" }) }, d("gids-header-navigation-item", { ...n, id: n.id, menuId: n?.menuId, menuItems: n?.menuItems ?? [], label: n?.label, size: r, appearance: e, selectionAppearance: t, applyShadow: a, borderRadius: l, selected: this.isThisNavigationItemSelected(n?.id), selectedMenuItemId: this.getSelectedMenuItemId(), selectionType: I, onPressNavigationItem: (h) => this.onNavigationItemPress({ event: h, itemIndex: s }), onMenuItemChange: (h) => this.onNavigationMenuItemChange({ event: h, itemIndex: s }) }, n?.leadingIconName && n.leadingIconName !== "(none)" ? d(M, { slot: "headerNavItemLeadingIcon", name: n.leadingIconName, size: r !== "xl" ? r : "lg", alt: "", appearance: "regular" }) : void 0), i && s < c.length - 1 ? d(y, { orientation: "vertical" }) : void 0))));
|
|
94
90
|
}
|
|
95
91
|
get hostElement() {
|
|
96
92
|
return this;
|
|
@@ -99,23 +95,26 @@ const z = ({ mode: t, type: e }, a) => b("gids-header-navigation", {
|
|
|
99
95
|
return { appearance: [{ appearanceChanged: 0 }], selectionAppearance: [{ selectionAppearanceChanged: 0 }], borderRadius: [{ borderRadiusChanged: 0 }], applyShadow: [{ shadowChanged: 0 }], size: [{ sizeChanged: 0 }], applySeparators: [{ separatorsChanged: 0 }], mode: [{ modeChanged: 0 }], defaultNavItemId: [{ defaultNavItemIdChanged: 0 }], defaultNavMenuId: [{ defaultNavMenuIdChanged: 0 }], defaultNavMenuItemId: [{ defaultNavMenuItemIdChanged: 0 }], navMenus: [{ navMenusChanged: 0 }], type: [{ typeChanged: 0 }] };
|
|
100
96
|
}
|
|
101
97
|
static get style() {
|
|
102
|
-
return ".gids-header-navigation{display:flex;gap:var(--gids-gap-200)}.gids-header-navigation__item-container-gap{display:flex;gap:var(--gids-gap-200)}.gids-header-navigation__item-container-standard{gap:var(--gids-gap-0)}.gids-header-navigation--type-standard{gap:var(--gids-gap-0)}";
|
|
98
|
+
return ".gids-header-navigation{display:flex;gap:var(--gids-gap-200);overflow-y:hidden;overflow-x:hidden;flex-wrap:wrap}.gids-header-navigation__item-container-gap{display:flex;gap:var(--gids-gap-200)}.gids-header-navigation__item-container-standard{gap:var(--gids-gap-0)}.gids-header-navigation--mode-scroll{display:flex;width:100%;align-items:stretch;justify-content:stretch;flex-wrap:nowrap;overflow-y:hidden;overflow-x:auto}.gids-header-navigation--mode-scroll>*{flex-shrink:0 !important}.gids-header-navigation--type-standard{gap:var(--gids-gap-0)}";
|
|
103
99
|
}
|
|
104
100
|
}, [0, "gids-header-navigation", { appearance: [1], selectionAppearance: [1, "selection-appearance"], type: [1], selectionType: [1, "selection-type"], defaultNavItemId: [1, "default-nav-item-id"], defaultNavMenuId: [1, "default-nav-menu-id"], defaultNavMenuItemId: [1, "default-nav-menu-item-id"], applyShadow: [4, "apply-shadow"], applySeparators: [4, "apply-separators"], borderRadius: [1, "border-radius"], mode: [1], size: [1], navMenus: [16], onHeaderNavigationItemChange: [16], selectedItemIdsState: [32], selectedMenuItemIdsState: [32], expandedMenuIdsState: [32] }, void 0, { appearance: [{ appearanceChanged: 0 }], selectionAppearance: [{ selectionAppearanceChanged: 0 }], borderRadius: [{ borderRadiusChanged: 0 }], applyShadow: [{ shadowChanged: 0 }], size: [{ sizeChanged: 0 }], applySeparators: [{ separatorsChanged: 0 }], mode: [{ modeChanged: 0 }], defaultNavItemId: [{ defaultNavItemIdChanged: 0 }], defaultNavMenuId: [{ defaultNavMenuIdChanged: 0 }], defaultNavMenuItemId: [{ defaultNavMenuItemIdChanged: 0 }], navMenus: [{ navMenusChanged: 0 }], type: [{ typeChanged: 0 }] }]);
|
|
105
|
-
function
|
|
106
|
-
typeof customElements < "u" && ["gids-header-navigation", "gids-header-navigation-item"].forEach(((
|
|
107
|
-
switch (
|
|
101
|
+
function u() {
|
|
102
|
+
typeof customElements < "u" && ["gids-header-navigation", "gids-flyout-panel", "gids-header-navigation-item"].forEach(((e) => {
|
|
103
|
+
switch (e) {
|
|
108
104
|
case "gids-header-navigation":
|
|
109
|
-
customElements.get(
|
|
105
|
+
customElements.get(o(e)) || customElements.define(o(e), g);
|
|
106
|
+
break;
|
|
107
|
+
case "gids-flyout-panel":
|
|
108
|
+
customElements.get(o(e)) || x();
|
|
110
109
|
break;
|
|
111
110
|
case "gids-header-navigation-item":
|
|
112
|
-
customElements.get(
|
|
111
|
+
customElements.get(o(e)) || w();
|
|
113
112
|
}
|
|
114
113
|
}));
|
|
115
114
|
}
|
|
116
|
-
|
|
117
|
-
const
|
|
115
|
+
u();
|
|
116
|
+
const P = g, $ = u;
|
|
118
117
|
export {
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
P as GidsHeaderNavigation,
|
|
119
|
+
$ as defineCustomElement
|
|
121
120
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as
|
|
2
|
-
const
|
|
1
|
+
import { l as t, r as e } from "./p-_OVEnTXa-q7qjnzI3.js";
|
|
2
|
+
const s = t, m = e;
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
s as GidsInput,
|
|
5
|
+
m as defineCustomElement
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as e, c as
|
|
2
|
-
const
|
|
1
|
+
import { g as e, c as t } from "./p-By0R-oJV-DkI-JpEG.js";
|
|
2
|
+
const r = e, s = t;
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
r as GidsLineChart,
|
|
5
|
+
s as defineCustomElement
|
|
6
6
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { L as q, u as M, D as
|
|
2
|
-
import { o as
|
|
1
|
+
import { L as q, u as M, D as r, P as E, F as K, q as I } from "./p-B4hcsDH0-CPqEc-vc.js";
|
|
2
|
+
import { o as $ } from "./p-BsC3-MVH-j4fPhip5.js";
|
|
3
3
|
import { d as S } from "./p-iQRr_fAH-Dvv1n8QD.js";
|
|
4
4
|
import { o as J } from "./p-Dg_WeHpV-DehzGL6g.js";
|
|
5
5
|
import { c as B } from "./clsx-OuTLNxxd.js";
|
|
6
|
-
const F = (e) => !!(e?.buttonLabel && e.buttonLabel !== "" || e?.leadingIconName && e.leadingIconName !== "" || e?.trailingIconName && e.trailingIconName !== ""), Q = ({ cellActionButton: e, neededIconType:
|
|
6
|
+
const F = (e) => !!(e?.buttonLabel && e.buttonLabel !== "" || e?.leadingIconName && e.leadingIconName !== "" || e?.trailingIconName && e.trailingIconName !== ""), Q = ({ cellActionButton: e, neededIconType: t = "leading" }) => t === "trailing" ? {
|
|
7
7
|
cellIconName: e?.trailingIconName,
|
|
8
8
|
cellIconAppearance: e?.trailingIconAppearance,
|
|
9
9
|
cellIconSize: e?.trailingIconSize
|
|
@@ -15,83 +15,83 @@ const F = (e) => !!(e?.buttonLabel && e.buttonLabel !== "" || e?.leadingIconName
|
|
|
15
15
|
__proto__: null,
|
|
16
16
|
getTableCellBtnIcon: Q,
|
|
17
17
|
isTableCellActionButtonVisible: F
|
|
18
|
-
}, Symbol.toStringTag, { value: "Module" })), W = ({ width: e },
|
|
18
|
+
}, Symbol.toStringTag, { value: "Module" })), W = ({ width: e }, t) => B("gids-basic-table-header", {
|
|
19
19
|
// Widths
|
|
20
20
|
// 'gids-basic-table-header--width-full': width === 'full', // Width set by default so not needed
|
|
21
21
|
"gids-basic-table-header--width-intrinsic": e === "intrinsic"
|
|
22
|
-
},
|
|
22
|
+
}, t), X = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23
23
|
__proto__: null,
|
|
24
24
|
getGidsBasicTableHeaderClassNames: W
|
|
25
|
-
}, Symbol.toStringTag, { value: "Module" })), Y = ({ width: e },
|
|
25
|
+
}, Symbol.toStringTag, { value: "Module" })), Y = ({ width: e }, t) => B("gids-basic-table-row", {
|
|
26
26
|
// Widths
|
|
27
27
|
// 'gids-basic-table-row--width-full': width === 'full', // Width set by default so not needed
|
|
28
28
|
"gids-basic-table-row--width-intrinsic": e === "intrinsic"
|
|
29
|
-
},
|
|
29
|
+
}, t), Z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
30
30
|
__proto__: null,
|
|
31
31
|
getGidsBasicTableRowClassNames: Y
|
|
32
|
-
}, Symbol.toStringTag, { value: "Module" })), ee = ({ width: e },
|
|
32
|
+
}, Symbol.toStringTag, { value: "Module" })), ee = ({ width: e }, t) => B("gids-md-table", {
|
|
33
33
|
// Widths
|
|
34
34
|
// 'gids-md-table--width-full': width === 'full', // Width set by default so not needed
|
|
35
35
|
"gids-md-table--width-intrinsic": e === "intrinsic"
|
|
36
|
-
},
|
|
36
|
+
}, t), te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
37
37
|
__proto__: null,
|
|
38
38
|
getGidsMdTableClassNames: ee
|
|
39
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
39
|
+
}, Symbol.toStringTag, { value: "Module" })), ae = ({ borderSides: e, borderRadiusSides: t, appearance: a, textAlignment: l, width: d }, i) => B("gids-table-cell", {
|
|
40
40
|
"gids-table-cell--border-side-top": e?.includes("top"),
|
|
41
41
|
"gids-table-cell--border-side-bottom": e?.includes("bottom"),
|
|
42
42
|
"gids-table-cell--border-side-left": e?.includes("left"),
|
|
43
43
|
"gids-table-cell--border-side-right": e?.includes("right"),
|
|
44
44
|
// Border radius sides
|
|
45
|
-
"gids-table-cell--border-radius-side-top-left":
|
|
46
|
-
"gids-table-cell--border-radius-side-bottom-left":
|
|
47
|
-
"gids-table-cell--border-radius-side-top-right":
|
|
48
|
-
"gids-table-cell--border-radius-side-bottom-right":
|
|
45
|
+
"gids-table-cell--border-radius-side-top-left": t?.includes("top-left"),
|
|
46
|
+
"gids-table-cell--border-radius-side-bottom-left": t?.includes("bottom-left"),
|
|
47
|
+
"gids-table-cell--border-radius-side-top-right": t?.includes("top-right"),
|
|
48
|
+
"gids-table-cell--border-radius-side-bottom-right": t?.includes("bottom-right"),
|
|
49
49
|
// Background colors
|
|
50
|
-
"gids-table-cell--appearance-default":
|
|
51
|
-
"gids-table-cell--appearance-primal":
|
|
52
|
-
"gids-table-cell--appearance-neutral-default":
|
|
53
|
-
"gids-table-cell--appearance-info":
|
|
54
|
-
"gids-table-cell--appearance-warning":
|
|
55
|
-
"gids-table-cell--appearance-positive":
|
|
56
|
-
"gids-table-cell--appearance-danger":
|
|
50
|
+
"gids-table-cell--appearance-default": a === "default",
|
|
51
|
+
"gids-table-cell--appearance-primal": a === "primal",
|
|
52
|
+
"gids-table-cell--appearance-neutral-default": a === "neutral-default",
|
|
53
|
+
"gids-table-cell--appearance-info": a === "info",
|
|
54
|
+
"gids-table-cell--appearance-warning": a === "warning",
|
|
55
|
+
"gids-table-cell--appearance-positive": a === "positive",
|
|
56
|
+
"gids-table-cell--appearance-danger": a === "danger",
|
|
57
57
|
// Alignments
|
|
58
58
|
"gids-table-cell--text-alignment-left": l === "left",
|
|
59
59
|
"gids-table-cell--text-alignment-right": l === "right",
|
|
60
60
|
"gids-table-cell--text-alignment-center": l === "center",
|
|
61
61
|
// Widths
|
|
62
62
|
// 'gids-table-cell--width-full': width === 'full', // Width set by default so not needed
|
|
63
|
-
"gids-table-cell--width-intrinsic":
|
|
63
|
+
"gids-table-cell--width-intrinsic": d === "intrinsic"
|
|
64
64
|
}, i), le = (e) => e && e.toString() !== "" ? `gids-typography-${e}` : "gids-typography-label-medium", ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
65
65
|
__proto__: null,
|
|
66
|
-
getGidsTableCellClassNames:
|
|
66
|
+
getGidsTableCellClassNames: ae,
|
|
67
67
|
getGidsTableCellLabelTypographyClass: le
|
|
68
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsTableCellClassNames:
|
|
68
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsTableCellClassNames: de, getGidsTableCellLabelTypographyClass: re } = ie, { isTableCellActionButtonVisible: ne, getTableCellBtnIcon: se } = U, v = ({ id: e, uniqueKey: t, extraData: a, label: l, cellDataType: d = "text", displayTags: i = [], width: n = "full", appearance: p = "none", borderSides: g = [], borderRadiusSides: o = [], textAlignment: h = "center", labelTypography: c = "label-medium", isHeaderCell: b = !1, cellPrimaryActionButtons: m = [], cellSecondaryActionButtons: z = [], onClickCellActionBtn: f, class: R, ...L }) => {
|
|
69
69
|
function C({ cellActionBtn: s, neededIconType: y = "leading" }) {
|
|
70
70
|
const T = se({ cellActionButton: s, neededIconType: y });
|
|
71
|
-
return T?.cellIconName && "" + T.cellIconName != "" ?
|
|
71
|
+
return T?.cellIconName && "" + T.cellIconName != "" ? r(S, { name: T.cellIconName, size: T.cellIconSize, appearance: T.cellIconAppearance }) : void 0;
|
|
72
72
|
}
|
|
73
73
|
function _(s) {
|
|
74
74
|
const y = s === "primary" ? m : z;
|
|
75
|
-
if (y && !(y.length <= 0)) return
|
|
75
|
+
if (y && !(y.length <= 0)) return r("div", { class: s === "primary" ? "gids-table-cell__primary-action-btn-container" : "gids-table-cell__secondary-action-btn-container" }, y.map(((T, w) => {
|
|
76
76
|
const H = s === "primary" ? y.length - w - 1 : w, A = y[H];
|
|
77
77
|
return ne(A) ? (function({ cellActionBtn: u, actionBtnIndex: P, actionBtnPosition: k }) {
|
|
78
|
-
return
|
|
79
|
-
f && f({ originalEvent: G, details: { appearance: p, cellDataType:
|
|
78
|
+
return r(J, { as: "button", appearance: u?.appearance ?? "default", size: u?.size ?? "md", disabled: u?.disabled, destructive: u?.destructive, positive: u?.positive, loading: u?.loading, width: u?.width ?? "intrinsic", type: "button", leadingIcon: C({ cellActionBtn: u, neededIconType: "leading" }), trailingIcon: C({ cellActionBtn: u, neededIconType: "trailing" }), onClick: (O) => (function({ event: G, actionBtnIndex: x, actionBtnPosition: j }) {
|
|
79
|
+
f && f({ originalEvent: G, details: { appearance: p, cellDataType: d, displayTags: i, label: l, id: e, extraData: a, isHeaderCell: b, uniqueKey: t, actionBtnNumber: "action-btn-" + (x + 1), actionBtnIndex: x, actionBtnPosition: j ?? "secondary" } });
|
|
80
80
|
})({ event: O, actionBtnIndex: P, actionBtnPosition: k }) }, u?.buttonLabel ?? "");
|
|
81
81
|
})({ cellActionBtn: A, actionBtnIndex: H, actionBtnPosition: s }) : void 0;
|
|
82
82
|
})));
|
|
83
83
|
}
|
|
84
|
-
return
|
|
85
|
-
}, { getGidsBasicTableRowClassNames: oe } = Z, D = ({ width: e = "full", layout:
|
|
84
|
+
return r(b ? "th" : "td", { ...L, class: de({ borderSides: g, borderRadiusSides: o, appearance: p, textAlignment: h, width: n }, R), id: e, "unique-key": t, "extra-data": JSON.stringify(a) }, _("primary"), d === "text" && l && l !== "" ? r("span", { class: "" + re(c) }, l) : void 0, d === "display-tag" && i && i.length > 0 ? r("div", { class: "gids-table-cell__display-tags-container" }, i.map(((s) => r($, { label: s?.label ?? "", appearance: s?.displayTagAppearance ?? "subtle", size: s?.displayTagSize ?? "xs", icon: s?.displayTagIcon ? r(S, { name: s.displayTagIcon, size: s?.displayTagSize ?? "xs", appearance: s?.displayTagIconAppearance ?? "regular" }) : void 0, color: s?.displayTagColor ?? "accent-5" })))) : void 0, _("secondary"));
|
|
85
|
+
}, { getGidsBasicTableRowClassNames: oe } = Z, D = ({ width: e = "full", layout: t = "horizontal", rows: a = [], isHeaderRow: l = !1, cellPrimaryActionButtons: d, cellSecondaryActionButtons: i, onClickRowActionBtn: n, class: p, ...g }) => {
|
|
86
86
|
const o = oe({ width: e }, p);
|
|
87
87
|
function h({ event: c, cellIndex: b }) {
|
|
88
88
|
n && n({ ...c, details: { ...c.details, cellIndex: b } });
|
|
89
89
|
}
|
|
90
|
-
return
|
|
91
|
-
}, { getGidsBasicTableHeaderClassNames: ce } = X, be = ({ width: e = "full", headerCells:
|
|
90
|
+
return t === "vertical" ? r(K, null, a.map(((c, b) => r("tr", { ...g, key: "row-v-" + (b + 1), class: o }, r(v, { ...c, width: e, isHeaderCell: l, cellPrimaryActionButtons: d, cellSecondaryActionButtons: i, onClickCellActionBtn: (m) => h({ event: m, cellIndex: b }) }))))) : r("tr", { ...g, class: o }, a.map(((c, b) => r(v, { key: "row-h-" + (b + 1), ...c, width: e, isHeaderCell: l, cellPrimaryActionButtons: d, cellSecondaryActionButtons: i, onClickCellActionBtn: (m) => h({ event: m, cellIndex: b }) }))));
|
|
91
|
+
}, { getGidsBasicTableHeaderClassNames: ce } = X, be = ({ width: e = "full", headerCells: t = [], appearance: a = "none", labelTypography: l = "label-medium", textAlignment: d = "center", layout: i = "horizontal", cellPrimaryActionButtons: n, cellSecondaryActionButtons: p, onClickHeaderActionBtn: g, class: o, ...h }) => {
|
|
92
92
|
const c = ce({ width: e }, o);
|
|
93
|
-
return
|
|
94
|
-
}, { getGidsMdTableClassNames: pe } =
|
|
93
|
+
return r("thead", { ...h, class: c }, r(D, { rows: t.map(((b) => ({ appearance: a, labelTypography: l, textAlignment: d, ...b }))), width: e, layout: i, isHeaderRow: !0, cellPrimaryActionButtons: n, cellSecondaryActionButtons: p, onClickRowActionBtn: g }));
|
|
94
|
+
}, { getGidsMdTableClassNames: pe } = te, N = q(class extends M {
|
|
95
95
|
constructor(e) {
|
|
96
96
|
super(), e !== !1 && this.__registerHost(), this.isTopHeaderVisible = !1, this.isSideHeaderVisible = !1, this.width = "full", this.topHeaderAppearance = "none", this.sideHeaderAppearance = "none", this.rowAppearance = "none", this.tableBorders = "none", this.tableBorderRadius = [], this.topHeaderLabelTypography = "eyebrow-small", this.sideHeaderLabelTypography = "label-small", this.rowLabelTypography = "label-small", this.topHeaderTextAlignment = "left", this.sideHeaderTextAlignment = "left", this.rowTextAlignment = "left", this.topHeaderCells = [], this.tableBody = [], this.constructedTableBodyData = [];
|
|
97
97
|
}
|
|
@@ -117,50 +117,50 @@ const F = (e) => !!(e?.buttonLabel && e.buttonLabel !== "" || e?.leadingIconName
|
|
|
117
117
|
this.makeTableBodyData();
|
|
118
118
|
}
|
|
119
119
|
makeTableBodyData() {
|
|
120
|
-
const e = this.isSideHeaderVisible,
|
|
121
|
-
|
|
120
|
+
const e = this.isSideHeaderVisible, t = this?.tableBody ?? [], a = [];
|
|
121
|
+
t.map(((l, d) => {
|
|
122
122
|
let i = [];
|
|
123
123
|
const n = l.heading, p = l.id, g = l.uniqueKey, o = l.extraData, h = l?.items ?? [];
|
|
124
124
|
if (e && n && n !== "") {
|
|
125
|
-
const c = this.getSideHeaderBorderSides({ _tableBodyData:
|
|
125
|
+
const c = this.getSideHeaderBorderSides({ _tableBodyData: t, _itemsArr: h, indexI: d });
|
|
126
126
|
i = [{ id: p, uniqueKey: g, extraData: o, label: n, appearance: this.sideHeaderAppearance, labelTypography: this.sideHeaderLabelTypography, textAlignment: this.sideHeaderTextAlignment, isHeader: !0, borderSides: c }];
|
|
127
127
|
}
|
|
128
128
|
h.map(((c, b) => {
|
|
129
|
-
const m = this.getRowBorderSides({ _tableBodyData:
|
|
129
|
+
const m = this.getRowBorderSides({ _tableBodyData: t, _itemsArr: h, indexI: d, indexJ: b });
|
|
130
130
|
i.push({ ...c, appearance: this.rowAppearance, labelTypography: this.rowLabelTypography, textAlignment: this.rowTextAlignment, isHeader: !1, borderSides: m });
|
|
131
|
-
})),
|
|
132
|
-
})), this.constructedTableBodyData =
|
|
131
|
+
})), a.push({ heading: n, id: p, uniqueKey: g, extraData: o, items: i });
|
|
132
|
+
})), this.constructedTableBodyData = a;
|
|
133
133
|
}
|
|
134
|
-
getRowBorderSides({ _tableBodyData: e, _itemsArr:
|
|
135
|
-
const
|
|
134
|
+
getRowBorderSides({ _tableBodyData: e, _itemsArr: t, indexI: a, indexJ: l }) {
|
|
135
|
+
const d = this.applyTableInternalBorders(), i = this.applyTableAllBorders();
|
|
136
136
|
let n = [];
|
|
137
|
-
return (
|
|
137
|
+
return (d || i) && (l < t.length && a + 1 < e.length && (n = ["bottom"]), l + 1 < t.length && (n = [...n, "right"])), n;
|
|
138
138
|
}
|
|
139
|
-
getSideHeaderBorderSides({ _tableBodyData: e, _itemsArr:
|
|
140
|
-
const l = this.applyTableInternalBorders(),
|
|
139
|
+
getSideHeaderBorderSides({ _tableBodyData: e, _itemsArr: t, indexI: a }) {
|
|
140
|
+
const l = this.applyTableInternalBorders(), d = this.applyTableAllBorders();
|
|
141
141
|
let i = [];
|
|
142
|
-
return (l ||
|
|
142
|
+
return (l || d) && (a + 1 < e.length && (i = ["bottom"]), t.length > 0 && (i = [...i, "right"])), i;
|
|
143
143
|
}
|
|
144
144
|
getTableClasses() {
|
|
145
145
|
const e = this.width === "full" ? "gids-md-table__main-table gids-md-table__main-table-width-full" : "gids-md-table__main-table gids-md-table__main-table-width-intrinsic";
|
|
146
|
-
let
|
|
147
|
-
this.applyTableOuterBorders() && (
|
|
148
|
-
const
|
|
149
|
-
return
|
|
146
|
+
let t = e;
|
|
147
|
+
this.applyTableOuterBorders() && (t = e + " gids-md-table__outer-borders");
|
|
148
|
+
const a = this.addBorderRadiusDirectlyToTable();
|
|
149
|
+
return a && a !== "" ? `${t} ${a}` : "" + t;
|
|
150
150
|
}
|
|
151
151
|
addBorderRadiusDirectlyToTable() {
|
|
152
152
|
let e = "";
|
|
153
|
-
const
|
|
154
|
-
return
|
|
153
|
+
const t = this?.tableBorderRadius ?? [];
|
|
154
|
+
return t.includes("top-left") && (e = "gids-md-table__radius-top-left"), t.includes("bottom-left") && (e += " gids-md-table__radius-bottom-left"), t.includes("top-right") && (e += " gids-md-table__radius-top-right"), t.includes("bottom-right") && (e += " gids-md-table__radius-bottom-right"), e;
|
|
155
155
|
}
|
|
156
156
|
getTopHeaderCells() {
|
|
157
|
-
const e = this.isSideHeaderVisible,
|
|
158
|
-
let
|
|
159
|
-
e === !1 &&
|
|
160
|
-
const l = this.applyTableInternalBorders(),
|
|
161
|
-
return
|
|
157
|
+
const e = this.isSideHeaderVisible, t = this?.topHeaderCells ?? [];
|
|
158
|
+
let a = [...t];
|
|
159
|
+
e === !1 && t.length > 0 ? a.splice(0, 1) : a = [...t];
|
|
160
|
+
const l = this.applyTableInternalBorders(), d = this.applyTableAllBorders(), i = this.applyTableTopHeaderBorders(), n = [];
|
|
161
|
+
return a.map(((p, g) => {
|
|
162
162
|
let o = [];
|
|
163
|
-
(l ||
|
|
163
|
+
(l || d || i) && (o = ["bottom"], g + 1 < a.length && (o = [...o, "right"])), n.push({ ...p, borderSides: o });
|
|
164
164
|
})), n;
|
|
165
165
|
}
|
|
166
166
|
applyTableOuterBorders() {
|
|
@@ -177,8 +177,8 @@ const F = (e) => !!(e?.buttonLabel && e.buttonLabel !== "" || e?.leadingIconName
|
|
|
177
177
|
return this.tableBorders === "top-header-only";
|
|
178
178
|
}
|
|
179
179
|
render() {
|
|
180
|
-
const e = pe({ width: this.width }),
|
|
181
|
-
return
|
|
180
|
+
const e = pe({ width: this.width }), t = this.isTopHeaderVisible, a = this.getTopHeaderCells(), l = this?.constructedTableBodyData ?? [];
|
|
181
|
+
return r(E, { key: "7fd7bb52b7abc8d286238d684eaf2ee682992c66", class: e }, r("table", { key: "cdb0d3d5b1d2e99ffb63e5ed1bd88dec771ab073", class: this.getTableClasses() }, t ? r(be, { appearance: this.topHeaderAppearance, labelTypography: this.topHeaderLabelTypography, textAlignment: this.topHeaderTextAlignment, headerCells: a, width: this.width }) : void 0, r("tbody", { key: "18458aac3a01fd79343b9023728175566f4a2134" }, l.length > 0 ? l.map(((d) => r(D, { layout: "horizontal", rows: d?.items ?? [], width: this.width }))) : void 0)));
|
|
182
182
|
}
|
|
183
183
|
get hostElement() {
|
|
184
184
|
return this;
|
|
@@ -20,7 +20,7 @@ const c = (t) => t === "top" || t === "top-bottom", h = (t) => t === "bottom" ||
|
|
|
20
20
|
this._textArea.scrollTop + this._textArea.offsetHeight >= this._textArea.scrollHeight ? this._el.style.setProperty("--gidsOverflowContainer-after-opacity", "0") : t !== 0 ? t > 0 && (f(this.shadowLocation) && this._el.style.setProperty("--gidsOverflowContainer-before-opacity", "" + Math.min(t / 20, 1)), s(this.shadowLocation) && this._el.style.setProperty("--gidsOverflowContainer-after-opacity", "" + Math.min((this._textArea.scrollHeight - (this._textArea.scrollTop + this._textArea.offsetHeight)) / 20, 1))) : this._el.style.setProperty("--gidsOverflowContainer-after-opacity", "0");
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return e("div", { key: "
|
|
23
|
+
return e("div", { key: "84f74e45eb32f9e460b257495ec6db4e354a4aa8", class: "gids-overflow-container__text-area", onScroll: this.calculateShadows.bind(this) }, e("slot", { key: "73deabbe3b4c769890153d41dcc85f4e1cd8c923" }));
|
|
24
24
|
}
|
|
25
25
|
get _el() {
|
|
26
26
|
return this;
|
|
@@ -120,7 +120,7 @@ const Q = ({ appearance: t }, e) => h("gids-notification-container", {
|
|
|
120
120
|
return o("div", { ...a, class: z({ appearance: t }, i) }, o("div", { class: "gids-snackbar-container__content" }, t !== "default" && r != null ? o(p, { name: r, alt: "", appearance: "filled", size: "md", class: "gids-snackbar-container__icon" }) : null, typeof e == "string" ? o("p", null, e) : e), n);
|
|
121
121
|
}, { getGidsNotificationContainerClassNames: Y, getNotificationContainerIconNames: E } = j, R = ({ notificationTitle: t, children: e, button: n, appearance: i = "default", pronunciation: a = "standard", onCloseNotificationClick: r, class: s, ...m }) => {
|
|
122
122
|
const c = E(i);
|
|
123
|
-
return o("div", { class: Y({ appearance: i }, s), ...m }, i !== "default" && c ? o("div", { class: "gids-notification-container__leading-icon-wrapper" }, o(p, { size: "md", name: c, alt: "", appearance: "filled" })) : null, o("div", { class: "gids-notification-container__content-wrapper" }, o("div", { class: "gids-notification-container__top-content" }, o("div", { class: "gids-notification-container__text-content" }, t != null && t !== "" ? o("span", { class: "gids-notification-container__title" }, t) : null, e ? typeof e == "string" ? o("p", null, e) : e : null), a === "standard" ? o("div", { class: "gids-notification-container__cross-btn-wrapper" }, o(u, { size: "sm", appearance: "subtle", width: "intrinsic", leadingIcon: o(p, { name: "
|
|
123
|
+
return o("div", { class: Y({ appearance: i }, s), ...m }, i !== "default" && c ? o("div", { class: "gids-notification-container__leading-icon-wrapper" }, o(p, { size: "md", name: c, alt: "", appearance: "filled" })) : null, o("div", { class: "gids-notification-container__content-wrapper" }, o("div", { class: "gids-notification-container__top-content" }, o("div", { class: "gids-notification-container__text-content" }, t != null && t !== "" ? o("span", { class: "gids-notification-container__title" }, t) : null, e ? typeof e == "string" ? o("p", null, e) : e : null), a === "standard" ? o("div", { class: "gids-notification-container__cross-btn-wrapper" }, o(u, { size: "sm", appearance: "subtle", width: "intrinsic", leadingIcon: o(p, { name: "x-circle", size: "md", appearance: "regular" }), onClick: r })) : null), n ? o("div", { class: "gids-notification-container__bottom-content" }, n) : null));
|
|
124
124
|
}, { getComponentClasses: B, getComponentStackClasses: G } = O, _ = C(class extends y {
|
|
125
125
|
constructor(t) {
|
|
126
126
|
super(), t !== !1 && this.__registerHost(), this.__attachShadow(), this._parentOverlayProvider = null, this._componentQueue = [], this._allowedComponentQueue = [], this._exitingComponents = [], this._renderSnackbar = (e, n) => {
|
|
@@ -187,7 +187,7 @@ const Q = ({ appearance: t }, e) => h("gids-notification-container", {
|
|
|
187
187
|
}
|
|
188
188
|
render() {
|
|
189
189
|
const t = this._allowedComponentQueue[0]?.position || "bottom-center";
|
|
190
|
-
return o(w, { key: "
|
|
190
|
+
return o(w, { key: "e8671c22c0d96bf4cdb6011ae5f292261d180bb3" }, o("slot", { key: "f6fb5a4dc84ae31ea4fef0af1809f75f228b464a" }), this._isRoot() ? o("div", { class: G({ position: t }) }, [...this._allowedComponentQueue].reverse().map(((e) => this._renderComponent(e)))) : null);
|
|
191
191
|
}
|
|
192
192
|
get _el() {
|
|
193
193
|
return this;
|