@ojiepermana/angular 22.1.14 → 22.2.1

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 (252) hide show
  1. package/README.md +8 -6
  2. package/SUPPORT.md +3 -3
  3. package/chart/README.md +1 -1
  4. package/component/README.md +2 -2
  5. package/component/calendar/README.md +3 -15
  6. package/component/drawer/README.md +1 -2
  7. package/fesm2022/ojiepermana-angular-chart-area.mjs +352 -137
  8. package/fesm2022/ojiepermana-angular-chart-bar.mjs +744 -524
  9. package/fesm2022/ojiepermana-angular-chart-core.mjs +1140 -1344
  10. package/fesm2022/ojiepermana-angular-chart-line.mjs +393 -147
  11. package/fesm2022/ojiepermana-angular-chart-pie.mjs +408 -179
  12. package/fesm2022/ojiepermana-angular-chart-primitives.mjs +1262 -920
  13. package/fesm2022/ojiepermana-angular-chart-radar.mjs +473 -205
  14. package/fesm2022/ojiepermana-angular-chart-radial.mjs +425 -182
  15. package/fesm2022/ojiepermana-angular-chart-scatter.mjs +386 -210
  16. package/fesm2022/ojiepermana-angular-chart.mjs +3 -19
  17. package/fesm2022/ojiepermana-angular-component-accordion.mjs +485 -243
  18. package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs +963 -325
  19. package/fesm2022/ojiepermana-angular-component-alert.mjs +266 -103
  20. package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs +80 -35
  21. package/fesm2022/ojiepermana-angular-component-avatar.mjs +402 -135
  22. package/fesm2022/ojiepermana-angular-component-badge.mjs +109 -59
  23. package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs +410 -142
  24. package/fesm2022/ojiepermana-angular-component-button-group.mjs +249 -96
  25. package/fesm2022/ojiepermana-angular-component-button.mjs +153 -75
  26. package/fesm2022/ojiepermana-angular-component-calendar.mjs +531 -418
  27. package/fesm2022/ojiepermana-angular-component-card.mjs +457 -171
  28. package/fesm2022/ojiepermana-angular-component-carousel.mjs +642 -272
  29. package/fesm2022/ojiepermana-angular-component-checkbox.mjs +312 -108
  30. package/fesm2022/ojiepermana-angular-component-collapsible.mjs +299 -115
  31. package/fesm2022/ojiepermana-angular-component-combobox.mjs +396 -183
  32. package/fesm2022/ojiepermana-angular-component-command.mjs +807 -347
  33. package/fesm2022/ojiepermana-angular-component-composer.mjs +807 -330
  34. package/fesm2022/ojiepermana-angular-component-context-menu.mjs +196 -161
  35. package/fesm2022/ojiepermana-angular-component-date-picker.mjs +650 -338
  36. package/fesm2022/ojiepermana-angular-component-dialog.mjs +710 -316
  37. package/fesm2022/ojiepermana-angular-component-drawer.mjs +1 -5
  38. package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs +1212 -646
  39. package/fesm2022/ojiepermana-angular-component-editor.mjs +987 -502
  40. package/fesm2022/ojiepermana-angular-component-empty.mjs +350 -137
  41. package/fesm2022/ojiepermana-angular-component-form.mjs +813 -434
  42. package/fesm2022/ojiepermana-angular-component-hover-card.mjs +486 -277
  43. package/fesm2022/ojiepermana-angular-component-icon.mjs +241 -140
  44. package/fesm2022/ojiepermana-angular-component-input-group.mjs +449 -176
  45. package/fesm2022/ojiepermana-angular-component-input-otp.mjs +891 -488
  46. package/fesm2022/ojiepermana-angular-component-input.mjs +86 -55
  47. package/fesm2022/ojiepermana-angular-component-item.mjs +713 -261
  48. package/fesm2022/ojiepermana-angular-component-kanban.mjs +714 -216
  49. package/fesm2022/ojiepermana-angular-component-kbd.mjs +124 -52
  50. package/fesm2022/ojiepermana-angular-component-label.mjs +82 -31
  51. package/fesm2022/ojiepermana-angular-component-menubar.mjs +479 -329
  52. package/fesm2022/ojiepermana-angular-component-native-select.mjs +167 -65
  53. package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs +683 -380
  54. package/fesm2022/ojiepermana-angular-component-pagination.mjs +277 -94
  55. package/fesm2022/ojiepermana-angular-component-pillbox.mjs +1283 -607
  56. package/fesm2022/ojiepermana-angular-component-popover.mjs +291 -204
  57. package/fesm2022/ojiepermana-angular-component-progress.mjs +176 -53
  58. package/fesm2022/ojiepermana-angular-component-radio.mjs +449 -142
  59. package/fesm2022/ojiepermana-angular-component-resizable.mjs +659 -453
  60. package/fesm2022/ojiepermana-angular-component-scroll-area.mjs +117 -39
  61. package/fesm2022/ojiepermana-angular-component-segmented-control.mjs +351 -172
  62. package/fesm2022/ojiepermana-angular-component-select.mjs +475 -345
  63. package/fesm2022/ojiepermana-angular-component-separator.mjs +102 -35
  64. package/fesm2022/ojiepermana-angular-component-sheet.mjs +797 -347
  65. package/fesm2022/ojiepermana-angular-component-skeleton.mjs +62 -29
  66. package/fesm2022/ojiepermana-angular-component-slider.mjs +592 -376
  67. package/fesm2022/ojiepermana-angular-component-spinner.mjs +135 -38
  68. package/fesm2022/ojiepermana-angular-component-switch.mjs +315 -103
  69. package/fesm2022/ojiepermana-angular-component-table.mjs +440 -153
  70. package/fesm2022/ojiepermana-angular-component-tabs.mjs +590 -317
  71. package/fesm2022/ojiepermana-angular-component-textarea.mjs +85 -50
  72. package/fesm2022/ojiepermana-angular-component-timeline.mjs +609 -231
  73. package/fesm2022/ojiepermana-angular-component-toast.mjs +229 -243
  74. package/fesm2022/ojiepermana-angular-component-toggle-group.mjs +573 -288
  75. package/fesm2022/ojiepermana-angular-component-toggle.mjs +187 -78
  76. package/fesm2022/ojiepermana-angular-component-tooltip.mjs +798 -517
  77. package/fesm2022/ojiepermana-angular-component-utils-core.mjs +159 -292
  78. package/fesm2022/ojiepermana-angular-component-utils-overlay.mjs +46 -58
  79. package/fesm2022/ojiepermana-angular-component-utils-scale.mjs +76 -38
  80. package/fesm2022/ojiepermana-angular-component-utils.mjs +2 -8
  81. package/fesm2022/ojiepermana-angular-component.mjs +0 -10
  82. package/fesm2022/ojiepermana-angular-navigation-core.mjs +13 -23
  83. package/fesm2022/ojiepermana-angular-navigation-icon.mjs +35 -24
  84. package/fesm2022/ojiepermana-angular-navigation-navigation-badge-count.component-DYuysKVf.mjs +129 -0
  85. package/fesm2022/ojiepermana-angular-navigation-navigation-dockbar-menu.component-COiTaw34.mjs +812 -0
  86. package/fesm2022/{ojiepermana-angular-navigation-navigation-entry-grid.component-COQ-60DS.mjs → ojiepermana-angular-navigation-navigation-entry-grid.component-YIz0IsIb.mjs} +392 -207
  87. package/fesm2022/ojiepermana-angular-navigation-navigation-flyout-menu.component-D2vwEwBY.mjs +650 -0
  88. package/fesm2022/ojiepermana-angular-navigation-navigation-horizontal.component-B5D7yXfb.mjs +662 -0
  89. package/fesm2022/ojiepermana-angular-navigation-navigation-item.component-CUb68MZH.mjs +1219 -0
  90. package/fesm2022/ojiepermana-angular-navigation-navigation-list.component-CrK16trj.mjs +327 -0
  91. package/fesm2022/ojiepermana-angular-navigation-service.mjs +544 -724
  92. package/fesm2022/ojiepermana-angular-navigation-types.mjs +139 -56
  93. package/fesm2022/ojiepermana-angular-navigation.mjs +3256 -4
  94. package/fesm2022/ojiepermana-angular-sdk.mjs +91 -201
  95. package/fesm2022/ojiepermana-angular-theme-component-settings.mjs +1125 -737
  96. package/fesm2022/ojiepermana-angular-theme-layout-services.mjs +245 -328
  97. package/fesm2022/ojiepermana-angular-theme-layout-types.mjs +35 -38
  98. package/fesm2022/ojiepermana-angular-theme-layout-wrapper.mjs +1928 -553
  99. package/fesm2022/ojiepermana-angular-theme-layout.mjs +847 -496
  100. package/fesm2022/ojiepermana-angular-theme-page-core.mjs +288 -358
  101. package/fesm2022/ojiepermana-angular-theme-page-filter.mjs +362 -224
  102. package/fesm2022/ojiepermana-angular-theme-page-overview.mjs +88 -0
  103. package/fesm2022/ojiepermana-angular-theme-page-root.mjs +576 -254
  104. package/fesm2022/ojiepermana-angular-theme-page-side.mjs +317 -177
  105. package/fesm2022/ojiepermana-angular-theme-page-slots.mjs +256 -112
  106. package/fesm2022/ojiepermana-angular-theme-page.mjs +7 -12
  107. package/fesm2022/ojiepermana-angular-theme-shell-services.mjs +215 -326
  108. package/fesm2022/ojiepermana-angular-theme-shell-types.mjs +68 -129
  109. package/fesm2022/ojiepermana-angular-theme-shell.mjs +907 -378
  110. package/fesm2022/ojiepermana-angular-theme-styles.mjs +521 -720
  111. package/fesm2022/ojiepermana-angular-theme.mjs +0 -10
  112. package/fesm2022/ojiepermana-angular.mjs +5 -24
  113. package/navigation/README.md +69 -18
  114. package/package.json +16 -12
  115. package/sdk/README.md +1 -1
  116. package/sdk/src/writer/index.js +2 -2
  117. package/theme/README.md +1 -1
  118. package/theme/layout/README.md +2 -4
  119. package/theme/page/README.md +50 -0
  120. package/theme/styles/README.md +10 -10
  121. package/theme/styles/css/base/prefers-dark.css +1 -1
  122. package/theme/styles/css/base/status.css +1 -1
  123. package/theme/styles/css/color/amber.css +1 -1
  124. package/theme/styles/css/color/blue.css +1 -1
  125. package/theme/styles/css/color/cyan.css +1 -1
  126. package/theme/styles/css/color/emerald.css +1 -1
  127. package/theme/styles/css/color/fuchsia.css +1 -1
  128. package/theme/styles/css/color/green.css +1 -1
  129. package/theme/styles/css/color/indigo.css +1 -1
  130. package/theme/styles/css/color/lime.css +1 -1
  131. package/theme/styles/css/color/orange.css +1 -1
  132. package/theme/styles/css/color/pink.css +1 -1
  133. package/theme/styles/css/color/purple.css +1 -1
  134. package/theme/styles/css/color/red.css +1 -1
  135. package/theme/styles/css/color/rose.css +1 -1
  136. package/theme/styles/css/color/sky.css +1 -1
  137. package/theme/styles/css/color/teal.css +1 -1
  138. package/theme/styles/css/color/violet.css +1 -1
  139. package/theme/styles/css/color/yellow.css +1 -1
  140. package/theme/styles/css/neutral/gray.css +1 -1
  141. package/theme/styles/css/neutral/mauve.css +1 -1
  142. package/theme/styles/css/neutral/mist.css +1 -1
  143. package/theme/styles/css/neutral/neutral.css +1 -1
  144. package/theme/styles/css/neutral/olive.css +1 -1
  145. package/theme/styles/css/neutral/slate.css +1 -1
  146. package/theme/styles/css/neutral/stone.css +1 -1
  147. package/theme/styles/css/neutral/taupe.css +1 -1
  148. package/theme/styles/css/neutral/zinc.css +1 -1
  149. package/types/ojiepermana-angular-chart-area.d.ts +126 -63
  150. package/types/ojiepermana-angular-chart-bar.d.ts +244 -154
  151. package/types/ojiepermana-angular-chart-core.d.ts +409 -398
  152. package/types/ojiepermana-angular-chart-line.d.ts +141 -68
  153. package/types/ojiepermana-angular-chart-pie.d.ts +192 -121
  154. package/types/ojiepermana-angular-chart-primitives.d.ts +283 -214
  155. package/types/ojiepermana-angular-chart-radar.d.ts +189 -108
  156. package/types/ojiepermana-angular-chart-radial.d.ts +177 -106
  157. package/types/ojiepermana-angular-chart-scatter.d.ts +166 -110
  158. package/types/ojiepermana-angular-chart.d.ts +3 -2
  159. package/types/ojiepermana-angular-component-accordion.d.ts +135 -81
  160. package/types/ojiepermana-angular-component-alert-dialog.d.ts +271 -123
  161. package/types/ojiepermana-angular-component-alert.d.ts +69 -39
  162. package/types/ojiepermana-angular-component-aspect-ratio.d.ts +20 -12
  163. package/types/ojiepermana-angular-component-avatar.d.ts +103 -49
  164. package/types/ojiepermana-angular-component-badge.d.ts +36 -24
  165. package/types/ojiepermana-angular-component-breadcrumb.d.ts +79 -40
  166. package/types/ojiepermana-angular-component-button-group.d.ts +48 -24
  167. package/types/ojiepermana-angular-component-button.d.ts +44 -27
  168. package/types/ojiepermana-angular-component-calendar.d.ts +145 -107
  169. package/types/ojiepermana-angular-component-card.d.ts +112 -63
  170. package/types/ojiepermana-angular-component-carousel.d.ts +150 -81
  171. package/types/ojiepermana-angular-component-checkbox.d.ts +96 -38
  172. package/types/ojiepermana-angular-component-collapsible.d.ts +65 -39
  173. package/types/ojiepermana-angular-component-combobox.d.ts +100 -55
  174. package/types/ojiepermana-angular-component-command.d.ts +206 -121
  175. package/types/ojiepermana-angular-component-composer.d.ts +184 -84
  176. package/types/ojiepermana-angular-component-context-menu.d.ts +51 -41
  177. package/types/ojiepermana-angular-component-date-picker.d.ts +199 -109
  178. package/types/ojiepermana-angular-component-dialog.d.ts +200 -105
  179. package/types/ojiepermana-angular-component-drawer.d.ts +2 -1
  180. package/types/ojiepermana-angular-component-dropdown-menu.d.ts +324 -202
  181. package/types/ojiepermana-angular-component-editor.d.ts +215 -117
  182. package/types/ojiepermana-angular-component-empty.d.ts +80 -45
  183. package/types/ojiepermana-angular-component-form.d.ts +185 -121
  184. package/types/ojiepermana-angular-component-hover-card.d.ts +130 -72
  185. package/types/ojiepermana-angular-component-icon.d.ts +87 -57
  186. package/types/ojiepermana-angular-component-input-group.d.ts +93 -46
  187. package/types/ojiepermana-angular-component-input-otp.d.ts +243 -150
  188. package/types/ojiepermana-angular-component-input.d.ts +27 -17
  189. package/types/ojiepermana-angular-component-item.d.ts +160 -84
  190. package/types/ojiepermana-angular-component-kanban.d.ts +157 -62
  191. package/types/ojiepermana-angular-component-kbd.d.ts +24 -15
  192. package/types/ojiepermana-angular-component-label.d.ts +19 -11
  193. package/types/ojiepermana-angular-component-menubar.d.ts +120 -90
  194. package/types/ojiepermana-angular-component-native-select.d.ts +37 -24
  195. package/types/ojiepermana-angular-component-navigation-menu.d.ts +157 -98
  196. package/types/ojiepermana-angular-component-pagination.d.ts +78 -28
  197. package/types/ojiepermana-angular-component-pillbox.d.ts +361 -204
  198. package/types/ojiepermana-angular-component-popover.d.ts +94 -64
  199. package/types/ojiepermana-angular-component-progress.d.ts +45 -17
  200. package/types/ojiepermana-angular-component-radio.d.ts +129 -53
  201. package/types/ojiepermana-angular-component-resizable.d.ts +160 -112
  202. package/types/ojiepermana-angular-component-scroll-area.d.ts +33 -15
  203. package/types/ojiepermana-angular-component-segmented-control.d.ts +94 -50
  204. package/types/ojiepermana-angular-component-select.d.ts +94 -77
  205. package/types/ojiepermana-angular-component-separator.d.ts +26 -14
  206. package/types/ojiepermana-angular-component-sheet.d.ts +226 -116
  207. package/types/ojiepermana-angular-component-skeleton.d.ts +13 -10
  208. package/types/ojiepermana-angular-component-slider.d.ts +140 -75
  209. package/types/ojiepermana-angular-component-spinner.d.ts +31 -13
  210. package/types/ojiepermana-angular-component-switch.d.ts +97 -40
  211. package/types/ojiepermana-angular-component-table.d.ts +102 -50
  212. package/types/ojiepermana-angular-component-tabs.d.ts +174 -115
  213. package/types/ojiepermana-angular-component-textarea.d.ts +27 -17
  214. package/types/ojiepermana-angular-component-timeline.d.ts +141 -59
  215. package/types/ojiepermana-angular-component-toast.d.ts +51 -55
  216. package/types/ojiepermana-angular-component-toggle-group.d.ts +159 -88
  217. package/types/ojiepermana-angular-component-toggle.d.ts +47 -25
  218. package/types/ojiepermana-angular-component-tooltip.d.ts +222 -132
  219. package/types/ojiepermana-angular-component-utils-core.d.ts +81 -90
  220. package/types/ojiepermana-angular-component-utils-overlay.d.ts +7 -11
  221. package/types/ojiepermana-angular-component-utils-scale.d.ts +20 -12
  222. package/types/ojiepermana-angular-component-utils.d.ts +2 -2
  223. package/types/ojiepermana-angular-component.d.ts +1 -2
  224. package/types/ojiepermana-angular-navigation-core.d.ts +46 -50
  225. package/types/ojiepermana-angular-navigation-icon.d.ts +9 -12
  226. package/types/ojiepermana-angular-navigation-service.d.ts +112 -115
  227. package/types/ojiepermana-angular-navigation-types.d.ts +166 -125
  228. package/types/ojiepermana-angular-navigation.d.ts +708 -375
  229. package/types/ojiepermana-angular-sdk.d.ts +69 -71
  230. package/types/ojiepermana-angular-theme-component-settings.d.ts +120 -86
  231. package/types/ojiepermana-angular-theme-layout-services.d.ts +119 -124
  232. package/types/ojiepermana-angular-theme-layout-types.d.ts +27 -31
  233. package/types/ojiepermana-angular-theme-layout-wrapper.d.ts +446 -187
  234. package/types/ojiepermana-angular-theme-layout.d.ts +201 -113
  235. package/types/ojiepermana-angular-theme-page-core.d.ts +136 -142
  236. package/types/ojiepermana-angular-theme-page-filter.d.ts +112 -62
  237. package/types/ojiepermana-angular-theme-page-overview.d.ts +28 -0
  238. package/types/ojiepermana-angular-theme-page-root.d.ts +172 -88
  239. package/types/ojiepermana-angular-theme-page-side.d.ts +89 -49
  240. package/types/ojiepermana-angular-theme-page-slots.d.ts +58 -37
  241. package/types/ojiepermana-angular-theme-page.d.ts +7 -5
  242. package/types/ojiepermana-angular-theme-shell-services.d.ts +119 -125
  243. package/types/ojiepermana-angular-theme-shell-types.d.ts +38 -41
  244. package/types/ojiepermana-angular-theme-shell.d.ts +139 -61
  245. package/types/ojiepermana-angular-theme-styles.d.ts +184 -196
  246. package/types/ojiepermana-angular-theme.d.ts +1 -2
  247. package/types/ojiepermana-angular.d.ts +5 -5
  248. package/fesm2022/ojiepermana-angular-navigation-navigation-badge-count.component-Be3IqzG4.mjs +0 -91
  249. package/fesm2022/ojiepermana-angular-navigation-navigation-dockbar-menu.component-Bc7DWK3R.mjs +0 -522
  250. package/fesm2022/ojiepermana-angular-navigation-navigation-flyout-menu.component-DA8VPEn7.mjs +0 -404
  251. package/fesm2022/ojiepermana-angular-navigation-navigation-horizontal.component-U2TJTzlW.mjs +0 -466
  252. package/fesm2022/ojiepermana-angular-navigation-ojiepermana-angular-navigation-CIUhmytH.mjs +0 -2668
