@ganpatiinfo/gids-core-web 8.2.0 → 10.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 (231) hide show
  1. package/dist/css/index.css +1919 -0
  2. package/dist/css/index.css.map +1 -1
  3. package/dist/custom-elements.json +332 -0
  4. package/dist/gids-activity-gauge.d.ts +11 -0
  5. package/dist/gids-activity-gauge.js +1 -0
  6. package/dist/gids-bar-chart.d.ts +11 -0
  7. package/dist/gids-bar-chart.js +1 -0
  8. package/dist/gids-calendar-header-panel.d.ts +11 -0
  9. package/dist/gids-calendar-header-panel.js +1 -0
  10. package/dist/gids-calendar-month-list.d.ts +11 -0
  11. package/dist/gids-calendar-month-list.js +1 -0
  12. package/dist/gids-calendar-year-list.d.ts +11 -0
  13. package/dist/gids-calendar-year-list.js +1 -0
  14. package/dist/gids-calendar.d.ts +11 -0
  15. package/dist/gids-calendar.js +1 -0
  16. package/dist/gids-chart-legend-item.d.ts +11 -0
  17. package/dist/gids-chart-legend-item.js +1 -0
  18. package/dist/gids-chart-legend.d.ts +11 -0
  19. package/dist/gids-chart-legend.js +1 -0
  20. package/dist/gids-chart.d.ts +11 -0
  21. package/dist/gids-chart.js +1 -0
  22. package/dist/gids-chevron-button.d.ts +11 -0
  23. package/dist/gids-chevron-button.js +1 -0
  24. package/dist/gids-dot.d.ts +11 -0
  25. package/dist/gids-dot.js +1 -0
  26. package/dist/gids-dropdown-field.d.ts +11 -0
  27. package/dist/gids-dropdown-field.js +1 -0
  28. package/dist/gids-dropdown-picker.d.ts +11 -0
  29. package/dist/gids-dropdown-picker.js +1 -0
  30. package/dist/gids-dropdown.d.ts +11 -0
  31. package/dist/gids-dropdown.js +1 -0
  32. package/dist/gids-field.d.ts +1 -1
  33. package/dist/gids-field.js +1 -1
  34. package/dist/gids-icon.d.ts +1 -1
  35. package/dist/gids-icon.js +1 -1
  36. package/dist/gids-input.d.ts +1 -1
  37. package/dist/gids-input.js +1 -1
  38. package/dist/gids-level-gauge.d.ts +11 -0
  39. package/dist/gids-level-gauge.js +1 -0
  40. package/dist/gids-line-chart.d.ts +11 -0
  41. package/dist/gids-line-chart.js +1 -0
  42. package/dist/gids-notification.d.ts +1 -1
  43. package/dist/gids-notification.js +1 -1
  44. package/dist/gids-overflow-container.d.ts +1 -1
  45. package/dist/gids-overflow-container.js +1 -1
  46. package/dist/gids-overlay-provider.d.ts +1 -1
  47. package/dist/gids-overlay-provider.js +1 -1
  48. package/dist/gids-password-field.d.ts +1 -1
  49. package/dist/gids-password-field.js +1 -1
  50. package/dist/gids-pie-chart.d.ts +11 -0
  51. package/dist/gids-pie-chart.js +1 -0
  52. package/dist/gids-popover.d.ts +11 -0
  53. package/dist/gids-popover.js +1 -0
  54. package/dist/gids-progress-circle.d.ts +11 -0
  55. package/dist/gids-progress-circle.js +1 -0
  56. package/dist/gids-scrim.d.ts +1 -1
  57. package/dist/gids-scrim.js +1 -1
  58. package/dist/gids-snackbar.d.ts +1 -1
  59. package/dist/gids-snackbar.js +1 -1
  60. package/dist/gids-text-field.d.ts +1 -1
  61. package/dist/gids-text-field.js +1 -1
  62. package/dist/gids-toggle-button.d.ts +1 -1
  63. package/dist/gids-toggle-button.js +1 -1
  64. package/dist/gids-tooltip.d.ts +11 -0
  65. package/dist/gids-tooltip.js +1 -0
  66. package/dist/index.js +1 -1
  67. package/dist/p-9_mrQ7ac.js +1 -0
  68. package/dist/p-B81J5HCC.js +1 -0
  69. package/dist/p-B8kX8Vqv.js +1 -0
  70. package/dist/p-BFHWXEeg.js +1 -0
  71. package/dist/p-B_HaXpJZ.js +1 -0
  72. package/dist/p-BaO-kEWS.js +1 -0
  73. package/dist/p-BiPAgxAQ.js +1 -0
  74. package/dist/p-Bmb-HiXg.js +1 -0
  75. package/dist/{p-veoOgDXg.js → p-BnL97lOW.js} +1 -1
  76. package/dist/{p-DjvDBWCb.js → p-BvYnawkJ.js} +1 -1
  77. package/dist/p-CIP0xyhD.js +1 -0
  78. package/dist/p-CJzporPT.js +1 -0
  79. package/dist/p-CPSHPtGE.js +1 -0
  80. package/dist/p-CRngHsR7.js +1 -0
  81. package/dist/p-Ct3Ixgvf.js +1 -0
  82. package/dist/p-D93TNeOt.js +1 -0
  83. package/dist/p-DKsrt7dx.js +1 -0
  84. package/dist/p-DZWWuJac.js +1 -0
  85. package/dist/p-D_wcwB7E.js +1 -0
  86. package/dist/p-Dehss-X0.js +1 -0
  87. package/dist/{p-Bg3lw2Ae.js → p-DfFqFdmS.js} +1 -1
  88. package/dist/p-KxRqlvSh.js +1 -0
  89. package/dist/p-MgTlrSP_.js +1 -0
  90. package/dist/p-a3JfEYJp.js +1 -0
  91. package/dist/p-h6alWGT8.js +1 -0
  92. package/dist/p-quZYWCxU.js +1 -0
  93. package/dist/p-tyIgTtUC.js +1 -0
  94. package/dist/p-uqSjmNkw.js +1 -0
  95. package/dist/types/components/html/GidsButton/GidsButton.d.ts +1 -1
  96. package/dist/types/components/html/GidsCalendarCell/GidsCalendarCell.d.ts +7 -0
  97. package/dist/types/components/html/GidsCalendarDayCell/GidsCalendarDayCell.d.ts +4 -0
  98. package/dist/types/components/html/GidsDropdownItem/GidsDropdownItem.d.ts +9 -0
  99. package/dist/types/components/html/GidsDropdownMenu/GidsDropdownMenu.d.ts +6 -0
  100. package/dist/types/components/html/GidsDropdownMenuGroup/GidsDropdownMenuGroup.d.ts +5 -0
  101. package/dist/types/components/html/GidsEditButton/GidsEditButton.d.ts +7 -0
  102. package/dist/types/components/html/GidsListItem/GidsListItem.d.ts +11 -0
  103. package/dist/types/components/html/GidsMenu/GidsMenu.d.ts +6 -0
  104. package/dist/types/components/html/GidsMenuGroup/GidsMenuGroup.d.ts +5 -0
  105. package/dist/types/components/html/GidsPageTitle/GidsPageTitle.d.ts +4 -0
  106. package/dist/types/components/shared/GidsFloatingElementManager.d.ts +57 -0
  107. package/dist/types/components/shared/GidsFloatingElementTypes.d.ts +4 -0
  108. package/dist/types/components/webComponents/GidsActivityGauge/GidsActivityGauge.d.ts +23 -0
  109. package/dist/types/components/webComponents/GidsBarChart/GidsBarChart.d.ts +27 -0
  110. package/dist/types/components/webComponents/GidsCalendar/GidsCalendar.d.ts +34 -0
  111. package/dist/types/components/webComponents/GidsCalendarHeaderPanel/GidsCalendarHeaderPanel.d.ts +67 -0
  112. package/dist/types/components/webComponents/GidsCalendarMonthList/GidsCalendarMonthList.d.ts +26 -0
  113. package/dist/types/components/webComponents/GidsCalendarYearList/GidsCalendarYearList.d.ts +31 -0
  114. package/dist/types/components/webComponents/GidsChart/GidsChart.d.ts +19 -0
  115. package/dist/types/components/webComponents/GidsChartLegend/GidsChartLegend.d.ts +7 -0
  116. package/dist/types/components/webComponents/GidsChartLegendItem/GidsChartLegendItem.d.ts +9 -0
  117. package/dist/types/components/webComponents/GidsChevronButton/GidsChevronButton.d.ts +21 -0
  118. package/dist/types/components/webComponents/GidsDot/GidsDot.d.ts +17 -0
  119. package/dist/types/components/webComponents/GidsDropdown/GidsDropdown.d.ts +78 -0
  120. package/dist/types/components/webComponents/GidsDropdownField/GidsDropdownField.d.ts +37 -0
  121. package/dist/types/components/webComponents/GidsDropdownPicker/GidsDropdownPicker.d.ts +52 -0
  122. package/dist/types/components/webComponents/GidsLevelGauge/GidsLevelGauge.d.ts +22 -0
  123. package/dist/types/components/webComponents/GidsLineChart/GidsLineChart.d.ts +27 -0
  124. package/dist/types/components/webComponents/GidsPieChart/GidsPieChart.d.ts +23 -0
  125. package/dist/types/components/webComponents/GidsPopover/GidsPopover.d.ts +24 -0
  126. package/dist/types/components/webComponents/GidsProgressCircle/GidsProgressCircle.d.ts +24 -0
  127. package/dist/types/components/webComponents/GidsTooltip/GidsTooltip.d.ts +23 -0
  128. package/dist/types/components.d.ts +1420 -64
  129. package/dist/types/index.d.ts +2 -0
  130. package/dist/types/utils/childrenValidityUtils.d.ts +8 -0
  131. package/dist-bundled/es/gids-activity-gauge.js +6 -0
  132. package/dist-bundled/es/gids-bar-chart.js +6 -0
  133. package/dist-bundled/es/gids-calendar-header-panel.js +6 -0
  134. package/dist-bundled/es/gids-calendar-month-list.js +6 -0
  135. package/dist-bundled/es/gids-calendar-year-list.js +6 -0
  136. package/dist-bundled/es/gids-calendar.js +153 -0
  137. package/dist-bundled/es/gids-chart-legend-item.js +6 -0
  138. package/dist-bundled/es/gids-chart-legend.js +6 -0
  139. package/dist-bundled/es/gids-chart.js +108 -0
  140. package/dist-bundled/es/gids-chevron-button.js +56 -0
  141. package/dist-bundled/es/gids-dot.js +6 -0
  142. package/dist-bundled/es/gids-dropdown-field.js +88 -0
  143. package/dist-bundled/es/gids-dropdown-picker.js +6 -0
  144. package/dist-bundled/es/gids-dropdown.js +6 -0
  145. package/dist-bundled/es/gids-field.js +1 -1
  146. package/dist-bundled/es/gids-icon.js +4 -30
  147. package/dist-bundled/es/gids-input.js +4 -4
  148. package/dist-bundled/es/gids-level-gauge.js +6 -0
  149. package/dist-bundled/es/gids-line-chart.js +6 -0
  150. package/dist-bundled/es/gids-notification.js +1 -1
  151. package/dist-bundled/es/gids-overflow-container.js +9 -9
  152. package/dist-bundled/es/gids-overlay-provider.js +17 -17
  153. package/dist-bundled/es/gids-password-field.js +21 -20
  154. package/dist-bundled/es/gids-pie-chart.js +6 -0
  155. package/dist-bundled/es/gids-popover.js +110 -0
  156. package/dist-bundled/es/gids-progress-circle.js +6 -0
  157. package/dist-bundled/es/gids-scrim.js +7 -7
  158. package/dist-bundled/es/gids-snackbar.js +1 -1
  159. package/dist-bundled/es/gids-text-field.js +14 -13
  160. package/dist-bundled/es/gids-toggle-button.js +8 -8
  161. package/dist-bundled/es/gids-tooltip.js +66 -0
  162. package/dist-bundled/es/index.js +33 -19
  163. package/dist-bundled/es/p-9_mrQ7ac-If6e6cvJ.js +71 -0
  164. package/dist-bundled/es/p-B81J5HCC-Bkt2yXKi.js +47 -0
  165. package/dist-bundled/es/p-B8kX8Vqv-trBz4jdS.js +7 -0
  166. package/dist-bundled/es/p-BFHWXEeg-ByjSjz8i.js +133 -0
  167. package/dist-bundled/es/p-B_HaXpJZ-a2SDgQ0E.js +37 -0
  168. package/dist-bundled/es/p-BaO-kEWS-ZITkeP-j.js +241 -0
  169. package/dist-bundled/es/p-BiPAgxAQ-BtMBQpJY.js +31 -0
  170. package/dist-bundled/es/p-Bmb-HiXg-MyHWdhpw.js +80 -0
  171. package/dist-bundled/es/{p-veoOgDXg-DElc87c0.js → p-BnL97lOW-BO0p4EdC.js} +20 -13
  172. package/dist-bundled/es/{p-DjvDBWCb-C9js0PPL.js → p-BvYnawkJ-DohV9UNG.js} +10 -10
  173. package/dist-bundled/es/p-CIP0xyhD-D6y5soLj.js +180 -0
  174. package/dist-bundled/es/p-CJzporPT-I_OdjJsQ.js +92 -0
  175. package/dist-bundled/es/p-CPSHPtGE-C7baJgXR.js +115 -0
  176. package/dist-bundled/es/p-CRngHsR7-DL9wz3Z3.js +25 -0
  177. package/dist-bundled/es/p-Ct3Ixgvf-CNP_PKwP.js +646 -0
  178. package/dist-bundled/es/p-D93TNeOt-Vvshbux8.js +88 -0
  179. package/dist-bundled/es/{p-DybsMR13-DpmsG3Q1.js → p-DKsrt7dx-ImYLc4xz.js} +1 -1
  180. package/dist-bundled/es/p-DZWWuJac-DNQvnHAr.js +15 -0
  181. package/dist-bundled/es/p-D_wcwB7E-d3jYxfod.js +20 -0
  182. package/dist-bundled/es/p-Dehss-X0-Di5vMgvd.js +29 -0
  183. package/dist-bundled/es/{p-Bg3lw2Ae-CkC8nUqv.js → p-DfFqFdmS-DjI2pk-0.js} +6 -6
  184. package/dist-bundled/es/p-KxRqlvSh-JOFDmT0B.js +25 -0
  185. package/dist-bundled/es/p-MgTlrSP_-DifRVv94.js +70 -0
  186. package/dist-bundled/es/p-a3JfEYJp-DyhDK6VZ.js +1128 -0
  187. package/dist-bundled/es/p-h6alWGT8-CSY2g3c8.js +67 -0
  188. package/dist-bundled/es/p-quZYWCxU-CPyWW0nv.js +56 -0
  189. package/dist-bundled/es/p-tyIgTtUC-C8jR4A5G.js +71 -0
  190. package/dist-bundled/es/p-uqSjmNkw-Cz2T86sC.js +55 -0
  191. package/dist-bundled/umd/gids-activity-gauge.umd.js +5 -0
  192. package/dist-bundled/umd/gids-bar-chart.umd.js +13 -0
  193. package/dist-bundled/umd/gids-calendar-header-panel.umd.js +5 -0
  194. package/dist-bundled/umd/gids-calendar-month-list.umd.js +5 -0
  195. package/dist-bundled/umd/gids-calendar-year-list.umd.js +5 -0
  196. package/dist-bundled/umd/gids-calendar.umd.js +5 -0
  197. package/dist-bundled/umd/gids-chart-legend-item.umd.js +5 -0
  198. package/dist-bundled/umd/gids-chart-legend.umd.js +5 -0
  199. package/dist-bundled/umd/gids-chart.umd.js +13 -0
  200. package/dist-bundled/umd/gids-chevron-button.umd.js +5 -0
  201. package/dist-bundled/umd/gids-dot.umd.js +5 -0
  202. package/dist-bundled/umd/gids-dropdown-field.umd.js +5 -0
  203. package/dist-bundled/umd/gids-dropdown-picker.umd.js +5 -0
  204. package/dist-bundled/umd/gids-dropdown.umd.js +5 -0
  205. package/dist-bundled/umd/gids-field.umd.js +2 -2
  206. package/dist-bundled/umd/gids-icon.umd.js +2 -2
  207. package/dist-bundled/umd/gids-input.umd.js +2 -2
  208. package/dist-bundled/umd/gids-level-gauge.umd.js +5 -0
  209. package/dist-bundled/umd/gids-line-chart.umd.js +5 -0
  210. package/dist-bundled/umd/gids-notification.umd.js +2 -2
  211. package/dist-bundled/umd/gids-overflow-container.umd.js +2 -2
  212. package/dist-bundled/umd/gids-overlay-provider.umd.js +2 -2
  213. package/dist-bundled/umd/gids-password-field.umd.js +2 -2
  214. package/dist-bundled/umd/gids-pie-chart.umd.js +5 -0
  215. package/dist-bundled/umd/gids-popover.umd.js +5 -0
  216. package/dist-bundled/umd/gids-progress-circle.umd.js +5 -0
  217. package/dist-bundled/umd/gids-scrim.umd.js +2 -2
  218. package/dist-bundled/umd/gids-snackbar.umd.js +2 -2
  219. package/dist-bundled/umd/gids-text-field.umd.js +2 -2
  220. package/dist-bundled/umd/gids-toggle-button.umd.js +3 -3
  221. package/dist-bundled/umd/gids-tooltip.umd.js +5 -0
  222. package/dist-bundled/umd/index.umd.js +2 -2
  223. package/dist-bundled/umd-complete/gids-core-web.umd.js +11 -3
  224. package/package.json +422 -262
  225. package/dist/p-CWdkmFbc.js +0 -1
  226. package/dist/p-DijVkS9b.js +0 -1
  227. package/dist/p-DybsMR13.js +0 -1
  228. package/dist/p-ibikYq-w.js +0 -1
  229. package/dist-bundled/es/p-CWdkmFbc-D89ZE8Mi.js +0 -24
  230. package/dist-bundled/es/p-DijVkS9b-CtFkEtlE.js +0 -35
  231. package/dist-bundled/es/p-ibikYq-w-BsGxk8ro.js +0 -635
