@ganpatiinfo/gids-core-web 9.0.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 (216) hide show
  1. package/dist/css/index.css +1445 -1
  2. package/dist/css/index.css.map +1 -1
  3. package/dist/gids-activity-gauge.d.ts +11 -0
  4. package/dist/gids-activity-gauge.js +1 -0
  5. package/dist/gids-bar-chart.d.ts +11 -0
  6. package/dist/gids-bar-chart.js +1 -0
  7. package/dist/gids-calendar-header-panel.d.ts +11 -0
  8. package/dist/gids-calendar-header-panel.js +1 -0
  9. package/dist/gids-calendar-month-list.d.ts +11 -0
  10. package/dist/gids-calendar-month-list.js +1 -0
  11. package/dist/gids-calendar-year-list.d.ts +11 -0
  12. package/dist/gids-calendar-year-list.js +1 -0
  13. package/dist/gids-calendar.d.ts +11 -0
  14. package/dist/gids-calendar.js +1 -0
  15. package/dist/gids-chart-legend-item.d.ts +11 -0
  16. package/dist/gids-chart-legend-item.js +1 -0
  17. package/dist/gids-chart-legend.d.ts +11 -0
  18. package/dist/gids-chart-legend.js +1 -0
  19. package/dist/gids-chart.d.ts +11 -0
  20. package/dist/gids-chart.js +1 -0
  21. package/dist/gids-chevron-button.d.ts +11 -0
  22. package/dist/gids-chevron-button.js +1 -0
  23. package/dist/gids-dot.d.ts +11 -0
  24. package/dist/gids-dot.js +1 -0
  25. package/dist/gids-dropdown-field.d.ts +11 -0
  26. package/dist/gids-dropdown-field.js +1 -0
  27. package/dist/gids-dropdown-picker.d.ts +11 -0
  28. package/dist/gids-dropdown-picker.js +1 -0
  29. package/dist/gids-dropdown.d.ts +11 -0
  30. package/dist/gids-dropdown.js +1 -0
  31. package/dist/gids-field.d.ts +1 -1
  32. package/dist/gids-field.js +1 -1
  33. package/dist/gids-icon.d.ts +1 -1
  34. package/dist/gids-icon.js +1 -1
  35. package/dist/gids-input.d.ts +1 -1
  36. package/dist/gids-input.js +1 -1
  37. package/dist/gids-level-gauge.d.ts +11 -0
  38. package/dist/gids-level-gauge.js +1 -0
  39. package/dist/gids-line-chart.d.ts +11 -0
  40. package/dist/gids-line-chart.js +1 -0
  41. package/dist/gids-notification.d.ts +1 -1
  42. package/dist/gids-notification.js +1 -1
  43. package/dist/gids-overflow-container.d.ts +1 -1
  44. package/dist/gids-overflow-container.js +1 -1
  45. package/dist/gids-overlay-provider.d.ts +1 -1
  46. package/dist/gids-overlay-provider.js +1 -1
  47. package/dist/gids-password-field.d.ts +1 -1
  48. package/dist/gids-password-field.js +1 -1
  49. package/dist/gids-pie-chart.d.ts +11 -0
  50. package/dist/gids-pie-chart.js +1 -0
  51. package/dist/gids-popover.d.ts +1 -1
  52. package/dist/gids-popover.js +1 -1
  53. package/dist/gids-progress-circle.d.ts +11 -0
  54. package/dist/gids-progress-circle.js +1 -0
  55. package/dist/gids-scrim.d.ts +1 -1
  56. package/dist/gids-scrim.js +1 -1
  57. package/dist/gids-snackbar.d.ts +1 -1
  58. package/dist/gids-snackbar.js +1 -1
  59. package/dist/gids-text-field.d.ts +1 -1
  60. package/dist/gids-text-field.js +1 -1
  61. package/dist/gids-toggle-button.d.ts +1 -1
  62. package/dist/gids-toggle-button.js +1 -1
  63. package/dist/gids-tooltip.d.ts +1 -1
  64. package/dist/gids-tooltip.js +1 -1
  65. package/dist/index.js +1 -1
  66. package/dist/p-9_mrQ7ac.js +1 -0
  67. package/dist/p-B81J5HCC.js +1 -0
  68. package/dist/p-BFHWXEeg.js +1 -0
  69. package/dist/p-B_HaXpJZ.js +1 -0
  70. package/dist/p-BaO-kEWS.js +1 -0
  71. package/dist/p-BiPAgxAQ.js +1 -0
  72. package/dist/p-Bmb-HiXg.js +1 -0
  73. package/dist/{p-veoOgDXg.js → p-BnL97lOW.js} +1 -1
  74. package/dist/{p-iCAclJND.js → p-BvYnawkJ.js} +1 -1
  75. package/dist/p-CIP0xyhD.js +1 -0
  76. package/dist/p-CJzporPT.js +1 -0
  77. package/dist/p-CPSHPtGE.js +1 -0
  78. package/dist/p-CRngHsR7.js +1 -0
  79. package/dist/p-Ct3Ixgvf.js +1 -0
  80. package/dist/p-D93TNeOt.js +1 -0
  81. package/dist/p-DKsrt7dx.js +1 -0
  82. package/dist/p-DZWWuJac.js +1 -0
  83. package/dist/p-D_wcwB7E.js +1 -0
  84. package/dist/p-Dehss-X0.js +1 -0
  85. package/dist/{p-DvoHLz_5.js → p-DfFqFdmS.js} +1 -1
  86. package/dist/p-KxRqlvSh.js +1 -0
  87. package/dist/p-MgTlrSP_.js +1 -0
  88. package/dist/p-h6alWGT8.js +1 -0
  89. package/dist/p-quZYWCxU.js +1 -0
  90. package/dist/p-tyIgTtUC.js +1 -0
  91. package/dist/p-uqSjmNkw.js +1 -0
  92. package/dist/types/components/html/GidsCalendarCell/GidsCalendarCell.d.ts +7 -0
  93. package/dist/types/components/html/GidsCalendarDayCell/GidsCalendarDayCell.d.ts +4 -0
  94. package/dist/types/components/html/GidsDropdownItem/GidsDropdownItem.d.ts +1 -1
  95. package/dist/types/components/html/GidsDropdownMenu/GidsDropdownMenu.d.ts +1 -1
  96. package/dist/types/components/html/GidsDropdownMenuGroup/GidsDropdownMenuGroup.d.ts +1 -1
  97. package/dist/types/components/html/GidsListItem/GidsListItem.d.ts +2 -2
  98. package/dist/types/components/html/GidsPageTitle/GidsPageTitle.d.ts +4 -0
  99. package/dist/types/components/webComponents/GidsActivityGauge/GidsActivityGauge.d.ts +23 -0
  100. package/dist/types/components/webComponents/GidsBarChart/GidsBarChart.d.ts +27 -0
  101. package/dist/types/components/webComponents/GidsCalendar/GidsCalendar.d.ts +34 -0
  102. package/dist/types/components/webComponents/GidsCalendarHeaderPanel/GidsCalendarHeaderPanel.d.ts +67 -0
  103. package/dist/types/components/webComponents/GidsCalendarMonthList/GidsCalendarMonthList.d.ts +26 -0
  104. package/dist/types/components/webComponents/GidsCalendarYearList/GidsCalendarYearList.d.ts +31 -0
  105. package/dist/types/components/webComponents/GidsChart/GidsChart.d.ts +19 -0
  106. package/dist/types/components/webComponents/GidsChartLegend/GidsChartLegend.d.ts +7 -0
  107. package/dist/types/components/webComponents/GidsChartLegendItem/GidsChartLegendItem.d.ts +9 -0
  108. package/dist/types/components/webComponents/GidsChevronButton/GidsChevronButton.d.ts +21 -0
  109. package/dist/types/components/webComponents/GidsDot/GidsDot.d.ts +17 -0
  110. package/dist/types/components/webComponents/GidsDropdown/GidsDropdown.d.ts +78 -0
  111. package/dist/types/components/webComponents/GidsDropdownField/GidsDropdownField.d.ts +37 -0
  112. package/dist/types/components/webComponents/GidsDropdownPicker/GidsDropdownPicker.d.ts +52 -0
  113. package/dist/types/components/webComponents/GidsLevelGauge/GidsLevelGauge.d.ts +22 -0
  114. package/dist/types/components/webComponents/GidsLineChart/GidsLineChart.d.ts +27 -0
  115. package/dist/types/components/webComponents/GidsPieChart/GidsPieChart.d.ts +23 -0
  116. package/dist/types/components/webComponents/GidsProgressCircle/GidsProgressCircle.d.ts +24 -0
  117. package/dist/types/components.d.ts +1352 -71
  118. package/dist/types/utils/childrenValidityUtils.d.ts +1 -1
  119. package/dist-bundled/es/gids-activity-gauge.js +6 -0
  120. package/dist-bundled/es/gids-bar-chart.js +6 -0
  121. package/dist-bundled/es/gids-calendar-header-panel.js +6 -0
  122. package/dist-bundled/es/gids-calendar-month-list.js +6 -0
  123. package/dist-bundled/es/gids-calendar-year-list.js +6 -0
  124. package/dist-bundled/es/gids-calendar.js +153 -0
  125. package/dist-bundled/es/gids-chart-legend-item.js +6 -0
  126. package/dist-bundled/es/gids-chart-legend.js +6 -0
  127. package/dist-bundled/es/gids-chart.js +108 -0
  128. package/dist-bundled/es/gids-chevron-button.js +56 -0
  129. package/dist-bundled/es/gids-dot.js +6 -0
  130. package/dist-bundled/es/gids-dropdown-field.js +88 -0
  131. package/dist-bundled/es/gids-dropdown-picker.js +6 -0
  132. package/dist-bundled/es/gids-dropdown.js +6 -0
  133. package/dist-bundled/es/gids-field.js +1 -1
  134. package/dist-bundled/es/gids-icon.js +4 -30
  135. package/dist-bundled/es/gids-input.js +4 -4
  136. package/dist-bundled/es/gids-level-gauge.js +6 -0
  137. package/dist-bundled/es/gids-line-chart.js +6 -0
  138. package/dist-bundled/es/gids-notification.js +1 -1
  139. package/dist-bundled/es/gids-overflow-container.js +6 -6
  140. package/dist-bundled/es/gids-overlay-provider.js +17 -17
  141. package/dist-bundled/es/gids-password-field.js +29 -28
  142. package/dist-bundled/es/gids-pie-chart.js +6 -0
  143. package/dist-bundled/es/gids-popover.js +7 -7
  144. package/dist-bundled/es/gids-progress-circle.js +6 -0
  145. package/dist-bundled/es/gids-scrim.js +8 -8
  146. package/dist-bundled/es/gids-snackbar.js +1 -1
  147. package/dist-bundled/es/gids-text-field.js +16 -15
  148. package/dist-bundled/es/gids-toggle-button.js +8 -8
  149. package/dist-bundled/es/gids-tooltip.js +5 -5
  150. package/dist-bundled/es/index.js +1 -1
  151. package/dist-bundled/es/p-9_mrQ7ac-If6e6cvJ.js +71 -0
  152. package/dist-bundled/es/p-B81J5HCC-Bkt2yXKi.js +47 -0
  153. package/dist-bundled/es/p-BFHWXEeg-ByjSjz8i.js +133 -0
  154. package/dist-bundled/es/p-B_HaXpJZ-a2SDgQ0E.js +37 -0
  155. package/dist-bundled/es/p-BaO-kEWS-ZITkeP-j.js +241 -0
  156. package/dist-bundled/es/p-BiPAgxAQ-BtMBQpJY.js +31 -0
  157. package/dist-bundled/es/p-Bmb-HiXg-MyHWdhpw.js +80 -0
  158. package/dist-bundled/es/{p-veoOgDXg-fRinub-C.js → p-BnL97lOW-BO0p4EdC.js} +9 -9
  159. package/dist-bundled/es/{p-iCAclJND-Bmsvd-W1.js → p-BvYnawkJ-DohV9UNG.js} +3 -3
  160. package/dist-bundled/es/p-CIP0xyhD-D6y5soLj.js +180 -0
  161. package/dist-bundled/es/p-CJzporPT-I_OdjJsQ.js +92 -0
  162. package/dist-bundled/es/p-CPSHPtGE-C7baJgXR.js +115 -0
  163. package/dist-bundled/es/p-CRngHsR7-DL9wz3Z3.js +25 -0
  164. package/dist-bundled/es/p-Ct3Ixgvf-CNP_PKwP.js +646 -0
  165. package/dist-bundled/es/p-D93TNeOt-Vvshbux8.js +88 -0
  166. package/dist-bundled/es/{p-DybsMR13-DpmsG3Q1.js → p-DKsrt7dx-ImYLc4xz.js} +1 -1
  167. package/dist-bundled/es/p-DZWWuJac-DNQvnHAr.js +15 -0
  168. package/dist-bundled/es/p-D_wcwB7E-d3jYxfod.js +20 -0
  169. package/dist-bundled/es/p-Dehss-X0-Di5vMgvd.js +29 -0
  170. package/dist-bundled/es/{p-DvoHLz_5-C5EvA91N.js → p-DfFqFdmS-DjI2pk-0.js} +6 -6
  171. package/dist-bundled/es/{p-CFw4_-5A-Dzvju3VE.js → p-KxRqlvSh-JOFDmT0B.js} +5 -5
  172. package/dist-bundled/es/p-MgTlrSP_-DifRVv94.js +70 -0
  173. package/dist-bundled/es/p-h6alWGT8-CSY2g3c8.js +67 -0
  174. package/dist-bundled/es/p-quZYWCxU-CPyWW0nv.js +56 -0
  175. package/dist-bundled/es/p-tyIgTtUC-C8jR4A5G.js +71 -0
  176. package/dist-bundled/es/p-uqSjmNkw-Cz2T86sC.js +55 -0
  177. package/dist-bundled/umd/gids-activity-gauge.umd.js +5 -0
  178. package/dist-bundled/umd/gids-bar-chart.umd.js +13 -0
  179. package/dist-bundled/umd/gids-calendar-header-panel.umd.js +5 -0
  180. package/dist-bundled/umd/gids-calendar-month-list.umd.js +5 -0
  181. package/dist-bundled/umd/gids-calendar-year-list.umd.js +5 -0
  182. package/dist-bundled/umd/gids-calendar.umd.js +5 -0
  183. package/dist-bundled/umd/gids-chart-legend-item.umd.js +5 -0
  184. package/dist-bundled/umd/gids-chart-legend.umd.js +5 -0
  185. package/dist-bundled/umd/gids-chart.umd.js +13 -0
  186. package/dist-bundled/umd/gids-chevron-button.umd.js +5 -0
  187. package/dist-bundled/umd/gids-dot.umd.js +5 -0
  188. package/dist-bundled/umd/gids-dropdown-field.umd.js +5 -0
  189. package/dist-bundled/umd/gids-dropdown-picker.umd.js +5 -0
  190. package/dist-bundled/umd/gids-dropdown.umd.js +5 -0
  191. package/dist-bundled/umd/gids-field.umd.js +2 -2
  192. package/dist-bundled/umd/gids-icon.umd.js +2 -2
  193. package/dist-bundled/umd/gids-input.umd.js +2 -2
  194. package/dist-bundled/umd/gids-level-gauge.umd.js +5 -0
  195. package/dist-bundled/umd/gids-line-chart.umd.js +5 -0
  196. package/dist-bundled/umd/gids-notification.umd.js +2 -2
  197. package/dist-bundled/umd/gids-overflow-container.umd.js +2 -2
  198. package/dist-bundled/umd/gids-overlay-provider.umd.js +2 -2
  199. package/dist-bundled/umd/gids-password-field.umd.js +2 -2
  200. package/dist-bundled/umd/gids-pie-chart.umd.js +5 -0
  201. package/dist-bundled/umd/gids-popover.umd.js +2 -2
  202. package/dist-bundled/umd/gids-progress-circle.umd.js +5 -0
  203. package/dist-bundled/umd/gids-scrim.umd.js +2 -2
  204. package/dist-bundled/umd/gids-snackbar.umd.js +2 -2
  205. package/dist-bundled/umd/gids-text-field.umd.js +2 -2
  206. package/dist-bundled/umd/gids-toggle-button.umd.js +3 -3
  207. package/dist-bundled/umd/gids-tooltip.umd.js +2 -2
  208. package/dist-bundled/umd/index.umd.js +2 -2
  209. package/dist-bundled/umd-complete/gids-core-web.umd.js +11 -3
  210. package/package.json +148 -4
  211. package/dist/p-CFw4_-5A.js +0 -1
  212. package/dist/p-DijVkS9b.js +0 -1
  213. package/dist/p-DybsMR13.js +0 -1
  214. package/dist/p-ibikYq-w.js +0 -1
  215. package/dist-bundled/es/p-DijVkS9b-CeV1i4T-.js +0 -35
  216. package/dist-bundled/es/p-ibikYq-w-BsGxk8ro.js +0 -635