@@ -1,166 +1,236 @@
1
- import { pie, arc } from 'd3-shape';
2
- import { readNumber, seriesColorVar, ChartContext, resolveChartStyle, ChartThemeRadius, ChartThemeSpace, resolveChartMargin, DEFAULT_POLAR_MARGIN_UNITS, setupPolarChart, ChartRovingFocus, ChartMarkFocus, ChartDataTable } from '@ojiepermana/angular/chart/core';
3
- import * as i0 from '@angular/core';
4
- import { inject, input, computed, output, Component } from '@angular/core';
5
-
1
+ import { arc, pie } from "d3-shape";
2
+ import { ChartContext, ChartDataTable, ChartMarkFocus, ChartRovingFocus, ChartThemeRadius, ChartThemeSpace, DEFAULT_POLAR_MARGIN_UNITS, readNumber, resolveChartMargin, resolveChartStyle, seriesColorVar, setupPolarChart } from "@ojiepermana/angular/chart/core";
3
+ import * as i0 from "@angular/core";
4
+ import { Component, computed, inject, input, output } from "@angular/core";
6
5
  function computePieLayout(input) {
7
- const { data, valueKey, nameKey, seriesKeys, hiddenSeriesKeys, innerWidth, innerHeight, innerRadius, padAngle, cornerRadius, startAngle, endAngle, activeIndex, activeOffset = 12, } = input;
8
- const outerRadius = Math.max(0, Math.min(innerWidth, innerHeight) / 2);
9
- const centerX = innerWidth / 2;
10
- const centerY = innerHeight / 2;
11
- // `datumIndex` is carried through the filter, so a slice keeps addressing the
12
- // row it came from however many siblings the legend has hidden.
13
- const entries = data
14
- .map((datum, datumIndex) => ({
15
- datum,
16
- datumIndex,
17
- seriesKey: seriesKeys?.[datumIndex] ?? String(datum[nameKey] ?? datumIndex),
18
- }))
19
- .filter((entry) => !hiddenSeriesKeys?.has(entry.seriesKey));
20
- if (entries.length === 0 || outerRadius === 0) {
21
- return { slices: [], centerX, centerY, outerRadius };
22
- }
23
- const pieGen = pie()
24
- .value((entry) => readNumber(entry.datum, valueKey))
25
- .sort(null)
26
- .padAngle(padAngle)
27
- .startAngle(startAngle)
28
- .endAngle(endAngle);
29
- const arcGen = arc()
30
- .innerRadius(innerRadius)
31
- .outerRadius(outerRadius)
32
- .cornerRadius(cornerRadius);
33
- const arcs = pieGen(entries);
34
- const slices = arcs.map((a) => {
35
- const { datum: d, datumIndex, seriesKey: key } = a.data;
36
- const centroid = arcGen.centroid(a);
37
- const magnitude = Math.hypot(centroid[0], centroid[1]) || 1;
38
- const isActive = datumIndex === activeIndex;
39
- return {
40
- seriesKey: key,
41
- name: String(d[nameKey] ?? key),
42
- value: readNumber(d, valueKey),
43
- datumIndex,
44
- color: seriesColorVar(key),
45
- arcPath: arcGen(a) ?? '',
46
- centroid,
47
- startAngle: a.startAngle,
48
- endAngle: a.endAngle,
49
- translateX: isActive ? (centroid[0] / magnitude) * activeOffset : 0,
50
- translateY: isActive ? (centroid[1] / magnitude) * activeOffset : 0,
51
- };
52
- });
53
- return { slices, centerX, centerY, outerRadius };
6
+ const { data, valueKey, nameKey, seriesKeys, hiddenSeriesKeys, innerWidth, innerHeight, innerRadius, padAngle, cornerRadius, startAngle, endAngle, activeIndex, activeOffset = 12 } = input;
7
+ const outerRadius = Math.max(0, Math.min(innerWidth, innerHeight) / 2);
8
+ const centerX = innerWidth / 2;
9
+ const centerY = innerHeight / 2;
10
+ const entries = data.map((datum, datumIndex) => ({
11
+ datum,
12
+ datumIndex,
13
+ seriesKey: seriesKeys?.[datumIndex] ?? String(datum[nameKey] ?? datumIndex)
14
+ })).filter((entry) => !hiddenSeriesKeys?.has(entry.seriesKey));
15
+ if (entries.length === 0 || outerRadius === 0) return {
16
+ slices: [],
17
+ centerX,
18
+ centerY,
19
+ outerRadius
20
+ };
21
+ const pieGen = pie().value((entry) => readNumber(entry.datum, valueKey)).sort(null).padAngle(padAngle).startAngle(startAngle).endAngle(endAngle);
22
+ const arcGen = arc().innerRadius(innerRadius).outerRadius(outerRadius).cornerRadius(cornerRadius);
23
+ return {
24
+ slices: pieGen(entries).map((a) => {
25
+ const { datum: d, datumIndex, seriesKey: key } = a.data;
26
+ const centroid = arcGen.centroid(a);
27
+ const magnitude = Math.hypot(centroid[0], centroid[1]) || 1;
28
+ const isActive = datumIndex === activeIndex;
29
+ return {
30
+ seriesKey: key,
31
+ name: String(d[nameKey] ?? key),
32
+ value: readNumber(d, valueKey),
33
+ datumIndex,
34
+ color: seriesColorVar(key),
35
+ arcPath: arcGen(a) ?? "",
36
+ centroid,
37
+ startAngle: a.startAngle,
38
+ endAngle: a.endAngle,
39
+ translateX: isActive ? centroid[0] / magnitude * activeOffset : 0,
40
+ translateY: isActive ? centroid[1] / magnitude * activeOffset : 0
41
+ };
42
+ }),
43
+ centerX,
44
+ centerY,
45
+ outerRadius
46
+ };
54
47
  }
