@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
@@ -1,23 +1,37 @@
1
- import { w as n, a as f, j as P, F as A, b as G } from "./p-ibikYq-w-BsGxk8ro.js";
2
- import { i as l, n as m } from "./p-B2zUuNXz-BLBgQDu7.js";
3
- import { s as a } from "./assets-Drv1fXkA.js";
4
- function t(s, e) {
5
- a(s, e);
1
+ import { j as y, a as A, O as u, F as G, b as P } from "./p-Ct3Ixgvf-CNP_PKwP.js";
2
+ import { i as E, n as x } from "./p-B2zUuNXz-BLBgQDu7.js";
3
+ import { o as $ } from "./p-B8kX8Vqv-trBz4jdS.js";
4
+ import { s as d } from "./assets-Drv1fXkA.js";
5
+ function i(e, r) {
6
+ d(e, r);
6
7
  }
7
- const r = (s) => {
8
- t(s);
9
- }, i = (s) => {
10
- t(s);
8
+ const c = (e) => {
9
+ i(e);
10
+ }, f = (e) => {
11
+ i(e);
12
+ }, h = ({ children: e, classNameToBeValidated: r, childrenToBeValidated: o, currentComponentName: a }) => {
13
+ if (e != null) {
14
+ const n = Array.isArray(e) ? e : [e];
15
+ for (const s of n) {
16
+ if (!s || typeof s != "object" || !("vtag" in s)) throw Error(`HTML/JSX Render Error: Invalid child type passed to ${a}. Expected ${o}.`);
17
+ {
18
+ const t = s.vtag;
19
+ if (t !== r && t !== o) throw Error(`HTML/JSX Render Error: <${a}> only accepts <${o}> as direct children. Received element tag: "${typeof t == "function" ? t.name : t}".`);
20
+ }
21
+ }
22
+ }
11
23
  };
12
24
  export {
13
- n as getAssetPath,
14
- l as getConstructedGidsStylesheet,
15
- m as refreshConstructedGidsStylesheet,
16
- f as render,
17
- P as setAssetPath,
18
- r as setGidsAssetFilePaths,
19
- t as setGidsAssetPaths,
20
- i as setGidsDefaultAssetDirPath,
21
- A as setNonce,
22
- G as setPlatformOptions
25
+ $ as GidsFloatingElementType,
26
+ y as getAssetPath,
27
+ E as getConstructedGidsStylesheet,
28
+ x as refreshConstructedGidsStylesheet,
29
+ A as render,
30
+ u as setAssetPath,
31
+ c as setGidsAssetFilePaths,
32
+ i as setGidsAssetPaths,
33
+ f as setGidsDefaultAssetDirPath,
34
+ G as setNonce,
35
+ P as setPlatformOptions,
36
+ h as testHtmlChildrenValidity
23
37
  };
@@ -0,0 +1,71 @@
1
+ import { P as i, _ as o, u as n, T as l } from "./p-Ct3Ixgvf-CNP_PKwP.js";
2
+ import { i as g } from "./p-B2zUuNXz-BLBgQDu7.js";
3
+ import { d as r } from "./p-BiPAgxAQ-BtMBQpJY.js";
4
+ import { c as h } from "./clsx-OuTLNxxd.js";
5
+ const c = ({ appearance: s, size: e, disabled: a }, d) => h("gids-dot", {
6
+ "gids-dot--disabled": a,
7
+ "gids-dot--subtle": s === "subtle" && !a,
8
+ "gids-dot--static-inverse": s === "static-inverse" && !a,
9
+ // sizes
10
+ // 'gids-dot--xs': size === 'xs', // default so no need
11
+ "gids-dot--sm": e === "sm",
12
+ "gids-dot--md": e === "md",
13
+ "gids-dot--lg": e === "lg",
14
+ "gids-dot--xl": e === "xl",
15
+ "gids-dot--2xl": e === "2xl",
16
+ "gids-dot--3xl": e === "3xl"
17
+ }, d), p = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18
+ __proto__: null,
19
+ getGidsDotClassNames: c
20
+ }, Symbol.toStringTag, { value: "Module" })), { getGidsDotClassNames: t } = p, C = o(class extends n {
21
+ constructor(s) {
22
+ super(), s !== !1 && this.__registerHost(), this.appearance = "subtle", this.size = "xs", this.disabled = !1, this.activeClasses = "";
23
+ }
24
+ handleExtraClassesAndSizeChange(s) {
25
+ this.activeClasses = t({ size: this.size, appearance: this.appearance, disabled: this.disabled }, s);
26
+ }
27
+ handleAppearanceChange(s) {
28
+ this.appearance = s;
29
+ }
30
+ handleSizeChange(s) {
31
+ this.size = s;
32
+ }
33
+ handleDisabledChange(s) {
34
+ this.disabled = s;
35
+ }
36
+ connectedCallback() {
37
+ const s = g();
38
+ s !== void 0 && this._el.shadowRoot?.adoptedStyleSheets.push(s), this.activeClasses = t({ size: this.size, appearance: this.appearance, disabled: this.disabled }, this.extraClasses);
39
+ }
40
+ componentDidLoad() {
41
+ this.activeClasses = t({ size: this.size, appearance: this.appearance, disabled: this.disabled }, this.extraClasses);
42
+ }
43
+ render() {
44
+ return l("gids-icon", { key: "1bb15dd637ede00b3e465e3da72f412ef0d710f9", class: this.activeClasses, name: "new", alt: "", appearance: "filled" });
45
+ }
46
+ get _el() {
47
+ return this;
48
+ }
49
+ static get watchers() {
50
+ return { extraClasses: [{ handleExtraClassesAndSizeChange: 0 }], appearance: [{ handleExtraClassesAndSizeChange: 0 }, { handleAppearanceChange: 0 }], size: [{ handleExtraClassesAndSizeChange: 0 }, { handleSizeChange: 0 }], disabled: [{ handleExtraClassesAndSizeChange: 0 }, { handleDisabledChange: 0 }] };
51
+ }
52
+ static get style() {
53
+ 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)}";
54
+ }
55
+ }, [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 }] }]);
56
+ function b() {
57
+ typeof customElements < "u" && ["gids-dot", "gids-icon"].forEach(((s) => {
58
+ switch (s) {
59
+ case "gids-dot":
60
+ customElements.get(i(s)) || customElements.define(i(s), C);
61
+ break;
62
+ case "gids-icon":
63
+ customElements.get(i(s)) || r();
64
+ }
65
+ }));
66
+ }
67
+ b();
68
+ export {
69
+ b as g,
70
+ C as h
71
+ };
@@ -0,0 +1,47 @@
1
+ import { P as i, _ as s, u as n, T as t } from "./p-Ct3Ixgvf-CNP_PKwP.js";
2
+ import { d } from "./p-BnL97lOW-BO0p4EdC.js";
3
+ import { c as l } from "./clsx-OuTLNxxd.js";
4
+ const o = ({ seriesType: e, orientation: a }, r) => l("gids-chart-legend-item", {
5
+ // 'gids-chart-legend-item--series-1': seriesType === '1', // by default
6
+ "gids-chart-legend-item--series-2": e === "2",
7
+ "gids-chart-legend-item--series-3": e === "3",
8
+ "gids-chart-legend-item--series-4": e === "4",
9
+ "gids-chart-legend-item--series-5": e === "5",
10
+ "gids-chart-legend-item--series-6": e === "6",
11
+ // 'gids-chart-legend-item--orientation-horizontal':
12
+ // orientation === 'horizontal', // not needed as by default
13
+ "gids-chart-legend-item--orientation-vertical": a === "vertical"
14
+ }, r), g = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15
+ __proto__: null,
16
+ getGidsChartLegendItemClassNames: o
17
+ }, Symbol.toStringTag, { value: "Module" })), { getGidsChartLegendItemClassNames: c } = g, h = s(class extends n {
18
+ constructor(e) {
19
+ super(), e !== !1 && this.__registerHost(), this.orientation = "horizontal", this.seriesType = "1";
20
+ }
21
+ handleOrientationChange(e) {
22
+ this.orientation = e;
23
+ }
24
+ handleSeriesTypeChange(e) {
25
+ this.seriesType = e;
26
+ }
27
+ render() {
28
+ const e = c({ seriesType: this.seriesType, orientation: this.orientation });
29
+ return t("div", { key: "8878b090e147405a847be15581708ec707a806b1", class: e }, t("div", { key: "8ac35d56d1e31cbc613490bec5e5d5a698c5aa7c", class: this.orientation === "vertical" ? "gids-chart-legend-item__dot-wrapper-vertical" : "gids-chart-legend-item__dot-wrapper-horizontal" }, t(d, { key: "2edad86b9fd18809923775308e580f39688a7f47", name: "new", alt: "new_icon", appearance: "filled" })), t("span", { key: "db1611c5d945b5e470623d0ac1c93a3bfd24f1e7", class: "gids-chart-legend-item__label" }, t("slot", { key: "e3ad93df0b136e4f80a214131caf77c01dac9049" })));
30
+ }
31
+ static get watchers() {
32
+ return { orientation: [{ handleOrientationChange: 0 }], seriesType: [{ handleSeriesTypeChange: 0 }] };
33
+ }
34
+ static get style() {
35
+ 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}";
36
+ }
37
+ }, [260, "gids-chart-legend-item", { orientation: [1], seriesType: [1, "series-type"] }, void 0, { orientation: [{ handleOrientationChange: 0 }], seriesType: [{ handleSeriesTypeChange: 0 }] }]);
38
+ function m() {
39
+ typeof customElements < "u" && ["gids-chart-legend-item"].forEach(((e) => {
40
+ e === "gids-chart-legend-item" && (customElements.get(i(e)) || customElements.define(i(e), h));
41
+ }));
42
+ }
43
+ m();
44
+ export {
45
+ h as d,
46
+ m as l
47
+ };
@@ -0,0 +1,7 @@
1
+ var p;
2
+ (function(o) {
3
+ o.TOOLTIP = "tooltip", o.POPOVER = "popover";
4
+ })(p || (p = {}));
5
+ export {
6
+ p as o
7
+ };
@@ -0,0 +1,133 @@
1
+ import { P as d, _ as r, u as l, T as s } from "./p-Ct3Ixgvf-CNP_PKwP.js";
2
+ import { o as h } from "./p-KxRqlvSh-JOFDmT0B.js";
3
+ import { d as c } from "./p-BnL97lOW-BO0p4EdC.js";
4
+ import { c as p } from "./clsx-OuTLNxxd.js";
5
+ const u = ({ expanded: e }, t) => p("gids-dropdown-picker", {
6
+ "gids-dropdown-picker--expanded": e
7
+ }, t), m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8
+ __proto__: null,
9
+ getGidsDropdownPickerClassNames: u
10
+ }, Symbol.toStringTag, { value: "Module" })), { getGidsDropdownPickerClassNames: g } = m, f = r(class extends l {
11
+ constructor(e) {
12
+ super(), e !== !1 && 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) => {
13
+ const { value: i, title: n, disabled: o, id: a } = t.detail;
14
+ o || typeof i != "string" || (this.suppressNextMenuClickSelection = !0, queueMicrotask((() => {
15
+ this.suppressNextMenuClickSelection = !1;
16
+ })), this.applySelection({ id: a, value: i, title: n, disabled: !1, originalEvent: t }));
17
+ }, this.handleMenuClick = (t) => {
18
+ if (this.suppressNextMenuClickSelection) return;
19
+ const i = t.target;
20
+ if (!(i instanceof Element)) return;
21
+ const n = i.closest(".gids-dropdown-item");
22
+ if (!n || !this.hostElement.contains(n) || n.hasAttribute("disabled") || n.getAttribute("aria-disabled") === "true") return;
23
+ const o = n instanceof HTMLButtonElement ? n.value : n.getAttribute("value") ?? "";
24
+ if (typeof o != "string" || o.length === 0) return;
25
+ const a = n instanceof HTMLButtonElement ? n.id : n.getAttribute("id") ?? "";
26
+ typeof a == "string" && a.length !== 0 && this.applySelection({ id: a, value: o, title: n.textContent?.trim() ?? "", disabled: !1, originalEvent: t });
27
+ }, this.handleTriggerToggle = (t) => {
28
+ this.isInteractive() && this.setExpandedState(!this.expanded, t);
29
+ }, this.handleDropdownButtonClickToggle = (t) => {
30
+ t.defaultPrevented || (t.stopPropagation(), this.handleTriggerToggle(t));
31
+ }, this.handleOutSpaceClickOfDropdownButtonToggle = (t) => {
32
+ this.expanded && (t.stopPropagation(), this.setExpandedState(!1));
33
+ }, this.handleDocumentPointerDown = (t) => {
34
+ t.button !== 2 && this.expanded && ((typeof t.composedPath == "function" ? t.composedPath() : []).includes(this.hostElement) || this.hostElement.contains(t.target) || this.setExpandedState(!1, t));
35
+ }, this.handleDocumentKeyDown = (t) => {
36
+ if (!this.expanded) return;
37
+ const i = t.key;
38
+ if (i === "Escape" || i === "Esc") return t.preventDefault(), void this.setExpandedState(!1, t);
39
+ i === "Tab" && this.setExpandedState(!1, t);
40
+ }, this.handleFormReset = () => {
41
+ this.value = this.initialValue, this.selectedItemTitle = void 0, this.setExpandedState(!1);
42
+ };
43
+ }
44
+ handleExpandedChange(e) {
45
+ e && !this.isInteractive() && (this.expanded = !1);
46
+ }
47
+ handleInteractivityChange() {
48
+ !this.isInteractive() && this.expanded && this.setExpandedState(!1);
49
+ }
50
+ connectedCallback() {
51
+ this.initialValue = this.value, this.attachItemListener(), this.attachDocumentListeners(), this.attachFormListener();
52
+ }
53
+ disconnectedCallback() {
54
+ this.detachItemListener(), this.detachDocumentListeners(), this.detachFormListener();
55
+ }
56
+ componentWillLoad() {
57
+ this.checkSlots();
58
+ }
59
+ componentWillUpdate() {
60
+ this.checkSlots();
61
+ }
62
+ checkSlots() {
63
+ this.hasLeadingIcon = !!this.hostElement.querySelector('[slot="leadingIconDropdownPicker"]');
64
+ }
65
+ getDropdownButtonControl() {
66
+ return this.hostElement.querySelector(".gids-button");
67
+ }
68
+ getItemElements() {
69
+ return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"));
70
+ }
71
+ attachItemListener() {
72
+ this.hasItemListener || (this.hostElement.addEventListener("onPressDropdownItem", this.handleDropdownPickerItemSelect), this.hasItemListener = !0);
73
+ }
74
+ detachItemListener() {
75
+ this.hasItemListener && (this.hostElement.removeEventListener("onPressDropdownItem", this.handleDropdownPickerItemSelect), this.hasItemListener = !1);
76
+ }
77
+ applySelection(e) {
78
+ this.value = e.value, this.selectedItemTitle = typeof e.title == "string" ? e.title : void 0, this.clearActive(), this.setExpandedState(!1, this.coerceEvent(e.originalEvent)), this.onSelectionChange?.(e), this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownPickerChange", { bubbles: !0, composed: !0, detail: e }));
79
+ }
80
+ clearActive() {
81
+ this.getItemElements().forEach(((e) => e.classList.remove("gids-dropdown-item--active")));
82
+ }
83
+ setExpandedState(e, t) {
84
+ const i = !!e;
85
+ 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: t } })));
86
+ }
87
+ syncInputDisplayValue() {
88
+ const e = this.getDropdownButtonControl();
89
+ e && e.value !== (this.selectedItemTitle ?? "") && (e.value = this.selectedItemTitle ?? "");
90
+ }
91
+ attachDocumentListeners() {
92
+ this.hasDocumentListeners || typeof document > "u" || (document.addEventListener("pointerdown", this.handleDocumentPointerDown), document.addEventListener("keydown", this.handleDocumentKeyDown), this.hasDocumentListeners = !0);
93
+ }
94
+ detachDocumentListeners() {
95
+ this.hasDocumentListeners && typeof document < "u" && (document.removeEventListener("pointerdown", this.handleDocumentPointerDown), document.removeEventListener("keydown", this.handleDocumentKeyDown), this.hasDocumentListeners = !1);
96
+ }
97
+ attachFormListener() {
98
+ const e = this.hostElement.closest("form");
99
+ this.patternForm !== e && (this.patternForm && this.patternForm.removeEventListener("reset", this.handleFormReset), this.patternForm = e ?? void 0, this.patternForm?.addEventListener("reset", this.handleFormReset));
100
+ }
101
+ detachFormListener() {
102
+ this.patternForm && (this.patternForm.removeEventListener("reset", this.handleFormReset), this.patternForm = void 0);
103
+ }
104
+ isInteractive() {
105
+ return !this.disabled;
106
+ }
107
+ coerceEvent(e) {
108
+ if (typeof Event < "u" && e !== null) return e instanceof Event ? e : void 0;
109
+ }
110
+ render() {
111
+ const e = this.expanded && this.isInteractive(), t = g({ expanded: e }), i = typeof this.idPicker == "string" ? this.idPicker : void 0, n = i ? `${i}__menu` : void 0;
112
+ return s("div", { key: "60aba19be894123a4fb11cf8d682c89c1e1dfc9c", class: t, onClick: this.handleOutSpaceClickOfDropdownButtonToggle }, s(h, { key: "6e691f9fee63c676d7a66d42024a4688730f9503", role: "pickerbox", "aria-expanded": e ? "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(c, { 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" })));
113
+ }
114
+ get hostElement() {
115
+ return this;
116
+ }
117
+ static get watchers() {
118
+ return { expanded: [{ handleExpandedChange: 0 }], disabled: [{ handleInteractivityChange: 0 }] };
119
+ }
120
+ static get style() {
121
+ 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}";
122
+ }
123
+ }, [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 }] }]);
124
+ function v() {
125
+ typeof customElements < "u" && ["gids-dropdown-picker"].forEach(((e) => {
126
+ e === "gids-dropdown-picker" && (customElements.get(d(e)) || customElements.define(d(e), f));
127
+ }));
128
+ }
129
+ v();
130
+ export {
131
+ f as h,
132
+ v as r
133
+ };
@@ -0,0 +1,37 @@
1
+ import { P as t, _ as a, u as r, T as n } from "./p-Ct3Ixgvf-CNP_PKwP.js";
2
+ import { c as s } from "./clsx-OuTLNxxd.js";
3
+ const o = ({ orientation: e }, i) => s("gids-chart-legend", {
4
+ // 'gids-chart-legend--orientation-horizontal':
5
+ // orientation === 'horizontal', // not needed as by default
6
+ "gids-chart-legend--orientation-vertical": e === "vertical"
7
+ }, i), d = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8
+ __proto__: null,
9
+ getGidsChartLegendClassNames: o
10
+ }, Symbol.toStringTag, { value: "Module" })), { getGidsChartLegendClassNames: c } = d, l = a(class extends r {
11
+ constructor(e) {
12
+ super(), e !== !1 && this.__registerHost(), this.orientation = "horizontal";
13
+ }
14
+ handleOrientationChange(e) {
15
+ this.orientation = e;
16
+ }
17
+ render() {
18
+ const e = c({ orientation: this.orientation });
19
+ return n("div", { key: "cf7740304d4b3616d7bc15d2a2009c537665bbc7", class: e }, n("slot", { key: "940d3744a6ea0da0684ff2d16c9734e8d265b485" }));
20
+ }
21
+ static get watchers() {
22
+ return { orientation: [{ handleOrientationChange: 0 }] };
23
+ }
24
+ static get style() {
25
+ 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)}";
26
+ }
27
+ }, [260, "gids-chart-legend", { orientation: [1] }, void 0, { orientation: [{ handleOrientationChange: 0 }] }]);
28
+ function g() {
29
+ typeof customElements < "u" && ["gids-chart-legend"].forEach(((e) => {
30
+ e === "gids-chart-legend" && (customElements.get(t(e)) || customElements.define(t(e), l));
31
+ }));
32
+ }
33
+ g();
34
+ export {
35
+ g as d,
36
+ l as r
37
+ };
@@ -0,0 +1,241 @@
1
+ import { P as r, _ as u, u as p, T as a } from "./p-Ct3Ixgvf-CNP_PKwP.js";
2
+ import { d as m } from "./p-BnL97lOW-BO0p4EdC.js";
3
+ import { r as g } from "./p-DfFqFdmS-DjI2pk-0.js";
4
+ import { c as l } from "./clsx-OuTLNxxd.js";
5
+ const v = ({ expanded: e }, t) => l("gids-dropdown", {
6
+ "gids-dropdown--expanded": e
7
+ }, t), f = ({ size: e }, t) => l("gids-chevron-button-control", {
8
+ "gids-chevron-button-control--small": e === "sm",
9
+ // 'gids-chevron-button-control--medium': size === 'md', // Default
10
+ "gids-chevron-button-control--large": e === "lg"
11
+ }, t), y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12
+ __proto__: null,
13
+ getGidsChevronButtonControlClassNames: f,
14
+ getGidsDropdownClassNames: v
15
+ }, Symbol.toStringTag, { value: "Module" })), { getGidsDropdownClassNames: I, getGidsChevronButtonControlClassNames: E } = y, d = "gids-dropdown-item--active", b = u(class extends p {
16
+ constructor(e) {
17
+ super(), e !== !1 && this.__registerHost(), this.appearance = "default", this.expanded = !1, this.filterValue = "", this.isFilterEditing = !1, this.hasLeadingIcon = !1, this.hasLeadingAccessory = !1, this.activeIndex = -1, this.hasItemListener = !1, this.suppressNextMenuClickSelection = !1, this.hasDocumentListeners = !1, this.hasPendingControlRevalidation = !1, this.handleDropdownItemSelect = (t) => {
18
+ const { value: i, title: n, disabled: s, id: o } = t.detail;
19
+ s || typeof i != "string" || (this.suppressNextMenuClickSelection = !0, queueMicrotask((() => {
20
+ this.suppressNextMenuClickSelection = !1;
21
+ })), this.applySelection({ id: o, value: i, title: n, disabled: !1, originalEvent: t }));
22
+ }, this.handleMenuClick = (t) => {
23
+ if (this.suppressNextMenuClickSelection) return;
24
+ const i = t.target;
25
+ if (!(i instanceof Element)) return;
26
+ const n = i.closest(".gids-dropdown-item");
27
+ if (!n || !this.hostElement.contains(n) || n.hasAttribute("disabled") || n.getAttribute("aria-disabled") === "true") return;
28
+ const s = n instanceof HTMLButtonElement ? n.value : n.getAttribute("value") ?? "";
29
+ if (typeof s != "string" || s.length === 0) return;
30
+ const o = n instanceof HTMLButtonElement ? n.id : n.getAttribute("id") ?? "";
31
+ typeof o == "string" && o.length !== 0 && this.applySelection({ id: o, value: s, title: n.textContent?.trim() ?? "", disabled: !1, originalEvent: t });
32
+ }, this.handleFilterInput = (t) => {
33
+ const i = t.target;
34
+ this.filterValue = i?.value ?? "", this.isFilterEditing = !0, this.clearActive(), this.expanded || this.setExpandedState(!0, t), this.applyFilter();
35
+ }, this.handleInputKeyDown = (t) => {
36
+ if (!this.isInteractive()) return;
37
+ const i = t.key, n = i === "ArrowDown";
38
+ if ((n || i === "ArrowUp") && !t.metaKey && !t.ctrlKey) return t.preventDefault(), this.expanded || this.setExpandedState(!0, t), void this.moveActive(n ? 1 : -1);
39
+ if (i === "Home" && this.expanded) return t.preventDefault(), void this.setActiveByIndex(0);
40
+ if (i === "End" && this.expanded) return t.preventDefault(), void this.setActiveByIndex(this.getVisibleEnabledItems().length - 1);
41
+ if (i === "Enter") {
42
+ if (!this.expanded) return t.preventDefault(), this.setExpandedState(!0, t), void this.setActiveByIndex(0);
43
+ this.selectActive() && t.preventDefault();
44
+ }
45
+ }, this.handleTriggerToggle = (t) => {
46
+ this.isInteractive() && this.setExpandedState(!this.expanded, t);
47
+ }, this.handleInputFocusAndBlur = (t) => {
48
+ this.hostElement.dispatchEvent(new FocusEvent(t.type, { relatedTarget: t.relatedTarget }));
49
+ }, this.handleInputClickToggle = (t) => {
50
+ t.defaultPrevented || this.handleTriggerToggle(t);
51
+ }, this.handleChevronClickToggle = (t) => {
52
+ t.defaultPrevented || (t.stopPropagation(), this.handleTriggerToggle(t));
53
+ }, this.handleDocumentPointerDown = (t) => {
54
+ t.button !== 2 && this.expanded && ((typeof t.composedPath == "function" ? t.composedPath() : []).includes(this.hostElement) || this.hostElement.contains(t.target) || this.setExpandedState(!1, t));
55
+ }, this.handleDocumentKeyDown = (t) => {
56
+ if (!this.expanded) return;
57
+ const i = t.key;
58
+ if (i === "Escape" || i === "Esc") return t.preventDefault(), void this.setExpandedState(!1, t);
59
+ i === "Tab" && this.setExpandedState(!1, t);
60
+ }, this.handleFormReset = () => {
61
+ this.value = this.initialValue, this.selectedItemTitle = void 0, this.isFilterEditing = !1, this.filterValue = "", this.setExpandedState(!1);
62
+ };
63
+ }
64
+ handleExpandedChange(e) {
65
+ e && !this.isInteractive() && (this.expanded = !1);
66
+ }
67
+ handleInteractivityChange() {
68
+ !this.isInteractive() && this.expanded && this.setExpandedState(!1);
69
+ }
70
+ connectedCallback() {
71
+ this.initialValue = this.value, this.attachItemListener(), this.attachDocumentListeners(), this.attachFormListener();
72
+ }
73
+ disconnectedCallback() {
74
+ this.detachItemListener(), this.detachDocumentListeners(), this.detachFormListener();
75
+ }
76
+ componentWillLoad() {
77
+ this.checkSlots();
78
+ }
79
+ componentWillUpdate() {
80
+ this.checkSlots();
81
+ }
82
+ checkSlots() {
83
+ this.hasLeadingIcon = !!this.hostElement.querySelector('[slot="leadingIconDropdown"]'), this.hasLeadingAccessory = !!this.hostElement.querySelector('[slot="leadingAccessoryDropdown"]');
84
+ }
85
+ getItemElements() {
86
+ return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"));
87
+ }
88
+ getVisibleEnabledItems() {
89
+ return this.getItemElements().filter(((e) => e.style.display !== "none" && !e.hasAttribute("disabled") && e.getAttribute("aria-disabled") !== "true"));
90
+ }
91
+ attachItemListener() {
92
+ this.hasItemListener || (this.hostElement.addEventListener("onPressDropdownItem", this.handleDropdownItemSelect), this.hasItemListener = !0);
93
+ }
94
+ detachItemListener() {
95
+ this.hasItemListener && (this.hostElement.removeEventListener("onPressDropdownItem", this.handleDropdownItemSelect), this.hasItemListener = !1);
96
+ }
97
+ applySelection(e) {
98
+ this.value = e.value, this.selectedItemTitle = typeof e.title == "string" ? e.title : void 0, this.isFilterEditing = !1, this.filterValue = "", this.clearActive(), this.emitNativeSelectionEvents(this.selectedItemTitle ?? ""), this.setExpandedState(!1, this.coerceEvent(e.originalEvent)), this.onSelectionChange?.(e), this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownChange", { bubbles: !0, composed: !0, detail: e }));
99
+ }
100
+ getInputControl() {
101
+ return this.hostElement.querySelector(".gids-input__control");
102
+ }
103
+ emitNativeSelectionEvents(e) {
104
+ const t = this.getInputControl();
105
+ t && (t.value = e, t.dispatchEvent(new Event("input", { bubbles: !0, composed: !0 })), t.dispatchEvent(new Event("change", { bubbles: !0, composed: !0 })));
106
+ }
107
+ clearActive() {
108
+ this.activeIndex = -1, this.getItemElements().forEach(((e) => e.classList.remove(d))), this.setActiveDescendant(void 0);
109
+ }
110
+ setActiveByIndex(e) {
111
+ const t = this.getVisibleEnabledItems();
112
+ if (this.getItemElements().forEach(((s) => s.classList.remove(d))), t.length === 0) return this.activeIndex = -1, void this.setActiveDescendant(void 0);
113
+ const i = Math.max(0, Math.min(e, t.length - 1)), n = t[i];
114
+ if (!n) return this.activeIndex = -1, void this.setActiveDescendant(void 0);
115
+ this.activeIndex = i, n.classList.add(d), n.scrollIntoView({ block: "nearest" }), this.setActiveDescendant(n.id || void 0);
116
+ }
117
+ moveActive(e) {
118
+ const t = this.getVisibleEnabledItems();
119
+ t.length !== 0 ? this.setActiveByIndex(this.activeIndex === -1 ? e > 0 ? 0 : t.length - 1 : (this.activeIndex + e + t.length) % t.length) : this.clearActive();
120
+ }
121
+ selectActive() {
122
+ const e = this.getVisibleEnabledItems();
123
+ if (e.length === 0) return !1;
124
+ const t = this.activeIndex >= 0 ? e[this.activeIndex] : e[0];
125
+ return !!t && (t.click(), this.getInputControl()?.focus(), !0);
126
+ }
127
+ applyFilter() {
128
+ const e = this.filterValue.trim().toLowerCase();
129
+ this.getItemElements().forEach(((t) => {
130
+ const i = (t.textContent ?? "").toLowerCase(), n = e.length === 0 || i.includes(e);
131
+ t.style.display = n ? "" : "none";
132
+ }));
133
+ }
134
+ setActiveDescendant(e) {
135
+ const t = this.getInputControl();
136
+ t && (e ? t.setAttribute("aria-activedescendant", e) : t.removeAttribute("aria-activedescendant"));
137
+ }
138
+ setExpandedState(e, t) {
139
+ const i = !!e;
140
+ i && !this.isInteractive() || this.expanded !== i && (this.expanded = i, i || (this.isFilterEditing = !1, this.filterValue = "", this.clearActive(), this.applyFilter(), this.syncInputDisplayValue()), this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownToggle", { bubbles: !0, composed: !0, detail: { expanded: i, originalEvent: t } })));
141
+ }
142
+ syncInputDisplayValue() {
143
+ const e = this.getInputControl();
144
+ e && e.value !== (this.selectedItemTitle ?? "") && (e.value = this.selectedItemTitle ?? "");
145
+ }
146
+ attachDocumentListeners() {
147
+ this.hasDocumentListeners || typeof document > "u" || (document.addEventListener("pointerdown", this.handleDocumentPointerDown), document.addEventListener("keydown", this.handleDocumentKeyDown), this.hasDocumentListeners = !0);
148
+ }
149
+ detachDocumentListeners() {
150
+ this.hasDocumentListeners && typeof document < "u" && (document.removeEventListener("pointerdown", this.handleDocumentPointerDown), document.removeEventListener("keydown", this.handleDocumentKeyDown), this.hasDocumentListeners = !1);
151
+ }
152
+ attachFormListener() {
153
+ const e = this.hostElement.closest("form");
154
+ this.patternForm !== e && (this.patternForm && this.patternForm.removeEventListener("reset", this.handleFormReset), this.patternForm = e ?? void 0, this.patternForm?.addEventListener("reset", this.handleFormReset));
155
+ }
156
+ detachFormListener() {
157
+ this.patternForm && (this.patternForm.removeEventListener("reset", this.handleFormReset), this.patternForm = void 0);
158
+ }
159
+ get form() {
160
+ return this.getInputControl()?.form ?? this.patternForm ?? null;
161
+ }
162
+ get validity() {
163
+ return this.getInputControl()?.validity ?? {};
164
+ }
165
+ get validationMessage() {
166
+ return this.getInputControl()?.validationMessage ?? "";
167
+ }
168
+ get willValidate() {
169
+ return this.getInputControl()?.willValidate ?? !1;
170
+ }
171
+ async checkValidity() {
172
+ return this.getInputControl()?.checkValidity() ?? !0;
173
+ }
174
+ async reportValidity() {
175
+ return this.getInputControl()?.reportValidity() ?? !0;
176
+ }
177
+ async setCustomValidity(e) {
178
+ return this.getInputControl()?.setCustomValidity(e);
179
+ }
180
+ isInteractive() {
181
+ return !(this.disabled || this.readOnly);
182
+ }
183
+ coerceEvent(e) {
184
+ if (typeof Event < "u" && e !== null) return e instanceof Event ? e : void 0;
185
+ }
186
+ scheduleControlRevalidation() {
187
+ if (this.hasPendingControlRevalidation) return;
188
+ this.hasPendingControlRevalidation = !0;
189
+ const e = () => {
190
+ this.hasPendingControlRevalidation = !1, this.checkValidity();
191
+ };
192
+ typeof requestAnimationFrame != "function" ? e() : requestAnimationFrame(e);
193
+ }
194
+ getEnhancedInputProps() {
195
+ const e = { ...this.inputProps ?? {} };
196
+ typeof e.autoComplete == "string" && e?.autoComplete?.trim?.()?.length !== 0 || (e.autoComplete = "off");
197
+ const t = e.onInput;
198
+ e.onInput = (s) => {
199
+ t?.(s), this.handleFilterInput(s);
200
+ };
201
+ const i = e.onBlur;
202
+ e.onBlur = (s) => {
203
+ i?.(s), this.scheduleControlRevalidation();
204
+ };
205
+ const n = e.onKeyDown;
206
+ return e.onKeyDown = (s) => {
207
+ n?.(s), s.defaultPrevented || this.handleInputKeyDown(s);
208
+ }, e;
209
+ }
210
+ render() {
211
+ const e = this.expanded && this.isInteractive(), t = I({ expanded: e }), i = this.getEnhancedInputProps(), n = typeof i.id == "string" ? i.id : void 0, s = n ? `${n}__menu` : void 0;
212
+ i.role = "combobox", i["aria-expanded"] = e ? "true" : "false", i["aria-haspopup"] = "listbox", i["aria-autocomplete"] = "list", s && (i["aria-controls"] = s);
213
+ const o = this.isFilterEditing ? this.filterValue : this.selectedItemTitle ?? this.value ?? "", h = e ? "true" : "false", c = a("button", { key: "94ed9ae19e3a6e1e9e02c6e3fab0c70a5193667b", class: E({ size: "lg" }), slot: "trailingAccessory", type: "button", onClick: this.handleChevronClickToggle, "aria-label": e ? "Collapse options" : "Expanded options", "aria-expanded": h, "aria-haspopup": "listbox", "aria-controls": s, disabled: this.disabled || this.readOnly, tabIndex: -1 }, a("span", { key: "f6e79003a75a80623564c81c83158640c407c8f4", class: "gids-button__content" }, a(m, { key: "85c0caf667a50f629375652ead7c1e8d86bc96ed", name: "chevron-vertical", alt: "" })));
214
+ return a("div", { key: "d02c0b39097b0307ca22a7e86bccfb37083d447f", class: t }, a("gids-input", { key: "16475e8ebce7a5909f6c4c102ef781eed657a6e0", appearance: this.appearance, loading: this.loading, disabled: this.disabled, readOnly: this.readOnly, required: this.required, value: o, name: this.name, inputProps: i, onClick: this.handleInputClickToggle, onFocus: this.handleInputFocusAndBlur, onBlur: this.handleInputFocusAndBlur }, this.hasLeadingIcon && a("slot", { key: "fbdf6ef356a9d1ade43eecfa3bb92ef0fe538f1c", name: "leadingIconDropdown", slot: "leadingIcon" }), this.hasLeadingAccessory && a("slot", { key: "f9e0fc631f4a3a4758d9b446312ae9d0ff9bcd01", name: "leadingAccessoryDropdown", slot: "leadingAccessory" }), c), a("div", { key: "ae2974b210c297fa1e1160ad93d22b45297a1613", class: "gids-dropdown__menu", id: s, role: "listbox", onClick: this.handleMenuClick }, a("slot", { key: "d7bd637af09568522549e2551173efd90fa40e4b" })));
215
+ }
216
+ get hostElement() {
217
+ return this;
218
+ }
219
+ static get watchers() {
220
+ return { expanded: [{ handleExpandedChange: 0 }], disabled: [{ handleInteractivityChange: 0 }], readOnly: [{ handleInteractivityChange: 0 }] };
221
+ }
222
+ static get style() {
223
+ return '@charset "UTF-8";.gids-dropdown{position:relative}.gids-dropdown__menu{position:absolute;inset-inline:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;min-height:55px;max-height:20rem;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__menu>*{flex-shrink:0}.gids-dropdown--expanded .gids-dropdown__menu{display:flex}.gids-dropdown__leading-icon{display:flex;align-items:center}.gids-dropdown__accessory{display:flex;align-items:center}';
224
+ }
225
+ }, [260, "gids-dropdown", { appearance: [1], expanded: [1540], inputProps: [16], disabled: [516], readOnly: [516, "read-only"], loading: [516], value: [513], name: [1], onSelectionChange: [16], required: [4], filterValue: [32], isFilterEditing: [32], selectedItemTitle: [32], hasLeadingIcon: [32], hasLeadingAccessory: [32], checkValidity: [64], reportValidity: [64], setCustomValidity: [64] }, void 0, { expanded: [{ handleExpandedChange: 0 }], disabled: [{ handleInteractivityChange: 0 }], readOnly: [{ handleInteractivityChange: 0 }] }]);
226
+ function x() {
227
+ typeof customElements < "u" && ["gids-dropdown", "gids-input"].forEach(((e) => {
228
+ switch (e) {
229
+ case "gids-dropdown":
230
+ customElements.get(r(e)) || customElements.define(r(e), b);
231
+ break;
232
+ case "gids-input":
233
+ customElements.get(r(e)) || g();
234
+ }
235
+ }));
236
+ }
237
+ x();
238
+ export {
239
+ b as c,
240
+ x as l
241
+ };
@@ -0,0 +1,31 @@
1
+ import { P as e, _ as t, u as s, T as o } from "./p-Ct3Ixgvf-CNP_PKwP.js";
2
+ import { i as d } from "./p-B2zUuNXz-BLBgQDu7.js";
3
+ import { d as a } from "./p-BnL97lOW-BO0p4EdC.js";
4
+ const c = t(class extends s {
5
+ constructor(i) {
6
+ super(), i !== !1 && this.__registerHost(), this.__attachShadow();
7
+ }
8
+ connectedCallback() {
9
+ const i = d();
10
+ i !== void 0 && this._el.shadowRoot?.adoptedStyleSheets.push(i);
11
+ }
12
+ render() {
13
+ return o(a, { key: "7c74510543b6eae79c31fbf55124ad4e37f64c63", name: this.name, size: this.size, appearance: this.appearance, alt: this.alt, titleId: this.titleId });
14
+ }
15
+ get _el() {
16
+ return this;
17
+ }
18
+ static get style() {
19
+ return ".gids-icon{color:var(--gidsIcon-color, var(--gids-color-icon-default));fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%);flex-shrink:0}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}";
20
+ }
21
+ }, [1, "gids-icon", { name: [1], size: [1], appearance: [1], alt: [1], titleId: [1, "title-id"] }]);
22
+ function n() {
23
+ typeof customElements < "u" && ["gids-icon"].forEach(((i) => {
24
+ i === "gids-icon" && (customElements.get(e(i)) || customElements.define(e(i), c));
25
+ }));
26
+ }
27
+ n();
28
+ export {
29
+ n as d,
30
+ c as n
31
+ };