@@ -0,0 +1,88 @@
1
+ import { P as d, _ as f, u as v, T as e } from "./p-Ct3Ixgvf-CNP_PKwP.js";
2
+ import { r as u } from "./p-Dehss-X0-Di5vMgvd.js";
3
+ import { d as w } from "./p-B_HaXpJZ-a2SDgQ0E.js";
4
+ import { l as k } from "./p-B81J5HCC-Bkt2yXKi.js";
5
+ import { c as z } from "./clsx-OuTLNxxd.js";
6
+ const A = ({ breakpoint: a }, s) => z("gids-line-chart", {
7
+ "gids-line-chart--breakpoint-mobile": a === "mobile"
8
+ }, s), L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9
+ __proto__: null,
10
+ getGidsLineChartClassNames: A
11
+ }, Symbol.toStringTag, { value: "Module" })), { getGidsLineChartClassNames: C } = L, D = f(class extends v {
12
+ constructor(a) {
13
+ super(), a !== !1 && this.__registerHost(), this.breakpoint = "desktop", this.legend = "none", this.chartData = [], this.yAxisVisible = !1, this.dataPoints = [], this.chartLoaderSize = "lg", this.chartLoading = !1, this.width = 0, this.height = 0;
14
+ }
15
+ chartDataChanged() {
16
+ this.updateDimensions();
17
+ }
18
+ dataPointsChanged(a) {
19
+ this.dataPoints = a;
20
+ }
21
+ legendChanged(a) {
22
+ this.legend = a;
23
+ }
24
+ yAxisVisibilityChanged(a) {
25
+ this.yAxisVisible = a;
26
+ }
27
+ componentDidLoad() {
28
+ this.updateDimensions(), this.resizeObserver = new ResizeObserver((() => this.updateDimensions())), this.hostElement.parentElement && this.resizeObserver.observe(this.hostElement.parentElement);
29
+ }
30
+ disconnectedCallback() {
31
+ this.resizeObserver && this.resizeObserver.disconnect();
32
+ }
33
+ updateDimensions() {
34
+ const a = this.hostElement.getBoundingClientRect();
35
+ this.width = a.width, this.height = a.height > 0 ? a.height : 300;
36
+ }
37
+ render() {
38
+ if (this.chartLoading) return e("div", { class: "gids-line-chart__no-data" }, e(u, { label: this.chartLoadingTitle, supportingText: this.chartLoadingSupportingText, size: this?.chartLoaderSize ?? "lg" }));
39
+ const a = this.chartData.flatMap(((t) => Array.isArray(t?.data) ? t.data.map(((i) => i.value)) : [])), s = a.length > 0 ? Math.max(...a) : 10, l = Math.pow(10, Math.floor(Math.log10(s || 1)));
40
+ let o = l;
41
+ s / l <= 2 ? o = l / 5 : s / l <= 5 && (o = l / 2);
42
+ const c = Math.ceil(s / o) * o;
43
+ let n = [];
44
+ if (Array.isArray(this.dataPoints) && this.dataPoints.length > 0) n = [...this.dataPoints].sort(((t, i) => t - i));
45
+ else {
46
+ const i = c / 4;
47
+ for (let r = 0; r < 5; r++) n.push(Math.round(0 + r * i));
48
+ }
49
+ const g = Math.max(...n, c) - 0 || 1, p = this?.chartData?.[0]?.data?.map(((t) => t.label)) ?? [], b = p.length, y = C({ breakpoint: this.breakpoint });
50
+ let h = !1, _ = !1;
51
+ return this.breakpoint === "mobile" ? this.legend !== "none" && (h = !0) : this.legend === "top" ? h = !0 : this.legend === "right" && (_ = !0), e("div", { class: y }, h ? e("div", { class: "gids-line-chart__header" }, e("gids-chart-legend", { orientation: "horizontal" }, this.chartData.map(((t, i) => e("gids-chart-legend-item", { key: t.label, seriesType: `${i + 1}`, orientation: "horizontal" }, t.label))))) : null, e("div", { class: "gids-line-chart__main-container" }, e("div", { class: "gids-line-chart__grid-layout" }, e("span", { class: "gids-line-chart__y-axis-label" }, this.yAxisLabel), e("div", { class: "gids-line-chart__chart-stage-container" }, this.yAxisVisible ? e("div", { class: "gids-line-chart__y-axis-scale-container" }, n.map(((t) => e("span", { class: "gids-line-chart__scale-text gids-line-chart__y-axis-scale-value", key: t, style: { bottom: (t - 0) / g * 100 + "%" } }, t)))) : null, e("div", { class: "gids-line-chart__chart-stage" }, e("svg", { viewBox: "0 0 100 100", class: "gids-line-chart__chart-vector", preserveAspectRatio: "none" }, e("defs", null, this.chartData.map(((t, i) => e("linearGradient", { id: `areaGradient-${i}`, x1: "0", y1: "0", x2: "0", y2: "1", key: i }, e("stop", { offset: "0%", class: `gids-line-chart__gradient-start-${i}` }), e("stop", { offset: "100%", class: `gids-line-chart__gradient-end-${i}` }))))), n.map(((t) => {
52
+ const i = 100 - (t - 0) / g * 100;
53
+ return e("line", { x1: "0", y1: i, x2: "100", y2: i, class: "gids-line-chart__grid-line", key: t });
54
+ })), this.chartData.map(((t, i) => {
55
+ if (!Array.isArray(t.data) || t.data.length < 2) return null;
56
+ const r = t.data.map(((x, m) => `${m === 0 ? "M" : "L"} ${m / (b - 1) * 100} ${100 - (x.value - 0) / g * 100}`)).join(" ");
57
+ return e("g", { key: t.label || i }, e("path", { d: `${r} L 100 100 L 0 100 Z`, fill: `url(#areaGradient-${i})`, class: "gids-line-chart__chart-area" }), e("path", { d: r, class: `gids-line-chart__chart-line gids-line-chart__series-line-${i + 1}` }));
58
+ }))))), e("div", { class: "gids-line-chart__x-axis-scale-container" }, p.map(((t, i) => e("span", { class: "gids-line-chart__scale-text", key: i }, t)))), e("span", { class: "gids-line-chart__x-axis-label" }, this.xAxisLabel)), _ ? e("gids-chart-legend", { orientation: "vertical" }, this.chartData.map(((t, i) => e("gids-chart-legend-item", { key: t.label, seriesType: `${i + 1}`, orientation: "vertical" }, t.label)))) : null));
59
+ }
60
+ get hostElement() {
61
+ return this;
62
+ }
63
+ static get watchers() {
64
+ return { chartData: [{ chartDataChanged: 0 }], dataPoints: [{ dataPointsChanged: 0 }], legend: [{ legendChanged: 0 }], yAxisVisible: [{ yAxisVisibilityChanged: 0 }] };
65
+ }
66
+ static get style() {
67
+ return ":host{display:block;width:100%;height:100%;box-sizing:border-box}.gids-line-chart{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box}.gids-line-chart--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-line-chart__main-container{display:flex;gap:var(--gids-gap-200)}.gids-line-chart__header{display:flex;justify-content:flex-end;align-items:center;width:100%;margin-bottom:var(--gids-padding-vertical-edge-to-element-200)}.gids-line-chart__grid-layout{display:grid;grid-template-columns:auto 1fr;grid-template-rows:minmax(180px, 280px) auto auto;flex:1;width:100%;height:100%;box-sizing:border-box}.gids-line-chart__y-axis-label{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:center;margin-right:var(--gids-padding-horizontal-edge-to-element-150);font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap}.gids-line-chart__chart-stage-container{grid-column:2;grid-row:1;position:relative;width:100%;height:100%;padding-left:var(--gids-container-padding-desktop);box-sizing:border-box}.gids-line-chart__y-axis-scale-container{position:absolute;top:0;bottom:0;left:0;width:calc(var(--gids-container-padding-desktop) - var(--gids-padding-horizontal-edge-to-element-100));pointer-events:none}.gids-line-chart__y-axis-scale-value{position:absolute;right:0;transform:translateY(50%)}.gids-line-chart__chart-stage{position:relative;width:100%;height:100%;border-bottom:var(--gids-border-width-thin) solid var(--gids-color-border-default);box-sizing:border-box}.gids-line-chart__chart-vector{display:block;width:100%;height:100%;overflow:visible}.gids-line-chart__grid-line{stroke:var(--gids-color-border-default);stroke-width:0.5;fill:none}.gids-line-chart__chart-area{stroke:none}.gids-line-chart__chart-line{fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.gids-line-chart__chart-line.gids-line-chart__series-line-1{stroke:var(--gids-color-icon-subtle)}.gids-line-chart__chart-line.gids-line-chart__series-line-2{stroke:var(--gids-color-icon-warning)}.gids-line-chart__chart-line.gids-line-chart__series-line-3{stroke:var(--gids-color-icon-danger)}.gids-line-chart__gradient-start-0{stop-color:rgba(127, 86, 217, 0.09);stop-opacity:1}.gids-line-chart__gradient-end-0{stop-color:rgba(127, 86, 217, 0.09);stop-opacity:0}.gids-line-chart__gradient-start-1{stop-color:rgba(127, 86, 217, 0.1);stop-opacity:1}.gids-line-chart__gradient-end-1{stop-color:rgba(127, 86, 217, 0.1);stop-opacity:0}.gids-line-chart__gradient-start-2{stop-color:rgba(127, 86, 217, 0.12);stop-opacity:1}.gids-line-chart__gradient-end-2{stop-color:rgba(127, 86, 217, 0.12);stop-opacity:0}.gids-line-chart__x-axis-scale-container{display:flex;grid-column:2;grid-row:2;justify-content:space-between;align-items:center;padding-left:var(--gids-container-padding-desktop);padding-top:var(--gids-padding-vertical-edge-to-element-100);box-sizing:border-box}.gids-line-chart__x-axis-label{grid-column:2;grid-row:3;display:flex;justify-content:center;align-items:center;padding-top:var(--gids-padding-vertical-edge-to-element-100);font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);white-space:nowrap}.gids-line-chart__scale-text{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);user-select:none;white-space:nowrap}.gids-line-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)}";
68
+ }
69
+ }, [0, "gids-line-chart", { breakpoint: [1], legend: [1], chartData: [16], yAxisVisible: [4, "y-axis-visible"], xAxisLabel: [1, "x-axis-label"], yAxisLabel: [1, "y-axis-label"], dataPoints: [16], chartLoaderSize: [1, "chart-loader-size"], chartLoading: [4, "chart-loading"], chartLoadingTitle: [1, "chart-loading-title"], chartLoadingSupportingText: [1, "chart-loading-supporting-text"], width: [32], height: [32] }, void 0, { chartData: [{ chartDataChanged: 0 }], dataPoints: [{ dataPointsChanged: 0 }], legend: [{ legendChanged: 0 }], yAxisVisible: [{ yAxisVisibilityChanged: 0 }] }]);
70
+ function P() {
71
+ typeof customElements < "u" && ["gids-line-chart", "gids-chart-legend", "gids-chart-legend-item"].forEach(((a) => {
72
+ switch (a) {
73
+ case "gids-line-chart":
74
+ customElements.get(d(a)) || customElements.define(d(a), D);
75
+ break;
76
+ case "gids-chart-legend":
77
+ customElements.get(d(a)) || w();
78
+ break;
79
+ case "gids-chart-legend-item":
80
+ customElements.get(d(a)) || k();
81
+ }
82
+ }));
83
+ }
84
+ P();
85
+ export {
86
+ D as d,
87
+ P as g
88
+ };
@@ -1,4 +1,4 @@
1
- import { R as l } from "./p-ibikYq-w-BsGxk8ro.js";
1
+ import { T as l } from "./p-Ct3Ixgvf-CNP_PKwP.js";
2
2
  import { c as x } from "./clsx-OuTLNxxd.js";
