@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,11 @@
1
+ import { R as s } from "./RadialLabel.HfsGiN4x.js";
2
+ class a extends s {
3
+ constructor() {
4
+ super(...arguments), this._tickPoints = [];
5
+ }
6
+ }
7
+ a.className = "AxisLabelRadial";
8
+ a.classNames = s.classNames.concat([a.className]);
9
+ export {
10
+ a as A
11
+ };
@@ -0,0 +1,304 @@
1
+ import { X as B, e as L, v as j, P as R, i as E, a as Y, _ as U } from "./am-chart.oZVBmpnn.js";
2
+ class M extends B {
3
+ constructor() {
4
+ super(...arguments), this._ph = 0, this._pw = 0, this._columnsUpdated = !1;
5
+ }
6
+ _makeGraphics(t, s) {
7
+ return this.makeColumn(s, t);
8
+ }
9
+ _makeFieldNames() {
10
+ super._makeFieldNames();
11
+ const t = this.get("xAxis"), s = this.get("yAxis"), n = "CategoryAxis", i = "ValueAxis";
12
+ t.isType(n) && (this.get("openCategoryXField") || (this._xOpenField = this._xField)), t.isType(i) && (this.get("openValueXField") || (this._xOpenField = this._xField)), s.isType(n) && (this.get("openCategoryYField") || (this._yOpenField = this._yField)), s.isType(i) && (this.get("openValueYField") || (this._yOpenField = this._yField));
13
+ }
14
+ _prepareChildren() {
15
+ super._prepareChildren();
16
+ const t = this.get("xAxis"), s = this.get("yAxis"), n = this.dataItems.length, i = Math.max(0, this.startIndex() - 2), e = Math.min(this.endIndex() + 2, n - 1);
17
+ if (t.inited && s.inited)
18
+ for (let o = i; o <= e; o++) {
19
+ let a = this.dataItems[o];
20
+ this._createGraphics(a);
21
+ }
22
+ }
23
+ _updateChildren() {
24
+ const t = this.chart;
25
+ t && (this._ph = t.plotContainer.height(), this._pw = t.plotContainer.width());
26
+ const s = this.get("xAxis"), n = this.get("yAxis"), i = this.get("baseAxis"), e = this.columns.template;
27
+ this.isDirty("fill") && e.get("fill") == null && e.set("fill", this.get("fill")), this.isDirty("fillPattern") && e.get("fillPattern") == null && e.set("fillPattern", this.get("fillPattern")), this.isDirty("stroke") && e.get("stroke") == null && e.set("stroke", this.get("stroke"));
28
+ let o = 0, a = 0, v = 0;
29
+ i && L(i.series, (r) => {
30
+ if (r instanceof M) {
31
+ const h = r.get("stacked");
32
+ h && v == 0 && a++, !h && r.get("clustered") && a++;
33
+ }
34
+ r === this && (o = a - 1), v++;
35
+ }), this.get("clustered") || (o = 0, a = 1), a === 0 && (a = 1, o = 0);
36
+ const m = "cellStartLocation", D = "cellEndLocation", g = this._xRenderer.get(m, 0), p = this._xRenderer.get(D, 1), f = this._yRenderer.get(m, 0), k = this._yRenderer.get(D, 1);
37
+ if (this._aLocationX0 = g + o / a * (p - g), this._aLocationX1 = g + (o + 1) / a * (p - g), this._aLocationY0 = f + o / a * (k - f), this._aLocationY1 = f + (o + 1) / a * (k - f), s.inited && n.inited) {
38
+ if (this._axesDirty || this._valuesDirty || this._stackDirty || this.isDirty("vcx") || this.isDirty("vcy") || this._sizeDirty) {
39
+ const r = this.dataItems.length;
40
+ let h = Math.max(0, this.startIndex() - 2), X = Math.min(this.endIndex() + 2, r - 1);
41
+ for (let l = 0; l < h; l++)
42
+ this._toggleColumn(this.dataItems[l], !1);
43
+ let C = this.dataItems[h];
44
+ for (let l = h; l <= X; l++) {
45
+ let P = this.dataItems[l];
46
+ if (P.get("valueX") != null && P.get("valueY") != null) {
47
+ if (C = P, l > 0 && h > 0)
48
+ for (let w = l - 1; w >= 0; w--) {
49
+ let G = this.dataItems[w];
50
+ if (G.get("valueX") != null && G.get("valueY") != null) {
51
+ C = G;
52
+ break;
53
+ }
54
+ }
55
+ break;
56
+ } else
57
+ this._toggleColumn(P, !1);
58
+ }
59
+ this._beforeColumnsDraw();
60
+ let d = 0;
61
+ n.isType("CategoryAxis") && s.isType("CategoryAxis") ? d = 2 : s === i ? d = 0 : n === i && (d = 1);
62
+ for (let l = h; l <= X; l++) {
63
+ let P = this.dataItems[l];
64
+ this._updateGraphics(P, C, d), P.get("valueX") != null && P.get("valueY") != null && (C = P);
65
+ }
66
+ this._afterColumnsDraw();
67
+ for (let l = X + 1; l < r; l++)
68
+ this._toggleColumn(this.dataItems[l], !1);
69
+ this._columnsUpdated = !0;
70
+ }
71
+ } else
72
+ this._skipped = !0;
73
+ this.getPrivate("doNotUpdateLegend") || this.updateLegendMarker(this.get("tooltipDataItem")), super._updateChildren();
74
+ }
75
+ _afterChanged() {
76
+ super._afterChanged(), this._columnsUpdated = !1;
77
+ }
78
+ _beforeColumnsDraw() {
79
+ }
80
+ _afterColumnsDraw() {
81
+ }
82
+ _createGraphics(t) {
83
+ let s = t.get("graphics");
84
+ if (!s) {
85
+ s = this._makeGraphics(this.columns, t), t.set("graphics", s), s._setDataItem(t);
86
+ const n = t.get("legendDataItem");
87
+ if (n) {
88
+ const e = n.get("markerRectangle");
89
+ if (e) {
90
+ const o = e.states.lookup("default");
91
+ L(j, (a) => {
92
+ const v = s.get(a, this.get(a));
93
+ e.set(a, v), o.set(a, v);
94
+ });
95
+ }
96
+ }
97
+ let i = t.get("rangeGraphics");
98
+ i && L(i, (e) => {
99
+ e.dispose();
100
+ }), i = [], t.setRaw("rangeGraphics", i), this.axisRanges.each((e) => {
101
+ const o = e.container, a = this._makeGraphics(e.columns, t);
102
+ i && i.push(a), a.setPrivate("list", e.columns), o.children.push(a);
103
+ });
104
+ }
105
+ }
106
+ createAxisRange(t) {
107
+ return L(this.dataItems, (s) => {
108
+ const n = s.get("graphics");
109
+ n && (n.dispose(), s.set("graphics", void 0));
110
+ }), super.createAxisRange(t);
111
+ }
112
+ _updateGraphics(t, s, n) {
113
+ let i = t.get("graphics");
114
+ const e = this._xField, o = this._yField, a = t.get(e), v = t.get(o), m = this.get("exactLocationX", !1);
115
+ if (a != null && v != null) {
116
+ const D = this._xOpenField, g = this._yOpenField, p = this.get("locationX", t.get("locationX", 0.5)), f = this.get("locationY", t.get("locationY", 0.5)), k = this.get("openLocationX", t.get("openLocationX", p)), r = this.get("openLocationY", t.get("openLocationY", f)), h = i.get("width"), X = i.get("height"), C = this.get("stacked"), d = this.get("xAxis"), l = this.get("yAxis"), P = d.get("start"), w = d.get("end"), G = l.get("start"), N = l.get("end");
117
+ let x, A, y, F, T = this.get("vcy", 1), O = this.get("vcx", 1), S = !1, b = !1;
118
+ if (n == 0) {
119
+ let u = this._aLocationX0 + k - 0.5, _ = this._aLocationX1 + p - 0.5;
120
+ if (h instanceof R) {
121
+ let c = (_ - u) * (1 - h.value) / 2;
122
+ u += c, _ -= c;
123
+ }
124
+ if (x = d.getDataItemPositionX(t, D, u, O, m), A = d.getDataItemPositionX(t, e, _, O, m), y = l.getDataItemPositionY(t, o, f, T), this._yOpenField !== this._yField)
125
+ F = l.getDataItemPositionY(t, g, r, T);
126
+ else if (C) {
127
+ let c = t.get("stackToItemY");
128
+ c ? F = l.getDataItemPositionY(c, o, r, c.component.get("vcy")) : F = l.basePosition();
129
+ } else
130
+ F = l.basePosition();
131
+ t.setRaw("point", { x: x + (A - x) / 2, y }), b = !0;
132
+ } else if (n == 1) {
133
+ let u = this._aLocationY0 + r - 0.5, _ = this._aLocationY1 + f - 0.5;
134
+ if (X instanceof R) {
135
+ let c = (_ - u) * (1 - X.value) / 2;
136
+ u += c, _ -= c;
137
+ }
138
+ if (y = l.getDataItemPositionY(t, g, u, T), F = l.getDataItemPositionY(t, o, _, T), A = d.getDataItemPositionX(t, e, p, O, m), this._xOpenField !== this._xField)
139
+ x = d.getDataItemPositionX(t, D, k, O, m);
140
+ else if (C) {
141
+ let c = t.get("stackToItemX");
142
+ c ? x = d.getDataItemPositionX(c, e, k, c.component.get("vcx"), m) : x = d.basePosition();
143
+ } else
144
+ x = d.basePosition();
145
+ S = !0, t.setRaw("point", { x: A, y: y + (F - y) / 2 });
146
+ } else if (n == 2) {
147
+ let u = this._aLocationX0 + k - 0.5, _ = this._aLocationX1 + p - 0.5;
148
+ if (h instanceof R) {
149
+ let c = (_ - u) * (1 - h.value) / 2;
150
+ u += c, _ -= c;
151
+ }
152
+ if (x = d.getDataItemPositionX(t, D, u, O), A = d.getDataItemPositionX(t, e, _, O), u = this._aLocationY0 + r - 0.5, _ = this._aLocationY1 + f - 0.5, X instanceof R) {
153
+ let c = (_ - u) * (1 - X.value) / 2;
154
+ u += c, _ -= c;
155
+ }
156
+ y = l.getDataItemPositionY(t, g, u, T), F = l.getDataItemPositionY(t, o, _, T), t.setRaw("point", { x: x + (A - x) / 2, y: y + (F - y) / 2 });
157
+ }
158
+ this._applyGraphicsStates(t, s), this._updateSeriesGraphics(t, i, x, A, y, F, S, b), x < P && A < P || x > w && A > w || y < G && F <= G || y >= N && F > N || E(x) || E(y) ? this._toggleColumn(t, !1) : this._toggleColumn(t, !0);
159
+ let V = t.get("rangeGraphics");
160
+ V && L(V, (u) => {
161
+ this._updateSeriesGraphics(t, u, x, A, y, F, S, b);
162
+ });
163
+ } else
164
+ this._toggleColumn(t, !1);
165
+ }
166
+ _updateSeriesGraphics(t, s, n, i, e, o, a, v) {
167
+ const m = s.get("width"), D = s.get("height"), g = s.get("maxWidth"), p = s.get("maxHeight"), f = this.getPoint(n, e), k = this.getPoint(i, o), r = t.get("point");
168
+ if (r) {
169
+ const h = this.getPoint(r.x, r.y);
170
+ r.x = h.x + this._x, r.y = h.y + this._y;
171
+ }
172
+ if (n = f.x, i = k.x, e = f.y, o = k.y, Y(m)) {
173
+ const h = (i - n - m) / 2;
174
+ n += h, i -= h;
175
+ }
176
+ if (Y(g) && g < Math.abs(i - n)) {
177
+ const h = (i - n - g) / 2;
178
+ n += h, i -= h;
179
+ }
180
+ if (Y(D)) {
181
+ const h = (o - e - D) / 2;
182
+ e += h, o -= h;
183
+ }
184
+ if (Y(p) && p < Math.abs(o - e)) {
185
+ const h = (o - e - p) / 2;
186
+ e += h, o -= h;
187
+ }
188
+ this.get("adjustBulletPosition") && (a && (i = Math.min(Math.max(0, i), this._pw), n = Math.min(Math.max(0, n), this._pw)), v && (e = Math.min(Math.max(0, e), this._ph), o = Math.min(Math.max(0, o), this._ph))), t.setRaw("left", n), t.setRaw("right", i), t.setRaw("top", e), t.setRaw("bottom", o), s.setPrivate("width", i - n), s.setPrivate("height", o - e), s.set("x", n), s.set("y", o - (o - e));
189
+ }
190
+ _handleDataSetChange() {
191
+ super._handleDataSetChange(), L(this._dataItems, (t) => {
192
+ this._toggleColumn(t, !1);
193
+ });
194
+ }
195
+ _applyGraphicsStates(t, s) {
196
+ const n = t.get("graphics"), i = n.states.lookup("dropFromOpen"), e = n.states.lookup("riseFromOpen"), o = n.states.lookup("dropFromPrevious"), a = n.states.lookup("riseFromPrevious");
197
+ if (i || o || e || a) {
198
+ const v = this.get("xAxis"), m = this.get("yAxis"), D = this.get("baseAxis");
199
+ let g, p, f;
200
+ D === v && m.isType("ValueAxis") ? (g = t.get(this._yOpenField), p = t.get(this._yField), f = s.get(this._yField)) : D === m && v.isType("ValueAxis") && (g = t.get(this._xOpenField), p = t.get(this._xField), f = s.get(this._xField)), Y(g) && Y(p) && (p < g ? i && i.apply() : e && e.apply(), Y(f) && (p < f ? o && o.apply() : a && a.apply()));
201
+ }
202
+ }
203
+ /**
204
+ * @ignore
205
+ */
206
+ disposeDataItem(t) {
207
+ super.disposeDataItem(t);
208
+ const s = t.get("graphics");
209
+ s && (this.columns.removeValue(s), s.dispose());
210
+ const n = t.get("rangeGraphics");
211
+ n && L(n, (i) => {
212
+ const e = i.getPrivate("list");
213
+ e && e.removeValue(i), i.dispose();
214
+ });
215
+ }
216
+ /**
217
+ * Hides series's data item.
218
+ *
219
+ * @param dataItem Data item
220
+ * @param duration Animation duration in milliseconds
221
+ * @return Promise
222
+ */
223
+ hideDataItem(t, s) {
224
+ const n = Object.create(null, {
225
+ hideDataItem: { get: () => super.hideDataItem }
226
+ });
227
+ return U(this, void 0, void 0, function* () {
228
+ const i = [n.hideDataItem.call(this, t, s)], e = t.get("graphics");
229
+ e && i.push(e.hide(s));
230
+ const o = t.get("rangeGraphics");
231
+ o && L(o, (a) => {
232
+ i.push(a.hide(s));
233
+ }), yield Promise.all(i);
234
+ });
235
+ }
236
+ _toggleColumn(t, s) {
237
+ const n = t.get("graphics");
238
+ n && n.setPrivate("visible", s);
239
+ const i = t.get("rangeGraphics");
240
+ i && L(i, (o) => {
241
+ o.setPrivate("visible", s);
242
+ });
243
+ const e = t.bullets;
244
+ e && L(e, (o) => {
245
+ o.setPrivate("hidden", !s);
246
+ });
247
+ }
248
+ /**
249
+ * Shows series's data item.
250
+ *
251
+ * @param dataItem Data item
252
+ * @param duration Animation duration in milliseconds
253
+ * @return Promise
254
+ */
255
+ showDataItem(t, s) {
256
+ const n = Object.create(null, {
257
+ showDataItem: { get: () => super.showDataItem }
258
+ });
259
+ return U(this, void 0, void 0, function* () {
260
+ const i = [n.showDataItem.call(this, t, s)], e = t.get("graphics");
261
+ e && i.push(e.show(s));
262
+ const o = t.get("rangeGraphics");
263
+ o && L(o, (a) => {
264
+ i.push(a.show(s));
265
+ }), yield Promise.all(i);
266
+ });
267
+ }
268
+ /**
269
+ * @ignore
270
+ */
271
+ updateLegendMarker(t) {
272
+ let s = this.get("legendDataItem");
273
+ if (this.get("useLastColorForLegendMarker") && !t) {
274
+ const n = this.dataItems[this.endIndex() - 1];
275
+ n && (t = n);
276
+ }
277
+ if (s) {
278
+ let n = this.columns.template;
279
+ if (t) {
280
+ let e = t.get("graphics");
281
+ e && (n = e);
282
+ }
283
+ const i = s.get("markerRectangle");
284
+ if (i && !s.get("itemContainer").get("disabled")) {
285
+ const e = i.states.lookup("default");
286
+ L(j, (o) => {
287
+ const a = n.get(o, this.get(o));
288
+ i.set(o, a), e.set(o, a);
289
+ });
290
+ }
291
+ }
292
+ }
293
+ _getTooltipTarget(t) {
294
+ if (this.get("seriesTooltipTarget") == "bullet")
295
+ return super._getTooltipTarget(t);
296
+ let s = t.get("graphics");
297
+ return s || this;
298
+ }
299
+ }
300
+ M.className = "BaseColumnSeries";
301
+ M.classNames = B.classNames.concat([M.className]);
302
+ export {
303
+ M as B
304
+ };
@@ -0,0 +1,362 @@
1
+ import { Q as nt, U as C, W as G, Y as dt, e as X, a as F, Z as N, $ as I, a0 as mt, a1 as H, a2 as et, a3 as ut, a4 as st, a5 as ft, t as $, a6 as _t, E as lt, z as xt, R as ht, L as it, T as at, m as ot } from "./am-chart.oZVBmpnn.js";
2
+ import { C as rt } from "./ColumnSeries.Ckz75x1M.js";
3
+ class j extends nt {
4
+ constructor() {
5
+ super(...arguments), this._frequency = 1, this._m = 0, this._dates = [];
6
+ }
7
+ _afterNew() {
8
+ this.valueFields.push("date"), this.addTag("gapless"), super._afterNew();
9
+ }
10
+ _getDates() {
11
+ return this._customDates ? this._customDates : this._dates;
12
+ }
13
+ _updateDates(t, e) {
14
+ if (!e.get("ignoreMinMax")) {
15
+ const a = this._getDates(), o = C(a, (n) => G(n, t));
16
+ o.found || dt(a, o.index, t);
17
+ }
18
+ }
19
+ _updateAllDates() {
20
+ if (!this._customDates) {
21
+ const t = this._dates;
22
+ t.length = 0, X(this.series, (r) => {
23
+ let l = "valueX";
24
+ r.get("yAxis") == this && (l = "valueY"), X(r.dataItems, (h) => {
25
+ let c = h.get(l);
26
+ F(c) && h.open && this._updateDates(h.open[l], r);
27
+ });
28
+ });
29
+ const e = this.get("extraMax", 0), a = this.get("extraMin", 0);
30
+ let o = t.length;
31
+ const n = this.getPrivate("baseInterval"), i = n.count, s = n.timeUnit;
32
+ if (e > 0) {
33
+ const r = o * e;
34
+ let l = t[o - 1];
35
+ if (F(l))
36
+ for (let h = o - 1; h < o + r; h++)
37
+ l += N(s, i * this._getM(s)), l = I(l, s, i, this._root), t.push(l);
38
+ }
39
+ if (a > 0) {
40
+ const r = o * a;
41
+ let l = t[0];
42
+ if (F(l))
43
+ for (let h = 0; h < r; h++)
44
+ l -= N(s, i), l = I(l, s, i, this._root), t.unshift(l);
45
+ }
46
+ }
47
+ }
48
+ /**
49
+ * Convers value to a relative position on axis.
50
+ *
51
+ * @param value Value
52
+ * @return Relative position
53
+ */
54
+ valueToPosition(t) {
55
+ const e = this._getDates(), a = this.get("startLocation", 0), o = this.get("endLocation", 1), n = e.length - a - (1 - o), i = C(e, (r) => G(r, t));
56
+ let s = i.index;
57
+ if (i.found)
58
+ return (s - a) / n;
59
+ {
60
+ s > 0 && (s -= 1);
61
+ let r = e[s];
62
+ const l = e[s + 1];
63
+ if (l) {
64
+ let c = l;
65
+ Math.abs(c - t) < Math.abs(r - t) && (r = c, s++);
66
+ }
67
+ let h = t - r;
68
+ return (s - a) / n + h / this._baseDuration / n;
69
+ }
70
+ }
71
+ /**
72
+ * Converts numeric value from axis scale to index.
73
+ *
74
+ * @param value Value
75
+ * @return Index
76
+ */
77
+ valueToIndex(t) {
78
+ const e = this._getDates(), a = C(e, (n) => G(n, t));
79
+ let o = a.index;
80
+ return a.found || o > 0 && (o -= 1), o;
81
+ }
82
+ /**
83
+ * Converts a relative position to a corresponding numeric value from axis
84
+ * scale.
85
+ *
86
+ * @param position Relative position
87
+ * @return Value
88
+ */
89
+ positionToValue(t) {
90
+ const e = this.get("startLocation", 0), a = this.get("endLocation", 1), o = this._getDates();
91
+ let n = Math.round(o.length - e - (1 - a)), i = t * n, s = Math.floor(i);
92
+ return s < 0 && (s = 0), s > n - 1 && (s = n - 1), o[s] + (i - s + e) * this._baseDuration;
93
+ }
94
+ _fixZoomFactor() {
95
+ this.setPrivateRaw("maxZoomFactor", this._getDates().length - this.get("startLocation", 0) - (1 - this.get("endLocation", 1)));
96
+ }
97
+ /**
98
+ * Zooms the axis to specific `start` and `end` dates.
99
+ *
100
+ * Optional `duration` specifies duration of zoom animation in milliseconds.
101
+ *
102
+ * @param start Start Date
103
+ * @param end End Date
104
+ * @param duration Duration in milliseconds
105
+ */
106
+ zoomToDates(t, e, a) {
107
+ const o = this._getDates(), n = o.length;
108
+ let i = C(o, (l) => G(l, t.getTime())), s = o[Math.min(i.index, n - 1)];
109
+ i = C(o, (l) => G(l, e.getTime()));
110
+ let r = o[i.index];
111
+ i.index >= n && (r = o[n - 1] + this._baseDuration), this.zoomToValues(s, r, a);
112
+ }
113
+ /**
114
+ * Zooms the axis to specific `start` and `end` values.
115
+ *
116
+ * Optional `duration` specifies duration of zoom animation in milliseconds.
117
+ *
118
+ * @param start Start value
119
+ * @param end End value
120
+ * @param duration Duration in milliseconds
121
+ */
122
+ zoomToValues(t, e, a) {
123
+ const o = this.getPrivate("min", 0), n = this.getPrivate("max", 0);
124
+ t = $(t, o, n), e = $(e, o, n), this.zoom(this.valueToPosition(t), this.valueToPosition(e), a);
125
+ }
126
+ _prepareAxisItems() {
127
+ let t = this.getPrivate("selectionMin", 0), e = this.getPrivate("selectionMax", 0);
128
+ if (F(t) && F(e)) {
129
+ this._seriesValuesDirty && (this._seriesValuesDirty = !1, this._updateAllDates());
130
+ const a = this._root, o = a.utc, n = a.timezone, i = this._getDates(), s = this.get("renderer"), r = i.length, l = this._baseDuration;
131
+ let h = this.valueToIndex(t);
132
+ h > 0 && h--;
133
+ let c = this.valueToIndex(e);
134
+ c < r - 1 && c++;
135
+ let g = s.axisLength() / Math.max(s.get("minGridDistance"), 1 / Number.MAX_SAFE_INTEGER), u = Math.min(r, Math.ceil((c - h) / g));
136
+ u = Math.max(1, u), h = Math.floor(h / u) * u, this._frequency = u, X(this.dataItems, (w) => {
137
+ this._toggleDataItem(w, !1);
138
+ }), X(this.minorDataItems, (w) => {
139
+ this._toggleDataItem(w, !1);
140
+ });
141
+ let x = e - t - ((e - t) / l - (c - h)) * l, d = mt(0, x, g, this.get("gridIntervals"));
142
+ const f = this.getPrivate("baseInterval");
143
+ let m = H(d);
144
+ m < l && (d = Object.assign({}, f), m = H(d)), this.setPrivateRaw("gridInterval", d), this._intervalDuration = m;
145
+ const D = d.timeUnit, _ = this.get("dateFormats");
146
+ let Y = Date.now();
147
+ i[0] && (Y = i[0]);
148
+ let b = I(this.getPrivate("selectionMin", 0), D, d.count, a, Y);
149
+ const L = s.get("minorLabelsEnabled"), T = s.get("minorGridEnabled", L);
150
+ let v, U = 0, E;
151
+ T && (v = this._getMinorInterval(d), U = H(v));
152
+ let A = this._getIndexes(b, this.getPrivate("selectionMax", b) + m, d, this.getPrivate("min", b));
153
+ if (A.length > 0) {
154
+ let w = 0;
155
+ this._m = 0;
156
+ let q = b - m * 10;
157
+ const K = _t(D);
158
+ if (v) {
159
+ let z = i[A[0]];
160
+ this._addMinorGrid(z - m, z, U, v);
161
+ }
162
+ let ct = s.axisLength() / s.gridCount() * 0.5;
163
+ X(A, (z) => {
164
+ var Z;
165
+ let p;
166
+ this.dataItems.length < w + 1 ? (p = new et(this, void 0, {}), this._dataItems.push(p), this.processDataItem(p)) : p = this.dataItems[w];
167
+ let y = i[z], gt = new Date(y), S = y;
168
+ w < A.length - 1 ? S = i[A[w + 1]] : S += m, p.setRaw("value", y), p.setRaw("endValue", S), p.setRaw("index", w), p.setRaw("labelEndValue", void 0);
169
+ let tt = _[D];
170
+ K && this.get("markUnitChange") && F(q) && D != "year" && ut(y, q, K, o, n) && (tt = this.get("periodChangeDateFormats")[D]), this._createAssets(p, []);
171
+ const k = p.get("label");
172
+ k && k.set("text", a.dateFormatter.format(gt, tt)), this._toggleDataItem(p, !0);
173
+ let B = d.count;
174
+ if (D == "week" && p.setRaw("labelEndValue", y), T) {
175
+ let M = d.timeUnit;
176
+ if (M == "week" && (M = "day"), B > 1 || d.timeUnit == "week") {
177
+ let P = I(y, M, 1, a) + N(M, this._getM(M)), O = this.valueToIndex(P);
178
+ if (P = i[O], P == y) {
179
+ let V = i[O + 1];
180
+ V ? P = V : P += U;
181
+ }
182
+ p.setRaw("labelEndValue", P);
183
+ }
184
+ B = 1;
185
+ }
186
+ if (this._prepareDataItem(p, B), k && E && s.getPrivate("letter") == "X") {
187
+ let M = E.get("label");
188
+ if (M) {
189
+ let P = k.x(), O = M.x();
190
+ if (P - O < ct) {
191
+ let V = this._pickWorse(E, p, d);
192
+ V && ((Z = V.get("label")) === null || Z === void 0 || Z.setPrivate("visible", !1));
193
+ }
194
+ }
195
+ }
196
+ v && this._addMinorGrid(y, S, U, v), w++, k && k.getPrivate("visible") && (E = p), q = y;
197
+ });
198
+ }
199
+ X(this.series, (w) => {
200
+ w.inited && w._markDirtyAxes();
201
+ });
202
+ }
203
+ this._updateGhost();
204
+ }
205
+ _pickWorse(t, e, a) {
206
+ const o = a.timeUnit, n = t.get("value", 0), i = e.get("value", 0);
207
+ return o == "hour" && new Date(n).getDate() != new Date(i).getDate() ? t : e;
208
+ }
209
+ _addMinorGrid(t, e, a, o) {
210
+ const n = this.get("minorDateFormats", this.get("dateFormats")), i = o.timeUnit;
211
+ let s = t + N(i, this._getM(i));
212
+ s = I(s, i, 1, this._root);
213
+ let r = e - a * 0.5, l = this._getIndexes(s, r, o, s);
214
+ const h = this._getDates();
215
+ X(l, (c) => {
216
+ let g;
217
+ this.minorDataItems.length < this._m + 1 ? (g = new et(this, void 0, {}), this.minorDataItems.push(g), this.processDataItem(g)) : g = this.minorDataItems[this._m], s = h[c], g.setRaw("value", s), g.setRaw("endValue", s + a), g.setRaw("index", c), this._createAssets(g, ["minor"], !0);
218
+ const u = g.get("label");
219
+ if (u)
220
+ if (this.get("renderer").get("minorLabelsEnabled")) {
221
+ let x = new Date(s), d = n[i];
222
+ u.set("text", this._root.dateFormatter.format(x, d));
223
+ } else
224
+ u.setPrivate("visible", !1);
225
+ this._toggleDataItem(g, !0), this._prepareDataItem(g, 1), this._m++;
226
+ });
227
+ }
228
+ _getIndexes(t, e, a, o) {
229
+ const n = [], i = a.timeUnit, s = a.count, r = this._getM(i), l = this.getPrivate("baseInterval"), h = this._root, c = this._getDates();
230
+ let g = s - 1, u = -1 / 0, x = N(i, r), d = N(i, s * r), f = t;
231
+ for (i == "day" && (t = o); t <= e; ) {
232
+ t = I(t, i, s, h);
233
+ let m = this.valueToIndex(t), D = c[m];
234
+ if (i == "day" && l.timeUnit == "day")
235
+ this._hasDate(t) && g++, g == s && (t >= f - d * 2 && st(n, m), g = 0), t += x, t = I(t, i, 1, h);
236
+ else {
237
+ if (D < t) {
238
+ for (let _ = m, Y = c.length; _ < Y; _++)
239
+ if (D = c[_], D >= t) {
240
+ m = _;
241
+ break;
242
+ }
243
+ }
244
+ st(n, m), t += d, t = I(t, i, s, h);
245
+ }
246
+ if (t == u && (t += d + x, t = I(t, i, s, h)), t == u)
247
+ break;
248
+ u = t;
249
+ }
250
+ return n;
251
+ }
252
+ _hasDate(t) {
253
+ return C(this._getDates(), (a) => ft(a, t)).found;
254
+ }
255
+ _nextTime(t, e, a) {
256
+ let o = $(this.valueToIndex(t) + e, 0, this._dates.length - 1);
257
+ return this._dates[o];
258
+ }
259
+ }
260
+ j.className = "GaplessDateAxis";
261
+ j.classNames = nt.classNames.concat([j.className]);
262
+ class Q extends lt {
263
+ _beforeChanged() {
264
+ super._beforeChanged();
265
+ const t = this.get("sprite");
266
+ if (this.isDirty("sprite") && t && (t.setAll({ position: "absolute", role: "figure" }), this._disposers.push(t)), this.isDirty("location")) {
267
+ const e = t.dataItem;
268
+ this.axis && t && e && this.axis._prepareDataItem(e);
269
+ }
270
+ }
271
+ _dispose() {
272
+ const t = this.axis;
273
+ t && xt(t._bullets, (e, a) => {
274
+ a.uid == this.uid && delete t._bullets[e];
275
+ }), super._dispose();
276
+ }
277
+ }
278
+ Q.className = "AxisBullet";
279
+ Q.classNames = lt.classNames.concat([Q.className]);
280
+ class R extends ht {
281
+ _beforeChanged() {
282
+ super._beforeChanged(), (this.isDirty("lowX0") || this.isDirty("lowY0") || this.isDirty("lowX1") || this.isDirty("lowY1") || this.isDirty("highX0") || this.isDirty("highX1") || this.isDirty("highY0") || this.isDirty("highY1")) && (this._clear = !0);
283
+ }
284
+ _draw() {
285
+ super._draw();
286
+ const t = this._display;
287
+ t.moveTo(this.get("lowX0", 0), this.get("lowY0", 0)), t.lineTo(this.get("lowX1", 0), this.get("lowY1", 0)), t.moveTo(this.get("highX0", 0), this.get("highY0", 0)), t.lineTo(this.get("highX1", 0), this.get("highY1", 0));
288
+ }
289
+ }
290
+ R.className = "Candlestick";
291
+ R.classNames = ht.classNames.concat([R.className]);
292
+ class J extends rt {
293
+ constructor() {
294
+ super(...arguments), this.columns = this.addDisposer(new it(at.new({
295
+ themeTags: ["autocolor"]
296
+ }), () => R._new(this._root, {
297
+ themeTags: ot(this.columns.template.get("themeTags", []), ["candlestick", "series", "column"])
298
+ }, [this.columns.template])));
299
+ }
300
+ /**
301
+ * @ignore
302
+ */
303
+ makeColumn(t, e) {
304
+ const a = e.make();
305
+ return this.get("turboMode") ? a.virtualParent = this.chart : this.mainContainer.children.push(a), a._setDataItem(t), e.push(a), a;
306
+ }
307
+ _updateGraphics(t, e, a) {
308
+ super._updateGraphics(t, e, a);
309
+ const o = this.getRaw("xAxis"), n = this.getRaw("yAxis");
310
+ let i = this.get("vcy", 1), s = this.get("vcx", 1), r, l, h, c, g, u, x, d, f = this.get("locationX", t.get("locationX", 0.5)), m = this.get("locationY", t.get("locationY", 0.5)), D = this.get("openLocationX", t.get("openLocationX", f)), _ = this.get("openLocationY", t.get("openLocationY", m)), Y;
311
+ if (a == 0) {
312
+ let b = n.getDataItemPositionY(t, this._yOpenField, 1, i), L = n.getDataItemPositionY(t, this._yField, 1, i);
313
+ c = n.getDataItemPositionY(t, this._yLowField, 1, i), d = n.getDataItemPositionY(t, this._yHighField, 1, i), x = Math.max(b, L), h = Math.min(b, L);
314
+ let T = this._aLocationX0 + D - 0.5, v = this._aLocationX1 + f - 0.5;
315
+ r = o.getDataItemPositionX(t, this._xField, T + (v - T) / 2, s), l = r, g = r, u = r, Y = "vertical";
316
+ } else {
317
+ let b = o.getDataItemPositionX(t, this._xOpenField, 1, s), L = o.getDataItemPositionX(t, this._xField, 1, s);
318
+ l = o.getDataItemPositionX(t, this._xLowField, 1, s), u = o.getDataItemPositionX(t, this._xHighField, 1, s), g = Math.max(b, L), r = Math.min(b, L);
319
+ let T = this._aLocationY0 + _ - 0.5, v = this._aLocationY1 + m - 0.5;
320
+ h = n.getDataItemPositionY(t, this._yField, T + (v - T) / 2, i), c = h, x = h, d = h, Y = "horizontal";
321
+ }
322
+ this._updateCandleGraphics(t, r, l, h, c, g, u, x, d, Y);
323
+ }
324
+ _updateCandleGraphics(t, e, a, o, n, i, s, r, l, h) {
325
+ let c = t.get("graphics");
326
+ if (c) {
327
+ let g = this.getPoint(e, o), u = this.getPoint(a, n), x = this.getPoint(i, r), d = this.getPoint(s, l);
328
+ if (this.get("turboMode")) {
329
+ const f = this.allColumnsData[this.allColumnsData.length - 1];
330
+ f.lowX0 = g.x, f.lowY0 = g.y, f.lowX1 = u.x, f.lowY1 = u.y, f.highX0 = x.x, f.highY0 = x.y, f.highX1 = d.x, f.highY1 = d.y;
331
+ } else {
332
+ let f = c.x(), m = c.y();
333
+ c.set("lowX0", g.x - f), c.set("lowY0", g.y - m), c.set("lowX1", u.x - f), c.set("lowY1", u.y - m), c.set("highX0", x.x - f), c.set("highY0", x.y - m), c.set("highX1", d.x - f), c.set("highY1", d.y - m), c.set("orientation", h);
334
+ let D = t.get("rangeGraphics");
335
+ D && X(D, (_) => {
336
+ _.set("lowX0", g.x - f), _.set("lowY0", g.y - m), _.set("lowX1", u.x - f), _.set("lowY1", u.y - m), _.set("highX0", x.x - f), _.set("highY0", x.y - m), _.set("highX1", d.x - f), _.set("highY1", d.y - m), _.set("orientation", h);
337
+ });
338
+ }
339
+ }
340
+ }
341
+ _afterColumnsDraw() {
342
+ this.get("turboMode") && this.allColumns.set("draw", (t) => {
343
+ t.clear(), X(this.allColumnsData, (e) => {
344
+ const a = e.width, o = e.height, n = e.x, i = e.y, s = e.stroke, r = e.fill, l = e.strokeWidth, h = e.strokeOpacity, c = e.fillOpacity, g = e.lowX0, u = e.lowY0, x = e.lowX1, d = e.lowY1, f = e.highX0, m = e.highY0, D = e.highX1, _ = e.highY1;
345
+ t.beginFill(r, c), t.beginPath(), t.lineStyle(l, s, h), t.drawRect(n, i, a, o), t.moveTo(g, u), t.lineTo(x, d), t.moveTo(f, m), t.lineTo(D, _), t.endStroke(), t.endFill();
346
+ });
347
+ });
348
+ }
349
+ _processAxisRange(t) {
350
+ super._processAxisRange(t), t.columns = new it(at.new({}), () => R._new(this._root, {
351
+ themeTags: ot(t.columns.template.get("themeTags", []), ["candlestick", "series", "column"])
352
+ }, [this.columns.template, t.columns.template]));
353
+ }
354
+ }
355
+ J.className = "CandlestickSeries";
356
+ J.classNames = rt.classNames.concat([J.className]);
357
+ export {
358
+ Q as A,
359
+ R as C,
360
+ j as G,
361
+ J as a
362
+ };