@ganpatiinfo/gids-core-web 20.0.0 → 21.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.
Files changed (283) hide show
  1. package/dist/css/index.css +607 -59
  2. package/dist/css/index.css.map +1 -1
  3. package/dist/gids-action-bar.d.ts +1 -1
  4. package/dist/gids-action-bar.js +1 -1
  5. package/dist/gids-activity-gauge.d.ts +1 -1
  6. package/dist/gids-activity-gauge.js +1 -1
  7. package/dist/gids-advanced-tooltip.d.ts +1 -1
  8. package/dist/gids-advanced-tooltip.js +1 -1
  9. package/dist/gids-bar-chart.d.ts +1 -1
  10. package/dist/gids-bar-chart.js +1 -1
  11. package/dist/gids-bento-card.d.ts +1 -1
  12. package/dist/gids-bento-card.js +1 -1
  13. package/dist/gids-calendar-header-panel.d.ts +1 -1
  14. package/dist/gids-calendar-header-panel.js +1 -1
  15. package/dist/gids-calendar-month-list.d.ts +1 -1
  16. package/dist/gids-calendar-month-list.js +1 -1
  17. package/dist/gids-calendar-year-list.d.ts +1 -1
  18. package/dist/gids-calendar-year-list.js +1 -1
  19. package/dist/gids-calendar.d.ts +1 -1
  20. package/dist/gids-calendar.js +1 -1
  21. package/dist/gids-carousel.d.ts +1 -1
  22. package/dist/gids-chart-legend-item.d.ts +1 -1
  23. package/dist/gids-chart-legend-item.js +1 -1
  24. package/dist/gids-chart-legend.d.ts +1 -1
  25. package/dist/gids-chart-legend.js +1 -1
  26. package/dist/gids-chart.d.ts +1 -1
  27. package/dist/gids-chart.js +1 -1
  28. package/dist/gids-chevron-button.d.ts +1 -1
  29. package/dist/gids-chevron-button.js +1 -1
  30. package/dist/gids-dot.d.ts +1 -1
  31. package/dist/gids-dot.js +1 -1
  32. package/dist/gids-dropdown-field.d.ts +1 -1
  33. package/dist/gids-dropdown-field.js +1 -1
  34. package/dist/gids-dropdown-picker.d.ts +1 -1
  35. package/dist/gids-dropdown-picker.js +1 -1
  36. package/dist/gids-dropdown.d.ts +1 -1
  37. package/dist/gids-dropdown.js +1 -1
  38. package/dist/gids-expansion-body-list-item.d.ts +1 -1
  39. package/dist/gids-expansion-body-list-item.js +1 -1
  40. package/dist/gids-expansion-body-list.d.ts +1 -1
  41. package/dist/gids-expansion-body-list.js +1 -1
  42. package/dist/gids-expansion-group.d.ts +1 -1
  43. package/dist/gids-expansion-group.js +1 -1
  44. package/dist/gids-expansion.d.ts +1 -1
  45. package/dist/gids-expansion.js +1 -1
  46. package/dist/gids-field.d.ts +1 -1
  47. package/dist/gids-field.js +1 -1
  48. package/dist/gids-filter.d.ts +1 -1
  49. package/dist/gids-filter.js +1 -1
  50. package/dist/gids-flyout-panel.d.ts +1 -1
  51. package/dist/gids-flyout-panel.js +1 -1
  52. package/dist/gids-form.d.ts +11 -0
  53. package/dist/gids-form.js +1 -0
  54. package/dist/gids-header-navigation-item.d.ts +1 -1
  55. package/dist/gids-header-navigation-item.js +1 -1
  56. package/dist/gids-header-navigation.d.ts +1 -1
  57. package/dist/gids-header-navigation.js +1 -1
  58. package/dist/gids-icon.d.ts +1 -1
  59. package/dist/gids-icon.js +1 -1
  60. package/dist/gids-input.d.ts +1 -1
  61. package/dist/gids-input.js +1 -1
  62. package/dist/gids-level-gauge.d.ts +1 -1
  63. package/dist/gids-line-chart.d.ts +1 -1
  64. package/dist/gids-line-chart.js +1 -1
  65. package/dist/gids-md-table.d.ts +1 -1
  66. package/dist/gids-md-table.js +1 -1
  67. package/dist/gids-notification.d.ts +1 -1
  68. package/dist/gids-overflow-container.d.ts +1 -1
  69. package/dist/gids-overflow-container.js +1 -1
  70. package/dist/gids-overlay-provider.d.ts +1 -1
  71. package/dist/gids-overlay-provider.js +1 -1
  72. package/dist/gids-password-field.d.ts +1 -1
  73. package/dist/gids-password-field.js +1 -1
  74. package/dist/gids-pie-chart.d.ts +1 -1
  75. package/dist/gids-pie-chart.js +1 -1
  76. package/dist/gids-popover.d.ts +1 -1
  77. package/dist/gids-popover.js +1 -1
  78. package/dist/gids-profile-menu-header.d.ts +1 -1
  79. package/dist/gids-profile-menu-header.js +1 -1
  80. package/dist/gids-profile-menu.d.ts +1 -1
  81. package/dist/gids-profile-menu.js +1 -1
  82. package/dist/gids-profile.d.ts +1 -1
  83. package/dist/gids-profile.js +1 -1
  84. package/dist/gids-progress-circle.d.ts +1 -1
  85. package/dist/gids-scrim.d.ts +1 -1
  86. package/dist/gids-scrim.js +1 -1
  87. package/dist/gids-sidebar-item.d.ts +11 -0
  88. package/dist/gids-sidebar-item.js +1 -0
  89. package/dist/gids-sidebar-menu.d.ts +11 -0
  90. package/dist/gids-sidebar-menu.js +1 -0
  91. package/dist/gids-sidebar.d.ts +11 -0
  92. package/dist/gids-sidebar.js +1 -0
  93. package/dist/gids-skeleton.d.ts +1 -1
  94. package/dist/gids-skeleton.js +1 -1
  95. package/dist/gids-snackbar.d.ts +1 -1
  96. package/dist/gids-tab-item.d.ts +1 -1
  97. package/dist/gids-tab-item.js +1 -1
  98. package/dist/gids-tab.d.ts +1 -1
  99. package/dist/gids-tab.js +1 -1
  100. package/dist/gids-text-field.d.ts +1 -1
  101. package/dist/gids-text-field.js +1 -1
  102. package/dist/gids-toggle-button.d.ts +1 -1
  103. package/dist/gids-toggle-button.js +1 -1
  104. package/dist/gids-tooltip.d.ts +1 -1
  105. package/dist/gids-tooltip.js +1 -1
  106. package/dist/gids-transfer-list.d.ts +1 -1
  107. package/dist/gids-transfer-list.js +1 -1
  108. package/dist/p--kh67-_Z.js +1 -0
  109. package/dist/{p-DrDadv7P.js → p-B2flLE0s.js} +1 -1
  110. package/dist/{p-jGho9nbS.js → p-BAqWcL0K.js} +1 -1
  111. package/dist/p-BCbovLBE.js +1 -0
  112. package/dist/{p-PcSMc4jQ.js → p-BIxBMTG9.js} +1 -1
  113. package/dist/{p-DgKrPmDn.js → p-BQT5yy5L.js} +1 -1
  114. package/dist/p-BRNvHMdK.js +1 -0
  115. package/dist/{p-CBiu-Vh3.js → p-B_FEFM5I.js} +1 -1
  116. package/dist/{p-Dw_kb9MC.js → p-B_St7yaX.js} +1 -1
  117. package/dist/{p-D0coZTd2.js → p-CAjDiWIc.js} +1 -1
  118. package/dist/{p-DYjV5XrH.js → p-CIjK3iHM.js} +1 -1
  119. package/dist/p-CV1-78HB.js +1 -0
  120. package/dist/{p-BdsUwTgh.js → p-D0RJMGGj.js} +1 -1
  121. package/dist/{p-CH4nrjpL.js → p-DKSnGphd.js} +1 -1
  122. package/dist/{p-CIxuyUAl.js → p-DLRj-mUX.js} +1 -1
  123. package/dist/{p-DKOr5iAk.js → p-DMxvWIj1.js} +1 -1
  124. package/dist/p-DQQhGF5N.js +1 -0
  125. package/dist/p-DZ1ZcTMe.js +1 -0
  126. package/dist/{p-BthkC6NU.js → p-DnRuhvRw.js} +1 -1
  127. package/dist/p-DpvdbdZ-.js +1 -0
  128. package/dist/{p-DZ6xQXis.js → p-DrxfD2yZ.js} +1 -1
  129. package/dist/{p-C6GHG170.js → p-Ds5IzXj3.js} +1 -1
  130. package/dist/{p-j2_DKwBz.js → p-DzOOjiNH.js} +1 -1
  131. package/dist/{p-Cacy0Dji.js → p-E13ycS5K.js} +1 -1
  132. package/dist/{p-Cz9nwmgK.js → p-TfH966_e.js} +1 -1
  133. package/dist/{p-CMW3SjbP.js → p-_W77iniK.js} +1 -1
  134. package/dist/p-bfWlRsx_.js +1 -0
  135. package/dist/p-kWyyLyT3.js +1 -0
  136. package/dist/{p-CrqHKmjy.js → p-mv_7K1EM.js} +1 -1
  137. package/dist/{p-xbqOQZl9.js → p-tEbUT3n3.js} +1 -1
  138. package/dist/types/components/html/GidsSidebarMenuItem/GidsSidebarMenuItem.d.ts +6 -0
  139. package/dist/types/components/shared/GidsFloatingElementManager.d.ts +1 -1
  140. package/dist/types/components/webComponents/GidsFlyoutPanel/GidsFlyoutPanel.d.ts +4 -0
  141. package/dist/types/components/webComponents/GidsForm/GidsForm.d.ts +32 -0
  142. package/dist/types/components/webComponents/GidsProfileMenuHeader/GidsProfileMenuHeader.d.ts +2 -0
  143. package/dist/types/components/webComponents/GidsSidebar/GidsSidebar.d.ts +55 -0
  144. package/dist/types/components/webComponents/GidsSidebarItem/GidsSidebarItem.d.ts +56 -0
  145. package/dist/types/components/webComponents/GidsSidebarMenu/GidsSidebarMenu.d.ts +38 -0
  146. package/dist/types/components.d.ts +462 -2
  147. package/dist-bundled/es/gids-action-bar.js +6 -6
  148. package/dist-bundled/es/gids-activity-gauge.js +3 -3
  149. package/dist-bundled/es/gids-advanced-tooltip.js +1 -1
  150. package/dist-bundled/es/gids-bar-chart.js +3 -3
  151. package/dist-bundled/es/gids-bento-card.js +1 -1
  152. package/dist-bundled/es/gids-calendar-header-panel.js +3 -3
  153. package/dist-bundled/es/gids-calendar-month-list.js +3 -3
  154. package/dist-bundled/es/gids-calendar-year-list.js +1 -1
  155. package/dist-bundled/es/gids-calendar.js +23 -23
  156. package/dist-bundled/es/gids-chart-legend-item.js +3 -3
  157. package/dist-bundled/es/gids-chart-legend.js +4 -4
  158. package/dist-bundled/es/gids-chart.js +21 -21
  159. package/dist-bundled/es/gids-chevron-button.js +3 -3
  160. package/dist-bundled/es/gids-dot.js +1 -1
  161. package/dist-bundled/es/gids-dropdown-field.js +4 -4
  162. package/dist-bundled/es/gids-dropdown-picker.js +4 -4
  163. package/dist-bundled/es/gids-dropdown.js +3 -3
  164. package/dist-bundled/es/gids-expansion-body-list-item.js +3 -3
  165. package/dist-bundled/es/gids-expansion-body-list.js +2 -2
  166. package/dist-bundled/es/gids-expansion-group.js +4 -4
  167. package/dist-bundled/es/gids-expansion.js +6 -6
  168. package/dist-bundled/es/gids-field.js +3 -3
  169. package/dist-bundled/es/gids-filter.js +1 -1
  170. package/dist-bundled/es/gids-flyout-panel.js +4 -108
  171. package/dist-bundled/es/gids-form.js +92 -0
  172. package/dist-bundled/es/gids-header-navigation-item.js +3 -3
  173. package/dist-bundled/es/gids-header-navigation.js +3 -3
  174. package/dist-bundled/es/gids-icon.js +3 -3
  175. package/dist-bundled/es/gids-input.js +1 -1
  176. package/dist-bundled/es/gids-line-chart.js +1 -1
  177. package/dist-bundled/es/gids-md-table.js +53 -53
  178. package/dist-bundled/es/gids-overflow-container.js +4 -4
  179. package/dist-bundled/es/gids-overlay-provider.js +1 -1
  180. package/dist-bundled/es/gids-password-field.js +10 -10
  181. package/dist-bundled/es/gids-pie-chart.js +4 -4
  182. package/dist-bundled/es/gids-popover.js +1 -1
  183. package/dist-bundled/es/gids-profile-menu-header.js +1 -1
  184. package/dist-bundled/es/gids-profile-menu.js +4 -4
  185. package/dist-bundled/es/gids-profile.js +12 -12
  186. package/dist-bundled/es/gids-scrim.js +1 -1
  187. package/dist-bundled/es/gids-sidebar-item.js +6 -0
  188. package/dist-bundled/es/gids-sidebar-menu.js +6 -0
  189. package/dist-bundled/es/gids-sidebar.js +150 -0
  190. package/dist-bundled/es/gids-skeleton.js +1 -1
  191. package/dist-bundled/es/gids-tab-item.js +13 -13
  192. package/dist-bundled/es/gids-tab.js +7 -7
  193. package/dist-bundled/es/gids-text-field.js +3 -3
  194. package/dist-bundled/es/gids-toggle-button.js +1 -1
  195. package/dist-bundled/es/gids-tooltip.js +4 -4
  196. package/dist-bundled/es/gids-transfer-list.js +25 -26
  197. package/dist-bundled/es/{p-Cf3Ny79u-VGT_IyGI.js → p--kh67-_Z-BBhYy4ZX.js} +12 -11
  198. package/dist-bundled/es/{p-DrDadv7P-D4rbSYTr.js → p-B2flLE0s-UXdlvRVr.js} +2 -2
  199. package/dist-bundled/es/{p-jGho9nbS-BDiBvsn2.js → p-BAqWcL0K-DRjKDzoa.js} +8 -8
  200. package/dist-bundled/es/p-BCbovLBE-DfkhIEts.js +102 -0
  201. package/dist-bundled/es/{p-PcSMc4jQ-CzYLaIZr.js → p-BIxBMTG9-Bs6G0Wvv.js} +12 -12
  202. package/dist-bundled/es/{p-DgKrPmDn-C2CSKicX.js → p-BQT5yy5L-DhdgFXTM.js} +3 -3
  203. package/dist-bundled/es/p-BRNvHMdK-CqGtfAsn.js +11 -0
  204. package/dist-bundled/es/{p-CBiu-Vh3-r-McGzCb.js → p-B_FEFM5I-WvEFe7I_.js} +5 -5
  205. package/dist-bundled/es/{p-Dw_kb9MC-BTd0lrGA.js → p-B_St7yaX-Dq9UwiaA.js} +3 -3
  206. package/dist-bundled/es/{p-D0coZTd2-KhJZ57gK.js → p-CAjDiWIc-BieYBjHk.js} +1 -1
  207. package/dist-bundled/es/{p-DYjV5XrH-CI9LfBFx.js → p-CIjK3iHM-DEW8PRM5.js} +7 -7
  208. package/dist-bundled/es/{p-KQxuw_F--BTSoDfF9.js → p-CV1-78HB-DGkn3SPO.js} +18 -23
  209. package/dist-bundled/es/{p-BdsUwTgh-Cc7AQBsx.js → p-D0RJMGGj-DSjGfUhB.js} +3 -3
  210. package/dist-bundled/es/{p-CH4nrjpL-CrEJXTn0.js → p-DKSnGphd-EpxzqjUA.js} +7 -7
  211. package/dist-bundled/es/{p-CIxuyUAl-B2DxRM64.js → p-DLRj-mUX-B_ACFGx6.js} +6 -6
  212. package/dist-bundled/es/{p-DKOr5iAk-DA3Kc4Cn.js → p-DMxvWIj1-DPw-ITMY.js} +11 -11
  213. package/dist-bundled/es/{p-GcC8pCKF-CZJFTFeN.js → p-DQQhGF5N-mCqb5VTE.js} +8 -8
  214. package/dist-bundled/es/p-DZ1ZcTMe-tnPOECry.js +10 -0
  215. package/dist-bundled/es/{p-BthkC6NU-F03MhDw7.js → p-DnRuhvRw-Beh0bANh.js} +2 -2
  216. package/dist-bundled/es/p-DpvdbdZ--C7QlXxK2.js +118 -0
  217. package/dist-bundled/es/{p-DZ6xQXis-XT86MMis.js → p-DrxfD2yZ-Juydw__6.js} +9 -9
  218. package/dist-bundled/es/{p-C6GHG170-Di8lwQkY.js → p-Ds5IzXj3-BC_F0-JJ.js} +13 -13
  219. package/dist-bundled/es/{p-j2_DKwBz-CqyuxxnN.js → p-DzOOjiNH-Wm7KbI3O.js} +5 -5
  220. package/dist-bundled/es/{p-Cacy0Dji-D-D254kT.js → p-E13ycS5K-D-yK6pqz.js} +1 -1
  221. package/dist-bundled/es/{p-Cz9nwmgK-BO8HUAvD.js → p-TfH966_e-tyxLyzL3.js} +7 -7
  222. package/dist-bundled/es/{p-CMW3SjbP-ZYYIF_i6.js → p-_W77iniK-DZ9pVDuI.js} +2 -2
  223. package/dist-bundled/es/p-bfWlRsx_-B9hzkHIt.js +110 -0
  224. package/dist-bundled/es/p-kWyyLyT3-DhHcKhR9.js +267 -0
  225. package/dist-bundled/es/{p-CrqHKmjy-DwSsCofb.js → p-mv_7K1EM-lPgJqpPI.js} +1 -1
  226. package/dist-bundled/es/{p-xbqOQZl9-BK9vjfj7.js → p-tEbUT3n3-CWq8ErgN.js} +10 -10
  227. package/dist-bundled/umd/gids-action-bar.umd.js +3 -3
  228. package/dist-bundled/umd/gids-activity-gauge.umd.js +2 -2
  229. package/dist-bundled/umd/gids-advanced-tooltip.umd.js +2 -2
  230. package/dist-bundled/umd/gids-bar-chart.umd.js +1 -1
  231. package/dist-bundled/umd/gids-bento-card.umd.js +2 -2
  232. package/dist-bundled/umd/gids-calendar-header-panel.umd.js +1 -1
  233. package/dist-bundled/umd/gids-calendar-month-list.umd.js +2 -2
  234. package/dist-bundled/umd/gids-calendar-year-list.umd.js +2 -2
  235. package/dist-bundled/umd/gids-calendar.umd.js +1 -1
  236. package/dist-bundled/umd/gids-chart-legend-item.umd.js +1 -1
  237. package/dist-bundled/umd/gids-chart-legend.umd.js +1 -1
  238. package/dist-bundled/umd/gids-chart.umd.js +1 -1
  239. package/dist-bundled/umd/gids-chevron-button.umd.js +1 -1
  240. package/dist-bundled/umd/gids-dot.umd.js +1 -1
  241. package/dist-bundled/umd/gids-dropdown-field.umd.js +1 -1
  242. package/dist-bundled/umd/gids-dropdown-picker.umd.js +1 -1
  243. package/dist-bundled/umd/gids-dropdown.umd.js +1 -1
  244. package/dist-bundled/umd/gids-expansion-body-list-item.umd.js +1 -1
  245. package/dist-bundled/umd/gids-expansion-body-list.umd.js +1 -1
  246. package/dist-bundled/umd/gids-expansion-group.umd.js +2 -2
  247. package/dist-bundled/umd/gids-expansion.umd.js +1 -1
  248. package/dist-bundled/umd/gids-field.umd.js +2 -2
  249. package/dist-bundled/umd/gids-filter.umd.js +3 -3
  250. package/dist-bundled/umd/gids-flyout-panel.umd.js +2 -2
  251. package/dist-bundled/umd/gids-form.umd.js +5 -0
  252. package/dist-bundled/umd/gids-header-navigation-item.umd.js +2 -2
  253. package/dist-bundled/umd/gids-header-navigation.umd.js +1 -1
  254. package/dist-bundled/umd/gids-icon.umd.js +1 -1
  255. package/dist-bundled/umd/gids-input.umd.js +2 -2
  256. package/dist-bundled/umd/gids-line-chart.umd.js +1 -1
  257. package/dist-bundled/umd/gids-md-table.umd.js +1 -1
  258. package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
  259. package/dist-bundled/umd/gids-overlay-provider.umd.js +1 -1
  260. package/dist-bundled/umd/gids-password-field.umd.js +1 -1
  261. package/dist-bundled/umd/gids-pie-chart.umd.js +1 -1
  262. package/dist-bundled/umd/gids-popover.umd.js +1 -1
  263. package/dist-bundled/umd/gids-profile-menu-header.umd.js +2 -2
  264. package/dist-bundled/umd/gids-profile-menu.umd.js +2 -2
  265. package/dist-bundled/umd/gids-profile.umd.js +2 -2
  266. package/dist-bundled/umd/gids-scrim.umd.js +1 -1
  267. package/dist-bundled/umd/gids-sidebar-item.umd.js +5 -0
  268. package/dist-bundled/umd/gids-sidebar-menu.umd.js +5 -0
  269. package/dist-bundled/umd/gids-sidebar.umd.js +5 -0
  270. package/dist-bundled/umd/gids-skeleton.umd.js +1 -1
  271. package/dist-bundled/umd/gids-tab-item.umd.js +1 -1
  272. package/dist-bundled/umd/gids-tab.umd.js +1 -1
  273. package/dist-bundled/umd/gids-text-field.umd.js +2 -2
  274. package/dist-bundled/umd/gids-toggle-button.umd.js +2 -2
  275. package/dist-bundled/umd/gids-tooltip.umd.js +2 -2
  276. package/dist-bundled/umd/gids-transfer-list.umd.js +2 -2
  277. package/dist-bundled/umd-complete/gids-core-web.umd.js +4 -4
  278. package/package.json +35 -3
  279. package/dist/p-B0hLXifA.js +0 -1
  280. package/dist/p-Cf3Ny79u.js +0 -1
  281. package/dist/p-GcC8pCKF.js +0 -1
  282. package/dist/p-KQxuw_F-.js +0 -1
  283. package/dist-bundled/es/p-B0hLXifA-CoImnX3T.js +0 -99
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ganpatiinfo/gids-core-web",
3
- "version": "20.0.0",
3
+ "version": "21.0.0",
4
4
  "private": false,