3
3
  const f = ({ size: e, indeterminate: t, value: n }, r) => x("gids-spinner-control", {
4
4
  "gids-spinner-control--xs": e === "xs",
@@ -0,0 +1,15 @@
1
+ import { T as t } from "./p-Ct3Ixgvf-CNP_PKwP.js";
2
+ import { d } from "./p-BnL97lOW-BO0p4EdC.js";
3
+ import { c as m } from "./clsx-OuTLNxxd.js";
4
+ const n = ({ appearance: e, size: s }, i) => m("gids-dismiss-button", {
5
+ "gids-dismiss-button--sm": s === "sm",
6
+ // 'gids-dismiss-button--md': size === 'md',
7
+ "gids-dismiss-button--lg": s === "lg",
8
+ "gids-dismiss-button--bold": e === "bold"
9
+ }, i), b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10
+ __proto__: null,
11
+ getGidsDismissButtonClassNames: n
12
+ }, Symbol.toStringTag, { value: "Module" })), { getGidsDismissButtonClassNames: c } = b, f = ({ appearance: e = "subtle", size: s = "md", disabled: i = !1, class: a, onPressDismiss: o, label: l, ...r }) => t("button", { class: c({ appearance: e, size: s }, a), onClick: o, disabled: i, "aria-label": l, ...r }, t(d, { name: "cross", appearance: "regular" }));
13
+ export {
14
+ f as r
15
+ };
@@ -0,0 +1,20 @@
1
+ import { T as s } from "./p-Ct3Ixgvf-CNP_PKwP.js";
2
+ import { c } from "./clsx-OuTLNxxd.js";
3
+ const u = "No Data!", b = (e) => `There is no data series provided for ${e}. Check the data you have passed to draw ${e}.`, A = 100, C = 50, L = "Invalid Progress Value!", k = (e) => `The provided progress value is invalid or exceeds the maximum(${e}%) allowed capacity configuration bounds for this specific layout shape profile.`, m = "Invalid Chart Type!", v = (e) => `You have passed an invalid chart type. Valid chart types are ${e}. Pass one of these types.`, i = (e) => c("gids-button-dock", e), d = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4
+ __proto__: null,
5
+ getGidsButtonDockClassNames: i
6
+ }, Symbol.toStringTag, { value: "Module" })), r = (e) => c("gids-feedback-block", e), _ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7
+ __proto__: null,
8
+ getGidsFeedbackBlockClassNames: r
9
+ }, Symbol.toStringTag, { value: "Module" })), { getGidsButtonDockClassNames: n } = d, l = ({ class: e, primaryChildren: t, secondaryChildren: a, ...o }) => s("div", { class: n(e), ...o }, s("div", { class: "gids-button-dock__secondary-area" }, a), s("div", { class: "gids-button-dock__primary-area" }, t)), { getGidsFeedbackBlockClassNames: T } = _, f = ({ title: e, supportingText: t, image: a, children: o }) => s("div", { class: T() }, s("div", { class: "gids-feedback-block__inner-container" }, a && s("div", { class: "gids-feedback-block__image-container" }, a), s("p", { class: "gids-feedback-block__title" }, s("strong", null, e)), s("div", { class: "gids-feedback-block__supporting-text" }, t), o && s(l, { primaryChildren: o })));
10
+ export {
11
+ b as C,
12
+ A as F,
13
+ C as H,
14
+ u as a,
15
+ v as b,
16
+ m as c,
17
+ k as d,
18
+ L as e,
19
+ f as r
20
+ };
@@ -0,0 +1,29 @@
1
+ import { T as n } from "./p-Ct3Ixgvf-CNP_PKwP.js";
2
+ import { l as m } from "./p-DKsrt7dx-ImYLc4xz.js";
3
+ import { c } from "./clsx-OuTLNxxd.js";
4
+ const d = ({ size: e }, t) => c("gids-spinner", {
5
+ "gids-spinner--xs": e === "xs",
6
+ "gids-spinner--sm": e === "sm",
7
+ // 'gids-spinner--md': size === 'md',
8
+ "gids-spinner--lg": e === "lg",
9
+ "gids-spinner--xl": e === "xl",
10
+ "gids-spinner--2xl": e === "2xl"
11
+ }, t), u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12
+ __proto__: null,
13
+ getGidsSpinnerClassNames: d
14
+ }, Symbol.toStringTag, { value: "Module" })), x = (e) => {
15
+ const { label: t, supportingText: s } = e, i = typeof t == "string" && t.trim().length > 0, r = typeof s == "string" && s.trim().length > 0;
16
+ return {
17
+ hasLabel: i,
18
+ hasSupportingText: r
19
+ };
20
+ }, b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21
+ __proto__: null,
22
+ getElementVisibility: x
23
+ }, Symbol.toStringTag, { value: "Module" })), { getGidsSpinnerClassNames: _ } = u, { getElementVisibility: f } = b, h = ({ label: e, supportingText: t, size: s, indeterminate: i, value: r, max: l, class: o, ...p }) => {
24
+ const { hasLabel: a, hasSupportingText: g } = f({ label: e, supportingText: t });
25
+ return n("span", { class: _({ size: s }, o), ...p }, n(m, { size: s, indeterminate: i, value: r, max: l }), a && n("span", { class: "gids-spinner__label" }, e), g && n("span", { class: "gids-spinner__supporting-text" }, t));
26
+ };
27
+ export {
28
+ h as r
29
+ };
@@ -1,6 +1,6 @@
1
- import { H as s, C as l, f as u, R as a, L as r } from "./p-ibikYq-w-BsGxk8ro.js";
2
- import { d as n } from "./p-veoOgDXg-fRinub-C.js";
3
- import { l as d } from "./p-DybsMR13-DpmsG3Q1.js";
1
+ import { P as s, _ as l, u, T as a, L as r } from "./p-Ct3Ixgvf-CNP_PKwP.js";
2
+ import { d as n } from "./p-BnL97lOW-BO0p4EdC.js";
3
+ import { l as d } from "./p-DKsrt7dx-ImYLc4xz.js";
4
4
  const c = (e) => e.type === "hidden", f = (e) => {
5
5
  if (!(e instanceof HTMLElement))
6
6
  return !1;
@@ -54,9 +54,9 @@ const c = (e) => e.type === "hidden", f = (e) => {
54
54
  this._el.removeEventListener("click", this._focusInput);
55
55
  }
56
56
  render() {
57
- return a(r, { key: "c1e035111a8a80ef0b442bc0298785f0c7445113" }, a("slot", { key: "49bd52d5bbc7c9b962b27f6404ca9817de699b31", name: "leadingIcon" }), this.leadingLabel && a("span", { key: "2863a61da1f009b7287af508d9809d66787ddaf7", class: "gids-input__label" }, this.leadingLabel), a("slot", { key: "f74e8993fb8b1dd186a53c4557ceffac681f2881", name: "leadingAccessory" }), a("input", { key: "2bc7f84858a8533f33c66834ad212c38ad698075", ...this.inputProps, ref: (e) => {
57
+ return a(r, { key: "8cfc78682bffd38298aaa5bc8fe63bc996f17586" }, a("slot", { key: "5e5c57234e3e531b0d095597e021ab3d4756173d", name: "leadingIcon" }), this.leadingLabel && a("span", { key: "5d0fc2c8a8716806891347f30ba961db61e1cf91", class: "gids-input__label" }, this.leadingLabel), a("slot", { key: "881161160b2e933479c7af0a63846c0f86c7bbfe", name: "leadingAccessory" }), a("input", { key: "f0db6b63f0aa4a1a778743620753184ff0a7086a", ...this.inputProps, ref: (e) => {
58
58
  this.#t = e, this.#e.value !== void 0 && (this.#t.value = this.#e.value, delete this.#e.value), this.#e.defaultValue !== void 0 && (this.#t.defaultValue = this.#e.defaultValue, delete this.#e.defaultValue);
59
- }, class: "gids-input__control", name: this.name, disabled: this.disabled, readOnly: this.readOnly, required: this.required, onFocus: this._handleInputFocusAndBlur, onBlur: this._handleInputFocusAndBlur }), a("slot", { key: "2116db712ac02853ae4974b4ad618b5eee372b3f", name: "trailingAccessory" }), this.trailingLabel && a("span", { key: "35dc9b1c2bd2ef493b0ce1a602688f41854c922d", class: "gids-input__label" }, this.trailingLabel), a("slot", { key: "6cc1b37e9a0b979f04de753d8527aaae2970762c", name: "trailingIcon" }), this.status === "incomplete" && a(n, { key: "8c963877cee9bc941b1236a6b647fc1790a41cdc", name: "warning", appearance: "filled", class: "gids-input__warning-icon" }), this.status === "complete" && a(n, { key: "a2c401261ff8defa2802b5bbc336a6b4cc177ff4", name: "positive", appearance: "filled", class: "gids-input__positive-icon" }), this.loading && a(d, { key: "4dd22cd62d87ff444794fc8f1c4f0cc78e14738a", size: "md", indeterminate: !0 }));
59
+ }, class: "gids-input__control", name: this.name, disabled: this.disabled, readOnly: this.readOnly, required: this.required, onFocus: this._handleInputFocusAndBlur, onBlur: this._handleInputFocusAndBlur }), a("slot", { key: "5bb8549e6aa491b7ebbf56bce66bab6f386f98fe", name: "trailingAccessory" }), this.trailingLabel && a("span", { key: "3ef3319efd5512bbd370e314724820a539e342f9", class: "gids-input__label" }, this.trailingLabel), a("slot", { key: "22dcea487ee58e5df65a5b88d3f7ce7bcc32f828", name: "trailingIcon" }), this.status === "incomplete" && a(n, { key: "808723d08c4e8a1533652d6c20fd7f8ff0e98275", name: "warning", appearance: "filled", class: "gids-input__warning-icon" }), this.status === "complete" && a(n, { key: "10c61d22cb2a4fa56dc0de3025cfc07c1268f91e", name: "positive", appearance: "filled", class: "gids-input__positive-icon" }), this.loading && a(d, { key: "58147d27b92c93a6bf9dde27c394de2868d6225e", size: "md", indeterminate: !0 }));
60
60
  }
61
61
  get _el() {
62
62
  return this;
@@ -69,6 +69,6 @@ function h() {
69
69
  }
70
70
  h();
71
71
  export {
72
- o as l,
72
+ o as c,
73
73
  h as r
74
74
  };
@@ -1,5 +1,5 @@
1
- import { R as a } from "./p-ibikYq-w-BsGxk8ro.js";
2
- import { l as h } from "./p-DybsMR13-DpmsG3Q1.js";
1
+ import { T as a } from "./p-Ct3Ixgvf-CNP_PKwP.js";
2
+ import { l as h } from "./p-DKsrt7dx-ImYLc4xz.js";
3
3
  import { c as _ } from "./clsx-OuTLNxxd.js";
4
4
  const v = ({ appearance: t, size: n, width: d, destructive: s, positive: o, loading: l }, i, e) => _("gids-button", {
5
5
  "gids-button--primary": t === "primary",
@@ -13,12 +13,12 @@ const v = ({ appearance: t, size: n, width: d, destructive: s, positive: o, load
13
13
  "gids-button--positive": o && !s,
14
14
  "gids-button--icon-only": i,
15
15
  "gids-button--loading": l
16
- }, e), w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16
+ }, e), x = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
17
17
  __proto__: null,
18
18
  getGidsButtonClassNames: v
19
- }, Symbol.toStringTag, { value: "Module" })), b = (t) => t !== void 0 && (!Array.isArray(t) || t.length > 0), { getGidsButtonClassNames: x } = w, z = ({ appearance: t, size: n, destructive: d, positive: s, loading: o, width: l, leadingIcon: i, trailingIcon: e, as: c, disabled: p, class: m, forceIconOnly: y = !1, ...u }, g) => {
19
+ }, Symbol.toStringTag, { value: "Module" })), b = (t) => t !== void 0 && (!Array.isArray(t) || t.length > 0), { getGidsButtonClassNames: I } = x, z = ({ appearance: t, size: n, destructive: d, positive: s, loading: o, width: l, leadingIcon: i, trailingIcon: e, as: c, disabled: p, class: m, forceIconOnly: y = !1, ...u }, g) => {
20
20
  const r = c || "button", f = n === "lg" || n === void 0 ? "md" : n;
21
- return r !== "button" || "type" in u || (u.type = "button"), a(r, { class: x({ appearance: t, size: n, destructive: d, loading: o, width: l, positive: s }, y || g.length === 0 && b(i) && !b(e), m), disabled: r === "button" ? p : void 0, ...u }, a("span", { class: "gids-button__content" }, i, g), o && a(h, { size: f, indeterminate: !0 }), e);
21
+ return r !== "button" || "type" in u || (u.type = "button"), a(r, { class: I({ appearance: t, size: n, destructive: d, loading: o, width: l, positive: s }, y || g.length === 0 && b(i) && !b(e), m), disabled: r === "button" ? p : void 0, ...u }, a("span", { class: "gids-button__content" }, i, g), o && a(h, { size: f, indeterminate: !0 }), e);
22
22
  };