55
-
56
- class PieChart {
57
- root = inject(ChartContext);
58
- data = input.required(/* @ts-ignore */
59
- ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
60
- valueKey = input.required(/* @ts-ignore */
61
- ...(ngDevMode ? [{ debugName: "valueKey" }] : /* istanbul ignore next */ []));
62
- nameKey = input.required(/* @ts-ignore */
63
- ...(ngDevMode ? [{ debugName: "nameKey" }] : /* istanbul ignore next */ []));
64
- seriesKeys = input(undefined, /* @ts-ignore */
65
- ...(ngDevMode ? [{ debugName: "seriesKeys" }] : /* istanbul ignore next */ []));
66
- /**
67
- * Presentational style of the chart.
68
- *
69
- * Replaces `styles`, which read like a CSS styles bag rather than a single
70
- * variant. Named `styleVariant` and not `variant` because `ChartBar` already
71
- * publishes a `variant` input for its grouped versus stacked axis, and one
72
- * name cannot mean two things across the family.
73
- */
74
- styleVariant = input(undefined, /* @ts-ignore */
75
- ...(ngDevMode ? [{ debugName: "styleVariant" }] : /* istanbul ignore next */ []));
76
- /**
77
- * @deprecated Use `styleVariant`. Still fully supported; when both are bound,
78
- * `styleVariant` wins. Due for removal in the next major.
79
- */
80
- styles = input('base', /* @ts-ignore */
81
- ...(ngDevMode ? [{ debugName: "styles" }] : /* istanbul ignore next */ []));
82
- /** The style actually in effect. Bind this, never `styles()`. */
83
- chartStyle = resolveChartStyle(this.styleVariant, this.styles);
84
- themeRadius = inject(ChartThemeRadius);
85
- themeSpace = inject(ChartThemeSpace);
86
- /**
87
- * Plot gutters. Leave it unset and they follow the theme-space density
88
- * axis; set it and your numbers win, unchanged, whatever the axis says.
89
- */
90
- margin = input(null, /* @ts-ignore */
91
- ...(ngDevMode ? [{ debugName: "margin" }] : /* istanbul ignore next */ []));
92
- /** The margin actually in effect. Bind this, never `margin()`. */
93
- plotMargin = resolveChartMargin(this.margin, DEFAULT_POLAR_MARGIN_UNITS, this.themeSpace);
94
- innerRadius = input(0, /* @ts-ignore */
95
- ...(ngDevMode ? [{ debugName: "innerRadius" }] : /* istanbul ignore next */ []));
96
- padAngle = input(0.01, /* @ts-ignore */
97
- ...(ngDevMode ? [{ debugName: "padAngle" }] : /* istanbul ignore next */ []));
98
- /**
99
- * Slice corner radius. Unset now means "follow the theme-radius axis", the
100
- * same contract `ChartBar` already offers, so a pie picks up the app's shape
101
- * language instead of being the one chart that stays sharp.
102
- *
103
- * Zero is still available, and still means square corners: it is a real value,
104
- * not the absence of one, which is why the default moved to `null`.
105
- */
106
- cornerRadius = input(null, /* @ts-ignore */
107
- ...(ngDevMode ? [{ debugName: "cornerRadius" }] : /* istanbul ignore next */ []));
108
- /** The slice corner radius actually in effect. */
109
- sliceCornerRadius = computed(() => this.cornerRadius() ?? this.themeRadius.px(), /* @ts-ignore */
110
- ...(ngDevMode ? [{ debugName: "sliceCornerRadius" }] : /* istanbul ignore next */ []));
111
- startAngle = input(-Math.PI / 2, /* @ts-ignore */
112
- ...(ngDevMode ? [{ debugName: "startAngle" }] : /* istanbul ignore next */ []));
113
- endAngle = input((3 * Math.PI) / 2, /* @ts-ignore */
114
- ...(ngDevMode ? [{ debugName: "endAngle" }] : /* istanbul ignore next */ []));
115
- showLabels = input(false, /* @ts-ignore */
116
- ...(ngDevMode ? [{ debugName: "showLabels" }] : /* istanbul ignore next */ []));
117
- activeIndex = input(undefined, /* @ts-ignore */
118
- ...(ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []));
119
- activeOffset = input(12, /* @ts-ignore */
120
- ...(ngDevMode ? [{ debugName: "activeOffset" }] : /* istanbul ignore next */ []));
121
- sliceClick = output();
122
- polar = setupPolarChart({ margin: () => this.plotMargin() });
123
- layout = computed(() => computePieLayout({
124
- data: this.data(),
125
- valueKey: this.valueKey(),
126
- nameKey: this.nameKey(),
127
- seriesKeys: this.seriesKeys(),
128
- hiddenSeriesKeys: this.root.hiddenSeries(),
129
- innerWidth: this.polar.innerWidth(),
130
- innerHeight: this.polar.innerHeight(),
131
- innerRadius: this.innerRadius(),
132
- padAngle: this.padAngle(),
133
- cornerRadius: this.sliceCornerRadius(),
134
- startAngle: this.startAngle(),
135
- endAngle: this.endAngle(),
136
- activeIndex: this.activeIndex(),
137
- activeOffset: this.activeOffset(),
138
- }), /* @ts-ignore */
139
- ...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
140
- ariaSummary = computed(() => `Pie chart, ${this.layout().slices.length} slices.`, /* @ts-ignore */
141
- ...(ngDevMode ? [{ debugName: "ariaSummary" }] : /* istanbul ignore next */ []));
142
- dataColumns = computed(() => [this.nameKey(), this.valueKey()], /* @ts-ignore */
143
- ...(ngDevMode ? [{ debugName: "dataColumns" }] : /* istanbul ignore next */ []));
144
- sliceAriaLabel(s) {
145
- return `${s.name}: ${s.value}`;
146
- }
147
- sliceTransform(s) {
148
- return s.translateX || s.translateY ? `translate(${s.translateX}, ${s.translateY})` : null;
149
- }
150
- emitClick(s) {
151
- this.sliceClick.emit({
152
- seriesKey: s.seriesKey,
153
- datumIndex: s.datumIndex,
154
- // `category` is the shared name for what this family calls `name`; both are
155
- // emitted so a handler written against either shape works.
156
- category: s.name,
157
- name: s.name,
158
- value: s.value,
159
- datum: this.data()[s.datumIndex],
160
- });
161
- }
162
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: PieChart, deps: [], target: i0.ɵɵFactoryTarget.Component });
163
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: PieChart, isStandalone: true, selector: "ChartPie", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, valueKey: { classPropertyName: "valueKey", publicName: "valueKey", isSignal: true, isRequired: true, transformFunction: null }, nameKey: { classPropertyName: "nameKey", publicName: "nameKey", isSignal: true, isRequired: true, transformFunction: null }, seriesKeys: { classPropertyName: "seriesKeys", publicName: "seriesKeys", isSignal: true, isRequired: false, transformFunction: null }, styleVariant: { classPropertyName: "styleVariant", publicName: "styleVariant", isSignal: true, isRequired: false, transformFunction: null }, styles: { classPropertyName: "styles", publicName: "styles", isSignal: true, isRequired: false, transformFunction: null }, margin: { classPropertyName: "margin", publicName: "margin", isSignal: true, isRequired: false, transformFunction: null }, innerRadius: { classPropertyName: "innerRadius", publicName: "innerRadius", isSignal: true, isRequired: false, transformFunction: null }, padAngle: { classPropertyName: "padAngle", publicName: "padAngle", isSignal: true, isRequired: false, transformFunction: null }, cornerRadius: { classPropertyName: "cornerRadius", publicName: "cornerRadius", isSignal: true, isRequired: false, transformFunction: null }, startAngle: { classPropertyName: "startAngle", publicName: "startAngle", isSignal: true, isRequired: false, transformFunction: null }, endAngle: { classPropertyName: "endAngle", publicName: "endAngle", isSignal: true, isRequired: false, transformFunction: null }, showLabels: { classPropertyName: "showLabels", publicName: "showLabels", isSignal: true, isRequired: false, transformFunction: null }, activeIndex: { classPropertyName: "activeIndex", publicName: "activeIndex", isSignal: true, isRequired: false, transformFunction: null }, activeOffset: { classPropertyName: "activeOffset", publicName: "activeOffset", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { sliceClick: "sliceClick" }, host: { properties: { "attr.data-style": "chartStyle()" }, classAttribute: "relative block h-full w-full" }, ngImport: i0, template: `
48
+ var PieChart = class PieChart {
49
+ root = inject(ChartContext);
50
+ data = input.required(...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
51
+ valueKey = input.required(...ngDevMode ? [{ debugName: "valueKey" }] : /* istanbul ignore next */ []);
52
+ nameKey = input.required(...ngDevMode ? [{ debugName: "nameKey" }] : /* istanbul ignore next */ []);
53
+ seriesKeys = input(void 0, ...ngDevMode ? [{ debugName: "seriesKeys" }] : /* istanbul ignore next */ []);
54
+ styleVariant = input(void 0, ...ngDevMode ? [{ debugName: "styleVariant" }] : /* istanbul ignore next */ []);
55
+ styles = input("base", ...ngDevMode ? [{ debugName: "styles" }] : /* istanbul ignore next */ []);
56
+ chartStyle = resolveChartStyle(this.styleVariant, this.styles);
57
+ themeRadius = inject(ChartThemeRadius);
58
+ themeSpace = inject(ChartThemeSpace);
59
+ margin = input(null, ...ngDevMode ? [{ debugName: "margin" }] : /* istanbul ignore next */ []);
60
+ plotMargin = resolveChartMargin(this.margin, DEFAULT_POLAR_MARGIN_UNITS, this.themeSpace);
61
+ innerRadius = input(0, ...ngDevMode ? [{ debugName: "innerRadius" }] : /* istanbul ignore next */ []);
62
+ padAngle = input(.01, ...ngDevMode ? [{ debugName: "padAngle" }] : /* istanbul ignore next */ []);
63
+ cornerRadius = input(null, ...ngDevMode ? [{ debugName: "cornerRadius" }] : /* istanbul ignore next */ []);
64
+ sliceCornerRadius = computed(() => this.cornerRadius() ?? this.themeRadius.px(), ...ngDevMode ? [{ debugName: "sliceCornerRadius" }] : /* istanbul ignore next */ []);
65
+ startAngle = input(-Math.PI / 2, ...ngDevMode ? [{ debugName: "startAngle" }] : /* istanbul ignore next */ []);
66
+ endAngle = input(3 * Math.PI / 2, ...ngDevMode ? [{ debugName: "endAngle" }] : /* istanbul ignore next */ []);
67
+ showLabels = input(false, ...ngDevMode ? [{ debugName: "showLabels" }] : /* istanbul ignore next */ []);
68
+ activeIndex = input(void 0, ...ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []);
69
+ activeOffset = input(12, ...ngDevMode ? [{ debugName: "activeOffset" }] : /* istanbul ignore next */ []);
70
+ sliceClick = output();
71
+ polar = setupPolarChart({ margin: () => this.plotMargin() });
72
+ layout = computed(() => computePieLayout({
73
+ data: this.data(),
74
+ valueKey: this.valueKey(),
75
+ nameKey: this.nameKey(),
76
+ seriesKeys: this.seriesKeys(),
77
+ hiddenSeriesKeys: this.root.hiddenSeries(),
78
+ innerWidth: this.polar.innerWidth(),
79
+ innerHeight: this.polar.innerHeight(),
80
+ innerRadius: this.innerRadius(),
81
+ padAngle: this.padAngle(),
82
+ cornerRadius: this.sliceCornerRadius(),
83
+ startAngle: this.startAngle(),
84
+ endAngle: this.endAngle(),
85
+ activeIndex: this.activeIndex(),
86
+ activeOffset: this.activeOffset()
87
+ }), ...ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []);
88
+ ariaSummary = computed(() => `Pie chart, ${this.layout().slices.length} slices.`, ...ngDevMode ? [{ debugName: "ariaSummary" }] : /* istanbul ignore next */ []);
89
+ dataColumns = computed(() => [this.nameKey(), this.valueKey()], ...ngDevMode ? [{ debugName: "dataColumns" }] : /* istanbul ignore next */ []);
90
+ sliceAriaLabel(s) {
91
+ return `${s.name}: ${s.value}`;
92
+ }
93
+ sliceTransform(s) {
94
+ return s.translateX || s.translateY ? `translate(${s.translateX}, ${s.translateY})` : null;
95
+ }
96
+ emitClick(s) {
97
+ this.sliceClick.emit({
98
+ seriesKey: s.seriesKey,
99
+ datumIndex: s.datumIndex,
100
+ category: s.name,
101
+ name: s.name,
102
+ value: s.value,
103
+ datum: this.data()[s.datumIndex]
104
+ });
105
+ }
106
+ static ɵfac = i0.ɵɵngDeclareFactory({
107
+ minVersion: "12.0.0",
108
+ version: "22.2.2",
109
+ ngImport: i0,
110
+ type: PieChart,
111
+ deps: [],
112
+ target: i0.ɵɵFactoryTarget.Component
113
+ });
114
+ static ɵcmp = i0.ɵɵngDeclareComponent({
115
+ minVersion: "17.0.0",
116
+ version: "22.2.2",
117
+ type: PieChart,
118
+ isStandalone: true,
119
+ selector: "ChartPie",
120
+ inputs: {
121
+ data: {
122
+ classPropertyName: "data",
123
+ publicName: "data",
124
+ isSignal: true,
125
+ isRequired: true,
126
+ transformFunction: null
127
+ },
128
+ valueKey: {
129
+ classPropertyName: "valueKey",
130
+ publicName: "valueKey",
131
+ isSignal: true,
132
+ isRequired: true,
133
+ transformFunction: null
134
+ },
135
+ nameKey: {
136
+ classPropertyName: "nameKey",
137
+ publicName: "nameKey",
138
+ isSignal: true,
139
+ isRequired: true,
140
+ transformFunction: null
141
+ },
142
+ seriesKeys: {
143
+ classPropertyName: "seriesKeys",
144
+ publicName: "seriesKeys",
145
+ isSignal: true,
146
+ isRequired: false,
147
+ transformFunction: null
148
+ },
149
+ styleVariant: {
150
+ classPropertyName: "styleVariant",
151
+ publicName: "styleVariant",
152
+ isSignal: true,
153
+ isRequired: false,
154
+ transformFunction: null
155
+ },
156
+ styles: {
157
+ classPropertyName: "styles",
158
+ publicName: "styles",
159
+ isSignal: true,
160
+ isRequired: false,
161
+ transformFunction: null
162
+ },
163
+ margin: {
164
+ classPropertyName: "margin",
165
+ publicName: "margin",
166
+ isSignal: true,
167
+ isRequired: false,
168
+ transformFunction: null
169
+ },
170
+ innerRadius: {
171
+ classPropertyName: "innerRadius",
172
+ publicName: "innerRadius",
173
+ isSignal: true,
174
+ isRequired: false,
175
+ transformFunction: null
176
+ },
177
+ padAngle: {
178
+ classPropertyName: "padAngle",
179
+ publicName: "padAngle",
180
+ isSignal: true,
181
+ isRequired: false,
182
+ transformFunction: null
183
+ },
184
+ cornerRadius: {
185
+ classPropertyName: "cornerRadius",
186
+ publicName: "cornerRadius",
187
+ isSignal: true,
188
+ isRequired: false,
189
+ transformFunction: null
190
+ },
191
+ startAngle: {
192
+ classPropertyName: "startAngle",
193
+ publicName: "startAngle",
194
+ isSignal: true,
195
+ isRequired: false,
196
+ transformFunction: null
197
+ },
198
+ endAngle: {
199
+ classPropertyName: "endAngle",
200
+ publicName: "endAngle",
201
+ isSignal: true,
202
+ isRequired: false,
203
+ transformFunction: null
204
+ },
205
+ showLabels: {
206
+ classPropertyName: "showLabels",
207
+ publicName: "showLabels",
208
+ isSignal: true,
209
+ isRequired: false,
210
+ transformFunction: null
211
+ },
212
+ activeIndex: {
213
+ classPropertyName: "activeIndex",
214
+ publicName: "activeIndex",
215
+ isSignal: true,
216
+ isRequired: false,
217
+ transformFunction: null
218
+ },
219
+ activeOffset: {
220
+ classPropertyName: "activeOffset",
221
+ publicName: "activeOffset",
222
+ isSignal: true,
223
+ isRequired: false,
224
+ transformFunction: null
225
+ }
226
+ },
227
+ outputs: { sliceClick: "sliceClick" },
228
+ host: {
229
+ properties: { "attr.data-style": "chartStyle()" },
230
+ classAttribute: "relative block h-full w-full"
231
+ },
232
+ ngImport: i0,
233
+ template: `
164
234
  <svg:svg
165
235
  ChartRovingFocus
166
236
  class="block h-full w-full overflow-visible"
@@ -218,15 +288,52 @@ class PieChart {
218
288
  [rowHeaderKey]="nameKey()"
219
289
  [label]="ariaSummary()"
220
290
  />
221
- `, isInline: true, dependencies: [{ kind: "directive", type: ChartRovingFocus, selector: "svg[ChartRovingFocus]" }, { kind: "directive", type: ChartMarkFocus, selector: "[ChartMarkFocus]" }, { kind: "component", type: ChartDataTable, selector: "ChartDataTable", inputs: ["data", "columns", "label", "rowHeaderKey"] }] });
222
- }
223
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: PieChart, decorators: [{
224
- type: Component,
225
- args: [{
226
- selector: 'ChartPie',
227
- imports: [ChartRovingFocus, ChartMarkFocus, ChartDataTable],
228
- host: { class: 'relative block h-full w-full', '[attr.data-style]': 'chartStyle()' },
229
- template: `
291
+ `,
292
+ isInline: true,
293
+ dependencies: [
294
+ {
295
+ kind: "directive",
296
+ type: ChartRovingFocus,
297
+ selector: "svg[ChartRovingFocus]"
298
+ },
299
+ {
300
+ kind: "directive",
301
+ type: ChartMarkFocus,
302
+ selector: "[ChartMarkFocus]"
303
+ },
304
+ {
305
+ kind: "component",
306
+ type: ChartDataTable,
307
+ selector: "ChartDataTable",
308
+ inputs: [
309
+ "data",
310
+ "columns",
311
+ "label",
312
+ "rowHeaderKey"
313
+ ]
314
+ }
315
+ ]
316
+ });
317
+ };
318
+ i0.ɵɵngDeclareClassMetadata({
319
+ minVersion: "12.0.0",
320
+ version: "22.2.2",
321
+ ngImport: i0,
322
+ type: PieChart,
323
+ decorators: [{
324
+ type: Component,
325
+ args: [{
326
+ selector: "ChartPie",
327
+ imports: [
328
+ ChartRovingFocus,
329
+ ChartMarkFocus,
330
+ ChartDataTable
331
+ ],
332
+ host: {
333
+ class: "relative block h-full w-full",
334
+ "[attr.data-style]": "chartStyle()"
335
+ },
336
+ template: `
230
337
  <svg:svg
231
338
  ChartRovingFocus
232
339
  class="block h-full w-full overflow-visible"
@@ -284,12 +391,134 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
284
391
  [rowHeaderKey]="nameKey()"
285
392
  [label]="ariaSummary()"
286
393
  />
287
- `,
288
- }]
289
- }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }], valueKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueKey", required: true }] }], nameKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "nameKey", required: true }] }], seriesKeys: [{ type: i0.Input, args: [{ isSignal: true, alias: "seriesKeys", required: false }] }], styleVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleVariant", required: false }] }], styles: [{ type: i0.Input, args: [{ isSignal: true, alias: "styles", required: false }] }], margin: [{ type: i0.Input, args: [{ isSignal: true, alias: "margin", required: false }] }], innerRadius: [{ type: i0.Input, args: [{ isSignal: true, alias: "innerRadius", required: false }] }], padAngle: [{ type: i0.Input, args: [{ isSignal: true, alias: "padAngle", required: false }] }], cornerRadius: [{ type: i0.Input, args: [{ isSignal: true, alias: "cornerRadius", required: false }] }], startAngle: [{ type: i0.Input, args: [{ isSignal: true, alias: "startAngle", required: false }] }], endAngle: [{ type: i0.Input, args: [{ isSignal: true, alias: "endAngle", required: false }] }], showLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabels", required: false }] }], activeIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeIndex", required: false }] }], activeOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeOffset", required: false }] }], sliceClick: [{ type: i0.Output, args: ["sliceClick"] }] } });
290
-
291
- /**
292
- * Generated bundle index. Do not edit.
293
- */
294
-
295
- export { PieChart, computePieLayout };
394
+ `
395
+ }]
396
+ }],
397
+ propDecorators: {
398
+ data: [{
399
+ type: i0.Input,
400
+ args: [{
401
+ isSignal: true,
402
+ alias: "data",
403
+ required: true
404
+ }]
405
+ }],
406
+ valueKey: [{
407
+ type: i0.Input,
408
+ args: [{
409
+ isSignal: true,
410
+ alias: "valueKey",
411
+ required: true
412
+ }]
413
+ }],
414
+ nameKey: [{
415
+ type: i0.Input,
416
+ args: [{
417
+ isSignal: true,
418
+ alias: "nameKey",
419
+ required: true
420
+ }]
421
+ }],
422
+ seriesKeys: [{
423
+ type: i0.Input,
424
+ args: [{
425
+ isSignal: true,
426
+ alias: "seriesKeys",
427
+ required: false
428
+ }]
429
+ }],
430
+ styleVariant: [{
431
+ type: i0.Input,
432
+ args: [{
433
+ isSignal: true,
434
+ alias: "styleVariant",
435
+ required: false
436
+ }]
437
+ }],
438
+ styles: [{
439
+ type: i0.Input,
440
+ args: [{
441
+ isSignal: true,
442
+ alias: "styles",
443
+ required: false
444
+ }]
445
+ }],
446
+ margin: [{
447
+ type: i0.Input,
448
+ args: [{
449
+ isSignal: true,
450
+ alias: "margin",
451
+ required: false
452
+ }]
453
+ }],
454
+ innerRadius: [{
455
+ type: i0.Input,
456
+ args: [{
457
+ isSignal: true,
458
+ alias: "innerRadius",
459
+ required: false
460
+ }]
461
+ }],
462
+ padAngle: [{
463
+ type: i0.Input,
464
+ args: [{
465
+ isSignal: true,
466
+ alias: "padAngle",
467
+ required: false
468
+ }]
469
+ }],
470
+ cornerRadius: [{
471
+ type: i0.Input,
472
+ args: [{
473
+ isSignal: true,
474
+ alias: "cornerRadius",
475
+ required: false
476
+ }]
477
+ }],
478
+ startAngle: [{
479
+ type: i0.Input,
480
+ args: [{
481
+ isSignal: true,
482
+ alias: "startAngle",
483
+ required: false
484
+ }]
485
+ }],
486
+ endAngle: [{
487
+ type: i0.Input,
488
+ args: [{
489
+ isSignal: true,
490
+ alias: "endAngle",
491
+ required: false
492
+ }]
493
+ }],
494
+ showLabels: [{
495
+ type: i0.Input,
496
+ args: [{
497
+ isSignal: true,
498
+ alias: "showLabels",
499
+ required: false
500
+ }]
501
+ }],
502
+ activeIndex: [{
503
+ type: i0.Input,
504
+ args: [{
505
+ isSignal: true,
506
+ alias: "activeIndex",
507
+ required: false
508
+ }]
509
+ }],
510
+ activeOffset: [{
511
+ type: i0.Input,
512
+ args: [{
513
+ isSignal: true,
514
+ alias: "activeOffset",
515
+ required: false
516
+ }]
517
+ }],
518
+ sliceClick: [{
519
+ type: i0.Output,
520
+ args: ["sliceClick"]
521
+ }]
522
+ }
523
+ });
524
+ export { PieChart, computePieLayout };