@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.
- package/library/chunks/AxisLabelRadial.BTpA5dYy.js +11 -0
- package/library/chunks/BaseColumnSeries.hIO71GLG.js +304 -0
- package/library/chunks/CandlestickSeries.w9C0GR9v.js +362 -0
- package/library/chunks/Circle.tOnnO-F-.js +17 -0
- package/library/chunks/ColumnSeries.Ckz75x1M.js +54 -0
- package/library/chunks/EditableAxisLabel.CCMTJT7K.js +445 -0
- package/library/chunks/EditableLabel.DPmicdjK.js +119 -0
- package/library/chunks/Gradient.BrDBLm8v.js +40 -0
- package/library/chunks/LinearGradient.CxfXxvMw.js +37 -0
- package/library/chunks/MonotoneXTension.CJMEHHj3.js +139 -0
- package/library/chunks/Picture.BNASYM-P.js +49 -0
- package/library/chunks/Polygon.Dr-GV2hn.js +70 -0
- package/library/chunks/ProgressPie.4mPA6xqm.js +234 -0
- package/library/chunks/RadialLabel.HfsGiN4x.js +88 -0
- package/library/chunks/Scrollbar.Bgg-RhjP.js +118 -0
- package/library/chunks/Slice.Dm56LTKj.js +120 -0
- package/library/chunks/Slider.FKJwoPq2.js +19 -0
- package/library/chunks/SpriteResizer.-qJDgug8.js +446 -0
- package/library/chunks/Triangle.BECgi7mc.js +21 -0
- package/library/chunks/ZoomTools.cgwuIB0e.js +199 -0
- package/library/chunks/___vite-browser-external_commonjs-proxy.C2tf3HsQ.js +8 -0
- package/library/chunks/{_baseUniq.Df-fLIBx.js → _baseUniq.BUihBa8c.js} +56 -53
- package/library/chunks/{_commonjsHelpers.ByX85dGu.js → _commonjsHelpers.DQNKXVTB.js} +2 -2
- package/library/chunks/accessors.BHk36ecy.js +11 -0
- package/library/chunks/am-chart.oZVBmpnn.js +18435 -0
- package/library/chunks/{animation.DfUHRQry.js → animation.DU8t6mrk.js} +1 -1
- package/library/chunks/{button.SoX-7UYy.js → button.CAAJPQFu.js} +3 -3
- package/library/chunks/{capitalize.WSkCXkNE.js → capitalize.CNStXZBq.js} +1 -1
- package/library/chunks/cardinal.BCA_LB0u.js +64 -0
- package/library/chunks/{color-swatch-group.Dx1fbSJx.js → color-swatch-group.CKHyWM8K.js} +6 -6
- package/library/chunks/{color-swatch.B7XXHxx1.js → color-swatch.BkpPCXd6.js} +2 -2
- package/library/chunks/colorPicker.C4w_vDjh.js +527 -0
- package/library/chunks/{confirm-popover.327ATuQH.js → confirm-popover.ZD74yDWw.js} +3 -3
- package/library/chunks/{content-builder.Bxi6k2LA.js → content-builder.B4Tqoc6M.js} +40 -34
- package/library/chunks/{cropper.BraEEykE.js → cropper.CQB3_qqG.js} +6937 -6935
- package/library/chunks/{dialog.eN3RUbwx.js → dialog.qSV5AjOE.js} +2 -2
- package/library/chunks/{dom.CZrJ64Dm.js → dom.BQVKDNd8.js} +1 -1
- package/library/chunks/{dot-pagination.Bek4w4zz.js → dot-pagination.BN_0ljfc.js} +2 -2
- package/library/chunks/exporting.BdjsEGF8.js +1407 -0
- package/library/chunks/{file-on-demand.BiC4cymk.js → file-on-demand.CXE4zf0J.js} +448 -386
- package/library/chunks/flow.D0FqdfOy.js +1594 -0
- package/library/chunks/{folder-select.DVEFgexx.js → folder-select.CPALQK22.js} +4 -4
- package/library/chunks/{form.CO12-VK0.js → form.DgwYWi0O.js} +1 -1
- package/library/chunks/gantt.DfUM7Gvb.js +2459 -0
- package/library/chunks/{header.Da5yvwdy.js → header.DXZ_5gLY.js} +2 -2
- package/library/chunks/hierarchy.5kfBCoGt.js +3561 -0
- package/library/chunks/{hub-connection.CfARlehM.js → hub-connection.Ot2odiCz.js} +1 -1
- package/library/chunks/{i18n.BMRLOAZR.js → i18n.C0iakJkV.js} +19 -11
- package/library/chunks/{iframe.BJizUE1A.js → iframe.BlzVfeBc.js} +2 -2
- package/library/chunks/{image.bndP5q2c.js → image.B3WjaCXP.js} +2 -2
- package/library/chunks/index.BkoLctE9.js +533 -0
- package/library/chunks/index.CZJTjkLp.js +142 -0
- package/library/chunks/{index.Bhnf0N8Q.js → index.CmVKj_wl.js} +7 -7
- package/library/chunks/index.DU0XUO4k.js +176 -0
- package/library/chunks/index.DcjJFMlq.js +1520 -0
- package/library/chunks/isObjectLike.z36Fu426.js +34 -0
- package/library/chunks/{isSymbol.huJ_Cvxt.js → isSymbol.L0C2ND_U.js} +1 -1
- package/library/chunks/json.BjaT7cyo.js +119 -0
- package/library/chunks/{list-editor.Du1h2Ms0.js → list-editor.CIAAFPco.js} +251 -222
- package/library/chunks/map.DbgNAGxD.js +3037 -0
- package/library/chunks/markerjs2.esm.B_9kjmye.js +1912 -0
- package/library/chunks/{option.Ce_wlnZj.js → option.ByVbmxUQ.js} +2 -2
- package/library/chunks/{pagination.DXu-mFAk.js → pagination.DPQn2fKX.js} +4 -4
- package/library/chunks/pdfmake.Bs7cMDH0.js +41224 -0
- package/library/chunks/percent.DO4FjAdu.js +902 -0
- package/library/chunks/{purify.es.BGaRrCfO.js → purify.es.BIuh5IAZ.js} +115 -115
- package/library/chunks/radar.Dd5fJVMg.js +789 -0
- package/library/chunks/{responsive.DgQTIrna.js → responsive.DL-wBD4P.js} +1 -1
- package/library/chunks/sliceGrouper.DA3aeuJ-.js +93 -0
- package/library/chunks/stock.BfI5MUyK.js +12684 -0
- package/library/chunks/{string.Cp_XNbnV.js → string.B_rEG27K.js} +1 -1
- package/library/chunks/{tab-group.B2pW__9H.js → tab-group.1h51o_Ly.js} +4 -4
- package/library/chunks/{table.5eWm9FfN.js → table.wVHv1Xze.js} +348 -327
- package/library/chunks/timeline.BxMLjB5J.js +837 -0
- package/library/chunks/timer.B39XOBYL.js +123 -0
- package/library/chunks/{toString.CRT5zqEU.js → toString.CL_lYXbK.js} +3 -3
- package/library/chunks/transform.BuqENXeT.js +50 -0
- package/library/chunks/{tree.Zls5YZ8z.js → tree.Bx0IGsWm.js} +2 -2
- package/library/chunks/venn.CxFupTb9.js +966 -0
- package/library/chunks/vfs_fonts.VJpdcrR6.js +9 -0
- package/library/chunks/watch.BCJD77bD.js +547 -0
- package/library/chunks/wc.ThQubbN2.js +255 -0
- package/library/chunks/xlsx.v-qkA-dg.js +25118 -0
- package/library/chunks/xy.q6e68du3.js +333 -0
- package/library/components/alert.js +2 -2
- package/library/components/am-chart.d.ts +3 -0
- package/library/components/am-chart.js +11 -0
- package/library/components/animated-image.js +1 -1
- package/library/components/animation.js +2 -2
- package/library/components/array-line-clamp.js +1 -1
- package/library/components/asset-link-format.js +7 -7
- package/library/components/atoms.js +166 -162
- package/library/components/avatar.js +1 -1
- package/library/components/border-input-group.js +1 -1
- package/library/components/breadcrumb-item.js +1 -1
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +4 -4
- package/library/components/checkbox.js +2 -2
- package/library/components/color-picker.js +4 -4
- package/library/components/color-swatch-group.js +7 -7
- package/library/components/color-swatch.js +3 -3
- package/library/components/confirm-popover.js +4 -4
- package/library/components/copy-button.js +2 -2
- package/library/components/corner-position-input-group.js +2 -2
- package/library/components/cropper.js +1 -1
- package/library/components/details.js +3 -2
- package/library/components/dialog.js +3 -3
- package/library/components/divider.js +1 -1
- package/library/components/dot-pagination.js +3 -3
- package/library/components/drawer.js +3 -3
- package/library/components/dropdown.js +2 -2
- package/library/components/dynamic-select.js +32 -30
- package/library/components/e-chart.d.ts +3 -0
- package/library/components/e-chart.js +47908 -0
- package/library/components/element-clamp.js +3 -3
- package/library/components/file-on-demand.js +10 -10
- package/library/components/folder-select.js +4 -4
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +1 -1
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +2 -2
- package/library/components/grid-item.js +1 -1
- package/library/components/header.js +3 -3
- package/library/components/hub-connection.js +2 -2
- package/library/components/icon-button.js +1 -1
- package/library/components/icon.js +1 -1
- package/library/components/iframe.js +3 -3
- package/library/components/image-comparer.js +2 -2
- package/library/components/image.js +3 -3
- package/library/components/include.js +1 -1
- package/library/components/input.js +3 -3
- package/library/components/line-clamp.js +1 -1
- package/library/components/list-editor.js +11 -8
- package/library/components/markdown.js +2 -2
- package/library/components/masonry.js +2 -2
- package/library/components/menu-item.js +2 -2
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +5 -5
- package/library/components/mutation-observer.js +1 -1
- package/library/components/option.js +3 -3
- package/library/components/organisms.js +2 -2
- package/library/components/pagination.js +5 -5
- package/library/components/popup.js +1 -1
- package/library/components/position-picker.js +1 -1
- package/library/components/progress-bar.js +1 -1
- package/library/components/progress-ring.js +1 -1
- package/library/components/qr-code.js +1 -1
- package/library/components/radio-button.js +1 -1
- package/library/components/radio-card.js +1 -1
- package/library/components/radio-group.js +2 -2
- package/library/components/radio.js +1 -1
- package/library/components/range.js +3 -3
- package/library/components/rating.js +2 -2
- package/library/components/relative-time.js +1 -1
- package/library/components/resize-observer.js +1 -1
- package/library/components/select.js +4 -4
- package/library/components/share-option-list.js +3 -3
- package/library/components/sidebar.js +1 -1
- package/library/components/size-input-group.js +2 -2
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +2 -2
- package/library/components/stepper.js +1 -1
- package/library/components/switch.js +2 -2
- package/library/components/tab-group.js +5 -5
- package/library/components/tab-panel.js +1 -1
- package/library/components/tab.js +2 -2
- package/library/components/table.js +5 -5
- package/library/components/tag.js +1 -1
- package/library/components/textarea.js +2 -2
- package/library/components/timecode.js +2 -2
- package/library/components/tooltip.js +2 -2
- package/library/components/tree-item.js +3 -3
- package/library/components/tree.js +3 -3
- package/library/components/typeface.js +2 -2
- package/library/components/types.js +27684 -27970
- package/library/components/video.js +1107 -1110
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/am-chart/am-chart.d.ts +45 -0
- package/library/packages/atoms/src/components/am-chart/am-chart.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/am-chart/am-chart.utils.d.ts +23 -0
- package/library/packages/atoms/src/components/e-chart/e-chart-controller.d.ts +30 -0
- package/library/packages/atoms/src/components/e-chart/e-chart.d.ts +38 -0
- package/library/packages/atoms/src/components/e-chart/e-chart.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/table/table.d.ts +21 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/Tabulator.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/tools/DataLoader.d.ts +3 -1
- package/library/packages/atoms/src/index.d.ts +2 -0
- package/library/packages/events/src/cx-chart-plan-change.d.ts +10 -0
- package/library/packages/events/src/cx-dashboard-filter-change.d.ts +6 -0
- package/library/packages/events/src/cx-dashboard-table-load-more.d.ts +9 -0
- package/library/packages/events/src/cx-e-chart-drill-down.d.ts +16 -0
- package/library/packages/events/src/events.d.ts +4 -0
- package/library/packages/molecules/src/index.d.ts +1 -0
- package/library/packages/molecules/src/list-editor/list-editor.d.ts +7 -0
- package/library/packages/molecules/src/stat-card/stat-card.d.ts +81 -0
- package/library/packages/molecules/src/stat-card/stat-card.styles.d.ts +2 -0
- package/library/packages/molecules/src/storybook/storybook.d.ts +1 -0
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +1 -1
- package/library/packages/organisms/src/content-builder/components/chart-plan-builder/chart-plan-builder.d.ts +88 -0
- package/library/packages/organisms/src/content-builder/components/chart-plan-builder/chart-plan-builder.styles.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/components/chart-plan-builder/chart-plan-schema.d.ts +100 -0
- package/library/packages/organisms/src/content-builder/styleController.d.ts +2 -2
- package/library/packages/organisms/src/dashboard-filter/dashboard-filter.d.ts +83 -0
- package/library/packages/organisms/src/dashboard-filter/dashboard-filter.styles.d.ts +2 -0
- package/library/packages/organisms/src/dashboard-table/dashboard-table.d.ts +45 -0
- package/library/packages/organisms/src/dashboard-table/dashboard-table.styles.d.ts +2 -0
- package/library/packages/organisms/src/index.d.ts +3 -0
- package/library/packages/services/src/api/endpoints.d.ts +3 -0
- package/library/packages/types/src/am-chart.d.ts +22 -0
- package/library/packages/types/src/content-builder.d.ts +1 -0
- package/library/packages/types/src/stat-card.d.ts +19 -0
- package/library/packages/types/src/table.d.ts +4 -0
- package/library/packages/utils/src/custom-element/i18n.d.ts +8 -0
- package/library/react-web-component.d.ts +280 -4
- package/library/utils.js +8 -8
- package/package.json +1 -1
- package/library/chunks/_baseRest.ClTMQtN1.js +0 -67
- package/library/chunks/identity.ByMq8VxU.js +0 -6
- package/library/chunks/isObjectLike.D3cpZO39.js +0 -81
- package/library/chunks/watch.q1sEjPWL.js +0 -501
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
import { au as J, G as K, m as I, a0 as ee, a6 as te, a1 as V, aX as se, a as ie, a3 as ae, e as ne, V as q, aY as oe, aZ as re, L as E, T as R, aW as y, x as le } from "./am-chart.oZVBmpnn.js";
|
|
2
|
+
import { A as de, aV as ve, aU as Te, at as Ae, as as be, a$ as Ne, Q as ye, a_ as De, b0 as Pe, av as we, X as Ie } from "./am-chart.oZVBmpnn.js";
|
|
3
|
+
import { S as $ } from "./Scrollbar.Bgg-RhjP.js";
|
|
4
|
+
import { B as Fe } from "./BaseColumnSeries.hIO71GLG.js";
|
|
5
|
+
import { C as z } from "./EditableAxisLabel.CCMTJT7K.js";
|
|
6
|
+
import { E as Se } from "./EditableAxisLabel.CCMTJT7K.js";
|
|
7
|
+
import { C as W, a as Q } from "./CandlestickSeries.w9C0GR9v.js";
|
|
8
|
+
import { A as Le, G as Me } from "./CandlestickSeries.w9C0GR9v.js";
|
|
9
|
+
import { A as ke } from "./AxisLabelRadial.BTpA5dYy.js";
|
|
10
|
+
import { C as Ge } from "./ColumnSeries.Ckz75x1M.js";
|
|
11
|
+
import { c as j, a as B } from "./MonotoneXTension.CJMEHHj3.js";
|
|
12
|
+
import { c as H } from "./cardinal.BCA_LB0u.js";
|
|
13
|
+
function Z(l, t) {
|
|
14
|
+
this._context = l, this._t = t;
|
|
15
|
+
}
|
|
16
|
+
Z.prototype = {
|
|
17
|
+
areaStart: function() {
|
|
18
|
+
this._line = 0;
|
|
19
|
+
},
|
|
20
|
+
areaEnd: function() {
|
|
21
|
+
this._line = NaN;
|
|
22
|
+
},
|
|
23
|
+
lineStart: function() {
|
|
24
|
+
this._x = this._y = NaN, this._point = 0;
|
|
25
|
+
},
|
|
26
|
+
lineEnd: function() {
|
|
27
|
+
0 < this._t && this._t < 1 && this._point === 2 && this._context.lineTo(this._x, this._y), (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line >= 0 && (this._t = 1 - this._t, this._line = 1 - this._line);
|
|
28
|
+
},
|
|
29
|
+
point: function(l, t) {
|
|
30
|
+
switch (l = +l, t = +t, this._point) {
|
|
31
|
+
case 0:
|
|
32
|
+
this._point = 1, this._line ? this._context.lineTo(l, t) : this._context.moveTo(l, t);
|
|
33
|
+
break;
|
|
34
|
+
case 1:
|
|
35
|
+
this._point = 2;
|
|
36
|
+
// falls through
|
|
37
|
+
default: {
|
|
38
|
+
if (this._t <= 0)
|
|
39
|
+
this._context.lineTo(this._x, t), this._context.lineTo(l, t);
|
|
40
|
+
else {
|
|
41
|
+
var e = this._x * (1 - this._t) + l * this._t;
|
|
42
|
+
this._context.lineTo(e, this._y), this._context.lineTo(e, t);
|
|
43
|
+
}
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
this._x = l, this._y = t;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
function he(l) {
|
|
51
|
+
return new Z(l, 1);
|
|
52
|
+
}
|
|
53
|
+
class Y extends $ {
|
|
54
|
+
constructor() {
|
|
55
|
+
super(...arguments), this.chart = this.children.push(J.new(this._root, {
|
|
56
|
+
themeTags: ["chart"],
|
|
57
|
+
interactive: !1,
|
|
58
|
+
interactiveChildren: !1,
|
|
59
|
+
panX: !1,
|
|
60
|
+
panY: !1,
|
|
61
|
+
wheelX: "none",
|
|
62
|
+
wheelY: "none"
|
|
63
|
+
})), this.overlay = this.children.push(K.new(this._root, {
|
|
64
|
+
themeTags: ["overlay"],
|
|
65
|
+
interactive: !1
|
|
66
|
+
}));
|
|
67
|
+
}
|
|
68
|
+
_afterNew() {
|
|
69
|
+
this._addOrientationClass(), this._settings.themeTags = I(this._settings.themeTags, ["scrollbar", "xy", "chart", this._settings.orientation]);
|
|
70
|
+
const t = this.children;
|
|
71
|
+
t.moveValue(this.thumb), t.moveValue(this.startGrip), t.moveValue(this.endGrip), this.thumb.set("opacity", 0), this.thumb.states.create("hover", { opacity: 0.2 });
|
|
72
|
+
const e = this.chart.plotContainer;
|
|
73
|
+
e.set("interactive", !1), e.remove("background"), e.children.removeValue(this.chart.zoomOutButton), super._afterNew();
|
|
74
|
+
}
|
|
75
|
+
_updateThumb() {
|
|
76
|
+
super._updateThumb(), this.overlay.set("draw", (t) => {
|
|
77
|
+
const e = this.startGrip, s = this.endGrip;
|
|
78
|
+
let i = e.x(), a = e.y(), n = s.x(), o = s.y();
|
|
79
|
+
const r = this.height(), h = this.width();
|
|
80
|
+
i > n && ([i, n] = [n, i]), a > o && ([a, o] = [o, a]), this.get("orientation") === "horizontal" ? (t.moveTo(0, 0), t.lineTo(i, 0), t.lineTo(i, r), t.lineTo(0, r), t.lineTo(0, 0), t.moveTo(n, 0), t.lineTo(h, 0), t.lineTo(h, r), t.lineTo(n, r), t.lineTo(n, 0)) : (t.moveTo(0, 0), t.lineTo(0, a), t.lineTo(h, a), t.lineTo(h, 0), t.lineTo(0, 0), t.moveTo(0, o), t.lineTo(0, r), t.lineTo(h, r), t.lineTo(h, o), t.lineTo(0, o));
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
Y.className = "XYChartScrollbar";
|
|
85
|
+
Y.classNames = $.classNames.concat([Y.className]);
|
|
86
|
+
class S extends z {
|
|
87
|
+
constructor() {
|
|
88
|
+
super(...arguments), this._frequency = 1, this._itemMap = {};
|
|
89
|
+
}
|
|
90
|
+
_afterNew() {
|
|
91
|
+
this._settings.themeTags = I(this._settings.themeTags, ["axis"]), this.fields.push("category"), super._afterNew();
|
|
92
|
+
}
|
|
93
|
+
_prepareAxisItems() {
|
|
94
|
+
this.setPrivateRaw("baseInterval", this.get("baseInterval"));
|
|
95
|
+
const t = this.get("renderer"), e = this.dataItems.length;
|
|
96
|
+
let s = this.startIndex();
|
|
97
|
+
s > 0 && s--;
|
|
98
|
+
let i = this.endIndex();
|
|
99
|
+
i < e && i++;
|
|
100
|
+
let a = t.axisLength() / Math.max(t.get("minGridDistance"), 1 / Number.MAX_SAFE_INTEGER), n = Math.min(e, Math.ceil((i - s) / a));
|
|
101
|
+
s = Math.floor(s / n) * n, this._frequency = n;
|
|
102
|
+
for (let m = 0; m < e; m++)
|
|
103
|
+
this._toggleDataItem(this.dataItems[m], !1);
|
|
104
|
+
let o = Number(this.dataItems[s].get("category")), r = Number(this.dataItems[i - 1].get("category")), h = r - o;
|
|
105
|
+
i - s < a && (h = r - o - ((r - o) / this.baseDuration() - (i - s)) * this.baseDuration());
|
|
106
|
+
let c = ee(0, h, a, this.get("gridIntervals"));
|
|
107
|
+
const A = te(c.timeUnit), b = this.getPrivate("baseInterval");
|
|
108
|
+
V(c) < this.baseDuration() && (c = Object.assign({}, b));
|
|
109
|
+
const P = this.get("dateFormats");
|
|
110
|
+
let u = -1 / 0, _ = -1 / 0, d = -1 / 0, x, g = [], v = !1;
|
|
111
|
+
for (let m = s; m < i; m++) {
|
|
112
|
+
let T = this.dataItems[m], f = T.get("index"), w = !1, D = Number(T.get("category")), N = new Date(D), p = se(N, c.timeUnit);
|
|
113
|
+
x = P[c.timeUnit];
|
|
114
|
+
let G = !1;
|
|
115
|
+
c.timeUnit != "year" && c.timeUnit != "week" && A && this.get("markUnitChange") && ie(u) && ae(D, u, A, this._root.utc) && (x = this.get("periodChangeDateFormats")[c.timeUnit], f - n * 0.5 < _ && g.pop(), g.push({ format: x, dataItem: T }), v = !0, G = !0, _ = f, d = p);
|
|
116
|
+
let F = !1;
|
|
117
|
+
c.timeUnit === "day" || c.timeUnit === "week" ? f - _ >= n && (F = !0) : p % c.count === 0 && p != d && (F = !0), !G && F && (f - n * 0.7 < _ && v && (w = !0), w || (g.push({ format: x, dataItem: T }), _ = f, d = p), v = !1), u = D;
|
|
118
|
+
}
|
|
119
|
+
if (g.length > 0) {
|
|
120
|
+
let m = g[0].dataItem.get("index", 0);
|
|
121
|
+
ne(g, (T) => {
|
|
122
|
+
const f = T.dataItem, w = T.format;
|
|
123
|
+
this._createAssets(f, []), this._toggleDataItem(f, !0);
|
|
124
|
+
let D = Number(f.get("category")), N = new Date(D);
|
|
125
|
+
const p = f.get("label");
|
|
126
|
+
p && p.set("text", this._root.dateFormatter.format(N, w)), m++, this._prepareDataItem(f, m, n);
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Returns a duration of currently active `baseInterval` in milliseconds.
|
|
132
|
+
*
|
|
133
|
+
* @return Duration
|
|
134
|
+
*/
|
|
135
|
+
baseDuration() {
|
|
136
|
+
return V(this.getPrivate("baseInterval"));
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Returns text to be used in an axis tooltip for specific relative position.
|
|
140
|
+
*
|
|
141
|
+
* @param position Position
|
|
142
|
+
* @return Tooltip text
|
|
143
|
+
*/
|
|
144
|
+
getTooltipText(t, e) {
|
|
145
|
+
let s = this.dataItems[this.axisPositionToIndex(t)];
|
|
146
|
+
if (s) {
|
|
147
|
+
let i = this.get("dateFormats")[this.getPrivate("baseInterval").timeUnit];
|
|
148
|
+
return this._root.dateFormatter.format(new Date(s.get("category", 0)), this.get("tooltipDateFormat", i));
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
_updateTooltipText(t, e) {
|
|
152
|
+
t.label.set("text", this.getTooltipText(e));
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
S.className = "CategoryDateAxis";
|
|
156
|
+
S.classNames = z.classNames.concat([S.className]);
|
|
157
|
+
class C extends q {
|
|
158
|
+
constructor() {
|
|
159
|
+
super(...arguments), this._dataGrouped = !1, this._groupingCalculated = !1, this._intervalDuration = 1;
|
|
160
|
+
}
|
|
161
|
+
_afterNew() {
|
|
162
|
+
this._settings.themeTags = I(this._settings.themeTags, ["axis"]), super._afterNew();
|
|
163
|
+
}
|
|
164
|
+
_adjustMinMax(t, e, s, i) {
|
|
165
|
+
let a;
|
|
166
|
+
const n = this.getDurationFormatter(), o = this.get("baseUnit");
|
|
167
|
+
if (this.setRaw("maxPrecision", 0), o == "millisecond" || o == "second" || o == "minute" || o == "hour") {
|
|
168
|
+
s <= 1 && (s = 1), s = Math.round(s);
|
|
169
|
+
let r = e - t;
|
|
170
|
+
r === 0 && (r = Math.abs(e));
|
|
171
|
+
let h = r / s, c = [60, 30, 20, 15, 10, 2, 1], A = 1;
|
|
172
|
+
o == "hour" && (c = [24, 12, 6, 4, 2, 1]);
|
|
173
|
+
for (let x of c)
|
|
174
|
+
if (r / x > s) {
|
|
175
|
+
A = x;
|
|
176
|
+
break;
|
|
177
|
+
}
|
|
178
|
+
let b = Math.ceil((e - t) / A / s), P = Math.log(Math.abs(b)) * Math.LOG10E, u = Math.pow(10, Math.floor(P)) / 10, _ = b / u;
|
|
179
|
+
b = oe(c, _) * u, h = A * b, t = Math.floor(t / h) * h, e = Math.ceil(e / h) * h, a = { min: t, max: e, step: h };
|
|
180
|
+
} else
|
|
181
|
+
a = super._adjustMinMax(t, e, s, i);
|
|
182
|
+
return this.setPrivateRaw("durationFormat", n.getFormat(a.step, a.max, o)), a;
|
|
183
|
+
}
|
|
184
|
+
_formatText(t) {
|
|
185
|
+
return this.getDurationFormatter().format(t, this.getPrivate("durationFormat"), this.get("baseUnit"));
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Returns text to be used in an axis tooltip for specific relative position.
|
|
189
|
+
*
|
|
190
|
+
* @param position Position
|
|
191
|
+
* @return Tooltip text
|
|
192
|
+
*/
|
|
193
|
+
getTooltipText(t, e) {
|
|
194
|
+
const s = this.getDurationFormatter(), i = this.get("extraTooltipPrecision", 0), a = this.getPrivate("stepDecimalPlaces", 0) + i, n = re(this.positionToValue(t), a);
|
|
195
|
+
return s.format(n, this.getPrivate("durationFormat"), this.get("baseUnit"));
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
C.className = "DurationAxis";
|
|
199
|
+
C.classNames = q.classNames.concat([C.className]);
|
|
200
|
+
class X extends W {
|
|
201
|
+
_draw() {
|
|
202
|
+
const t = this._display;
|
|
203
|
+
t.moveTo(this.get("lowX1", 0), this.get("lowY1", 0)), t.lineTo(this.get("highX1", 0), this.get("highY1", 0));
|
|
204
|
+
let e = this.width(), s = this.height();
|
|
205
|
+
if (this.get("orientation") == "vertical") {
|
|
206
|
+
let i = s, a = 0;
|
|
207
|
+
t.moveTo(0, i), t.lineTo(e / 2, i), t.moveTo(e / 2, a), t.lineTo(e, a);
|
|
208
|
+
} else {
|
|
209
|
+
let i = 0, a = e;
|
|
210
|
+
t.moveTo(i, 0), t.lineTo(i, s / 2), t.moveTo(a, s / 2), t.lineTo(a, s);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
X.className = "OHLC";
|
|
215
|
+
X.classNames = W.classNames.concat([X.className]);
|
|
216
|
+
class L extends Q {
|
|
217
|
+
constructor() {
|
|
218
|
+
super(...arguments), this.columns = this.addDisposer(new E(R.new({
|
|
219
|
+
themeTags: ["autocolor"]
|
|
220
|
+
}), () => X._new(this._root, {
|
|
221
|
+
themeTags: I(this.columns.template.get("themeTags", []), ["ohlc", "series", "column"])
|
|
222
|
+
}, [this.columns.template])));
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* @ignore
|
|
226
|
+
*/
|
|
227
|
+
makeColumn(t, e) {
|
|
228
|
+
const s = this.mainContainer.children.push(e.make());
|
|
229
|
+
return s._setDataItem(t), e.push(s), s;
|
|
230
|
+
}
|
|
231
|
+
_processAxisRange(t) {
|
|
232
|
+
super._processAxisRange(t), t.columns = new E(R.new({}), () => X._new(this._root, {
|
|
233
|
+
themeTags: I(t.columns.template.get("themeTags", []), ["ohlc", "series", "column"])
|
|
234
|
+
}, [this.columns.template, t.columns.template]));
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
L.className = "OHLCSeries";
|
|
238
|
+
L.classNames = Q.classNames.concat([L.className]);
|
|
239
|
+
class M extends y {
|
|
240
|
+
_afterNew() {
|
|
241
|
+
this._setDefault("curveFactory", j(this.get("tension", 0.5))), super._afterNew();
|
|
242
|
+
}
|
|
243
|
+
_updateChildren() {
|
|
244
|
+
this.isDirty("tension") && (this.set("curveFactory", j(this.get("tension", 0.5))), this._valuesDirty = !0), super._updateChildren();
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
M.className = "SmoothedYLineSeries";
|
|
248
|
+
M.classNames = y.classNames.concat([M.className]);
|
|
249
|
+
class O extends y {
|
|
250
|
+
_afterNew() {
|
|
251
|
+
this._setDefault("curveFactory", B(this.get("tension", 0.5))), super._afterNew();
|
|
252
|
+
}
|
|
253
|
+
_updateChildren() {
|
|
254
|
+
this.isDirty("tension") && (this.set("curveFactory", B(this.get("tension", 0.5))), this._valuesDirty = !0), super._updateChildren();
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
O.className = "SmoothedXLineSeries";
|
|
258
|
+
O.classNames = y.classNames.concat([O.className]);
|
|
259
|
+
class k extends y {
|
|
260
|
+
_afterNew() {
|
|
261
|
+
this._setDefault("curveFactory", H.tension(this.get("tension", 0.5))), super._afterNew();
|
|
262
|
+
}
|
|
263
|
+
_updateChildren() {
|
|
264
|
+
this.isDirty("tension") && (this.set("curveFactory", H.tension(this.get("tension", 0.5))), this._valuesDirty = !0), super._updateChildren();
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
k.className = "SmoothedXYLineSeries";
|
|
268
|
+
k.classNames = y.classNames.concat([k.className]);
|
|
269
|
+
class U extends y {
|
|
270
|
+
_afterNew() {
|
|
271
|
+
this._setDefault("curveFactory", he), super._afterNew();
|
|
272
|
+
}
|
|
273
|
+
_getPoints(t, e) {
|
|
274
|
+
let s = e.points, i = this.get("stepWidth", le).value / 2, a = t.get("locationX", e.locationX), n = t.get("locationY", e.locationY), o = a, r = n;
|
|
275
|
+
e.baseAxis === e.xAxis ? (a -= i, o += i) : e.baseAxis === e.yAxis && (n -= i, r += i);
|
|
276
|
+
let h = e.xAxis.getDataItemPositionX(t, e.xField, a, e.vcx), c = e.yAxis.getDataItemPositionY(t, e.yField, n, e.vcy), A = e.xAxis.getDataItemPositionX(t, e.xField, o, e.vcx), b = e.yAxis.getDataItemPositionY(t, e.yField, r, e.vcy);
|
|
277
|
+
if (this._shouldInclude(h)) {
|
|
278
|
+
const P = this.getPoint(h, c), u = [P.x, P.y], _ = this.getPoint(A, b), d = [_.x, _.y];
|
|
279
|
+
if (e.fillVisible) {
|
|
280
|
+
let x = h, g = c, v = A, m = b;
|
|
281
|
+
if (e.baseAxis === e.xAxis ? (g = e.basePosY, m = e.basePosY) : e.baseAxis === e.yAxis && (x = e.basePosX, v = e.basePosX), e.getOpen) {
|
|
282
|
+
let w = t.get(e.xOpenField), D = t.get(e.yOpenField);
|
|
283
|
+
if (w != null && D != null)
|
|
284
|
+
if (a = t.get("openLocationX", e.openLocationX), n = t.get("openLocationY", e.openLocationY), o = a, r = n, e.baseAxis === e.xAxis ? (a -= i, o += i) : e.baseAxis === e.yAxis && (n -= i, r += i), e.stacked) {
|
|
285
|
+
let N = t.get("stackToItemX"), p = t.get("stackToItemY");
|
|
286
|
+
N ? (x = e.xAxis.getDataItemPositionX(N, e.xField, a, N.component.get("vcx")), v = e.xAxis.getDataItemPositionX(N, e.xField, o, N.component.get("vcx"))) : e.yAxis === e.baseAxis ? (x = e.basePosX, v = e.basePosX) : e.baseAxis === e.yAxis && (x = e.xAxis.getDataItemPositionX(t, e.xOpenField, a, e.vcx), v = e.xAxis.getDataItemPositionX(t, e.xOpenField, o, e.vcx)), p ? (g = e.yAxis.getDataItemPositionY(p, e.yField, n, p.component.get("vcy")), m = e.yAxis.getDataItemPositionY(p, e.yField, r, p.component.get("vcy"))) : e.xAxis === e.baseAxis ? (g = e.basePosY, m = e.basePosY) : e.baseAxis === e.yAxis && (g = e.yAxis.getDataItemPositionY(t, e.yOpenField, n, e.vcy), m = e.yAxis.getDataItemPositionY(t, e.yOpenField, r, e.vcy));
|
|
287
|
+
} else
|
|
288
|
+
x = e.xAxis.getDataItemPositionX(t, e.xOpenField, a, e.vcx), g = e.yAxis.getDataItemPositionY(t, e.yOpenField, n, e.vcy), v = e.xAxis.getDataItemPositionX(t, e.xOpenField, o, e.vcx), m = e.yAxis.getDataItemPositionY(t, e.yOpenField, r, e.vcy);
|
|
289
|
+
}
|
|
290
|
+
let T = this.getPoint(x, g), f = this.getPoint(v, m);
|
|
291
|
+
u[2] = T.x, u[3] = T.y, d[2] = f.x, d[3] = f.y;
|
|
292
|
+
}
|
|
293
|
+
s.push(u), s.push(d), t.set("point", { x: u[0] + (d[0] - u[0]) / 2, y: u[1] + (d[1] - u[1]) / 2 });
|
|
294
|
+
}
|
|
295
|
+
this.get("noRisers") && (e.points = [], e.segments.push(s));
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
U.className = "StepLineSeries";
|
|
299
|
+
U.classNames = y.classNames.concat([U.className]);
|
|
300
|
+
export {
|
|
301
|
+
de as Axis,
|
|
302
|
+
Le as AxisBullet,
|
|
303
|
+
ve as AxisLabel,
|
|
304
|
+
ke as AxisLabelRadial,
|
|
305
|
+
Te as AxisRenderer,
|
|
306
|
+
Ae as AxisRendererX,
|
|
307
|
+
be as AxisRendererY,
|
|
308
|
+
Ne as AxisTick,
|
|
309
|
+
Fe as BaseColumnSeries,
|
|
310
|
+
W as Candlestick,
|
|
311
|
+
Q as CandlestickSeries,
|
|
312
|
+
z as CategoryAxis,
|
|
313
|
+
S as CategoryDateAxis,
|
|
314
|
+
Ge as ColumnSeries,
|
|
315
|
+
ye as DateAxis,
|
|
316
|
+
De as DefaultTheme,
|
|
317
|
+
C as DurationAxis,
|
|
318
|
+
Se as EditableAxisLabel,
|
|
319
|
+
Me as GaplessDateAxis,
|
|
320
|
+
Pe as Grid,
|
|
321
|
+
y as LineSeries,
|
|
322
|
+
X as OHLC,
|
|
323
|
+
L as OHLCSeries,
|
|
324
|
+
O as SmoothedXLineSeries,
|
|
325
|
+
k as SmoothedXYLineSeries,
|
|
326
|
+
M as SmoothedYLineSeries,
|
|
327
|
+
U as StepLineSeries,
|
|
328
|
+
q as ValueAxis,
|
|
329
|
+
J as XYChart,
|
|
330
|
+
Y as XYChartScrollbar,
|
|
331
|
+
we as XYCursor,
|
|
332
|
+
Ie as XYSeries
|
|
333
|
+
};
|
|
@@ -3,9 +3,9 @@ import { c as x } from "../chunks/component.styles.DMSLciL5.js";
|
|
|
3
3
|
import { s as u, a as p } from "../chunks/animate.El-MpOws.js";
|
|
4
4
|
import { c as y } from "../chunks/custom-element.L4WJXn1j.js";
|
|
5
5
|
import { w as m } from "../chunks/event.mFzZi4sr.js";
|
|
6
|
-
import { L as C } from "../chunks/i18n.
|
|
6
|
+
import { L as C } from "../chunks/i18n.C0iakJkV.js";
|
|
7
7
|
import { H as T } from "../chunks/slot.j5oheLJC.js";
|
|
8
|
-
import { w } from "../chunks/watch.
|
|
8
|
+
import { w } from "../chunks/watch.BCJD77bD.js";
|
|
9
9
|
import { i as I, x as h } from "../chunks/lit-element.jLBm65_O.js";
|
|
10
10
|
import { r as A } from "../chunks/state.CSDxrqLd.js";
|
|
11
11
|
import { e as g } from "../chunks/query.BBf1UFkC.js";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { bw as b } from "../chunks/am-chart.oZVBmpnn.js";
|
|
2
|
+
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
3
|
+
import "../chunks/component.styles.DMSLciL5.js";
|
|
4
|
+
import "../chunks/custom-element.L4WJXn1j.js";
|
|
5
|
+
import "../chunks/watch.BCJD77bD.js";
|
|
6
|
+
import "../chunks/lit-element.jLBm65_O.js";
|
|
7
|
+
import "../chunks/state.CSDxrqLd.js";
|
|
8
|
+
import "../chunks/query-async.CTgXGyQ5.js";
|
|
9
|
+
export {
|
|
10
|
+
b as default
|
|
11
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as c, C as p } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import { c as g } from "../chunks/component.styles.DMSLciL5.js";
|
|
3
3
|
import { c as y } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
|
-
import { w as m } from "../chunks/watch.
|
|
4
|
+
import { w as m } from "../chunks/watch.BCJD77bD.js";
|
|
5
5
|
import { i as f, x as d } from "../chunks/lit-element.jLBm65_O.js";
|
|
6
6
|
import { r as h } from "../chunks/state.CSDxrqLd.js";
|
|
7
7
|
import { e as x } from "../chunks/query.BBf1UFkC.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import "../chunks/component.styles.DMSLciL5.js";
|
|
3
3
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
4
|
-
import "../chunks/watch.
|
|
4
|
+
import "../chunks/watch.BCJD77bD.js";
|
|
5
5
|
import "../chunks/lit-element.jLBm65_O.js";
|
|
6
6
|
import "../chunks/query-async.CTgXGyQ5.js";
|
|
7
|
-
import { C as f } from "../chunks/animation.
|
|
7
|
+
import { C as f } from "../chunks/animation.DU8t6mrk.js";
|
|
8
8
|
export {
|
|
9
9
|
f as default
|
|
10
10
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as h, C as y } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import { c as g } from "../chunks/component.styles.DMSLciL5.js";
|
|
3
3
|
import { c as w } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
|
-
import { w as u } from "../chunks/watch.
|
|
4
|
+
import { w as u } from "../chunks/watch.BCJD77bD.js";
|
|
5
5
|
import { i as x, E as C, x as m } from "../chunks/lit-element.jLBm65_O.js";
|
|
6
6
|
import { r as v } from "../chunks/state.CSDxrqLd.js";
|
|
7
7
|
import { e as f } from "../chunks/query.BBf1UFkC.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../chunks/cropper.
|
|
2
|
-
import { C as q } from "../chunks/button.
|
|
1
|
+
import "../chunks/cropper.CQB3_qqG.js";
|
|
2
|
+
import { C as q } from "../chunks/button.CAAJPQFu.js";
|
|
3
3
|
import H from "./space.js";
|
|
4
4
|
import { C as W } from "../chunks/typography.oDzoLbZS.js";
|
|
5
5
|
import { n as l, C as F } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
@@ -7,8 +7,8 @@ import { b as rt, c as ht } from "../chunks/asset.CG_yXtWK.js";
|
|
|
7
7
|
import { c as E } from "../chunks/component.styles.DMSLciL5.js";
|
|
8
8
|
import { T as c, U as o } from "../chunks/asset-link-format.BSRDqHg7.js";
|
|
9
9
|
import { c as N } from "../chunks/custom-element.L4WJXn1j.js";
|
|
10
|
-
import { L as O } from "../chunks/i18n.
|
|
11
|
-
import { w as k } from "../chunks/watch.
|
|
10
|
+
import { L as O } from "../chunks/i18n.C0iakJkV.js";
|
|
11
|
+
import { w as k } from "../chunks/watch.BCJD77bD.js";
|
|
12
12
|
import { s as it, c as st } from "../chunks/number.CjNxU7Xs.js";
|
|
13
13
|
import { i as D, x as b, E as lt } from "../chunks/lit-element.jLBm65_O.js";
|
|
14
14
|
import { r as z } from "../chunks/state.CSDxrqLd.js";
|
|
@@ -18,7 +18,7 @@ import nt from "./divider.js";
|
|
|
18
18
|
import j from "./icon.js";
|
|
19
19
|
import K from "./icon-button.js";
|
|
20
20
|
import tt from "./input.js";
|
|
21
|
-
import { C as X } from "../chunks/option.
|
|
21
|
+
import { C as X } from "../chunks/option.ByVbmxUQ.js";
|
|
22
22
|
import Y from "./select.js";
|
|
23
23
|
import { c as ct } from "../chunks/image.mbpyiQpQ.js";
|
|
24
24
|
import { e as T } from "../chunks/query.BBf1UFkC.js";
|
|
@@ -2012,7 +2012,7 @@ let p = class extends F {
|
|
|
2012
2012
|
width: this.lastResizeSize[o.Pixel].width
|
|
2013
2013
|
};
|
|
2014
2014
|
}
|
|
2015
|
-
|
|
2015
|
+
handleLoadingChange() {
|
|
2016
2016
|
this.cropperElement && (this.cropperElement.loading = this.loading);
|
|
2017
2017
|
}
|
|
2018
2018
|
handleSelectedFormatChange() {
|
|
@@ -2430,7 +2430,7 @@ let p = class extends F {
|
|
|
2430
2430
|
)}
|
|
2431
2431
|
<cx-asset-link-format-proxy
|
|
2432
2432
|
class="asset-link-format__details"
|
|
2433
|
-
value=${this.selectedProxy
|
|
2433
|
+
value=${this.selectedProxy || this.proxies?.[0]?.id || ""}
|
|
2434
2434
|
?open=${this.activeSetting === "cx-asset-link-format-proxy"}
|
|
2435
2435
|
.items=${this.formats}
|
|
2436
2436
|
?loading=${this.loading && this.lastAction === c.Proxy}
|