@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as K, n as v } from "./lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import { c as X } from "./custom-element.L4WJXn1j.js";
|
|
3
|
-
import { w as J } from "./watch.
|
|
3
|
+
import { w as J } from "./watch.BCJD77bD.js";
|
|
4
4
|
import { r as F } from "./state.CSDxrqLd.js";
|
|
5
5
|
class k extends Error {
|
|
6
6
|
/** Constructs a new instance of {@link @microsoft/signalr.HttpError}.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as v } from "./purify.es.
|
|
2
|
-
const s = /* @__PURE__ */ new Set(),
|
|
3
|
-
let d = document.documentElement.dir || "ltr", m = document.documentElement.lang || navigator.language,
|
|
4
|
-
|
|
1
|
+
import { p as v } from "./purify.es.BIuh5IAZ.js";
|
|
2
|
+
const s = /* @__PURE__ */ new Set(), C = new MutationObserver(f), r = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Map();
|
|
3
|
+
let d = document.documentElement.dir || "ltr", m = document.documentElement.lang || navigator.language, l;
|
|
4
|
+
C.observe(document.documentElement, {
|
|
5
5
|
attributeFilter: ["dir", "lang"],
|
|
6
6
|
attributes: !0
|
|
7
7
|
});
|
|
@@ -11,7 +11,7 @@ function A(e) {
|
|
|
11
11
|
function u(...e) {
|
|
12
12
|
e.map((t) => {
|
|
13
13
|
const o = t.$code.toLowerCase();
|
|
14
|
-
|
|
14
|
+
r.has(o) ? r.set(o, { ...r.get(o), ...t }) : r.set(o, t), l || (l = t);
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
17
|
function g(...e) {
|
|
@@ -32,7 +32,7 @@ function f() {
|
|
|
32
32
|
typeof e.requestUpdate == "function" && e.requestUpdate();
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
-
let
|
|
35
|
+
let b = class {
|
|
36
36
|
constructor(t) {
|
|
37
37
|
this.host = t, this.host.addController(this);
|
|
38
38
|
}
|
|
@@ -64,7 +64,7 @@ let C = class {
|
|
|
64
64
|
const [c, p] = t.replace(/_/g, "-").split("-");
|
|
65
65
|
a = c ? c.toLowerCase() : "", i = p ? p.toLowerCase() : "", o = { language: a, region: i };
|
|
66
66
|
}
|
|
67
|
-
const n = i &&
|
|
67
|
+
const n = i && r.get(`${a}-${i}`) ? r.get(`${a}-${i}`) : void 0, y = r.get(a);
|
|
68
68
|
return { language: a, locale: o, primary: n, region: i, secondary: y };
|
|
69
69
|
}
|
|
70
70
|
/** Determines if the specified term exists, optionally checking the fallback translation. */
|
|
@@ -75,7 +75,7 @@ let C = class {
|
|
|
75
75
|
return o = {
|
|
76
76
|
includeFallback: !1,
|
|
77
77
|
...o
|
|
78
|
-
}, !!(a && a[t] || i && i[t] || o.includeFallback &&
|
|
78
|
+
}, !!(a && a[t] || i && i[t] || o.includeFallback && l && l[t]);
|
|
79
79
|
}
|
|
80
80
|
/** Outputs a translated term. */
|
|
81
81
|
term(t, ...o) {
|
|
@@ -85,8 +85,8 @@ let C = class {
|
|
|
85
85
|
n = a[t];
|
|
86
86
|
else if (i && i[t])
|
|
87
87
|
n = i[t];
|
|
88
|
-
else if (
|
|
89
|
-
n =
|
|
88
|
+
else if (l && l[t])
|
|
89
|
+
n = l[t];
|
|
90
90
|
else
|
|
91
91
|
return String(t);
|
|
92
92
|
return typeof n == "function" ? v.sanitize(n(...o)) : n;
|
|
@@ -136,6 +136,7 @@ const w = {
|
|
|
136
136
|
addChapter: "Add chapter",
|
|
137
137
|
addColor: "Add color",
|
|
138
138
|
addColumn: "Add column",
|
|
139
|
+
addControl: "Add control",
|
|
139
140
|
addCurrent: "Add current",
|
|
140
141
|
addFolderCard: "Add folder card",
|
|
141
142
|
addLimitExceeded: (e) => `Cannot add more than ${e} fields at a time. Please modify your selection. Then add another set of fields.`,
|
|
@@ -177,6 +178,7 @@ const w = {
|
|
|
177
178
|
appearance: "Appearance",
|
|
178
179
|
appliedFilters: "Applied filters",
|
|
179
180
|
apply: "Apply",
|
|
181
|
+
applyFilters: "Apply filters",
|
|
180
182
|
areaCode: "Area Code",
|
|
181
183
|
ariaLabel: "Aria label",
|
|
182
184
|
arrows: "Arrows",
|
|
@@ -296,6 +298,7 @@ const w = {
|
|
|
296
298
|
content: "Content",
|
|
297
299
|
contentBuilderBlockSettingsHelpText: "Block settings will be saved as a template and can be applied later to the same objects on any page of this space.",
|
|
298
300
|
contentHelpText: "Automatic layout pulls metadata from the linked source (asset, collection, space, or page). Custom layout lets you design each slide with text, buttons, and other components.",
|
|
301
|
+
control: "Control",
|
|
299
302
|
copied: "Copied",
|
|
300
303
|
copy: "Copy",
|
|
301
304
|
createANewPalette: "Create a new palette",
|
|
@@ -374,6 +377,7 @@ const w = {
|
|
|
374
377
|
editChapter: "Edit chapter",
|
|
375
378
|
editChapters: "Edit chapters",
|
|
376
379
|
editColor: "Edit color",
|
|
380
|
+
editControl: "Edit control",
|
|
377
381
|
editFolderCard: "Edit folder card",
|
|
378
382
|
editImage: "Edit image",
|
|
379
383
|
editLink: "Edit link",
|
|
@@ -518,6 +522,7 @@ const w = {
|
|
|
518
522
|
link: "Link",
|
|
519
523
|
linkHelpText: "Link that will open when button is clicked",
|
|
520
524
|
listOfColors: "List of colors",
|
|
525
|
+
listOfControls: "List of controls",
|
|
521
526
|
listOfFonts: "List of fonts",
|
|
522
527
|
listOfSections: "List of sections",
|
|
523
528
|
loading: "Loading",
|
|
@@ -571,6 +576,7 @@ const w = {
|
|
|
571
576
|
nextSlide: "Next slide",
|
|
572
577
|
noCardsAddedYet: "No cards added yet",
|
|
573
578
|
noColumnsVisible: "No columns visible",
|
|
579
|
+
noControls: "No controls",
|
|
574
580
|
noData: "No data",
|
|
575
581
|
noDataAvailable: "No data available",
|
|
576
582
|
noDownloads: "No downloads",
|
|
@@ -629,6 +635,7 @@ const w = {
|
|
|
629
635
|
page: "Page",
|
|
630
636
|
pagination: "Pagination",
|
|
631
637
|
palette: "Palette",
|
|
638
|
+
panelTitle: "Panel title",
|
|
632
639
|
pantoneMatchingSystemName: "Pantone matching system name",
|
|
633
640
|
paragraphSpacing: "Paragraph spacing",
|
|
634
641
|
parameters: "Parameters",
|
|
@@ -738,6 +745,7 @@ const w = {
|
|
|
738
745
|
showPassword: "Show password",
|
|
739
746
|
showPeekSlides: "Show peek slides",
|
|
740
747
|
showPeekSlidesHelpText: "Display side previews of neighboring slides",
|
|
748
|
+
showResetButton: "Show reset button",
|
|
741
749
|
siblingsFadeOut: "Siblings fade-out",
|
|
742
750
|
siteSearch: "Site search",
|
|
743
751
|
size: "Size",
|
|
@@ -888,7 +896,7 @@ const w = {
|
|
|
888
896
|
zoomToFit: "Zoom to fit"
|
|
889
897
|
};
|
|
890
898
|
g(w);
|
|
891
|
-
class k extends
|
|
899
|
+
class k extends b {
|
|
892
900
|
}
|
|
893
901
|
g(w);
|
|
894
902
|
export {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as r, C as d } from "./lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import { c as h } from "./component.styles.DMSLciL5.js";
|
|
3
3
|
import { c as y } from "./custom-element.L4WJXn1j.js";
|
|
4
|
-
import { L as u } from "./i18n.
|
|
5
|
-
import { w as g } from "./watch.
|
|
4
|
+
import { L as u } from "./i18n.C0iakJkV.js";
|
|
5
|
+
import { w as g } from "./watch.BCJD77bD.js";
|
|
6
6
|
import { i as v, x as p } from "./lit-element.jLBm65_O.js";
|
|
7
7
|
import { e as b } from "./query.BBf1UFkC.js";
|
|
8
8
|
import { e as x } from "./class-map.BiVq-cVR.js";
|
|
@@ -6,8 +6,8 @@ import { E as He, b as de, a as $e } from "./index.Cpamj0jB.js";
|
|
|
6
6
|
import { c as We } from "./component.styles.DMSLciL5.js";
|
|
7
7
|
import { c as Ae } from "./custom-element.L4WJXn1j.js";
|
|
8
8
|
import { d as Oe } from "./debounce.DaHuiSGU.js";
|
|
9
|
-
import { L as Me } from "./i18n.
|
|
10
|
-
import { w as q } from "./watch.
|
|
9
|
+
import { L as Me } from "./i18n.C0iakJkV.js";
|
|
10
|
+
import { w as q } from "./watch.BCJD77bD.js";
|
|
11
11
|
import { e as j } from "./class-map.BiVq-cVR.js";
|
|
12
12
|
import { o as De } from "./if-defined.BRoBj_Rp.js";
|
|
13
13
|
import { o as je } from "./style-map.llVFPd__.js";
|
|
@@ -0,0 +1,533 @@
|
|
|
1
|
+
import { G as A, r as T, C as b, b as H, L as X, T as Y, R as Z, m as I, aw as j, a as N, f as k, x as y, H as J, ak as x, e as q, h as V, j as z, E as B } from "./am-chart.oZVBmpnn.js";
|
|
2
|
+
import { ay as it, aJ as rt, B as ot, aT as nt, aS as ht, aE as lt, al as ct, az as gt, ae as dt, a2 as pt, aM as mt, ag as ft, aN as ut, aA as yt, aB as _t, aO as xt, aC as Ct, an as wt, aL as Pt, M as kt, aP as bt, P as Nt, aK as Lt, aD as Dt, w as Tt, a8 as vt, aF as Mt, J as Rt, S as Gt, n as St, aR as Ot, D as Wt, aG as Ft, aI as Ht, aH as It, d as At, aQ as Vt, q as zt, ax as Bt } from "./am-chart.oZVBmpnn.js";
|
|
3
|
+
import { B as Xt, E as Yt, L as Zt, M as jt, S as Jt } from "./SpriteResizer.-qJDgug8.js";
|
|
4
|
+
import { L as K } from "./ProgressPie.4mPA6xqm.js";
|
|
5
|
+
import { C as Kt, a as Qt, N as Ut, O as $t, P as te } from "./ProgressPie.4mPA6xqm.js";
|
|
6
|
+
import { C as se } from "./Circle.tOnnO-F-.js";
|
|
7
|
+
import { P as ie } from "./Polygon.Dr-GV2hn.js";
|
|
8
|
+
import { a as oe, Z as ne } from "./ZoomTools.cgwuIB0e.js";
|
|
9
|
+
import { L as Q } from "./LinearGradient.CxfXxvMw.js";
|
|
10
|
+
import { E as le } from "./EditableLabel.DPmicdjK.js";
|
|
11
|
+
import { P as ge } from "./Picture.BNASYM-P.js";
|
|
12
|
+
import { R as pe, a as me } from "./RadialLabel.HfsGiN4x.js";
|
|
13
|
+
import { T as ue } from "./Triangle.BECgi7mc.js";
|
|
14
|
+
import { S as _e } from "./Scrollbar.Bgg-RhjP.js";
|
|
15
|
+
import { S as Ce } from "./Slider.FKJwoPq2.js";
|
|
16
|
+
import { S as Pe } from "./Slice.Dm56LTKj.js";
|
|
17
|
+
import { G as E } from "./Gradient.BrDBLm8v.js";
|
|
18
|
+
class v extends A {
|
|
19
|
+
_beforeChanged() {
|
|
20
|
+
super._beforeChanged(), (this.isDirty("radius") || this.isDirty("innerRadius") || this.isDirty("spikes")) && (this._clear = !0);
|
|
21
|
+
}
|
|
22
|
+
_changed() {
|
|
23
|
+
if (super._changed(), this._clear) {
|
|
24
|
+
const t = this._display, s = this.get("radius", 0), e = T(this.get("innerRadius", 0), s), a = this.get("spikes", 0), i = Math.PI / a;
|
|
25
|
+
let r = Math.PI / 2 * 3;
|
|
26
|
+
t.moveTo(0, -s);
|
|
27
|
+
for (let o = 0; o < a; o++)
|
|
28
|
+
t.lineTo(Math.cos(r) * s, Math.sin(r) * s), r += i, t.lineTo(Math.cos(r) * e, Math.sin(r) * e), r += i;
|
|
29
|
+
t.lineTo(0, -s), t.closePath();
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
v.className = "Star";
|
|
34
|
+
v.classNames = A.classNames.concat([v.className]);
|
|
35
|
+
class M extends b {
|
|
36
|
+
constructor() {
|
|
37
|
+
super(...arguments), this.labelContainer = this.children.push(b.new(this._root, {})), this.markerContainer = this.children.push(b.new(this._root, {})), this.startLabel = this.labelContainer.children.push(H.new(this._root, { themeTags: ["start"] })), this.endLabel = this.labelContainer.children.push(H.new(this._root, { themeTags: ["end"] })), this.markers = this.addDisposer(new X(Y.new({}), () => Z._new(this._root, {
|
|
38
|
+
themeTags: I(this.markers.template.get("themeTags", []), [this.get("orientation"), "heatlegend", "marker"])
|
|
39
|
+
}, [this.markers.template])));
|
|
40
|
+
}
|
|
41
|
+
_afterNew() {
|
|
42
|
+
this._settings.themeTags = I(this._settings.themeTags, ["heatlegend", this._settings.orientation]), super._afterNew(), this.set("tooltip", j.new(this._root, {
|
|
43
|
+
themeTags: ["heatlegend"]
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* @ignore
|
|
48
|
+
*/
|
|
49
|
+
makeMarker() {
|
|
50
|
+
const t = this.markers.make();
|
|
51
|
+
return t.states.create("disabled", {}), t;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Moves and shows tooltip at specific value.
|
|
55
|
+
*
|
|
56
|
+
* Can also specify optional text to show in tooltip, as well as the color.
|
|
57
|
+
*
|
|
58
|
+
* @param value Value
|
|
59
|
+
* @param text Text
|
|
60
|
+
* @param color Color
|
|
61
|
+
*/
|
|
62
|
+
showValue(t, s, e) {
|
|
63
|
+
const a = this.getTooltip();
|
|
64
|
+
if (a && N(t)) {
|
|
65
|
+
const i = this.get("startValue", 0), r = this.get("endValue", 1);
|
|
66
|
+
let o = (t - i) / (r - i);
|
|
67
|
+
(o == 1 / 0 || o == -1 / 0 || isNaN(o)) && (o = 0.5);
|
|
68
|
+
const g = this.get("startColor"), c = this.get("endColor");
|
|
69
|
+
s || (s = this.getNumberFormatter().format(t)), e || (e = k.interpolate(o, g, c)), a.label.set("text", s);
|
|
70
|
+
let l;
|
|
71
|
+
this.get("orientation") == "vertical" ? l = this.markerContainer.toGlobal({ x: 0, y: this.innerHeight() * (1 - o) }) : l = this.markerContainer.toGlobal({ x: this.innerWidth() * o, y: 0 });
|
|
72
|
+
let n = a.get("background");
|
|
73
|
+
n && n.set("fill", e), a.set("pointTo", l), a.show();
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
_prepareChildren() {
|
|
77
|
+
super._prepareChildren();
|
|
78
|
+
const t = this.labelContainer, s = this.get("orientation"), e = this.startLabel, a = this.endLabel, i = this.getTooltip();
|
|
79
|
+
if (this.isDirty("orientation") && (s == "vertical" ? (this.markerContainer.setAll({ layout: this._root.verticalLayout, height: y }), this.set("layout", this._root.horizontalLayout), e.setAll({ y, x: void 0, centerY: y, centerX: y }), a.setAll({ y: 0, x: void 0, centerY: 0, centerX: y }), t.setAll({ height: y, width: void 0 }), i && i.set("pointerOrientation", "horizontal")) : (this.markerContainer.setAll({ layout: this._root.horizontalLayout, width: y }), this.set("layout", this._root.verticalLayout), e.setAll({ x: 0, y: void 0, centerX: 0, centerY: 0 }), a.setAll({ x: y, y: void 0, centerX: y, centerY: 0 }), t.setAll({ width: y, height: void 0 }), i && i.set("pointerOrientation", "vertical"))), this.isDirty("stepCount")) {
|
|
80
|
+
const r = this.get("stepCount", 1), o = this.get("startColor"), g = this.get("endColor"), c = this.get("startOpacity", 1), l = this.get("endOpacity", 1);
|
|
81
|
+
if (this.markerContainer.children.clear(), r > 1)
|
|
82
|
+
for (let n = 0; n < r; n++) {
|
|
83
|
+
const h = this.makeMarker();
|
|
84
|
+
s == "vertical" ? this.markerContainer.children.moveValue(h, 0) : this.markerContainer.children.push(h), o && g && h.setAll({
|
|
85
|
+
fill: k.interpolate(n / r, o, g),
|
|
86
|
+
fillOpacity: J(n / r * 100).interpolate(c, l)
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
else if (r == 1) {
|
|
90
|
+
const n = this.makeMarker();
|
|
91
|
+
this.markerContainer.children.push(n);
|
|
92
|
+
const h = Q.new(this._root, {
|
|
93
|
+
stops: [{
|
|
94
|
+
color: o,
|
|
95
|
+
opacity: c
|
|
96
|
+
}, {
|
|
97
|
+
color: g,
|
|
98
|
+
opacity: l
|
|
99
|
+
}]
|
|
100
|
+
});
|
|
101
|
+
if (s == "vertical") {
|
|
102
|
+
h.set("rotation", 90);
|
|
103
|
+
let d = h.get("stops");
|
|
104
|
+
d && d.reverse();
|
|
105
|
+
} else
|
|
106
|
+
h.set("rotation", 0);
|
|
107
|
+
o && g && n.set("fillGradient", h);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
(this.isDirty("startText") || this.isDirty("startValue")) && e.set("text", this.get("startText", this.getNumberFormatter().format(this.get("startValue", 0)))), (this.isDirty("endText") || this.isDirty("endValue")) && a.set("text", this.get("endText", this.getNumberFormatter().format(this.get("endValue", 1))));
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
M.className = "HeatLegend";
|
|
114
|
+
M.classNames = b.classNames.concat([M.className]);
|
|
115
|
+
class R extends x {
|
|
116
|
+
constructor() {
|
|
117
|
+
super(...arguments), this.canvas = document.createElement("canvas"), this.context = this.canvas.getContext("2d"), this._clearGrain = !1;
|
|
118
|
+
}
|
|
119
|
+
_beforeChanged() {
|
|
120
|
+
this.canvas.width = this.get("width", 200), this.canvas.height = this.get("height", 200), (this.isDirty("size") || this.isDirty("density") || this.isDirty("minOpacity") || this.isDirty("maxOpacity") || this.isDirty("colors") || this.isDirty("horizontalGap") || this.isDirty("verticalGap")) && (this._clearGrain = !0), super._beforeChanged();
|
|
121
|
+
}
|
|
122
|
+
_changed() {
|
|
123
|
+
if (super._changed(), this._clearGrain) {
|
|
124
|
+
const t = this.get("width", 200), s = this.get("height", 200), e = this.context.getImageData(0, 0, t, s), a = Math.max(1, this.get("size", 1)), i = this.get("minOpacity", 0), r = this.get("maxOpacity", 0.3), o = this.get("colors", [this.get("color", k.fromHex(0))]), g = t / a, c = s / a, l = this.get("density", 1), n = this.get("horizontalGap", 0) + 1, h = this.get("verticalGap", 0) + 1;
|
|
125
|
+
for (let d = 0; d < c; d++)
|
|
126
|
+
if (!(h > 0 && d / h != Math.round(d / h)))
|
|
127
|
+
for (let p = 0; p < g; p++) {
|
|
128
|
+
const m = o[Math.floor(Math.random() * o.length)], u = (i + Math.random() * (r - i)) * 255, f = Math.random();
|
|
129
|
+
n > 0 && p / n != Math.round(p / n) || f < l && this._setRectData(p, d, a, t, e.data, m.r, m.g, m.b, u);
|
|
130
|
+
}
|
|
131
|
+
this.context.putImageData(e, 0, 0), this._pattern = this.context.createPattern(this.canvas, "repeat");
|
|
132
|
+
}
|
|
133
|
+
this._clearGrain = !1;
|
|
134
|
+
}
|
|
135
|
+
_checkDirtyFill() {
|
|
136
|
+
return !1;
|
|
137
|
+
}
|
|
138
|
+
_setRectData(t, s, e, a, i, r, o, g, c) {
|
|
139
|
+
for (var l = t * e; l < t * e + e; l++)
|
|
140
|
+
for (var n = s * e; n < s * e + e; n++) {
|
|
141
|
+
var h = (n * a + l) * 4;
|
|
142
|
+
i[h] = r, i[h + 1] = o, i[h + 2] = g, i[h + 3] = c;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
R.className = "GrainPattern";
|
|
147
|
+
R.classNames = x.classNames.concat([R.className]);
|
|
148
|
+
class G extends E {
|
|
149
|
+
/**
|
|
150
|
+
* @ignore
|
|
151
|
+
*/
|
|
152
|
+
getFill(t) {
|
|
153
|
+
const s = this.getBounds(t);
|
|
154
|
+
let e = 0, a = 0, i = s.left || 0, r = s.right || 0, o = s.top || 0, g = s.bottom || 0;
|
|
155
|
+
const c = r - i, l = g - o;
|
|
156
|
+
let n = t.get("radius");
|
|
157
|
+
N(n) ? (e = 0, a = 0) : (n = Math.min(c, l) / 2, e = c / 2, a = l / 2);
|
|
158
|
+
let h = this.get("x"), d = this.get("y");
|
|
159
|
+
h != null && (e = T(h, c)), d != null && (a = T(d, l));
|
|
160
|
+
const p = this._root._renderer.createRadialGradient(e, a, 0, e, a, n), m = this.get("stops");
|
|
161
|
+
if (m) {
|
|
162
|
+
let u = 0;
|
|
163
|
+
q(m, (f) => {
|
|
164
|
+
let w = f.offset;
|
|
165
|
+
N(w) || (w = u / (m.length - 1));
|
|
166
|
+
let P = f.opacity;
|
|
167
|
+
N(P) || (P = 1);
|
|
168
|
+
let _ = f.color;
|
|
169
|
+
if (_) {
|
|
170
|
+
const W = f.lighten;
|
|
171
|
+
W && (_ = k.lighten(_, W));
|
|
172
|
+
const F = f.brighten;
|
|
173
|
+
F && (_ = k.brighten(_, F)), p.addColorStop(w, "rgba(" + _.r + "," + _.g + "," + _.b + "," + P + ")");
|
|
174
|
+
}
|
|
175
|
+
u++;
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
return p;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
G.className = "RadialGradient";
|
|
182
|
+
G.classNames = E.classNames.concat([G.className]);
|
|
183
|
+
class L extends x {
|
|
184
|
+
_beforeChanged() {
|
|
185
|
+
super._beforeChanged(), this.isDirty("gap") && (this._clear = !0);
|
|
186
|
+
}
|
|
187
|
+
_draw() {
|
|
188
|
+
super._draw();
|
|
189
|
+
const t = this.get("checkered", !1), s = this.get("centered", !0), e = this.get("gap", 0), a = this.get("rotation", 0);
|
|
190
|
+
let i = this.get("width", 100), r = this.get("height", 100), o = this.get("radius", 3), g = o * 2 + e, c = o * 2 + e, l = Math.round(i / g), n = Math.round(r / c);
|
|
191
|
+
g = i / l, c = r / n, a != 0 && (this._display.x = g * V(a), this._display.y = c * z(a));
|
|
192
|
+
const h = this.get("color"), d = this.get("colorOpacity");
|
|
193
|
+
(h || d) && this._display.beginFill(h, d);
|
|
194
|
+
for (let p = a == 0 ? 0 : -n * 2; p < n * 2; p++)
|
|
195
|
+
for (let m = a == 0 ? 0 : -l * 2; m < l * 2; m++)
|
|
196
|
+
if (!t || (p & 1) != 1 && (m & 1) != 1 || (p & 1) == 1 && (m & 1) == 1) {
|
|
197
|
+
let u = m * g, f = p * c;
|
|
198
|
+
s && (u += g + e / 2, f += c + e / 2), this._display.drawCircle(u - o, f - o, o);
|
|
199
|
+
}
|
|
200
|
+
t ? (i = i / 2 - e * 2, r = r / 2 - e * 2) : (i -= e, r -= e), (h || d) && this._display.endFill();
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
L.className = "CirclePattern";
|
|
204
|
+
L.classNames = x.classNames.concat([L.className]);
|
|
205
|
+
class D extends x {
|
|
206
|
+
_beforeChanged() {
|
|
207
|
+
super._beforeChanged(), this.isDirty("gap") && (this._clear = !0);
|
|
208
|
+
}
|
|
209
|
+
_draw() {
|
|
210
|
+
super._draw();
|
|
211
|
+
const t = this.get("checkered", !1), s = this.get("centered", !0), e = this.get("gap", 0), a = this.get("rotation", 0);
|
|
212
|
+
let i = this.get("width", 100), r = this.get("height", 100), o = this.get("maxWidth", 5), g = this.get("maxHeight", 5);
|
|
213
|
+
const c = this._display;
|
|
214
|
+
let l = o + e, n = g + e, h = Math.round(i / l), d = Math.round(r / n);
|
|
215
|
+
l = i / h, n = r / d, a != 0 && (c.x = l / 2 * V(a), c.y = -n / 2 * z(a));
|
|
216
|
+
for (let u = a == 0 ? 0 : -d * 2; u < d * 2; u++)
|
|
217
|
+
for (let f = a == 0 ? 0 : -h * 2; f < h * 2; f++)
|
|
218
|
+
if (!t || (u & 1) != 1 && (f & 1) != 1 || (u & 1) == 1 && (f & 1) == 1) {
|
|
219
|
+
let w = f * l, P = u * n;
|
|
220
|
+
s && (w += (l - o) / 2, P += (n - g) / 2), c.drawRect(w, P, o, g);
|
|
221
|
+
}
|
|
222
|
+
t ? (i = i / 2 - e * 2, r = r / 2 - e * 2) : (i -= e, r -= e);
|
|
223
|
+
const p = this.get("color"), m = this.get("colorOpacity");
|
|
224
|
+
(p || m) && (c.beginFill(p, m), c.endFill());
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
D.className = "RectanglePattern";
|
|
228
|
+
D.classNames = x.classNames.concat([D.className]);
|
|
229
|
+
class S extends x {
|
|
230
|
+
_beforeChanged() {
|
|
231
|
+
super._beforeChanged(), this.isDirty("svgPath") && (this._clear = !0);
|
|
232
|
+
}
|
|
233
|
+
_draw() {
|
|
234
|
+
super._draw();
|
|
235
|
+
const t = this.get("svgPath");
|
|
236
|
+
t != null && this._display.svgPath(t);
|
|
237
|
+
const s = this.get("color"), e = this.get("colorOpacity");
|
|
238
|
+
(s || e) && (this._display.beginFill(s, e), this._display.endFill());
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
S.className = "PathPattern";
|
|
242
|
+
S.classNames = x.classNames.concat([S.className]);
|
|
243
|
+
class O extends B {
|
|
244
|
+
_afterNew() {
|
|
245
|
+
if (super._afterNewApplyThemes(), this.get("patterns", []).length === 0) {
|
|
246
|
+
const t = this.get("color", this.root.interfaceColors.get("stroke"));
|
|
247
|
+
this.set("patterns", [
|
|
248
|
+
this.getLinePattern({
|
|
249
|
+
width: 1e3,
|
|
250
|
+
height: 1e3,
|
|
251
|
+
rotation: 45,
|
|
252
|
+
strokeWidth: 1,
|
|
253
|
+
//gap: 6,
|
|
254
|
+
color: t
|
|
255
|
+
}),
|
|
256
|
+
this.getRectanglePattern({
|
|
257
|
+
width: 10,
|
|
258
|
+
height: 10,
|
|
259
|
+
rotation: 0,
|
|
260
|
+
maxWidth: 4,
|
|
261
|
+
maxHeight: 4,
|
|
262
|
+
color: t
|
|
263
|
+
}),
|
|
264
|
+
this.getLinePattern({
|
|
265
|
+
width: 1e3,
|
|
266
|
+
height: 1e3,
|
|
267
|
+
rotation: -45,
|
|
268
|
+
strokeWidth: 1,
|
|
269
|
+
gap: 6,
|
|
270
|
+
color: t
|
|
271
|
+
}),
|
|
272
|
+
this.getCirclePattern({
|
|
273
|
+
width: 11,
|
|
274
|
+
height: 11,
|
|
275
|
+
radius: 2,
|
|
276
|
+
color: t
|
|
277
|
+
}),
|
|
278
|
+
this.getLinePattern({
|
|
279
|
+
width: 6,
|
|
280
|
+
height: 6,
|
|
281
|
+
rotation: 90,
|
|
282
|
+
strokeWidth: 1,
|
|
283
|
+
color: t
|
|
284
|
+
}),
|
|
285
|
+
this.getRectanglePattern({
|
|
286
|
+
width: 14,
|
|
287
|
+
height: 14,
|
|
288
|
+
rotation: 45,
|
|
289
|
+
gap: 4,
|
|
290
|
+
maxWidth: 6,
|
|
291
|
+
maxHeight: 6,
|
|
292
|
+
checkered: !0,
|
|
293
|
+
color: t
|
|
294
|
+
}),
|
|
295
|
+
this.getLinePattern({
|
|
296
|
+
width: 6,
|
|
297
|
+
height: 6,
|
|
298
|
+
rotation: 0,
|
|
299
|
+
strokeWidth: 1,
|
|
300
|
+
color: t
|
|
301
|
+
}),
|
|
302
|
+
this.getRectanglePattern({
|
|
303
|
+
width: 15,
|
|
304
|
+
height: 15,
|
|
305
|
+
rotation: 0,
|
|
306
|
+
gap: 5,
|
|
307
|
+
maxWidth: 5,
|
|
308
|
+
maxHeight: 5,
|
|
309
|
+
checkered: !0,
|
|
310
|
+
color: t
|
|
311
|
+
}),
|
|
312
|
+
this.getLinePattern({
|
|
313
|
+
width: 1e3,
|
|
314
|
+
height: 1e3,
|
|
315
|
+
rotation: 45,
|
|
316
|
+
strokeWidth: 2,
|
|
317
|
+
gap: 3,
|
|
318
|
+
strokeDasharray: [4, 2],
|
|
319
|
+
color: t
|
|
320
|
+
}),
|
|
321
|
+
this.getCirclePattern({
|
|
322
|
+
width: 20,
|
|
323
|
+
height: 20,
|
|
324
|
+
radius: 3,
|
|
325
|
+
gap: 4,
|
|
326
|
+
checkered: !0,
|
|
327
|
+
color: t
|
|
328
|
+
}),
|
|
329
|
+
this.getLinePattern({
|
|
330
|
+
width: 1e3,
|
|
331
|
+
height: 1e3,
|
|
332
|
+
rotation: -45,
|
|
333
|
+
strokeWidth: 2,
|
|
334
|
+
gap: 3,
|
|
335
|
+
strokeDasharray: [4, 2],
|
|
336
|
+
color: t
|
|
337
|
+
}),
|
|
338
|
+
this.getRectanglePattern({
|
|
339
|
+
width: 10,
|
|
340
|
+
height: 10,
|
|
341
|
+
rotation: 0,
|
|
342
|
+
gap: 1,
|
|
343
|
+
maxWidth: 9,
|
|
344
|
+
maxHeight: 9,
|
|
345
|
+
color: t
|
|
346
|
+
}),
|
|
347
|
+
this.getLinePattern({
|
|
348
|
+
width: 1e3,
|
|
349
|
+
height: 1e3,
|
|
350
|
+
rotation: -45,
|
|
351
|
+
strokeWidth: 2,
|
|
352
|
+
gap: 1,
|
|
353
|
+
color: t
|
|
354
|
+
}),
|
|
355
|
+
this.getLinePattern({
|
|
356
|
+
width: 1e3,
|
|
357
|
+
height: 1e3,
|
|
358
|
+
rotation: 45,
|
|
359
|
+
strokeWidth: 2,
|
|
360
|
+
gap: 1,
|
|
361
|
+
color: t
|
|
362
|
+
}),
|
|
363
|
+
this.getLinePattern({
|
|
364
|
+
width: 1e3,
|
|
365
|
+
height: 1e3,
|
|
366
|
+
rotation: 0,
|
|
367
|
+
strokeWidth: 3,
|
|
368
|
+
gap: 1,
|
|
369
|
+
color: t
|
|
370
|
+
}),
|
|
371
|
+
this.getLinePattern({
|
|
372
|
+
width: 1e3,
|
|
373
|
+
height: 1e3,
|
|
374
|
+
rotation: 90,
|
|
375
|
+
strokeWidth: 3,
|
|
376
|
+
gap: 1,
|
|
377
|
+
color: t
|
|
378
|
+
})
|
|
379
|
+
]);
|
|
380
|
+
}
|
|
381
|
+
this._dirty.patterns = !1;
|
|
382
|
+
}
|
|
383
|
+
_beforeChanged() {
|
|
384
|
+
this.isDirty("patterns") && this.reset();
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Returns a [[Pattern]] at specific index.
|
|
388
|
+
*
|
|
389
|
+
* @param index Index
|
|
390
|
+
* @return Color
|
|
391
|
+
*/
|
|
392
|
+
getIndex(t) {
|
|
393
|
+
const s = this.get("patterns", []);
|
|
394
|
+
if (t < s.length && s[t] !== null)
|
|
395
|
+
return s[t];
|
|
396
|
+
if (t > s.length - 1) {
|
|
397
|
+
const e = t - Math.floor(t * (t / s.length));
|
|
398
|
+
return s[e];
|
|
399
|
+
}
|
|
400
|
+
return s[t];
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* Returns next [[Color]] in the list.
|
|
404
|
+
*
|
|
405
|
+
* If the list is out of colors, new ones are generated dynamically.
|
|
406
|
+
*/
|
|
407
|
+
next() {
|
|
408
|
+
let t = this.getPrivate("currentStep", this.get("startIndex", 0));
|
|
409
|
+
return this.setPrivate("currentStep", t + this.get("step", 1)), this.getIndex(t);
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* Resets counter to the start of the list, so the next call for `next()` will
|
|
413
|
+
* return the first pattern.
|
|
414
|
+
*/
|
|
415
|
+
reset() {
|
|
416
|
+
this.setPrivate("currentStep", this.get("startIndex", 0));
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* Returns a [[LinePattern].
|
|
420
|
+
*
|
|
421
|
+
* @param settings Pattern settings
|
|
422
|
+
* @return Pattern object
|
|
423
|
+
*/
|
|
424
|
+
getLinePattern(t) {
|
|
425
|
+
return K.new(this.root, t);
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* Returns a [[RectanglePattern].
|
|
429
|
+
*
|
|
430
|
+
* @param settings Pattern settings
|
|
431
|
+
* @return Pattern object
|
|
432
|
+
*/
|
|
433
|
+
getRectanglePattern(t) {
|
|
434
|
+
return D.new(this.root, t);
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* Returns a [[CirclePattern].
|
|
438
|
+
*
|
|
439
|
+
* @param settings Pattern settings
|
|
440
|
+
* @return Pattern object
|
|
441
|
+
*/
|
|
442
|
+
getCirclePattern(t) {
|
|
443
|
+
return L.new(this.root, t);
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
O.className = "PatternSet";
|
|
447
|
+
O.classNames = B.classNames.concat([O.className]);
|
|
448
|
+
export {
|
|
449
|
+
it as ArrayDisposer,
|
|
450
|
+
rt as BlendMode,
|
|
451
|
+
Xt as Bullet,
|
|
452
|
+
ot as Button,
|
|
453
|
+
nt as CanvasLayer,
|
|
454
|
+
ht as CanvasRenderer,
|
|
455
|
+
lt as Chart,
|
|
456
|
+
se as Circle,
|
|
457
|
+
L as CirclePattern,
|
|
458
|
+
k as Color,
|
|
459
|
+
ct as ColorSet,
|
|
460
|
+
gt as Component,
|
|
461
|
+
Kt as ConfirmButton,
|
|
462
|
+
b as Container,
|
|
463
|
+
dt as CounterDisposer,
|
|
464
|
+
pt as DataItem,
|
|
465
|
+
mt as DateFormatter,
|
|
466
|
+
ft as Disposer,
|
|
467
|
+
ut as DurationFormatter,
|
|
468
|
+
le as EditableLabel,
|
|
469
|
+
Yt as Ellipse,
|
|
470
|
+
B as Entity,
|
|
471
|
+
E as Gradient,
|
|
472
|
+
R as GrainPattern,
|
|
473
|
+
A as Graphics,
|
|
474
|
+
yt as GridLayout,
|
|
475
|
+
M as HeatLegend,
|
|
476
|
+
_t as HorizontalLayout,
|
|
477
|
+
xt as InterfaceColors,
|
|
478
|
+
H as Label,
|
|
479
|
+
Ct as Layout,
|
|
480
|
+
Zt as Legend,
|
|
481
|
+
wt as Line,
|
|
482
|
+
K as LinePattern,
|
|
483
|
+
Q as LinearGradient,
|
|
484
|
+
Qt as Link,
|
|
485
|
+
Pt as ListData,
|
|
486
|
+
X as ListTemplate,
|
|
487
|
+
jt as Modal,
|
|
488
|
+
kt as MultiDisposer,
|
|
489
|
+
bt as NumberFormatter,
|
|
490
|
+
Ut as NumericStepper,
|
|
491
|
+
$t as OrthogonalLine,
|
|
492
|
+
S as PathPattern,
|
|
493
|
+
x as Pattern,
|
|
494
|
+
O as PatternSet,
|
|
495
|
+
Nt as Percent,
|
|
496
|
+
ge as Picture,
|
|
497
|
+
Lt as PicturePattern,
|
|
498
|
+
Dt as PointedRectangle,
|
|
499
|
+
ie as Polygon,
|
|
500
|
+
te as ProgressPie,
|
|
501
|
+
G as RadialGradient,
|
|
502
|
+
pe as RadialLabel,
|
|
503
|
+
me as RadialText,
|
|
504
|
+
Tt as Rectangle,
|
|
505
|
+
D as RectanglePattern,
|
|
506
|
+
vt as Root,
|
|
507
|
+
Z as RoundedRectangle,
|
|
508
|
+
_e as Scrollbar,
|
|
509
|
+
Mt as SerialChart,
|
|
510
|
+
Rt as Series,
|
|
511
|
+
Pe as Slice,
|
|
512
|
+
Ce as Slider,
|
|
513
|
+
Gt as Sprite,
|
|
514
|
+
Jt as SpriteResizer,
|
|
515
|
+
v as Star,
|
|
516
|
+
Y as Template,
|
|
517
|
+
St as Text,
|
|
518
|
+
Ot as TextFormatter,
|
|
519
|
+
Wt as Theme,
|
|
520
|
+
Ft as Tick,
|
|
521
|
+
Ht as Timezone,
|
|
522
|
+
j as Tooltip,
|
|
523
|
+
ue as Triangle,
|
|
524
|
+
It as VerticalLayout,
|
|
525
|
+
oe as ZoomTools,
|
|
526
|
+
ne as ZoomableContainer,
|
|
527
|
+
At as color,
|
|
528
|
+
Vt as p0,
|
|
529
|
+
y as p100,
|
|
530
|
+
zt as p50,
|
|
531
|
+
J as percent,
|
|
532
|
+
Bt as registry
|
|
533
|
+
};
|