@orangelogic/design-system 2.69.0 → 2.70.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 (220) hide show
  1. package/library/chunks/AxisLabelRadial.BTpA5dYy.js +11 -0
  2. package/library/chunks/BaseColumnSeries.hIO71GLG.js +304 -0
  3. package/library/chunks/CandlestickSeries.w9C0GR9v.js +362 -0
  4. package/library/chunks/Circle.tOnnO-F-.js +17 -0
  5. package/library/chunks/ColumnSeries.Ckz75x1M.js +54 -0
  6. package/library/chunks/EditableAxisLabel.CCMTJT7K.js +445 -0
  7. package/library/chunks/EditableLabel.DPmicdjK.js +119 -0
  8. package/library/chunks/Gradient.BrDBLm8v.js +40 -0
  9. package/library/chunks/LinearGradient.CxfXxvMw.js +37 -0
  10. package/library/chunks/MonotoneXTension.CJMEHHj3.js +139 -0
  11. package/library/chunks/Picture.BNASYM-P.js +49 -0
  12. package/library/chunks/Polygon.Dr-GV2hn.js +70 -0
  13. package/library/chunks/ProgressPie.4mPA6xqm.js +234 -0
  14. package/library/chunks/RadialLabel.HfsGiN4x.js +88 -0
  15. package/library/chunks/Scrollbar.Bgg-RhjP.js +118 -0
  16. package/library/chunks/Slice.Dm56LTKj.js +120 -0
  17. package/library/chunks/Slider.FKJwoPq2.js +19 -0
  18. package/library/chunks/SpriteResizer.-qJDgug8.js +446 -0
  19. package/library/chunks/Triangle.BECgi7mc.js +21 -0
  20. package/library/chunks/ZoomTools.cgwuIB0e.js +199 -0
  21. package/library/chunks/___vite-browser-external_commonjs-proxy.C2tf3HsQ.js +8 -0
  22. package/library/chunks/{_baseUniq.Df-fLIBx.js → _baseUniq.BUihBa8c.js} +56 -53
  23. package/library/chunks/{_commonjsHelpers.ByX85dGu.js → _commonjsHelpers.DQNKXVTB.js} +2 -2
  24. package/library/chunks/accessors.BHk36ecy.js +11 -0
  25. package/library/chunks/am-chart.oZVBmpnn.js +18435 -0
  26. package/library/chunks/{animation.DfUHRQry.js → animation.DU8t6mrk.js} +1 -1
  27. package/library/chunks/{button.SoX-7UYy.js → button.CAAJPQFu.js} +3 -3
  28. package/library/chunks/{capitalize.WSkCXkNE.js → capitalize.CNStXZBq.js} +1 -1
  29. package/library/chunks/cardinal.BCA_LB0u.js +64 -0
  30. package/library/chunks/{color-swatch-group.Dx1fbSJx.js → color-swatch-group.CKHyWM8K.js} +6 -6
  31. package/library/chunks/{color-swatch.B7XXHxx1.js → color-swatch.BkpPCXd6.js} +2 -2
  32. package/library/chunks/colorPicker.C4w_vDjh.js +527 -0
  33. package/library/chunks/{confirm-popover.327ATuQH.js → confirm-popover.ZD74yDWw.js} +3 -3
  34. package/library/chunks/{content-builder.Bxi6k2LA.js → content-builder.B4Tqoc6M.js} +40 -34
  35. package/library/chunks/{cropper.BraEEykE.js → cropper.CQB3_qqG.js} +6937 -6935
  36. package/library/chunks/{dialog.eN3RUbwx.js → dialog.qSV5AjOE.js} +2 -2
  37. package/library/chunks/{dom.CZrJ64Dm.js → dom.BQVKDNd8.js} +1 -1
  38. package/library/chunks/{dot-pagination.Bek4w4zz.js → dot-pagination.BN_0ljfc.js} +2 -2
  39. package/library/chunks/exporting.BdjsEGF8.js +1407 -0
  40. package/library/chunks/{file-on-demand.BiC4cymk.js → file-on-demand.CXE4zf0J.js} +448 -386
  41. package/library/chunks/flow.D0FqdfOy.js +1594 -0
  42. package/library/chunks/{folder-select.DVEFgexx.js → folder-select.CPALQK22.js} +4 -4
  43. package/library/chunks/{form.CO12-VK0.js → form.DgwYWi0O.js} +1 -1
  44. package/library/chunks/gantt.DfUM7Gvb.js +2459 -0
  45. package/library/chunks/{header.Da5yvwdy.js → header.DXZ_5gLY.js} +2 -2
  46. package/library/chunks/hierarchy.5kfBCoGt.js +3561 -0
  47. package/library/chunks/{hub-connection.CfARlehM.js → hub-connection.Ot2odiCz.js} +1 -1
  48. package/library/chunks/{i18n.BMRLOAZR.js → i18n.C0iakJkV.js} +19 -11
  49. package/library/chunks/{iframe.BJizUE1A.js → iframe.BlzVfeBc.js} +2 -2
  50. package/library/chunks/{image.bndP5q2c.js → image.B3WjaCXP.js} +2 -2
  51. package/library/chunks/index.BkoLctE9.js +533 -0
  52. package/library/chunks/index.CZJTjkLp.js +142 -0
  53. package/library/chunks/{index.Bhnf0N8Q.js → index.CmVKj_wl.js} +7 -7
  54. package/library/chunks/index.DU0XUO4k.js +176 -0
  55. package/library/chunks/index.DcjJFMlq.js +1520 -0
  56. package/library/chunks/isObjectLike.z36Fu426.js +34 -0
  57. package/library/chunks/{isSymbol.huJ_Cvxt.js → isSymbol.L0C2ND_U.js} +1 -1
  58. package/library/chunks/json.BjaT7cyo.js +119 -0
  59. package/library/chunks/{list-editor.Du1h2Ms0.js → list-editor.CIAAFPco.js} +251 -222
  60. package/library/chunks/map.DbgNAGxD.js +3037 -0
  61. package/library/chunks/markerjs2.esm.B_9kjmye.js +1912 -0
  62. package/library/chunks/{option.Ce_wlnZj.js → option.ByVbmxUQ.js} +2 -2
  63. package/library/chunks/{pagination.DXu-mFAk.js → pagination.DPQn2fKX.js} +4 -4
  64. package/library/chunks/pdfmake.Bs7cMDH0.js +41224 -0
  65. package/library/chunks/percent.DO4FjAdu.js +902 -0
  66. package/library/chunks/{purify.es.BGaRrCfO.js → purify.es.BIuh5IAZ.js} +115 -115
  67. package/library/chunks/radar.Dd5fJVMg.js +789 -0
  68. package/library/chunks/{responsive.DgQTIrna.js → responsive.DL-wBD4P.js} +1 -1
  69. package/library/chunks/sliceGrouper.DA3aeuJ-.js +93 -0
  70. package/library/chunks/stock.BfI5MUyK.js +12684 -0
  71. package/library/chunks/{string.Cp_XNbnV.js → string.B_rEG27K.js} +1 -1
  72. package/library/chunks/{tab-group.B2pW__9H.js → tab-group.1h51o_Ly.js} +4 -4
  73. package/library/chunks/{table.5eWm9FfN.js → table.wVHv1Xze.js} +348 -327
  74. package/library/chunks/timeline.BxMLjB5J.js +837 -0
  75. package/library/chunks/timer.B39XOBYL.js +123 -0
  76. package/library/chunks/{toString.CRT5zqEU.js → toString.CL_lYXbK.js} +3 -3
  77. package/library/chunks/transform.BuqENXeT.js +50 -0
  78. package/library/chunks/{tree.Zls5YZ8z.js → tree.Bx0IGsWm.js} +2 -2
  79. package/library/chunks/venn.CxFupTb9.js +966 -0
  80. package/library/chunks/vfs_fonts.VJpdcrR6.js +9 -0
  81. package/library/chunks/watch.BCJD77bD.js +547 -0
  82. package/library/chunks/wc.ThQubbN2.js +255 -0
  83. package/library/chunks/xlsx.v-qkA-dg.js +25118 -0
  84. package/library/chunks/xy.q6e68du3.js +333 -0
  85. package/library/components/alert.js +2 -2
  86. package/library/components/am-chart.d.ts +3 -0
  87. package/library/components/am-chart.js +11 -0
  88. package/library/components/animated-image.js +1 -1
  89. package/library/components/animation.js +2 -2
  90. package/library/components/array-line-clamp.js +1 -1
  91. package/library/components/asset-link-format.js +7 -7
  92. package/library/components/atoms.js +166 -162
  93. package/library/components/avatar.js +1 -1
  94. package/library/components/border-input-group.js +1 -1
  95. package/library/components/breadcrumb-item.js +1 -1
  96. package/library/components/breadcrumb.js +1 -1
  97. package/library/components/button.js +4 -4
  98. package/library/components/checkbox.js +2 -2
  99. package/library/components/color-picker.js +4 -4
  100. package/library/components/color-swatch-group.js +7 -7
  101. package/library/components/color-swatch.js +3 -3
  102. package/library/components/confirm-popover.js +4 -4
  103. package/library/components/copy-button.js +2 -2
  104. package/library/components/corner-position-input-group.js +2 -2
  105. package/library/components/cropper.js +1 -1
  106. package/library/components/details.js +3 -2
  107. package/library/components/dialog.js +3 -3
  108. package/library/components/divider.js +1 -1
  109. package/library/components/dot-pagination.js +3 -3
  110. package/library/components/drawer.js +3 -3
  111. package/library/components/dropdown.js +2 -2
  112. package/library/components/dynamic-select.js +32 -30
  113. package/library/components/e-chart.d.ts +3 -0
  114. package/library/components/e-chart.js +47908 -0
  115. package/library/components/element-clamp.js +3 -3
  116. package/library/components/file-on-demand.js +10 -10
  117. package/library/components/folder-select.js +4 -4
  118. package/library/components/format-bytes.js +1 -1
  119. package/library/components/format-date.js +1 -1
  120. package/library/components/format-number.js +1 -1
  121. package/library/components/format-time.js +2 -2
  122. package/library/components/grid-item.js +1 -1
  123. package/library/components/header.js +3 -3
  124. package/library/components/hub-connection.js +2 -2
  125. package/library/components/icon-button.js +1 -1
  126. package/library/components/icon.js +1 -1
  127. package/library/components/iframe.js +3 -3
  128. package/library/components/image-comparer.js +2 -2
  129. package/library/components/image.js +3 -3
  130. package/library/components/include.js +1 -1
  131. package/library/components/input.js +3 -3
  132. package/library/components/line-clamp.js +1 -1
  133. package/library/components/list-editor.js +11 -8
  134. package/library/components/markdown.js +2 -2
  135. package/library/components/masonry.js +2 -2
  136. package/library/components/menu-item.js +2 -2
  137. package/library/components/menu.js +1 -1
  138. package/library/components/molecules.js +5 -5
  139. package/library/components/mutation-observer.js +1 -1
  140. package/library/components/option.js +3 -3
  141. package/library/components/organisms.js +2 -2
  142. package/library/components/pagination.js +5 -5
  143. package/library/components/popup.js +1 -1
  144. package/library/components/position-picker.js +1 -1
  145. package/library/components/progress-bar.js +1 -1
  146. package/library/components/progress-ring.js +1 -1
  147. package/library/components/qr-code.js +1 -1
  148. package/library/components/radio-button.js +1 -1
  149. package/library/components/radio-card.js +1 -1
  150. package/library/components/radio-group.js +2 -2
  151. package/library/components/radio.js +1 -1
  152. package/library/components/range.js +3 -3
  153. package/library/components/rating.js +2 -2
  154. package/library/components/relative-time.js +1 -1
  155. package/library/components/resize-observer.js +1 -1
  156. package/library/components/select.js +4 -4
  157. package/library/components/share-option-list.js +3 -3
  158. package/library/components/sidebar.js +1 -1
  159. package/library/components/size-input-group.js +2 -2
  160. package/library/components/spinner.js +1 -1
  161. package/library/components/split-panel.js +2 -2
  162. package/library/components/stepper.js +1 -1
  163. package/library/components/switch.js +2 -2
  164. package/library/components/tab-group.js +5 -5
  165. package/library/components/tab-panel.js +1 -1
  166. package/library/components/tab.js +2 -2
  167. package/library/components/table.js +5 -5
  168. package/library/components/tag.js +1 -1
  169. package/library/components/textarea.js +2 -2
  170. package/library/components/timecode.js +2 -2
  171. package/library/components/tooltip.js +2 -2
  172. package/library/components/tree-item.js +3 -3
  173. package/library/components/tree.js +3 -3
  174. package/library/components/typeface.js +2 -2
  175. package/library/components/types.js +27684 -27970
  176. package/library/components/video.js +1107 -1110
  177. package/library/package.json +1 -1
  178. package/library/packages/atoms/src/components/am-chart/am-chart.d.ts +45 -0
  179. package/library/packages/atoms/src/components/am-chart/am-chart.styles.d.ts +2 -0
  180. package/library/packages/atoms/src/components/am-chart/am-chart.utils.d.ts +23 -0
  181. package/library/packages/atoms/src/components/e-chart/e-chart-controller.d.ts +30 -0
  182. package/library/packages/atoms/src/components/e-chart/e-chart.d.ts +38 -0
  183. package/library/packages/atoms/src/components/e-chart/e-chart.styles.d.ts +2 -0
  184. package/library/packages/atoms/src/components/table/table.d.ts +21 -0
  185. package/library/packages/atoms/src/components/table/tabulator-tables/core/Tabulator.d.ts +1 -0
  186. package/library/packages/atoms/src/components/table/tabulator-tables/core/tools/DataLoader.d.ts +3 -1
  187. package/library/packages/atoms/src/index.d.ts +2 -0
  188. package/library/packages/events/src/cx-chart-plan-change.d.ts +10 -0
  189. package/library/packages/events/src/cx-dashboard-filter-change.d.ts +6 -0
  190. package/library/packages/events/src/cx-dashboard-table-load-more.d.ts +9 -0
  191. package/library/packages/events/src/cx-e-chart-drill-down.d.ts +16 -0
  192. package/library/packages/events/src/events.d.ts +4 -0
  193. package/library/packages/molecules/src/index.d.ts +1 -0
  194. package/library/packages/molecules/src/list-editor/list-editor.d.ts +7 -0
  195. package/library/packages/molecules/src/stat-card/stat-card.d.ts +81 -0
  196. package/library/packages/molecules/src/stat-card/stat-card.styles.d.ts +2 -0
  197. package/library/packages/molecules/src/storybook/storybook.d.ts +1 -0
  198. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +1 -1
  199. package/library/packages/organisms/src/content-builder/components/chart-plan-builder/chart-plan-builder.d.ts +88 -0
  200. package/library/packages/organisms/src/content-builder/components/chart-plan-builder/chart-plan-builder.styles.d.ts +2 -0
  201. package/library/packages/organisms/src/content-builder/components/chart-plan-builder/chart-plan-schema.d.ts +100 -0
  202. package/library/packages/organisms/src/content-builder/styleController.d.ts +2 -2
  203. package/library/packages/organisms/src/dashboard-filter/dashboard-filter.d.ts +83 -0
  204. package/library/packages/organisms/src/dashboard-filter/dashboard-filter.styles.d.ts +2 -0
  205. package/library/packages/organisms/src/dashboard-table/dashboard-table.d.ts +45 -0
  206. package/library/packages/organisms/src/dashboard-table/dashboard-table.styles.d.ts +2 -0
  207. package/library/packages/organisms/src/index.d.ts +3 -0
  208. package/library/packages/services/src/api/endpoints.d.ts +3 -0
  209. package/library/packages/types/src/am-chart.d.ts +22 -0
  210. package/library/packages/types/src/content-builder.d.ts +1 -0
  211. package/library/packages/types/src/stat-card.d.ts +19 -0
  212. package/library/packages/types/src/table.d.ts +4 -0
  213. package/library/packages/utils/src/custom-element/i18n.d.ts +8 -0
  214. package/library/react-web-component.d.ts +280 -4
  215. package/library/utils.js +8 -8
  216. package/package.json +1 -1
  217. package/library/chunks/_baseRest.ClTMQtN1.js +0 -67
  218. package/library/chunks/identity.ByMq8VxU.js +0 -6
  219. package/library/chunks/isObjectLike.D3cpZO39.js +0 -81
  220. package/library/chunks/watch.q1sEjPWL.js +0 -501