5
5
  "description": "This is a core web package contains html components",
6
6
  "homepage": "https://ganpatiinfo-design-system.onrender.com/",
@@ -481,6 +481,38 @@
481
481
  "types": "./dist/gids-flyout-panel.d.ts",
482
482
  "default": "./dist/gids-flyout-panel.js"
483
483
  },
484
+ "./gids-sidebar-menu.js": {
485
+ "types": "./dist/gids-sidebar-menu.d.ts",
486
+ "default": "./dist/gids-sidebar-menu.js"
487
+ },
488
+ "./dist/gids-sidebar-menu.js": {
489
+ "types": "./dist/gids-sidebar-menu.d.ts",
490
+ "default": "./dist/gids-sidebar-menu.js"
491
+ },
492
+ "./gids-sidebar-item.js": {
493
+ "types": "./dist/gids-sidebar-item.d.ts",
494
+ "default": "./dist/gids-sidebar-item.js"
495
+ },
496
+ "./dist/gids-sidebar-item.js": {
497
+ "types": "./dist/gids-sidebar-item.d.ts",
498
+ "default": "./dist/gids-sidebar-item.js"
499
+ },
500
+ "./gids-sidebar.js": {
501
+ "types": "./dist/gids-sidebar.d.ts",
502
+ "default": "./dist/gids-sidebar.js"
503
+ },
504
+ "./dist/gids-sidebar.js": {
505
+ "types": "./dist/gids-sidebar.d.ts",
506
+ "default": "./dist/gids-sidebar.js"
507
+ },
508
+ "./gids-form.js": {
509
+ "types": "./dist/gids-form.d.ts",
510
+ "default": "./dist/gids-form.js"
511
+ },
512
+ "./dist/gids-form.js": {
513
+ "types": "./dist/gids-form.d.ts",
514
+ "default": "./dist/gids-form.js"
515
+ },
484
516
  "./customElements": {
485
517
  "default": "./dist/custom-elements.json"
486
518
  },