23
23
  export {
24
24
  z as o
@@ -0,0 +1,70 @@
1
+ import { T as e, L as C } from "./p-Ct3Ixgvf-CNP_PKwP.js";
2
+ import { r as I } from "./p-Dehss-X0-Di5vMgvd.js";
3
+ import { d as h } from "./p-BnL97lOW-BO0p4EdC.js";
4
+ import { c as r } from "./clsx-OuTLNxxd.js";
5
+ const N = ({ orientation: t }, i) => r("gids-divider", {
6
+ "gids-divider--vertical": t === "vertical"
7
+ }, i), T = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8
+ __proto__: null,
9
+ getGidsDividerClassNames: N
10
+ }, Symbol.toStringTag, { value: "Module" })), O = ({ layout: t }, i) => r("gids-button-group", {
11
+ "gids-button-group--scroll": t === "scroll"
12
+ }, i), z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13
+ __proto__: null,
14
+ getGidsButtonGroupClassNames: O
15
+ }, Symbol.toStringTag, { value: "Module" })), M = (t) => r("gids-heading", t), B = (t) => t && t.toString() !== "" && t !== "(none)" ? `gids-typography-${t}` : "", D = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16
+ __proto__: null,
17
+ getGidsHeadingClassNames: M,
18
+ getGidsHeadingSupportingTextTypographyClass: B
19
+ }, Symbol.toStringTag, { value: "Module" })), L = ({ size: t }, i) => r("gids-edit-button", {
20
+ "gids-edit-button--xs": t === "xs",
21
+ "gids-edit-button--sm": t === "sm",
22
+ // 'gids-button--md': size === 'md',
23
+ "gids-edit-button--lg": t === "lg"
24
+ }, i), E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
25
+ __proto__: null,
26
+ getGidsEditButtonClassNames: L
27
+ }, Symbol.toStringTag, { value: "Module" })), A = ({ disabled: t, selected: i }, n) => r("gids-list-item", {
28
+ // selected
29
+ "gids-list-item--selected": i,
30
+ // Disable
31
+ "gids-list-item--disabled": t
32
+ }, n), $ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
33
+ __proto__: null,
34
+ getGidsListItemClassNames: A
35
+ }, Symbol.toStringTag, { value: "Module" })), k = (t) => r("gids-dropdown-item", t), H = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
36
+ __proto__: null,
37
+ getGidsDropdownItemClassNames: k
38
+ }, Symbol.toStringTag, { value: "Module" })), q = (t) => r("gids-dropdown-menu", t), F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
39
+ __proto__: null,
40
+ getGidsDropdownMenuClassNames: q
41
+ }, Symbol.toStringTag, { value: "Module" })), J = ({ type: t }, i) => r("gids-dropdown-menu-group", {
42
+ "gids-dropdown-menu-group--default": t === "default",
43
+ // by default so no need to have this class
44
+ "gids-dropdown-menu-group--no-options": t === "no-options",
45
+ "gids-dropdown-menu-group--loading": t === "loading"
46
+ }, i), K = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
47
+ __proto__: null,
48
+ getGidsDropdownMenuGroupClassNames: J
49
+ }, Symbol.toStringTag, { value: "Module" })), { getGidsDropdownMenuGroupClassNames: Q } = K, gt = ({ type: t = "no-options", supportingText: i = "No options", class: n, ...l }, s) => e("div", { class: Q({ type: t }, n), ...l }, t === "loading" ? e(I, { indeterminate: !0, size: "md" }) : null, t === "no-options" ? e("span", null, i) : null, t === "default" && s != null ? s : null), { getGidsButtonGroupClassNames: R } = z, U = ({ layout: t, children: i, class: n }) => e("span", { class: R({ layout: t }, n) }, i), { getGidsHeadingClassNames: V, getGidsHeadingSupportingTextTypographyClass: W } = D, X = ({ heading: t, supportingText: i, level: n = "section", children: l, supportingTextTypography: s, class: d }) => e("div", { class: V(d) }, e("div", { class: "gids-heading__content-container" }, t != null && t !== "" ? typeof t == "string" ? t !== "" ? e("span", { class: n === "section" ? "gids-heading__heading-text-section" : "gids-heading__heading-text-group" }, t) : null : t : null, i != null && i !== "" ? typeof i == "string" ? i !== "" ? e("span", { class: `${n === "section" ? "gids-heading__supporting-text-section" : "gids-heading__supporting-text-group"} ${W(s)}` }, i) : null : i : null), l ? e(U, { layout: "wrap" }, l) : null), { getGidsDropdownMenuClassNames: Y } = F, ct = ({ sectionLabel: t, class: i, ...n }, l) => e("div", { class: Y(i), ...n }, t != null && t !== "" ? e(X, { supportingText: t, supportingTextTypography: "eyebrow-medium" }) : null, l != null ? e("div", { class: "gids-dropdown-menu__children" }, l) : null), { getGidsEditButtonClassNames: Z } = E, tt = ({ disabled: t, children: i, size: n = "md", editButtonType: l = "add", onPressEditButton: s, class: d, ...a }) => e("button", { class: Z({ size: n }, d), ...a, onClick: s, disabled: t }, l === "custom" && i ? e("div", null, i) : l === "add" ? e("div", { class: t ? "gids-edit-button__add gids-edit-button__disabled" : "gids-edit-button__add" }, e(h, { name: "add", appearance: "filled", size: n })) : l === "remove" ? e("div", { class: t ? "gids-edit-button__remove gids-edit-button__disabled" : "gids-edit-button__remove" }, e(h, { appearance: "filled", name: "remove", size: n })) : void 0), { getGidsDividerClassNames: et } = T, it = ({ orientation: t }) => e("hr", { class: et({ orientation: t }) }), { getGidsListItemClassNames: st } = $, nt = ({ id: t, value: i, index: n, defaultSelectedIndex: l, disabled: s, selected: d, editButton: a, onPressEditButton: y, onPressListItem: v, leadingAccessory: b, leadingSupport: g, leadingParagraph: u, trailingContent: p, trailingAccessory: f, trailingSupport: _, trailingParagraph: m, divider: x, role: G = "list-item-option", class: P, ...w }, S) => e("button", { type: "button", id: t, class: st({ selected: d, disabled: s }, P), role: G, "aria-selected": d ? "true" : "false", disabled: s, value: (() => {
50
+ if (typeof i == "string" && i.trim() !== "") return i;
51
+ const c = S;
52
+ return c ? (Array.isArray(c) ? c : [c]).map(((o) => typeof o == "string" || typeof o == "number" ? String(o) : o && typeof o == "object" && "text" in o ? o.text ?? "" : "")).join("").trim() : "";
53
+ })(), onClick: (c) => {
54
+ const o = c.currentTarget;
55
+ if (!o || c.defaultPrevented || o.disabled) return;
56
+ const j = new CustomEvent("onPressListItem", { bubbles: !0, composed: !0, detail: { selectedIndex: n, defaultSelectedIndex: l } });
57
+ v?.(j);
58
+ }, ...w }, e("div", { class: "gids-list-item__main-container" }, a == null || a === "none" || s ? null : e(tt, { size: "md", editButtonType: a, onPressEditButton: y }), b != null ? e("div", { class: s ? "gids-list-item__leading-accessory-container gids-list-item__accessory-content-disabled" : "gids-list-item__leading-accessory-container" }, b) : null, e("div", { class: "gids-list-item__middle-content-container" }, e("div", { class: "gids-list-item__leading-content-container" }, e(C, null, S != null ? e("span", { class: s ? "gids-list-item__leading-content-label gids-list-item__text-content-disabled" : "gids-list-item__leading-content-label" }, S) : null, e("div", { class: "gids-list-item__leading-support-content" }, g != null ? typeof g == "string" ? e("p", { class: s ? "gids-list-item__leading-content-supporting-text gids-list-item__text-content-disabled" : "gids-list-item__leading-content-supporting-text" }, g) : g : null, u != null ? typeof u == "string" ? e("p", { class: s ? "gids-list-item__leading-content-paragraph-text gids-list-item__text-content-disabled" : "gids-list-item__leading-content-paragraph-text" }, u) : u : null))), e("div", { class: "gids-list-item__trailing-content-container" }, e(C, null, p != null ? typeof p == "string" ? e("span", { class: s ? "gids-list-item__trailing-content-label gids-list-item__text-content-disabled" : "gids-list-item__trailing-content-label" }, p) : p : null, e("div", { class: "gids-list-item__trailing-support-content" }, _ != null ? typeof _ == "string" ? e("p", { class: s ? "gids-list-item__trailing-content-supporting-text gids-list-item__text-content-disabled" : "gids-list-item__trailing-content-supporting-text" }, _) : _ : null, m != null ? typeof m == "string" ? e("p", { class: s ? "gids-list-item__trailing-content-paragraph-text gids-list-item__text-content-disabled" : "gids-list-item__trailing-content-paragraph-text" }, m) : m : null)))), d ? e("div", { class: s ? "gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled" : "gids-list-item__trailing-accessory-container" }, e(h, { name: "checkmark", size: "md", appearance: "regular" })) : null, d || f == null ? null : e("div", { class: s ? "gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled" : "gids-list-item__trailing-accessory-container" }, f)), x && !d ? e("div", { class: "gids-list-item__divider" }, e(it, { orientation: "horizontal" })) : null), { getGidsDropdownItemClassNames: lt } = H, ut = ({ id: t, title: i, class: n, selected: l = !1, disabled: s = !1, role: d = "list-item-option", value: a, name: y, onPressDropdownItem: v, index: b, defaultSelectedIndex: g, leadingAccessory: u, divider: p, ...f }) => {
59
+ const _ = lt(typeof n == "string" ? n : void 0);
60
+ return e(nt, { id: t, index: b ?? 0, defaultSelectedIndex: g, selected: l, disabled: s, role: d, value: a, name: y, leadingAccessory: u, class: _, onPressListItem: (m) => {
61
+ if (m.defaultPrevented) return;
62
+ const x = new CustomEvent("onPressDropdownItem", { bubbles: !0, composed: !0, detail: { id: t, title: i, value: a, disabled: s, selectedIndex: b, defaultSelectedIndex: g } });
63
+ v?.(x);
64
+ }, divider: p, ...f }, i);
65
+ };
66
+ export {
67
+ ut as B,
68
+ ct as f,
69
+ gt as u
70
+ };
@@ -0,0 +1,67 @@
1
+ import { P as l, _ as f, u, T as t } from "./p-Ct3Ixgvf-CNP_PKwP.js";
2
+ import { r as b } from "./p-Dehss-X0-Di5vMgvd.js";
3
+ import { d as x } from "./p-B_HaXpJZ-a2SDgQ0E.js";
4
+ import { l as z } from "./p-B81J5HCC-Bkt2yXKi.js";
5
+ import { c as w } from "./clsx-OuTLNxxd.js";
6
+ const k = ({ breakpoint: a }, g) => w("gids-activity-gauge", {
7
+ "gids-activity-gauge--breakpoint-mobile": a === "mobile"
8
+ }, g), D = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9
+ __proto__: null,
10
+ getGidsActivityGaugeClassNames: k
11
+ }, Symbol.toStringTag, { value: "Module" })), { getGidsActivityGaugeClassNames: E } = D, L = f(class extends u {
12
+ constructor(a) {
13
+ super(), a !== !1 && this.__registerHost(), this.breakpoint = "desktop", this.chartData = [], this.label = "", this.size = "xs", this.legend = "none", this.chartLoaderSize = "lg", this.chartLoading = !1, this.width = 0, this.height = 0;
14
+ }
15
+ chartDataChanged() {
16
+ this.updateDimensions();
17
+ }
18
+ legendChanged(a) {
19
+ this.legend = a;
20
+ }
21
+ componentDidLoad() {
22
+ this.updateDimensions(), this.resizeObserver = new ResizeObserver((() => this.updateDimensions())), this.hostElement.parentElement && this.resizeObserver.observe(this.hostElement.parentElement);
23
+ }
24
+ disconnectedCallback() {
25
+ this.resizeObserver && this.resizeObserver.disconnect();
26
+ }
27
+ updateDimensions() {
28
+ const a = this.hostElement.getBoundingClientRect();
29
+ this.width = a.width, this.height = a.height > 0 ? a.height : 240;
30
+ }
31
+ render() {
32
+ if (this.chartLoading) return t("div", { class: "gids-activity-gauge__no-data" }, t(b, { label: this.chartLoadingTitle, supportingText: this.chartLoadingSupportingText, size: this?.chartLoaderSize ?? "lg" }));
33
+ const a = this.chartData.map(((i) => i.value || 0)), g = a.length > 0 ? Math.max(...a) : 0, r = Math.max(1e3, g), p = r.toLocaleString(), y = E({ breakpoint: this.breakpoint }), n = [{ radius: 42, strokeWidth: 5.5 }, { radius: 34, strokeWidth: 5.5 }, { radius: 26, strokeWidth: 5.5 }], o = this.size === "xxs", d = typeof this.label == "string" && this.label.trim() !== "", c = this.legend && this.legend === "right" && this.breakpoint !== "mobile", _ = this.legend && (this.legend === "bottom" || this.breakpoint === "mobile");
34
+ return t("div", { class: y }, t("div", { class: "gids-activity-gauge__main-container" }, t("div", { class: "gids-activity-gauge__chart-stage-container" }, t("div", { class: `gids-activity-gauge__svg-wrapper gids-activity-gauge--size-${this.size}` }, t("svg", { viewBox: "0 0 100 100", class: "gids-activity-gauge__chart-vector" }, this.chartData.slice(0, 3).map(((i, e) => {
35
+ const s = n[e] || n[0] || { radius: 26, strokeWidth: 5.5 }, m = r > 0 ? Math.min(Math.max((i.value || 0) / r, 0), 1) : 0, h = 2 * Math.PI * s.radius, v = `${m * h} ${h}`;
36
+ return t("g", { key: i.label || e }, t("circle", { cx: "50", cy: "50", r: s.radius, "stroke-width": s.strokeWidth, class: "gids-activity-gauge__track-background" }), t("circle", { cx: "50", cy: "50", r: s.radius, "stroke-width": s.strokeWidth, class: `gids-activity-gauge__segment gids-activity-gauge__segment-series-${e + 1}`, "stroke-dasharray": v, "stroke-dashoffset": "0", transform: "rotate(-90 50 50)" }));
37
+ }))), t("div", { class: "gids-activity-gauge__center-content" }, d && !o ? t("span", { class: `gids-activity-gauge__label-common gids-activity-gauge__label-${this.size}` }, this.label) : null, t("span", { class: `gids-activity-gauge__value-common gids-activity-gauge__value-${this.size}` }, p)))), c ? t("div", { class: "gids-activity-gauge__sidebar" }, t("gids-chart-legend", { orientation: "vertical" }, this.chartData.slice(0, 3).map(((i, e) => t("gids-chart-legend-item", { key: i.label, seriesType: `${e + 1}`, orientation: "vertical" }, i.label))))) : null), o && d ? t("div", { class: "gids-activity-gauge__bottom-content" }, t("span", { class: `gids-activity-gauge__label-common gids-activity-gauge__label-${this.size}` }, this.label)) : null, _ ? t("div", { class: "gids-activity-gauge__legend-container gids-activity-gauge__legend-container--bottom" }, t("gids-chart-legend", { orientation: "horizontal" }, this.chartData.slice(0, 3).map(((i, e) => t("gids-chart-legend-item", { key: i.label, seriesType: `${e + 1}`, orientation: "horizontal" }, i.label))))) : null);
38
+ }
39
+ get hostElement() {
40
+ return this;
41
+ }
42
+ static get watchers() {
43
+ return { chartData: [{ chartDataChanged: 0 }], legend: [{ legendChanged: 0 }] };
44
+ }
45
+ static get style() {
46
+ return ":host{display:block;width:100%;height:100%;box-sizing:border-box}.gids-activity-gauge{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;box-sizing:border-box}.gids-activity-gauge--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-activity-gauge__main-container{display:inline-flex;justify-content:center;gap:var(--gids-gap-200);width:100%;height:100%}.gids-activity-gauge__svg-wrapper{position:relative;display:block;flex-shrink:0}.gids-activity-gauge--size-xxs{width:180px;height:180px}.gids-activity-gauge--size-xs{width:220px;height:220px}.gids-activity-gauge--size-sm{width:260px;height:260px}.gids-activity-gauge--size-md{width:300px;height:300px}.gids-activity-gauge--size-lg{width:340px;height:340px}.gids-activity-gauge__chart-stage-container{display:flex;justify-content:center;align-items:center}.gids-activity-gauge__chart-vector{display:block;width:100%;height:100%}.gids-activity-gauge__track-background{fill:none;stroke:var(--gids-color-background-brand-subtlest-default);stroke-linecap:round}.gids-activity-gauge__segment{fill:none;stroke-linecap:round;transition:stroke-dasharray 0.4s ease-out}.gids-activity-gauge__segment.gids-activity-gauge__segment-series-1{stroke:var(--gids-color-icon-subtle)}.gids-activity-gauge__segment.gids-activity-gauge__segment-series-2{stroke:var(--gids-color-icon-warning)}.gids-activity-gauge__segment.gids-activity-gauge__segment-series-3{stroke:var(--gids-color-icon-danger)}.gids-activity-gauge__center-content{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none}.gids-activity-gauge__label-xxs{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-activity-gauge__label-xs{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-activity-gauge__label-sm{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-activity-gauge__label-md{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)}.gids-activity-gauge__label-lg{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)}.gids-activity-gauge__label-common{color:var(--gids-color-text-subtlest)}.gids-activity-gauge__value-xxs{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)}.gids-activity-gauge__value-xs{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-activity-gauge__value-sm{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-activity-gauge__value-md{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-activity-gauge__value-lg{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-activity-gauge__value-common{color:var(--gids-color-text-default)}.gids-activity-gauge__bottom-content{display:flex;justify-content:center;align-items:center;text-align:center}.gids-activity-gauge__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)}";
47
+ }
48
+ }, [0, "gids-activity-gauge", { breakpoint: [1], chartData: [16], label: [1], size: [1], legend: [1], chartLoaderSize: [1, "chart-loader-size"], chartLoading: [4, "chart-loading"], chartLoadingTitle: [1, "chart-loading-title"], chartLoadingSupportingText: [1, "chart-loading-supporting-text"], width: [32], height: [32] }, void 0, { chartData: [{ chartDataChanged: 0 }], legend: [{ legendChanged: 0 }] }]);
49
+ function $() {
50
+ typeof customElements < "u" && ["gids-activity-gauge", "gids-chart-legend", "gids-chart-legend-item"].forEach(((a) => {
51
+ switch (a) {
52
+ case "gids-activity-gauge":
53
+ customElements.get(l(a)) || customElements.define(l(a), L);
54
+ break;
55
+ case "gids-chart-legend":
56
+ customElements.get(l(a)) || x();
57
+ break;
58
+ case "gids-chart-legend-item":
59
+ customElements.get(l(a)) || z();
60
+ }
61
+ }));
62
+ }
63
+ $();
64
+ export {
65
+ $ as d,
66
+ L as o
67
+ };
@@ -0,0 +1,56 @@
1
+ import { P as c, _, u as y, T as e } from "./p-Ct3Ixgvf-CNP_PKwP.js";
2
+ import { r as m, e as f, d as v, H as x, F as b } from "./p-D_wcwB7E-d3jYxfod.js";
3
+ import { r as u } from "./p-Dehss-X0-Di5vMgvd.js";
4
+ import { c as w } from "./clsx-OuTLNxxd.js";
5
+ const z = ({ breakpoint: s }, r) => w("gids-progress-circle", {
6
+ "gids-progress-circle--breakpoint-mobile": s === "mobile"
7
+ }, r), k = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8
+ __proto__: null,
9
+ getGidsProgressCircleClassNames: z
10
+ }, Symbol.toStringTag, { value: "Module" })), { getGidsProgressCircleClassNames: L } = k, C = _(class extends y {
11
+ constructor(s) {
12
+ super(), s !== !1 && this.__registerHost(), this.breakpoint = "desktop", this.value = 0, this.shape = "circle", this.label = "", this.size = "xs", this.chartLoaderSize = "lg", this.chartLoading = !1, this.width = 0, this.height = 0;
13
+ }
14
+ valueChanged() {
15
+ this.updateDimensions();
16
+ }
17
+ componentDidLoad() {
18
+ this.updateDimensions(), this.resizeObserver = new ResizeObserver((() => this.updateDimensions())), this.hostElement.parentElement && this.resizeObserver.observe(this.hostElement.parentElement);
19
+ }
20
+ disconnectedCallback() {
21
+ this.resizeObserver && this.resizeObserver.disconnect();
22
+ }
23
+ updateDimensions() {
24
+ const s = this.hostElement.getBoundingClientRect();
25
+ this.width = s.width, this.height = s.height > 0 ? s.height : 240;
26
+ }
27
+ render() {
28
+ if (this.chartLoading) return e("div", { class: "gids-progress-circle__no-data" }, e(u, { label: this.chartLoadingTitle, supportingText: this.chartLoadingSupportingText, size: this?.chartLoaderSize ?? "lg" }));
29
+ const s = this.shape === "half-circle" ? x : b;
30
+ if (!(typeof this.value == "number" && !isNaN(this.value) && this.value <= s && this.value >= 0)) return e("div", { class: "gids-progress-circle__no-data" }, e(m, { title: f, supportingText: v(s) }));
31
+ const r = this.value / s, h = `${this.value}%`, d = L({ breakpoint: this.breakpoint }), l = this.shape === "half-circle";
32
+ let i = 2 * Math.PI * 40, t = r * i, a = 0, g = "0 0 100 100", o = "rotate(-90 50 50)";
33
+ l && (i = 40 * Math.PI, t = r * i, a = 0, g = "0 0 100 50", o = "");
34
+ const p = this.size === "xxs", n = typeof this.label == "string" && this.label.trim() !== "";
35
+ return e("div", { class: d }, e("div", { class: "gids-progress-circle__main-container" }, e("div", { class: `gids-progress-circle__svg-wrapper gids-progress-circle__svg-wrapper--shape-${this.shape}--size-${this.size}` }, e("svg", { viewBox: g, class: "gids-progress-circle__chart-vector" }, l ? e("g", null, e("path", { d: "M 10,50 A 40,40 0 0,1 90,50", fill: "none", class: "gids-progress-circle__track-background" }), e("path", { d: "M 10,50 A 40,40 0 0,1 90,50", fill: "none", class: "gids-progress-circle__segment", "stroke-dasharray": `${t} ${i}`, "stroke-dashoffset": a })) : e("g", null, e("circle", { cx: "50", cy: "50", r: 40, class: "gids-progress-circle__track-background" }), e("circle", { cx: "50", cy: "50", r: 40, class: "gids-progress-circle__segment", "stroke-dasharray": `${t} ${i}`, "stroke-dashoffset": a, transform: o }))), e("div", { class: `gids-progress-circle__center-content gids-progress-circle__shape-${this.shape}` }, n && !p ? e("span", { class: `gids-progress-circle__label-common gids-progress-circle__label-${this.size}` }, this.label) : null, e("span", { class: `gids-progress-circle__percentage-common gids-progress-circle__percentage-${this.size}` }, h))), p && n ? e("div", { class: "gids-progress-circle__bottom-content" }, e("span", { class: `gids-progress-circle__label-common gids-progress-circle__label-${this.size}` }, this.label)) : null));
36
+ }
37
+ get hostElement() {
38
+ return this;
39
+ }
40
+ static get watchers() {
41
+ return { value: [{ valueChanged: 0 }], shape: [{ valueChanged: 0 }] };
42
+ }
43
+ static get style() {
44
+ return ":host{display:block;box-sizing:border-box}.gids-progress-circle{display:block;box-sizing:border-box}.gids-progress-circle--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-progress-circle__main-container{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%}.gids-progress-circle{}.gids-progress-circle__svg-wrapper{position:relative;display:block;flex-shrink:0;}.gids-progress-circle__svg-wrapper--shape-circle--size-xxs{width:180px;height:180px}.gids-progress-circle__svg-wrapper--shape-circle--size-xs{width:220px;height:220px}.gids-progress-circle__svg-wrapper--shape-circle--size-sm{width:260px;height:260px}.gids-progress-circle__svg-wrapper--shape-circle--size-md{width:300px;height:300px}.gids-progress-circle__svg-wrapper--shape-circle--size-lg{width:340px;height:340px}.gids-progress-circle__svg-wrapper{}.gids-progress-circle__svg-wrapper--shape-half-circle--size-xxs{width:180px;height:144px}.gids-progress-circle__svg-wrapper--shape-half-circle--size-xs{width:220px;height:130px}.gids-progress-circle__svg-wrapper--shape-half-circle--size-sm{width:260px;height:152px}.gids-progress-circle__svg-wrapper--shape-half-circle--size-md{width:300px;height:174px}.gids-progress-circle__svg-wrapper--shape-half-circle--size-lg{width:340px;height:194px}.gids-progress-circle__chart-vector{display:block;width:100%;height:100%}.gids-progress-circle{}.gids-progress-circle__track-background{fill:none;stroke:var(--gids-color-background-neutral-default);stroke-width:6;stroke-linecap:round}.gids-progress-circle{}.gids-progress-circle__segment{fill:none;stroke:var(--gids-color-text-brand);stroke-width:6;stroke-linecap:round;transition:stroke-dasharray 0.4s ease-out, stroke-dashoffset 0.4s ease-out}.gids-progress-circle{}.gids-progress-circle__center-content{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none}.gids-progress-circle__shape-half-circle{justify-content:flex-end;align-items:center;bottom:var(--gids-padding-vertical-edge-to-element-300)}.gids-progress-circle__label-xxs{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-progress-circle__label-xs{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-progress-circle__label-sm{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-progress-circle__label-md{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)}.gids-progress-circle__label-lg{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)}.gids-progress-circle__label-common{color:var(--gids-color-text-subtlest)}.gids-progress-circle__percentage-xxs{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)}.gids-progress-circle__percentage-xs{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-progress-circle__percentage-sm{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-progress-circle__percentage-md{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-progress-circle__percentage-lg{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-progress-circle__percentage-common{color:var(--gids-color-text-default)}.gids-progress-circle{}.gids-progress-circle__bottom-content{display:flex;justify-content:center;text-align:center}.gids-progress-circle__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)}";
45
+ }
46
+ }, [0, "gids-progress-circle", { breakpoint: [1], value: [2], shape: [1], label: [1], size: [1], chartLoaderSize: [1, "chart-loader-size"], chartLoading: [4, "chart-loading"], chartLoadingTitle: [1, "chart-loading-title"], chartLoadingSupportingText: [1, "chart-loading-supporting-text"], width: [32], height: [32] }, void 0, { value: [{ valueChanged: 0 }], shape: [{ valueChanged: 0 }] }]);
47
+ function E() {
48
+ typeof customElements < "u" && ["gids-progress-circle"].forEach(((s) => {
49
+ s === "gids-progress-circle" && (customElements.get(c(s)) || customElements.define(c(s), C));
50
+ }));
51
+ }
52
+ E();
53
+ export {
54
+ E as d,
55
+ C as h
56
+ };
@@ -0,0 +1,71 @@
1
+ import { P as a, _, u as m, T as t } from "./p-Ct3Ixgvf-CNP_PKwP.js";
2
+ import { r as b } from "./p-Dehss-X0-Di5vMgvd.js";
3
+ import { d as u } from "./p-B_HaXpJZ-a2SDgQ0E.js";
4
+ import { l as v } from "./p-B81J5HCC-Bkt2yXKi.js";
5
+ import { c as x } from "./clsx-OuTLNxxd.js";
6
+ const f = ({ breakpoint: e }, r) => x("gids-pie-chart", {
7
+ "gids-pie-chart--breakpoint-mobile": e === "mobile"
8
+ }, r), k = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9
+ __proto__: null,
10
+ getGidsPieChartClassNames: f
11
+ }, Symbol.toStringTag, { value: "Module" })), { getGidsPieChartClassNames: w } = k, y = _(class extends m {
12
+ constructor(e) {
13
+ super(), e !== !1 && this.__registerHost(), this.breakpoint = "desktop", this.legendVisible = !1, this.chartData = [], this.size = "xxs", this.chartLoaderSize = "lg", this.chartLoading = !1, this.width = 0, this.height = 0;
14
+ }
15
+ chartDataChanged() {
16
+ this.updateDimensions();
17
+ }
18
+ legendVisibilityChanged(e) {
19
+ this.legendVisible = e;
20
+ }
21
+ componentDidLoad() {
22
+ this.updateDimensions(), this.resizeObserver = new ResizeObserver((() => this.updateDimensions())), this.hostElement.parentElement && this.resizeObserver.observe(this.hostElement.parentElement);
23
+ }
24
+ disconnectedCallback() {
25
+ this.resizeObserver && this.resizeObserver.disconnect();
26
+ }
27
+ updateDimensions() {
28
+ const e = this.hostElement.getBoundingClientRect();
29
+ this.width = e.width, this.height = e.height > 0 ? e.height : 240;
30
+ }
31
+ render() {
32
+ if (this.chartLoading) return t("div", { class: "gids-pie-chart__no-data" }, t(b, { label: this.chartLoadingTitle, supportingText: this.chartLoadingSupportingText, size: this?.chartLoaderSize ?? "lg" }));
33
+ const e = this.chartData.length, r = this.chartData.reduce(((i, s) => i + (s.value || 0)), 0);
34
+ let d = r;
35
+ e < 6 && e > 0 && (d = r + r / e * (6 - e));
36
+ const c = d > 0 ? d : 1, o = w({ breakpoint: this.breakpoint }), n = 2 * Math.PI * 25;
37
+ let h = 0;
38
+ return t("div", { class: o }, t("div", { class: "gids-pie-chart__main-container" }, t("div", { class: "gids-pie-chart__chart-stage-container" }, t("div", { class: `gids-pie-chart__svg-wrapper gids-pie-chart__svg-wrapper--size-${this.size}` }, t("svg", { viewBox: "0 0 100 100", class: "gids-pie-chart__chart-vector" }, t("circle", { cx: "50", cy: "50", r: 25, class: "gids-pie-chart__track-background" }), this.chartData.map(((i, s) => {
39
+ const g = (i.value || 0) / c, l = `${g * n} ${n}`, p = -h * n;
40
+ return h += g, t("circle", { key: i.label || s, cx: "50", cy: "50", r: 25, class: `gids-pie-chart__segment gids-pie-chart__segment-series-${s + 1}`, "stroke-dasharray": l, "stroke-dashoffset": p, transform: "rotate(-90 50 50)" });
41
+ }))))), this.legendVisible ? t("div", { class: "gids-pie-chart__legend-container" }, t("gids-chart-legend", { orientation: "vertical" }, this.chartData.map(((i, s) => t("gids-chart-legend-item", { key: i.label, seriesType: `${s + 1}`, orientation: "vertical" }, i.label))))) : null));
42
+ }
43
+ get hostElement() {
44
+ return this;
45
+ }
46
+ static get watchers() {
47
+ return { chartData: [{ chartDataChanged: 0 }], legendVisible: [{ legendVisibilityChanged: 0 }] };
48
+ }
49
+ static get style() {
50
+ return ":host{display:block;width:100%;height:100%;box-sizing:border-box}.gids-pie-chart{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box}.gids-pie-chart--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-pie-chart__main-container{display:inline-flex;justify-content:center;gap:var(--gids-gap-200);width:100%;height:100%}.gids-pie-chart__chart-stage-container{display:flex;justify-content:center;align-items:center}.gids-pie-chart{}.gids-pie-chart__svg-wrapper{position:relative;display:block;flex-shrink:0}.gids-pie-chart__svg-wrapper--size-xxs{width:180px;height:180px}.gids-pie-chart__svg-wrapper--size-xs{width:220px;height:220px}.gids-pie-chart__svg-wrapper--size-sm{width:260px;height:260px}.gids-pie-chart__svg-wrapper--size-md{width:300px;height:300px}.gids-pie-chart__svg-wrapper--size-lg{width:340px;height:340px}.gids-pie-chart__chart-vector{display:block;width:100%;height:100%}.gids-pie-chart{}.gids-pie-chart__track-background{fill:none;stroke:var(--gids-color-background-neutral-default);stroke-width:12;}.gids-pie-chart__segment{fill:none;stroke-width:12;stroke-linecap:butt;transition:stroke-dashoffset 0.3s ease;}.gids-pie-chart__segment.gids-pie-chart__segment-series-1{stroke:var(--gids-color-icon-subtle);}.gids-pie-chart__segment.gids-pie-chart__segment-series-2{stroke:var(--gids-color-icon-warning);}.gids-pie-chart__segment.gids-pie-chart__segment-series-3{stroke:var(--gids-color-icon-danger);}.gids-pie-chart__segment.gids-pie-chart__segment-series-4{stroke:var(--gids-color-background-positive-bold-hovered);}.gids-pie-chart__segment.gids-pie-chart__segment-series-5{stroke:var(--gids-color-background-information-bold-default);}.gids-pie-chart__segment.gids-pie-chart__segment-series-6{stroke:rgb(238, 70, 188);}.gids-pie-chart__legend-container{display:inline-flex;align-items:flex-start}.gids-pie-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)}";
51
+ }
52
+ }, [0, "gids-pie-chart", { breakpoint: [1], legendVisible: [4, "legend-visible"], chartData: [16], size: [1], chartLoaderSize: [1, "chart-loader-size"], chartLoading: [4, "chart-loading"], chartLoadingTitle: [1, "chart-loading-title"], chartLoadingSupportingText: [1, "chart-loading-supporting-text"], width: [32], height: [32] }, void 0, { chartData: [{ chartDataChanged: 0 }], legendVisible: [{ legendVisibilityChanged: 0 }] }]);
53
+ function z() {
54
+ typeof customElements < "u" && ["gids-pie-chart", "gids-chart-legend", "gids-chart-legend-item"].forEach(((e) => {
55
+ switch (e) {
56
+ case "gids-pie-chart":
57
+ customElements.get(a(e)) || customElements.define(a(e), y);
58
+ break;
59
+ case "gids-chart-legend":
60
+ customElements.get(a(e)) || u();
61
+ break;
62
+ case "gids-chart-legend-item":
63
+ customElements.get(a(e)) || v();
64
+ }
65
+ }));
66
+ }
67
+ z();
68
+ export {
69
+ z as c,
70
+ y as n
71
+ };