@@ -0,0 +1,37 @@
1
+ import { G as x } from "./Gradient.BrDBLm8v.js";
2
+ import { e as $, a as u, f as L, h as j, j as w } from "./am-chart.oZVBmpnn.js";
3
+ class f extends x {
4
+ /**
5
+ * @ignore
6
+ */
7
+ getFill(y) {
8
+ const g = this.get("rotation", 0);
9
+ let i = this.getBounds(y), s = i.left || 0, C = i.right || 0, a = i.top || 0, _ = i.bottom || 0, h = j(g), d = w(g), o = h * (C - s), r = d * (_ - a);
10
+ o == 0 && (o = 1), r == 0 && (r = 1);
11
+ let m = Math.max(o, r);
12
+ const b = this._root._renderer.createLinearGradient(s, a, s + m * h, a + m * d), l = this.get("stops");
13
+ if (l) {
14
+ let p = 0;
15
+ $(l, (e) => {
16
+ let n = e.offset;
17
+ u(n) || (n = p / (l.length - 1));
18
+ let c = e.opacity;
19
+ u(c) || (c = 1);
20
+ let t = e.color;
21
+ if (t) {
22
+ const G = e.lighten;
23
+ G && (t = L.lighten(t, G));
24
+ const N = e.brighten;
25
+ N && (t = L.brighten(t, N)), b.addColorStop(n, "rgba(" + t.r + "," + t.g + "," + t.b + "," + c + ")");
26
+ }
27
+ p++;
28
+ });
29
+ }
30
+ return b;
31
+ }
32
+ }
33
+ f.className = "LinearGradient";
34
+ f.classNames = x.classNames.concat([f.className]);
35
+ export {
36
+ f as L
37
+ };
@@ -0,0 +1,139 @@
1
+ class y {
2
+ constructor(s, i) {
3
+ this._line = 0, this._point = 0, this._x0 = 0, this._x1 = 0, this._y0 = 0, this._y1 = 0, this._t0 = 0, this._tension = 0, this._context = s, this._tension = i;
4
+ }
5
+ areaStart() {
6
+ this._line = 0;
7
+ }
8
+ areaEnd() {
9
+ this._line = NaN;
10
+ }
11
+ lineStart() {
12
+ this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN, this._point = 0;
13
+ }
14
+ lineEnd() {
15
+ switch (this._point) {
16
+ case 2:
17
+ this._context.lineTo(this._x1, this._y1);
18
+ break;
19
+ case 3:
20
+ r(this, this._t0, x(this, this._t0));
21
+ break;
22
+ }
23
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
24
+ }
25
+ point(s, i) {
26
+ [s, i] = [i, s];
27
+ let n = NaN;
28
+ if (s = +s, i = +i, !(s === this._x1 && i === this._y1)) {
29
+ switch (this._point) {
30
+ case 0:
31
+ this._point = 1, this._line ? this._context.lineTo(i, s) : this._context.moveTo(i, s);
32
+ break;
33
+ case 1:
34
+ this._point = 2;
35
+ break;
36
+ case 2:
37
+ this._point = 3, r(this, x(this, n = a(this, s, i)), n);
38
+ break;
39
+ default:
40
+ r(this, this._t0, n = a(this, s, i));
41
+ break;
42
+ }
43
+ this._x0 = this._x1, this._x1 = s, this._y0 = this._y1, this._y1 = i, this._t0 = n;
44
+ }
45
+ }
46
+ }
47
+ function f(t) {
48
+ function s(i) {
49
+ return new y(i, t);
50
+ }
51
+ return s.tension = function(i) {
52
+ return f(+i);
53
+ }, s;
54
+ }
55
+ function l(t) {
56
+ return t < 0 ? -1 : 1;
57
+ }
58
+ function a(t, s, i) {
59
+ let n = t._x1 - t._x0, _ = s - t._x1, e = (t._y1 - t._y0) / (n || _ < 0 && -0), h = (i - t._y1) / (_ || n < 0 && -0), o = (e * _ + h * n) / (n + _);
60
+ return (l(e) + l(h)) * Math.min(Math.abs(e), Math.abs(h), 0.5 * Math.abs(o)) || 0;
61
+ }
62
+ function x(t, s) {
63
+ let i = t._x1 - t._x0;
64
+ return i ? (3 * (t._y1 - t._y0) / i - s) / 2 : s;
65
+ }
66
+ function r(t, s, i) {
67
+ let n = t._x0, _ = t._y0, e = t._x1, h = t._y1, o = (e - n) / 1.5 * (1 - t._tension);
68
+ t._context.bezierCurveTo(_ + o * s, n + o, h - o * i, e - o, h, e);
69
+ }
70
+ class T {
71
+ constructor(s, i) {
72
+ this._line = 0, this._point = 0, this._x0 = 0, this._x1 = 0, this._y0 = 0, this._y1 = 0, this._t0 = 0, this._tension = 0, this._context = s, this._tension = i;
73
+ }
74
+ areaStart() {
75
+ this._line = 0;
76
+ }
77
+ areaEnd() {
78
+ this._line = NaN;
79
+ }
80
+ lineStart() {
81
+ this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN, this._point = 0;
82
+ }
83
+ lineEnd() {
84
+ switch (this._point) {
85
+ case 2:
86
+ this._context.lineTo(this._x1, this._y1);
87
+ break;
88
+ case 3:
89
+ c(this, this._t0, b(this, this._t0));
90
+ break;
91
+ }
92
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
93
+ }
94
+ point(s, i) {
95
+ let n = NaN;
96
+ if (s = +s, i = +i, !(s === this._x1 && i === this._y1)) {
97
+ switch (this._point) {
98
+ case 0:
99
+ this._point = 1, this._line ? this._context.lineTo(s, i) : this._context.moveTo(s, i);
100
+ break;
101
+ case 1:
102
+ this._point = 2;
103
+ break;
104
+ case 2:
105
+ this._point = 3, c(this, b(this, n = p(this, s, i)), n);
106
+ break;
107
+ default:
108
+ c(this, this._t0, n = p(this, s, i));
109
+ break;
110
+ }
111
+ this._x0 = this._x1, this._x1 = s, this._y0 = this._y1, this._y1 = i, this._t0 = n;
112
+ }
113
+ }
114
+ }
115
+ function k(t) {
116
+ function s(i) {
117
+ return new T(i, t);
118
+ }
119
+ return s;
120
+ }
121
+ function u(t) {
122
+ return t < 0 ? -1 : 1;
123
+ }
124
+ function p(t, s, i) {
125
+ let n = t._x1 - t._x0, _ = s - t._x1, e = (t._y1 - t._y0) / (n || _ < 0 && -0), h = (i - t._y1) / (_ || n < 0 && -0), o = (e * _ + h * n) / (n + _);
126
+ return (u(e) + u(h)) * Math.min(Math.abs(e), Math.abs(h), 0.5 * Math.abs(o)) || 0;
127
+ }
128
+ function b(t, s) {
129
+ let i = t._x1 - t._x0;
130
+ return i ? (3 * (t._y1 - t._y0) / i - s) / 2 : s;
131
+ }
132
+ function c(t, s, i) {
133
+ let n = t._x0, _ = t._y0, e = t._x1, h = t._y1, o = (e - n) / 1.5 * (1 - t._tension);
134
+ t._context.bezierCurveTo(n + o, _ + o * s, e - o, h - o * i, e, h);
135
+ }
136
+ export {
137
+ k as a,
138
+ f as c
139
+ };
@@ -0,0 +1,49 @@
1
+ import { S as d, a as e } from "./am-chart.oZVBmpnn.js";
2
+ class a extends d {
3
+ constructor() {
4
+ super(...arguments), this._display = this._root._renderer.makePicture(void 0);
5
+ }
6
+ _changed() {
7
+ if (super._changed(), this.isDirty("width")) {
8
+ const i = this.get("width");
9
+ this._display.width = e(i) ? i : void 0;
10
+ }
11
+ if (this.isDirty("height")) {
12
+ const i = this.get("height");
13
+ this._display.height = e(i) ? i : void 0;
14
+ }
15
+ if (this.isDirty("shadowColor")) {
16
+ this._display.clear();
17
+ const i = this.get("shadowColor");
18
+ this._display.shadowColor = i ?? void 0;
19
+ }
20
+ this.isDirty("shadowBlur") && (this._display.clear(), this._display.shadowBlur = this.get("shadowBlur")), this.isDirty("shadowOffsetX") && (this._display.clear(), this._display.shadowOffsetX = this.get("shadowOffsetX")), this.isDirty("shadowOffsetY") && (this._display.clear(), this._display.shadowOffsetY = this.get("shadowOffsetY")), this.isDirty("shadowOpacity") && (this._display.clear(), this._display.shadowOpacity = this.get("shadowOpacity")), (this.isDirty("src") || this.isDirty("cors")) && (this._display.clear(), this._load());
21
+ }
22
+ _load() {
23
+ const i = this.get("src");
24
+ if (i) {
25
+ const t = new Image();
26
+ t.crossOrigin = this.get("cors", "anonymous"), t.src = i;
27
+ const s = this.events;
28
+ t.decode().then(() => {
29
+ this._display.image = t, this._updateSize(), !s.isDisposed() && s.isEnabled("loaded") && s.dispatch("loaded", { type: "loaded", target: this });
30
+ }).catch((h) => {
31
+ !s.isDisposed() && s.isEnabled("loaderror") && s.dispatch("loaderror", { type: "loaderror", target: this });
32
+ });
33
+ }
34
+ }
35
+ _updateSize() {
36
+ super._updateSize();
37
+ const i = this._display.image;
38
+ if (i) {
39
+ let t = this.getPrivate("width", this.get("width")), s = this.getPrivate("height", this.get("height"));
40
+ const h = i.width && i.height ? i.width / i.height : 0;
41
+ e(t) && e(s) ? (this._display.width = t, this._display.height = s) : e(t) && h ? s = t / h : e(s) && h ? t = s * h : (t = i.width, s = i.height), e(t) && (this._display.width = t), e(s) && (this._display.height = s), this.markDirtyBounds(), this.markDirty();
42
+ }
43
+ }
44
+ }
45
+ a.className = "Picture";
46
+ a.classNames = d.classNames.concat([a.className]);
47
+ export {
48
+ a as P
49
+ };
@@ -0,0 +1,70 @@
1
+ import { G as f, e as v, l as m } from "./am-chart.oZVBmpnn.js";
2
+ class P extends f {
3
+ _beforeChanged() {
4
+ if (super._beforeChanged(), this.isDirty("coordinates")) {
5
+ const i = [], n = this.get("coordinates");
6
+ n && v(n, (e) => {
7
+ i.push({ x: e[0], y: e[1] });
8
+ }), this.set("points", i);
9
+ }
10
+ if (this.isPrivateDirty("points") && (this._clear = !0), this.isDirty("points")) {
11
+ this._clear = !0;
12
+ const i = this.get("points"), n = this._prevSettings.points;
13
+ if (n) {
14
+ if (i) {
15
+ let s = m(i), o = m(n), t = s.length, p = o.length;
16
+ if (t > p) {
17
+ let c = m(s);
18
+ for (let a = 0; a < t; a++) {
19
+ let y = Math.floor(a / t * p);
20
+ c[a] = { x: o[y].x, y: o[y].y };
21
+ }
22
+ o = c;
23
+ } else if (p > t) {
24
+ let c = m(o);
25
+ for (let a = 0; a < p; a++) {
26
+ let y = Math.floor(a / p * t);
27
+ c[a] = { x: s[y].x, y: s[y].y };
28
+ }
29
+ s = c;
30
+ }
31
+ this.setPrivateRaw("previousPoints", o), this.setPrivateRaw("points", s), this.morphAnimation = this.animatePrivate({ key: "morphProgress", from: 0, to: 1, duration: this.get("animationDuration", 0), easing: this.get("animationEasing") }), this._root.events.once("frameended", () => {
32
+ this._markDirtyPrivateKey("morphProgress");
33
+ });
34
+ }
35
+ } else
36
+ this.setPrivateRaw("previousPoints", i), this.setPrivateRaw("points", i);
37
+ let e = 1 / 0, h = -1 / 0, r = 1 / 0, l = -1 / 0;
38
+ if (i)
39
+ for (let s = 1, o = i.length; s < o; s++) {
40
+ const t = i[s];
41
+ e = Math.min(e, t.x), h = Math.max(h, t.x), r = Math.min(r, t.y), l = Math.max(l, t.y);
42
+ }
43
+ this.setPrivate("minX", e), this.setPrivate("maxX", h), this.setPrivate("minY", r), this.setPrivate("maxY", r);
44
+ }
45
+ this.isPrivateDirty("morphProgress") && (this._clear = !0);
46
+ }
47
+ _changed() {
48
+ super._changed(), this._clear && this._draw();
49
+ }
50
+ _draw() {
51
+ const i = this.getPrivate("previousPoints"), n = this.getPrivate("points"), e = this.getPrivate("morphProgress", 1);
52
+ if (n && i) {
53
+ const h = n[0], r = i[0];
54
+ h && this._display.moveTo(r.x + (h.x - r.x) * e, r.y + (h.y - r.y) * e);
55
+ for (let l = 1, s = n.length; l < s; l++) {
56
+ const o = n[l], t = i[l];
57
+ this._display.lineTo(t.x + (o.x - t.x) * e, t.y + (o.y - t.y) * e);
58
+ }
59
+ this._display.closePath();
60
+ }
61
+ }
62
+ _updateSize() {
63
+ this.markDirty(), this._clear = !0;
64
+ }
65
+ }
66
+ P.className = "Polygon";
67
+ P.classNames = f.classNames.concat([P.className]);
68
+ export {
69
+ P
70
+ };
@@ -0,0 +1,234 @@
1
+ import { B as D, s as E, c as C, g as F, ai as H, G as A, C as u, aj as k, ak as L, a as K, w as W, d as z, b as G, r as T, x as V, H as X } from "./am-chart.oZVBmpnn.js";
2
+ import { T as m } from "./Triangle.BECgi7mc.js";
3
+ import { E as Y } from "./EditableLabel.DPmicdjK.js";
4
+ import { S as M } from "./Slice.Dm56LTKj.js";
5
+ import { C as j } from "./Circle.tOnnO-F-.js";
6
+ class _ extends D {
7
+ _afterNew() {
8
+ super._afterNew(), this.addTag("confirm"), E("keyboardevents") && this._disposers.push(C(document, "keydown", (t) => {
9
+ const e = F(t);
10
+ this.get("active") && e == "Escape" && this._cancel();
11
+ })), this._disposers.push(C(document, "click", () => {
12
+ this._ignoreClick || this._cancel(), this._ignoreClick = !1;
13
+ })), this.events.on("click", () => {
14
+ this.get("active") || (this._ignoreClick = !0), this._confirm();
15
+ });
16
+ }
17
+ _cancel() {
18
+ this.get("active") && (this.events.dispatch("cancelled", {
19
+ type: "cancelled",
20
+ target: this
21
+ }), this.set("active", !1));
22
+ }
23
+ _confirm() {
24
+ this.get("active") && (this.events.dispatch("confirmed", {
25
+ type: "confirmed",
26
+ target: this
27
+ }), this.set("active", !1), this.isFocus() && this.setTimeout(() => {
28
+ this.set("active", !1), H();
29
+ }, 10));
30
+ }
31
+ _prepareChildren() {
32
+ super._prepareChildren();
33
+ }
34
+ }
35
+ _.className = "ConfirmButton";
36
+ _.classNames = D.classNames.concat([_.className]);
37
+ class c extends A {
38
+ _beforeChanged() {
39
+ super._beforeChanged(), this.isDirty("points") && (this._clear = !0);
40
+ }
41
+ static makeOrthogonal(t) {
42
+ if (t.length > 1) {
43
+ const e = [];
44
+ for (let n = 0; n < t.length - 1; n++) {
45
+ const a = t[n], i = t[n + 1];
46
+ e.push(a), a.x !== i.x && a.y !== i.y && e.push({ x: i.x, y: a.y });
47
+ }
48
+ e.push(t[t.length - 1]), t = e;
49
+ }
50
+ return t;
51
+ }
52
+ /**
53
+ * Handles changes and redraws the orthogonal line with optional rounded corners.
54
+ */
55
+ _changed() {
56
+ if (super._changed(), this._clear) {
57
+ const t = this._display;
58
+ let e = this.get("points", []);
59
+ if (e.length === 0)
60
+ return;
61
+ e = c.makeOrthogonal(e), t.moveTo(e[0].x, e[0].y);
62
+ for (let n = 1; n < e.length; n++) {
63
+ let a = this.get("cornerRadius", 0);
64
+ const i = e[n - 1], s = e[n], r = e[n + 1], d = s.y === i.y && s.x !== i.x, p = s.x === i.x && s.y !== i.y, h = r && (d && r.y !== s.y || p && r.x !== s.x);
65
+ if (a > 0 && r && h) {
66
+ if (p) {
67
+ a = Math.min(a, Math.abs(s.x - r.x) / 2, Math.abs(s.y - i.y) / 2);
68
+ const o = Math.sign(s.y - i.y);
69
+ t.lineTo(s.x, s.y - a * o);
70
+ const l = r.x < s.x ? -1 : 1;
71
+ t.arcTo(s.x, s.y, s.x + a * l, s.y, a);
72
+ } else if (d) {
73
+ a = Math.min(a, Math.abs(s.y - r.y) / 2, Math.abs(s.x - i.x) / 2);
74
+ const o = Math.sign(s.x - i.x);
75
+ t.lineTo(s.x - a * o, s.y);
76
+ const l = r.y < s.y ? -1 : 1;
77
+ t.arcTo(s.x, s.y, s.x, s.y + a * l, a);
78
+ }
79
+ } else
80
+ t.lineTo(s.x, s.y);
81
+ }
82
+ }
83
+ }
84
+ }
85
+ c.className = "OrthogonalLine";
86
+ c.classNames = A.classNames.concat([c.className]);
87
+ class b extends u {
88
+ constructor() {
89
+ super(...arguments), this.line = this.children.push(c.new(this._root, { themeTags: ["line"] })), this.hitLine = this.children.push(c.new(this._root, { themeTags: ["hit"] })), this.startArrow = this.children.push(m.new(this._root, {
90
+ themeTags: ["start", "arrow"]
91
+ })), this.endArrow = this.children.push(m.new(this._root, {
92
+ themeTags: ["end", "arrow"]
93
+ }));
94
+ }
95
+ _afterNew() {
96
+ this.addTag("link"), super._afterNew();
97
+ }
98
+ _updateChildren() {
99
+ if (super._updateChildren(), this.isDirty("points")) {
100
+ let t = c.makeOrthogonal(this.get("points", []));
101
+ this.line.set("points", t), this.hitLine.set("points", t);
102
+ const e = this.startArrow, n = this.endArrow, a = t.length;
103
+ if (a > 1) {
104
+ const [i, s] = t;
105
+ e.setAll({
106
+ x: i.x,
107
+ y: i.y,
108
+ rotation: k(i, s) - 90
109
+ });
110
+ const r = t[a - 1], d = t[a - 2];
111
+ n.setAll({
112
+ x: r.x,
113
+ y: r.y,
114
+ rotation: k(d, r) + 90
115
+ });
116
+ } else if (a === 1) {
117
+ const [i] = t;
118
+ e.setAll({ x: i.x, y: i.y, rotation: 0 }), n.setAll({ x: i.x, y: i.y, rotation: 0 });
119
+ }
120
+ }
121
+ }
122
+ }
123
+ b.className = "Link";
124
+ b.classNames = u.classNames.concat([b.className]);
125
+ class x extends L {
126
+ _beforeChanged() {
127
+ super._beforeChanged(), this.isDirty("gap") && (this._clear = !0);
128
+ }
129
+ _draw() {
130
+ super._draw();
131
+ const t = this.get("width", 100), e = this.get("height", 100), n = this.get("gap", 0), a = this.get("strokeWidth", 1);
132
+ if (!n)
133
+ this._display.moveTo(0, 0), this._display.lineTo(t, 0);
134
+ else {
135
+ let r = n + a, d = e / r, p = this.get("angle", 0) * Math.PI / 180;
136
+ if (p === 0)
137
+ for (let h = -d; h < d * 2; h++) {
138
+ const o = Math.round(h * r - r / 2) + 0.5;
139
+ this._display.moveTo(-t, o), this._display.lineTo(t * 2, o);
140
+ }
141
+ else {
142
+ const h = Math.cos(p), o = Math.sin(p), l = Math.sqrt(t * t + e * e) * 2, S = r / Math.max(Math.abs(h), Math.abs(o)), N = Math.ceil(l / S) * 2;
143
+ for (let y = -N; y < N; y++) {
144
+ const f = y * r, B = f * o - l * h, O = f * h + l * o, P = f * o + l * h, R = f * h - l * o;
145
+ this._display.moveTo(B, O), this._display.lineTo(P, R);
146
+ }
147
+ }
148
+ }
149
+ this._display.lineStyle(a, this.get("color"), this.get("colorOpacity"));
150
+ let i = this.get("strokeDasharray");
151
+ K(i) && (i < 0.5 ? i = [0] : i = [i]), this._display.setLineDash(i);
152
+ const s = this.get("strokeDashoffset");
153
+ s && this._display.setLineDashOffset(s), this._display.endStroke();
154
+ }
155
+ }
156
+ x.className = "LinePattern";
157
+ x.classNames = L.classNames.concat([x.className]);
158
+ class v extends u {
159
+ constructor() {
160
+ super(...arguments), this.label = this.children.push(Y.new(this._root, {})), this.buttonsContainer = this.children.push(u.new(this._root, { themeTags: ["buttons"] })), this.upButton = this.buttonsContainer.children.push(m.new(this._root, { themeTags: ["upbutton"] })), this.downButton = this.buttonsContainer.children.push(m.new(this._root, { themeTags: ["downbutton"] }));
161
+ }
162
+ _afterNew() {
163
+ this.addTag("numericstepper"), this.set("layout", this._root.horizontalLayout), this.label.adapters.add("text", (t) => (t && t.replace(/\D/g, ""), t === "" && (t = "0"), t)), this.set("background", W.new(this._root, {
164
+ fillOpacity: 0,
165
+ fill: z(16777215)
166
+ })), this.buttonsContainer.states.create("hidden", {
167
+ opacity: 0,
168
+ visible: !0
169
+ }), this.events.on("pointerover", () => {
170
+ this.buttonsContainer.set("active", !0);
171
+ }), this.events.on("pointerout", () => {
172
+ this.buttonsContainer.set("active", !1);
173
+ }), this.label.on("text", (t) => {
174
+ if (t) {
175
+ const e = parseFloat(t);
176
+ isNaN(e) || this.set("value", e);
177
+ }
178
+ }), this.upButton.events.on("click", () => {
179
+ this.set("value", this.get("value", 0) + 1);
180
+ }), this.downButton.events.on("click", () => {
181
+ this.set("value", Math.max(0, this.get("value", 0) - 1));
182
+ }), super._afterNew();
183
+ }
184
+ _updateChildren() {
185
+ super._updateChildren();
186
+ const t = this.get("value", 0), e = this.label;
187
+ if (this.isDirty("value") && e.set("text", t.toString()), this.isDirty("disabled")) {
188
+ const n = this.get("disabled", !1);
189
+ this.set("interactive", !n), this.upButton.set("interactive", !n), this.downButton.set("interactive", !n), n ? (this.label.set("editOn", "none"), this.buttonsContainer.hide(0)) : (this.label.set("editOn", "click"), this.buttonsContainer.show(0));
190
+ }
191
+ }
192
+ }
193
+ v.className = "NumericStepper";
194
+ v.classNames = u.classNames.concat([v.className]);
195
+ class w extends u {
196
+ constructor() {
197
+ super(...arguments), this.circle = this.children.push(j.new(this._root, {
198
+ themeTags: ["background"]
199
+ })), this.label = this.children.push(G.new(this._root, {})), this.slice = this.children.push(M.new(this._root, { isMeasured: !1 })), this.backgroundSlice = this.children.push(M.new(this._root, { themeTags: ["background"] }));
200
+ }
201
+ _afterNew() {
202
+ this.addTag("progresspie"), super._afterNew();
203
+ }
204
+ _updateChildren() {
205
+ if (super._updateChildren(), this.isDirty("width") || this.isDirty("height") || this.isDirty("radius") || this.isDirty("innerRadius")) {
206
+ const t = this.innerWidth(), e = this.innerHeight(), n = T(this.get("radius", V), Math.min(t, e) / 2), a = T(this.get("innerRadius", X(80)), n);
207
+ this.slice.setAll({
208
+ radius: n,
209
+ innerRadius: a
210
+ }), this.backgroundSlice.setAll({
211
+ radius: n,
212
+ innerRadius: a
213
+ }), this.circle.set("radius", n);
214
+ }
215
+ if (this.isDirty("value")) {
216
+ const t = this.get("value", 0);
217
+ this.slice.set("arc", t * 360), this.backgroundSlice.set("arc", 360), this.label.setAll({
218
+ text: this.getNumberFormatter().format(t * 100, this.get("numberFormat", "#'"))
219
+ }), this.root.events.once("frameended", () => {
220
+ this.label.markDirtyKey("text");
221
+ });
222
+ }
223
+ }
224
+ }
225
+ w.className = "ProgressPie";
226
+ w.classNames = u.classNames.concat([w.className]);
227
+ export {
228
+ _ as C,
229
+ x as L,
230
+ v as N,
231
+ c as O,
232
+ w as P,
233
+ b as a
234
+ };
@@ -0,0 +1,88 @@
1
+ import { n as c, o as x, b as f, r as R, p as m, q as p, P as D, h as u, j as y } from "./am-chart.oZVBmpnn.js";
2
+ class h extends c {
3
+ constructor() {
4
+ super(...arguments), this._display = this._root._renderer.makeRadialText("", this.textStyle);
5
+ }
6
+ _afterNew() {
7
+ super._afterNew();
8
+ }
9
+ _beforeChanged() {
10
+ super._beforeChanged(), this._display.clear(), this.isDirty("textType") && (this._display.textType = this.get("textType"), this.markDirtyBounds()), this.isDirty("radius") && (this._display.radius = this.get("radius"), this.markDirtyBounds()), this.isDirty("startAngle") && (this._display.startAngle = (this.get("startAngle", 0) + 90) * x, this.markDirtyBounds()), this.isDirty("inside") && (this._display.inside = this.get("inside"), this.markDirtyBounds()), this.isDirty("orientation") && (this._display.orientation = this.get("orientation"), this.markDirtyBounds()), this.isDirty("kerning") && (this._display.kerning = this.get("kerning"), this.markDirtyBounds());
11
+ }
12
+ }
13
+ h.className = "RadialText";
14
+ h.classNames = c.classNames.concat([h.className]);
15
+ class g extends f {
16
+ constructor() {
17
+ super(...arguments), this._flipped = !1;
18
+ }
19
+ _afterNew() {
20
+ this._textKeys.push("textType", "kerning"), super._afterNew();
21
+ }
22
+ _makeText() {
23
+ this._text = this.children.push(h.new(this._root, {}));
24
+ }
25
+ /**
26
+ * Returns base radius in pixels.
27
+ *
28
+ * @return Base radius
29
+ */
30
+ baseRadius() {
31
+ const t = this.getPrivate("radius", 0), a = this.getPrivate("innerRadius", 0), i = this.get("baseRadius", 0);
32
+ return a + R(i, t - a);
33
+ }
34
+ /**
35
+ * Returns radius adjustment in pixels.
36
+ *
37
+ * @return Radius
38
+ */
39
+ radius() {
40
+ const t = this.get("inside", !1);
41
+ return this.baseRadius() + this.get("radius", 0) * (t ? -1 : 1);
42
+ }
43
+ _updateChildren() {
44
+ if (super._updateChildren(), this.isDirty("baseRadius") || this.isPrivateDirty("radius") || this.isPrivateDirty("innerRadius") || this.isDirty("labelAngle") || this.isDirty("radius") || this.isDirty("inside") || this.isDirty("orientation") || this.isDirty("textType")) {
45
+ const t = this.get("textType", "adjusted"), a = this.get("inside", !1), i = this.get("orientation");
46
+ let s = m(this.get("labelAngle", 0));
47
+ this._text.set("startAngle", this.get("labelAngle", 0)), this._text.set("inside", a);
48
+ const r = y(s), n = u(s);
49
+ let e = this.baseRadius(), l = this.radius();
50
+ if (this._display.angle = 0, t == "circular")
51
+ this.setAll({
52
+ paddingTop: 0,
53
+ paddingBottom: 0,
54
+ paddingLeft: 0,
55
+ paddingRight: 0
56
+ }), this.setRaw("x", void 0), this.setRaw("y", void 0), this._text.set("orientation", i), this._text.set("radius", l);
57
+ else {
58
+ e == 0 && (s = 0, l = 0);
59
+ let d = l * n, o = l * r;
60
+ t == "radial" ? (this.setRaw("x", d), this.setRaw("y", o), s < 90 || s > 270 || i != "auto" ? (this._display.angle = s, this._flipped = !1) : (this._display.angle = s + 180, this._flipped = !0), this._dirty.rotation = !1) : t == "adjusted" ? (this.setRaw("centerX", p), this.setRaw("centerY", p), this.setRaw("x", d), this.setRaw("y", o)) : t == "regular" && (this.setRaw("x", d), this.setRaw("y", o));
61
+ }
62
+ this.markDirtyPosition(), this.markDirtyBounds();
63
+ }
64
+ }
65
+ _updatePosition() {
66
+ const t = this.get("textType", "regular"), a = this.get("inside", !1);
67
+ let i = 0, s = 0, r = this.get("labelAngle", 0), n = this.localBounds(), e = n.right - n.left, l = n.bottom - n.top;
68
+ if (t == "radial") {
69
+ if (this._flipped) {
70
+ let d = this.get("centerX");
71
+ d instanceof D && (e = e * (1 - d.value * 2)), i = e * u(r), s = e * y(r);
72
+ }
73
+ } else !a && t == "adjusted" && (i = e / 2 * u(r), s = l / 2 * y(r));
74
+ this.setRaw("dx", i), this.setRaw("dy", s), super._updatePosition();
75
+ }
76
+ /**
77
+ * @ignore
78
+ */
79
+ get text() {
80
+ return this._text;
81
+ }
82
+ }
83
+ g.className = "RadialLabel";
84
+ g.classNames = f.classNames.concat([g.className]);
85
+ export {
86
+ g as R,
87
+ h as a
88
+ };