@@ -499,8 +531,8 @@
499
531
  "dependencies": {
500
532
  "@floating-ui/dom": "1.7.6",
501
533
  "clsx": "^2.1.1",
502
- "@ganpatiinfo/gids-core-shared": "^16.0.0",
503
- "@ganpatiinfo/gids-web-shared": "^14.0.0",
534
+ "@ganpatiinfo/gids-core-shared": "^17.0.0",
535
+ "@ganpatiinfo/gids-web-shared": "^14.1.0",
504
536
  "composed-offset-position": "^0.0.6"
505
537
  },
506
538
  "devDependencies": {
@@ -1 +0,0 @@
1
- import{h as e,t as a,p as t,H as i,c as r}from"./p-B4hcsDH0.js";import{GidsAvatarWebUtils as n,GidsProfileMenuHeaderWebUtils as s}from"@ganpatiinfo/gids-web-shared";import{GidsAvatarCommonUtils as o,GidsProfileMenuHeaderCommonUtils as d}from"@ganpatiinfo/gids-core-shared";import{G as l}from"./p-iQRr_fAH.js";import{c as g}from"./p-ChV9xqsO.js";import{G as p}from"./p-CcKHKwS0.js";const{shouldTextBeHiddenFromAt:h}=o,{getGidsAvatarClassNames:c}=n,m=({appearance:a,color:t,size:i,badge:r,text:n,imageSrc:s,alt:o,iconTitleId:d,class:g,...p})=>{const m=h({text:n,alt:o});return e("span",{class:c({color:t,size:i},g),...p},"image"===a?e("img",{src:s,alt:o??n??"",width:"100",height:"100"}):"icon"===a?e(l,{name:"user",alt:o??n,titleId:d}):e("span",{role:m?void 0:"img","aria-hidden":m?"true":void 0,"aria-label":m?void 0:o??n},n),r)},{getGidsProfileMenuHeaderClassNames:f}=s,{getProfileHeaderMenuAvatarText:v}=d,_=t(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.headerItemsPosition="default",this.avatarVisible=!1,this.avatarBadgeVisible=!1,this.onAvatarItemPress=e=>{const a=this.pressHeaderItems(e);this.onHeaderAvatarPress&&this.onHeaderAvatarPress({...a})},this.onHeaderItemTitlePress=e=>{const a=this.pressHeaderItems(e);this.onHeaderTitlePress&&this.onHeaderTitlePress({...a})},this.onHeaderItemSupportingTextPress=e=>{const a=this.pressHeaderItems(e);this.onHeaderSupportingTextPress&&this.onHeaderSupportingTextPress({...a})},this.pressHeaderItems=e=>{const a=this.avatarProps,t=a?.badgeProps??{};return{originalEvent:e,appearance:a?.appearance??"text",color:a?.color??"brand",imageSrc:a?.imageSrc??"",size:a?.size??"xl",text:this.getAvatarText(),badgeProps:{...t},headerItemsPosition:this?.headerItemsPosition??"default",headerTitle:this?.headerTitle??"",headerSupportingText:this?.headerSupportingText??""}},this.getAvatarText=()=>{const e=this?.avatarProps,a=this?.headerTitle;return e?.text??v({headerTitle:a})}}avatarPropsChanged(e){this.avatarProps=e}headerItemsPositionChanged(e){this.headerItemsPosition=e}headerTitleChanged(e){this.headerTitle=e}headerSupportingTextChanged(e){this.headerSupportingText=e}avatarVisibilityChanged(e){this.avatarVisible=e}avatarBadgeVisibilityChanged(e){this.avatarBadgeVisible=e}connectedCallback(){}render(){const a=this?.headerItemsPosition??"default",t=this?.headerTitle,i=this?.headerSupportingText,n=this?.avatarVisible??!1,s=this?.avatarBadgeVisible??!1,o=this?.avatarProps,d=o?.badgeProps,l=f({headerItemsPosition:a}),h=o?.size??"xl";return e(r,{key:"f16b9a25f3fb84610d47d52921c83cede9320789",class:l},n?e(m,{onClick:this.onAvatarItemPress,appearance:o?.appearance??"text",color:o?.color??"brand",size:h,text:this.getAvatarText(),imageSrc:o?.imageSrc??"",alt:o?.alt??"alt-img",badge:s?e(p,{appearance:d?.appearance??"information",type:d?.type,count:d?.count,outline:d?.outline}):void 0}):void 0,e("div",{key:"60d71e17b8a0c51e6eaa997d556c15ca9b9d08c0",class:g("gids-profile-menu-header__content-container-default",{"gids-profile-menu-header__content-container-centralized":"centralized"===a})},e("span",{key:"8ef50edf88e704431eb9e5cc32f5211767197ab1",onClick:this.onHeaderItemTitlePress},t),e("p",{key:"a3cf11a026b44d972f4d66626363d7a5430ea5cc",onClick:this.onHeaderItemSupportingTextPress},i)))}get hostElement(){return this}static get watchers(){return{avatarProps:[{avatarPropsChanged:0}],headerItemsPosition:[{headerItemsPositionChanged:0}],headerTitle:[{headerTitleChanged:0}],headerSupportingText:[{headerSupportingTextChanged:0}],avatarVisible:[{avatarVisibilityChanged:0}],avatarBadgeVisible:[{avatarBadgeVisibilityChanged:0}]}}static get style(){return".gids-profile-menu-header{display:flex;gap:var(--gids-gap-100);align-items:center;justify-content:flex-start;width:100%}.gids-profile-menu-header .gids-avatar{cursor:pointer;transition:all 0.3s ease-in-out}.gids-profile-menu-header .gids-avatar:hover{transform:scale(1.2)}.gids-profile-menu-header .gids-avatar:active{transform:scale(1)}.gids-profile-menu-header--position-centralized{flex-direction:column;justify-content:center;align-items:center;gap:var(--gids-gap-150)}.gids-profile-menu-header__content-container-default{display:flex;flex-direction:column;text-align:left}.gids-profile-menu-header__content-container-default span{font-family:var(--gids-typography-heading-x-small__font-family);font-size:var(--gids-typography-heading-x-small__font-size);font-weight:var(--gids-typography-heading-x-small__font-weight);letter-spacing:var(--gids-typography-heading-x-small__letter-spacing);line-height:var(--gids-typography-heading-x-small__line-height);text-transform:var(--gids-typography-heading-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-heading-x-small__font-variant-caps, inherit);color:var(--gids-color-text-default);cursor:pointer;transition:all 0.3s ease-in-out}.gids-profile-menu-header__content-container-default span:hover{transform:scale(1.1);padding-bottom:var(--gids-padding-vertical-edge-to-element-050);padding-left:var(--gids-padding-horizontal-edge-to-element-100)}.gids-profile-menu-header__content-container-default span:active{transform:scale(1)}.gids-profile-menu-header__content-container-default p{margin:0;padding:0;font-family:var(--gids-typography-paragraph-small__font-family);font-size:var(--gids-typography-paragraph-small__font-size);font-weight:var(--gids-typography-paragraph-small__font-weight);letter-spacing:var(--gids-typography-paragraph-small__letter-spacing);line-height:var(--gids-typography-paragraph-small__line-height);text-transform:var(--gids-typography-paragraph-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);cursor:pointer;transition:all 0.3s ease-in-out}.gids-profile-menu-header__content-container-default p:hover{transform:scale(1.1);padding-top:var(--gids-padding-vertical-edge-to-element-050);padding-left:var(--gids-padding-horizontal-edge-to-element-100)}.gids-profile-menu-header__content-container-default p:active{transform:scale(1)}.gids-profile-menu-header__content-container-centralized{text-align:center}.gids-profile-menu-header__content-container-centralized span{font-family:var(--gids-typography-heading-x-small__font-family);font-size:var(--gids-typography-heading-x-small__font-size);font-weight:var(--gids-typography-heading-x-small__font-weight);letter-spacing:var(--gids-typography-heading-x-small__letter-spacing);line-height:var(--gids-typography-heading-x-small__line-height);text-transform:var(--gids-typography-heading-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-heading-x-small__font-variant-caps, inherit);color:var(--gids-color-text-default);cursor:pointer;transition:all 0.3s ease-in-out}.gids-profile-menu-header__content-container-centralized span:hover{transform:scale(1.1);padding-bottom:var(--gids-padding-vertical-edge-to-element-050)}.gids-profile-menu-header__content-container-centralized span:active{transform:scale(1)}.gids-profile-menu-header__content-container-centralized p{margin:0;padding:0;font-family:var(--gids-typography-paragraph-small__font-family);font-size:var(--gids-typography-paragraph-small__font-size);font-weight:var(--gids-typography-paragraph-small__font-weight);letter-spacing:var(--gids-typography-paragraph-small__letter-spacing);line-height:var(--gids-typography-paragraph-small__line-height);text-transform:var(--gids-typography-paragraph-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);cursor:pointer;transition:all 0.3s ease-in-out}.gids-profile-menu-header__content-container-centralized p:hover{transform:scale(1.1);padding-top:var(--gids-padding-vertical-edge-to-element-050)}.gids-profile-menu-header__content-container-centralized p:active{transform:scale(1)}"}},[0,"gids-profile-menu-header",{avatarProps:[16],headerItemsPosition:[1,"header-items-position"],headerTitle:[1,"header-title"],headerSupportingText:[1,"header-supporting-text"],avatarVisible:[4,"avatar-visible"],avatarBadgeVisible:[4,"avatar-badge-visible"],onHeaderAvatarPress:[16],onHeaderTitlePress:[16],onHeaderSupportingTextPress:[16]},void 0,{avatarProps:[{avatarPropsChanged:0}],headerItemsPosition:[{headerItemsPositionChanged:0}],headerTitle:[{headerTitleChanged:0}],headerSupportingText:[{headerSupportingTextChanged:0}],avatarVisible:[{avatarVisibilityChanged:0}],avatarBadgeVisible:[{avatarBadgeVisibilityChanged:0}]}]);function u(){"undefined"!=typeof customElements&&["gids-profile-menu-header"].forEach((e=>{"gids-profile-menu-header"===e&&(customElements.get(a(e))||customElements.define(a(e),_))}))}u();export{m as G,_ as a,u as d}
@@ -1 +0,0 @@
1
- import{t as e,p as i,H as t,h as s,c as d}from"./p-B4hcsDH0.js";import{GidsProfileMenuWebUtils as n}from"@ganpatiinfo/gids-web-shared";import{a as r,b as a}from"./p-KQxuw_F-.js";import{G as o,a as h}from"./p-D0coZTd2.js";import{d as l}from"./p-B0hLXifA.js";const{getGidsProfileMenuClassNames:m}=n,c=i(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.headerVisible=!1,this.listSectionDividerVisible=!1,this.headerDividerVisible=!0,this.profileMenuItems=[],this.selectedProfileMenuItem=void 0,this.onListItemPress=({event:e,sectionIndex:i,itemIndex:t,item:s})=>{const d={...s,sectionIndex:i,itemIndex:t};this.onProfileMenuItemPress&&!this.isItemAlreadySelected(d)&&this.onProfileMenuItemPress({originalEvent:e,id:s.id,sectionIndex:i,itemIndex:t,leadingLabel:s?.leadingLabel,leadingSupport:s?.leadingSupport,trailingLabel:s?.trailingLabel,trailingSupport:s?.trailingSupport}),this.profileMenuItemSelection(d)},this.defaultSelectedProfileMenuItem=()=>{const e=this?.profileMenuItems??[],i=this?.selectedProfileMenuItemId??void 0;e.length>0&&i&&e.map(((e,t)=>{const s=e?.items??[],d=s.findIndex((e=>e?.id===i));if(null!=d&&-1!==d){const e=s[d];e&&(this.selectedProfileMenuItem={...e,id:e.id,sectionIndex:t,itemIndex:d})}}))},this.profileMenuItemSelection=e=>{e?.id&&(this.isItemAlreadySelected(e)||(this.selectedProfileMenuItem=e))},this.isItemAlreadySelected=e=>e.id===this?.selectedProfileMenuItem?.id&&e?.sectionIndex===this?.selectedProfileMenuItem?.sectionIndex&&e?.itemIndex===this?.selectedProfileMenuItem?.itemIndex,this.isThisItemSelected=e=>e?.id===this?.selectedProfileMenuItem?.id&&e?.sectionIndex===this?.selectedProfileMenuItem?.sectionIndex&&e?.itemIndex===this?.selectedProfileMenuItem?.itemIndex,this.hasHeaderItem=()=>{const e=this?.headerItem,i=this?.headerVisible;return!(!i||!(e?.avatarVisible||e?.avatarProps&&Object.keys(e).length>0||e?.headerSupportingText||e?.headerTitle))},this.hasProfileMenuItems=()=>{const e=this?.profileMenuItems??[];return!!(e.length>0&&e[0]?.items&&e[0].items.length>0||this.hasHeaderItem())}}headerItemChanged(e){this.headerItem=e}headerVisibleChanged(e){this.headerVisible=e}selectedProfileMenuItemIdChanged(e){this.selectedProfileMenuItemId=e}profileMenuItemsChanged(e){this.profileMenuItems=e,this.defaultSelectedProfileMenuItem()}connectedCallback(){}componentDidLoad(){this.defaultSelectedProfileMenuItem()}render(){const e=this?.headerItem,i=this?.headerVisible,t=this?.headerDividerVisible,n=this?.listSectionDividerVisible,l=this?.profileMenuItems??[],c=m();return s(d,{key:"4baa2263eed55afa652eba0f1e819b1e67e9b1a2",class:c},s(o,{key:"4ccae5d9463d84deaddacbf88c8c082b3e320db7",type:this.hasProfileMenuItems()?"default":"no-options"},i?s("div",{class:"gids-profile-menu__header-container"},s("gids-profile-menu-header",{...e,onHeaderAvatarPress:this.onHeaderAvatarPress,onHeaderTitlePress:this.onHeaderTitlePress,onHeaderSupportingTextPress:this.onHeaderSupportingTextPress})):void 0,t&&this.hasHeaderItem()?s("div",{class:"gids-profile-menu__header-divider-container"},s(r,null)):void 0,l.map(((e,i)=>s(h,{key:`${i+1}`,sectionLabel:e?.sectionLabel??""},(e?.items??[]).map(((e,t)=>{const d=this.isThisItemSelected({...e,sectionIndex:i,itemIndex:t});return console.log("_thisItemSelected",d),s(a,{...e,key:`${t+1}`,id:e.id,index:t,onPressListItem:s=>this.onListItemPress({event:s,sectionIndex:i,itemIndex:t,item:e}),selected:d},e?.leadingLabel)})),i<l.length-1&&n?s(r,null):void 0)))))}get hostElement(){return this}static get watchers(){return{headerItem:[{headerItemChanged:0}],headerVisible:[{headerVisibleChanged:0}],selectedProfileMenuItemId:[{selectedProfileMenuItemIdChanged:0}],profileMenuItems:[{profileMenuItemsChanged:0}]}}static get style(){return".gids-profile-menu .gids-divider{width:100%}.gids-profile-menu__header-divider-container{width:100%;padding-bottom:var(--gids-padding-vertical-edge-to-element-200)}.gids-profile-menu__header-container{display:flex;width:100%;padding:var(--gids-padding-vertical-edge-to-element-150) 0px}"}},[0,"gids-profile-menu",{headerItem:[16],selectedProfileMenuItemId:[1,"selected-profile-menu-item-id"],headerVisible:[4,"header-visible"],listSectionDividerVisible:[4,"list-section-divider-visible"],headerDividerVisible:[4,"header-divider-visible"],profileMenuItems:[16],onHeaderAvatarPress:[16],onHeaderTitlePress:[16],onHeaderSupportingTextPress:[16],onProfileMenuItemPress:[16],selectedProfileMenuItem:[32]},void 0,{headerItem:[{headerItemChanged:0}],headerVisible:[{headerVisibleChanged:0}],selectedProfileMenuItemId:[{selectedProfileMenuItemIdChanged:0}],profileMenuItems:[{profileMenuItemsChanged:0}]}]);function u(){"undefined"!=typeof customElements&&["gids-profile-menu","gids-profile-menu-header"].forEach((i=>{switch(i){case"gids-profile-menu":customElements.get(e(i))||customElements.define(e(i),c);break;case"gids-profile-menu-header":customElements.get(e(i))||l()}}))}u();export{c as G,u as d}
@@ -1 +0,0 @@
1
- import{t as e,p as t,H as s,d as i,h as n,c}from"./p-B4hcsDH0.js";import{G as a}from"./p-Dg_WeHpV.js";import{g as d}from"./p-B2zUuNXz.js";const l=t(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.select=i(this,"select"),this._toggle=this._toggle.bind(this)}handleSelctedChange(e){this.selected!==e&&(this.selected=e)}connectedCallback(){const e=d();void 0!==e&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}_toggle(){const e=!this.selected;this._el.selected=e,this.select?.emit(e),this.selected=e}render(){return n(c,{key:"330cebe4e29e06299465abf676035ac3f2268d47"},n("style",{key:"416c5a345c486676384e859125ccc493c5be5020"},`:host {\n display: ${"full"===this.width?"block":"inline-block"}\n }`),n(a,{key:"c073ff03d8910844a6f7dbb86d6c1141a9dd1c2e",appearance:this.appearance,size:this.size,width:this.width,disabled:this.disabled,onClick:this._toggle,"aria-pressed":this.selected?"true":"false",leadingIcon:n("slot",{name:"leadingIcon"}),trailingIcon:n("slot",{name:"trailingIcon"}),forceIconOnly:this._onlyHasLeadingIcon()},n("slot",{key:"9d49f9106e4f3313363e878364d1261ba9ebd7c1"})))}_onlyHasLeadingIcon(){const e=this._el.childNodes;return 1===e.length&&e[0]instanceof window.Element&&"leadingIcon"===e[0].slot}get _el(){return this}static get watchers(){return{selected:[{handleSelctedChange:0}]}}},[257,"gids-toggle-button",{disabled:[516],appearance:[513],size:[513],width:[513],defaultSelected:[516,"default-selected"],selected:[1540]},void 0,{selected:[{handleSelctedChange:0}]}]);function o(){"undefined"!=typeof customElements&&["gids-toggle-button"].forEach((t=>{"gids-toggle-button"===t&&(customElements.get(e(t))||customElements.define(e(t),l))}))}o();export{l as G,o as d}
@@ -1 +0,0 @@
1
- import{h as t,F as i}from"./p-B4hcsDH0.js";import{GidsButtonGroupWebUtils as e,GidsHeadingWebUtils as s,GidsEditButtonWebUtils as n,GidsDividerWebUtils as l,GidsListItemWebUtils as a}from"@ganpatiinfo/gids-web-shared";import{G as d}from"./p-iQRr_fAH.js";const{getGidsButtonGroupClassNames:o}=e,r=({layout:i,class:e},s)=>t("span",{class:o({layout:i},e)},s),{getGidsHeadingClassNames:c,getGidsHeadingSupportingTextTypographyClass:g}=s,_=({heading:i,supportingText:e,level:s="section",children:n,supportingTextTypography:l,class:a})=>t("div",{class:c(a)},t("div",{class:"gids-heading__content-container"},null!=i&&""!==i?"string"==typeof i?""!==i?t("span",{class:"section"===s?"gids-heading__heading-text-section":"gids-heading__heading-text-group"},i):null:i:null,null!=e&&""!==e?"string"==typeof e?""!==e?t("span",{class:`${"section"===s?"gids-heading__supporting-text-section":"gids-heading__supporting-text-group"} ${g(l)}`},e):null:e:null),n?t(r,{layout:"wrap"},n):null),{getGidsEditButtonClassNames:p}=n,u=({disabled:i,children:e,size:s="md",editButtonType:n="add",onPressEditButton:l,class:a,...o})=>t("button",{class:p({size:s},a),...o,onClick:l,disabled:i},"custom"===n&&e?t("div",null,e):"add"===n?t("div",{class:i?"gids-edit-button__add gids-edit-button__disabled":"gids-edit-button__add"},t(d,{name:"add",appearance:"filled",size:s})):"remove"===n?t("div",{class:i?"gids-edit-button__remove gids-edit-button__disabled":"gids-edit-button__remove"},t(d,{appearance:"filled",name:"remove",size:s})):void 0),{getGidsDividerClassNames:m}=l,b=({orientation:i})=>t("hr",{class:m({orientation:i})}),{getGidsListItemClassNames:y}=a,v=({id:e,value:s,index:n,defaultSelected:l,disabled:a,selected:o,editButton:r,onPressEditButton:c,onPressListItem:g,leadingAccessory:_,leadingSupport:p,leadingParagraph:m,trailingContent:v,trailingAccessory:h,trailingSupport:x,trailingParagraph:f,divider:C,role:B="list-item-option",isPlaceholderItem:G,class:P,...z},I)=>{const T=o||l;return t("button",{type:"button",id:e,class:y({selected:T,disabled:a},P),role:B,"aria-selected":T?"true":"false",disabled:a,value:(()=>{if("string"==typeof s&&""!==s.trim())return s;const t=I;return t?(Array.isArray(t)?t:[t]).map((t=>"string"==typeof t||"number"==typeof t?String(t):t&&"object"==typeof t&&"text"in t?t.text??"":"")).join("").trim():""})(),tabIndex:n,onClick:t=>{const i=t.currentTarget;if(!i)return;if(t.defaultPrevented||i.disabled)return;const e=new CustomEvent("onPressListItem",{bubbles:!0,composed:!0,detail:{selectedIndex:n,defaultSelected:l,isPlaceholderItem:G}});g?.(e)},"is-placeholder-item":G?"true":"false",...z},t("div",{class:"gids-list-item__main-container"},null==r||"none"===r||a?null:t(u,{size:"md",editButtonType:r,onPressEditButton:c}),null!=_?t("div",{class:a?"gids-list-item__leading-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__leading-accessory-container"},_):null,t("div",{class:"gids-list-item__middle-content-container"},t("div",{class:"gids-list-item__leading-content-container"},t(i,null,null!=I?t("span",{class:a?"gids-list-item__leading-content-label gids-list-item__text-content-disabled":"gids-list-item__leading-content-label"},I):null,t("div",{class:"gids-list-item__leading-support-content"},null!=p?"string"==typeof p?t("p",{class:a?"gids-list-item__leading-content-supporting-text gids-list-item__text-content-disabled":"gids-list-item__leading-content-supporting-text"},p):p:null,null!=m?"string"==typeof m?t("p",{class:a?"gids-list-item__leading-content-paragraph-text gids-list-item__text-content-disabled":"gids-list-item__leading-content-paragraph-text"},m):m:null))),t("div",{class:"gids-list-item__trailing-content-container"},t(i,null,null!=v?"string"==typeof v?t("span",{class:a?"gids-list-item__trailing-content-label gids-list-item__text-content-disabled":"gids-list-item__trailing-content-label"},v):v:null,t("div",{class:"gids-list-item__trailing-support-content"},null!=x?"string"==typeof x?t("p",{class:a?"gids-list-item__trailing-content-supporting-text gids-list-item__text-content-disabled":"gids-list-item__trailing-content-supporting-text"},x):x:null,null!=f?"string"==typeof f?t("p",{class:a?"gids-list-item__trailing-content-paragraph-text gids-list-item__text-content-disabled":"gids-list-item__trailing-content-paragraph-text"},f):f:null)))),T?t("div",{class:a?"gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__trailing-accessory-container"},t(d,{name:"checkmark",size:"md",appearance:"regular"})):null,T||null==h?null:t("div",{class:a?"gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__trailing-accessory-container"},h)),C&&!T?t("div",{class:"gids-list-item__divider"},t(b,{orientation:"horizontal"})):null)};export{r as G,b as a,v as b,_ as c}
@@ -1,99 +0,0 @@
1
- import { D as r, q as p, L as f, u as v, P as u } from "./p-B4hcsDH0-CPqEc-vc.js";
2
- import { d as _ } from "./p-iQRr_fAH-ClfWEu03.js";
3
- import { e as y } from "./p-ChV9xqsO-CJSPCx6p.js";
4
- import { p as x } from "./p-CcKHKwS0-Bw63tTOA.js";
5
- import { c as h } from "./clsx-OuTLNxxd.js";
6
- const b = ({ text: e, alt: a }) => a === "" || a === void 0 && e === void 0, P = 5, T = () => `accent-${Math.floor(Math.random() * P) + 1}`, c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7
- __proto__: null,
8
- getRandomColor: T,
9
- shouldTextBeHiddenFromAt: b
10
- }, Symbol.toStringTag, { value: "Module" })), C = ({ headerTitle: e }) => e && e !== "" ? e.charAt(0).toUpperCase() : "U", z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11
- __proto__: null,
12
- getProfileHeaderMenuAvatarText: C
13
- }, Symbol.toStringTag, { value: "Module" })), { getRandomColor: S } = c, H = ({ color: e, size: a }, t) => {
14
- const i = e === "random" ? S() : e;
15
- return h("gids-avatar", {
16
- "gids-avatar--sm": a === "sm",
17
- // 'gids-avatar--md': size === 'md',
18
- "gids-avatar--lg": a === "lg",
19
- "gids-avatar--xl": a === "xl"
20
- }, i && i !== "brand" && `gids-avatar--${i}`, t);
21
- }, I = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22
- __proto__: null,
23
- getGidsAvatarClassNames: H
24
- }, Symbol.toStringTag, { value: "Module" })), V = ({ headerItemsPosition: e }, a) => h("gids-profile-menu-header", {
25
- // Positions
26
- // 'gids-profile-menu-header--position-default':
27
- // headerItemsPosition === 'default', // Default so not needed
28
- "gids-profile-menu-header--position-centralized": e === "centralized"
29
- }, a), A = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
30
- __proto__: null,
31
- getGidsProfileMenuHeaderClassNames: V
32
- }, Symbol.toStringTag, { value: "Module" })), { shouldTextBeHiddenFromAt: w } = c, { getGidsAvatarClassNames: B } = I, j = ({ appearance: e, color: a, size: t, badge: i, text: o, imageSrc: s, alt: n, iconTitleId: d, class: l, ...m }) => {
33
- const g = w({ text: o, alt: n });
34
- return r("span", { class: B({ color: a, size: t }, l), ...m }, e === "image" ? r("img", { src: s, alt: n ?? o ?? "", width: "100", height: "100" }) : e === "icon" ? r(_, { name: "user", alt: n ?? o, titleId: d }) : r("span", { role: g ? void 0 : "img", "aria-hidden": g ? "true" : void 0, "aria-label": g ? void 0 : n ?? o }, o), i);
35
- }, { getGidsProfileMenuHeaderClassNames: M } = A, { getProfileHeaderMenuAvatarText: O } = z, k = f(class extends v {
36
- constructor(e) {
37
- super(), e !== !1 && this.__registerHost(), this.headerItemsPosition = "default", this.avatarVisible = !1, this.avatarBadgeVisible = !1, this.onAvatarItemPress = (a) => {
38
- const t = this.pressHeaderItems(a);
39
- this.onHeaderAvatarPress && this.onHeaderAvatarPress({ ...t });
40
- }, this.onHeaderItemTitlePress = (a) => {
41
- const t = this.pressHeaderItems(a);
42
- this.onHeaderTitlePress && this.onHeaderTitlePress({ ...t });
43
- }, this.onHeaderItemSupportingTextPress = (a) => {
44
- const t = this.pressHeaderItems(a);
45
- this.onHeaderSupportingTextPress && this.onHeaderSupportingTextPress({ ...t });
46
- }, this.pressHeaderItems = (a) => {
47
- const t = this.avatarProps, i = t?.badgeProps ?? {};
48
- return { originalEvent: a, appearance: t?.appearance ?? "text", color: t?.color ?? "brand", imageSrc: t?.imageSrc ?? "", size: t?.size ?? "xl", text: this.getAvatarText(), badgeProps: { ...i }, headerItemsPosition: this?.headerItemsPosition ?? "default", headerTitle: this?.headerTitle ?? "", headerSupportingText: this?.headerSupportingText ?? "" };
49
- }, this.getAvatarText = () => {
50
- const a = this?.avatarProps, t = this?.headerTitle;
51
- return a?.text ?? O({ headerTitle: t });
52
- };
53
- }
54
- avatarPropsChanged(e) {
55
- this.avatarProps = e;
56
- }
57
- headerItemsPositionChanged(e) {
58
- this.headerItemsPosition = e;
59
- }
60
- headerTitleChanged(e) {
61
- this.headerTitle = e;
62
- }
63
- headerSupportingTextChanged(e) {
64
- this.headerSupportingText = e;
65
- }
66
- avatarVisibilityChanged(e) {
67
- this.avatarVisible = e;
68
- }
69
- avatarBadgeVisibilityChanged(e) {
70
- this.avatarBadgeVisible = e;
71
- }
72
- connectedCallback() {
73
- }
74
- render() {
75
- const e = this?.headerItemsPosition ?? "default", a = this?.headerTitle, t = this?.headerSupportingText, i = this?.avatarVisible ?? !1, o = this?.avatarBadgeVisible ?? !1, s = this?.avatarProps, n = s?.badgeProps, d = M({ headerItemsPosition: e }), l = s?.size ?? "xl";
76
- return r(u, { key: "f16b9a25f3fb84610d47d52921c83cede9320789", class: d }, i ? r(j, { onClick: this.onAvatarItemPress, appearance: s?.appearance ?? "text", color: s?.color ?? "brand", size: l, text: this.getAvatarText(), imageSrc: s?.imageSrc ?? "", alt: s?.alt ?? "alt-img", badge: o ? r(x, { appearance: n?.appearance ?? "information", type: n?.type, count: n?.count, outline: n?.outline }) : void 0 }) : void 0, r("div", { key: "60d71e17b8a0c51e6eaa997d556c15ca9b9d08c0", class: y("gids-profile-menu-header__content-container-default", { "gids-profile-menu-header__content-container-centralized": e === "centralized" }) }, r("span", { key: "8ef50edf88e704431eb9e5cc32f5211767197ab1", onClick: this.onHeaderItemTitlePress }, a), r("p", { key: "a3cf11a026b44d972f4d66626363d7a5430ea5cc", onClick: this.onHeaderItemSupportingTextPress }, t)));
77
- }
78
- get hostElement() {
79
- return this;
80
- }
81
- static get watchers() {
82
- return { avatarProps: [{ avatarPropsChanged: 0 }], headerItemsPosition: [{ headerItemsPositionChanged: 0 }], headerTitle: [{ headerTitleChanged: 0 }], headerSupportingText: [{ headerSupportingTextChanged: 0 }], avatarVisible: [{ avatarVisibilityChanged: 0 }], avatarBadgeVisible: [{ avatarBadgeVisibilityChanged: 0 }] };
83
- }
84
- static get style() {
85
- return ".gids-profile-menu-header{display:flex;gap:var(--gids-gap-100);align-items:center;justify-content:flex-start;width:100%}.gids-profile-menu-header .gids-avatar{cursor:pointer;transition:all 0.3s ease-in-out}.gids-profile-menu-header .gids-avatar:hover{transform:scale(1.2)}.gids-profile-menu-header .gids-avatar:active{transform:scale(1)}.gids-profile-menu-header--position-centralized{flex-direction:column;justify-content:center;align-items:center;gap:var(--gids-gap-150)}.gids-profile-menu-header__content-container-default{display:flex;flex-direction:column;text-align:left}.gids-profile-menu-header__content-container-default span{font-family:var(--gids-typography-heading-x-small__font-family);font-size:var(--gids-typography-heading-x-small__font-size);font-weight:var(--gids-typography-heading-x-small__font-weight);letter-spacing:var(--gids-typography-heading-x-small__letter-spacing);line-height:var(--gids-typography-heading-x-small__line-height);text-transform:var(--gids-typography-heading-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-heading-x-small__font-variant-caps, inherit);color:var(--gids-color-text-default);cursor:pointer;transition:all 0.3s ease-in-out}.gids-profile-menu-header__content-container-default span:hover{transform:scale(1.1);padding-bottom:var(--gids-padding-vertical-edge-to-element-050);padding-left:var(--gids-padding-horizontal-edge-to-element-100)}.gids-profile-menu-header__content-container-default span:active{transform:scale(1)}.gids-profile-menu-header__content-container-default p{margin:0;padding:0;font-family:var(--gids-typography-paragraph-small__font-family);font-size:var(--gids-typography-paragraph-small__font-size);font-weight:var(--gids-typography-paragraph-small__font-weight);letter-spacing:var(--gids-typography-paragraph-small__letter-spacing);line-height:var(--gids-typography-paragraph-small__line-height);text-transform:var(--gids-typography-paragraph-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);cursor:pointer;transition:all 0.3s ease-in-out}.gids-profile-menu-header__content-container-default p:hover{transform:scale(1.1);padding-top:var(--gids-padding-vertical-edge-to-element-050);padding-left:var(--gids-padding-horizontal-edge-to-element-100)}.gids-profile-menu-header__content-container-default p:active{transform:scale(1)}.gids-profile-menu-header__content-container-centralized{text-align:center}.gids-profile-menu-header__content-container-centralized span{font-family:var(--gids-typography-heading-x-small__font-family);font-size:var(--gids-typography-heading-x-small__font-size);font-weight:var(--gids-typography-heading-x-small__font-weight);letter-spacing:var(--gids-typography-heading-x-small__letter-spacing);line-height:var(--gids-typography-heading-x-small__line-height);text-transform:var(--gids-typography-heading-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-heading-x-small__font-variant-caps, inherit);color:var(--gids-color-text-default);cursor:pointer;transition:all 0.3s ease-in-out}.gids-profile-menu-header__content-container-centralized span:hover{transform:scale(1.1);padding-bottom:var(--gids-padding-vertical-edge-to-element-050)}.gids-profile-menu-header__content-container-centralized span:active{transform:scale(1)}.gids-profile-menu-header__content-container-centralized p{margin:0;padding:0;font-family:var(--gids-typography-paragraph-small__font-family);font-size:var(--gids-typography-paragraph-small__font-size);font-weight:var(--gids-typography-paragraph-small__font-weight);letter-spacing:var(--gids-typography-paragraph-small__letter-spacing);line-height:var(--gids-typography-paragraph-small__line-height);text-transform:var(--gids-typography-paragraph-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);cursor:pointer;transition:all 0.3s ease-in-out}.gids-profile-menu-header__content-container-centralized p:hover{transform:scale(1.1);padding-top:var(--gids-padding-vertical-edge-to-element-050)}.gids-profile-menu-header__content-container-centralized p:active{transform:scale(1)}";
86
- }
87
- }, [0, "gids-profile-menu-header", { avatarProps: [16], headerItemsPosition: [1, "header-items-position"], headerTitle: [1, "header-title"], headerSupportingText: [1, "header-supporting-text"], avatarVisible: [4, "avatar-visible"], avatarBadgeVisible: [4, "avatar-badge-visible"], onHeaderAvatarPress: [16], onHeaderTitlePress: [16], onHeaderSupportingTextPress: [16] }, void 0, { avatarProps: [{ avatarPropsChanged: 0 }], headerItemsPosition: [{ headerItemsPositionChanged: 0 }], headerTitle: [{ headerTitleChanged: 0 }], headerSupportingText: [{ headerSupportingTextChanged: 0 }], avatarVisible: [{ avatarVisibilityChanged: 0 }], avatarBadgeVisible: [{ avatarBadgeVisibilityChanged: 0 }] }]);
88
- function E() {
89
- typeof customElements < "u" && ["gids-profile-menu-header"].forEach(((e) => {
90
- e === "gids-profile-menu-header" && (customElements.get(p(e)) || customElements.define(p(e), k));
91
- }));
92
- }
93
- E();
94
- export {
95
- k as _,
96
- z as l,
97
- j as m,
98
- E as u
99
- };