@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,118 @@
|
|
|
1
|
+
import { C as y, m as b, R as w, B as v, G as x, k as D, a as g } from "./am-chart.oZVBmpnn.js";
|
|
2
|
+
class c extends y {
|
|
3
|
+
constructor() {
|
|
4
|
+
super(...arguments), this.thumb = this._makeThumb(), this.startGrip = this._makeButton(), this.endGrip = this._makeButton(), this._thumbBusy = !1, this._startDown = !1, this._endDown = !1, this._thumbDown = !1;
|
|
5
|
+
}
|
|
6
|
+
_addOrientationClass() {
|
|
7
|
+
this._settings.themeTags = b(this._settings.themeTags, ["scrollbar", this._settings.orientation]), this._settings.background || (this._settings.background = w.new(this._root, {
|
|
8
|
+
themeTags: b(this._settings.themeTags, ["main", "background"])
|
|
9
|
+
}));
|
|
10
|
+
}
|
|
11
|
+
_makeButton() {
|
|
12
|
+
return this.children.push(v.new(this._root, {
|
|
13
|
+
themeTags: ["resize", "button", this.get("orientation")],
|
|
14
|
+
icon: x.new(this._root, {
|
|
15
|
+
themeTags: ["icon"]
|
|
16
|
+
})
|
|
17
|
+
}));
|
|
18
|
+
}
|
|
19
|
+
_makeThumb() {
|
|
20
|
+
return this.children.push(w.new(this._root, {
|
|
21
|
+
themeTags: ["thumb", this.get("orientation")]
|
|
22
|
+
}));
|
|
23
|
+
}
|
|
24
|
+
_handleAnimation(t) {
|
|
25
|
+
t && this._disposers.push(t.events.on("stopped", () => {
|
|
26
|
+
this.setPrivateRaw("isBusy", !1), this._thumbBusy = !1;
|
|
27
|
+
}));
|
|
28
|
+
}
|
|
29
|
+
_afterNew() {
|
|
30
|
+
this._addOrientationClass(), super._afterNew();
|
|
31
|
+
const t = this.startGrip, e = this.endGrip, i = this.thumb, r = this.get("background");
|
|
32
|
+
r && this._disposers.push(r.events.on("click", (s) => {
|
|
33
|
+
this.setPrivateRaw("isBusy", !0);
|
|
34
|
+
const a = this._display.toLocal(s.point), h = this.width(), o = this.height(), d = this.get("orientation");
|
|
35
|
+
let n;
|
|
36
|
+
d == "vertical" ? n = (a.y - i.height() / 2) / o : n = (a.x - i.width() / 2) / h;
|
|
37
|
+
let u, p;
|
|
38
|
+
d == "vertical" ? (u = n * o, p = "y") : (u = n * h, p = "x");
|
|
39
|
+
const l = this.get("animationDuration", 0);
|
|
40
|
+
l > 0 ? (this._thumbBusy = !0, this._handleAnimation(this.thumb.animate({ key: p, to: u, duration: l, easing: this.get("animationEasing") }))) : (this.thumb.set(p, u), this._root.events.once("frameended", () => {
|
|
41
|
+
this.setPrivateRaw("isBusy", !1);
|
|
42
|
+
}));
|
|
43
|
+
})), this._disposers.push(i.events.on("dblclick", (s) => {
|
|
44
|
+
if (!D(s.originalEvent, this))
|
|
45
|
+
return;
|
|
46
|
+
const a = this.get("animationDuration", 0), h = this.get("animationEasing");
|
|
47
|
+
this.animate({ key: "start", to: 0, duration: a, easing: h }), this.animate({ key: "end", to: 1, duration: a, easing: h });
|
|
48
|
+
})), this._disposers.push(t.events.on("pointerdown", () => {
|
|
49
|
+
this.setPrivateRaw("isBusy", !0), this._startDown = !0, this._gripDown = "start";
|
|
50
|
+
})), this._disposers.push(e.events.on("pointerdown", () => {
|
|
51
|
+
this.setPrivateRaw("isBusy", !0), this._endDown = !0, this._gripDown = "end";
|
|
52
|
+
})), this._disposers.push(i.events.on("pointerdown", () => {
|
|
53
|
+
this.setPrivateRaw("isBusy", !0), this._thumbDown = !0, this._gripDown = void 0;
|
|
54
|
+
})), this._disposers.push(t.events.on("globalpointerup", () => {
|
|
55
|
+
this._startDown && (this.setPrivateRaw("isBusy", !1), this._released()), this._startDown = !1;
|
|
56
|
+
})), this._disposers.push(e.events.on("globalpointerup", () => {
|
|
57
|
+
this._endDown && (this.setPrivateRaw("isBusy", !1), this._released()), this._endDown = !1;
|
|
58
|
+
})), this._disposers.push(i.events.on("globalpointerup", () => {
|
|
59
|
+
this._thumbDown && (this.setPrivateRaw("isBusy", !1), this._released()), this._thumbDown = !1;
|
|
60
|
+
})), this._disposers.push(t.on("x", () => {
|
|
61
|
+
this._updateThumb();
|
|
62
|
+
})), this._disposers.push(e.on("x", () => {
|
|
63
|
+
this._updateThumb();
|
|
64
|
+
})), this._disposers.push(t.on("y", () => {
|
|
65
|
+
this._updateThumb();
|
|
66
|
+
})), this._disposers.push(e.on("y", () => {
|
|
67
|
+
this._updateThumb();
|
|
68
|
+
})), this._disposers.push(i.events.on("positionchanged", () => {
|
|
69
|
+
this._updateGripsByThumb();
|
|
70
|
+
})), this.get("orientation") == "vertical" ? (t.set("x", 0), e.set("x", 0), this._disposers.push(i.adapters.add("y", (s) => Math.max(Math.min(Number(s), this.height() - i.height()), 0))), this._disposers.push(i.adapters.add("x", (s) => this.width() / 2)), this._disposers.push(t.adapters.add("x", (s) => this.width() / 2)), this._disposers.push(e.adapters.add("x", (s) => this.width() / 2)), this._disposers.push(t.adapters.add("y", (s) => Math.max(Math.min(Number(s), this.height()), 0))), this._disposers.push(e.adapters.add("y", (s) => Math.max(Math.min(Number(s), this.height()), 0)))) : (t.set("y", 0), e.set("y", 0), this._disposers.push(i.adapters.add("x", (s) => Math.max(Math.min(Number(s), this.width() - i.width()), 0))), this._disposers.push(i.adapters.add("y", (s) => this.height() / 2)), this._disposers.push(t.adapters.add("y", (s) => this.height() / 2)), this._disposers.push(e.adapters.add("y", (s) => this.height() / 2)), this._disposers.push(t.adapters.add("x", (s) => Math.max(Math.min(Number(s), this.width()), 0))), this._disposers.push(e.adapters.add("x", (s) => Math.max(Math.min(Number(s), this.width()), 0))));
|
|
71
|
+
}
|
|
72
|
+
_updateChildren() {
|
|
73
|
+
super._updateChildren(), (this.isDirty("end") || this.isDirty("start") || this._sizeDirty) && this.updateGrips();
|
|
74
|
+
}
|
|
75
|
+
_changed() {
|
|
76
|
+
if (super._changed(), this.isDirty("start") || this.isDirty("end")) {
|
|
77
|
+
const t = "rangechanged";
|
|
78
|
+
this.events.isEnabled(t) && this.events.dispatch(t, { type: t, target: this, start: this.get("start", 0), end: this.get("end", 1), grip: this._gripDown });
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
_released() {
|
|
82
|
+
const t = "released";
|
|
83
|
+
this.events.isEnabled(t) && this.events.dispatch(t, { type: t, target: this });
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* @ignore
|
|
87
|
+
*/
|
|
88
|
+
updateGrips() {
|
|
89
|
+
const t = this.startGrip, e = this.endGrip, i = this.get("orientation"), r = this.height(), s = this.width();
|
|
90
|
+
i == "vertical" ? (t.set("y", r * this.get("start", 0)), e.set("y", r * this.get("end", 1))) : (t.set("x", s * this.get("start", 0)), e.set("x", s * this.get("end", 1)));
|
|
91
|
+
const a = this.getPrivate("positionTextFunction"), h = Math.round(this.get("start", 0) * 100), o = Math.round(this.get("end", 0) * 100);
|
|
92
|
+
let d, n;
|
|
93
|
+
a ? (d = a.call(this, this.get("start", 0)), n = a.call(this, this.get("end", 0))) : (d = h + "%", n = o + "%"), t.set("ariaLabel", this._t("From %1", void 0, d)), t.set("ariaValueNow", "" + h), t.set("ariaValueText", h + "%"), t.set("ariaValueMin", "0"), t.set("ariaValueMax", "100"), e.set("ariaLabel", this._t("To %1", void 0, n)), e.set("ariaValueNow", "" + o), e.set("ariaValueText", o + "%"), e.set("ariaValueMin", "0"), e.set("ariaValueMax", "100");
|
|
94
|
+
}
|
|
95
|
+
_updateThumb() {
|
|
96
|
+
const t = this.thumb, e = this.startGrip, i = this.endGrip, r = this.height(), s = this.width();
|
|
97
|
+
let a = e.x(), h = i.x(), o = e.y(), d = i.y(), n = 0, u = 1;
|
|
98
|
+
this.get("orientation") == "vertical" ? g(o) && g(d) && (!this._thumbBusy && !t.isDragging() && (t.set("height", d - o), t.set("y", o)), n = o / r, u = d / r) : g(a) && g(h) && (!this._thumbBusy && !t.isDragging() && (t.set("width", h - a), t.set("x", a)), n = a / s, u = h / s), this.getPrivate("isBusy") && (this.get("start") != n || this.get("end") != u) && (this.set("start", n), this.set("end", u));
|
|
99
|
+
const p = this.getPrivate("positionTextFunction"), l = Math.round(this.get("start", 0) * 100), f = Math.round(this.get("end", 0) * 100);
|
|
100
|
+
let _, m;
|
|
101
|
+
p ? (_ = p.call(this, this.get("start", 0)), m = p.call(this, this.get("end", 0))) : (_ = l + "%", m = f + "%"), t.set("ariaLabel", this._t("From %1 to %2", void 0, _, m)), t.set("ariaValueNow", "" + l), t.set("ariaValueText", l + "%");
|
|
102
|
+
}
|
|
103
|
+
_updateGripsByThumb() {
|
|
104
|
+
const t = this.thumb, e = this.startGrip, i = this.endGrip;
|
|
105
|
+
if (this.get("orientation") == "vertical") {
|
|
106
|
+
const r = t.height();
|
|
107
|
+
e.set("y", t.y()), i.set("y", t.y() + r);
|
|
108
|
+
} else {
|
|
109
|
+
const r = t.width();
|
|
110
|
+
e.set("x", t.x()), i.set("x", t.x() + r);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
c.className = "Scrollbar";
|
|
115
|
+
c.classNames = y.classNames.concat([c.className]);
|
|
116
|
+
export {
|
|
117
|
+
c as S
|
|
118
|
+
};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { N as dn, O, G as hn, P as rn, o as un, h as fn, j as gn, a as on } from "./am-chart.oZVBmpnn.js";
|
|
2
|
+
const ln = Math.abs, y = Math.atan2, $ = Math.cos, yn = Math.max, en = Math.min, w = Math.sin, k = Math.sqrt, R = 1e-12, z = Math.PI, Q = z / 2, mn = 2 * z;
|
|
3
|
+
function pn(s) {
|
|
4
|
+
return s > 1 ? 0 : s < -1 ? z : Math.acos(s);
|
|
5
|
+
}
|
|
6
|
+
function cn(s) {
|
|
7
|
+
return s >= 1 ? Q : s <= -1 ? -Q : Math.asin(s);
|
|
8
|
+
}
|
|
9
|
+
function Rn(s) {
|
|
10
|
+
return s.innerRadius;
|
|
11
|
+
}
|
|
12
|
+
function xn(s) {
|
|
13
|
+
return s.outerRadius;
|
|
14
|
+
}
|
|
15
|
+
function An(s) {
|
|
16
|
+
return s.startAngle;
|
|
17
|
+
}
|
|
18
|
+
function vn(s) {
|
|
19
|
+
return s.endAngle;
|
|
20
|
+
}
|
|
21
|
+
function Dn(s) {
|
|
22
|
+
return s && s.padAngle;
|
|
23
|
+
}
|
|
24
|
+
function Mn(s, o, c, g, d, l, f, e) {
|
|
25
|
+
var x = c - s, r = g - o, n = f - d, v = e - l, t = v * x - n * r;
|
|
26
|
+
if (!(t * t < R))
|
|
27
|
+
return t = (n * (o - l) - v * (s - d)) / t, [s + t * x, o + t * r];
|
|
28
|
+
}
|
|
29
|
+
function L(s, o, c, g, d, l, f) {
|
|
30
|
+
var e = s - c, x = o - g, r = (f ? l : -l) / k(e * e + x * x), n = r * x, v = -r * e, t = s + n, u = o + v, m = c + n, p = g + v, X = (t + m) / 2, h = (u + p) / 2, D = m - t, A = p - u, P = D * D + A * A, I = d - l, N = t * p - m * u, q = (A < 0 ? -1 : 1) * k(yn(0, I * I * P - N * N)), C = (N * A - D * q) / P, G = (-N * D - A * q) / P, S = (N * A + D * q) / P, M = (-N * D + A * q) / P, T = C - X, i = G - h, a = S - X, Y = M - h;
|
|
31
|
+
return T * T + i * i > a * a + Y * Y && (C = S, G = M), {
|
|
32
|
+
cx: C,
|
|
33
|
+
cy: G,
|
|
34
|
+
x01: -n,
|
|
35
|
+
y01: -v,
|
|
36
|
+
x11: C * (d / I - 1),
|
|
37
|
+
y11: G * (d / I - 1)
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function Tn() {
|
|
41
|
+
var s = Rn, o = xn, c = O(0), g = null, d = An, l = vn, f = Dn, e = null, x = dn(r);
|
|
42
|
+
function r() {
|
|
43
|
+
var n, v, t = +s.apply(this, arguments), u = +o.apply(this, arguments), m = d.apply(this, arguments) - Q, p = l.apply(this, arguments) - Q, X = ln(p - m), h = p > m;
|
|
44
|
+
if (e || (e = n = x()), u < t && (v = u, u = t, t = v), !(u > R)) e.moveTo(0, 0);
|
|
45
|
+
else if (X > mn - R)
|
|
46
|
+
e.moveTo(u * $(m), u * w(m)), e.arc(0, 0, u, m, p, !h), t > R && (e.moveTo(t * $(p), t * w(p)), e.arc(0, 0, t, p, m, h));
|
|
47
|
+
else {
|
|
48
|
+
var D = m, A = p, P = m, I = p, N = X, q = X, C = f.apply(this, arguments) / 2, G = C > R && (g ? +g.apply(this, arguments) : k(t * t + u * u)), S = en(ln(u - t) / 2, +c.apply(this, arguments)), M = S, T = S, i, a;
|
|
49
|
+
if (G > R) {
|
|
50
|
+
var Y = cn(G / t * w(C)), B = cn(G / u * w(C));
|
|
51
|
+
(N -= Y * 2) > R ? (Y *= h ? 1 : -1, P += Y, I -= Y) : (N = 0, P = I = (m + p) / 2), (q -= B * 2) > R ? (B *= h ? 1 : -1, D += B, A -= B) : (q = 0, D = A = (m + p) / 2);
|
|
52
|
+
}
|
|
53
|
+
var j = u * $(D), E = u * w(D), F = t * $(I), H = t * w(I);
|
|
54
|
+
if (S > R) {
|
|
55
|
+
var J = u * $(A), K = u * w(A), U = t * $(P), V = t * w(P), b;
|
|
56
|
+
if (X < z)
|
|
57
|
+
if (b = Mn(j, E, U, V, J, K, F, H)) {
|
|
58
|
+
var W = j - b[0], Z = E - b[1], _ = J - b[0], nn = K - b[1], sn = 1 / w(pn((W * _ + Z * nn) / (k(W * W + Z * Z) * k(_ * _ + nn * nn))) / 2), an = k(b[0] * b[0] + b[1] * b[1]);
|
|
59
|
+
M = en(S, (t - an) / (sn - 1)), T = en(S, (u - an) / (sn + 1));
|
|
60
|
+
} else
|
|
61
|
+
M = T = 0;
|
|
62
|
+
}
|
|
63
|
+
q > R ? T > R ? (i = L(U, V, j, E, u, T, h), a = L(J, K, F, H, u, T, h), e.moveTo(i.cx + i.x01, i.cy + i.y01), T < S ? e.arc(i.cx, i.cy, T, y(i.y01, i.x01), y(a.y01, a.x01), !h) : (e.arc(i.cx, i.cy, T, y(i.y01, i.x01), y(i.y11, i.x11), !h), e.arc(0, 0, u, y(i.cy + i.y11, i.cx + i.x11), y(a.cy + a.y11, a.cx + a.x11), !h), e.arc(a.cx, a.cy, T, y(a.y11, a.x11), y(a.y01, a.x01), !h))) : (e.moveTo(j, E), e.arc(0, 0, u, D, A, !h)) : e.moveTo(j, E), !(t > R) || !(N > R) ? e.lineTo(F, H) : M > R ? (i = L(F, H, J, K, t, -M, h), a = L(j, E, U, V, t, -M, h), e.lineTo(i.cx + i.x01, i.cy + i.y01), M < S ? e.arc(i.cx, i.cy, M, y(i.y01, i.x01), y(a.y01, a.x01), !h) : (e.arc(i.cx, i.cy, M, y(i.y01, i.x01), y(i.y11, i.x11), !h), e.arc(0, 0, t, y(i.cy + i.y11, i.cx + i.x11), y(a.cy + a.y11, a.cx + a.x11), h), e.arc(a.cx, a.cy, M, y(a.y11, a.x11), y(a.y01, a.x01), !h))) : e.arc(0, 0, t, I, P, h);
|
|
64
|
+
}
|
|
65
|
+
if (e.closePath(), n) return e = null, n + "" || null;
|
|
66
|
+
}
|
|
67
|
+
return r.centroid = function() {
|
|
68
|
+
var n = (+s.apply(this, arguments) + +o.apply(this, arguments)) / 2, v = (+d.apply(this, arguments) + +l.apply(this, arguments)) / 2 - z / 2;
|
|
69
|
+
return [$(v) * n, w(v) * n];
|
|
70
|
+
}, r.innerRadius = function(n) {
|
|
71
|
+
return arguments.length ? (s = typeof n == "function" ? n : O(+n), r) : s;
|
|
72
|
+
}, r.outerRadius = function(n) {
|
|
73
|
+
return arguments.length ? (o = typeof n == "function" ? n : O(+n), r) : o;
|
|
74
|
+
}, r.cornerRadius = function(n) {
|
|
75
|
+
return arguments.length ? (c = typeof n == "function" ? n : O(+n), r) : c;
|
|
76
|
+
}, r.padRadius = function(n) {
|
|
77
|
+
return arguments.length ? (g = n == null ? null : typeof n == "function" ? n : O(+n), r) : g;
|
|
78
|
+
}, r.startAngle = function(n) {
|
|
79
|
+
return arguments.length ? (d = typeof n == "function" ? n : O(+n), r) : d;
|
|
80
|
+
}, r.endAngle = function(n) {
|
|
81
|
+
return arguments.length ? (l = typeof n == "function" ? n : O(+n), r) : l;
|
|
82
|
+
}, r.padAngle = function(n) {
|
|
83
|
+
return arguments.length ? (f = typeof n == "function" ? n : O(+n), r) : f;
|
|
84
|
+
}, r.context = function(n) {
|
|
85
|
+
return arguments.length ? (e = n ?? null, r) : e;
|
|
86
|
+
}, r;
|
|
87
|
+
}
|
|
88
|
+
class tn extends hn {
|
|
89
|
+
constructor() {
|
|
90
|
+
super(...arguments), this.ix = 0, this.iy = 0, this._generator = Tn();
|
|
91
|
+
}
|
|
92
|
+
_getTooltipPoint() {
|
|
93
|
+
let o = this.get("tooltipX"), c = this.get("tooltipY"), g = 0, d = 0;
|
|
94
|
+
on(o) && (g = o), on(c) && (d = c);
|
|
95
|
+
let l = this.get("radius", 0), f = this.get("innerRadius", 0), e = this.get("dRadius", 0), x = this.get("dInnerRadius", 0);
|
|
96
|
+
return l += e, f += x, f < 0 && (f = l + f), o instanceof rn && (g = this.ix * (f + (l - f) * o.value)), c instanceof rn && (d = this.iy * (f + (l - f) * c.value)), this.get("arc") >= 360 && f == 0 && (g = 0, d = 0), { x: g, y: d };
|
|
97
|
+
}
|
|
98
|
+
_beforeChanged() {
|
|
99
|
+
super._beforeChanged(), (this.isDirty("radius") || this.isDirty("arc") || this.isDirty("innerRadius") || this.isDirty("startAngle") || this.isDirty("dRadius") || this.isDirty("dInnerRadius") || this.isDirty("cornerRadius") || this.isDirty("shiftRadius")) && (this._clear = !0);
|
|
100
|
+
}
|
|
101
|
+
_changed() {
|
|
102
|
+
if (super._changed(), this._clear) {
|
|
103
|
+
let o = this.get("startAngle", 0), c = this.get("arc", 0);
|
|
104
|
+
const g = this._generator;
|
|
105
|
+
c < 0 && (o = o + c, c = c * -1), c > 0.1 && g.cornerRadius(this.get("cornerRadius", 0)), g.context(this._display);
|
|
106
|
+
let d = this.get("radius", 0), l = this.get("innerRadius", 0), f = this.get("dRadius", 0), e = this.get("dInnerRadius", 0);
|
|
107
|
+
d += f, l += e, l < 0 && (l = d + l), g({ innerRadius: l, outerRadius: d, startAngle: (o + 90) * un, endAngle: (o + c + 90) * un });
|
|
108
|
+
let x = o + c / 2;
|
|
109
|
+
this.ix = fn(x), this.iy = gn(x);
|
|
110
|
+
const r = this.get("shiftRadius", 0);
|
|
111
|
+
this.setRaw("dx", this.ix * r), this.setRaw("dy", this.iy * r), this.markDirtyPosition();
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
tn.className = "Slice";
|
|
116
|
+
tn.classNames = hn.classNames.concat([tn.className]);
|
|
117
|
+
export {
|
|
118
|
+
tn as S,
|
|
119
|
+
Tn as a
|
|
120
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { S as t } from "./Scrollbar.Bgg-RhjP.js";
|
|
2
|
+
class s extends t {
|
|
3
|
+
_afterNew() {
|
|
4
|
+
this._addOrientationClass(), super._afterNew(), this.endGrip.setPrivate("visible", !1), this.thumb.setPrivate("visible", !1);
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* @ignore
|
|
8
|
+
*/
|
|
9
|
+
updateGrips() {
|
|
10
|
+
super.updateGrips();
|
|
11
|
+
const e = this.startGrip;
|
|
12
|
+
this.endGrip.setAll({ x: e.x(), y: e.y() }), this.setRaw("end", this.get("start"));
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
s.className = "Slider";
|
|
16
|
+
s.classNames = t.classNames.concat([s.className]);
|
|
17
|
+
export {
|
|
18
|
+
s as S
|
|
19
|
+
};
|