@@ -0,0 +1 @@
1
+ import{t,p as e,H as r,h as s}from"./p-Ct3Ixgvf.js";import{GidsChartWebUtils as a}from"@ganpatiinfo/gids-web-shared";import{CHART_TYPE_INVALID_SUPPORTING_TEXT as i,CHART_TYPE_INVALID_TITLE as n,CHART_DEFAULT_NO_DATA_SUPPORTING_TEXT as o,CHART_DEFAULT_NO_DATA_TITLE as c}from"@ganpatiinfo/gids-core-shared";import{G as h}from"./p-D_wcwB7E.js";import{d}from"./p-h6alWGT8.js";import{d as g}from"./p-CPSHPtGE.js";import{d as l}from"./p-B_HaXpJZ.js";import{d as p}from"./p-B81J5HCC.js";import{d as u}from"./p-uqSjmNkw.js";import{d as m}from"./p-D93TNeOt.js";import{d as b}from"./p-tyIgTtUC.js";import{d as f}from"./p-quZYWCxU.js";const{getGidsChartClassNames:v}=a,y=e(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.breakpoint="desktop",this.chartType="line-chart",this.getChartTypes=()=>["line-chart","bar-chart","pie-chart","activity-gauge","level-gauge","progress-circle","radar-chart"],this.isChartTypeValid=()=>{const t=this.getChartTypes(),e=this.chartType;return!(!e||!t.includes(e))},this.isChartDataValid=()=>{const t=this.chartType;if("line-chart"===t){const t=this.lineChartProps,e=t?.chartData??[],r=e?.[0]?.data??[];return Array.isArray(e)&&e.length>0&&Array.isArray(r)&&r.length>0}if("bar-chart"===t){const t=this.barChartProps,e=t?.chartData??[],r=e?.[0]?.data??[];return Array.isArray(e)&&e.length>0&&Array.isArray(r)&&r.length>0}if("pie-chart"===t){const t=this.pieChartProps,e=t?.chartData??[];return Array.isArray(e)&&e.length>0}if("activity-gauge"===t){const t=this.activityGaugeProps,e=t?.chartData??[];return Array.isArray(e)&&e.length>0}return"radar-chart"===t},this.getChartTypeText=()=>{const t=this.chartType;if(t){const e=t.split("-");let r="";return e.map(((t,e)=>{r=0===e?""+t:`${r} ${t}`})),r}return""}}handleBreakpointChange(t){this.breakpoint=t}handleChartTypeChange(t){this.chartType=t}render(){if(!this.isChartTypeValid())return s("div",{class:"gids-chart__no-data"},s(h,{title:n,supportingText:i(this.getChartTypes().join(", "))}));const t=this.isChartDataValid(),e=this.getChartTypeText();if(!t)return s("div",{class:"gids-activity-gauge__no-data"},s(h,{title:c,supportingText:o(e)}));const r=v(),a=this.chartType,d=this.barChartProps,g=this.pieChartProps,l=this.activityGaugeProps,p=this.levelGaugeProps,u=this.progressCircleProps;return s("div",{class:r},"line-chart"===a?s("gids-line-chart",{...this.lineChartProps,breakpoint:this.breakpoint}):null,"bar-chart"===a?s("gids-bar-chart",{...d,breakpoint:this.breakpoint}):null,"pie-chart"===a?s("gids-pie-chart",{...g,breakpoint:this.breakpoint}):null,"activity-gauge"===a?s("gids-activity-gauge",{...l,breakpoint:this.breakpoint}):null,"level-gauge"===a?s("gids-level-gauge",{...p,breakpoint:this.breakpoint}):null,"progress-circle"===a?s("gids-progress-circle",{...u,breakpoint:this.breakpoint}):null,"radar-chart"===a?s("div",{class:"gids-chart__no-data"},s(h,{title:"Coming Soon!",supportingText:"Radar chart is under progress. This will be available in next major version of GIDS."})):null)}static get watchers(){return{breakpoint:[{handleBreakpointChange:0}],chartType:[{handleChartTypeChange:0}]}}static get style(){return".gids-chart__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[0,"gids-chart",{breakpoint:[1],chartType:[1,"chart-type"],lineChartProps:[16],barChartProps:[16],pieChartProps:[16],activityGaugeProps:[16],levelGaugeProps:[16],progressCircleProps:[16]},void 0,{breakpoint:[{handleBreakpointChange:0}],chartType:[{handleChartTypeChange:0}]}]);function k(){"undefined"!=typeof customElements&&["gids-chart","gids-activity-gauge","gids-bar-chart","gids-chart-legend","gids-chart-legend-item","gids-level-gauge","gids-line-chart","gids-pie-chart","gids-progress-circle"].forEach((e=>{switch(e){case"gids-chart":customElements.get(t(e))||customElements.define(t(e),y);break;case"gids-activity-gauge":customElements.get(t(e))||d();break;case"gids-bar-chart":customElements.get(t(e))||g();break;case"gids-chart-legend":customElements.get(t(e))||l();break;case"gids-chart-legend-item":customElements.get(t(e))||p();break;case"gids-level-gauge":customElements.get(t(e))||u();break;case"gids-line-chart":customElements.get(t(e))||m();break;case"gids-pie-chart":customElements.get(t(e))||b();break;case"gids-progress-circle":customElements.get(t(e))||f()}}))}k();const C=y,j=k;export{C as GidsChart,j as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "./types/components";
2
+
3
+ interface GidsChevronButton extends Components.GidsChevronButton, HTMLElement {}
4
+ export const GidsChevronButton: {
5
+ prototype: GidsChevronButton;
6
+ new (): GidsChevronButton;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{t as e,p as s,H as a,c as t,h as i}from"./p-Ct3Ixgvf.js";import{g as n}from"./p-B2zUuNXz.js";import{GidsChevronButtonWebUtils as o}from"@ganpatiinfo/gids-web-shared";import{G as r}from"./p-BnL97lOW.js";const{getGidsChevronButtonClassNames:d}=o,c=s(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.gidsChevronButton=t(this,"gidsChevronButton"),this.activeClasses="",this.size="xs"}handleExtraClassesAndSizeChange(e){this.activeClasses=d({size:this.size},e)}handleSizeChange(e){this.size=e}handleDisabledChange(e){this.disabled=e}connectedCallback(){const e=n();void 0!==e&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=d({size:this.size},this.extraClasses)}componentDidLoad(){this.activeClasses=d({size:this.size},this.extraClasses)}render(){return i("button",{key:"b2c4dce0b1b731f18f7bc51d4f2dc3b2bc4814e0",class:this.activeClasses,slot:"trailingAccessory",type:"button",onClick:e=>this.gidsChevronButton.emit(e),"aria-label":this?.ariaLabel??"","aria-expanded":this?.ariaExpanded??"","aria-haspopup":this?.ariaHaspopup??"","aria-controls":this?.ariaControls??"",disabled:this.disabled,tabIndex:-1},i("span",{key:"42f01ac64723aa9195d2f36b0b02e0a36811f19e",class:"gids-button__content"},i(r,{key:"a78239b33647d4f4653f8c7660ae7cf69f9a1307",name:"chevron-vertical",alt:""})))}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesAndSizeChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleDisabledChange:0}]}}static get style(){return".gids-chevron-button{color:inherit;background-color:transparent;border:none;margin:0;padding:0;text-align:inherit;font:inherit;border-radius:0;appearance:none;display:inline-flex;justify-content:center;align-self:center;border-radius:var(--gids-border-radius-full);--gidsIcon-color:var(--gids-color-icon-default);--gidsIcon-height:var(--gidsChevronButtonIcon-height);--gidsChevronButtonIcon-height:var(--gids-size-120)}.gids-chevron-button--sm{--gidsIcon-height:var(--gids-size-160)}.gids-chevron-button--md{--gidsIcon-height:var(--gids-size-200)}.gids-chevron-button--lg{--gidsIcon-height:var(--gids-size-240)}.gids-chevron-button:hover{background-color:var(--gids-color-background-neutral-subtle-hovered)}.gids-chevron-button:active{background-color:var(--gids-color-background-neutral-subtle-pressed)}.gids-chevron-button:disabled .gids-icon{--gidsIcon-color:var(--gids-color-icon-disabled)}.gids-chevron-button:disabled:hover{background-color:transparent}.gids-chevron-button:disabled:active{background-color:transparent}"}},[1,"gids-chevron-button",{extraClasses:[513,"extra-classes"],size:[513],disabled:[516],ariaLabel:[513,"aria-label"],ariaHaspopup:[513,"aria-haspopup"],ariaExpanded:[513,"aria-expanded"],ariaControls:[513,"aria-controls"],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesAndSizeChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleDisabledChange:0}]}]);function h(){"undefined"!=typeof customElements&&["gids-chevron-button"].forEach((s=>{"gids-chevron-button"===s&&(customElements.get(e(s))||customElements.define(e(s),c))}))}h();const l=c,g=h;export{l as GidsChevronButton,g as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "./types/components";
2
+
3
+ interface GidsDot extends Components.GidsDot, HTMLElement {}
4
+ export const GidsDot: {
5
+ prototype: GidsDot;
6
+ new (): GidsDot;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{G as o,d as r}from"./p-9_mrQ7ac.js";const s=o,a=r;export{s as GidsDot,a as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "./types/components";
2
+
3
+ interface GidsDropdownField extends Components.GidsDropdownField, HTMLElement {}
4
+ export const GidsDropdownField: {
5
+ prototype: GidsDropdownField;
6
+ new (): GidsDropdownField;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{t,p as e,H as s,h as i}from"./p-Ct3Ixgvf.js";import{generateId as a}from"@ganpatiinfo/gids-web-shared";import{G as d}from"./p-CRngHsR7.js";import{d as n}from"./p-BaO-kEWS.js";import{d as o}from"./p-BvYnawkJ.js";import{d as r}from"./p-DfFqFdmS.js";const l=e(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.internals=this.attachInternals(),this.appearance="default",this.expanded=!1,this.#t=a(),this.handleSelectionChange=t=>{this.value=t.value,this.syncFormValue(t.value),this.onSelectionChange?.(t)},this.handleDropdownFocusAndBlur=t=>{this.hostElement.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}#t;componentWillLoad(){this.syncFormValue(this.value)}handleValueChange(t){this.syncFormValue(t)}syncFormValue(t){this.internals.setFormValue(t??"")}getDropdownControl(){return this.hostElement.querySelector("gids-dropdown")}get form(){return this.getDropdownControl()?.form??null}get validity(){return this.getDropdownControl()?.validity??{}}get validationMessage(){return this.getDropdownControl()?.validationMessage??""}get willValidate(){return this.getDropdownControl()?.willValidate??!1}async checkValidity(){const t=this.getDropdownControl();return!t?.checkValidity||await t.checkValidity()}async reportValidity(){const t=this.getDropdownControl();return!t?.reportValidity||await t.reportValidity()}async setCustomValidity(t){const e=this.getDropdownControl();if(e?.setCustomValidity)return await e.setCustomValidity(t)}render(){const t=this.inputProps?.id??this.#t,e={...this.inputProps,id:t,placeholder:this.inputProps?.placeholder??"Please select an option"};return i("gids-field",{key:"9d896c1a60c010c49f17578133b1f593637ee25a",disabled:this.disabled,helperText:this.helperText,statusText:this.statusText,status:this.status},void 0!==this.label?i(d,{slot:"label",disabled:this.disabled,htmlFor:t,fieldRequirement:this.required?"required":void 0},this.label):null,i("gids-dropdown",{key:"cb5e873f42af870aec073f553a660aea8f61ffcb",appearance:this.appearance,expanded:this.expanded,inputProps:e,disabled:this.disabled,readOnly:this.readOnly,loading:this.loading,value:this.value,name:this.name,onSelectionChange:this.handleSelectionChange,onFocus:this.handleDropdownFocusAndBlur,onBlur:this.handleDropdownFocusAndBlur,required:this.required},i("slot",{key:"fbdd00ab717487697bc705af19c6e304ff77bd82",name:"leadingIconDropdown"}),i("slot",{key:"1f6ffc78105de5a1e2e4f8906271e8e2c5ca385d",name:"leadingAccessoryDropdown"}),i("slot",{key:"04404c104113d9b83afbe594bd7b9381864b526f"})))}static get formAssociated(){return!0}get hostElement(){return this}static get watchers(){return{value:[{handleValueChange:0}]}}},[324,"gids-dropdown-field",{label:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],appearance:[513],expanded:[516],readOnly:[516,"readonly"],disabled:[516],loading:[516],inputProps:[16],value:[1025],name:[513],onSelectionChange:[16],required:[516],checkValidity:[64],reportValidity:[64],setCustomValidity:[64]},void 0,{value:[{handleValueChange:0}]}]);function h(){"undefined"!=typeof customElements&&["gids-dropdown-field","gids-dropdown","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-dropdown-field":customElements.get(t(e))||customElements.define(t(e),l);break;case"gids-dropdown":customElements.get(t(e))||n();break;case"gids-field":customElements.get(t(e))||o();break;case"gids-input":customElements.get(t(e))||r()}}))}h();const c=l,u=h;export{c as GidsDropdownField,u as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "./types/components";
2
+
3
+ interface GidsDropdownPicker extends Components.GidsDropdownPicker, HTMLElement {}
4
+ export const GidsDropdownPicker: {
5
+ prototype: GidsDropdownPicker;
6
+ new (): GidsDropdownPicker;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{G as o,d as s}from"./p-BFHWXEeg.js";const p=o,r=s;export{p as GidsDropdownPicker,r as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "./types/components";
2
+
3
+ interface GidsDropdown extends Components.GidsDropdown, HTMLElement {}
4
+ export const GidsDropdown: {
5
+ prototype: GidsDropdown;
6
+ new (): GidsDropdown;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{G as o,d as s}from"./p-BaO-kEWS.js";const a=o,p=s;export{a as GidsDropdown,p as defineCustomElement}
@@ -1,4 +1,4 @@
1
- import type { Components, JSX } from "../dist-dev/types/components";
1
+ import type { Components, JSX } from "./types/components";
2
2
 
3
3
  interface GidsField extends Components.GidsField, HTMLElement {}
4
4
  export const GidsField: {
@@ -1 +1 @@
1
- import{G as o,d as s}from"./p-DjvDBWCb.js";const p=o,r=s;export{p as GidsField,r as defineCustomElement}
1
+ import{G as o,d as s}from"./p-BvYnawkJ.js";const a=o,p=s;export{a as GidsField,p as defineCustomElement}
@@ -1,4 +1,4 @@
1
- import type { Components, JSX } from "../dist-dev/types/components";
1
+ import type { Components, JSX } from "./types/components";
2
2
 
3
3
  interface GidsIcon extends Components.GidsIcon, HTMLElement {}
4
4
  export const GidsIcon: {
package/dist/gids-icon.js CHANGED
@@ -1 +1 @@
1
- import{t as i,p as s,H as t,h as e}from"./p-ibikYq-w.js";import{g as o}from"./p-B2zUuNXz.js";import{G as n}from"./p-veoOgDXg.js";const c=s(class extends t{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const i=o();void 0!==i&&this._el.shadowRoot?.adoptedStyleSheets.push(i)}render(){return e(n,{key:"55114b6e5f7f440dcb4a892c0a25b234509b884e",name:this.name,size:this.size,appearance:this.appearance,alt:this.alt,titleId:this.titleId})}get _el(){return this}static get style(){return".gids-icon{fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%);flex-shrink:0}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}"}},[1,"gids-icon",{name:[1],size:[1],appearance:[1],alt:[1],titleId:[1,"title-id"]}]);function d(){"undefined"!=typeof customElements&&["gids-icon"].forEach((s=>{"gids-icon"===s&&(customElements.get(i(s))||customElements.define(i(s),c))}))}d();const g=c,r=d;export{g as GidsIcon,r as defineCustomElement}
1
+ import{G as o,d as s}from"./p-BiPAgxAQ.js";const p=o,r=s;export{p as GidsIcon,r as defineCustomElement}
@@ -1,4 +1,4 @@
1
- import type { Components, JSX } from "../dist-dev/types/components";
1
+ import type { Components, JSX } from "./types/components";
2
2
 
3
3
  interface GidsInput extends Components.GidsInput, HTMLElement {}
4
4
  export const GidsInput: {
@@ -1 +1 @@
1
- import{G as o,d as s}from"./p-Bg3lw2Ae.js";const p=o,r=s;export{p as GidsInput,r as defineCustomElement}
1
+ import{G as o,d as s}from"./p-DfFqFdmS.js";const m=o,p=s;export{m as GidsInput,p as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "./types/components";
2
+
3
+ interface GidsLevelGauge extends Components.GidsLevelGauge, HTMLElement {}
4
+ export const GidsLevelGauge: {
5
+ prototype: GidsLevelGauge;
6
+ new (): GidsLevelGauge;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{G as o,d as s}from"./p-uqSjmNkw.js";const m=o,p=s;export{m as GidsLevelGauge,p as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "./types/components";
2
+
3
+ interface GidsLineChart extends Components.GidsLineChart, HTMLElement {}
4
+ export const GidsLineChart: {
5
+ prototype: GidsLineChart;
6
+ new (): GidsLineChart;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{G as o,d as s}from"./p-D93TNeOt.js";const t=o,p=s;export{t as GidsLineChart,p as defineCustomElement}
@@ -1,4 +1,4 @@
1
- import type { Components, JSX } from "../dist-dev/types/components";
1
+ import type { Components, JSX } from "./types/components";
2
2
 
3
3
  interface GidsNotification extends Components.GidsNotification, HTMLElement {}
4
4
  export const GidsNotification: {
@@ -1 +1 @@
1
- import{t,p as i,H as o}from"./p-ibikYq-w.js";import{g as s}from"./p-CVtNa0cL.js";const n=i(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.pronunciation="standard",this.appearance="default",this.show=!1,this.position="top-right"}async showNotification(){const t=s(this._el);t&&this.show&&t.queueComponent({notificationTitle:this.notificationTitle,message:this.message,pronunciation:this.pronunciation,appearance:this.appearance,buttonLabel:this.buttonLabel,onButtonClick:this.onButtonClick,position:this.position,componentName:"notification",timerInMs:this.timerInMs}),this.onQueueNotification&&this.onQueueNotification(),this.show=!1}render(){return null}get _el(){return this}static get watchers(){return{show:[{showNotification:0}]}}},[1,"gids-notification",{notificationTitle:[513,"notification-title"],message:[513],pronunciation:[513],appearance:[513],show:[516],onQueueNotification:[16],buttonLabel:[513,"button-label"],position:[513],timerInMs:[514,"timer-in-ms"],onButtonClick:[16]},void 0,{show:[{showNotification:0}]}]);function e(){"undefined"!=typeof customElements&&["gids-notification"].forEach((i=>{"gids-notification"===i&&(customElements.get(t(i))||customElements.define(t(i),n))}))}e();const a=n,c=e;export{a as GidsNotification,c as defineCustomElement}
1
+ import{t,p as i,H as o}from"./p-Ct3Ixgvf.js";import{g as s}from"./p-CVtNa0cL.js";const n=i(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.pronunciation="standard",this.appearance="default",this.show=!1,this.position="top-right"}async showNotification(){const t=s(this._el);t&&this.show&&t.queueComponent({notificationTitle:this.notificationTitle,message:this.message,pronunciation:this.pronunciation,appearance:this.appearance,buttonLabel:this.buttonLabel,onButtonClick:this.onButtonClick,position:this.position,componentName:"notification",timerInMs:this.timerInMs}),this.onQueueNotification&&this.onQueueNotification(),this.show=!1}render(){return null}get _el(){return this}static get watchers(){return{show:[{showNotification:0}]}}},[1,"gids-notification",{notificationTitle:[513,"notification-title"],message:[513],pronunciation:[513],appearance:[513],show:[516],onQueueNotification:[16],buttonLabel:[513,"button-label"],position:[513],timerInMs:[514,"timer-in-ms"],onButtonClick:[16]},void 0,{show:[{showNotification:0}]}]);function e(){"undefined"!=typeof customElements&&["gids-notification"].forEach((i=>{"gids-notification"===i&&(customElements.get(t(i))||customElements.define(t(i),n))}))}e();const a=n,c=e;export{a as GidsNotification,c as defineCustomElement}
@@ -1,4 +1,4 @@
1
- import type { Components, JSX } from "../dist-dev/types/components";
1
+ import type { Components, JSX } from "./types/components";
2
2
 
3
3
  interface GidsOverflowContainer extends Components.GidsOverflowContainer, HTMLElement {}
4
4
  export const GidsOverflowContainer: {
@@ -1 +1 @@
1
- import{t,p as o,H as i,h as s}from"./p-ibikYq-w.js";import{g as e}from"./p-B2zUuNXz.js";import{GidsOverflowContainerCommonUtils as a}from"@ganpatiinfo/gids-core-shared";const{showGidsOverflowContainerBottomShadow:r,showGidsOverflowContainerTopShadow:n}=a,c=o(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.shadowLocation="bottom"}connectedCallback(){const t=e();void 0!==t&&this._el.shadowRoot?.adoptedStyleSheets.push(t)}componentDidLoad(){this._textArea=this._el.shadowRoot?.querySelector(".gids-overflow-container__text-area"),r(this.shadowLocation)&&this._textArea.scrollHeight>this._textArea.offsetHeight&&this._el.style.setProperty("--gidsOverflowContainer-after-opacity","1")}calculateShadows(){const t=this._textArea.scrollTop<=0?0:this._textArea.scrollTop;this._textArea.scrollTop+this._textArea.offsetHeight>=this._textArea.scrollHeight?this._el.style.setProperty("--gidsOverflowContainer-after-opacity","0"):0!==t?t>0&&(n(this.shadowLocation)&&this._el.style.setProperty("--gidsOverflowContainer-before-opacity",""+Math.min(t/20,1)),r(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")}render(){return s("div",{key:"6ec89d7178cf344a3127aa5913df8ff65c523592",class:"gids-overflow-container__text-area",onScroll:this.calculateShadows.bind(this)},s("slot",{key:"0cf9630efe8337aa0c7a239fa5f09ca30d368513"}))}get _el(){return this}},[257,"gids-overflow-container",{shadowLocation:[513,"shadow-location"]}]);function h(){"undefined"!=typeof customElements&&["gids-overflow-container"].forEach((o=>{"gids-overflow-container"===o&&(customElements.get(t(o))||customElements.define(t(o),c))}))}h();const f=c,d=h;export{f as GidsOverflowContainer,d as defineCustomElement}
1
+ import{t,p as o,H as i,h as s}from"./p-Ct3Ixgvf.js";import{g as e}from"./p-B2zUuNXz.js";import{GidsOverflowContainerCommonUtils as a}from"@ganpatiinfo/gids-core-shared";const{showGidsOverflowContainerBottomShadow:r,showGidsOverflowContainerTopShadow:n}=a,c=o(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.shadowLocation="bottom"}connectedCallback(){const t=e();void 0!==t&&this._el.shadowRoot?.adoptedStyleSheets.push(t)}componentDidLoad(){this._textArea=this._el.shadowRoot?.querySelector(".gids-overflow-container__text-area"),r(this.shadowLocation)&&this._textArea.scrollHeight>this._textArea.offsetHeight&&this._el.style.setProperty("--gidsOverflowContainer-after-opacity","1")}calculateShadows(){const t=this._textArea.scrollTop<=0?0:this._textArea.scrollTop;this._textArea.scrollTop+this._textArea.offsetHeight>=this._textArea.scrollHeight?this._el.style.setProperty("--gidsOverflowContainer-after-opacity","0"):0!==t?t>0&&(n(this.shadowLocation)&&this._el.style.setProperty("--gidsOverflowContainer-before-opacity",""+Math.min(t/20,1)),r(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")}render(){return s("div",{key:"fbc4a9851c77e92b2261392c6d8f00664f8adb94",class:"gids-overflow-container__text-area",onScroll:this.calculateShadows.bind(this)},s("slot",{key:"a825b7f435064d06a22f751e507c8a765817abec"}))}get _el(){return this}},[257,"gids-overflow-container",{shadowLocation:[513,"shadow-location"]}]);function h(){"undefined"!=typeof customElements&&["gids-overflow-container"].forEach((o=>{"gids-overflow-container"===o&&(customElements.get(t(o))||customElements.define(t(o),c))}))}h();const d=c,f=h;export{d as GidsOverflowContainer,f as defineCustomElement}
@@ -1,4 +1,4 @@
1
- import type { Components, JSX } from "../dist-dev/types/components";
1
+ import type { Components, JSX } from "./types/components";
2
2
 
3
3
  interface GidsOverlayProvider extends Components.GidsOverlayProvider, HTMLElement {}
4
4
  export const GidsOverlayProvider: {
@@ -1 +1 @@
1
- import{h as t,t as i,p as n,H as e,F as a}from"./p-ibikYq-w.js";import{g as o}from"./p-B2zUuNXz.js";import{g as s,a as r}from"./p-CVtNa0cL.js";import{GidsSnackbarContainerWebUtils as l,GidsNotificationContainerWebUtils as m,GidsOverlayProviderWebUtils as c}from"@ganpatiinfo/gids-web-shared";import{G as d}from"./p-veoOgDXg.js";import{G as p}from"./p-CWdkmFbc.js";const{getGidsSnackbarContainerClassNames:f,getSnackbarContainerIconNames:u}=l,g=({appearance:i="default",children:n,button:e,class:a,...o})=>{const s=u(i);return t("div",{...o,class:f({appearance:i},a)},t("div",{class:"gids-snackbar-container__content"},"default"!==i&&null!=s?t(d,{name:s,alt:"",appearance:"filled",size:"md",class:"gids-snackbar-container__icon"}):null,"string"==typeof n?t("p",null,n):n),e)},{getGidsNotificationContainerClassNames:h,getNotificationContainerIconNames:b}=m,v=({notificationTitle:i,children:n,button:e,appearance:a="default",pronunciation:o="standard",onCloseNotificationClick:s,class:r,...l})=>{const m=b(a);return t("div",{class:h({appearance:a},r),...l},"default"!==a&&m?t("div",{class:"gids-notification-container__leading-icon-wrapper"},t(d,{size:"md",name:m,alt:"",appearance:"filled"})):null,t("div",{class:"gids-notification-container__content-wrapper"},t("div",{class:"gids-notification-container__top-content"},t("div",{class:"gids-notification-container__text-content"},null!=i&&""!==i?t("span",{class:"gids-notification-container__title"},i):null,n?"string"==typeof n?t("p",null,n):n:null),"standard"===o?t("div",{class:"gids-notification-container__cross-btn-wrapper"},t(p,{size:"sm",appearance:"subtle",width:"intrinsic",leadingIcon:t(d,{name:"cross",size:"md",appearance:"regular"}),onClick:s})):null),e?t("div",{class:"gids-notification-container__bottom-content"},e):null))},{getComponentClasses:y,getComponentStackClasses:k}=c,w=n(class extends e{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow(),this._parentOverlayProvider=null,this._componentQueue=[],this._allowedComponentQueue=[],this._exitingComponents=[],this._renderSnackbar=(i,n)=>{const{id:e,message:a,appearance:o,buttonLabel:s,onButtonClick:r}=i;return t(g,{key:e,class:n,children:a,appearance:o,button:null!=s&&""!==s?t(p,{appearance:"subtle",onClick:r},s):void 0})},this._renderNotification=(i,n)=>{const{id:e,notificationTitle:a,message:o,pronunciation:s,appearance:r,buttonLabel:l,onButtonClick:m,timerInMs:c}=i;return t(v,{key:e,class:n,notificationTitle:a,children:o,pronunciation:s,appearance:r,onCloseNotificationClick:()=>this.removeComponent(i,c||0,!0),button:null!=l&&""!==l?t(p,{appearance:"default",size:"sm",onClick:m},l):void 0})},this._renderComponent=t=>{const{componentName:i,position:n="bottom-center",id:e}=t,a=y({position:n,id:e,exitingComponents:this._exitingComponents});return null==i||"snackbar"===i?this._renderSnackbar(t,a):"notification"===i?this._renderNotification(t,a):null}}connectedCallback(){const t=o();void 0!==t&&this._el.shadowRoot?.adoptedStyleSheets.push(t),this._parentOverlayProvider=s(this._el)}_isRoot(){return null===this._parentOverlayProvider}async getRootOverlayProvider(){return this._isRoot()?this._el:this._parentOverlayProvider}autoHide(t){return new Promise((i=>{const n=setTimeout((()=>(clearTimeout(n),i({isTimeout:!0}))),t)}))}async _queueSnackbar(t){const{appearance:i,message:n,buttonLabel:e,onButtonClick:a,position:o,componentName:s,...r}=t,l={id:""+(Date.now()+Math.random()),message:n,appearance:i,buttonLabel:e,onButtonClick:a,position:o,componentName:s,...r};this._componentQueue=[...this._componentQueue,l],this.processSingleComponentQueue()}async _queueNotification(t){const{appearance:i,notificationTitle:n,pronunciation:e,message:a,buttonLabel:o,onButtonClick:s,position:r,componentName:l,...m}=t,c={id:""+(Date.now()+Math.random()),notificationTitle:n,message:a,pronunciation:e,appearance:i,buttonLabel:o,onButtonClick:s,position:r,componentName:l,...m};this._componentQueue=[...this._componentQueue,c],this.processMultiComponentQueue()}async queueComponent(t){if(await this._isRoot()){const{componentName:i}=t;null!=i&&"snackbar"!==i||this._queueSnackbar(t),"notification"===i&&this._queueNotification(t)}else(await this.getRootOverlayProvider()).queueComponent(t)}async removeComponent(t,i,n){return n||await this.autoHide(i),this._exitingComponents=[...this._exitingComponents,t.id],new Promise((i=>{setTimeout((()=>{this._componentQueue=this._componentQueue.filter((i=>i.id!==t.id)),this._exitingComponents=this._exitingComponents.filter((i=>i!==t.id)),this._allowedComponentQueue=[],i()}),500)}))}async processSingleComponentQueue(){if(0===this._componentQueue.length)return;const t=this._componentQueue[0];if(!t)return;this._allowedComponentQueue=[t],await new Promise((t=>requestAnimationFrame((()=>t()))));const i=r({componentName:t?.componentName??"snackbar",timerInMs:t?.timerInMs??0});await this.removeComponent(t,i,!1),this.processSingleComponentQueue()}async processMultiComponentQueue(){const t=this._componentQueue;0!==t.length&&(this._allowedComponentQueue=t,await new Promise((t=>requestAnimationFrame((()=>t())))),this._allowedComponentQueue.map((async t=>{const i=r({componentName:t?.componentName??"snackbar",timerInMs:t?.timerInMs??0});await this.removeComponent(t,i,!1)})),this.processMultiComponentQueue())}render(){const i=this._allowedComponentQueue[0]?.position||"bottom-center";return t(a,{key:"f80c6557d382dc5af3ddcb77f20c58ffa9acbd53"},t("slot",{key:"1d763f5cedecd8b8a2e0b7d1fb207e9ffde7ad97"}),this._isRoot()?t("div",{class:k({position:i})},[...this._allowedComponentQueue].reverse().map((t=>this._renderComponent(t)))):null)}get _el(){return this}static get style(){return".common-component-stack{display:flex;flex-direction:column;position:fixed;gap:var(--gids-gap-200);min-width:var(--gids-width-2-xs);max-width:var(--gids-width-md);width:100%}.component-stack-bottom-left{justify-self:left;bottom:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-right{justify-self:right;bottom:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-left{top:50%;justify-self:left;align-self:center;left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-right{top:50%;justify-self:right;align-self:center;right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-center{justify-self:center;top:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-left{justify-self:left;top:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-right{justify-self:right;top:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-center{justify-self:center;bottom:var(--gids-padding-vertical-edge-to-element-250)}.component-enter-bottom-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-center{animation-name:slide-up-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-center{animation-name:slide-up-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-center{animation-name:slide-down-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-center{animation-name:slide-down-invisible;animation-duration:0.3s;animation-fill-mode:forwards}@keyframes slide-up-visible{0%{opacity:0;transform:translateY(100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-invisible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(100%)}}@keyframes slide-up-invisible{0%{opacity:0;transform:translateY(-100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-visible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-100%)}}@keyframes left-to-right-visible{0%{opacity:0;transform:translateX(-100%)}100%{opacity:1;transform:translateX(0)}}@keyframes right-to-left-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(-100%)}}@keyframes right-to-left-visible{0%{opacity:0;transform:translateX(100%)}100%{opacity:1;transform:translateX(0)}}@keyframes left-to-right-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(100%)}}"}},[257,"gids-overlay-provider",{_componentQueue:[32],_allowedComponentQueue:[32],_exitingComponents:[32],queueComponent:[64]}]);function C(){"undefined"!=typeof customElements&&["gids-overlay-provider"].forEach((t=>{"gids-overlay-provider"===t&&(customElements.get(i(t))||customElements.define(i(t),w))}))}C();const _=w,N=C;export{_ as GidsOverlayProvider,N as defineCustomElement}
1
+ import{h as t,t as i,p as n,H as e,F as a}from"./p-Ct3Ixgvf.js";import{g as o}from"./p-B2zUuNXz.js";import{g as s,a as r}from"./p-CVtNa0cL.js";import{GidsSnackbarContainerWebUtils as l,GidsNotificationContainerWebUtils as m,GidsOverlayProviderWebUtils as c}from"@ganpatiinfo/gids-web-shared";import{G as d}from"./p-BnL97lOW.js";import{G as p}from"./p-KxRqlvSh.js";const{getGidsSnackbarContainerClassNames:f,getSnackbarContainerIconNames:u}=l,g=({appearance:i="default",children:n,button:e,class:a,...o})=>{const s=u(i);return t("div",{...o,class:f({appearance:i},a)},t("div",{class:"gids-snackbar-container__content"},"default"!==i&&null!=s?t(d,{name:s,alt:"",appearance:"filled",size:"md",class:"gids-snackbar-container__icon"}):null,"string"==typeof n?t("p",null,n):n),e)},{getGidsNotificationContainerClassNames:h,getNotificationContainerIconNames:v}=m,b=({notificationTitle:i,children:n,button:e,appearance:a="default",pronunciation:o="standard",onCloseNotificationClick:s,class:r,...l})=>{const m=v(a);return t("div",{class:h({appearance:a},r),...l},"default"!==a&&m?t("div",{class:"gids-notification-container__leading-icon-wrapper"},t(d,{size:"md",name:m,alt:"",appearance:"filled"})):null,t("div",{class:"gids-notification-container__content-wrapper"},t("div",{class:"gids-notification-container__top-content"},t("div",{class:"gids-notification-container__text-content"},null!=i&&""!==i?t("span",{class:"gids-notification-container__title"},i):null,n?"string"==typeof n?t("p",null,n):n:null),"standard"===o?t("div",{class:"gids-notification-container__cross-btn-wrapper"},t(p,{size:"sm",appearance:"subtle",width:"intrinsic",leadingIcon:t(d,{name:"cross",size:"md",appearance:"regular"}),onClick:s})):null),e?t("div",{class:"gids-notification-container__bottom-content"},e):null))},{getComponentClasses:y,getComponentStackClasses:k}=c,w=n(class extends e{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow(),this._parentOverlayProvider=null,this._componentQueue=[],this._allowedComponentQueue=[],this._exitingComponents=[],this._renderSnackbar=(i,n)=>{const{id:e,message:a,appearance:o,buttonLabel:s,onButtonClick:r}=i;return t(g,{key:e,class:n,children:a,appearance:o,button:null!=s&&""!==s?t(p,{appearance:"subtle",onClick:r},s):void 0})},this._renderNotification=(i,n)=>{const{id:e,notificationTitle:a,message:o,pronunciation:s,appearance:r,buttonLabel:l,onButtonClick:m,timerInMs:c}=i;return t(b,{key:e,class:n,notificationTitle:a,children:o,pronunciation:s,appearance:r,onCloseNotificationClick:()=>this.removeComponent(i,c||0,!0),button:null!=l&&""!==l?t(p,{appearance:"default",size:"sm",onClick:m},l):void 0})},this._renderComponent=t=>{const{componentName:i,position:n="bottom-center",id:e}=t,a=y({position:n,id:e,exitingComponents:this._exitingComponents});return null==i||"snackbar"===i?this._renderSnackbar(t,a):"notification"===i?this._renderNotification(t,a):null}}connectedCallback(){const t=o();void 0!==t&&this._el.shadowRoot?.adoptedStyleSheets.push(t),this._parentOverlayProvider=s(this._el)}_isRoot(){return null===this._parentOverlayProvider}async getRootOverlayProvider(){return this._isRoot()?this._el:this._parentOverlayProvider}autoHide(t){return new Promise((i=>{const n=setTimeout((()=>(clearTimeout(n),i({isTimeout:!0}))),t)}))}async _queueSnackbar(t){const{appearance:i,message:n,buttonLabel:e,onButtonClick:a,position:o,componentName:s,...r}=t,l={id:""+(Date.now()+Math.random()),message:n,appearance:i,buttonLabel:e,onButtonClick:a,position:o,componentName:s,...r};this._componentQueue=[...this._componentQueue,l],this.processSingleComponentQueue()}async _queueNotification(t){const{appearance:i,notificationTitle:n,pronunciation:e,message:a,buttonLabel:o,onButtonClick:s,position:r,componentName:l,...m}=t,c={id:""+(Date.now()+Math.random()),notificationTitle:n,message:a,pronunciation:e,appearance:i,buttonLabel:o,onButtonClick:s,position:r,componentName:l,...m};this._componentQueue=[...this._componentQueue,c],this.processMultiComponentQueue()}async queueComponent(t){if(await this._isRoot()){const{componentName:i}=t;null!=i&&"snackbar"!==i||this._queueSnackbar(t),"notification"===i&&this._queueNotification(t)}else(await this.getRootOverlayProvider()).queueComponent(t)}async removeComponent(t,i,n){return n||await this.autoHide(i),this._exitingComponents=[...this._exitingComponents,t.id],new Promise((i=>{setTimeout((()=>{this._componentQueue=this._componentQueue.filter((i=>i.id!==t.id)),this._exitingComponents=this._exitingComponents.filter((i=>i!==t.id)),this._allowedComponentQueue=[],i()}),500)}))}async processSingleComponentQueue(){if(0===this._componentQueue.length)return;const t=this._componentQueue[0];if(!t)return;this._allowedComponentQueue=[t],await new Promise((t=>requestAnimationFrame((()=>t()))));const i=r({componentName:t?.componentName??"snackbar",timerInMs:t?.timerInMs??0});await this.removeComponent(t,i,!1),this.processSingleComponentQueue()}async processMultiComponentQueue(){const t=this._componentQueue;0!==t.length&&(this._allowedComponentQueue=t,await new Promise((t=>requestAnimationFrame((()=>t())))),this._allowedComponentQueue.map((async t=>{const i=r({componentName:t?.componentName??"snackbar",timerInMs:t?.timerInMs??0});await this.removeComponent(t,i,!1)})),this.processMultiComponentQueue())}render(){const i=this._allowedComponentQueue[0]?.position||"bottom-center";return t(a,{key:"c130346274545aa8cb3b12390fa28f65b612dcd9"},t("slot",{key:"6bfbde0f8f8a9cc75e3236ac806d762a9f2e0049"}),this._isRoot()?t("div",{class:k({position:i})},[...this._allowedComponentQueue].reverse().map((t=>this._renderComponent(t)))):null)}get _el(){return this}static get style(){return".common-component-stack{display:flex;flex-direction:column;position:fixed;gap:var(--gids-gap-200);min-width:var(--gids-width-2-xs);max-width:var(--gids-width-md);width:100%}.component-stack-bottom-left{justify-self:left;bottom:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-right{justify-self:right;bottom:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-left{top:50%;justify-self:left;align-self:center;left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-right{top:50%;justify-self:right;align-self:center;right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-center{justify-self:center;top:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-left{justify-self:left;top:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-right{justify-self:right;top:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-center{justify-self:center;bottom:var(--gids-padding-vertical-edge-to-element-250)}.component-enter-bottom-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-center{animation-name:slide-up-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-center{animation-name:slide-up-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-center{animation-name:slide-down-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-center{animation-name:slide-down-invisible;animation-duration:0.3s;animation-fill-mode:forwards}@keyframes slide-up-visible{0%{opacity:0;transform:translateY(100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-invisible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(100%)}}@keyframes slide-up-invisible{0%{opacity:0;transform:translateY(-100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-visible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-100%)}}@keyframes left-to-right-visible{0%{opacity:0;transform:translateX(-100%)}100%{opacity:1;transform:translateX(0)}}@keyframes right-to-left-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(-100%)}}@keyframes right-to-left-visible{0%{opacity:0;transform:translateX(100%)}100%{opacity:1;transform:translateX(0)}}@keyframes left-to-right-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(100%)}}"}},[257,"gids-overlay-provider",{_componentQueue:[32],_allowedComponentQueue:[32],_exitingComponents:[32],queueComponent:[64]}]);function C(){"undefined"!=typeof customElements&&["gids-overlay-provider"].forEach((t=>{"gids-overlay-provider"===t&&(customElements.get(i(t))||customElements.define(i(t),w))}))}C();const _=w,x=C;export{_ as GidsOverlayProvider,x as defineCustomElement}
@@ -1,4 +1,4 @@
1
- import type { Components, JSX } from "../dist-dev/types/components";
1
+ import type { Components, JSX } from "./types/components";
2
2
 
3
3
  interface GidsPasswordField extends Components.GidsPasswordField, HTMLElement {}
4
4
  export const GidsPasswordField: {
@@ -1 +1 @@
1
- import{h as e,t,p as s,H as i,c as n,f as a,F as r}from"./p-ibikYq-w.js";import{GidsStrengthMeterWebUtils as d,GidsRequirementsMeterLabelWebUtils as l,GidsRequirementsMeterWebUtils as o,generateId as h,GidsPasswordFieldWebUtils as c}from"@ganpatiinfo/gids-web-shared";import{g as u}from"./p-B2zUuNXz.js";import{G as m,a as g}from"./p-DijVkS9b.js";import{G as p}from"./p-CWdkmFbc.js";import{minLengthRuleCanBeApplied as f,getMeterRulesFromRequirements as b,getDefaultRulesAndRequirementsForMeters as x}from"@ganpatiinfo/gids-core-shared/dist/components/GidsRequirementsMeter/GidsRequirementsMeterCommonUtils.js";import{GidsStrengthMeterCommonUtils as q,GidsRequirementsMeterLabelCommonUtils as R,GidsRequirementsMeterCommonUtils as w}from"@ganpatiinfo/gids-core-shared";import{minLengthRuleCanBeApplied as v}from"@ganpatiinfo/gids-core-shared/dist/components/GidsRequirementsMeter/GidsRequirementsMeterCommonUtils";import{G as y}from"./p-veoOgDXg.js";import{d as L}from"./p-DjvDBWCb.js";import{d as M}from"./p-Bg3lw2Ae.js";const{getGidsStrengthMeterClassNames:k}=d,{getStrengthMeterScore:C,getColorModifierByScore:S}=q,_=({text:t,textMinLength:s,meterRules:i=["1-uppercase","1-lowercase","1-digit","1-special-character","include-min-length"],class:n})=>{const a=(t,s,i)=>e("div",{key:t,class:["gids-strength-meter__strength-"+t,i?"is-active":"",i?s:""].filter(Boolean).join(" ")});return i.length>0?e("div",{class:k(n)},(()=>{const e=i.length,n=C({text:t,textMinLength:s,meterRules:i}),r=S({textScore:n,maxScore:e});return Array.from({length:e},((e,t)=>{const d=t+1,l=d<=n;return"include-min-length"===i[d]?v({requirementRule:"include-min-length",textMinLength:s})?a(d,r,l):null:a(d,r,l)}))})()):null},{getGidsRequirementsMeterLabelClassNames:F}=l,{getRequirementsMeterLabelLeadingIcon:G}=R,P=t=>{const{label:s,status:i="default",leadingIconVisible:n=!0,class:a}=t,r=G(i);return e("div",{class:F({status:i},a)},n&&i&&r?e(y,{name:r,size:"sm",appearance:"filled"}):null,s&&""!==s?e("span",null,s):null)},{checkRequirementRuleSatisfied:T}=w,{getGidsRequirementsMeterClassNames:j}=o,B=({requirements:t=[],text:s,textMinLength:i,class:n})=>{const a=(t,s)=>e(P,{status:s?"success":"error",label:t.requirementText});return e("div",{class:j(n)},t.map((e=>{if(null!=e?.requirementText&&null!=e?.requirementRule){const t=T({rule:e.requirementRule,textMinLength:i,text:s});return"include-min-length"===e.requirementRule?!0===f({requirementRule:e.requirementRule,textMinLength:i})?a(e,t):null:a(e,t)}return null})))},{inputToGidsFieldStatusForPassword:E}=c,O=s(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.gidsPasswordFieldClear=n(this,"gidsPasswordFieldClear"),this.gidsPasswordFieldRevealPassword=n(this,"gidsPasswordFieldRevealPassword"),this.isPasswordRevealed=!1,this.meterRules=[],this.requirementsMeterRequirements=[],this.requirements=[],this.#e=h(),this._handleDismiss=()=>{const e=this.#t?.querySelector("input.gids-input__control");e&&(e.value="",e.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsPasswordFieldClear.emit()},this._handleRevealPassword=()=>{const e=this.#t?.querySelector("input.gids-input__control");this.isPasswordRevealed=null!=e?.value&&""!==e.value&&!1===this.isPasswordRevealed,this._el.dispatchEvent(new CustomEvent("gidsPasswordFieldRevealPassword",{detail:{passwordRevealed:this.isPasswordRevealed},bubbles:!0,composed:!0}))},this._handleInput=e=>{this.value=e.target?.value},this._handleInputFocusAndBlur=e=>{this._el.dispatchEvent(new FocusEvent(e.type,{relatedTarget:e.relatedTarget}))},this._isRequirementAndStrengthMeterVisible=()=>{const e=this.requirements;return!!(e&&e.length>0)},this._handleRequirementsMeter=()=>{const e=this._isRequirementAndStrengthMeterVisible();this.requirementsMeterRequirements=this.requirements&&this.requirements.length>0?this.requirements:[],this.meterRules=e?b(this.requirements):[]}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{a(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}handleRequirementsChange(e){void 0===e&&(this.requirements=x(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}componentWillLoad(){this.requirements||(this.requirements=x(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}connectedCallback(){const e=u();void 0!==e&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._handleRequirementsMeter(),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#e;#t;render(){const{id:t,...s}=this.inputProps??{},i=t??this.#e,n=this.showClearButton&&void 0!==this.value&&this.value.length>0,a=this.showRevealPasswordButton,d={...s},l=void 0!==d?.placeholder&&null!==d.placeholder&&""!=d.placeholder?d.placeholder:"Enter password",o=this.isPasswordRevealed,h=this.meterRules,c=void 0!==this.textMinLength?this.textMinLength:8;return e(r,{key:"ac0547218330d8f736228ea80758fa093106c83b"},e("gids-field",{key:"98c060a626789dbd002f5792cd80f1d774700ce8",disabled:this.disabled,count:void 0,helperText:this.helperText,statusText:this.statusText,status:E(this.status)},e(m,{key:"c3bc15ae28913dd303c6f1ac115a263eb6c957d6",slot:"label",disabled:this.disabled,info:e("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:i},this.label),e("gids-input",{key:"27e62b83ad6ad35b88478e2098e27b90955831c8",ref:e=>this.#t=e,appearance:"default",status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:void 0,trailingLabel:void 0,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...d,placeholder:l,type:o?"text":"password",id:i,maxLength:this.maxLength}},e("slot",{key:"be45ade51a541676a5b2e234fcbee46e60cde86c",name:"leadingIcon"}),e("slot",{key:"6cf1f874d8f94f0a47006f05784cbc96c6364a29",name:"leadingAccessory"}),e("div",{key:"8243a614ec6fc1d2b58f89c346123829b6ce4350",slot:"trailingAccessory",class:"gids-password-field__trailing-accessory"},n&&e(g,{key:"5a404ec6fbecf9d383bf11a1d06371d79b5bd1be",label:"clear text",size:"lg",onPressDismiss:this._handleDismiss}),a&&e(p,{key:"c6cac51598118d8e6fed039a08a5f6d7ad4ae3ac",appearance:"default",size:"xs",width:"intrinsic",disabled:this.disabled,onClick:this._handleRevealPassword},o?"Hide":"Show")))),e("div",{key:"dea7d30bac19ece0988437a663743020be7b9c47",class:"gids-password-field__meters-container"},e(_,{key:"0cd888450a7760a8c80b73ded9ccd91e2b30c39f",meterRules:h,text:this.value,textMinLength:c}),e(B,{key:"f5960940724dabab47fceb265ae369d1ce23e9aa",requirements:this.requirementsMeterRequirements,text:this.value,textMinLength:c})))}get _el(){return this}static get watchers(){return{requirements:[{handleRequirementsChange:0}],textMinLength:[{handleRequirementsChange:0}]}}},[260,"gids-password-field",{label:[513],showClearButton:[516,"show-clear-button"],showRevealPasswordButton:[516,"show-reveal-password-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],loading:[516],name:[513],required:[516],maxLength:[514,"maxlength"],value:[1],defaultValue:[513,"default-value"],disabled:[516],readOnly:[516,"readonly"],inputProps:[16],fieldRequirement:[513,"field-requirement"],fieldRequirementOptionalText:[1,"field-requirement-optional-text"],fieldRequirementRequiredText:[1,"field-requirement-required-text"],isLabelSentence:[16],textMinLength:[514,"text-min-length"],requirements:[16],isPasswordRevealed:[32],meterRules:[32],requirementsMeterRequirements:[32]},void 0,{requirements:[{handleRequirementsChange:0}],textMinLength:[{handleRequirementsChange:0}]}]);function z(){"undefined"!=typeof customElements&&["gids-password-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-password-field":customElements.get(t(e))||customElements.define(t(e),O);break;case"gids-field":customElements.get(t(e))||L();break;case"gids-input":customElements.get(t(e))||M()}}))}z();const A=O,D=z;export{A as GidsPasswordField,D as defineCustomElement}
1
+ import{h as e,t,p as s,H as i,c as n,f as a,F as r}from"./p-Ct3Ixgvf.js";import{GidsStrengthMeterWebUtils as d,GidsRequirementsMeterLabelWebUtils as l,GidsRequirementsMeterWebUtils as o,generateId as h,GidsPasswordFieldWebUtils as c}from"@ganpatiinfo/gids-web-shared";import{g as u}from"./p-B2zUuNXz.js";import{G as m}from"./p-CRngHsR7.js";import{G as f}from"./p-DZWWuJac.js";import{G as g}from"./p-KxRqlvSh.js";import{minLengthRuleCanBeApplied as p,getMeterRulesFromRequirements as b,getDefaultRulesAndRequirementsForMeters as x}from"@ganpatiinfo/gids-core-shared/dist/components/GidsRequirementsMeter/GidsRequirementsMeterCommonUtils.js";import{GidsStrengthMeterCommonUtils as R,GidsRequirementsMeterLabelCommonUtils as q,GidsRequirementsMeterCommonUtils as v}from"@ganpatiinfo/gids-core-shared";import{minLengthRuleCanBeApplied as w}from"@ganpatiinfo/gids-core-shared/dist/components/GidsRequirementsMeter/GidsRequirementsMeterCommonUtils";import{G as L}from"./p-BnL97lOW.js";import{d as y}from"./p-BvYnawkJ.js";import{d as M}from"./p-DfFqFdmS.js";const{getGidsStrengthMeterClassNames:C}=d,{getStrengthMeterScore:k,getColorModifierByScore:S}=R,F=({text:t,textMinLength:s,meterRules:i=["1-uppercase","1-lowercase","1-digit","1-special-character","include-min-length"],class:n})=>{const a=(t,s,i)=>e("div",{key:t,class:["gids-strength-meter__strength-"+t,i?"is-active":"",i?s:""].filter(Boolean).join(" ")});return i.length>0?e("div",{class:C(n)},(()=>{const e=i.length,n=k({text:t,textMinLength:s,meterRules:i}),r=S({textScore:n,maxScore:e});return Array.from({length:e},((e,t)=>{const d=t+1,l=d<=n;return"include-min-length"===i[d]?w({requirementRule:"include-min-length",textMinLength:s})?a(d,r,l):null:a(d,r,l)}))})()):null},{getGidsRequirementsMeterLabelClassNames:G}=l,{getRequirementsMeterLabelLeadingIcon:_}=q,P=t=>{const{label:s,status:i="default",leadingIconVisible:n=!0,class:a}=t,r=_(i);return e("div",{class:G({status:i},a)},n&&i&&r?e(L,{name:r,size:"sm",appearance:"filled"}):null,s&&""!==s?e("span",null,s):null)},{checkRequirementRuleSatisfied:T}=v,{getGidsRequirementsMeterClassNames:j}=o,B=({requirements:t=[],text:s,textMinLength:i,class:n})=>{const a=(t,s)=>e(P,{status:s?"success":"error",label:t.requirementText});return e("div",{class:j(n)},t.map((e=>{if(null!=e?.requirementText&&null!=e?.requirementRule){const t=T({rule:e.requirementRule,textMinLength:i,text:s});return"include-min-length"===e.requirementRule?!0===p({requirementRule:e.requirementRule,textMinLength:i})?a(e,t):null:a(e,t)}return null})))},{inputToGidsFieldStatusForPassword:E}=c,O=s(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.gidsPasswordFieldClear=n(this,"gidsPasswordFieldClear"),this.gidsPasswordFieldRevealPassword=n(this,"gidsPasswordFieldRevealPassword"),this.isPasswordRevealed=!1,this.meterRules=[],this.requirementsMeterRequirements=[],this.requirements=[],this.#e=h(),this._handleDismiss=()=>{const e=this.#t?.querySelector("input.gids-input__control");e&&(e.value="",e.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsPasswordFieldClear.emit()},this._handleRevealPassword=()=>{const e=this.#t?.querySelector("input.gids-input__control");this.isPasswordRevealed=null!=e?.value&&""!==e.value&&!1===this.isPasswordRevealed,this._el.dispatchEvent(new CustomEvent("gidsPasswordFieldRevealPassword",{detail:{passwordRevealed:this.isPasswordRevealed},bubbles:!0,composed:!0}))},this._handleInput=e=>{this.value=e.target?.value},this._handleInputFocusAndBlur=e=>{this._el.dispatchEvent(new FocusEvent(e.type,{relatedTarget:e.relatedTarget}))},this._isRequirementAndStrengthMeterVisible=()=>{const e=this.requirements;return!!(e&&e.length>0)},this._handleRequirementsMeter=()=>{const e=this._isRequirementAndStrengthMeterVisible();this.requirementsMeterRequirements=this.requirements&&this.requirements.length>0?this.requirements:[],this.meterRules=e?b(this.requirements):[]}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{a(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}handleRequirementsChange(e){void 0===e&&(this.requirements=x(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}componentWillLoad(){this.requirements||(this.requirements=x(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}connectedCallback(){const e=u();void 0!==e&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._handleRequirementsMeter(),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#e;#t;render(){const{id:t,...s}=this.inputProps??{},i=t??this.#e,n=this.showClearButton&&void 0!==this.value&&this.value.length>0,a=this.showRevealPasswordButton,d={...s},l=void 0!==d?.placeholder&&null!==d.placeholder&&""!=d.placeholder?d.placeholder:"Enter password",o=this.isPasswordRevealed,h=this.meterRules,c=void 0!==this.textMinLength?this.textMinLength:8;return e(r,{key:"20e80248a1bf89a1fbcc45afde2d53bd51fbdbcc"},e("gids-field",{key:"f3b8a64102cca5dc4342cc06c24c42ade33ff182",disabled:this.disabled,count:void 0,helperText:this.helperText,statusText:this.statusText,status:E(this.status)},e(m,{key:"49d56818bb59470c86a1375540849ac72a85ec39",slot:"label",disabled:this.disabled,info:e("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:i},this.label),e("gids-input",{key:"b4c52f50b940fd6d9bf8102cd8e9982827348294",ref:e=>this.#t=e,appearance:"default",status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:void 0,trailingLabel:void 0,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...d,placeholder:l,type:o?"text":"password",id:i,maxLength:this.maxLength}},e("slot",{key:"125c163e6d2b647aee98931303cd133e67ccdd75",name:"leadingIcon"}),e("slot",{key:"137a5bf21cd658dc4eca833fb09954b3b68393d4",name:"leadingAccessory"}),e("div",{key:"4e87732b5d198ac176dc0fc68a99cb4b82cbcdf4",slot:"trailingAccessory",class:"gids-password-field__trailing-accessory"},n&&e(f,{key:"a8016058d8823a75c0188fe707f39aad1834a6e6",label:"clear text",size:"lg",onPressDismiss:this._handleDismiss}),a&&e(g,{key:"3bfe55f6787c42df0a9a9351ac96b12fa90826ab",appearance:"default",size:"xs",width:"intrinsic",disabled:this.disabled,onClick:this._handleRevealPassword},o?"Hide":"Show")))),e("div",{key:"d2b12032cafa7414481251d9b2c5cacc94bcf745",class:"gids-password-field__meters-container"},e(F,{key:"5aa93ffa5361c3b4d5b8f9d7fd13ff6628821ebe",meterRules:h,text:this.value,textMinLength:c}),e(B,{key:"96131ad3f4c4318450952b2c6b8325d2bd567cf6",requirements:this.requirementsMeterRequirements,text:this.value,textMinLength:c})))}get _el(){return this}static get watchers(){return{requirements:[{handleRequirementsChange:0}],textMinLength:[{handleRequirementsChange:0}]}}},[260,"gids-password-field",{label:[513],showClearButton:[516,"show-clear-button"],showRevealPasswordButton:[516,"show-reveal-password-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],loading:[516],name:[513],required:[516],maxLength:[514,"maxlength"],value:[1],defaultValue:[513,"default-value"],disabled:[516],readOnly:[516,"readonly"],inputProps:[16],fieldRequirement:[513,"field-requirement"],fieldRequirementOptionalText:[1,"field-requirement-optional-text"],fieldRequirementRequiredText:[1,"field-requirement-required-text"],isLabelSentence:[16],textMinLength:[514,"text-min-length"],requirements:[16],isPasswordRevealed:[32],meterRules:[32],requirementsMeterRequirements:[32]},void 0,{requirements:[{handleRequirementsChange:0}],textMinLength:[{handleRequirementsChange:0}]}]);function I(){"undefined"!=typeof customElements&&["gids-password-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-password-field":customElements.get(t(e))||customElements.define(t(e),O);break;case"gids-field":customElements.get(t(e))||y();break;case"gids-input":customElements.get(t(e))||M()}}))}I();const z=O,A=I;export{z as GidsPasswordField,A as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "./types/components";
2
+
3
+ interface GidsPieChart extends Components.GidsPieChart, HTMLElement {}
4
+ export const GidsPieChart: {
5
+ prototype: GidsPieChart;
6
+ new (): GidsPieChart;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{G as t,d as o}from"./p-tyIgTtUC.js";const s=t,p=o;export{s as GidsPieChart,p as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "./types/components";
2
+
3
+ interface GidsPopover extends Components.GidsPopover, HTMLElement {}
4
+ export const GidsPopover: {
5
+ prototype: GidsPopover;
6
+ new (): GidsPopover;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{t,p as e,H as o,h as i,F as s}from"./p-Ct3Ixgvf.js";import{G as r}from"./p-a3JfEYJp.js";import{G as a}from"./p-B8kX8Vqv.js";const n=e(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.previouslyFocusedElement=null,this.focusableElements=[],this.handleToggleEvent=t=>{t.stopPropagation();const e=this.floatingElementManager.isVisible();this.floatingElementManager.toggle(),!e&&this.floatingElementManager.isVisible()?this.onPopoverShow():e&&!this.floatingElementManager.isVisible()&&this.onPopoverHide()},this.handleDocumentClick=t=>{this.floatingElementManager.isVisible()&&!this._el.contains(t.target)&&(this.floatingElementManager.hide(),this.onPopoverHide())},this.handleKeyDown=t=>{if(this.floatingElementManager.isVisible())return"Escape"===t.key?(t.preventDefault(),this.floatingElementManager.hide(),void this.onPopoverHide()):void("Tab"===t.key&&this.trapFocus(t))}}componentDidLoad(){this.floatingElementManager=new r(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:!0,floatingElementSelector:"#popover",arrowElementSelector:"#arrow",visibilityClass:"gids-popover--visible",elementType:a.POPOVER,getAnchorElementFromSlot:t=>{const e=t.querySelector('slot[name="anchor"]');return e?.assignedElements()[0]||null}}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const t=this.floatingElementManager.getAnchorElement();t&&(t.addEventListener("click",this.handleToggleEvent),document.addEventListener("click",this.handleDocumentClick),document.addEventListener("keydown",this.handleKeyDown))}onPopoverShow(){this.previouslyFocusedElement=document.activeElement,this.updateFocusableElements(),setTimeout((()=>{this.focusableElements.length>0&&this.focusableElements[0]&&this.focusableElements[0].focus()}),50)}onPopoverHide(){this.previouslyFocusedElement&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=null)}updateFocusableElements(){const t=this._el.shadowRoot?.querySelector("#popover");if(!t)return;const e=[],o=l(t);e.push(...o);const i=this._el.shadowRoot?.querySelector("slot:not([name])");i&&i.assignedElements({flatten:!0}).forEach((t=>{const o=l(t);e.push(...o)})),this.focusableElements=e.sort(((t,e)=>{const o=t.compareDocumentPosition(e),i=!!(o&Node.DOCUMENT_POSITION_FOLLOWING),s=!!(o&Node.DOCUMENT_POSITION_PRECEDING);return i?-1:s?1:0}))}trapFocus(t){if(0===this.focusableElements.length)return;const e=this.focusableElements[0],o=this.focusableElements[this.focusableElements.length-1];let i=document.activeElement;if(i===this._el){const t=this._el.shadowRoot?.activeElement;null!==t&&(i=t)}const s=-1!==this.focusableElements.indexOf(i);t.shiftKey?i!==e&&s||(t.preventDefault(),o&&o.focus()):i!==o&&s||(t.preventDefault(),e&&e.focus())}placementChanged(t){this.floatingElementManager?.updateConfig({placement:t}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}htmlForChanged(t){this.floatingElementManager?.updateConfig({htmlFor:t}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const t=this.floatingElementManager?.getAnchorElement();t&&t.removeEventListener("click",this.handleToggleEvent),document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleKeyDown)}render(){return i(s,{key:"4147e2407a0e2592d65db07e6d92dcbd37e52b5d"},i("slot",{key:"82f2de1b78ee81f7b2363a2fbf4fc80029c6529f",name:"anchor"}),i("div",{key:"371b9c7c170bf8621e2a847eca6771e140ee161e",id:"popover",part:"popover",role:"dialog","aria-modal":"true",tabindex:"-1"},i("span",{key:"19dbf2c247353839c075674f068f2d435a23bec1",id:"arrow"}),i("div",{key:"374d276cdd13093c74b8a35d7447c328f4f90d0c"},i("slot",{key:"45d5f02df1f6aa160d080a5f5a10e0ba9e6aa8f8"}))))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-popover{--gidsPopover-background:var(--gids-elevation-surface-overlay-default);--gidsPopover-text-color:var(--gids-color-text-default);--gidsPopover-padding:var(--gids-padding-vertical-edge-to-element-200) var(--gids-padding-horizontal-edge-to-element-300);--gidsPopover-border-radius:var(--gids-border-radius-lg);--gidsPopover-tip-border-radius:2px;--gidsPopover-tip-size:12px;--gidsPopover-shadow:var(--gids-elevation-shadow-overlay);--gidsFloatingElement-background:var(--gidsPopover-background);--gidsFloatingElement-tip-border-radius:var(--gidsPopover-tip-border-radius)}[part=popover]{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);position:absolute;display:inline-block;background-color:var(--gidsPopover-background);color:var(--gidsPopover-text-color);border-radius:var(--gidsPopover-border-radius);box-shadow:var(--gidsPopover-shadow);z-index:1000;opacity:0;pointer-events:none;outline:none}[part=popover]:focus{outline:none}[part=popover].gids-popover--visible{pointer-events:initial;opacity:1}[part=popover] span#arrow{position:absolute;height:var(--gidsPopover-tip-size);width:var(--gidsPopover-tip-size);background-color:var(--gidsPopover-background)}"}},[257,"gids-popover",{htmlFor:[513,"for"],placement:[513]},void 0,{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}]),d=t=>{if(!(t instanceof o))return!1;if(-1===t.tabIndex)return!1;if(t.hasAttribute("disabled"))return!1;const e=getComputedStyle(t);if("none"===e.display||"hidden"===e.visibility||t.hidden)return!1;try{const e=t.tabIndex;t.tabIndex=-1,t.focus();const o=document.activeElement===t;return t.tabIndex=e,o&&t.blur(),o}catch{return!1}},l=t=>{const e=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>d(t)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),o=[];d(t)&&o.push(t);let i=e.nextNode();for(;null!==i;)o.push(i),i=e.nextNode();return o};function p(){"undefined"!=typeof customElements&&["gids-popover"].forEach((e=>{"gids-popover"===e&&(customElements.get(t(e))||customElements.define(t(e),n))}))}p();const h=n,c=p;export{h as GidsPopover,c as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "./types/components";
2
+
3
+ interface GidsProgressCircle extends Components.GidsProgressCircle, HTMLElement {}
4
+ export const GidsProgressCircle: {
5
+ prototype: GidsProgressCircle;
6
+ new (): GidsProgressCircle;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{G as o,d as s}from"./p-quZYWCxU.js";const p=o,r=s;export{p as GidsProgressCircle,r as defineCustomElement}
@@ -1,4 +1,4 @@
1
- import type { Components, JSX } from "../dist-dev/types/components";
1
+ import type { Components, JSX } from "./types/components";
2
2
 
3
3
  interface GidsScrim extends Components.GidsScrim, HTMLElement {}
4
4
  export const GidsScrim: {
@@ -1 +1 @@
1
- import{t as s,p as t,H as e,h as a}from"./p-ibikYq-w.js";import{g as i}from"./p-B2zUuNXz.js";import{GidsScrimWebUtils as r}from"@ganpatiinfo/gids-web-shared";const{getGidsScrimClassNames:o}=r,c=t(class extends e{constructor(s){super(),!1!==s&&this.__registerHost(),this.__attachShadow(),this.activeClasses=""}handleExtraClassesChange(s){this.activeClasses=o(s)}connectedCallback(){const s=i();void 0!==s&&this._el.shadowRoot?.adoptedStyleSheets.push(s),this.activeClasses=o(this.extraClasses)}render(){return a("div",{key:"3a18dab725b1a061036e23781aaa55040bf8464c",class:this.activeClasses,part:"root"},a("slot",{key:"81e1e0fa050d3ccb490cbe082f7a67422957096a"}))}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesChange:0}]}}static get style(){return".gids-scrim{display:flex;flex-direction:column;background-color:var(--gids-color-background-scrim);height:100vh !important;position:absolute;top:0;bottom:0;left:0;right:0;z-index:1001;align-items:center;justify-content:center;backdrop-filter:blur(12)}"}},[257,"gids-scrim",{extraClasses:[513,"extra-classes"],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesChange:0}]}]);function n(){"undefined"!=typeof customElements&&["gids-scrim"].forEach((t=>{"gids-scrim"===t&&(customElements.get(s(t))||customElements.define(s(t),c))}))}n();const l=c,d=n;export{l as GidsScrim,d as defineCustomElement}
1
+ import{t as s,p as t,H as e,h as r}from"./p-Ct3Ixgvf.js";import{g as a}from"./p-B2zUuNXz.js";import{GidsScrimWebUtils as i}from"@ganpatiinfo/gids-web-shared";const{getGidsScrimClassNames:o}=i,c=t(class extends e{constructor(s){super(),!1!==s&&this.__registerHost(),this.__attachShadow(),this.activeClasses=""}handleExtraClassesChange(s){this.activeClasses=o(s)}connectedCallback(){const s=a();void 0!==s&&this._el.shadowRoot?.adoptedStyleSheets.push(s),this.activeClasses=o(this.extraClasses)}render(){return r("div",{key:"bb28bc59d4522f27c3637774153603462d628be0",class:this.activeClasses,part:"root"},r("slot",{key:"24becefcfa3a4842163b62a255266d71dd27d765"}))}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesChange:0}]}}static get style(){return".gids-scrim{display:flex;flex-direction:column;background-color:var(--gids-color-background-scrim);height:100vh !important;position:absolute;top:0;bottom:0;left:0;right:0;z-index:1001;align-items:center;justify-content:center;backdrop-filter:blur(12)}"}},[257,"gids-scrim",{extraClasses:[513,"extra-classes"],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesChange:0}]}]);function n(){"undefined"!=typeof customElements&&["gids-scrim"].forEach((t=>{"gids-scrim"===t&&(customElements.get(s(t))||customElements.define(s(t),c))}))}n();const l=c,d=n;export{l as GidsScrim,d as defineCustomElement}
@@ -1,4 +1,4 @@
1
- import type { Components, JSX } from "../dist-dev/types/components";
1
+ import type { Components, JSX } from "./types/components";
2
2
 
3
3
  interface GidsSnackbar extends Components.GidsSnackbar, HTMLElement {}
4
4
  export const GidsSnackbar: {
@@ -1 +1 @@
1
- import{t,p as s,H as n}from"./p-ibikYq-w.js";import{g as e}from"./p-CVtNa0cL.js";const i=s(class extends n{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.appearance="default",this.show=!1,this.position="bottom-center"}async showSnackbar(){const t=e(this._el);t&&this.show&&t.queueComponent({message:this.message,appearance:this.appearance,buttonLabel:this.buttonLabel,onButtonClick:this.onButtonClick,position:this.position,componentName:"snackbar",timerInMs:this.timerInMs}),this.onQueueSnackbar&&this.onQueueSnackbar(),this.show=!1}render(){return null}get _el(){return this}static get watchers(){return{show:[{showSnackbar:0}]}}},[1,"gids-snackbar",{message:[513],appearance:[513],show:[516],onQueueSnackbar:[16],buttonLabel:[513,"button-label"],position:[513],timerInMs:[514,"timer-in-ms"],onButtonClick:[16]},void 0,{show:[{showSnackbar:0}]}]);function o(){"undefined"!=typeof customElements&&["gids-snackbar"].forEach((s=>{"gids-snackbar"===s&&(customElements.get(t(s))||customElements.define(t(s),i))}))}o();const a=i,r=o;export{a as GidsSnackbar,r as defineCustomElement}
1
+ import{t,p as s,H as n}from"./p-Ct3Ixgvf.js";import{g as e}from"./p-CVtNa0cL.js";const o=s(class extends n{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.appearance="default",this.show=!1,this.position="bottom-center"}async showSnackbar(){const t=e(this._el);t&&this.show&&t.queueComponent({message:this.message,appearance:this.appearance,buttonLabel:this.buttonLabel,onButtonClick:this.onButtonClick,position:this.position,componentName:"snackbar",timerInMs:this.timerInMs}),this.onQueueSnackbar&&this.onQueueSnackbar(),this.show=!1}render(){return null}get _el(){return this}static get watchers(){return{show:[{showSnackbar:0}]}}},[1,"gids-snackbar",{message:[513],appearance:[513],show:[516],onQueueSnackbar:[16],buttonLabel:[513,"button-label"],position:[513],timerInMs:[514,"timer-in-ms"],onButtonClick:[16]},void 0,{show:[{showSnackbar:0}]}]);function a(){"undefined"!=typeof customElements&&["gids-snackbar"].forEach((s=>{"gids-snackbar"===s&&(customElements.get(t(s))||customElements.define(t(s),o))}))}a();const i=o,r=a;export{i as GidsSnackbar,r as defineCustomElement}
@@ -1,4 +1,4 @@
1
- import type { Components, JSX } from "../dist-dev/types/components";
1
+ import type { Components, JSX } from "./types/components";
2
2
 
3
3
  interface GidsTextField extends Components.GidsTextField, HTMLElement {}
4
4
  export const GidsTextField: {
@@ -1 +1 @@
1
- import{t as e,p as t,H as i,c as s,f as a,h as l}from"./p-ibikYq-w.js";import{GidsTextFieldCommonUtils as n}from"@ganpatiinfo/gids-core-shared";import{generateId as d,GidsTextFieldWebUtils as r}from"@ganpatiinfo/gids-web-shared";import{g as o}from"./p-B2zUuNXz.js";import{a as h,G as u}from"./p-DijVkS9b.js";import{d as c}from"./p-DjvDBWCb.js";import{d as f}from"./p-Bg3lw2Ae.js";const{formatCharCount:b}=n,{inputToGidsFieldStatus:m}=r,p=t(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.gidsTextFieldClear=s(this,"gidsTextFieldClear"),this.#e=d(),this._handleDismiss=()=>{const e=this.#t?.querySelector("input.gids-input__control");e&&(e.value="",e.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsTextFieldClear.emit()},this._handleInput=e=>{this.value=e.target?.value},this._handleInputFocusAndBlur=e=>{this._el.dispatchEvent(new FocusEvent(e.type,{relatedTarget:e.relatedTarget}))}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{a(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}connectedCallback(){const e=o();void 0!==e&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#e;#t;render(){const{id:e,...t}=this.inputProps??{},i=e??this.#e,s=this.showClearButton&&void 0!==this.value&&this.value.length>0;return l("gids-field",{key:"79a6f89effd87741d2b07df6aeb47c7dca810738",disabled:this.disabled,count:b(this.value?.length,this.maxLength),helperText:this.helperText,statusText:this.statusText,status:m(this.status)},l(u,{key:"04c15dd04008777bd1eff8b3e94fd26076fd0a6c",slot:"label",disabled:this.disabled,info:l("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:i},this.label),l("gids-input",{key:"ae41600eca7cc769e3a4e271bc7d4718c5cb9069",ref:e=>this.#t=e,appearance:this.appearance,status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:this.leadingLabel,trailingLabel:this.trailingLabel,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...t,type:this.type,id:i,maxLength:this.maxLength}},l("slot",{key:"0a1851ba9e1cb1deed77f88327e5411c0577c5d0",name:"leadingIcon"}),l("slot",{key:"140610e53fb52e6b24e0d91361c688e996de3849",name:"leadingAccessory"}),s&&l(h,{key:"48b5b8d8adaa5693e57d6aca9eff32ca72a2c051",label:"clear text",slot:"trailingAccessory",size:"lg",onPressDismiss:this._handleDismiss}),l("slot",{key:"679c26844c467e15e144c393df13652dbe498421",name:"trailingIcon"})))}get _el(){return this}},[260,"gids-text-field",{label:[513],showClearButton:[516,"show-clear-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],appearance:[513],status:[513],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],type:[513],name:[513],required:[516],maxLength:[514,"maxlength"],value:[1],defaultValue:[513,"default-value"],disabled:[516],readOnly:[516,"readonly"],inputProps:[16],fieldRequirement:[513,"field-requirement"],fieldRequirementOptionalText:[1,"field-requirement-optional-text"],fieldRequirementRequiredText:[1,"field-requirement-required-text"],isLabelSentence:[16]}]);function g(){"undefined"!=typeof customElements&&["gids-text-field","gids-field","gids-input"].forEach((t=>{switch(t){case"gids-text-field":customElements.get(e(t))||customElements.define(e(t),p);break;case"gids-field":customElements.get(e(t))||c();break;case"gids-input":customElements.get(e(t))||f()}}))}g();const x=p,q=g;export{x as GidsTextField,q as defineCustomElement}
1
+ import{t as e,p as t,H as i,c as s,f as a,h as n}from"./p-Ct3Ixgvf.js";import{GidsTextFieldCommonUtils as l}from"@ganpatiinfo/gids-core-shared";import{generateId as d,GidsTextFieldWebUtils as r}from"@ganpatiinfo/gids-web-shared";import{g as o}from"./p-B2zUuNXz.js";import{G as h}from"./p-CRngHsR7.js";import{G as u}from"./p-DZWWuJac.js";import{d as c}from"./p-BvYnawkJ.js";import{d as f}from"./p-DfFqFdmS.js";const{formatCharCount:b}=l,{inputToGidsFieldStatus:m}=r,p=t(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.gidsTextFieldClear=s(this,"gidsTextFieldClear"),this.#e=d(),this._handleDismiss=()=>{const e=this.#t?.querySelector("input.gids-input__control");e&&(e.value="",e.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsTextFieldClear.emit()},this._handleInput=e=>{this.value=e.target?.value},this._handleInputFocusAndBlur=e=>{this._el.dispatchEvent(new FocusEvent(e.type,{relatedTarget:e.relatedTarget}))}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{a(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}connectedCallback(){const e=o();void 0!==e&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#e;#t;render(){const{id:e,...t}=this.inputProps??{},i=e??this.#e,s=this.showClearButton&&void 0!==this.value&&this.value.length>0;return n("gids-field",{key:"d11133ec5a64d0bc929a2c09530e1c4b7040a441",disabled:this.disabled,count:b(this.value?.length,this.maxLength),helperText:this.helperText,statusText:this.statusText,status:m(this.status)},n(h,{key:"edf0168bd4940b9f98fff8b7e03d865f46f4b6ac",slot:"label",disabled:this.disabled,info:n("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:i},this.label),n("gids-input",{key:"317347850ebc9f671a16c816807f9ca55f0f9fa6",ref:e=>this.#t=e,appearance:this.appearance,status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:this.leadingLabel,trailingLabel:this.trailingLabel,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...t,type:this.type,id:i,maxLength:this.maxLength}},n("slot",{key:"87815f4d215bbb0c542457b9216f7446595d9ec2",name:"leadingIcon"}),n("slot",{key:"6648b1d8d3585e1df78039a356a297760272af4f",name:"leadingAccessory"}),s&&n(u,{key:"7eba5acbfdfe1c9173d43bce1592f8e12c8602cb",label:"clear text",slot:"trailingAccessory",size:"lg",onPressDismiss:this._handleDismiss}),n("slot",{key:"85017d875b4390fec245b9da8409787a2bd86909",name:"trailingIcon"})))}get _el(){return this}},[260,"gids-text-field",{label:[513],showClearButton:[516,"show-clear-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],appearance:[513],status:[513],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],type:[513],name:[513],required:[516],maxLength:[514,"maxlength"],value:[1],defaultValue:[513,"default-value"],disabled:[516],readOnly:[516,"readonly"],inputProps:[16],fieldRequirement:[513,"field-requirement"],fieldRequirementOptionalText:[1,"field-requirement-optional-text"],fieldRequirementRequiredText:[1,"field-requirement-required-text"],isLabelSentence:[16]}]);function g(){"undefined"!=typeof customElements&&["gids-text-field","gids-field","gids-input"].forEach((t=>{switch(t){case"gids-text-field":customElements.get(e(t))||customElements.define(e(t),p);break;case"gids-field":customElements.get(e(t))||c();break;case"gids-input":customElements.get(e(t))||f()}}))}g();const x=p,q=g;export{x as GidsTextField,q as defineCustomElement}
@@ -1,4 +1,4 @@
1
- import type { Components, JSX } from "../dist-dev/types/components";
1
+ import type { Components, JSX } from "./types/components";
2
2
 
3
3
  interface GidsToggleButton extends Components.GidsToggleButton, HTMLElement {}
4
4
  export const GidsToggleButton: {
@@ -1 +1 @@
1
- import{t as e,p as t,H as s,c as i,h as c,d as n}from"./p-ibikYq-w.js";import{G as o}from"./p-CWdkmFbc.js";import{g as d}from"./p-B2zUuNXz.js";const a=t(class extends s{get selected(){return this.#e??this.defaultSelected}set selected(e){this.#e=void 0===e?void 0:!!e}constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.select=i(this,"select"),this._toggle=this._toggle.bind(this)}#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)}render(){return c(n,{key:"87505762161da81762e873e7c6318c03d9c17ef5"},c("style",{key:"4e4c082b5435ca88e816310035c2989847d4f3de"},`:host {\n display: ${"full"===this.width?"block":"inline-block"}\n }`),c(o,{key:"cc1ba98c103b2650fac9373764174b9d692a3887",appearance:this.appearance,size:this.size,width:this.width,disabled:this.disabled,onClick:this._toggle,"aria-pressed":this.selected?"true":"false",leadingIcon:c("slot",{name:"leadingIcon"}),trailingIcon:c("slot",{name:"trailingIcon"}),forceIconOnly:this._onlyHasLeadingIcon()},c("slot",{key:"009d3abc1604b5c387c1c29fad97d42e24ae70e9"})))}_onlyHasLeadingIcon(){const e=this._el.childNodes;return 1===e.length&&e[0]instanceof window.Element&&"leadingIcon"===e[0].slot}get _el(){return this}},[257,"gids-toggle-button",{disabled:[516],appearance:[513],size:[513],width:[513],defaultSelected:[516,"default-selected"],selected:[6660]}]);function l(){"undefined"!=typeof customElements&&["gids-toggle-button"].forEach((t=>{"gids-toggle-button"===t&&(customElements.get(e(t))||customElements.define(e(t),a))}))}l();const r=a,h=l;export{r as GidsToggleButton,h as defineCustomElement}
1
+ import{t as e,p as t,H as s,c as i,h as n,d as o}from"./p-Ct3Ixgvf.js";import{G as d}from"./p-KxRqlvSh.js";import{g as c}from"./p-B2zUuNXz.js";const l=t(class extends s{get selected(){return this.#e??this.defaultSelected}set selected(e){this.#e=void 0===e?void 0:!!e}constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.select=i(this,"select"),this._toggle=this._toggle.bind(this)}#e;connectedCallback(){const e=c();void 0!==e&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}_toggle(){const e=!this.selected;this._el.selected=e,this.select?.emit(e)}render(){return n(o,{key:"d95b05ee98862e9fa4ee50ae676fded8234de63d"},n("style",{key:"844be4d370a1d44e4c18b828ed2cfab3bd702cfd"},`:host {\n display: ${"full"===this.width?"block":"inline-block"}\n }`),n(d,{key:"510307e7bfce966e96422999f5309e0df3e62634",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:"38bff264ed88090ee4567650417ccb86805fca98"})))}_onlyHasLeadingIcon(){const e=this._el.childNodes;return 1===e.length&&e[0]instanceof window.Element&&"leadingIcon"===e[0].slot}get _el(){return this}},[257,"gids-toggle-button",{disabled:[516],appearance:[513],size:[513],width:[513],defaultSelected:[516,"default-selected"],selected:[6660]}]);function a(){"undefined"!=typeof customElements&&["gids-toggle-button"].forEach((t=>{"gids-toggle-button"===t&&(customElements.get(e(t))||customElements.define(e(t),l))}))}a();const h=l,r=a;export{h as GidsToggleButton,r as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "./types/components";
2
+
3
+ interface GidsTooltip extends Components.GidsTooltip, HTMLElement {}
4
+ export const GidsTooltip: {
5
+ prototype: GidsTooltip;
6
+ new (): GidsTooltip;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{t,p as i,H as o,h as e,F as s}from"./p-Ct3Ixgvf.js";import{G as a}from"./p-a3JfEYJp.js";import{g as l}from"./p-B2zUuNXz.js";import{G as r}from"./p-B8kX8Vqv.js";const n=i(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.showWithoutDelay=!1,this.lockToMainAxis=!1,this.handleShowEvent=()=>{this.floatingElementManager.showAfterDelay()},this.handleHideEvent=()=>{this.floatingElementManager.hideAfterDelay()}}connectedCallback(){const t=l();void 0!==t&&this._el.shadowRoot?.adoptedStyleSheets.push(t)}componentDidLoad(){this.floatingElementManager=new a(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:this.showWithoutDelay,lockToMainAxis:this.lockToMainAxis,floatingElementSelector:"#tooltip",arrowElementSelector:"#arrow",visibilityClass:"gids-tooltip--visible",elementType:r.TOOLTIP,getAnchorElementFromSlot:t=>{const i=t.querySelector("slot");return i?.assignedElements()[0]||null}}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const t=this.floatingElementManager.getAnchorElement();t&&(t.addEventListener("mouseenter",this.handleShowEvent),t.addEventListener("focus",this.handleShowEvent),t.addEventListener("mouseleave",this.handleHideEvent),t.addEventListener("blur",this.handleHideEvent))}placementChanged(t){this.floatingElementManager?.updateConfig({placement:t}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}showWithoutDelayChanged(t){this.floatingElementManager?.updateConfig({showWithoutDelay:t})}lockToMainAxisChanged(t){this.floatingElementManager?.updateConfig({lockToMainAxis:t})}htmlForChanged(t){this.floatingElementManager?.updateConfig({htmlFor:t}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const t=this.floatingElementManager?.getAnchorElement();t&&(t.removeEventListener("mouseenter",this.handleShowEvent),t.removeEventListener("focus",this.handleShowEvent),t.removeEventListener("mouseleave",this.handleHideEvent),t.removeEventListener("blur",this.handleHideEvent))}render(){return e(s,{key:"f9e6c76e1f2b3faa2c2ed5b1f5c28c4b11878819"},e("slot",{key:"1c36da89ba7d6a20f0e5204d5c079dbc64226d56"}),e("span",{key:"ac4972259978f2e52fc15545a28dc2375ef370cd",id:"tooltip",part:"tooltip",role:"tooltip"},e("span",{key:"49a7b319f5f0a87befe6e5d355d846dae12a9644",id:"arrow"}),this.tooltipText))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],showWithoutDelay:[{showWithoutDelayChanged:0}],lockToMainAxis:[{lockToMainAxisChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-tooltip{--gidsTooltip-background:var(--gids-color-background-neutral-bold-default);--gidsTooltip-text-color:var(--gids-color-text-inverse);--gidsTooltip-padding:var(--gids-padding-vertical-edge-to-element-100) var(--gids-padding-horizontal-edge-to-element-200);--gidsTooltip-border-radius:var(--gids-border-radius-sm);--gidsTooltip-tip-border-radius:2px;--gidsTooltip-tip-size:12px;--gidsFloatingElement-background:var(--gidsTooltip-background);--gidsFloatingElement-tip-border-radius:var(--gidsTooltip-tip-border-radius)}[part=tooltip]{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);position:absolute;display:inline-block;hyphens:auto;background-color:var(--gidsTooltip-background);color:var(--gidsTooltip-text-color);padding:var(--gidsTooltip-padding);border-radius:var(--gidsTooltip-border-radius);z-index:1000;opacity:0;pointer-events:none}[part=tooltip].gids-tooltip--visible{pointer-events:initial;opacity:1}[part=tooltip] span#arrow{position:absolute;height:var(--gidsTooltip-tip-size);width:var(--gidsTooltip-tip-size)}"}},[257,"gids-tooltip",{htmlFor:[513,"for"],tooltipText:[513,"tooltip-text"],placement:[513],showWithoutDelay:[516,"show-without-delay"],lockToMainAxis:[4,"lock-to-main-axis"]},void 0,{placement:[{placementChanged:0}],showWithoutDelay:[{showWithoutDelayChanged:0}],lockToMainAxis:[{lockToMainAxisChanged:0}],htmlFor:[{htmlForChanged:0}]}]);function d(){"undefined"!=typeof customElements&&["gids-tooltip"].forEach((i=>{"gids-tooltip"===i&&(customElements.get(t(i))||customElements.define(t(i),n))}))}d();const h=n,p=d;export{h as GidsTooltip,p as defineCustomElement}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-ibikYq-w.js";export{g as getConstructedGidsStylesheet,r as refreshConstructedGidsStylesheet}from"./p-B2zUuNXz.js";import{setGidsAssetPaths as t}from"@ganpatiinfo/gids-web-shared";function e(s,e){t(s,e)}const o=s=>{e(s)},i=s=>{e(s)};export{o as setGidsAssetFilePaths,e as setGidsAssetPaths,i as setGidsDefaultAssetDirPath}
1
+ export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-Ct3Ixgvf.js";export{g as getConstructedGidsStylesheet,r as refreshConstructedGidsStylesheet}from"./p-B2zUuNXz.js";import{setGidsAssetPaths as e}from"@ganpatiinfo/gids-web-shared";export{G as GidsFloatingElementType}from"./p-B8kX8Vqv.js";function t(t,s){e(t,s)}const o=e=>{t(e)},n=e=>{t(e)},i=({children:e,classNameToBeValidated:t,childrenToBeValidated:s,currentComponentName:r})=>{if(null!=e){const o=Array.isArray(e)?e:[e];for(const e of o){if(!e||"object"!=typeof e||!("vtag"in e))throw Error(`HTML/JSX Render Error: Invalid child type passed to ${r}. Expected ${s}.`);{const o=e.vtag;if(o!==t&&o!==s)throw Error(`HTML/JSX Render Error: <${r}> only accepts <${s}> as direct children. Received element tag: "${"function"==typeof o?o.name:o}".`)}}}};export{o as setGidsAssetFilePaths,t as setGidsAssetPaths,n as setGidsDefaultAssetDirPath,i as testHtmlChildrenValidity}
@@ -0,0 +1 @@
1
+ import{t as s,p as e,H as a,h as i}from"./p-Ct3Ixgvf.js";import{g as d}from"./p-B2zUuNXz.js";import{GidsDotWebUtils as t}from"@ganpatiinfo/gids-web-shared";import{d as n}from"./p-BiPAgxAQ.js";const{getGidsDotClassNames:o}=t,h=e(class extends a{constructor(s){super(),!1!==s&&this.__registerHost(),this.appearance="subtle",this.size="xs",this.disabled=!1,this.activeClasses=""}handleExtraClassesAndSizeChange(s){this.activeClasses=o({size:this.size,appearance:this.appearance,disabled:this.disabled},s)}handleAppearanceChange(s){this.appearance=s}handleSizeChange(s){this.size=s}handleDisabledChange(s){this.disabled=s}connectedCallback(){const s=d();void 0!==s&&this._el.shadowRoot?.adoptedStyleSheets.push(s),this.activeClasses=o({size:this.size,appearance:this.appearance,disabled:this.disabled},this.extraClasses)}componentDidLoad(){this.activeClasses=o({size:this.size,appearance:this.appearance,disabled:this.disabled},this.extraClasses)}render(){return i("gids-icon",{key:"1bb15dd637ede00b3e465e3da72f412ef0d710f9",class:this.activeClasses,name:"new",alt:"",appearance:"filled"})}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesAndSizeChange:0}],appearance:[{handleExtraClassesAndSizeChange:0},{handleAppearanceChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleExtraClassesAndSizeChange:0},{handleDisabledChange:0}]}}static get style(){return".gids-dot{display:flex;--gidsDotIcon-height:var(--gids-size-040);--gidsIcon-height:var(--gidsDotIcon-height);--gidsDotIcon-color:var(--gids-color-icon-subtle);--gidsIcon-color:var(--gidsDotIcon-color)}.gids-dot--sm{--gidsDotIcon-height:var(--gids-size-060)}.gids-dot--md{--gidsDotIcon-height:var(--gids-size-080)}.gids-dot--lg{--gidsDotIcon-height:var(--gids-size-100)}.gids-dot--xl{--gidsDotIcon-height:var(--gids-size-120)}.gids-dot--2xl{--gidsDotIcon-height:var(--gids-size-160)}.gids-dot--3xl{--gidsDotIcon-height:var(--gids-size-200)}.gids-dot--subtle{--gidsDotIcon-color:var(--gids-color-icon-subtle)}.gids-dot--static-inverse{--gidsDotIcon-color:var(--gids-color-icon-inverse)}.gids-dot--disabled{--gidsDotIcon-color:var(--gids-color-icon-disabled)}"}},[0,"gids-dot",{extraClasses:[513,"extra-classes"],appearance:[513],size:[513],disabled:[516],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesAndSizeChange:0}],appearance:[{handleExtraClassesAndSizeChange:0},{handleAppearanceChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleExtraClassesAndSizeChange:0},{handleDisabledChange:0}]}]);function g(){"undefined"!=typeof customElements&&["gids-dot","gids-icon"].forEach((e=>{switch(e){case"gids-dot":customElements.get(s(e))||customElements.define(s(e),h);break;case"gids-icon":customElements.get(s(e))||n()}}))}g();export{h as G,g as d}
@@ -0,0 +1 @@
1
+ import{t as e,p as t,H as a,h as i}from"./p-Ct3Ixgvf.js";import{G as r}from"./p-BnL97lOW.js";import{GidsChartLegendItemWebUtils as s}from"@ganpatiinfo/gids-web-shared";const{getGidsChartLegendItemClassNames:n}=s,d=t(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.orientation="horizontal",this.seriesType="1"}handleOrientationChange(e){this.orientation=e}handleSeriesTypeChange(e){this.seriesType=e}render(){const e=n({seriesType:this.seriesType,orientation:this.orientation});return i("div",{key:"8878b090e147405a847be15581708ec707a806b1",class:e},i("div",{key:"8ac35d56d1e31cbc613490bec5e5d5a698c5aa7c",class:"vertical"===this.orientation?"gids-chart-legend-item__dot-wrapper-vertical":"gids-chart-legend-item__dot-wrapper-horizontal"},i(r,{key:"2edad86b9fd18809923775308e580f39688a7f47",name:"new",alt:"new_icon",appearance:"filled"})),i("span",{key:"db1611c5d945b5e470623d0ac1c93a3bfd24f1e7",class:"gids-chart-legend-item__label"},i("slot",{key:"e3ad93df0b136e4f80a214131caf77c01dac9049"})))}static get watchers(){return{orientation:[{handleOrientationChange:0}],seriesType:[{handleSeriesTypeChange:0}]}}static get style(){return".gids-chart-legend-item{display:flex;align-items:center;gap:var(--gids-gap-100);--gidsChartLegendItemIcon-color:var(--gids-color-icon-subtle);--gidsIcon-color:var(--gidsChartLegendItemIcon-color);--gidsIcon-height:var(--gids-size-080)}.gids-chart-legend-item--orientation-vertical{display:flex}.gids-chart-legend-item--series-2{--gidsChartLegendItemIcon-color:var(--gids-color-icon-warning)}.gids-chart-legend-item--series-3{--gidsChartLegendItemIcon-color:var(--gids-color-icon-danger)}.gids-chart-legend-item--series-4{--gidsChartLegendItemIcon-color:var(--gids-color-background-positive-bold-hovered)}.gids-chart-legend-item--series-5{--gidsChartLegendItemIcon-color:var(--gids-color-background-information-bold-default)}.gids-chart-legend-item--series-6{--gidsChartLegendItemIcon-color:rgb(238, 70, 188)}.gids-chart-legend-item__label{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);text-align:left;color:var(--gids-color-text-subtlest)}.gids-chart-legend-item__dot-wrapper-vertical{display:flex;padding-top:var(--gids-padding-vertical-edge-to-element-075)}.gids-chart-legend-item__dot-wrapper-horizontal{display:flex;align-items:center}"}},[260,"gids-chart-legend-item",{orientation:[1],seriesType:[1,"series-type"]},void 0,{orientation:[{handleOrientationChange:0}],seriesType:[{handleSeriesTypeChange:0}]}]);function l(){"undefined"!=typeof customElements&&["gids-chart-legend-item"].forEach((t=>{"gids-chart-legend-item"===t&&(customElements.get(e(t))||customElements.define(e(t),d))}))}l();export{d as G,l as d}
@@ -0,0 +1 @@
1
+ var o;!function(o){o.TOOLTIP="tooltip",o.POPOVER="popover"}(o||(o={}));export{o as G}
@@ -0,0 +1 @@
1
+ import{t,p as e,H as i,h as s}from"./p-Ct3Ixgvf.js";import{GidsDropdownPickerWebUtils as n}from"@ganpatiinfo/gids-web-shared";import{G as o}from"./p-KxRqlvSh.js";import{G as d}from"./p-BnL97lOW.js";const{getGidsDropdownPickerClassNames:a}=n,h=e(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.appearance="subtle",this.size="sm",this.idPicker="",this.expanded=!1,this.hasLeadingIcon=!1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.hasDocumentListeners=!1,this.handleDropdownPickerItemSelect=t=>{const{value:e,title:i,disabled:s,id:n}=t.detail;s||"string"!=typeof e||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:n,value:e,title:i,disabled:!1,originalEvent:t}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const e=t.target;if(!(e instanceof Element))return;const i=e.closest(".gids-dropdown-item");if(!i||!this.hostElement.contains(i))return;if(i.hasAttribute("disabled")||"true"===i.getAttribute("aria-disabled"))return;const s=i instanceof HTMLButtonElement?i.value:i.getAttribute("value")??"";if("string"!=typeof s||0===s.length)return;const n=i instanceof HTMLButtonElement?i.id:i.getAttribute("id")??"";"string"==typeof n&&0!==n.length&&this.applySelection({id:n,value:s,title:i.textContent?.trim()??"",disabled:!1,originalEvent:t})},this.handleTriggerToggle=t=>{this.isInteractive()&&this.setExpandedState(!this.expanded,t)},this.handleDropdownButtonClickToggle=t=>{t.defaultPrevented||(t.stopPropagation(),this.handleTriggerToggle(t))},this.handleOutSpaceClickOfDropdownButtonToggle=t=>{this.expanded&&(t.stopPropagation(),this.setExpandedState(!1))},this.handleDocumentPointerDown=t=>{2!==t.button&&this.expanded&&(("function"==typeof t.composedPath?t.composedPath():[]).includes(this.hostElement)||this.hostElement.contains(t.target)||this.setExpandedState(!1,t))},this.handleDocumentKeyDown=t=>{if(!this.expanded)return;const e=t.key;if("Escape"===e||"Esc"===e)return t.preventDefault(),void this.setExpandedState(!1,t);"Tab"===e&&this.setExpandedState(!1,t)},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=void 0,this.setExpandedState(!1)}}handleExpandedChange(t){t&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}connectedCallback(){this.initialValue=this.value,this.attachItemListener(),this.attachDocumentListeners(),this.attachFormListener()}disconnectedCallback(){this.detachItemListener(),this.detachDocumentListeners(),this.detachFormListener()}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconDropdownPicker"]')}getDropdownButtonControl(){return this.hostElement.querySelector(".gids-button")}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleDropdownPickerItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleDropdownPickerItemSelect),this.hasItemListener=!1)}applySelection(t){this.value=t.value,this.selectedItemTitle="string"==typeof t.title?t.title:void 0,this.clearActive(),this.setExpandedState(!1,this.coerceEvent(t.originalEvent)),this.onSelectionChange?.(t),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownPickerChange",{bubbles:!0,composed:!0,detail:t}))}clearActive(){this.getItemElements().forEach((t=>t.classList.remove("gids-dropdown-item--active")))}setExpandedState(t,e){const i=Boolean(t);i&&!this.isInteractive()||this.expanded!==i&&(this.expanded=i,i||(this.clearActive(),this.syncInputDisplayValue()),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownPickerToggle",{bubbles:!0,composed:!0,detail:{expanded:i,originalEvent:e}})))}syncInputDisplayValue(){const t=this.getDropdownButtonControl();t&&t.value!==(this.selectedItemTitle??"")&&(t.value=this.selectedItemTitle??"")}attachDocumentListeners(){this.hasDocumentListeners||"undefined"==typeof document||(document.addEventListener("pointerdown",this.handleDocumentPointerDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!0)}detachDocumentListeners(){this.hasDocumentListeners&&"undefined"!=typeof document&&(document.removeEventListener("pointerdown",this.handleDocumentPointerDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!1)}attachFormListener(){const t=this.hostElement.closest("form");this.patternForm!==t&&(this.patternForm&&this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=t??void 0,this.patternForm?.addEventListener("reset",this.handleFormReset))}detachFormListener(){this.patternForm&&(this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=void 0)}isInteractive(){return!this.disabled}coerceEvent(t){if("undefined"!=typeof Event&&null!==t)return t instanceof Event?t:void 0}render(){const t=this.expanded&&this.isInteractive(),e=a({expanded:t}),i="string"==typeof this.idPicker?this.idPicker:void 0,n=i?`${i}__menu`:void 0;return s("div",{key:"60aba19be894123a4fb11cf8d682c89c1e1dfc9c",class:e,onClick:this.handleOutSpaceClickOfDropdownButtonToggle},s(o,{key:"6e691f9fee63c676d7a66d42024a4688730f9503",role:"pickerbox","aria-expanded":t?"true":"false","aria-haspopup":"pickerlistbox","aria-controls":n??"",onClick:this.handleDropdownButtonClickToggle,disabled:this.disabled,value:this.selectedItemTitle??this.value??"",loading:this.loading,appearance:this.appearance,size:this.size},this.hasLeadingIcon?s("slot",{name:"leadingIconDropdownPicker",slot:"leadingIcon"}):s(d,{name:"chevron-down",size:this.size,appearance:"regular",alt:"",slot:"leadingIcon"})),s("div",{key:"b44514baae627324d71f1114c3ba18bc6b946b01",class:"gids-dropdown-picker__menu",id:n,role:"pickerbox",onClick:this.handleMenuClick},s("slot",{key:"1e3b9e592646a1bda41d2cf5bfc8556908c0499f"})))}get hostElement(){return this}static get watchers(){return{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}]}}static get style(){return".gids-dropdown-picker{position:relative}.gids-dropdown-picker__menu{position:absolute;inset-inline:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;align-self:stretch;min-width:var(--gids-width-2-xs);min-height:55px;max-height:15rem;overflow-x:hidden;overflow-y:auto;background-color:var(--gids-elevation-surface-overlay-default);box-shadow:var(--gids-elevation-shadow-overlay);border-radius:var(--gids-border-radius-lg)}.gids-dropdown-picker__menu>*{flex-shrink:0}.gids-dropdown-picker--expanded .gids-dropdown-picker__menu{display:flex}"}},[260,"gids-dropdown-picker",{appearance:[1],size:[1],idPicker:[1,"id-picker"],expanded:[1540],disabled:[516],loading:[516],value:[513],name:[1],onSelectionChange:[16],selectedItemTitle:[32],hasLeadingIcon:[32]},void 0,{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}]}]);function r(){"undefined"!=typeof customElements&&["gids-dropdown-picker"].forEach((e=>{"gids-dropdown-picker"===e&&(customElements.get(t(e))||customElements.define(t(e),h))}))}r();export{h as G,r as d}
@@ -0,0 +1 @@
1
+ import{t,p as e,H as n,h as a}from"./p-Ct3Ixgvf.js";import{GidsChartLegendWebUtils as i}from"@ganpatiinfo/gids-web-shared";const{getGidsChartLegendClassNames:s}=i,r=e(class extends n{constructor(t){super(),!1!==t&&this.__registerHost(),this.orientation="horizontal"}handleOrientationChange(t){this.orientation=t}render(){const t=s({orientation:this.orientation});return a("div",{key:"cf7740304d4b3616d7bc15d2a2009c537665bbc7",class:t},a("slot",{key:"940d3744a6ea0da0684ff2d16c9734e8d265b485"}))}static get watchers(){return{orientation:[{handleOrientationChange:0}]}}static get style(){return".gids-chart-legend{display:inline-flex;align-items:flex-start;gap:var(--gids-gap-150)}.gids-chart-legend--orientation-vertical{flex-direction:column;gap:var(--gids-gap-050)}"}},[260,"gids-chart-legend",{orientation:[1]},void 0,{orientation:[{handleOrientationChange:0}]}]);function d(){"undefined"!=typeof customElements&&["gids-chart-legend"].forEach((e=>{"gids-chart-legend"===e&&(customElements.get(t(e))||customElements.define(t(e),r))}))}d();export{r as G,d}